really, really basic Flash question
- Started
- Last post
- 12 Responses
- ukit
OK - I'm almost embarassed to ask this, but I haven't cracked open Flash in a couple years, and for the life of me I can't figure out why this won't work. I have a movieclip, instance name "test." In the main timeline I write "test.play();". Am I missing some syntax here? It works from a button but not from the main timeline.
- fugged0
make sure paths/instance names are correct.
should work...
- ukit0
I know...WTF...it should work but it doesn't. I wonder if there is a bug in the program or something.
- brandelec0
dumb but may be try anyways:
_root.test.play();
- tkmeister0
if the mc is frame based animation then try
test.gotoAndStop(5);
or whatever and check if that works and you are calling the right mc.did u check the mc if it's labelled correctly?
- ukit0
Yes, that's exactly what I tried. I tried _root too although the way I understand it that's only necessary when you are inside another clip. It's mystifying, really...
- spl33nidoru0
Make sure your mc is labelled as such in the properties box.
Sometimes replacing a symbol/button/mc by another one saves the previous item properties.Otherwise just remove it and create it again, for some reason i've found this very helpful in occasions when something was supposed to work and wasn't.
If nothing works, post the fla
- spl33nidoru0
Another possibility.
Since Flash8 some things only seem to work once online and seen on a browser. Put your swf in a hhtml and give it a try.
- version30
someone do a mock up for him and email it so he can see it working it sounds like a character error
- brandelec0
check to see you dont have any extra space after "test "
- ryoshu0
http://hedonistlab.com/nt/bl.fla…
Simple example (Flash 8)
- gabe0
is your "test.play();" on frame 1 of the main timeline? if it is, put it on frame 2 and throw a "stop();" on it.
i bet what's happening is the code "test.play();" is on frame 1 and it's being called before your movie clip is loaded.
- ukit0
Gabe, I think you are right. I put the script on frame 2 and it works as expected. Kind of surprising - I've never excountered that before with Flash. Figured it would load the stage and then apply actions by default. Anyway, thanks everyone - I thought I was losing it for a moment there.