. Again in the "uniform", as happened with the events (see the new event handling Flash CS3 and Flash CS3: The new event handling ), one of the many new features in ActionScript 3.0 is the disappearance of all those ad hoc methods dedicated to the creation of particular objects, such as: createEmptyMovieClip() or the famous attachMovie() . With Actionscript 3.0 the operator new is sufficient to perform all the operations building. A new MovieClip, for example, is created (runtime) with the following code:
1 2 |
But let's go! If I have a symbol in the library and how do I go if I want to add runtime attachMovie() is gone? The solution is not very dissimilar from what happened in Actionscript 2.0. First you need to go into the library, select the symbol and open the properties window. Then tick the box Export for ActionScript chaining - as happened in Flash 8. A symbol library as a base class has always flash.display.MovieClip , but this does not interest us much. The interesting thing, however, is the parameter class that is set by default (when you check Export for ActionScript) with the symbol name. What is important to emphasize is that this is a new way in Flash CS3 (and ActionScript 3.0). The symbol to be exported must have a Class reference. The curiosity is that we are not forced to create our own strength to Class (extended from flash.display.MovieClip ), although we could do it.






Latest Comments
vik : With strategic help!
Pepper : Hi there, I do not know if you're one of the creators of the WP plugin Bannerize. I have spotted a ...
Rosanna : Can anyone tell me how do I delete the Snap Shots window that opens automatically when I ...
blessed Maresca : I can not download any skypemote me spiegaaa
Matthew : Hello everyone, unfortunately Google does not allow the use of the API for Flash, but it will ...