Jump to content
Search Community

HOURS OF RESEARCH~

rgrant1993 test
Moderator Tag

Recommended Posts

Okay after hours  of hardcore research and trial and error i have found the solution to change the video time using LoaderMax.

 

I am sharing this code to help ease someone elses frustration with the documentation -.-

 

Forgive any sloppyness, i have only one two days experience in AS.

 

 

make sure you declare your video as so:

var video:VideoLoader = new VideoLoader("fly.mp4", {name:"myVideo", container:this, width:800, height:450, scaleMode:"proportionalInside", bgColor:0x000000, autoPlay:false, volume:0, requireWithRoot:this.root, estimatedBytes:75000, autoDetachNetStream:true,onProgress:progressHandler});

Then once the stream is detatched you can call this to set the video play to where ever your heart desires (i am using mine with a seek bar).

video.videoTime = 200;

This is equivelent to doing

_NetStream.seek(200);

You may notice slower load times when detatching the ns from the viewloader, but it works fine the way i need it to.

 

 

WHEW... frustration finally paid off..

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...