ActionScript 2.0 :: CS3 Dynamically Zooming And Panning The Stage?

Nov 4, 2009

I have a full screen movieclip, in which there are 5/6 buttons that can be draggable around the stage.Now, when i click on a button, a series of images appear at the side of it.What i want to do is to zoom in and center the stage on the photo if i click on it (something that you can see here: ml under the "projets" button, try and click one photo).It may seem tricky since you can actually drag and move the buttons, but logically it is not since i can retrieve the button position (and i place the photos inside it, so the distance between the button._x and the photo._x is in some way retrievable).

Anyway what i'm finding really tricky is the method to zoom and move the stage camera in order to center the photo.i thought of using the transition tweens on the _root in order to change the _xscale and _yscale to zoom, and the _x and _y to move itBut from here i have two problems: how can i determine the right amount of zoom if the stage is in full screen (so with all resolutions possible), and how much the _x and _y properties change after the zoom is done (because it seems to me that after changing the _xscale and _yscale of the _root, it changes the _x and _y values in it, in a way in which i have to add even 2000 pixels in order to center it)

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Dynamically Zooming And Panning The Stage?

Nov 4, 2009

I have a full screen movieclip, in which there are 5/6 buttons that can be draggable around the stage.Now, when i click on a button, a series of images appear at the side of it.What i want to do is to zoom in and center the stage on the photo if i click on it (something that you can see here: http:[url]....... under the "projets" button, try and click one photo).

It may seem tricky since you can actually drag and move the buttons, but logically it is not since i can retrieve the button position (and i place the photos inside it, so the distance between the button._x and the photo._x is in some way retrievable).Anyway what i'm finding really tricky is the method to zoom and move the stage camera in order to center the photo.i thought of using the transition tweens on the _root in order to change the _xscale and _yscale to zoom, and the _x and _y to move it.

