Hi,
I´m using the LoaderMax and it works like a charm. Now I was wondering how to trigger different actions on multiple cuepoints.
Here´s my code that doesn´t work:
IntroFirst.addASCuePoint(5.87, "one");
IntroFirst.addASCuePoint(7.76, "two");
IntroFirst.addEventListener(VideoLoader.VIDEO_CUE_POINT, _onCuePoint);
function _onCuePoint(event:LoaderEvent):void {
if (event.target=="one") {
trace("here´s the first cuepoint");
}
if (event.target=="two") {
trace("here´s the second cuepoint");
}
}
I would like to set different action on different cuepoints. Like showing one text here than doing other stuff on other cuepoint.
Any idea how to manage this? Many thanks in advance.
Zoran