Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cue Points and Loading Swf File

Status
Not open for further replies.

nicesite

Technical User
May 31, 2007
2
US
I have a project that involves a 3 minute video (avi) and a Flash quiz. Once the video is done playing, I need it to load/play my flash quiz without the user clicking a link.

I'm not doing a great job making this work. I created a new Flash 8 doc and imported my vid and set a cue point for the end of the movie. My idea is once the cue point hits the end of the movie, load quiz.swf.

The cue Points are:
Name Time Type
end 00:03:34.643 Event

Parameters for "end"
Name Value
quiz pass

The action script is:
var vidList:Object = new Object ();
vidList.cuePoint = function(cues) {

pass.loadmovieNum("quiz.swf", 0);
}

vid.addEventListener("cuepoint", vidList);

Am I way off base on this? Thank you.
 
The first thing is to see if your cue point is actually working. Do you get the output from the following?
Code:
vidList.cuePoint = function(cues) {
   for(var s in cues){
      trace(s + ": " + cues[s]);
   }
   for(var s in cues.info){
      trace("info." + s + ": " + cues.info[s]);
   }
}

Kenneth Kawamoto
 
Hi Kenneth,

Thanks for the response. Since I don't know action script well, I might be a little slow with this stuff.

Should I copy and paste your code into my action script and see if my cue points works. The video played, but it didn't do anything once it stopped.

Any help would be appreciated.

Thanks




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top