This is a discussion on "Cue Points and SWF Files" within the Flash & Multimedia Forum section. This forum, and the thread "Cue Points and SWF Files are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Cue Points and SWF Files
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Cue Points and SWF Files
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? I'm willing to credit a paypal account if you can make this work. Thank you. |
|
|
|
|||
|
Re: Cue Points and SWF Files
Is pass the name of your movieclip container where the quiz.swf is being loaded? It looks like you are missing some stuff, but since I am at work and about to head into a bunch of meetings...
Read this, it might help - Flash 9 - http://livedocs.adobe.com/flash/9.0/...1af6-7ca1.html Flash 8 - http://livedocs.adobe.com/flash/8/ma...=00003484.html
Last Blog Entry: Yay!? (Oct 8th, 2007)
Last edited by Sgaspar11; May 31st, 2007 at 18:48. |
|
|||
|
Re: Cue Points and SWF Files
Hi Sgaspar11,
"pass" is the parameter value for my cue point. I didn't know if I even needed to create a parameter, for my quiz but I did it anyway. My cue point for this example would be: end 00:01:37:400 Event Parameters for "end" quiz pass You're right, I'm not doing the action scripting correctly. Ufda! Thanks for the links, I'll look that over. If you run into anything regarding loading a swf after a video is done playing , let me know. Thanks. |
|
|||
|
Re: Cue Points and SWF Files
Cool, so let me clarify
You're telling it to load a .swf. Are you loading that into the same .swf as the flash movie(it looks like this might be the case based on your script)? Or it is opening in a seperate window? How do you have/want that to work?
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
|||
|
Re: Cue Points and SWF Files
Good question. I do indeed want the quiz to load into the same swf as the movie (shortvid.swf).
If I don't set any cue points and just do loadMove("quiz.swf") in my shortvideo.swf it will load the quiz. What I can't do is play my shortvid first and then load the quiz. I must not be writing my script correctly and/or not setting up my cue events right. I'm not real strong at action scripting so I'm getting a little beyond my skill sets. If I only had the mind of a programmer. |
|
|||
|
Re: Cue Points and SWF Files
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
![]() |
| Tags |
| cue points, flash 8 |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| rep points | Gerry | Webforumz Cafe | 4 | Aug 29th, 2007 16:26 |
| Flash 7 cue points | edd_jedi | Flash & Multimedia Forum | 3 | May 3rd, 2007 12:41 |
| Reputation points.... What are they? | ivyholly | Webforumz Cafe | 48 | Apr 25th, 2007 18:31 |
| Rep Points | crewdesign | Webforumz Suggestions and Feedback | 1 | Oct 16th, 2006 02:31 |