Can someone evaluate this for me?
with this script I am hoping to be pushing the variable "tile" that is being created with the sound "I" attached to it on press to and array called "soundSeq"
Then with another MC acting as a button, play the contents of the array as Audio.
This script IS pushing the variable to the array, but when the "playBTN" MC is released it does not play any audio.
the sound "I" is in my library and it has the linkage name of "I" it plays on press. I just dont know how to make an array play...
any thought??
soundSeq = Array();
_root.ball1.onPress = function (){
startDrag(ball1);
var tile = new Sound();
tile.attachSound("I");
tile.start();
}
_root.ball1.onRelease = function (){
stopDrag();
if(this.hitTest(_root.drop1)){
soundSeq.push("tile");
trace(soundSeq);
trace("test");
}
}
_root.playBTN.onRelease = function (){
for (z=0; z<soundSeq.length.start();++z){//this probably isnt right
}
}
regards
Mark Hollas