Novo

Forum kao aplikacija na telefonu

Dodajte forum na početni ekran i koristite ga kao aplikaciju, sa menijem na dnu ekrana.

  • 6 odgovora
  • 4.158 pregleda

Najnovija ↓

Kako da sredim Preloader? 20.12.2007. u 15:32 · pre 229 meseci #1
Kako da napravim preloader u kome cu pozvati da se ucitava jedan drugi .SWF file? :-)
Re: Kako da sredim Preloader? 20.12.2007. u 23:18 · pre 229 meseci #4
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);
}
Re: Kako da sredim Preloader? 21.12.2007. u 00:10 · pre 229 meseci #5
Samo startPreload("load/film1.swf") umesto
image1_btn.onPress = function(){
startPreload("load/film1.swf");
}
Potpis
/(bb|[^b]{2})/
Re: Kako da sredim Preloader? 22.12.2007. u 14:49 · pre 229 meseci #6
ovako?

// image 1 loads the beach image using startPreload
startPreload("film1.swf")){
startPreload("film1.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);
}
Re: Kako da sredim Preloader? 22.12.2007. u 18:27 · pre 229 meseci #7
Ovako
Code:

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);
}
Potpis
/(bb|[^b]{2})/
Prijavite se da biste odgovorili u ovoj temi.PrijavaRegistracija

Premeštanje teme