Hi,
I thought I'd post this again as I need help to finish the final part of my website.
My site has a full screen toggle
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 http://www.milesaldridge.com/ So the whole page is always in view and scales until it reaches a set maximum size. Any idea how to do this? I'd really appreciate it if someone could help out with this.Code:onFullScreen = function(bFull: Boolean) { //if normal size, go to fullscreen, else go to normal size if(Stage["displayState"]=="normal"){ Stage["displayState"]="fullScreen"; }else{ Stage["displayState"]="normal"; } } //Create a listener for each time the Stage is resized var resizeListener:Object = new Object(); //Called each time the stage is resized resizeListener.onResize = function () { //toggles between + and - icons if(Stage["displayState"]=="normal"){ toggler.gotoAndStop(1); }else{ toggler.gotoAndStop(2); } } //Add the listener to Stage Stage.addListener(resizeListener); //code for toggler button toggler.onRelease = function() { onFullScreen(); }


Reply With Quote
