Hey, that is a good idea. The only problem is that my function takes an argument and i cannot succeed in placing it inside the timeout function.
Ex:
Code:
function addTrack(trackId){
var isIE = navigator.appName.indexOf("Microsoft") != -1;
if(isIE){
flashMovie = player.window["add-player-as3"]
}else{
flashMovie = player.document["add-player-as3"];
}
flashMovie.addTrackById(trackId,true,true);
}
Code:
setTimeout("addTrack(trackId)",1000)
The trackId variable is not recognized. Is it possible to pass an argument like this inside the setTimeout() function?
Thanks
Jason
Bookmarks