ActionScript 2.0 :: Mouse X Position To Control Movie Position?

Feb 1, 2006

Basically the x position of the mouse should control the play position of a movie. Do I need something like an event handler (I'm not sure exactly what these do, but I've seen similar scripts that seem to use them).

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Control Timeline With Mouse Position?

May 21, 2007

Does anyone know how to control an mc's timeline with the mouse position? So, when you click and drag right it plays the timeline forward and vice versa? I know how to do it with a slider, but I'm stuck on replacing the slider position with the coordinate where you click your mouse...if that makes any sense.

View 2 Replies

ActionScript 3.0 :: Control A MC Position Based On Mouse Point?

Jan 20, 2011

I am trying to make an animation where the user can mouse over a small MC at the top of the stage, which controls the movement of another larger MC at the bottom of the stage.I am thinking that 'points' (which I know nothing about) might be the way to go. The other thing is that it needs to be fluid motion. Am I at least on the right track with points and mouse_move or is there a better approach for this?

View 2 Replies

IDE :: Cursor Position Not Mouse Position In Input Text Box

Nov 12, 2009

I have an Input Text area that users can edit and then submit. I need to be able to show, on screen, the cursor's current position as they type. I don't need to know where the mouse is but all work-arounds I've found so far can only tell me the mouse position. The font for the text is 'courier' or 'courier new' and the Input Text area is scrollable.

View 8 Replies

ActionScript 2.0 :: Tween From One Position To Mouse Position?

Mar 28, 2010

tween from one position to mouse position

View 1 Replies

ActionScript 1/2 :: Focus On Mouse Position When Zooming Movie Clip Using Mouse Wheel?

Oct 29, 2009

I have a map application that when I use the mouse wheel the map will scale up or scale down. The next thing I want to do is to focus on the mouse pointer while zooming on the part of the map.

I have this code...

function focusMousePosition(){    onMouseMove = function (){        Stage.width = _root._xmouse;        Stage.height = _root._ymouse;        updateAfterEvent();    }}
var mouseWheelListener = new Object();var wheelNum:Number;
mouseWheelListener.onMouseWheel = function(wheelNum){    focusMousePosition();    if (wheelNum > 0){        map._xscale *= 0.9;        map._yscale *= 0.9;    }else{        map._xscale *= 1.1;        map._yscale *= 1.1;    }}Mouse.addListener(mouseWheelListener);

View 3 Replies

ActionScript 3.0 :: Controlling Sound Of Movie With Mouse Position?

Nov 26, 2009

is there a way in as3 to mute a video inside a movie clip if the mouse x position equals less than, say 200px?

View 1 Replies

ActionScript 2.0 :: Displaying A Movie Clip At Mouse Position?

Feb 18, 2007

Im learning actionscript using the tutorials here so im more interested in learning *how* rather than just getting it done.

Ive come across a problem on something ive been trying to do. Ive been trying to make a 10 framed movieclip appear at the mouse position and play continuously. To do this I have a two framed loop.

