RowanAtt
asked on
Multiple actions/functions on a single Movie Clip/Instance name
Hi there,
I'm creating an animation and have encountered a problem, My Flash skills are very basic as you can see from this file.
Essentially, what I want to do is in the attached animation, when a balloon is clicked I want it to 'pop' (which I've managed to get working) but also trigger another movie clip with text in it.
I'm trying to get this working on frame 140 of Balloon_1, and have applied the actions directly to the movie clip balloon_mc_1
The code I've tried is:
on(press) {
gotoAndPlay(2);
Text_mc_1.gotoAndPlay(2);
}
The balloon pops, but the animation Text_mc_1 doesn't play?
Any help would be greatly appreciated. I can send the .fla seperately in needed.
Thanks,
Rowan. SVA-Xmas-2010.fla
I'm creating an animation and have encountered a problem, My Flash skills are very basic as you can see from this file.
Essentially, what I want to do is in the attached animation, when a balloon is clicked I want it to 'pop' (which I've managed to get working) but also trigger another movie clip with text in it.
I'm trying to get this working on frame 140 of Balloon_1, and have applied the actions directly to the movie clip balloon_mc_1
The code I've tried is:
on(press) {
gotoAndPlay(2);
Text_mc_1.gotoAndPlay(2);
}
The balloon pops, but the animation Text_mc_1 doesn't play?
Any help would be greatly appreciated. I can send the .fla seperately in needed.
Thanks,
Rowan. SVA-Xmas-2010.fla
ASKER
Thanks Deppanjan, unfortunately that didn't work. The flash file is now attached if you'd care to view it.
Thanks.
Thanks.
Do this please:
_root.Text_mc_1.gotoAndPla y(2);
Also check the instance name of the movieclip, it seems to be wrong.
Warm Regards
Deepanjan Das
http://deepanjandas.wordpress.com
_root.Text_mc_1.gotoAndPla
Also check the instance name of the movieclip, it seems to be wrong.
Warm Regards
Deepanjan Das
http://deepanjandas.wordpress.com
ASKER
Yes yes yes!!! Thanks heaps Deepanjan, it worked, you have no idea how long I've been trying to fix this. Thanks very much.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Very prompt in responses.
on(press) {
Text_mc_1.gotoAndPlay(2);
gotoAndPlay(2);
}
Warm Regards
Deepanjan Das
http://deepanjandas.wordpress.com