- KeyboardEvent.KEY_DOWN
- KeyboardEvent.KEY_UP
Global Keyboard-Event Handling: Flash player by default doesn’t dispatch Global keyboard events, where as by adding key listener to Stage you can handle global key board events.
Global Keyboard-Event Handling: Flash player by default doesn’t dispatch Global keyboard events, where as by adding key listener to Stage you can handle global key board events.
interesting thing to observe here is ROLL_OVER and MOUSE_OVER looks similar but they have it’s own purpose. The purpose of the rollOver event is to simplify the coding of rollout behaviors for display object containers with children. When the mouse leaves the area of a display object or the area of any of its children to go to an object that is not one of its children, the display object dispatches the rollOver event. This is different behavior than that of the mouseOver event, which is dispatched each time the mouse enters the area of any child object of the display object container, even if the mouse was already over another child object of the display object container.
Hence these two events make difference, when they are assigned to MovieClips with child display objects.
Basic Operators
Arithmetic Operators: +, -, *, /, %, ++, –, +=, -=, *=, /=, %=
Comparison Operators: <, >, <=, >=, ==, ===, !,!=, !==, &&, ||
Other Operators: is, as, in, typeof, instanceof
There are even more operators for bitwise operations, I will cover that later.
An Event is happening of noteworthy occurrence which is dispatched and listened for. In ActionScript events can be categorized into two types.
Built-in events describe changes to the state of the runtime environment, and Custom describe changes to the state of a program.
All event target objects are either inherited from EventDispatcher class or implement IEventDispatcher, this class provides 2 methods, addEventListener() and removeEventListener() for register and de-register listeners to event target objects.
To register and Event Listener to Event,
example:
theURLLoader.addEventListener(Event.COMPLETE, someListener); function someListener(e:Event){ //do some thing with e.target }
Event object type: flash.events.Event
Event.type property = flash.events.Event.COMPLETE
Listener = someListener
Flash CS3 is a powerful authoring tool with powerful drawing capabilities helps you in creating Animations, Websites with audio and video, Ad Banners, Games, Guided\Auto-run tutorials and Data-Driven applications.
Flexibility, strong control over visual and audio elements, provide scalability, lower footprint, resizabilities, internal scripting language, highly integrated with other Adobe tools are major features of Flash IDE.
New features in flash CS3
Coming days I am going to post tutorials on Introduction to ActionScript 3 using Flash CS3, Here are the topics I am planning to cover. for that sake we can keep flex thing aside for now, I will take it up later.
Please feel free to comment