He encontrado un codigo aunque esta erroneo porque no funciona pero, por más que busco sobre el tema no encuentro nada.
La web es esta: http://forums.creativecow.net/cgi-bin/new_read_post.cgi?forumid=190&postid=855652
Aquí os dejo el codigo:
Código :
stopAllSounds();
//variable for use in custom function
var bulletNumber:Number = 0;
//array of instance names of clips that initlalize alpha to 0
var listAr:Array = new Array(list1, list2, list3);
for (i=0; i <= listAr.length; i++) {
listAr[i]._alpha = 0;
};
//load .mp3 to component
myMediaDisplay.setMedia("audio/folder/audiofile.mp3","MP3");
//define cuePoints
myMediaDisplay.addCuePoint("1", 3);
myMediaDisplay.addCuePoint("2", 5.7);
//custom function that sets clips defined in above array to alpha 100
function showText() {
if (bulletNumber != 3) {
listAr[bulletNumber]._alpha = 100;
bulletNumber++;
};
};
//cuePoint listener object
var myCuePointListener = new Object();
myCuePointListener.cuePoint = function(eventObject) {
showText();
};
//attach listener object to media component
myMediaDisplay.addEventListener("cuePoint", myCuePointListener);
myMediaDisplay.play();
//on click shows current playheadTime of component to determine value of cuePoints
_root.onMouseDown = function() {
trace(myMediaDisplay.playheadTime);
};Muchas gracias por todo!! Salu2
