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");
}
}
}
i figured it out. I was using wrong control bar to control the play/pause. the one I create by using "new ControlBar()" was a bit off the view on the stage while i do the test.
Is there any new version of REOPS? I am using the http://code.google.com/p/reops/downloads/list
BTW: the REOPSLib.swc seems not match the source. If i use the .swc, there will have some compilation error.
Where can i get the latest one?
North America
Europe, Middle East and Africa
Asia Pacific