Packagecom.pcthomatos.ultraloader.types
Classpublic class ULVideo

The ULVideo class is the type class for all videos loaded in with UltraLoader.

Each video loaded in with ultraloader has the below properties and methods.

* For streaming videos you will need to manually change your NetConnection and NetStream in your code after UltraLoader is done loading. There is only one NetConnection for all videos loaded in with UltraLoader and it is located at $video.netConnection


Example
And example of a ULVideo Object with use of some of it's properties.
        ...
        import com.pcthomatos.ultraloader.UltraLoader;
        import com.pcthomatos.ultraloader.types.
        
        var testVideo:ULVideo;        
        var ul:Object = {init:true};
        var ultraLoader:UltraLoader = new UltraLoader(ul);
        
        ultraLoader.addEventListener(UltraLoader.LOAD_REQUEST_COMPLETE, render_Listener);
        
        function render_Listener(e:Event):void{
            ultraLoader.removeEventListener(UltraLoader.LOAD_REQUEST_COMPLETE, render_Listener);
            testVideo = ul.$video.splash;
            
            testVideo.play();
            trace(testVideo.playing);
            testVideo.stop();
            trace(testVideo.playing);            
            ...
        

See also

com.pcthomatos.ultraloader.UltraLoader


Public Properties
 PropertyDefined by
  metaData : Object
Contains the NetStream.client.onMetaData metaData of your UltraLoader video file.
ULVideo
  netStream : NetStream
Contains the NetStream Object of your UltraLoader video file.

* For streaming videos you will need to manually change your NetConnection and NetStream in your code after UltraLoader is done loading.
ULVideo
  playing : Boolean = false
Contains a boolean flag to determine if your UltraLoader video file is currently playing.
ULVideo
  src : String
Contains the source path of your UltraLoader video file.
ULVideo
  video : Video
Contains the Video Object of your UltraLoader video file.
ULVideo
Public Methods
 MethodDefined by
  
Contructor used by UltraLoader
ULVideo
  
close():void
Closes the ULVideo.
ULVideo
  
pause():void
Pauses the ULVideo.
ULVideo
  
play():void
Plays the ULVideo.
ULVideo
  
resume():void
Resumes the ULVideo.
ULVideo
  
stop():void
Stops the ULVideo.
ULVideo
  
togglePause():void
Toggle Pauses the ULVideo.
ULVideo
Property detail
metaDataproperty
public var metaData:Object

Contains the NetStream.client.onMetaData metaData of your UltraLoader video file.

See also

netStreamproperty 
public var netStream:NetStream

Contains the NetStream Object of your UltraLoader video file.

* For streaming videos you will need to manually change your NetConnection and NetStream in your code after UltraLoader is done loading. There is only one NetConnection for all videos loaded in with UltraLoader and it is located at $video.netConnection

See also

playingproperty 
public var playing:Boolean = false

Contains a boolean flag to determine if your UltraLoader video file is currently playing.

See also

srcproperty 
public var src:String

Contains the source path of your UltraLoader video file.

videoproperty 
public var video:Video

Contains the Video Object of your UltraLoader video file.

See also

Constructor detail
ULVideo()constructor
public function ULVideo()

Contructor used by UltraLoader

Method detail
close()method
public function close():void

Closes the ULVideo.

See also

pause()method 
public function pause():void

Pauses the ULVideo.

See also

play()method 
public function play():void

Plays the ULVideo.

See also

resume()method 
public function resume():void

Resumes the ULVideo.

See also

stop()method 
public function stop():void

Stops the ULVideo.

Pauses the video stream and resets the play head.

togglePause()method 
public function togglePause():void

Toggle Pauses the ULVideo.

See also