OnCuePoint Clarified
i was recently trying to use the .onCuePoint event handler for a project of mine, having caught a glimpse of it in the index. seemed like the right tool for the job... upon checking the good ol' F1-Help on the subject, i immediately had my eyes ravaged with some wonderful uber-engineer-class code that was less than clear in it's use.
bottom line: confusion.
so after snorking some serious Jolt and hunting the web for tidbits, i didn't really find anything much useful. but after snorking more serious Jolt and experimenting like a mad scientist, i finally bashed together this surprisingly useful arrangement. now, why couldn't the docs be this clear and useful on the subject? i blame lawyers...
i hope this helps anyone else trying to use this really sweet event handler.
NB.
Attach Code
function superTurboFunction(mediaCue)
{
switch (mediaCue)
{
case "kaboom" :
doSomeExplodingStuff;
break;
default :
pickNoseAndFart;
break;
}
}
myNetConn_nc = new NetConnection();
myNetConn_nc.connect(null);
myNetStream_ns = new NetStream(myNetConn_nc);
myVideo_vid.attachVideo(myNetStream_ns);
myNetStream_ns.onCuePoint = function(cueEventObject:Object)
{
trace ("Elapsed Time: " + myNetStream_ns.time);
trace ("Cue Point Name: " + cueEventObject.name);
trace ("Cue Point Type: " + cueEventObject.type);
superTurboFunction(cueEventObject.name);
}
myNetStream_ns.play("ScreamingNinjaDeath.flv");
Transition Effect ? Clarified
not b annoyin'—the last thread went dark
anyone splain how to do the pattern-over-image transition effect seen here?:
http://www.templatemonster.com/webs...lates/6383.html
Transition Effect ? Clarified
not b annoyin'—the last thread went dark
anyone splain how to do the pattern-over-image transition effect seen here?:
http://www.templatemonster.com/webs...lates/6383.html