From the very basic Flash Class…
In flash everything is an object, buttons, MovieClips, text boxes.
Objects are built from blueprints called Classes
Classes have properties and methods (or functions)
Flash needs to know what classes the object is associated with
Objects are built from Classes so I (Mark) am built from the Man class
I’m also built from these other classes
Vermonter
Armenian
ComicBookGeek
Dad
So I can do all the things involved with this like, garden,eatBaklava, washDishes, readComics, helpWithHomework, cook, doWash
These are the equivalent of flash’s _mc.gotoAndStop, _mc.play() _mc.stop().
With the main timeline it is a container that holds all of our display objects, Flash needs to be told how to think of it
So on Sundays, having been busy with my many responsibilities, I have to be told to think like a man
Man(Mark).watchFootball()
Man(Mark).drinkBeer()
Man(Mark).burp()
This is called casting to class.
So to get flash ‘s main timeline or root t thinklike a movieclip we need to say
MovieClip(root).gotoAndStop(“end”)