misterios class properties
hello,
i'm quite new flash development.
i'm struggling many hours understand origin of several properties , hierarchy inside as3 linked class.
the setup is:
there mask layer several masked layers.
there movie clip each of masked layers in libarary (some of linked as3):
i added layer label inside () next name of each movie clip
also photocontainer movie clip there external as3 class
in flash debugger see following hierarchy of display objects:
stage -> maskarea -> photoguidecontainer (movieclip) -> photoguide (photocontainer)
stage -> maskarea -> photodrag (photodrag) -> photocontainer (photocontainer)
stage -> maskarea -> masker (masker)
stage -> maskarea -> masker (masker)
stage -> maskarea -> collisionarea (masker)
stage -> maskarea -> bg (movieclip)
as3 code in application classes direct manipultion above properties like:
maskarea = new maskarea();
var pc:photocontainer = maskarea.photodrag.photocontainer;
...
without ever creating/relating these display objects.
my questions are:
1. these objects come ?
2. how display object hierarchy created ?
3. how photoguide becomes instance of photocontainer (see above stage -> maskarea -> photoguidecontainer (movieclip) -> photoguide (photocontainer)) ?
thank you.
a. can't determine what's on stage checking layer names. unlock them, click keyframe , check highlighted on-stage objects check library symbol
b. maskarea=new maskarea() create new displayobject.
1. on-stage objects see when testing either on-stage in ide or created actionscript
2. if, hierarchy mean depth, determined layer order (for ide created objects) , order objects added display list (addchild) actionscript created objects (unless addchildat used).
3. photoguide isn't instance of photocontainer. photoguide child of photoguidecontainer.
More discussions in ActionScript 3
adobe


Comments
Post a Comment