But from here i have two problems: how can i determine the right amount of zoom if the stage is in full screen (so with all resolutions possible), and how much the _x and _y properties change after the zoom is done (because it seems to me that after changing the _xscale and _yscale of the _root, it changes the _x and _y values in it, in a way in which i have to add even 2000 pixels in order to center it

View 1 Replies

ActionScript 3.0 :: Zooming And Panning An Image?

Sep 30, 2008

I have loaded an image from a particular site using loader..and added this loader in a Movieclip.. I want to zoom and pan theimage.. How to zoom particular area of a movieclip?

View 6 Replies

ActionScript 2.0 :: Dynamic Panning/zooming?

Sep 10, 2005

I'd like to build something working like with dynamic panning and zooming. Where can I find some cool tutorial to learn this effect?

View 9 Replies

Flash :: Ios - Zooming And Panning UILoader Image In CS5

Dec 2, 2010

I have an app in Flash CS5 that I am creating for iOS. I am loading an external image to a frame with the UILoader. I would like to be albe to use the two finger zoom and single finger up/down/left/right movements on the image I loaded with the UILoader.

View 1 Replies

Flash :: Dynamically Positioning A Sound With Panning

Sep 13, 2011

I'm trying to make a minigame in Flash about a mosquito getting smashed and I want the mosquito sound to pan as if it was in front of the player (so if the mosquito is at the right of the screen pan would be 1, and -1 in the left).Problem is, I can only use the sound transform in the play method, which leaves me with many sounds playing if I want to update the position of the mosquito (which happens on enterframe, 24fps).

View 1 Replies

ActionScript 3.0 :: Dynamically Creating And 'zooming' Stars?

Jan 10, 2012

I'm interested in dynamically creating (duplicating) a movie clip of a star and placing it randomly on the stage. It should then grow in size and change it's x & y location so it moves off the stage. (I've attached a file to hopefully show what I'm interested in.)I can hack this out in AS 2.0 but it has to be in AS3 and my old high school programming education just isn't hacking it.

View 1 Replies

ActionScript 1/2 :: Zooming To Mc And Not To Stage?

Oct 22, 2009

I had found a script which zooms to your mouse position, but is there a way to adapt this so it only zooms in on the particular mc and not the mouse position?

[Code]....

View 1 Replies

ActionScript 1/2 :: Use Stage.align For Panning?

Oct 11, 2010

I have created a working flash file virtual_cube.swf in which I use Stage.align for panning. When virtual_cube is loaded from another swf (whhich I have no control over) the use of Stage uses the loader swf.I know _lockroot is nice for when using _root, is there something similar for Stage? like _lockStage?

View 1 Replies

ActionScript 2.0 :: Zooming To MovieClip Not Stage

Oct 2, 2009

Based off this script:
onClipEvent (mouseDown) {
zoom = true;
dir = 1;
if (dir == 1) {
pt = {x:_root._xmouse, y:_root._ymouse};
}} onClipEvent(mouseUp) {
[Code] .....
How would I go about zooming based on the mc you select rather than your point on the stage?

View 0 Replies

ActionScript 3.0 :: Panning Around With Mouse Or Buttons On Stage

Feb 21, 2010

I will be having probably hundreds of objects on the stage, which would be very big, at least 4000x4000px. I wanted a way of panning around, either with the mouse or with buttons. I basically want it to work like Googlemaps does. It can't be a single image as everything on the stage is moving and dynamic, coming from an SQL database. Flash was the only way I could think of to bring a graphical map alive from SQL data.

View 3 Replies

ActionScript 3.0 :: Broad MovieClip Panning On Stage

Mar 13, 2011

Got movieClip with images(jpgs) inside (dozen of imgs) -about even 3000-4000px width and panning it seems to be little choppy. Is there any way to make it smoother? I encountered the problem far far ago, yet in as2, now on as3 I try to figure out how to avoid that 'jumping style' behaviour. Tried with (stage.framerate = someHigherVal than 30) but no effect. I saw many smooth panning galleries around the web, so it definitely is my wrong approach to the issue.

About functionality: it's a simple stuff of course - pressing nextBtn or prevBtn shifts movieClip left or right for some x value. I can see about 5-8 pictures on the stage at once. Rest of them are outside of stage, but order is set before, so they are not rendered(are outside the stage) but have their proper x value. So they are ordered in this movieClip.

View 0 Replies

ActionScript 2.0 :: Zooming Object Using MovieClip On Stage

Oct 16, 2009

I have movie clip(1) on the stage, all I want to do is using another movie clip(2) as a button that when you click zooms the movie clip(1) bigger, then clicking movie clip(2) again takes it back to the original place.

_root.zoom.onEnterFrame = function() {
if (mouse_over_zoom) {
_root.zoom.nextFrame();
} else {
_root.zoom.prevFrame();
}};
I tried _parent and it will not let me save the file as flash 8 anymore.

View 0 Replies

ActionScript 2.0 :: Continuous Zooming And Moving Out Of The Stage?

Mar 4, 2010

[URL]you will see moving "?" marks here how to do this with action, i want the position should be random every time and should continuous,

View 1 Replies

ActionScript 2.0 :: Interactive Image Panning Within Stage Size

Dec 26, 2006

[URL]. I don't want to pan the image within the Stage size. I want to pan the image within a masking. So that I can adjust the width & height anytime.

View 2 Replies

ActionScript 2.0 :: Reate A Multi Stage Zooming Menu?

Sep 6, 2005

Would anyone have any tutorials on how to create a multi stage zooming menu like in the following demo links?

[URL]

Is this done with actionscript or manually tweening several clips? I can't quite seem to get my head around zooming in and out of several layers. I am currently looking into the Laco tween class as a possible solution, but I was hoping that someone might already understand how to achieve this effect.

View 1 Replies

ActionScript 1/2 :: Zooming In And Then Zooming Out In (Without Scaling The Image)?

Feb 27, 2012

Basically I want to know if there is a way to go from a zoomed in version of something, and then seeing the whole image in another frame. (By pressing a button)

Let's say there's a tree, I would bascially like (upon pressing a button which I can do) to zoom out and see the whole scenery. Is there a way I can do this without actually changing the size of the image?

View 2 Replies

Professional :: Animations: Zooming In And Zooming Out?

May 25, 2011

I look at professional animations and notice the camera-like effects they manage to put into these animations. I'm wondering how I can do the same without having to just enlarge or reduce a movieclip across the stage. Is there any way to add a camera view on your animations or do you just have to bear with Flash's basic necessities?

View 1 Replies

ActionScript 3.0 :: Dynamically Write To Several Textfields That Exist On The Stage But Have Not Been Dynamically Placed There

Apr 2, 2010

[Code]...

That's the correct syntax for this? I want to be able to dynamically write to several textfields that exist on the stage but have not been dynamically placed there.

View 3 Replies

ActionScript 3.0 :: Dynamically Add To Stage

Jul 29, 2009

I have several library MovieClips that I dynamically add to the stage via AS.I need to be able to have several default properties set on the MovieClips each time they are instantiated. For example, I have library Clips named "car" "bike" and "unicycle."I have them exported for AS.At certain points I randomly create a new instance of one of these Clips. Now, I won't know which particular one will be created until the time comes, but I need the new instance to have certain properties (such as car.wheels = 4, or bike.wheels = 2) so that I can check and/or manipulate those values later.I guess I could write some massive "if" statement that would assign all the properties at the time they are created, but that seems counterintuitive.I tried adding AS to the Clip in the library, which seems to get close. If I do that, then the dynamic instantiation has the correct properties, but the values of those properties ends up being set to 0 or a null value.[code]All that works except, if I trace v1.wheels, it ends up being 0, no matter which MovieClip type gets instantiated, and v1.type ends up being null. So the properties are there (not undefined) but not the values.How can I get it to keep the properties AND their default values when the Clip is instantiated? I don't want to have to do: if it's a car, then wheels = 4, seats = 5, etc. because my actual file has 50 or so clips with about 10 properties each, and each instance of the clip will only exist for a few seconds before being removed.

View 3 Replies

IDE :: Add Bitmaps To The Stage Dynamically?

Feb 27, 2009

I have a jpeg that I have exported to actionscript via the library. The jpeg class is "adcouncil". If I want to add it to the stage I would use the following code:

Code:
var adcouncil = new adcouncil1(150,150);
var myImage:Bitmap = new Bitmap(adcouncil)
printMC.addChild(myImage);

The problem is that I want to ad these Bitmaps to the stage dynamically. My first instinct is:

Code:
var adcouncil = new this["adcouncil1"](150,150);
var myImage:Bitmap = new Bitmap(adcouncil)
printMC.addChild(myImage);

[Code].....

View 2 Replies

ActionScript 2.0 :: Set The Stage Color Dynamically

Apr 15, 2003

How to set the Stage Color Dynamically?

View 3 Replies

ActionScript 3.0 :: Way To Resize Stage Dynamically

Jan 31, 2010

The stage is set to 955x465 at 1st frame but once load external movie clip in 2nd frame the stage is set to 955x855 size, is it possible to do it?

View 1 Replies

Changing Stage Size Dynamically?

Dec 10, 2009

I am doing one completely dynamic interface which is control by an admin module. what i want to do is to control the stage size by this admin module.When i press submit in the admin module it will generate one xml file which is connected to the flash flie, and what ever the size is mention in that xml that has to reflect in that flash file. I don't want any supporting file only one swf. I don't know whether it is possible to adjust the stage size dynamically on fly.

View 3 Replies

ActionScript 3.0 :: Get Images Onto Stage Dynamically?

Feb 16, 2009

How can we get .jpeg/.gif/.swf files present in server onto the stage dynamically?

View 3 Replies

ActionScript 3.0 :: MC Load Dynamically To Stage?

Sep 18, 2009

i try create a code, which can load to stage Movie Clips(which included pages of my website)
I've created code which load Movie Clips on stage,Listing of this code:

ActionScript Code:
var currentPage:MovieClip = index_mc;
var indexPage: pageIndex =new pageIndex();

[code].....

View 0 Replies

ActionScript 3.0 :: Dynamically Add Rectangles To The Stage?

Jul 21, 2010

I'm trying to develope a simple game, but i'm facing a problem, that I think it is simple for yours who have experience in AS3.I trying this:

Quote:
...LOOP.........
var dynamicObj:MovieClip = new MovieClip();

[code].......

View 3 Replies

ActionScript 2.0 :: Dynamically Add Several Of Same Movieclips To Stage

Sep 20, 2010

Im trying to dynamically add several of the same movieclips to the stage. This movie clip contains a textbox. I have tried the following:-[code]I have my movieclip exported fror actionscript with the identifier as (textbox). This code does add a textbox to the stage however it only adds the second one which says "goodbye" but not the first one which should say "hello"? I thought the loop should go round twice and add a 'newText1' and a 'newText2'??

View 3 Replies

ActionScript 2.0 :: Stage Can Be Resized Dynamically?

Mar 14, 2006

how the stage can be resized dynamically?....if i load a jpg into a movieclip the stage should resize itself to the size of the image file.

View 5 Replies

ActionScript 2.0 :: Dynamically Resize The Stage?

Jan 18, 2004

I was wondering if it was possible to dynamically resize the Stage with AS..

View 1 Replies







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