ActionScript 2.0 :: MovieClip Movement - Image Panning On X And Y Axis
Nov 6, 2006
I've mastered the way of image panning on an x asis for menus and so forth, but I am trying to get it working with an x and y asis. I mean like the main navigation in this example [URL].
I've been looking at the image panning tutorial over at [URL]
Basically the script makes the image scroll based on the direction of your mouse movement.
However what I want to do is, only make the image (bg_mc) scroll, whenever I mouseOver a certain area to the right and a certain area to the left. The blue shapes illustrate what I mean: [URL]
how I would go about modifying my current code, to do that. Lets assume my left scroll shape is named moveLeft and the right, moveRight.
i have 2 buttons and one large image. this image has about 10 product images inside of the clip.here is the idea...i want to click on the move left or move right button, clicking on the button will move the MC containing the Product Images to the left or right.the thing i am not getting is normally when i move stuff on the X-axis i have more than one button and attach the actions to each button. but i only have two buttons now. one for left and one for right. now i am confused.
What I'm trying to do is something of a jumping character in a platform game. My problem is that no matter where I place the character, it's jumping to a certain height on the stage, rather than to a height relative to the movie clip's original position. As if I'm telling it to jump to a global y coordinate, when what I really want it to do is move it "n amount" in the y direction. Here's what I have so far, this is the code I placed on the movie clip itself.
I'm working on a website and I have a movieclip that I want to move, but it would be easier to have actionscript control the movement. I need it to slide up along the y-axis for a certain amount of pixels and then stop, preferably even being able to set how long it'll take to go from point a to point b. does anyone know the script for this?
I am having trouble getting my preloader to fill from bottom-to-top instead of top-to-bottom. I moved my registration points to the bottom left on the symbol like suggested in a previous thread and it didn't help.[code]
I have an object that is being moved along it's x axis a certain amount each time an button is pressed. I want to be able to restrict the movement of that object along it's x axis so that it can not go past a certain point.
skyline movie clip to move randomly along it's x axis whenever a mouse event happens.I can get it to ease in on a mouse event.The only code I've come across that seems to point me in the right direction is easingvar skyline:Tween=new Tween(skyline_mc,"x", Regular.easeInOut, 100,107,3,true);How do I get it to easeinout again to a random position on the x axis?.
well i've read the random movement tutorial but now i only want things to move randomly horizontelly; on the x axis. I'm pretty sure this is possible since most things are with flash so would anyone know what AS would be used? i've treid the one here: [URL] and deleting stuff that i think is not relevant. But i keep getting more and more erros each time i try to fix something...so anyone know what the AS would be? thx
So I have a Sprite and if using startDrag(), how do I constrain the movement to x-axis only? that is, move it horizontally? The free x,y movement code sample is here, directly from Adobe's livedocs: [URL]
I have modified the code from the Interactive Image Panning AS3 version (found here) and I have come to a standstill. If you look at my .fla (link) or the image (link) you can see its not a rectangle but has two of the top corners cut off. So it can't really be panned using the usual method because the corners need to be avoided.I have managed to trace 'white' or 'not white' when the areas i don't want panned are visible but I can't figure out how to get the scrolling to stop! My code is as follows:
I have an image panning to the left and right on mouse move. All this works fine but now I can't figure out how to stop the panning at the beginning and end of the image (it just goes on with the mouse move). Would be great if it would stop at the end and let the possibility to go back to the other end again. Here's my code:
Code: import flash.events.MouseEvent; var centreX:Number; var steps:Number;[code].....
I have a round arrow on stage (like half of a circle) and I want to make it turn left when mouse moves right and vice versa. How to accumulate this turning thing ?
I have a round arrow on stage (like half of a circle) and I want to make it turn left when mouse moves right and vice versa. How to accumulate this turning thing
I'm trying to make a MC rotate on it's axis (registration point)...I want it to rotate both clockwise and counter-clockwise at random speeds and random degrees of rotation. For example...CW fast 90 degrees...then CCW slower for 150 degrees...then CW really fast for 270 degrees...etc..etc..
I guys i am trying to make Movie clip movement to infinite loop to x axis.It should move like left to right on loop, without any jurk.i used this code. this is working fine to move left, but i am not getting how should i make it move on looop.
I have loaded an image from a particular site using loader..and added this loader in a Movieclip.. I want to zoom and pan theimage.. How to zoom particular area of a movieclip?
I saw the Interactive Image Panning tutorial (great one) and i whould like to know what modifications can be made on the tutorial actionscript in order to pan more than one image.
I have just found this forum today and boy am I glad I did! I have done the tutotrial "Interactive Image Panning", and have applied it to a gallery I am trying to create, but I can't get the scrolling to stop when the gallery reaches the edge of the stage[URL]..
I've been looking for a Flash component/tutorial I can use to make an interactive map. Now I've found the tutorial Interactive Image Panning here at Kirupa.
In that tut you go with the mouse to the right, and the image floats to the left...but here's the problem/question: I also want to get the image float to the bottom/top, when the mouse goes to top/bottom...
I've been working for awhile and I finally have the Mouse Pan to work. Now I can't seem to insert it into my project. It works fine if the object I am panning is on Frame 1. However if I move it to the correct frame (5) it throws the coding off. Does anyone perhaps know what I'm doing wrong. I have a playhead that moves down the timeline, when it stops on frame 5, that's when I want the image to be available and pann-able. [code]
I am using the panning image effect from the URL below:
[URL]
The problem i have is that I only want the image to start panning left and right at the point the mouse reaches the edge of the table. At the moment you get movement no matter where you are on the screen.
I am developing a movie which panning an image. Following code works fine but it leaves blank area when i run it (when i switch to full screen at browser).
function panThisImage(target:MovieClip, speed:Number,speed1:Number, dir:int) { var mousePercent:Number = mouseX / stage.stageWidth; var mousePercent1:Number = mouseY / stage.stageHeight;[code]..................
I have an app in Flash CS5 that I am creating for iOS. I am loading an external image to a frame with the UILoader. I would like to be albe to use the two finger zoom and single finger up/down/left/right movements on the image I loaded with the UILoader.
I have this document in flash where I want an image to pan with mouse movement. When I test the movie it runs ok with any problem. But when I resize the window the position of the big image, it goes all wrong. I'm going crazy with this. Any help? I'll leave the link here so you can see the .fla document.
[URL]
And here is the code (Actionscript 2.0)
var boundX:Number = bigPic._x+activator._x*(bigPic._width/activator._width); var diffX:Number = bigPic._width-activator._width; var easeSpeed:Number = 7;
I would like to enhance this effect by having the image return to center after it is moused off of. Currently, it will just stay where you left off. It would be neat if it returned at the same speed as it pans. I would love to see if this can be done for a client. Here is the code from the tutorial: