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


Similar Posts:


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 :: Disable Right Click Menu Except Zoom?

Jul 25, 2010

So I wanna to disable the Right Click menu except the Zoom In, Zoom Out, and Show All.

View 4 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

Javascript :: Android: Disable Pinch Zoom And Pass Event To Flash Content

Apr 14, 2011

I have a flash application written in actionscript 2.0 that shows vector architectural maps and works perfectly on common web browsers. There are many interactions with javascript functions called by user events on the webpage, such as zooming to a certain x,y point. This event is usually accomplished via the mouse wheel.

Now I have to make sure that the thing works on tablet pc, in particular the Galaxy Tab. The first thing I have to fix is that, obviously, there is no mouse wheel and the user naturally tries to pinch zoom the flash application, with the result of zooming the entire web browser.

What I need is to listen to the multitouch gesture and, when a pinch zoom event is called, disable the default zooming event and call a javascript/flash function that allows my flash app to zoom only the objects that need to be zoomed: in few words, the browser stays still and only a part of the flash zooms in or out.

I already have working javascript functions to call flash object functions for the zooming purpose, so I just need to connect them to some android things that tell me when the user tries to pinch zoom in and when he tries to pinch zoom out (and possibly the x,y point of zoom).

View 1 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 2.0 :: Zoom In & Out Boolean Function

Oct 29, 2009

Been trying to get a flash map to zoom in and out but I can't seem to get it working, it'll zoom in fine, but not zoom out.I'm zooming into a particular area of a map (Uganda in this example) with a function for a button, I'm using a boolean value to check if I am zoomed in and it registers whether it's true or false (checking with a dynamic textbox). [code]

View 1 Replies

Professional :: Zoom Function On Picture?

Feb 17, 2010

how to implement zoom on a picture in a movieclip frame? I would like to do it with AC3 if possible?

View 2 Replies

IDE :: Coverflow Effect With Zoom Function?

Jul 31, 2009

i just wanted to ask if anybody know where i could find a source code (fla) of a coverflow effect with an integrated zoom function (like this one or simpler: [URL]. i don't care if it's written in as2 or as3.

View 1 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

Flex :: PlotChart Zoom Error In FindDataPoints Function

Sep 8, 2011

I came across this great tutorial on how to zoom into a chart by drawing a rectangle in a LineChart to zoom into it [uRL] but I'm trying to apply it to a PlotChart instead and I'm having issues trying to get the DataTips showing with the following error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.charts.series::PlotSeries/findDataPoints()[E:dev4.5.1frameworksprojectschartssrcmxchartsseriesPlotSeries.as:961]
at mx.charts.chartClasses::ChartBase/findDataPoints()[E:dev4.5.1frameworksprojectschartssrcmxchartschartClassesChartBase.as:2069]
at mx.charts.chartClasses::ChartBase/mouseClickHandler()[E:dev4.5.1frameworksprojectschartssrcmxchartschartClassesChartBase.as:4823]

The link mentioned about extending the LineChartSeries and override the findDataPoints() function, but after trying to doing the same for extending PlotSeries.as, sortOnXField seems to be undefined and I don't have access to the PlotSeries.as since it is in a swc. Has anyone tried applying the following to a PlotChart instead and got the DataTips to show? What was the override function in the findDataPoints()?

View 1 Replies

ActionScript 3.0 :: Papervision - Flying Zoom In Camera Function Example?

Apr 13, 2011

How should I code/setup a camera animation where the camera zooms in on an animation (just cubes) and when it reaches the appropriate view the animation starts?

View 1 Replies

ActionScript 3.0 :: Creating Map Controls Such As A Zoom Sliding Bar And A Panning Function

Jun 14, 2010

I am making an interactive map and am having trouble creating map controls such as a zoom sliding bar and a panning function.

View 1 Replies

IDE :: Zoom In And Out On A Section Of The Screen With A Button?

Aug 24, 2009

I made an animation and I would like to zoom in and out on a section of the screen with a button. Or a make a magnifying glass effect in a certen area. Is there a way I can do this with code or do I have to re-animate that part bigger?

View 1 Replies

ActionScript 2.0 :: How To Create Zoom In And Back Button

Apr 16, 2009

Any tutorials out there on how to make a zoom in button and a zoom out button?

View 1 Replies

ActionScript 1/2 :: Button Size Constant During Zoom?

Jan 6, 2010

Flash map with a number of flash created vector buttons sitting over it. I wish to keep the button size from changing during a users zooming in/out on the map we have, i.e button remains 5mm wide whatever the zoom. Is the solution to this in coding and what code do I use ?

View 5 Replies

ActionScript 3.0 :: OnRollOver Button - Zoom In / Out Effect

Nov 5, 2010

I want to do a simple thing in Flash CS3, but some how I am unable to do it. Actually my requirement was....OnRollOver of a Button I want to slightly zoom it and OnRollOut. I want to slightly zoom out the Button. And the conditions are I should not use TimeLines/Stage Assets etc. Every thing has to come dynamically. Including the Button creation/ZoomOut/ZoomIn effect etc. and mainly I need it in Flash Cs3/Flash Cs4.

View 3 Replies

ActionScript 2.0 :: Zoom Out And Every Thing Has To Be Like The Beginning When Click On The Button Once

Mar 29, 2009

I have a movie clip(a large image that has the same size as the stage) and a button in a square that is small (150x150) . The zoom has to be like this: I click on the button once and I have to zoom in (only once) exactly where the square is (in the center of it). When I click the zoom button again I have to zoom out and every thing has to be like like the beginning. This is the code I have:

[Code]...

View 6 Replies

ActionScript 2.0 :: ZOOM Centering - Map Is Not Centered When The User Clicks Either Button?

Oct 6, 2004

I've been working creating an interactive display map for a client. I've figured out the controls I'd like to use for moving the map, but I'm having trouble with the zooming features. What I'd like to do is have the user click on the "+" button to zoom in and the "-" button to zoom out. The problem is the map is not centered when the user clicks either button?

View 3 Replies

ActionScript 2.0 :: Make Pop-up Window While I Click "zoom-in" Button?

Aug 7, 2007

I try to make pop-up window for zoom-in images. Is there ActionScript to make pop-up window while I click "zoom-in" button?

View 4 Replies

ActionScript 2.0 :: Create A Button On Web Page For Zoom In And Out (the Whole Web Page)?

Feb 11, 2010

I know this cant be too difficult, but please entertain me I want to create a button on my web page for zoom in and out (the whole web page).

In IE you can achieve this by doing the following - "Press and hold the contol button and then press the - (minus) button (Ctrl -)." or click on the view option at the top of the browser>>zoom>>zoom out.

View 3 Replies

Stop Interval Function By Clicking Button?

Mar 26, 2009

I have a simple movice clip, 72 frames. On Frame 42 I have this actionscript

//----------------------------------
function wait2() {
stop();

[Code]....

and a few other "possible" solutions I found on the web....but nothing works. If I click the damn button...

View 2 Replies







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