ActionScript 2.0 :: Resize And Move A Box
Sep 28, 2007
I'd like to make a semi-transparent box with Actionscript move around the stage and resize when you click a button with actionscript.Id like it to fade in and move upon opening, then move and resize depending on the button you push. Ive attached a sample of what Id like it to look like. [code] This is going to be the background box for my pages. I assume it will have to have something in there that remembers the old position, and size and gradually resizes it and moves it to a new position.
View 4 Replies
Similar Posts:
Jul 24, 2009
I just finished animating something, but I don't like how large it is, and I want to resize it. However when I select the objects to move them, it only selects the current key frame that I'm on for those objects, so moving it only affects that keyframe. How can I select all of my keyframes so I can make them all uniform?
View 7 Replies
May 6, 2009
How do I start to program with 3 objects on my page:
"logo_mc", "menu_mc" and "container_mc".
I'd like to put them on correct order when the stages grow (it depends of wich user's screen).
But how does it work? With 3 objects, I mean resize logo, the container and the menu..
View 1 Replies
Oct 27, 2004
I'm looking to resize and move a movie clip with Actionscript and Easing. [url]...
View 14 Replies
Aug 11, 2010
I have tried everything I can think of but I just can't get my mask to move with my content when my stage is resized.
I am using flex and I embed symbols/assets in an assets class then instantiate them in my main class and call addChild on them.
I have a Sprite (maskSprite) that is the same size as the content, and I use this as a mask, calling
Code:
this.mask = maskSprite in my main.
This works fine but when I resize the swf it stays at the top left of the window when my content moves (I am using stage.scaleMode = StageScaleMode.NO_SCALE). I have used maskSprite as a non-mask and it moves with the content fine, but when it is a mask it doesn't.
View 1 Replies
Jan 19, 2011
How would I place objects in flash, moving and resizing them, etc. and then export coordinates/rotation to a text file or something like that?
View 1 Replies
Sep 19, 2011
I am working on image and i like to scale or resize the image by dragging and resize option.same working as "free transform tool" in flash (design part); i need same functionality in application.
View 7 Replies
Jul 7, 2011
I'm having a bit of a problem here. As per the title, my flash swf file works fine when tested from the IDE, but when I publish it and open it through the browser, the stage doesn't seem to resize along with the window.I post below a bare-bones example. The "back" movie clip should resize, only it remains at the starting dimensions
Code:
import flash.events.Event;
import flash.display.MovieClip;
[code].....
View 9 Replies
Jul 29, 2009
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.
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="40" maxWidth="40" xmlns:myComponents="myComponents.*"
horizontalScrollPolicy="off"
[code].....
View 2 Replies
Dec 8, 2010
I'm having a little issue with the resize event and resize effect of a VBox.
I have something like this:
<mx:VBox id="container"
backgroundColor="0xFFFFFF"
backgroundAlpha=".9"
paddingTop="15"
paddingLeft="15"
[Code]...
View 3 Replies
Jan 4, 2009
I have a main movie here that loads in an external swf through a container mc. everything is aligned and positioned to where it should be, and they are also set to that value onresize. the problem is, when my swf is loaded in, it works fine and is in the right position, same when you resize it. BUT, if you resize the window before the swf is loaded, it misaligns, until you resize!!
View 2 Replies
Sep 28, 2010
I have a datagrid that occupies 100% of browser screen. I want the grid to automatically resize when the browser is resized to small or full screen.
View 1 Replies
Apr 11, 2004
tutorial where when you click on a movie clip it moves to a certain location on the page and then zoom in and makes it a certain size. Also i want it to move back to its original location if you click it again.I want the move and zoom to be smooth so the users can see it move across the screen then gradually get bigger.
View 5 Replies
Sep 9, 2009
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.
Here's the AS3 code in the 1st frame of my swf:
import flash.display.Stage;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
[Code]......
View 1 Replies
Dec 15, 2009
well i want to make buttons that on rollover move to left, on rollout move back to their initial position, and if clicked, they but stay this time at the final rollover place, and be there until something else is clicked. When something else is clicked, the previous button , returns to its initial place. So i ve got it all figured out except for the freeze and move part when the buttons are clicked. All it does now , is when they are clicked they freeze at the position i want, but i havent got a clue how to update them, after so they start moving back, and reacting on rollover and rollout, when the next button is clicked.
[Code]...
View 2 Replies
Dec 11, 2006
I know this is very noob, but I need a simple AS move and loop. Move an object across the stage and once out of site, loop and start over again? It needs to be a slow and endless loop.
View 3 Replies
Jan 27, 2010
Using Tween class maybe? I tried the easeOut. But if will write 2 Tween, the 2nd one will overwrite the 1st one, so I only see the obj moving in the 2nd Tween direction, not the 1st Tween direction. I know the coordinates for the 2nd Tween below is not correct (cos all coordinates shld follow the defined reference point), so I need to find out the logo's width and height. But is alright now cos it is for testing purpose.
[Code]...
View 2 Replies
May 8, 2002
How can I move (on click) the ball up? I'd like to click in ball and move it up, the gravity move it down as well...
View 1 Replies
Feb 13, 2012
I'm trying to create an animation with an rectangle. I want the rectangle to move in a loop from x=150 to x=50 and back to 150 and so on.
At the moment I can only move the rectangle forward and it stops after it moved 100px.
how to create the loop ?
This is what I have come up with. not much Iknow.
<s:Move id="moves"
target="{rect2}"
xBy="-150"
duration="1000"
easer="{sineEasing}"/>
View 2 Replies
May 11, 2010
i am creating flex 3 component when i re size the window i need to re size the labels and text.how to do this?
View 1 Replies
Aug 10, 2009
I am having some dificulty making a path for this enemy i'm trying to create... cause i want him to rotate + move, then stop, then shoot, then rotate back and move off screen... Its easier if you see it.. you can download the swf file in the zipped archive to demonstrate what i mean. I did it there with tweens. Anyway.. i tried and make it but i'm a little stuck on the stopping part... you can also see what i did in the fla file attatched...
View 1 Replies
Aug 29, 2003
i have 2 movieclips: i want to move both of them but the second movie clip will only move if the first clip reach his final destination how do i do that?
View 2 Replies
Jun 27, 2006
how to do an object move towards the mouse when i move the mouse the towards the object and backwards when i move the move away, something liike the menu on [URL]
View 2 Replies
May 5, 2009
I looked online on how to reduce file size od an .fla file for use on the web but not very clear. I have an .FLA file that is 800X600 px. when I publish it, I reduce file size, audio to mono etc, and I am getting 1.8mb file, way to large for web use. I tried an swf and flv file but same results. I need to reduce the entire document. I read to use the onion skin the highlight everything then resize but I have over 5,000 frames in my movie. Can someone explain in detail, how to highlight all of the frames in the movie, and then reduce the file to say 400 X 300 px? I am able to drag the onion skin but only to the edge of the viewable document then I must scroll over and repeat the process. there must be an easier way to highlight all frames in the movie then resize the whole thing.
View 5 Replies
Apr 13, 2010
I have swf, I want to resize it to fit browser window.So, that is width is always 100%, and height is proportional to width.[code]...
But, how can I now apply it to my swf file?
Like, i set its "id" to my "flash" (<embed src="final.swf" id = "flashme" )to pass it to the function, but I do not know how to alter params
View 2 Replies
Sep 3, 2009
I have a SWF with a video inside, later I loaded it into my website.I resized it with something like mc_loaded.width=stage.stageWidth and the same for height so i can get a fullscreen video.The problem is that this method takes a lot of the cpu performance and such.At least it becomes a bit laggy.Any idea on better ways to resize this SWF?
View 7 Replies
Oct 26, 2010
Can i resize swf to small size and make the data inside it take the same size ?
if i changed dimension "width and height" the data didn't change to the new size
View 0 Replies
Apr 19, 2011
I have an flv using the standard FLVPlayback component within my website. I want to be able to click a button to resize this player. Is this possible?
View 1 Replies
Oct 17, 2005
I want to Tween this mc I have, but when I Tween the height the it gets bigger on the bottom half, I want the top half to get bigger. Would I have to Tween the y position too?
View 9 Replies
Dec 28, 2009
Here is myattempt at using swfobject and alternate content:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>[code]........
I seem to be getting closer to this, but I can't get it to NOT resize the swf!
View 4 Replies