Skip navigation
audcaic
Currently Being Moderated

REOPS skin template: can not receive the ControlBarEvent event.

Nov 15, 2011 9:43 PM

I am using Luna skin template from REOPS and create a test script to listen the ControlBarEven.pause ControlBarEvent.play.  I never got the event.

 

here is the test code.  Any idea?

 

package

{

          import com.realeyes.osmfplayer.events.ControlBarEvent;

          import com.realeyes.osmfplayer.controls.IControlBar;

          import com.realeyes.osmfplayer.controls.ControlBar;

          import flash.display.MovieClip;

          import flash.events.Event;

 

          public class Test extends MovieClip

          {

                    public var controlbar:IControlBar;

 

                    public function Test()

                    {

                              trace("ControlBarEvent Testing.........");

                              controlbar = new ControlBar();

                              controlbar.addEventListener(ControlBarEvent.PAUSE, onPauseTest);

                              controlbar.addEventListener(ControlBarEvent.PLAY, onPlayTest);

                    }

 

                    private function onPauseTest(p_evt:ControlBarEvent):void

                    {

                              trace(" got controlbar pause event");

                    }

 

                    private function onPlayTest(p_evt:ControlBarEvent):void

                    {

                              trace(" got controlbar play event");

                    }

 

          }

}


 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points