PDA

View Full Version : Strange problem


siLent`skY
08-03-2007, 01:03 AM
Hello, i have 3 movie clips on 1 frame. They are small squares but when i mouseover on them they expand. When they expand how to make the expanded one to be on the top of all of them because in my case when the one i mouseover expands it is transparent and the other 2 small squares can be seen behind.
sry for my bad english
thank you

cmbarsotti
08-03-2007, 03:42 PM
Your english is fine. I believe this is what you want. Let me know if I misunderstood.

Place three MovieClips on stage with instance names "mc1", "mc2" and "mc3"

mc1.onRollOver = mc2.onRollOver = mc3.onRollOver = rollOverMc;
mc1.onRollOut = mc2.onRollOut = mc3.onRollOut = rollOutMc;
mc1.origDepth = 1;
mc2.origDepth = 2;
mc3.origDepth = 3;
mc1.swapDepths(mc1.origDepth);
mc2.swapDepths(mc2.origDepth);
mc3.swapDepths(mc3.origDepth);
function rollOverMc() {
//set to highest depth
this.swapDepths(4);
this._xscale = this._yscale = 200
}
function rollOutMc() {
//return to original depth
this.swapDepths(this.origDepth);
this._xscale = this._yscale = 100
}

siLent`skY
08-03-2007, 04:46 PM
Its not working :(
Here is my fla file and what happens...
thank you

cmbarsotti
08-03-2007, 04:56 PM
I don't see the script I provided in your fla file all I see is stop();

I also don't see instance names on the three movieClips.

put this script on frame 1 of your main timeline and give the movieClips the three instance names "mc1", "mc2" and "mc3"

siLent`skY
08-03-2007, 05:16 PM
i tried with ur code and the instance names but i didn't work, that why i upload the original fla file so u can see it and find something else that works

cmbarsotti
08-03-2007, 07:55 PM
Look at the attached file. It does work. You're going to have to adjust this to your situation.

For example, on roll over I'm doing a simple _xscale, _yscale. You'll want to change it to gotoandPlay.

Also, remove the script from the buttons (they are conflicting with the script on the main timeline), just place script on the main timeline.

siLent`skY
08-03-2007, 08:03 PM
what flash u use?
when i try to open the file it give me "unexpected file format"

cmbarsotti
08-03-2007, 08:13 PM
I'm sorry. This is a Flash 8 board and I posted a Flash 9 file. Check the new file below.

siLent`skY
08-03-2007, 08:31 PM
thats the same file i uploaded no change...

cmbarsotti
08-03-2007, 11:25 PM
wow. I'm not sure you want to take advice from someone who can't even upload a file.

I'm pretty sure this one is saved as Flash 8, if not then there must be a bug in Flash 9 "save as..." function.

johandegrieck
08-10-2007, 04:25 AM
i believe mr Cmbarsotti did a nice job... follow his advise and you'll get things to work properly