Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 28-05-2004, 16:45   #1 (permalink)
Neuer User
 
Registriert seit: Dec 2002
Ort: Lutherstadt Eisleben
Beiträge: 57
cuepoints in FLVs

Hallihallo,

kurze Anfrage: Kann man in FLV's cuepoints setzen und diese in Flash auslesen?

Danke
__________________
jörg aderhold

programmierung / training
http://www.jaderbass.de
jaderbass ist offline   Mit Zitat antworten
Alt 29-05-2004, 14:33   #2 (permalink)
agedoubleju
Gast
 
Beiträge: n/a
Klar, kein Problem, funzt wie bei Audios:
Beispiel:
ActionScript:
  1. _global.cpointer = 0;
  2. mp.setMedia("meinFilm.flv","FLV");
  3. mp.controllerPolicy = "auto";
  4. mp.totalTime = 16;//Länge eines flv, nicht notwendig bei mp3
  5. mp.play(0);//beginnt bei x Sek
  6.  
  7. mp.addCuePoint("CP1", 5);
  8. mp.addCuePoint("CP2", 10);
  9. mp.addCuePoint("CP3", 15);
  10.  
  11. var myCuePointListener = new Object();
  12. myCuePointListener.cuePoint = function(evtObj){
  13.     _global.cpointer++;
  14.     trace("cpointer: "+_global.cpointer+" heard " + evtObj.type + ", " + evtObj.target);
  15.     if(_global.cpointer==4){
  16.        
  17.         mp.removeEventListener("cuePoint", myCuePointListener);
  18.         _level0.cp3();
  19.     }
  20. }
  21. mp.addEventListener("cuePoint", myCuePointListener);
  22.  
  23. function cp3(){
  24.     trace("Stop!");
  25.    
  26. }
  27. this.stop();
  Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 03:13 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele