ActionScript 2.0 :: Dynamic Panning/zooming?
Sep 10, 2005I'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 RepliesI'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 RepliesI 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 RepliesI 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)
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 RepliesI 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
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?
Well I finaly found a script that's pretty easy but interesting to use.Then I thought, why not help the community out and try to convert it into a class which would be very dynamic and easy editable.Well I figured out how to draw a dynamic mask, but after that I can't seem to figure out how to implement the mouseOver/imgPanning into the same piece of code.[code]The commented section is the code that makes the img pan, but I cant seem to figure out how to implement this so people can still use the drawRectangle function.
View 2 RepliesI 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 Replieshow to zoom into(hence zooming the map outward) set locations on a map, yet only those locations. I have a script which will zoom to your mouse location and also if I set the specific x and y, but still zooms when clicking on any other spot.
how do I zoom to only a set location and nothing else within a map/image.
I'd like to have my viewers mouse over any of the MovieClips on the scene and using the keyup / keydown have only that MC scale up or down. The scaling should only effect the moused over MC.Here is what I'm using for the scaling on one MC now...
var Listener:Object;Listener = new Object();Listener.onKeyDown = function(){ if (Key.isDown(Key.UP)) { container._xscale = container._xscale + 10; container._yscale = container._yscale + 10; } if (Key.isDown(Key.DOWN)) { container._xscale = container._xscale - 10; container._yscale = container._yscale - 10; } };Key.addListener(Listener);
I was just working on trying to zoom a flash movie using JS but cant seem to get it and it is driving me nuts any of you guys know how I can zoom in and out on a movie using action script.
View 2 RepliesI need some help with creating two buttons that zoom in and out of a movieclip.I have seen some tutorials and tried them, but got really confused.My problem is that the movieclip i want zoomed (in & out) is embedded inside another movieclip, so don't know how to refer to it.
also where should i declare the zoom function?? on the movieclip or on the main timeline?? the buttons that control the zoom in and zoom out are on the main timeline.
I built a website, and used flash buttons. The actionscript I have works great on them (AS3) using CS4 adobe suite, however, each of the buttons loads the page in a separate browser tab. Any clue how to fix it? Below is a copy of my AS3, and the buttons are as follows
[Code]...
im trying to make a interactive panning with the tutorial Interactive Image Panning, Page 1 but this swf loads in a main swf.. the code i am using for the panning swf is
this.onMouseMove = function() {
constrainedMove(bg_mc, 8, 8);
};
[Code].....
the problem im having is that the panning swf is using the with of the main swf that is holding it
I'm creating a little game right now, and so far I've got zooming on to the mouse position to work. However, I can't get panning to work. The only movie clip I have so far has the instance name of picnic.
View 8 Repliesthis tutorial. [URL]How can i disable this image panning?I'm trying to disable it, when i pressed some button..
View 3 RepliesI am creating a timeline for a website and there is a slider located at the top of the page where the years are defined on a line. The slider should be able to be moved by the clicking on it with the mouse and dragging it thus moving the timeline information directly below it from right to leftIf ANYONE knows any codeing or how to accomplis this in Flash CS3 actionscript2; If I am able to log onto my tempsite soon... I will upload what I have so far and post it in a reply thread. I have created the pieces of this puzzle in flash just as a motion tween to show the concept that I am trying to create. When the slider moves right to a greater year, the timeline image pans left. Vice versa
View 1 RepliesI am a really new flash beginner, and I am trying to write a site that can do this scaling in/out effect (Not an image) after when a new file is loaded into the page. I've googled and searched everywhere and couldn't find a possible solution to this.You can see the site, there is a zoom in and moving effect after a button/new page is loaded.
Here are the scaling, I am talking about:http:[url]....
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]....
I've been racking my brain for the last week, and Im trying to use a map to zoom into certain city locations on the map. I believe each city locatio needs to be its own mc on the map, but don't know if I need to zoom into the coordinates of that mc? Here's what I have so far which zooms in on the appropritea x/y coordinates. Does anyone have any advice as how to change this or some other way to zoom into certain locations on a a map?
[Code]....
I am a really new flash beginner, and I am trying to write a site that can do this scaling in/out effect (not on image) after when a new page is loaded into the page.You can see the site, there is a zoom in and moving effect after a button/new page is loaded.
View 2 RepliesI am attempting to create a map that has the ability to zoom in and out as well as a click and drag feature.What I need help on is setting boundaries for the map. I can set them for the map when it is zoomed out, but they need to change as the map zooms in. I've been searching lots of forums lately to see if anyone can help, but no luck yet...
View 1 RepliesIs there a way to that users can zoom in and out of an image and even drag/scroll around if the image is larger than the viewing window.I looking for a way to creativly display my portfolio in a limited area.
View 2 RepliesI am working with some images in my flash file which I would like to have at a high resolution (approx 1280X1024 px or even higher) so that they look good when they take up a full screen, and also when I zoom IN on them.
However, when I import them into flash at this size, they look TERRIBLE when zoomed OUT (eg. to 15%). They look fine in photoshop at this size.
[URL]...The link above is similar idea of what website i wanna built.any this kind of tutorial making the panning effect?
View 2 RepliesI want to have an fullscreen swf loaded inside another swf wich is embeded in the html pageSince it is fullsreen, no browser scrollbars will apear, but the content of my swf will be dinamic, so it is possible that the height of swf is bigger than browser window.
View 4 RepliesNew to flash. Started usig it less than a week ago. I have tried to find the exact tutorial to help me with these things, but they didn't cover exactly what I was looking for, or they where AS2. I'm using AS3. I don't know how to add a zip file to this post, so I uploaded it to a webpage.[URL]..
Question 1: I'm using a panoramic image as the background for my site. I want it to scroll/pan side to side following the mouse as it moves side to side. I would like it to ease in and out of the motion as well.
Question 2: When the mouse moves over the menu text at the top I want the other navigation buttons to appear under it for a few seconds, and become active, then dissappear if un-clicked.
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[URL]How can i disable this image panning?I'm trying to disable it, when i pressed some button..
View 0 RepliesMy file is going great but I would like it to only pan right or left when the mouse reaches close to the edge and stop while I am working within the middle area. Here is my panning code and the file can be viewed at [URL].
[Code]....