1 Reply Latest reply on Oct 22, 2011 6:57 AM by kglad

    as2 to as3

    Venkom Level 1
      this.createEmptyMovieClip(“vFrame”,this.getNextHighestDepth());
      vFrame.onEnterFrame = videoStatus;
      var amountLoaded:Number;
      var duration:Number;
      ns["onMetaData"] = function(obj) {
      duration = obj.duration;
      }
      

       

      help please convert as2 to as3

        • 1. Re: as2 to as3
          kglad Adobe Community Professional & MVP

          use:

           

           


          var vFrame:MovieClip=new MovieClip();
          this.addChild(vFrame);
          vFrame.addEventListener(Event.ENTER_FRAME,videoStatus);
          var amountLoaded:Number; var duration:Number;

          ns.client=this;
          function onMetaData(eobj:Object):void { duration = eobj.duration; }