Archive for the ‘The Riddles’ Category

Dynamic Assigment of AS2.0 Classes

Monday, May 22nd, 2006

Riddle~

Assigning ActionScript classes to MovieClip library assets has changed the way we develop user interfaces. Components add behavior directly to a display element, combining function with the design. The ability to extend the MovieClip class simplifies relationships and allows for powerful display objects that can be reused. But it can only be achieved through the linkage of a MovieClip in the library. TextFields and Buttons (Flash native Buttons, not to be confused with other component Buttons) are exempt, as well as a very important MovieClip: the root.

Answer: (more…)

The Problems with Managing Depth in ActionScript

Tuesday, March 7th, 2006

Riddle~

Is it important to keep track of depths in ActionScript for all of my display assets? It’s something extra to worry about, but there’s always the danger of killing something by overwriting the depth. It’s also important to have control on what graphics go in front of others. The “right way” is to have those depths explicitly defined along with each element so it’s clear who has what depth and it keeps the children from fighting. But then that doesn’t work for graphics placed on the stage at design time.

Answer: (more…)