Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-26-2012, 02:26 AM   #1
Brandondspicer
Registered User
 
Join Date: May 2012
Posts: 42
Default Z axis to put objects behind other objects?

Ok I heard that with the z axis it's possible to organize what objects are in front and what are behind. But when I use z=100 it only makes it smaller or bigger(one of the two not sure at the moment)? How do I go about adding children to the background?
Brandondspicer is offline   Reply With Quote
Old 05-26-2012, 05:08 AM   #2
abeall
Senior Member
 
Join Date: Feb 2006
Location: Washington, DC
Posts: 2,796
Send a message via AIM to abeall
Default

What you heard is actually quite incorrect. The z property does not change the depth of an object. You must control the depth using setChildIndex, or addChild/addChildAt.
__________________
Aaron Beall | Flash portfolio | Fireworks extensions | Twitter
abeall is offline   Reply With Quote
Old 05-26-2012, 07:37 AM   #3
Sonny
Senior Member
 
Join Date: Aug 2010
Location: Sydney,Australia
Posts: 132
Default

or swapchildren..

There is a basic tutorial on display lists
republicofcode.com/tutorials/flash/as3displaylist/
Sonny is offline   Reply With Quote
Old 05-26-2012, 03:00 PM   #4
Brandondspicer
Registered User
 
Join Date: May 2012
Posts: 42
Default

K thanks now I understand ^_^
Brandondspicer is offline   Reply With Quote
Old 05-26-2012, 09:46 PM   #5
abeall
Senior Member
 
Join Date: Feb 2006
Location: Washington, DC
Posts: 2,796
Send a message via AIM to abeall
Default

Cheers!
__________________
Aaron Beall | Flash portfolio | Fireworks extensions | Twitter
abeall is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:50 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.