A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Controlling a movie clip with a dynamic text box

  1. #1
    Junior Member
    Join Date
    Jul 2002
    Posts
    24

    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


  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center