ActionScript 3.0 :: Zoom From Gesture Location?
Oct 15, 2011
I have searched the internet and i can not find anything,I would like to use the zoom event listener to scale a image but I don't want it to scale from the registration point I want it to scale from where the gesture was made. I thought this would be a common request or even built into the zoom gesture class.
View 7 Replies
Similar Posts:
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
Sep 20, 2009
Does someone have a working fla to illustrate how to load an external movie and zoom and pan to specific location of this movie (with easing)? With actionscript, not necessarily with a control for the user. I am looking for it for some time and unfortunately my programming abilities are not yet sufficient to find it out from scratch (but I am working on it).
View 2 Replies
Jan 3, 2011
Currently I am working on applying a pan gesture on the picture within a scroll pane component to allow the user to browse the whole picture by just touching the picture instead of using the horizontal and vertical scroll. However, it seems to be always moving the whole scroll pane and not the picture inside,below is part of the script,
spImage = new ScrollPane();
spImage.move(-220,-250);
spImage.setSize(440,500);
spImage.source = "Images/"+movieXML.title[_currentMovie].image+".jpg";
[code]....
By using the above script, I can only move the whole scroll pane and not the picture inside, how do i apply pan gesture on the content?
View 2 Replies
Dec 14, 2010
I looking into developing an AIR application for carPC's.These pc's all have touchscreens, but usually not multitouch. Also Windows 7 will reconize them as a mouse, not as a touchscreen. Now I know AS 3 supports gestures
View 3 Replies
Apr 27, 2009
I am trying to make an object tween from its starting location to the location of a mouse click. I have a script, but it has a very annoying ease to it.I would LIKE the object to mantain a certain speed during while traveling from its starting location to the mouse click location.
View 16 Replies
Aug 21, 2011
I created a simple button that displays an error messeage: "error opening 'url" when I test the movie, but does play and opens in browser after publishing. However, it won't open in the browser in a different location. I pasted the html code in a web page but it doesn't work there nor opens in the browser in a differnet location from where it was originally published and saved. Why is that?
View 13 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
Jun 17, 2010
Has anyone worked on gesture recognition? I want to know how to proceed on comparing two similar gestures. E.g. : If A draws a circle on the screen, B should draw the same and the program should compare both the circles.
View 2 Replies
Jan 6, 2011
I am basically developing an application for Android which allow user to zoom in on a certain page and use pan gesture to move around the stage, however, I am just wondering is it possible to replace that pan gesture with touch move input so the user can actually move around the page just using a single touch point?I've tried doing it but the single touch will always overwrite the zoom gesture.Zoom and pan gestures working properly
private function onZoom(event:TransformGestureEvent):void
{
this.scaleX*=event.scaleX;
[code].....
View 1 Replies
Aug 19, 2011
I Have a swipe gesture to next frame event, but i also have a pan gesture event. I fear that the swipe wont cound it will just pan the image, is my theory correct? any guesses?
View 1 Replies
Jan 18, 2010
So I need an open-source Video Gesture actionscript library/api. So we have a web cam... we move a hand and it causes some events...
So i need motion detection for navigation API/Lib
View 1 Replies
May 2, 2011
I'm using flash builder burrito and i'm having a mobile application.Is it possible to drag an UIComponent using pan gesture event?
View 1 Replies
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
Apr 23, 2011
I have made an animation in Flash, that would be ported to the iPhone/iPad; I want the animation to play when you rotate your finger on the screen and to stop immediately when the finger is lifted (Without starting the animation over), When the user would continue rotating their finger, the animation would continue to play.
How would I approach this in ActionScript 3.0?
View 1 Replies
Jun 21, 2011
I need to create an image gallery where the main image is centered, when you click down on it and "swipe" it to the left or right, the next/prev image will be center. It should kind of imitate the feel of the iphone page swipe motion. Here is an image link. Does anyone know any good tutorials or how I can get started with AS3?
View 2 Replies
Jun 30, 2011
I want to implement an flex application using actionscript 3: with the camera and the virture buttons(like a image) in the camera, one can move his hand to pass over the virture button field in order to fire the button. Now my solution is following this way: capture the button field in every frame to get a bitmapdata, and calculate the gray-scale summation of the bitmapdata, if the difference between the two frames is greater than a given value, then fire the button. Actually, it could work, but it is very sensible to the lighting condition of the background, worse, when there are more than one buttons, people often fire the button by mistake.
View 2 Replies
Jan 13, 2012
I got the multitouch touchpoint works, but can't manage to make the multi gesture works
ActionScript Code:
Multitouch.inputMode = MultitouchInputMode.GESTURE;
bigleft.addEventListener(TransformGestureEvent.GESTURE_SWIPE, swipeleft)
bigright.addEventListener(TransformGestureEvent.GESTURE_SWIPE, swiperight)
upon swiping at the same time, it does nothing but when it's one after another it works.
anyone know workaround for this?
View 0 Replies
Jan 5, 2012
Want to make an Image gallery that responds to a swipe gesture. Found some tutorials but they were a bit vague. Someone an idea where I can find some good ones? How to test this on a windows pc? I do not have a certificate (I know that there are some illegal cert. on the internet), just want it to test it on a simulator?
View 1 Replies
Jul 21, 2011
Fail to control my timeline with the gesture swipe; I have tried but without any success. ive created frame labels at every 20 frame as a navigation points and some motion tween between each 20 frames.
View 0 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
Feb 16, 2005
How can I move my MC from one location (x, y) to another location (x1, y1) wirh action script..?.. and I would like to have my motion tween rounded to (x,y) so it will look sharp.
View 8 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