A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: [RESOLVED] depth issue

  1. #1
    Senior Member calmchess's Avatar
    Join Date
    Sep 2006
    Location
    Earth
    Posts
    2,588

    resolved [RESOLVED] depth issue

    I have graphical object on stage which i would like to place above all objects on stage which were added to the stage using actionscript by my document class how do i tell this object to be on top? I'm having trouble because the other objects are added at diffrent times in my scripts execution and i can't pin down how to add the graphical object at the appropriate time.
    ~calmchess~

  2. #2
    Senior Member
    Join Date
    Jan 2010
    Posts
    141
    There are different ways to accomplish this. The easiest would be to set the z-index for that item to the highest number. Another was would be to create a blank container on the stage below that graphical object and load all of your items to it, instead of the stage.

  3. #3
    Senior Member
    Join Date
    Jan 2010
    Posts
    141
    Oh yeah you could also use AddChildAd() method and add stuff in your class at the lowest visible z-index.

  4. #4
    Member
    Join Date
    Aug 2009
    Posts
    44
    i think he means "addChildAt".

  5. #5
    Senior Member
    Join Date
    Jan 2010
    Posts
    141
    oops MrSmither you are correct in one way... I did mean addChildAt, however I am not a man...I am a woman... ; )

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center