Semicolons - Macromedia Flash MX 1002004 Game Programming [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Macromedia Flash MX 1002004 Game Programming [Electronic resources] - نسخه متنی

Craig S. Murray, Justin Everett-Church

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
توضیحات
افزودن یادداشت جدید


















Semicolons



You''ve probably noticed that all our ActionScript statements thus far have ended with a semicolon. Semicolons are the way you tell Flash that a statement is over, similar to a period in English. Nearly all statements in ActionScript should end in a semicolon. There are exceptions, but we''ll get to those later. Many times, if you forget the semicolon, Flash reports a syntax error during testing to tell you about your missing semicolon. This is not always the case, however; sometimes Flash lets you get away with omitting one. You should become disciplined about putting a semicolon everywhere that''s appropriate. Look at it this way: Semicolons are required in Java, C++, and C, and they are required in most places in JavaScript and ActionScript, so getting in the habit of using them isn''t the worst thing in the world.







Tip



You can use the Auto Format option in the Actions panel (it''s in the menu along with Normal and Expert mode settings) to correct your indention and add semicolons to your script.






/ 43