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


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

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 3.0 :: Pan Buttons Are Not Working But Zoom And Reset Buttons Works

Aug 12, 2009

im working on a zoom/pan gallery and i have a problem that i can't solve.URL...the pan buttons are not working but the zoom and reset buttons works. im working on movie the image using the mouse now, if you will hold the image and move it it will drag it on stage.the image is a loader the loads and image and placed on screen.there is a mask on top of it and a frame that indicates the size of the gallery.when the user pan the image loader content i want it to stop as soon as it gets to the gallery frame,but i cant seem to find the best way to do it.so basicly when the image is in 100% i dont want the user to be able to drag it but after you zoom the user will be able to drag it but only to the edge of the frame so there wont be any white spaces.i tried a lot of different ways to do it but all of them are complicated and not working the way that i want them to work.

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

ActionScript 1/2 :: Script Zoom In And Out Buttons In CS4?

Oct 8, 2009

Im trying to script zoom in and out buttons in CS4 (Actionscript 2). I have the code sorted so they can be clicked once to zoom. I want to try and have 3 levels of zoom assigned to each button. Zo if pressing zoom up 1st press gives you 125% zoom, 2nd press 150% and 3rd press 200%. Same goes for the zoom out button but in reverse.The code im using for the buttons at present is...

zoomupBtn.onRelease = function() {setProperty (_parent.pages, _xscale, "200");setProperty (_parent.pages, _yscale, "200");}zoomdownBtn.onRelease = function() {setProperty (_parent.pages, _xscale, "100");setProperty (_parent.pages, _yscale, "100");

View 10 Replies

ActionScript 1/2 :: Zoom In On A Movieclip With Buttons On It?

Sep 20, 2010

im making a simple map. layer one has the background, layer 2+ has the invisible buttons when clicked go to another scene to show more info about that part of the map.
 
Is there a simple way to combine all those layers into one and allow a zoom up and pan so users can see the map closer?

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

ActionScript 3.0 :: Previous And Next Buttons - Zoom In On Some Content And Have New Layers Fade In And Out?

Jan 11, 2010

I'm trying to do a presentation of some Adobe Illustrator graphics in flash for an architectual presentation. I want to zoom in on some content and have new layers fade in and out. I guess this is done by tweens, as I had som succes in that direction.The problem becomes obvious when I want to control my presentation. I want to set cue points/keyframes/whatever so that the presentation will start at the click of a 'next button' or a click og the mouse. Then I want it to stop at some point when the tween/moving around of objects is done, so that I have talking time before playing the next tween with a click etc.

View 3 Replies

IDE :: Zoom In & Out Of A Map?

Dec 5, 2009

I've got a website/blog about legends of England in French, and I've made a basic map of United Kingdom with the legends location as dots with a rollover effect and links (look atMy problem now (and I knew it would come to that stage someday) is some dots are really near to each other, and as more and more locations will be added less clear will be the map...What is the best way to zoom in and out of the map keeping the dots in place?

View 9 Replies

Zoom In From Space?

Jun 9, 2009

I want to create a piece of flash where it starts off in space and shows the earth and then after about 5 or 7 seconds it zooms into the earth and into the UK.

View 1 Replies

ActionScript 2.0 :: Zoom In Using It?

Jul 24, 2005

How to zoom in using Action Script.

But... what I need is kinda of hard to explain...

I want to zoom into an object and have the corner of the object stay in the same place as can be seen on the screen.[code]...

View 5 Replies

IDE :: Zoom And Pan Gallery?

Dec 27, 2009

I like this gallery: [URL]but i need some modifications

1) i need prev button

2) if is click more that once on next button, the thumbnail image is not align in the container (the small oane)

View 1 Replies

ActionScript 2.0 :: Pan And Zoom An Image ?

May 27, 2003

i've created a vector-based map of Spain, and i'd like to be able to zoom into certain areas of it.the map is positioned behind a mask, so only a certain portion of it is visible.

i've also created nine buttons, each of which should reposition and scale the map according to a set of predetermined target parameters (manipuilating the _x, _y, _xscale, _yscale properties). i can get the map to pan to its new location so long as i don't zoom in (scale) as well. whenever i have to pan AND scale, the x,y coordinates end up grossly off-mark. do i need to first scale and then pan? or vice versa? anyone know of any tutorials on this topic?

View 3 Replies

ActionScript 3.0 :: Make A Map With Pan And Zoom?

Mar 14, 2010

I need to make a map with pan and zoom in as3 . I searched for a long time and haven't found a tutorial or something. All I have found are a few examples in as 2, like :

[URL]

View 5 Replies

CS3 Click Zoom Drag Pan?

Apr 7, 2010

am hoping someone here might have some source in the little bag o' trix that will put me on the right road to achieving the following. i am trying to work out the best way of creating a movie that has buttons that when clicked will zoom into and centre a certain area of a larger movieclip?

and then a way of dragging the zoomed into movieclip around the stage area? or panning using x/y positions of the mouse. (and without asking for the moon on a stick - if the user clicks on a empty part of the zoomed mc - it zooms back out to it's original size position?)

any have any fla files or know of any good tut's or threads that can will give me a leg up to get it working? fingers crossed has done this before or know a good place to start?

View 2 Replies

ActionScript 2.0 :: Pan And Zoom On Mouseover?

Jun 6, 2010

i am trying to make an image gallery with pan and zoom effect on mouse over ...Now what i want is exactly like the below website .. [URL]remove space & see the website.

View 2 Replies

ActionScript 2.0 :: Zoom In/out And Drag?

Mar 17, 2011

I am litteraly going crazy because ive tried all the codings ive been able to find on the web and nothing works.

what I need is to make something similar to google maps: [URL]

my map is pretty big, and what I want is to be able to drag around the plane and zoom in and out.

View 1 Replies

ActionScript 3.0 :: Zoom In Everything In Program?

Jun 21, 2009

i managed to zoom in 1 of my image instance when i click on it , and it can also be drag around.This image symbol will have a mask and action script is added in the symbol . However there are still other instances in my program which i do not know how to zoom . Is there any way to zoom in everything in my program?

View 1 Replies

How To Achieve Zoom In / Out Effect

Sep 24, 2009

Dreamweaver How I could create the page showing a similar zoom in/out map as on the below link. I was referred to come here. How do I achieve the zoom in/out effect? [URL].

View 4 Replies

Professional :: How To Zoom In The Animation

Jan 25, 2010

Well I'm making an animation of the little mermaid for school. Right now I'm at the scene where the mermaid 1st sees the prince. and I want to zoom in on the prince. How can I change the direction of the camera, with it effecting the whole animation?

View 1 Replies

ActionScript 1/2 :: Make Zoom And Pan Img?

Mar 23, 2010

am just try to make zoom and pan img so unfortunately i can't complete it [URL]

View 1 Replies







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