Kako da sredim ovde da se automatski ucitava film1.sfw bez onPress?
Code:
// image 1 loads the beach image using startPreload
image1_btn.onPress = function(){
startPreload("load/film1.swf");
}
// image 2 loads the building image using startPreload
image2_btn.onPress = function(){
startPreload("load/film2.swf");
}
// this function begins preloading a swf url
function startPreload(url){
// assign the url to the preloader
// it will load it internally
preloader_mc.url = url;
// set destination movie clip for loaded content
preloader_mc.target = content_mc;
// begin the transition by playing frame 2
preloader_mc.gotoAndPlay(2);
}