Log in

View Full Version : Quick Flash Question



the penguin
01-29-2010, 04:33 PM
In the attached file, why do I have to put _root on:

on(release) {
_root.squareMc.play();
}

in order for the squareMc to play.

And why do I have to double click the circleMC in order for the squareMc to play again. Can't i just click it once to make the movie clip play again.

I really appreciate your help, i've been stumped with this for a while now.


Thanks,
The Penguin

bluewalrus
01-29-2010, 04:41 PM
The _root brings it back to the main timeline, otherwise it is looking for that movie clip in the current location. For an html example

This will show image.jpg anywhere
<img src="http://www.site.com/image/image/image.jpg" />

but this
<img src="image.jpg" />
will only work when in the 2nd image directory
http://www.site.com/image/image/

the penguin
01-29-2010, 05:03 PM
Thank you for the quick response!

Ok, i understand _root is to find its location. But more importantly what about the second question?

Why do I have to double click the circleMC in order for the squareMc to play again. Can't i just click it once to make the movie clip play again.


Thanks!

bluewalrus
01-29-2010, 06:14 PM
Not sure can't open your project, is it in a web browser or when you publish or both? Can you put the swf online?

the penguin
01-29-2010, 09:29 PM
I figured it out!

Thanks for your help :)