[Flashcoders] cue points problems

2010-03-03 Thread Gustavo Duenas
Hi coders I've been following the tutorials on the net to trigger  
events from cuepoints in a video, but it seems that they are not  
working the only one working is from 0:00:000 the others don't, here  
is my code.



mport fl.video.MetadataEvent;
import fl.video.VideoEvent;



miMovie.addEventListener(MetadataEvent.CUE_POINT, cp);
function cp(e:MetadataEvent):void {
trace(start);
  if (e.info.name==cp1) {
  trace(we are cp1);
  }
  if (e.info.name==cp2) {
  trace(we are cp2);
  }
if (e.info.name==cp3) {
  trace(we are cp3);
  }

}


I did this following a tutorial but so far is not working some help  
needed to understand why?


gus
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] cue points problems (solved)

2010-03-03 Thread Gustavo Duenas
well is working now, apparently the video encoder cs4 was the problem,  
because when I code the cue point targeting for flv flash 8 or higher,  
the events triggers on flash pro cs4...odd, but is working  
now...thanks anyway.


gus

P.s: it looks like a kind of problem for the flash f4v format, when I  
change the format to the flv flash 8 and higher turns out good



On Mar 3, 2010, at 12:55 PM, Gustavo Duenas wrote:

Hi coders I've been following the tutorials on the net to trigger  
events from cuepoints in a video, but it seems that they are not  
working the only one working is from 0:00:000 the others don't, here  
is my code.



mport fl.video.MetadataEvent;
import fl.video.VideoEvent;



miMovie.addEventListener(MetadataEvent.CUE_POINT, cp);
function cp(e:MetadataEvent):void {
trace(start);
 if (e.info.name==cp1) {
 trace(we are cp1);
 }
 if (e.info.name==cp2) {
 trace(we are cp2);
 }
if (e.info.name==cp3) {
 trace(we are cp3);
 }

}


I did this following a tutorial but so far is not working some help  
needed to understand why?


gus
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders