ActionScript 3.0 :: Flash - Zoom And Pan Map?

Jun 10, 2010

What I'm trying to make, is a map with zoom and pan option. I want it to work exactly like it works on this website:What I've got now is only working zoom, but not properly:

addEventListener(MouseEvent.MOUSE_WHEEL, Zoom);
function Zoom(e:MouseEvent):void
{

[code].....

View 7 Replies


Similar Posts:


ActionScript 3.0 :: Disable Function - Zoom In And Zoom Out By Clicking Button?

Feb 7, 2012

I want to make a scope wich can zoom in on button click and go back to previous stage (zoom out) also by clicking a button.Now i made it work for zooming in (when i click my button it zooms) but when i want to zoom out everything i tried didn't work .Here is the code:

//button for zoom in
zoom.addEventListener(MouseEvent.CLICK,glassMove);
function glassMove(event:MouseEvent):void{[code]..............

View 1 Replies

ActionScript 2.0 :: Continuous Zoom - Change The Code To Zoom In At The Same Amount?

Jun 7, 2004

i've made a button that zooms into a movie clip on a rollover, but it on moves it a certain amount each time you rollover the button. code below:

on (rollOver){
_root.Mypic._width += 5;
_root.Mypic._height += 5;

}
wot i want it to do is to continue zooming in for as long as the mouse is over the button, is there anyway i can change the code to zoom in at the same amount but do it continuously until the mouse is moved off the button. Also is there anyway that i can set it so that the zoom stops at a certain percentage, i.e. it only zooms in so much and then stops. What i mean is that the user can zoom in but the picture will only zoom in to say 200% of the original size.

View 14 Replies

ActionScript 2.0 :: Telescope-camera - Move Around The Scene And Zoom-in Or Zoom-out?

Dec 14, 2005

I am working on flash application TELESCOPE or Camera. My goal is to move around the scene and zoom-in or zoom-out I found that if I move scene, I have to move registration point, because I always want to zoom in the centre of my ocular. So far application works fine only if I move, zoom-in and than before I move any further, zoom-out! But when I move, zoom-in (not fully), move again and zoom-in again, the second zooming doesn't appear on desirable registration point

View 1 Replies

Actionscript 3 :: Zoom In Zoom Out Loop In Certains Buttons?

Dec 15, 2011

I have this code for my effect to zoom in and zoom out in certains buttons

canada.addEventListener(MouseEvent.MOUSE_OVER, canadaover);
function canadaover(event:MouseEvent):void
{[code]....

the problem is when u reach certain corner of the button it kinda gets into a loop, any ideas how can i fix this?

View 2 Replies

Android :: If Its Zoom In Or Zoom Out On Flex / Air TransformGestureEvent

May 13, 2011

Using flex / air 2.6 working on an Android device, I am using a canvas with a TransformGestureEvent for zoom in on a map. The listening of the efect is working ok, but I can´t seem to find the information on wether the user intended zoom in or zoom out (fingers getting closer or getting apart).I expected the intention of the gesture to be identifiable with the offsetX and offsetY properties of the event, as you will do on a swipe gesture event. But I always get 0 for both properties, no matter how I do the gesture in the device.How can I know if the fingers getting closer or getting apart in a gesture zoom event?

View 1 Replies

ActionScript 2.0 :: Zoom In Zoom Out Double Click

Oct 26, 2009

i had a flash file, and the image was dynamically loaded in a movieClip. when i double click the image it will zoom max. and another double click it will retain its best fit.

View 0 Replies

ActionScript 2.0 :: Activate Zoom And Then Zoom In / Out

Apr 14, 2009

I need to have a button to be clicked for the zoom effcet to be activated, then when the mouse hovers over an image it should zoom to 200%. I have 40 images which I'd like to have this effect by.Also when the cursor is over the image is it possible to make the change the cursor to a magnifying glass?

View 1 Replies

ActionScript 2.0 :: Zoom/Pan UI Won't Center On Zoom In?

Jul 8, 2009

I'm developing a full screen zoom/pan UI. Everything is working great, except I can't get it to center on the correct point when zooming in.

You can view what I have here: [URL]

The numbers in the top-left corner are the navigation, and the white boxes represent the individual sections.

I have a large container movieclip that fills the entire page. Inside of that movieclip (site) I have all of my individual section movieclips (section1-section6). I'm also using a dynamic registration point class to dynamically set the registration point of the "site" movieclip to the current selected section, so that the zoom in/out is centered on that section.

When a user clicks on a navigation item, I first reduce the _xscale and _yscale of "site" to 80, when that is complete I move _x and _y to the position of the selected section's movieclip. When that is complete, I set the _xscale and _yscale back to 100. Right now, it is not zooming in centered, so I have a final step where I correct the _x and _y position after zooming back in.

If I don't zoom in/out I can successfully pan the movieclip and center on the correct section. I believe the problem is that I am moving the _x and _y to the position of the "site" movieclip as if it is at 100%, but since it is at 80% it is not moving to the correct position. I tried to fix this by giving the _x and _y coordinates as:

endX = endX / 100 * 80;

Which made it a little better, but still not centered. I have a feeling that there may be a fundamental flaw in my approach to this.

For some reason the forum won't let me attach my .zip, so I posted it online, as well: [URL]

My code below, in case you don't want to download the file:

Code:
tile._alpha = 0;
currentSection = section1;
//** Set Stage **//

[Code]....

View 1 Replies

ActionScript 2.0 :: Several MCs To Zoom In On Mouse Over And Zoom Out

May 9, 2004

How to make several MCs to zoom in on mouse over and zoom out to it�s original scale on mouse out??? all this with actionscript and with some ease (elasticity) to make the motion more natural?

View 2 Replies

ActionScript 2.0 :: Zoom Activation And The Zoom In / Out?

Apr 14, 2009

I need to have a button to be clicked for the zoom effcet to be activated, then when the mouse hovers over an image it should zoom to 200%. I have 40 images which I'd like to have this effect by.Also when the cursor is over the image is it possible to make the change the cursor to a magnifying glass?

View 3 Replies

ActionScript 2.0 :: Edit Movie When Right Click The Movie / Wont Show All Things Like 'zoom In' / 'zoom Out'

May 23, 2002

how do you edit a movie so that when you right click the movie...it wont show all the things like "zoom in" or "zoom out"???

View 2 Replies

ActionScript 2.0 :: Make Banner's "zoom In And Zoom Out" On A Movie?

Aug 6, 2003

i have visited a very good flash site..I gotta give credit for their dedication and their work as well. [URL] I wonder, how they put all those animation in a banner with that small size of file ? I mean banner's size is not big at all. My other question is that, how do you make it "zoom in and zoom out" on a movie..Like on those banners. Do they binding all the layers to make it a movie then resize it on the movie or what?

View 3 Replies

Zoom In And Zoom Out Of Image?

Aug 11, 2011

i want to zoom in on an image by clicking one particular region and zoom out by clicking again. how can i achieve this.

View 6 Replies

Flash - Zoom Out On Image?

Mar 22, 2011

I'm looking to zoom in on an image: Example: Picture of a church. Zoom in as far as possible on the church tower.Then it needs to slowly zoom out, so you have time to guess which church it could be. Example: Slowly zooms out, revealing more and more of the picture.

View 2 Replies

Flash :: IDE - Location - Zoom In And Out Of The Map

Feb 8, 2010

I want to create a map with functions similar to google maps where I can have a slider on the side to zoom in and out of the map, I am a little confused on how I am gonna do this slider :S ... anyone have or tutorials I can take a look at. I used to be a flash developer but havn't done anything in flash for over 2 years.

View 1 Replies

IDE :: Flash Image Pan & Zoom?

Jul 11, 2011

i need like this [URL]

View 2 Replies

Zoom In Flash Photo Slideshow?

Jan 2, 2010

i've made a flash photo slideshowand im wondering if there is anywayto gradually zoom in on a picture while the slideshow is playing.

View 4 Replies

ActionScript 3.0 :: Zoom Out Timeline Using Flash Cs5?

Jan 29, 2012

i was working by strange after using mousewheel my timeline gone zoom in i dont understand how to make timeline in normal view.. I m using flash cs5

View 3 Replies

Flash :: Zoom In / Out An Jpg Image With Actionscript?

Jul 27, 2010

Is that kind of job easy to do in flash?

View 1 Replies

Actionscript 3 :: Zoom And Pan Effect In Flash?

Mar 1, 2011

I have made a flash world map (Continents Wise). What i want is that, when i click on any continent, it should zoom out to the full area and the area should also be floatable so that it can be panned with mouse.

View 2 Replies

Actionscript 3 :: Create A Map In Flash And Zoom Into It?

May 5, 2011

I've created a world map in flash and I want to code an ActionScript so that if I click on a country the map, it should zoom into it and show some information beside the country.

I dont know how to start it. A sample could be better.

Please let me know if you know any good step by step turial site.

Find the pic here for reference : ASIA

I have added the ASIA part which i have created. When i click on India, it should zoom into it.

View 2 Replies

Flash 9 :: Smooth Zoom And Transitions?

Sep 23, 2008

I have problems with flicker when I zoom in a photo. If you look at [URL] you can see a lot of aliasing in the pictures.

I know that you can do this kind of transitions in Monoslide (watch the banner at [URL] but is it possible to do it in Flash?

View 1 Replies

ActionScript 2.0 :: Zoom In/out From 3D In Flash Tutorial

Oct 1, 2003

i am pretty new to Flash, and I have started going through alot of this tutorials on this site, and it is really great btw. Anyhow, I was reading through the zoom in/out tutorial in the ActionScript > 3D in Flash tutorial, and I am having a little trouble figuring out where I should put the code, and actually see it work.

I did the following. I only made one figure so far, because I was just doing a test:

1) I draw a simple shape on the stage, converted it into a movie clip, and named it figureA

2) I then double clicked on it, and in the first frame, right clicked > Actions, and wrote the following code:

[Code]...

My question is what am I suppose to do next? Insert a keyframe and make a motion tween? I am kinda lost in the difference between actionscript motion or using motion tween.

View 2 Replies

ActionScript 2.0 :: Flash Zoom In/out Navigation

Aug 23, 2006

I am doing something for a friend, a flash portfolio site, basically what happens right now is that when one of the pictures is clicked the stage zooms in so that the image takes up the entire stage, now on clicking that picture again, the image zooms out... that's all fine, the problem is that when i want to click on another edge of a picture that is also visible at the time when it is zoomed in, the whole thing zooms out

I'm not sure if i have to use an array, or a one more variable or what i have to do..

the site is at [URL]

View 9 Replies

ActionScript 2.0 :: [Flash 8] Zoom In The Map To See More Details

Apr 27, 2008

how can I creat a movie in flash 8 that zoom in something. I want to do a map and then let the user to zoom in the map to see more details

View 2 Replies

ActionScript 2.0 :: Zoom In/out From 3D In Flash Tutorial?

Oct 1, 2003

I was reading through the zoom in/out tutorial in the ActionScript > 3D in Flash tutorial, and I am having a little trouble figuring out where I should put the code, and actually see it work.I did the following. I only made one figure so far, because I was just doing a test:

1) I draw a simple shape on the stage, converted it into a movie clip, and named it figureA

2) I then double clicked on it, and in the first frame, right clicked > Actions, and wrote the following code:

