PDA

View Full Version : Access a movie clip variable problem


punjab
10-19-2005, 01:02 PM
Hi All!

I have a simple movie which consists of two movie clips (mcIntro1 & mcIntro2) which run individual animations.

Each movie clip has an ACTIONS layer with a Boolean variable named ‘playing’.
On the first frame it is set to true and the last set to false.

In the main movie I want to access the variable. I have tried all sorts to achieve a result but am still having no joy.
At present I’m just trying to display the variable in the ‘output window’ via the command:
Trace(_root.mcIntro1.playing);

Could someone please help out (…---…)!!!

Kind regards,


Punjab

Ricod
10-19-2005, 09:16 PM
Welcome to as[org] !

I'm thinking there are several possibilities here, all path related :

- the mc isn't labeled "mcIntro1"
- the variable isn't named playing or it doesn't exist at the moment you call it or it's not in "mcIntro1"
- the mc "mcIntro1" isn't in _root (for instance, the swf is loaded into another swf)

To learn more about paths and how they change according to the situation, take a look at the following tutorial : http://www.actionscript.org/tutorials/beginner/paths/index.shtml