Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

passing variables

Posted on 2000-03-21
3
Medium Priority
?
186 Views
Last Modified: 2010-04-03
I have created a Flash movie and this movie has a movie clip within it. I want to be able to pass a variable called count from the small movie to the master movie where it is positioned.

Is this possible and how do I refer to it. the smaller movie has an instance name of P1.

Thanks for the help.
0
Comment
Question by:RICHARDH
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
RoyKruyshaar earned 200 total points
ID: 2642032
Hi Richardh,

When you have a 'main' movie called MovieA and a 'child' movie called MovieB, the instance you can say in your child movie  
Set Variable: "../:Count" = Value (any number, ofcourse).
A great help for me was when you test the movie, Click in the Control menu - List Variables (Ctrl+Alt+V).
The variables in Flash are horrible, but when you know the trick, is easy as it goes.
Good Luck!
When you have further questions, feel free to ask.

Roy
0
 
LVL 4

Expert Comment

by:RoyKruyshaar
ID: 2642063
You can also look at:
http://www.were-here.com/forum/actionscript_project/start.html
Is a tutorial about action script (movie in a movie in a movie)

Again goodluck

Roy
0
 

Author Comment

by:RICHARDH
ID: 2645973
Thanks, worked perfectly.
0

Featured Post

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!

Question has a verified solution.

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

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
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): …
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
Suggested Courses

773 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