AdWonder :: Powered by EyeWonder


AdWonder Blog

Adding Flash 8 Video Cue Points

With Flash 8 and above, adding video events and cue points has become even easier. EyeWonder welcomes the use of more recent improvements to video functionality and encourages its use, so please follow the information below to create an ad which uses video cue points as opposed to the custom EyeWonder events associated with the AdWonder videoScreen component.

Because of some other constraints and issues that come up if a netStream object isn’t created and destroyed upon video playback, the netStream object which is encapsulated by the videoScreen object is created dynamically upon playback. Follow the steps below to add a listener for cue points with an AdWonder videoscreen object.

video_ew.addEventListener("playbackStart",setCues); //checks for when the netStream object has been created

function setCues() {
video_ew.ew_netStream.onCuePoint = myCuePointListener; //dynamically setting the cuePoint to the created netStream object
}

myCuePointListener = function (infoObject:Object) { //your function
EW.sendToPanel(infoObject.name); //shows the name of the cue point as embedded in your video
if (infoObject.name == "[name of cue Point]“) {
//do whatever happens on this cue Point
}
};

Note: if you are planning on using cue points, please alert your EyeWonder rep prior to sending the encoded file or source file so that the encoding team is aware of embedding cue points.

One other cool thing while I’m here (and look for these in the next component templates release for a real world example).  I was just reminded when helping out one of our EyeWonder flash dudes that there is a very handy clickthru event.  Since the browser interprets focus differently depending on your OS, etc., it is wise to go ahead and contract the expandable units whenever your users have clicked through so that they have a nice clean page to come back to.  There is an event (”clickthru”) which is accessible through the EW object regardless of scope that you can use to perhaps close the expandable, do something else, etc., on any and all clickthrus in the unit.  This is especially useful when you have multple clickthrus speckled throughout the unit and would like to handle them all the same way:

EW.addEventListener(“clickthru”, listener); //calls an event listener for all clickthrus, regardless of scope

function listener() {
onMouseOut(); //close the expandable
}

Leave a Reply

You must be logged in to post a comment.


©2007 EyeWonder, Inc. Unleash the Wonder.