private function resizeContent(evt:Event):void{
if(stage.stageWidth >= minWidth){
mcBG.width = mcOverlay.width = stage.stageWidth;
textHolder.x = stage.stageWidth/2 - txtLoading.width;
bitmapper.redrawToStage(mcLines, sprLines, 0, 3);
mcPreloaderBar.loadingBar.width = stage.stageWidth;
mcPreloaderBar.loadedBar.x = -25;
}
if(stage.stageHeight >= minHeight){
mcBG.height = mcOverlay.height = stage.stageHeight;
textHolder.y = stage.stageHeight/2 - txtLoading.height;
bitmapper.redrawToStage(mcLines, sprLines, 0, 3);
mcPreloaderBar.y = stage.stageHeight - mcPreloaderBar.height - 100;
}
}
I see flash..I think a bit of a copy paste should do the trick:
Code:private function resizeContent(evt:Event):void{ if(stage.stageWidth >= minWidth){ mcBG.width = mcOverlay.width = stage.stageWidth; textHolder.x = stage.stageWidth/2 - txtLoading.width; bitmapper.redrawToStage(mcLines, sprLines, 0, 3); mcPreloaderBar.loadingBar.width = stage.stageWidth; mcPreloaderBar.loadedBar.x = -25; } if(stage.stageHeight >= minHeight){ mcBG.height = mcOverlay.height = stage.stageHeight; textHolder.y = stage.stageHeight/2 - txtLoading.height; bitmapper.redrawToStage(mcLines, sprLines, 0, 3); mcPreloaderBar.y = stage.stageHeight - mcPreloaderBar.height - 100; } }
I think a bit of a copy paste should do the trick:
Code:private function resizeContent(evt:Event):void{ if(stage.stageWidth >= minWidth){ mcBG.width = mcOverlay.width = stage.stageWidth; textHolder.x = stage.stageWidth/2 - txtLoading.width; bitmapper.redrawToStage(mcLines, sprLines, 0, 3); mcPreloaderBar.loadingBar.width = stage.stageWidth; mcPreloaderBar.loadedBar.x = -25; } if(stage.stageHeight >= minHeight){ mcBG.height = mcOverlay.height = stage.stageHeight; textHolder.y = stage.stageHeight/2 - txtLoading.height; bitmapper.redrawToStage(mcLines, sprLines, 0, 3); mcPreloaderBar.y = stage.stageHeight - mcPreloaderBar.height - 100; } }
I see flash..
Not much
I'm am trying to think of what that code that Dan posted means, but I can't be bothered wondering anymore about what it actually does.
I tried slapping something similar together in Java a month or so ago.I'm am trying to think of what that code that Dan posted means, but I can't be bothered wondering anymore about what it actually does.
Just a function that executes whenever the browser is resized, and positions/scales all of the objects accordingly. Fun fun fun!
I tried slapping something similar together in Java a month or so ago.I'm am trying to think of what that code that Dan posted means, but I can't be bothered wondering anymore about what it actually does.
Just a function that executes whenever the browser is resized, and positions/scales all of the objects accordingly. Fun fun fun!
It went horribly, horribly wrong. Oh, it compiled and ran alright, but the on-screen objects got pretty...odd.