2 Replies Latest reply: Dec 1, 2011 7:49 AM by audcaic RSS

    REOPS skin template: can not receive the ControlBarEvent event.

    audcaic

      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");

                          }

       

                }

      }