godonholiday
04-17-2003, 10:49 AM
This code loads the first swf file onto level 1, but it loads it in the wrong place?? (THE TOP LEFT HAND CORNER)
Is it possible to specify where on the main stage I want it to load????
stop();
preloaderGraphics._visible=false;
nextMovie="contentprofile.swf";
loadMovieNum(nextMovie,1);
_root.nav.button1.onRelease=function(){
if(nextMovie!="contentprofile.swf"){
nextMovie="contentprofile.swf";
_level1.gotoAndPlay("outro");
}
}
_root.nav.button2.onRelease=function(){
if(nextMovie!="contentservices.swf"){
nextMovie="contentservices.swf";
_level1.gotoAndPlay("outro");
}
}
_root.nav.button3.onRelease=function(){
if(nextMovie!="contentportfolio.swf"){
nextMovie="contentportfolio.swf";
_level1.gotoAndPlay("outro");
}
}
_root.nav.button4.onRelease=function(){
if(nextMovie!="contentcontact.swf"){
nextMovie="contentcontact.swf";
_level1.gotoAndPlay("outro");
}
}
THIS IS THE CODE ON IN THE CONTENT PAGE??
this.onEnterFrame = function(){
//is the content still loading?
if (this.getBytesLoaded()<this.getBytesTotal()){
_level0.preloaderGraphics._visible = true;
Total = this.getBytesTotal()/1000;
Received = this.getBytesLoaded()/1000;
Percentage = (Received/Total)*100;
_level0.preloaderGraphics.percent = int(Percentage) add "%";
_level0.preloaderGraphics.progressBar._xscale = Percentage;
}else{
this.gotoAndPlay("intro");
this.onEnterFrame = null;
_level0.preloaderGraphics._visible = false;
}
};
stop();
Is it possible to specify where on the main stage I want it to load????
stop();
preloaderGraphics._visible=false;
nextMovie="contentprofile.swf";
loadMovieNum(nextMovie,1);
_root.nav.button1.onRelease=function(){
if(nextMovie!="contentprofile.swf"){
nextMovie="contentprofile.swf";
_level1.gotoAndPlay("outro");
}
}
_root.nav.button2.onRelease=function(){
if(nextMovie!="contentservices.swf"){
nextMovie="contentservices.swf";
_level1.gotoAndPlay("outro");
}
}
_root.nav.button3.onRelease=function(){
if(nextMovie!="contentportfolio.swf"){
nextMovie="contentportfolio.swf";
_level1.gotoAndPlay("outro");
}
}
_root.nav.button4.onRelease=function(){
if(nextMovie!="contentcontact.swf"){
nextMovie="contentcontact.swf";
_level1.gotoAndPlay("outro");
}
}
THIS IS THE CODE ON IN THE CONTENT PAGE??
this.onEnterFrame = function(){
//is the content still loading?
if (this.getBytesLoaded()<this.getBytesTotal()){
_level0.preloaderGraphics._visible = true;
Total = this.getBytesTotal()/1000;
Received = this.getBytesLoaded()/1000;
Percentage = (Received/Total)*100;
_level0.preloaderGraphics.percent = int(Percentage) add "%";
_level0.preloaderGraphics.progressBar._xscale = Percentage;
}else{
this.gotoAndPlay("intro");
this.onEnterFrame = null;
_level0.preloaderGraphics._visible = false;
}
};
stop();