origin = new Object();
origin.x = 150;
origin.y = 150;

[code]....

Insert a keyframe and make a motion tween? I am kinda lost in the difference between actionscript motion or using motion tween.

View 2 Replies

Tackle This Zoom Effect With Audio In Flash?

May 22, 2009

have a payslip which can be zoomed into at different sections, and then a voice over will explain what each bit means.the client sent me this link as an example, but it hasn't got the zoom or audio on.[URL]

They have seven bits of audio around 15 secs each, and my thinking is that when a user clicks on a certain button, the image zooms in, the audio plays, and an animation of a pen ringing it or something will will happen.

How best should I tackle this to keep the file size down and make the audio sync with the animation? He has sent high res images of payslips but I'm not sure whether I should re-draw the payslip in flash to keep the file size down? I am used to working with frame labels so should I just have the movie go to a certain frame label when the button is clicked and the audio play there? Should I just have a preloader at the very start of the whole thing, or at all the sections?

View 1 Replies

Flash :: Add A Zoom Feature To Existing Application?

Sep 25, 2010

I have a Flash application with one scene, three frames and a bunch of ActionScript code to provide a number of ExternalInterface hooks. The three frames contain a single Input Text box which, as the <embed> tag is resized using JavaScript, grows and shrinks (not scales) to fit. I now want to add the ability to zoom in/out of this application, for enlarging small text on screen without increasing the text point size. I thought this would be easy using the Javascript Zoom(percent) method of the Flash object, but this doesn't work because my ActionScript code contains:

[Code]...

I suspect I need to take the entire movie as I have it now, and put it inside a movie clip, add a zoom ExternalInterface call which somehow scales the movieClip, and move the External Inteterface methods I have now from the new Movie Clip outside to the stage... but this sounds like a near complete rewrite? Will this method even work? Is there a better way?

View 1 Replies

Flash :: Css - Centering Site On Browser Zoom

Jul 22, 2011

I have a Flash page that is a bit off center on smaller resolution screens. If the site was centered, and the sides were cut off, then all would be well. But the site starts in the top-left corner, so some content is clipped. I know the problem can be solved in JavaScript, but I'm wondering if there is a more elegant, possibly CSS-way,

View 2 Replies







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