• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 257
  • Last Modified:

flash movies

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
designaire
Asked:
designaire
  • 4
  • 4
1 Solution
 
CyanBlueCommented:
Maybe something like this???

graphic.animation.woman.gotAndPlay(2);

CyanBlue
0
 
designaireAuthor Commented:
That's what I thought would work but for some reason it doesn't. Are you sure you can do it??
0
 
CyanBlueCommented:
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
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
designaireAuthor Commented:
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
 
CyanBlueCommented:
I thought that you said that woman is inside the animation???

Try this...

_parent.woman.gotAndPlay(2);

CyanBlue
0
 
designaireAuthor Commented:
Maybe I didn't explain it right. Thanks! It works.

What does parent mean?
0
 
CyanBlueCommented:
Basically _parent means a movieClip that is in one level above...

CyanBlue
0
 
designaireAuthor Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now