Here is my code. Circle_mc is the movie clip:
-----------------------------------------------------
//this is the name of my function and what it has in it.
CreateAtMouse = function () {
Circle_mc.duplicateMovieClip("circlecreate", 2, {_x: _root._xmouse, _y:

[Code]....

View 1 Replies

ActionScript 2.0 :: Play Movie Clip Depending On Mouse Position?

Jun 5, 2010

I have created an animation which has frames with the head drawn in the various positions it needs to be in to look in all directions. Each frame is unique as it shows the head look up down sideways etc.What I need to do now is to make the movie clip play certain frames depending on the mouse position.I am having some trouble with the logic of how to do thisIs the best way to detect the mouse position then tell the movie clip to gotoandstop a certain frame depending on the mouse position?

View 2 Replies

ActionScript 2.0 :: Moving Movie Clip Based On Mouse Position?

Aug 11, 2009

I'm creating a slideshow gallery in flash and am basically there now except for one bit...

have a look here [URL]

The slider at the bottom for the thumbnails moves ok but I want it to stop at the last slide. I

I can manage to code it based on the mc's _x value

i.e if (mc._x < -200){ //do nothing }

but this creates a dead stop and I want a gently slow down like if you were to navigate from thumb 8 back to 1.

all of my coding at the moment uses the mc's x value in relation to the mouse's distance.

The code I have currently set on the slider is:

Code:
onClipEvent (enterFrame) {
if((_root.slidesQTY>6)&&(_root._ymouse>460)){
if(this._x<0){

[Code]....

how I could add another if statement that doesn't halt the animation as it hits the last slide but creates a smooth slow down?

View 0 Replies

ActionScript 2.0 :: Ease Arrow Movie Clip To The Mouse Position When Clicked

Jun 11, 2003

I have an MC that contains a menu. Within the menu MC I have a little arrow movie clip that I would like to ease to the mouse position when clicked. I have this code on the little arrow, copied from many easing tutorials:

[Code]....

Also, I want the arrow MC to start at a particular place. But when I put _y = 30 (for example, which is where I would want it to start from) it is still at 0,0 - even when I change _y to this._y. What the heck?

View 12 Replies

ActionScript 3.0 :: Dynamically Placing Movie Clip At The Angle And Global Position Of A Mouse Click?

Sep 23, 2009

Does anyone know the code for finding the global positioning of X & Y co-ordinates of a click of a button which is constantly rotating, and then secondly the code for when you click on the button it displays a movie clip on top of it -(position of x & y when clicked) at the angle that you clicked it,so underneath the buttons are still rotating so other people can click them where they are?

to explain the context, I'm trying to design a mock up of a circular interactive table Dynamically placing movie clip at the angle and global position of a mouse click (button) which is constantly rotating.when someone comes up to it and clicks on one of the buttons that are moving, it reads where the person clicked it and opens up a new box (movie clip) where they clicked it (at the angle) so its not upside down if you are at the top.

I've included my .fla file which shows the four buttons moving and a little diagram explaining what I'm trying to do.

View 3 Replies

ActionScript 3.0 :: Dynamically Placing Movie Clip At The Angle And Global Position Of A Mouse Click

Sep 23, 2009

Does anyone know the code for finding the global positioning of X & Y co-ordinates of a click of a button which is constantly rotating, and then secondly the code for when you click on the button it displays a movie clip on top of it -(position of x & y when clicked) at the angle that you clicked it, so underneath the buttons are still rotating so other people can click them where they are?

I'm trying to design a mock up of a circular interactive table when someone comes up to it and clicks on one of the buttons that are moving, it reads where the person clicked it and opens up a new box (movie clip) where they clicked it (at the angle) so its not upside down if you are at the top.

I've included my .fla file which shows the four buttons moving and a little diagram
explaining what I'm trying to do.

View 1 Replies

ActionScript 2.0 :: Animating Blur Filter - Bring A Loaded Movie Clip Or Trace Mouse Position

Aug 19, 2007

I've been scouring the internet for the past hour or so in search of how to do this. It's very simple, but every example seem to want me to bring a loaded movie clip, or trace mouse position. I don't need that! Basically I have a button that when clicked comes to the front (using behaviours), moves to a new position, scales and then I want every other button behind it to blur. Obviously I want them to blur gradually to keep the flow going. Here's my current code so you can see where its going:

[Code]...

View 1 Replies

ActionScript 3.0 :: Dynamically Placing Movie Clip At The Angle And Global Position Of A Mouse Click (button) Which Is Constantly Rotating?

Sep 23, 2009

Does anyone know the code for finding the global positioning of  X & Y co-ordinates of a click of a button which is constantly rotating, and then secondly the code for when you click on the button it  displays a movie clip on top of it -(position of x & y when clicked) at the angle that you clicked it  (so underneath the buttons are still rotating so other people can click them where they are)to explain the context, I'm trying to design a mock up of a circular interactive table when someone comes up to it and clicks on one of the buttons that are moving, it reads where the person clicked it and opens up a new box (movie clip) where they clicked it (at the angle) so its not upside down if you are at the topI've included my .fla file which shows the four buttons moving and a little diagramexplaining what I'm trying to do.

View 5 Replies

ActionScript 3.0 :: How To Control Car Y Position

Jun 14, 2009

i am trying to create a simple movie clip of a car that can drive on on a curvey floor. its from a side view.i have managed to control the car movement well enough but i cant figure out how to control the car y position so its always above the floor level.

View 1 Replies

ActionScript 3.0 :: Fluid Layout Stop Changing Resize Position When Movieclip Is At Certain Position?

Nov 19, 2009

I added a Menu_mc on my stage. Initially, this should be at the center of the stage and when I click on it, it will tween on the upper left corner of the browser. However, when I resize the browser, the Menu_mc goes back to the center of the screen.

I have tried separating a different actionscript file where it is specifically for initialization of the object and another one for resizing. And then when I call it on my main AS file it goes like this:

Code:
// Add the symbols to stage
var Menu_mc = new Menu_MC();
addChild(Menu_mc);

[code]...

But it seems futile.

View 6 Replies

ActionScript 3.0 :: Move The Vertical ScrollBar Position Of The ScrollPane To Top/initial Position

Jun 30, 2009

I am using a ScrollPane in my application(viz., instance name is: myScrollPane). When I view the contents of the ScrollPane, it shows them perfectly. My issue is: When I try to view data present inside the ScrollPane, if I move the Vertical-ScrollBar of the ScrollPane to middle(or somewhere from top to down) and then click on Submit button(viz., instance name is: submit_btn), then its Vertical ScrollPosition must be reset from middle(or any position where we leave it before) to top(or initial position). Hence, I need to move the Vertical ScrollPosition of ScrollPane to top (or) initial position. Everytime, I need to refresh the VerticalScrollBar Position when I click on the submit button. How to do it?

View 1 Replies

ActionScript 2.0 :: Move Punto_mc From Current Position To Random Position After Release?

Aug 29, 2009

how to make an actionscript to move punto_mc from current position to random position after release, and then from this new position to mevo to another randon position after release?

View 2 Replies

ActionScript 3.0 :: Flash - Tweening The Canvas Position While Keeping It's Mask Position?

Feb 3, 2012

I have simple image gallery, where images are placed one next to another and the mask is revealing only one of them. Now I want to tween position of the images, but when I do that the mask is "traveling" alongside with the images..

View 4 Replies

ActionScript 2.0 :: [CS3] MC Control By Cursor Position?

Jan 27, 2009

Basically I want an MC to appear or disappear depending on the mouse proximity to it. Say for example I have a nav which only becomes visible as the mouse moves to the right hand side and then disappears as it moves away.

Previously I have used the old invisible button trick that triggers the MC as the mouse moves over it. Yes im well aware that is frowned upon and is not 100% effective but as of yet thats the only method I know.

View 4 Replies

ActionScript 2.0 :: Full Browser Flash - Traced Its X Position And The Var StageXcenter Position And Like Suspected It Shows Different Values?

Nov 12, 2007

So I'm trying my hands on some full browser flash and after reading a couple of tuts I wrote this

Code:
#include "mc_tween2.as"
Stage.scaleMode = "noScale";
stageListener = new Object();[code]...

The trace's are because it didn't work like I thought it would.Etc the middle movieclip didn't center itself but rather positioned itself seemingly how it pleased so I traced its x position and the var stageXcenter position and like suspected it shows different values.

View 2 Replies

ActionScript 2.0 :: Take Button Position Half Width Of Own X Position On Stage

Feb 9, 2011

i want to take btn1 position half wwidth of own x position on stage

View 1 Replies

ActionScript 3.0 :: Zoom To Mouse Position Using Mouse Wheel?

Mar 9, 2010

Code:

addEventListener(MouseEvent.MOUSE_WHEEL,mouseWheel);
function mouseWheel(event:MouseEvent) {
Map.scaleX = Map.scaleX + event.delta*.01;
Map.scaleY = Map.scaleX;
}

The problem with this code is that it scales from the registration point (0,0). Due to the other transformations I'm doing to this image at various times, it isn't possible to move the registration point. The image is larger than the stage and the user is able to drag it around. I want the mouse wheel to zoom in on the place the mouse is hovering over (or at a minimum...the center of the "view" they have...aka the stage)I tried doing this:

Code:
internalPoint = new Point(Map.mouseX, Map.mouseY);
externalPoint = new Point(stage.mouseX, stage.mouseY);
var matrix:Matrix = Map.transform.matrix;

[code]....

Which, incidentally, I'm using that whole portion of code to zoom into the state they will be in when they use the mouse wheel.

View 1 Replies

ActionScript 1/2 :: Get And Set The Scroll Bars Position (pixel Position)

May 5, 2011

I have a ScrollPane and I want to get and set the scroll bars position (pixel position). For example, if the user changes the scroll bars position and then refreshes the page, we need to take the user at the same point where he was before refresh. For this I need to get the respective scroll bars positions before refresh and then set it to the saved position after load. I have got the positions by hPostion and vPosition but now when I try to save the values back to the same properties after refresh it doent work.

View 2 Replies

Actionscript 3 :: Tween Position Relative To Current Position?

Jan 23, 2010

I have a tween set on a timer:

var manTimer:Timer = new Timer(1000,14);
manTimer.addEventListener(TimerEvent.TIMER, moveMan);
function moveMan(e:TimerEvent):void {[code]....

I just need to make the tween's position relative to it's current position, as opposed to starting at the stage's 0 position then moving the the stage's -40 position. It needs to start at its current position the move -40 from that position.

View 1 Replies

ActionScript 3.0 :: Movieclip To Move To The Position Of Each Of Buttons From Any Position?

May 13, 2010

I'm hoping someone can solve this headache. Basically, I want a movieclip to move to the position of each of my buttons from any position along my x axis. Therefore, the movieclip needs to 'flip' to face the way it is traveling.At the moment I have the movieclip moving to the mouse x axis when I ROLLOVER the button and stop following the mouse when I ROLLOUT but the code won't flip the movieclip so I must have something wrong...

btn.addEventListener(MouseEvent.ROLL_OVER,followCa t);
btn.addEventListener(MouseEvent.ROLL_OUT,stopCat);
btn02.addEventListener(MouseEvent.ROLL_OVER,follow Cat);
btn02.addEventListener(MouseEvent.ROLL_OUT,stopCat );

[code]....

View 0 Replies

ActionScript 3.0 :: Setting A Position Of Movieclip Called Red X And Y Position?

Jul 3, 2009

setting a position of movieclip called red x and y position within a movieclip called background

Code:
background.redsquare.x = 300;
background.redsquare.y = 300;

comes up with TypeError: Error #1010: A term is undefined and has no properties.

setting a position of movieclip called red x and y position withen a movieclip called background

Code:
redsquare.x = 300;
redsquare.y = 300;

This works fine but how can that be when surely you must access the red withen the background rather then just accessing red?

View 3 Replies

ActionScript 3.0 :: Changing Y Position Results In Random Position

Nov 8, 2010

I've run into a new problem, this time with positioning. I've narrowed down the line that's causing it--"block.y = block.y + block.height;" in SetOfBlocks.shiftDown. When I take it out, no problem. But with it in, instead of just dropping each block down by a block height, the affected blocks sometimes move up, and also often move about randomly within the X axis--although their new positions always keep them lined up with the 'grid', which is to say, within multiples of the block height and widths.

[Code]...

View 3 Replies

ActionScript 2.0 :: Control Mc By Main Timeline Position?

Oct 2, 2009

I have a mc with thumbnail images ('thumbs_mc'). Within 'thumbs_mc,' I have mc instances that change alpha on rollon and rollout. When clicked, these mc instances also control the main timeline. That's all good and working fine.Now, however, I want something over each thumbnail to indicate which of them is currently active. (I thought about using the same mc for both the mouseover and current marker, but it's problematic since rolling off the mc sets the alpha to 0, destroying the current marker.)

So I figured that I could use another mc (one instance is 'mark_red_btn') and just control its visibility, based upon the where the playhead is in the main timeline.This is what I have in the first frame of the mc that contains the thumbs the mouseovers and the current markers:

mark_red_btn._visible=false;
if (_root._currentframe == "red") {
mark_red_btn._visible = true;
};

Unfortunately, it is not working. The mc 'mark_red_btn' stays invisible even when the main timeline is on the frame labeled 'red.'

View 9 Replies







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