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
Similar Posts:
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
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
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
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
Feb 2, 2011
anyone know a decent tutorial that will show me how to zoom a movieclip with a slider bar and or buttons etc and then click and drag the image around.
View 5 Replies
Mar 30, 2011
I have created a 3D product view page with a scrub bar that spins the object via 32 images taken of the object all the way around.
I would now like to add a zoom and pan function of some kind as well. Anyone have any suggestions or FLA files with this sort of thing? The 3D spin images are inside a movieclip, so I basically need a "+" and "-" button to scale the images up, and then be able to drag the movieclip around the stage too.
View 3 Replies
May 17, 2010
I'm made a map and I want to zoom in and out. The second thing I want is to make a bounding around my MovieClip.
[Code]...
This is my code so far and I can zoom in and out but I can keep going and going. I want that he stops after 200% or something and when he is 100% you cant zoom out more. Also I want a bounding so I cant move the MovieClip outside his own stage height and width.
View 9 Replies
Aug 2, 2009
I wish make a zoom with tweenlite library on a movieclip. But I wish zoom on a focus where the user click.
The user step are like this:
step1: the user go on a place over the pictures
step2: click
step3: zoom to the click place
How I can do it in AS 3.0?
View 2 Replies
Apr 28, 2004
I have this AS so far :
Code:
//1
function zoom() {
square._width += speed;
square._height += speed;
} var speed = 2, id, interval = 100;
[Code] ....
What this does: when the mouse is passed over the movie clip "square", it begins to zoom, or enlarge. What i need to do is have the AS function perfectly on frame 1, then on frame 15 the script does not function at all, and the movieclip returns back to it's original size. (or after 15 seconds, whichever is more flexible).
View 4 Replies
Jul 25, 2010
I have a flash file, where I want to use default zoom function from Flash menu in swf player. Clicking "Zoom In", zooms into the swf file. Then when I try to use drag from mouse to change visible area, it does not work on moviclips. If I click on top of blank area, I can drag. Though this works fine in Flash as2 file.
View 5 Replies
Mar 30, 2012
i'm trying to make a zoom in and out of a movieclip when certain event is activated, anyone knows a way of doing this? i tried with mc.scaleX++ or mc.scaleY++ (i tried with mc.scaleX+10000) but nothing happened.[code]
View 1 Replies
Aug 2, 2009
I wish make a zoom with tweenlite library on a movieclip.But I wish zoom on a focus where the user click.The user step are like this:step1: the user go on a place over the picturesstep2: clickstep3: zoom to the click placeHow I can do it in AS 3.0?
View 1 Replies
Apr 5, 2006
I'm in the process of planning out my web portfolio website. The situation at hand right now is learning how to do a zoom tween via actionscript. I want to learn more actionscript tweens and get away from tweening using keyframes/frames - as this creates Huge file sizes. So I'm trying to be more efficent and keep file sizes down. Basic idea is I have a background image with 3keypoints (movieClips) that the user can click on. Once you click on these the camera will zoom and pin-point whatever movieClip has been selected.
Here's what I've been able to see so far. By applying this script to each separate movieClip it zooms in on the image or particular part of that image correct? How would I modify this so that it zooms when the user clicks the appropriate movieClip. I got this from from here and I have also seen and read the Kirupa Tutorial about the starfield/racecar game etc. But it doesn't sink in without examples right in front of my face. And to reverse the zoom when the user wants to (un)zoom back out would I switch the
_xscale = _yscale += speed;
to
_xscale = _yscale -= speed; ??
onClipEvent (load) {
speed = 2; //speed of the zoom
} onClipEvent (enterFrame) {
_xscale = _yscale += speed;
//does the zoom
_x -= 1;
_y += 2.5;
//this moves the movieClip down and to the left so it leaves the screen entirely
}
View 2 Replies
May 13, 2008
How can I get the disappear (I used zoom out) Effect when I click another link I mean I want to get the zoom out effects for the previous movie clip when I click the next movie link.
View 5 Replies
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
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
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
Jul 25, 2010
I have a flash file, where I want to use default zoom function from Flash menu in swf player. Clicking "Zoom In", zooms into the swf file. Then when I try to use drag from mouse to change visible area, it does not work on top of moviclips. This works fine in Flash as2 file.
View 1 Replies
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
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
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
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
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
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
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
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
Oct 21, 2005
I'm creating a menu bar that is a movieclip and inside the movieclip consists of the buttons.Now the menu bar is twice as WIDE as what is visible on the stage.The only part you can see is the text 'menu' on a bar.Then when the mouse hits the bar, it flies across the screen to the otherside of the bar where the menu buttons are.Now the menu bar does its animation over 20 frames - the last frame being the frame where the menu buttons are now visible.
On the last frame i have the 'stop;' code
On the first frame I have this code:
Code:
stop();
this.onEnterFrame = function(){
if(rewind == true){
[code]....
View 2 Replies
Jan 21, 2009
Originally, the client wanted to control "hero_mc" using the keyboard but now they would like to control him with buttons only. Here is the original code on the "hero_mc" which works as expected:
[Code]...
View 2 Replies
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