Skip navigation
RyanPPI
Currently Being Moderated

How can I create a page item at a certain LEVEL within a layer?

Dec 26, 2011 3:06 PM

I mean, if I have one frame that I brought to the front, and one that I sent to the back, can I create an item that is between the two? Right now everything I create is automatically on top, and I have to do some scripting to figure out where the other items are at, and then step the new item back, back, back, etc. until I get to where I want, testing at every step to see if it's gone too far.

 

I can't find a property I can set to move a page item directly to the place in the front-to-back order that I want.

 

Am I missing something?

 
Replies
  • John Hawkinson
    5,514 posts
    Jun 25, 2009
    Currently Being Moderated
    Dec 26, 2011 5:16 PM   in reply to RyanPPI

    Z-ordering is not maintained in scripting properties, but you can use methods. Let's assume topframe and newframe. You can then use newframe.sendToBack(topframe);. Note that this is distinct from newframe.sendToBack(), which sends it all the way back. Check the docs, there are also some requirements for co-parantage between topframe and newframe.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2012 12:14 PM   in reply to John Hawkinson

    I just wanted to thank you for .sendToBack() it made life easier. There are not alot of references for this.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points