Hi, I need help to finish the final part of my website.
My site has a full screen toggle
onFullScreen = function(bFull: Boolean) {
[COLOR=gray]//if normal size, go to fullscreen, else go to normal size[/COLOR]
if(Stage["displayState"]=="normal"){
Stage["displayState"]="fullScreen";
}else{
Stage["displayState"]="normal";
}
}
[COLOR=gray]//Create a listener for each time the Stage is resized[/COLOR]
var resizeListener:Object = new Object();
[COLOR=gray]//Called each time the stage is resized[/COLOR]
resizeListener.onResize = function () {
[COLOR=gray]//toggles between + and - icons[/COLOR]
if(Stage["displayState"]=="normal"){
toggler.gotoAndStop(1);
}else{
toggler.gotoAndStop(2);
}
}
[COLOR=gray]//Add the listener to Stage[/COLOR]
Stage.addListener(resizeListener);
[COLOR=gray]//code for toggler button[/COLOR]
toggler.onRelease = function() {
onFullScreen();
}
I’ve been trying to add a resize function to this so that it can be viewed in different size browsers. Exactly like the opening page of this site [COLOR=#800080]http://www.milesaldridge.com/[/COLOR] So the whole page is always in view and scales until it reaches a set maximum size. How do I do this? I’d really appreciate it if someone could help out with this.
If the .fla is needed just ask.