all groups > flash (macromedia) > july 2005 >
You're in the

flash (macromedia)

group:

very simple q about menu


very simple q about menu raj144
7/7/2005 10:08:29 PM
flash (macromedia):
i have a gui that has Movie clips placed. The movie clip has a onPress event
in which i create menus for the movie clip.
so u left click u get a menu.

Now the problem is that the menu is not on top. it spaws behind the movie
clip.

how can i make it come to the top?

thanks
Re: very simple q about menu XmenFlash
7/7/2005 10:19:58 PM
hi raj,

r u attaching the menus when the mc is clicked or is that you ask the mc to
play from some frame?

if u'r attaching it : change the depth of the menus greater than the depth of
the mc. -- use swapDepths() && getDepth()

else : place the menus in the top layer than the mc layer

hope this helps
Re: very simple q about menu raj144
7/7/2005 10:30:20 PM
wooohooo

that worked

but i had to do this
if(this.getDepth() > myMenu.getDepth())
this.swapDepths(myMenu);

b/c it only worked every odd clicks (1st, 3rd, 5th, etc) haha
AddThis Social Bookmark Button