ActionScript 2.0 :: Smooth Scaling/Repositioning?

Feb 19, 2006

I have an mc that i want to scale smoothly, see attached image that explains it...

heres my code

Code:
shrinkMap = function (target_MC:MovieClip, target_WDTH:Number, target_HGHT:Number, target_X:Number) {
target_MC.onEnterFrame = function() {
if (target_MC._width>target_WDTH) {

[code]....

the different bits finish before each other...is there a way of making each bit (height width and x) scale in proportion of each other so they all finish at the same time? I bet its something to do with what i divide the -= values by (currently arbitrary numbers like 20 or 5)

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Smooth Repositioning Using MOVEY?

May 10, 2005

I was able to put the script together for this menubar in the attached file... It floats on a separate level just fine, but what I want is for it to smoothly move to the top of the page when a button is clicked, and stay within a two inch range. As you can see, it moves to the top of the page... but surely does not do it gracefully... it just jumps up there. how to put the rest of the script together for this...

View 4 Replies

Flex :: Scaling And Repositioning Circles Based On Resolution

Dec 23, 2009

We are building an application in Flex where we have to scale and reposition the circles based on the changed screen resolutions. Example: Current resolution: (800, 600) I draw a circle at position (410,290) with radius 10 Now If i change the resolution of screen to (1440, 960) then the circle should be drawn at the same place on the screen with respect to the new resolution with relative increase in the radius.

View 1 Replies

ActionScript 2.0 :: Smooth Box Scaling And Positioning Animation?

Oct 20, 2008

I am new in actionscripting,[code]...

Now once i click 1st button i want the box to move its position with an ease tween animation to [code]...

View 5 Replies

Professional :: MC Motiontween With Smooth Stroke Scaling?

Mar 9, 2011

i have a MC of a circle with a stroke i motiontweened the circle to scale larger, but the stroke is scaling up proportionally..is there any way to maintain stroke weight when motiontween-upscaling a shape? just when i think i'm on a roll with this program, i'm stumped like every 30min.s,

View 4 Replies

ActionScript 2.0 :: Smooth Resize Onclick And Animation To Be Smooth?

Feb 9, 2004

I have a movieclip that I want to be resized when a button is clicked. I want the animation to be smooth as if it had weight though. I read the tutorial on this but I need something slightly different, I would rather it where I can just refer to a function that is set in another movieclip. That way I could easily refer to it again and just set the height, width, and if possible, x, and y.

And my second question, is how to keep the border of my movieclip that is going to be resized the same thickness. I want the inside to be resized but the sides to stay the same width but move to stay on the edge.

View 8 Replies

ActionScript 2.0 :: Repositioning MCs Along _y?

May 25, 2005

I have 2 MCs named box1 and box2. Each one has dynamic text field named content_txt (content_txt.autoSize = true) and loads some text data from XML file.Box2 is on the top and box1 on the bottom. I need function that checks the height of box2, or of its content_txt and puts box1 on exact distance along _y axis.I have tried with this code:

Code:
onEnterFrame = function () {
b1y = box2._y;
b1v = box2.content_txt.height; //or just box2.height
spacer = 20;

[code]....

but it slides box1 without exact calculating of box2 height.

View 8 Replies

ActionScript 1/2 :: Repositioning The Registration Point?

Apr 20, 2009

I want to load a series .jpgs into an existing mcs. The mcs are 75 x 75 pix and the .jpgs are 50 x 50 pix. The problem is that I made the mcs with the registration point at the top left corner. This causes the mcs to load in at that point so that the margine between the .jpg and the mc is uneven. How can I change the registration point of each mc so that the CENTER of the .jpg is positioned the CENTER of the mc?

View 3 Replies

ActionScript 3.0 :: Repositioning Browser In Safari?

Sep 8, 2009

I would like to know if any of you have had any issues repositioning your browser using safari within flash. I'm basically using the navigateToURL method then passing a anchor tag like this. All other browsers are fine but when using safari on a mac nothing happens.

navigateToURL("javascript:'#'", "_self");

View 0 Replies

ActionScript 2.0 :: Got The Enlarging And Repositioning Working?

Nov 15, 2006

ok, i am attaching 6 pictures off stage dynamically using setInterval as a loop (so it will attach the clips once every x seconds). I'm positioning them in a line vertically, and then tweening them onto the stage with mc_tween2.Once the pics are in final position, the goal is this: 1.click on any pic and it will grow larger and position itself towards the center of the stage 2.click another pic and the last pic will shrink to original size and go back to it's original place.

#2 is where I'm having the problem. I've got the enlarging and repositioning working, and i can get the last pic to move back, but it won't go to the right place. In every variation i try, it either goes to the first position in the vertical stack, or the last position. The closest i can get to what i want is to swap the last clicked picture with the position of each picture as you click on them.basically how can i get Flash to remember the location of each pic, so when i click another pic, the last selected one will go back to it's original place?

View 2 Replies

IDE :: Repositioning Everything On The Stage (across All Frames) With JSFL?

Dec 16, 2011

I have a bunch of old FLAs with one set of dimensions, including a 60 pixel offset along the y axis. I'm writing a jsfl script to resize the stage (works), delete some unneeded layers (works), and reposition everything (doesn't work) What I'm using is:

fl.getDocumentDOM().selectAll();
fl.getDocumentDOM().moveSelectionBy({x:46, y:-60});

When I run my script, the items do in fact get moved, but on tweened clips, they get "doubled dipped," it seems: if I compare the new x and y values of, say, the end keyframe of a clip (only tweened for alpha, for example) is exactly 46 pixels farther right and 60 pixels higher up than it should be.Is there a better way to reposition everything that avoids this "double dipping" among tweens? I'd love to know! There's got to be a way, and I feel like I'm so close, but not quite there. (Of course, I'm probably way offEdit: I've performed the steps manually by turning onionskinning on for multiple frames, selecting all frames, then dragging a selection rectangle across everything on the stage, then moving everything by the desired amount, which works: when I look at the history and view the js for those steps, they look exactly like what I've typed into my script.

View 1 Replies

ActionScript 2.0 :: No Resize/scaling A Movie Clip On The Scaling Stage?

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

Professional :: Repositioning An Alpha Tween From The Stage?

Jul 6, 2010

attempting to reposition an alpha tween on the stage.
 
i'd like to do this without creating another keyframe that changes the position of the alpha tween.

View 8 Replies

Flash :: Repositioning Objects Based On A Scale?

Jan 19, 2010

I have airplanes that are flying past the screen from a top down view. when the air planes crash, I scale them down to make it appear as if they are falling closer to the ground and farther away from the screen. I have turrets on these crafts as well. they are seperate objects from the air plan. I scale them down as well. The only problem is they dont reposition correctly. they stay in their x and y positions even though they are being scaled it looks as if they are being pulled away from the air plane. is it possible to reposition them correctly based on the size on the object they sit on (i.e. the air planes)

View 1 Replies

ActionScript 2.0 :: Repositioning Nested MovieClip To Specified Coordinates

Jan 18, 2009

I have a main mc, with another mc nested inside it that needs to reposition to exact x,y coordinates (on four separate occasions). Can I put keyframes on the timeline with a script placed on the keyframes so that when my main movie reaches those frames, the nested mc repositions to the specified coordinates?

View 9 Replies

ActionScript 3.0 :: Repositioning/Resizing Loaded JPG Image?

Oct 17, 2011

I just need to know how to resize and reposition my jpg image that I loaded in with this code...

import flash.net.URLRequest;
import flash.display.Loader;
var myFileRequest:URLRequest = new URLRequest("image.JPG");

[Code]....

Right now it is sitting in it's default spot of the upper left hand corner.

View 4 Replies

ActionScript 2.0 :: Repositioning Mouse Position - Traptizium

Jun 22, 2003

i wanna resize the mouse in a traptizium but can't the right fomular to do so any expert out there erm...don't understand see the fla file. I almost got it , its easy with a square but the traptizium formular just got me nuts.

View 3 Replies

ActionScript 3.0 :: Repositioning Tooltip By Adding The Same EventListener

Jul 19, 2010

I'm setting up a row of thumbnails that will show a tooltip TextFormat object on rollover.

[Code]...

However when the screen is resize and the thumbnails are repositioned. The tooltips are still referencing to the old position. I tried to 'refresh' the positions by adding the same EventListener again on resize. But didn't work

[Code]...

View 1 Replies

ActionScript 3.0 :: Scaling Button Background Without Scaling Text?

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

ActionScript 3.0 :: Garr - Parent - Repositioning A Movie Clip

Jan 18, 2011

i know this has been covered a million times but im running into troubles repositioning a movie clip in as3 i have an mc that has this code on the timeline at frame 50:

[Code]...

View 2 Replies

ActionScript 3.0 :: Resize And Repositioning - Link Doesnt' Work?

Sep 30, 2009

I've this swf with its natively height of 550px. I've the bottom bar, height 92px. So i write this code in AS:
 
bar.y = stage.stageHeight - bar.y / 2;
 
I wrote /2 cause the registration point of the bar is in the middle of it.My pourpose was to place the bar always in the bottom, no matter how tall is stage. But as you can look from the link, it doesnt' work right.while was trying to undestand what is worng, I noticed that the effective repositiong is the duoble of what I wrote in AS3 code. If i resize of 3px larger, the bar goes 6px down, and so on.

View 3 Replies

ActionScript 2.0 :: Repositioning MovieClip (Tree Diagram) On Stage

Sep 3, 2009

I've got a huge movieclip (2500px X 2500px) sat on a stage (950px X 600px). The movieclip is like a tree diagram and I'd like to be able to click on buttons within the movieclip which will reposition it and have the effect of panning to the next item in the tree.

View 2 Replies

ActionScript 3.0 :: Scaling Movieclip Not Scaling But Repeating?

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

ActionScript 3.0 :: Scaling A Movieclip Without Scaling Its Contents

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

ActionScript 2.0 :: Non Scaling In Scaling Part

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

ActionScript 2.0 :: Non Scaling In Scaling Part?

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

Can't Get Smooth Streaming

Jan 11, 2010

I have installed FMS 3.5 on three different machines with the same less-than-optimum result.  Two of the servers were virtual on VMware ESX3 and the third is on dedicated hardware:  Quad 2.33GHz CPU, 8GB RAM, Gigabit interface, Win 2003 Ent SP2 and all latest patches through 1/6/10.

The primary problem is when I connect three PCs to the default web page and start the Getty demo video, the delivery of the video is jerky.  There are pauses - orange rotating circle - and the motion looks almost like stop-action animation.

View 4 Replies

CS3 Image Fading Not Smooth?

Apr 22, 2009

I created a slideshow where the images fade out and in using a motion tween from 0% alpha to 100% alpha in 15 frames. The fading doesn't look right to me it is very jagged. Is there a better way to do this. My files are too big to upload even when I tried to limit them to 3 images.

View 1 Replies

ActionScript 2.0 :: Way To Smooth My Animations

Jan 23, 2010

I have a simple one today. How do i smooth out my animations. They seem to be a little choppy. Here is an animation to show you what i mean [url]...w

View 3 Replies

Way To Create Smooth Animation

May 28, 2009

All I want to happen is some text (6 words) animate in from the right hand side and slow to a stop in the centre of the banner. Simple.

The problem im having is the when the text animates on it tends to stutter and appear jerky whereas I need it to be very smooth.

Ive tried animating the text using basic frame tweening with easing and with various high frame rates.Ive tried various coding methods using tweening classes (both the inherit class within flash and imported 3rd party classes) which seem to improve the animation slightly but still with some random jerkiness.[code]...

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved