Jump to content
Search Community

VideoLoader

clipclicmusic test
Moderator Tag

Recommended Posts

Hi Jack

 

Using the VideoLoader today. addASCuePoint has saved me hours today !

Jolly nice. Thank you !

 

There's a typo in the docs which threw me, though

Looks like you saved me an hour or two... but could have saved me 5 minutes more :D

"paramaters" should be "parameters"

 

For example, to add a cue point named "coolPart" at the 5-second point of the video, do:

 

myVideoLoader.addASCuePoint(5, "coolPart", {message:"This is a cool part.", id:5});

myVideoLoader.addEventListener(VideoLoader.VIDEO_CUE_POINT, cuePointHandler);

function cuePointHandler(event:LoaderEvent):void {

trace("hit cue point " + event.data.name + ", message: " + event.data.paramaters.message);

}

 

Best

 

Jason

Link to comment
Share on other sites

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...