-
Controlling a movie clip with a dynamic text box
I have a dynamic text box for the score called SCORE. What I need to happen is that when the score reaches a certain value, say 5, some script tells a movie clip called AWARD to play a certain frame.
Ignoring all syntax I have the following
if SCORE==5
telltarget AWARD
gotoandstop 2
It does absolutely nothing, although the score works.
Plz help
Timo
-
take an empty clip (mainly a controller) and enter this ON it:
onClipEvent (enterFrame) {
if (_level0.SCORE == 5) {
_level0.AWARD.gotoAndStop(2);
}
}
of course i have no idea where the variable SCORE is or where the movieclip AWARD is either. So i just put them both on level0. Just adjust this code with your own paths.
gparis
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|