0 Replies Latest reply on May 7, 2007 12:36 PM by vectorg6

    currentFrame infinite update

    vectorg6
      Im trying to get the text attached to currentFrame to update.
      With my code im getting the currentFrame of my loaded SWF but its static and does not update as the SWF frame advances.
      How can I make the event loop to get a live update of the currentFrame?

      <mx:Script>
      <![CDATA[

      import flash.events.*;

      public function loadHandler(e:Event):void{
      var c:MovieClip = myLoader.content as MovieClip;
      if( c ) {
      trace("loadHandler fired");
      currentFrame_txt.text = String(c.currentFrame);
      }
      }

      ]]>
      </mx:Script>

      <mx:Text id="currentFrame_txt" height="15" width="40" color="#ffffff"/>