ActionScript 3.0 :: Correct Way To Stretch Without Scaling?
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
Similar Posts:
Jun 29, 2010
I am having a rather odd issue with scaling down large images. When scaled down quite a bit, the images' right most edge of pixels stretches across the area that should just be the image. All I am doing, is loading an image using the loader class, and scaling it down as a thumbnail. One very odd thing about this issue, is that if I move the parent object x position to the left, it starts to correct itself.
View 9 Replies
Mar 25, 2009
I'm created a grid of squares and when the users mouse is within 100 pixels of a square it scales up. This is pretty easy and is code that is widely out online.When a square scales up I need the others to move position accordingly to the new scaled square. This is where I am running into trouble. Here is what I have so far.
Code:
public function updateGridPositions() : void
{
for (var i:int = 0; i < gridItemsArr.length; i++) {[code]......
I use TweenLite for the tweening engine. Can anyone help in trying to figure out how I can keep the spacing of the grid correct according to the scaling of each item in the grid.
View 9 Replies
Aug 11, 2010
i found out when i add a dynamic mask to my preloader progress bar (for transition out) its not scaling correct. I think its because my bar isn�t tweening to the correct "stageWidth" during progress until it completes. I setted it up like that:
// Preloder Progress Bar
Code:
bar.scaleX = 0;
bar.graphics.beginFill(0xff3333,1);
bar.graphics.drawRect(0,0,stage.stageWidth,4);
[code]....
Somehow it looks like 100% of the loading progress doesn�t represent the entire stageWidth so my bar animation finishes some pixels before reaching stageWidth end. NowJust noticed it now after adding a dynamic mask to my preloaders progress bar.
View 9 Replies
Dec 30, 2009
I'm trying to get the depths of all the blocks to be at the correct levels at the correct times so that the 3d effect is maintained. I've tried many things, but have had little success. All the instances of the blocks are stored in an array, but since it's adding them in accordance with when they're added to the stage, it doesn't help me locate them to swap depths. Is there a way to arrange them by location on the board?
View 4 Replies
Mar 11, 2008
I've search through all the threads with "scaling" and "resizing" and can't find the solution.
Basically I have a GUI element on a gallery that I don't want to scale, while the rest of the page is free to resize/scale.
I think I need to add a listener of some sort to the stage, but I'm not sure how to do this.
View 2 Replies
Feb 23, 2009
I'm building some navigation that extends all the way from left to right across my SWF. When the window resizes, I'd like the nav buttons to get wider but not have the text on the buttons get wider.
The buttons themselves are rectangles with a vertical gradient and a stroke around the outside. I'm using 9-slice scaling so the stroke doesn't scale, but the middle (gradient) gets wider or narrower.What'd be great is to be able to select an object or layer and say "don't scale, even if the rest of this movie clip scales". Is there a way to do that, or will I have to do it via actionscript?
View 1 Replies
May 20, 2010
i have a diagonal movieclip that I am trying to scale along with the background video. The background video scales perfect, I am attaching the diagonal movieclip (br in the code as bottomright) with addChild
Instead of scaling with the window, it seems to repeat such as the image is displaying. this is the main section of the code that is doing the scaling
var br:mc_bottomright = new mc_bottomright();
addChild(br);
//proportional scale
if ((stage.stageWidth / stage.stageHeight)> (owidth/oheight))
[code]....
View 4 Replies
Apr 10, 2009
I am trying to achieve an effect of scaling a movie clip on click...very similar to [URL] When the user clicks on See, Hear, Play and Shop boxes, the boxes expand. I have created a box movieclip that has a bar on top. This bar is a movie clip inside the box movieclip. When i try to scale the main box movieclip, the internal bar movie clip scales as well. How to stop this?
View 2 Replies
Apr 18, 2004
really sorry to bring this one up again. I've managed to create quite good working gallery. What I'm trying to now is create a menu that is attached to the scaling part but does not scale it self - in other words just changes position. here's an example of what I mean: galleru #1
View 14 Replies
Apr 18, 2004
What I'm trying to now is create a menu that is attached to the scaling part but does not scale it self - in other words just changes position. here's an example of what I mean: galleru #1
View 13 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
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
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
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
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
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