ActionScript 2.0 :: Stretch Stage Only When Necessary?
Aug 14, 2007
I put together this little photo gallery tonight, and overall, I'm content with how it works, but there's one thing that bothers me - unless you have a super big monitor, the scroll bar is always at the side of the screen.
Is there a way to keep the stage relatively small (550px or so) until a vertical picture comes up, and then stretch the swf to say 800px? I've used full screen Flash before, but when I do that, instead of forcing the scroll bar to appear, it just cuts off the image.
Note: Yes, this problem could be solved simply by not doing it in Flash, but eventually I plan to append this to a portfolio of sorts (which will be in Flash) and don't want to make it an external link.
View 4 Replies
Similar Posts:
May 11, 2008
I used this script: greengrass._xscale = Stage.width; But I can tell based on the gradient i applied to my fill of that greengrass MC that it's almost double it's size in width and I think it's going past the stage's width. Is there a script to make the greengrass the exact width of the stage and to not go beyond it?
View 3 Replies
Aug 1, 2006
I have:
- a flash movie with 300x20px dimensions
- a dynamic textfield
- xml data parsed into the textfield
Now I'm trying to scale the height of the movie/stage to the height of the textfield after the xmldata was parsed in. I've tried
stage._height = textField._height.
View 1 Replies
Aug 5, 2009
how can i take a small .gif image and show it as a background image that stretched on the entire stage? how can i do this using actionscript 3.0?
View 6 Replies
Jun 16, 2009
This is a feature I have wanted ever since I first used Flash 4, and I could have sworn that when I read about CS4's new feature, "stretching" the timeline was one! If it's in there, I can't for the life of me figure out how. it's possible to "stretch" a selection of keyframes or not?
Specifically what I mean is this: Say I have an animation with many keyframe tweens in it, and it last 100 frames. Then I decide I need to slow it down and last 200 frames, rather than reposition every keyframe, I would like to select the whole thing and then "scale" left or right and stretch everything to fit 200 frames.
View 1 Replies
Apr 18, 2010
I've created a slideshow with images fading in and out. After competing it, I've decided that I want each the whole thing to run a little longer. Short of changing the FPS, is there a way to stretch the timeline?
View 1 Replies
Dec 10, 2009
The problem I am having is that I cannot get my swf file to scale to fit all windows.It fits the stand aspect ratios but widescreens get the black bars on the left and right of the screen (black is set for my stage color). Is there a way to have swf's be displayed stretched horizontally for widescreens without having just the stage be stretched?[code]
View 1 Replies
Jul 6, 2009
Is there a way to do a global timeline stretch in CS4 ?
Basically I need to change the animation speed from 12 fps to 25 fps - but I dont wont the movie to play twice as fast, and I don't want to have to manually move each key frame to fix it because it will take forever!
View 10 Replies
Aug 28, 2009
Any quick way to make a 1280x1024 swf be resized to any resolution (down to 800x600 and up to 1280x1024)? This is the site: [URL]
View 1 Replies
Jan 3, 2005
Had a problem stretching the flash file to fill the screen in a projector movie. It is not made in proportion with the standard screen sizes. Is there a quicky way of doing this, without having to go into each element and resizing it. Its a huge file with a lot of cross referencing happening, and _root is used liberally everywhere.(We have made a screensaver of the same file using screensaver factory 3, and it does the stretch easily)
View 1 Replies
Jan 11, 2006
is their a scale function or class so that when i strech a movieclip (while editing in flash and while running the swf) that the clips specific contents do not stretch to the clip legnth but they "stick" to the clip edge? like:
Code:
Xmovieclip._x = _parent._width - Xmovieclip._width;
but Xmovieclip doesnt scale when its parent is scaled.
View 2 Replies
Nov 3, 2009
I am loading an image in a back mc stretched to 100% of the stage width and height. Everything works fine except in fullscreenmode - the image does not resize to fit the new stage width and height. Here is the code:
PHP Code:
function loadFunc(What, Where) {
var LoadingObject = new MovieClipLoader();
var NewObject = new Object();
NewObject.onLoadInit = function(mc:MovieClip) {
[Code].....
View 4 Replies
Feb 4, 2011
So I created an animation with a guy swing his left arm back and forth. The problem is his arm is swinging too fast. Is there any way I can extend the whole action, rather than deleting all the keyframes and redoing it?
View 1 Replies
Aug 30, 2010
url...Now click at "add image" and load any image.. The image will be shown on the shirt and the blue border shown around the image comes by-default or is it a movieclip? Secondly the image itself is a movieclip or external swf? And i know that movieclip has rotate and scaleX,Y properties that can work here but it seems that these properties are not used?? the script is rotating and stretching it due to container default properties.
View 1 Replies
Jul 22, 2011
How columnstretch and calllater work but I couldn't get resizeGrid function worked. [code]...
View 1 Replies
Jun 8, 2008
I have a background with a bitmap fill in it. The background is just a rectangle [drawRect(0,0,stage.stageWidth,stage.stageHeight)]. It get's a repeated bitmap fill and everything works fine.My problem is whe the stage is resized. If I simply set the height and width of the rectangle the fill gets stretched (even when I re-apply the fill). If I redraw the rectangle and re-apply the fill everything works fine.it.
View 2 Replies
Jan 28, 2010
I had some code for a preloader that showed a % and stretched a bar.i wanted to modify it to instead go to frame 1 through 100 (based on % loaded) of movieclip "prloader" using the integer from "frmcounter" as the frame number.doesn't work!
PHP Code:[code]..................
View 1 Replies
Jul 29, 2010
I am still making some language flashcards. there are about 20 on the page. when i click the card it is supposed to 'flip' so you can see the translation. the first card does pretty well but then as I continue to the next cards, the tween becomes worse and worse. for some reason as the card flips, its dimensions get thrown off and it becomes really wide or really tall. I want the flip to be a strictly horizontal flip over the y axis. What am I doing wrong?
View 1 Replies
Jan 26, 2009
I think this might be a tough one: Is it possible to stretch the playback of an MP3 file using Actionscript? Time stretch is when you slow a sound down but don't change its pitch. Basically, it works by chopping up the sound into milliseconds and splicing duplicates of the bits in, thereby stretching the sound.
View 1 Replies
Mar 5, 2010
I have used Ultimate 3D Carousel AS2 which is a great little flash script for 3D menus and integrated it with a script i found for getting the background to stretch full screen. But I need it so that the menu stretches larger the bigger the screen is like the background and to stay in the centre. Here is my flash file [URL].
View 7 Replies
Nov 12, 2010
I am trying to use a matrix to stretch an image along its X and Y axis. My code looks like this:
Mat = new Matrix();
Mat.createBox(MyScaleX, MyScaleY);
MyBitmapData.draw(MyDisplayObject, Mat);
When I change MyScaleX, there is no change to the scale. However, the image location gets shifted. When I change MyScaleY, both x and y get scaled. I have also tried to use:
Mat = new Matrix();
Mat.scale(MyScaleX, MyScaleY);
MyBitmapData.draw(MyDisplayObject, Mat);[ code]....
View 0 Replies
Mar 24, 2007
I'm loading an image into an empty movie clip on the stage.
is there a way that if the user rolls over this image it will then increase in size (say from 50x50 to 75x75)?
View 1 Replies
Sep 29, 2009
I want to have a background movieclip of my SWF stretch to fill the browser window. I know there is a way to detect the size of the browser window in ActionScript, but I am unsure how to tell a movieclip to use those dimensions. I don't need to worry about changing the proportion of the movie clip as it is just a solid color
View 1 Replies
Nov 6, 2003
I am working on a geoboard/pegboard project in flashMX, in which I want to stretch a rubberband kind of element. In that there are lines, on which if pressed at any point of that line, another handle shows up, and by dragging that handle, the line on which it was been pressed, stretches. and this way, the shape of the band can be changed, stretched etc.
View 2 Replies
Jul 20, 2009
Below is the image my flash file as it is right now on my browser window. I want the black area to stretch all the way to the edge of the browser instead of being confined to the stage size. I can't just simply use html to make black areas to the left and right of the flash document because the black is not there from the beginning but rather stretches itself from a line in the beginning of the movie.
View 5 Replies
Nov 7, 2008
I have a 720x576px clip (anamorphic), which I want to encode into a flv with the right aspect ratio (720x405px). In the new flash media encoder, you have three settings.
- Scale to fit
- Black borders
- Change output size
But none of those settings allows me to stretch the video to the right aspect ratio, I always get the file with 720x405, but black borders left and right.
View 6 Replies
Mar 22, 2012
I want to develop a hair style app in adobe flex. In that ,the wigs should be placed in right position.So i want to adjust the wigs in x and y directions.
how to stretch an image in x and y direction?[url]...
View 3 Replies
Oct 14, 2009
Is there an easy way to make a fluid flash website? And where do you enter this code
Stage.scaleMode = "noScale";
Stage.align = "TL";
var introListener:Object = new Object();
introListener.onResize = function() {
[code]....
View 4 Replies
Aug 25, 2009
My html has 3 parts which I want to appear vertically in the page: header swf footerThe header is 100px high and 100% of width. The footer is 25px high and 100% of width.
I want my swf to take up the remaining vertical space on the page while maintaining its aspect ration of 4:3. I'd also like automatic redistribution of space to occur whenever the page is resized.
I have attempted to put the swf into the page using dreamweaver's built in methodolgy cs4's method when creating a corresponding html page swfobject 2My swf ends up with the dimensions of the page (without regard to the header and footer). The result usually involves the other content being off screen and unwanted vertical scrollbars. Often, regardless of my choice of showall or exactfit, i get distorted aspect ratio.
Is there an approved or standard way to achieve automatic resizing of a swf based on the remaining available unused height in a page?
View 1 Replies
Oct 27, 2005
how to use actionscript to stretch a movieclip indefinately either horizontally or vertically? I have a swf file which I've set to resize when the browser window resizes and I want to have a background movie clip that 'stretches' or 'repeats' itself to accomodate the browser window at whatever width it is.
View 1 Replies