< Day Day Up > |
[SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] ECMAScript 3 standard ECMAScript 4 standard 2nd enumerable attribute Flash ActionScript 2.0, differences from nonenumerable instance properties static typing visibility empty interfaces encapsulation enumerable attribute (ECMAScript 4) errors [See also exceptions] datatype- related , benefits of Error class message property subclassing for error conditions methods in a class with same name nonexistent methods and properties nonexistent methods and properties, typed return value nonexistent properties Object type and runtime this (keyword), illegal use of type mismatch 2nd dynamic classes and event handlers, classes as event handling from ActionScript built-in classes and Flash v2 components click( ), ClockController class (example) component events classes for event-consumer objects event handler functions generic listener objects listener functions mapping component events to object method calls techniques, summary of weaknesses of v2 architecture interfaces used for, naming of Observer pattern and event listeners classes and interfaces EventListener interface generic listener objects 2nd 3rd logic flow, delegation event model NightSky class (example) 2nd using in application RandomizerListener subinterface (example) typed listener objects event source classes, list of logic flow, delegation event model multiple event types from single source Randomizer class (example) 2nd reference, passing to EventObject class event-consumer objects, marker interfaces as EventListener class EventListenerList class 2nd 3rd EventObject class 2nd passing event source reference to constructor RandomizerEvent subclass (example) EventProxy class (example) events broadcasting mechanism [See Observer design pattern] component, handling event handler function, using EventProxy class (example) listener function, using listener objects, using summary of techniques delegation event model 2nd deleting event listeners registered with event source example code exception handling exceptions control flow changes in try/catch/finally exception bubbling uncaught exceptions exception-handling cycle finally block (try/catch/finally statement) Flash 7.0 required for ActionScript 2.0 exception handling handling multiple types of determining error granularity handling, limitations in ActionScript 2.0 no built-in exceptions no checked exceptions performance issues nested bug in Flash Player 7 exclusion XML file creating explicit casting export frame for movie classes frames later than 1 specifying exporting .swf files in format compatible with specific versions of Flash Player .swf files with ActionScript 2.0 compiler currency converter application Flash Player 6 and Flash Player 7 format movies ImageViewer .swf file variables to an external source expression of a throw statement received by catch block as a parameter extending classes inheritance relationship, setting up MovieClip, subclasses nonextendable built-in classes extends keyword 2nd 3rd Extreme Programming (web site) |
< Day Day Up > |