9 Replies Latest reply on Apr 1, 2014 1:19 PM by kglad

    Variable in Movie Clip [ActionScript 2.0]

    JiQ

      Hello, I am still newbie, i just want to create a very simple thing with the movie clip, i have search through internet for 2 days and found nothing.

      So, this is a problem :

      -> I have a movie clip name flip_box and in the Frame 1, i add action :

      nowtext = "0000";

      -> in the frame 15 until 23 -> I have dynamic Text -> Instance name = hitungan

      --> in the Frame 15 , I add action :

      hitungan.text = nowtext;

       

      and then in the Scene 4

      i add action in the Frame 1 :

       

      var box1:MovieClip = _root.attachMovie("flip_box_lg", "fb1", this.getNextHighestDepth(),{_x:100,_y:100});

      box1._width = 100;

      box1._height = 40;

      //_root.box1.nowtext = "50/5";

      trace(_root.box1.nowtext);

      trace(_root.box1[nowtext]);

      trace(_root.box1['nowtext']);

      trace(_root.box1.fb1.nowtext);

      trace(_root.fb1.nowtext);

      trace(_root.box1.flip_box_lg.fb1.nowtext);

      trace(_root.flip_box_lg.fb1.nowtext);

      trace(_root.flip_box_lg.nowtext);

      trace(_root.MovieClip.nowtext);

      trace(_root.MovieClip.box1.nowtext);

      trace(_root.box1.variable.nowtext);

       

      And this is the photo of the flip_box properties

       

      all the trace is undefined,

      i just want to change the Dynamic Text (hitungan) via actionscript

      all I wanna to do is Change Dynamic Text inside the Movie Clip that i attach to the stage.

      Thanks Before

      FlashMovieClipProblemScreenshot.jpg