I created a game but I made the game a little too big. It would be alot of hard work to shrink all the objects in the game and resize the stage using the properties. I notice that in debug mode the whole screen can shrink when you adjust the window. Is there some code I can use to this on it's own? and will it be costly on performance ?
There is a flash with stage size 800 x 600. I need to add a button on the flash. When the user clicks the button one time, it will resize to be 600 x 450 and all MC, texstbox, button insides the flash would be resized on scale.
When the user clicks the button 2nd time, it will resize to be 400 x 300 and all components resize on scale as well.
When the user clicks the button 3rd time, it will resize to 800 x 600 again.
I have a button on stage in a movie, the button ("clicker") is empty apart from the "hit" frame. The stage and button are 300x300 and i'm using swfobject to display the flash movie at 400x600 pixels. I have the following actionscript.[code]I want teh button to expand to fill the available stage space (which is 400x600 in this example) so i use the following...
-clicker._width = Stage.width;
-clicker._height = Stage.height;
however this causes the button to disapear from the stage, possibly down to 0x0 in size, as opposed to filling the available stage space. It's been a while since i worked with actionscript so it's probably something obvious, however i can't seem to spot what the problem is.
I'm a bit newbie to Flash, and I'm experiencing strange problem. I have a simple flash application, which when run in Flash player looks like this
the thing is, when i resize the Flash player window, a black frame becomes visible to the left and top of the stage. is it possible that these black areas start appearing on the right side, and the stage to be fixed on the left? The strange thing is that these black areas are not part of the stage, the (0,0) coordinate is there where white area starts and not in the corner of the window, and that's causing me problems.
I'm writing a web based flash app that's written entirely in AS3. I have objects on the screen as part of a GUI. I would like the user to be able to resize the window, or make it full screen. I would like everything to auto-scale with the resize, but also remain in the same relative position on the stage.
When you resize the browser window the thumbnails rows and columns adjust accordingly to fit.I've managed to attach the thumbnails correct when my enableButtons() function is called but i'm unsure how to approach resizing.
Stage.align = "TL"; var numberOfGalleries:Number = 20; var thumbMarginX:Number = 163; var thumbMarginY:Number = 109;
I've got a large bitmap (1920 x1306) that my client wants as a bg image, scaled to the swf size on load (930 x 575); but that can "grow" up to its original size if/when a user expands the browser window. All the rest of clips in the display list are to remain in place (except for a copyright clip, which they want to always be 14 pix above the bottom of the browser frame. I've tried loading the bitmap dynamically at full size and then using scaleX,scaleY to set it's initial smaller (930x575) size, and I've tried just setting the height/width of the dynamically loaded image using the math of scaleX,ScaleY just in case the scaleX "transformed" the bitmap so that it couldn't return to its original size. Both make the bitmap the right size. But the resize function below did nothing to it, (or the copyright.y.) THEN I tried just putting the bitmap into the display list (both sizing methods work here, too). But even as an original member of the compiled display list, the resize event is still not reaching the target. Everything I've seen on the web says this should work - but...no luck.
I have two problems. 1) the page still will not resize properly until the window is resized. I assume I have the code wrong somehow.
2) I changed the height of my menu object to stage.stageHeight, but its now coming up squished and only about 30% of the actual height of the stage. I am not sure what I did as it seemed to be working before, but I cant seem to fix it.
I've been working on my web site. Its 1024x768px and i run it fullscreen.I come up with an idea and i added a 1024x768px to the top (new frame) as a intro like action.When i try to resize it to stage it will really mess up my whole pageAnd also cause of resize my movieclip stretched and looking terrible
Code: var xy:Tween = new Tween(asdasd, "_x", Strong.easeInOut, 0, -1024, 2, true); Code:
They show their work as the pageďż˝s background which can be resize with the browser window, but their navigation always stays the same.I know how to achieve the resizing effect, but it resizes the whole stage including navigation.
I have Buttons which I have rotated vertically within a Canvas, that is working fine. The problem occurs, when the user resizes the window to a small size a vertical scroll bar appears, I would rather have each button squashed upto a smaller size.
i am trying to build a resize with stage image gallery. It is working except for when you first open the swf the image has it's original size, and it only adjusts to the stage when the stage resizes.s the script:
i have a swf that i export and it works perfectly its 600 kb and runs nicely. i put proper code to for the stage to resize and keep all the movie clips in their right place, center ect.. but when i resize my swf my animation slows down drastically? there is a lot of animations movie clips within movie clips for it to all work.
I m doing the background to resize according to the stages width, but if I use OnEnterFrame event, the movie get to slow.What is the other way of doing the same? Detecting the changes in width of the stage and only then aplying the resize of the background?
This seems fine to me as this position is in relation to the stage, yes? If I convert this to a position local to the container I get values ~0,0.
Code: var stagePoint:Point = new Point(ellipse.transform.pixelBounds.topLeft.x, ellipse.transform.pixelBounds.topLeft.y); var localPoint:Point = join.canvas.globalToLocal(stagePoint);
When the flash player window is resized, the coordinates change entirely. Instead of being at 400,300 the transform property indicates that it is at 640, 510. I assume this is because the viewport has changed, but the stageWidth and width properties of the stage do not change.