Solved

Multiple actions/functions on a single Movie Clip/Instance name

Posted on 2010-11-29
7
504 Views
Last Modified: 2012-05-10
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
0
Comment
Question by:RowanAtt
  • 4
  • 3
7 Comments
 
LVL 17

Expert Comment

by:deepanjandas
ID: 34235687
Though I have not seen the fla, try doing this:
on(press) {
     Text_mc_1.gotoAndPlay(2);
     gotoAndPlay(2);
}

Warm Regards
Deepanjan Das
http://deepanjandas.wordpress.com

0
 

Author Comment

by:RowanAtt
ID: 34235711
Thanks Deppanjan, unfortunately that didn't work. The flash file is now attached if you'd care to view it.

Thanks.
0
 
LVL 17

Expert Comment

by:deepanjandas
ID: 34236454
Do this please:
_root.Text_mc_1.gotoAndPlay(2);

Also check the instance name of the movieclip, it seems to be wrong.

Warm Regards
Deepanjan Das
http://deepanjandas.wordpress.com
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:RowanAtt
ID: 34236481
Yes yes yes!!! Thanks heaps Deepanjan, it worked, you have no idea how long I've been trying to fix this. Thanks very much.
0
 
LVL 17

Accepted Solution

by:
deepanjandas earned 500 total points
ID: 34236765
Welcome!. May I request you to close this question :)

Cheers!

Warm Regards
Deepanjan Das
http://deepanjandas.wordpress.com
0
 

Author Closing Comment

by:RowanAtt
ID: 34236846
Very prompt in responses.
0
 
LVL 17

Expert Comment

by:deepanjandas
ID: 34236852
Thanks Dude :)

Warm Regards
Deepanjan Das
http://deepanjandas.wordpress.com
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Migrate From Flash Media Server 4.5 To IIS Smooth Streaming or VLC 6 1,133
Software Restriction Policy 8 856
Rotating Adobe pdf document 4 310
Flash Slides/Presnetation 4 71
This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now