PDA

View Full Version : Need help in Flash


dumpala
1-19-06, 11:36 AM
Hi

I am designing a flash website for a friend. In the home page, there are several buttons(Boxes). When clicked on each box, the box expands and the text will appear on it.

However the problem I am facing is that boxes overlap each other when clicked. I just
need each one to come to the front when selected. Let say I clicked on box2 first and then I click on box1, then the box2 should go back to the normal position and only box1 will expand.

I am sure some one must have done some thing similar to this.

Thanks in advance :)

Stevens

oatesj77
1-20-06, 04:15 AM
put this on each of your rollovers, it will bring each to the front, and you can keep them all in the same layer

on(rollOver){
this.swapDepths(1000);
}

dumpala
1-25-06, 12:55 PM
Hi Oatesj77,

Thanks for the reply. I tried using the code you gave. But with this the actions that I wrote inside the movie clip are not working. Is there a way to do this and also have the action script inside the movie clip work?

Thanks,

Stevens

oatesj77
1-25-06, 02:40 PM
so placing the code on the rollover is messing up the AS attached to the MC right?
try this then, in your actions layer, put this;
instancename.onRollOver.swapDepths(1000); repeat for other instance names. if that won't work, post your .fla file and i'll take a look,

dumpala
1-27-06, 03:10 AM
Hi Oatesj77,

Thank you very much. The script is working fine now.

Thanks again

Stevens.