?
Solved

flash movies

Posted on 2008-10-03
8
Medium Priority
?
253 Views
Last Modified: 2010-04-03
I have a flash movie woman and I want to play it inside another flash movie called animation. They are all in a movie called graphic. How to I write the actionscript?


I can play it from the base file
graphic.woman.gotAndPlay(2);
0
Comment
Question by:designaire
  • 4
  • 4
8 Comments
 
LVL 37

Expert Comment

by:CyanBlue
ID: 22636356
Maybe something like this???

graphic.animation.woman.gotAndPlay(2);

CyanBlue
0
 

Author Comment

by:designaire
ID: 22636581
That's what I thought would work but for some reason it doesn't. Are you sure you can do it??
0
 
LVL 37

Expert Comment

by:CyanBlue
ID: 22636673
That should work if your description is correct...

Try adding trace() lines to see if you are targetting it correctly...

trace("graphic.animation = " + graphic.animation);
trace("graphic.animation.woman = " + graphic.animation.woman);

CyanBlue
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:designaire
ID: 22650213
Thanks...it says undefined

Both these work from the base file
graphic.animation = _level0.graphic.animation
graphic.woman = _level0.graphic.woman

woman and animation are on the same level but I want to play the movie woman from inside the animation. maybe you can't do it.
0
 
LVL 37

Accepted Solution

by:
CyanBlue earned 200 total points
ID: 22653540
I thought that you said that woman is inside the animation???

Try this...

_parent.woman.gotAndPlay(2);

CyanBlue
0
 

Author Comment

by:designaire
ID: 22653906
Maybe I didn't explain it right. Thanks! It works.

What does parent mean?
0
 
LVL 37

Expert Comment

by:CyanBlue
ID: 22659829
Basically _parent means a movieClip that is in one level above...

CyanBlue
0
 

Author Comment

by:designaire
ID: 22659911
thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
Suggested Courses

840 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