A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: changing the order of symbols... help pls :(

  1. #1
    flashing since v3
    Join Date
    Jan 2002
    Posts
    401
    changing the order of symbols?

    i have 3 symbols on 1 layer.... and they expand when you click on one of them.... the thing is... the order of them is messing the movie up.... did i read something somewhere about getDepth(); ? or changeDepth ?

    thanks in advance

  2. #2
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282

  3. #3
    Senior Member
    Join Date
    Mar 2002
    Posts
    298
    I think you want swapdepths, syntax is as follows:
    myMovieClip.swapDepths(depth)
    or
    myMovieClip.swapDepths(target)

    You can look it up in the help files

  4. #4
    flashing since v3
    Join Date
    Jan 2002
    Posts
    401
    i suppose it's similar to CSS's Z-INDEX ? the greater the number, the closer the symbol to the screen right?

  5. #5
    Senior Member
    Join Date
    Jan 2001
    Posts
    146
    yup -its something like that. what you should do, is on mouseover, swap the depth of that object to a higher number than the other two, so its always on top. on rollout, releaseoutside return the depth values. do the same for the other two butons and it should be fine

    sid

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