Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added to the js api

  • Loading branch information...
commit da8ecff0ce62c4ae8283e91e8a97b7ece7064867 1 parent 8ffdb20
@arthur-debert arthur-debert authored
View
BIN  player.swf
Binary file not shown
View
2  src/OSFlashVideoPlayer.as
@@ -1 +1 @@
-package {
+package {
View
15 src/com/fj/video/VideoPlayer.as
@@ -65,8 +65,8 @@ package com.fj.video {
private var stageWidth:uint;
private var stageHeight:uint;
- private var currentState:String;
- private var currentVideo:String;
+ public var currentState:String;
+ public var currentVideo:String;
private var sharedObj:SharedObject;
private var soundtransform:SoundTransform;
@@ -81,8 +81,8 @@ package com.fj.video {
private var connection:NetConnection;
private var stream:NetStream;
- private var videoTime:Number = 0;
- private var videoDuration:Number = 0;
+ public var videoTime:Number = 0;
+ public var videoDuration:Number = 0;
private var loader:MovieClip;
@@ -125,7 +125,12 @@ package com.fj.video {
var imageRequest:URLRequest = new URLRequest(String(OSFlashVideoPlayer.imgSrc));
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, function(evt:Event):void{
- welcome.img_mc.addChild(imageLoader.content);
+ try{
+ welcome.img_mc.addChild(imageLoader.content);
+ }catch(e){
+ welcome.img_mc.addChild(imageLoader);
+ }
+
stageResize();
});
Please sign in to comment.
Something went wrong with that request. Please try again.