PDA

View Full Version : Drawing lines to the foreground



oddballs24
November 18th, 2008, 11:20 AM
I have a script which creates a sprite to draw lines, but I cant see the lines if I have a background image, because it is always in front of them. How do I move them to the foreground?

Thanks!

delfeld
November 18th, 2008, 03:38 PM
This link might help:

http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000148.html

It helps to intentionally make an object to draw on (Graphic, Sprite, etc.), since it's easier to keep track of it, and then setChildIndex or swapChildren as needed.