• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

misterios class properties

Guest
Aug 07, 2012 Aug 07, 2012

Copy link to clipboard

Copied

Hello,

I'm quite new to flash development.

I'm struggling for many hours to understand the origin of several properties and their hierarchy inside as3 linked class.

The setup is:

layers.png

there is a mask layer with several masked layers.

There is a movie clip for each of masked layers in libarary (some of it linked to as3):

classes.png

I added layer label inside () next to name of each movie clip

Also for PhotoContainer movie clip there is external as3 class

In flash debugger i also see the 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 does direct manipultion with above properties like:

maskArea = new MaskArea();

var pc:PhotoContainer = maskArea.photoDrag.photoContainer;

...

without ever creating/relating these display objects.

My questions are:

1. Where are all these objects come from ?

2. How the display object hierarchy is created ?

3. How photoGuide becomes an instance of PhotoContainer (see above Stage -> MaskArea -> photoGuideContainer (movieclip) -> photoGuide (PhotoContainer)) ?

Thank you.

TOPICS
ActionScript

Views

1.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Deleted User
Aug 07, 2012 Aug 07, 2012

I finally realized what i'm missing. No mistery here:

1. Movie clips were embedded each into other (this explains the certain hierarchy)

2.Some layers were merged. (that explains the mistery )

thanks

Votes

Translate

Translate
Community Expert ,
Aug 07, 2012 Aug 07, 2012

Copy link to clipboard

Copied

a.  you can't determine what's on stage by checking layer names.  unlock them, click a keyframe and check the highlighted on-stage objects to check their library symbol

b.  maskArea=new MaskArea() does create a new displayobject.

1.  all on-stage objects you see when testing are either on-stage in the ide or created with actionscript

2. if, by hierarchy you mean depth, it is determined by the layer order (for ide created objects) and by the order objects are added to the display list (addChild) for actionscript created objects (unless addChildAt is used).

3. photoGuide isn't an instance of PhotoContainer.  photoGuide is a child of photoGuideContainer.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 07, 2012 Aug 07, 2012

Copy link to clipboard

Copied

3. photoGuide isn't an instance of PhotoContainer.  photoGuide is a child of photoGuideContainer.

here is a screenshot from debugger (monster debugger):

debug.png

I'm asking how this hierarchy is created? Here you see that photoGuide is instance of PhotoContainer.

And i have similar question like Where the "collisionArea" name came from ? it is not in the library, and not in the code...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 07, 2012 Aug 07, 2012

Copy link to clipboard

Copied

I finally realized what i'm missing. No mistery here:

1. Movie clips were embedded each into other (this explains the certain hierarchy)

2.Some layers were merged. (that explains the mistery )

thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 08, 2012 Aug 08, 2012

Copy link to clipboard

Copied

LATEST

you're welcome.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines