Detect Mouse _x & _y Attach Specific Clip And Have It Follow Mouse
I'm trying to make a clip that will have another clip attached (eventually it'll be a mask) when you roll over it. I want the mouse positon to be determined on rollover and a different clip (with different registration point) to be attached depending on which quadrant you rollover first. IE- you rollover the lower left quadrant of the mc first so an mc with an upper right registration point is attached and follows the mouse.
basically I want it to look like you're pulling a mask from out of nowhere onto the main mc from whatever corner you start on... (make sense?)
i'm trying to reconstruct what you see here (http://www.mullerphoto.com/)
this is the first baby step!
anyhow, here's my AS and i'll attach the .fla any help is great! I have the actionscript dictionary and am not afraid to use it, I just need help with the mechanics of how to actually do this (i.e.- which methods, properties, etc. to utilize) thanks!
Code:
leftfunction = function(){
if (patch._ymouse <= 100){
llowerfunction;
}else{
//this function starts the maskclip coming in from the upper left with a lower right reg point
_root.patch.attachMovie("lowerright", "lrclip", 1);
lrclip._x = _root.patch._xmouse;
lrclip._y = _root.patch._ymouse;
}
}
llowerfunction = function(){
//this function starts the maskclip coming in from the lower left with an upper right reg point
patch.attachMovie("upperright", "urclip", 1);
urclip._x = patch._xmouse;
urclip._y = patch._ymouse;
}
rightfunction = function(){
if (patch._ymouse <= 100){
rlowerfunction;
}else{
//this function starts the maskclip coming in from the upper right with a lower left reg point
patch.attachMovie("lowerleft", "llclip", 1);
llclip._x = patch._xmouse;
llclip._y = patch._ymouse;
}
}
rlowerfunction = function(){
//this function starts the maskclip coming in from the lower right with an upper left reg point
patch.attachMovie("upperleft", "ulclip", 1);
ulclip._x = patch._xmouse;
ulclip._y = patch._ymouse;
}
_root.patch.onRollOver = function() {
if (patch._xmouse <= 150){
leftfunction;
}else{
rightfunction;
}}
ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 02-09-2005, 03:54 PM
View Complete Forum Thread with Replies
Sponsored Links:
- Detect Mouse Position, Attach Movie
- Follow Mouse In Specific Area Help
- Follow Mouse, Detect Direction, Distance To, Play Corresponding MC Frame
- Moive Clip To Follow Mouse
- Movie Clip Follow Mouse
- Making A Movie Clip Follow The Mouse
- On Rollover, Movie Clip Appear And Follow Mouse?
- Rotation On Movie Clip, Follow Mouse
- Movie Clip Pivots To Follow Mouse
- Making A Movie Clip Follow The Mouse
- 3D Movie Clip Follow Mouse Problem
- Movie Clip Rotation To Follow Mouse
- Help-Movie Clip Will Follow The Mouse Movement
- Follow The Mouse+movie Clip Roll Over
- Mouse Follow/stopfollow After Mouse Leaves Object (with Ease)
- Can I Constrain A 'follow Mouse' Clip To Certain Areas Of The Screen?
- [F8] Make Textmovie Clip Follow The Mouse Cursor
- [F8] Make Textmovie Clip Follow The Mouse Cursor
- [F8] Follow The Mouse - Stop Mc At Location Of Mouse On Click
- TRIG - MC Follow Mouse Rotate Around Mouse Point
- Changing AS So Mouse Follow Is Switched To Mouse Repel?
- Detect Mouse On Clip, Determine Quadrant And Set Property
- Detect Mouse On Clip, Determine Quadrant And Set Property
- Mouse Follow With Delay When Mouse Over In Certain Area - HELP
- Mouse Trailer To Follow Path Instead Of Mouse
- Cant Get Hide Mouse Follow Mouse To Work
- Movie Clip Mouse Speed Control Depending On Mouse Press
- Playing A Movie Clip On Mouse Over And Continue To Last Frame On Mouse Out
- On Mouse Over, Follow Mouse
- On Mouse Over...follow Mouse
- Follow Mouse..... Help, Please
- Mouse Follow
- Mouse Follow
- Follow Mouse?
- Follow Mouse Help :(
- Mouse Follow?
- Mouse Follow Nav Bar
- Follow Mouse
- Follow Mouse FX
- Mouse Follow HElp
- Follow Mouse
- Mouse Follow
- Bar Mouse Follow
- MC To Follow Mouse
- Follow The Mouse
- Mouse Follow
- Follow The Mouse
- Follow Mouse ?
- Mouse Follow
- Tag That Follow Your Mouse
- Tag That Follow Your Mouse
Detect Mouse Position, Attach Movie
I'm trying to make a clip that will have another clip attached (eventually it'll be a mask) when you roll over it. I want the mouse positon to be determined on rollover and a different clip (with different registration point) to be attached depending on which quadrant you rollover first. IE- you rollover the lower left quadrant of the mc first so an mc with an upper right registration point is attached and follows the mouse.
basically I want it to look like you're pulling a mask from out of nowhere onto the main mc from whatever corner you start on... (make sense?)
i'm trying to reconstruct what you see here (http://www.mullerphoto.com/)
this is the first baby step!
anyhow, here's my AS any help is great! I could use some general mechanics of actionscript help.. (i.e.- am i using it in the correct way, what methods, properties, etc. should I use to accomplish this...)
ActionScript Code:
leftfunction = function(){
if (patch._ymouse <= 100){
llowerfunction;
}else{
//this function starts the maskclip coming in from the upper left with a lower right reg point
_root.patch.attachMovie("lowerright", "lrclip", 1);
lrclip._x = _root.patch._xmouse;
lrclip._y = _root.patch._ymouse;
}
}
llowerfunction = function(){
//this function starts the maskclip coming in from the lower left with an upper right reg point
patch.attachMovie("upperright", "urclip", 1);
urclip._x = patch._xmouse;
urclip._y = patch._ymouse;
}
rightfunction = function(){
if (patch._ymouse <= 100){
rlowerfunction;
}else{
//this function starts the maskclip coming in from the upper right with a lower left reg point
patch.attachMovie("lowerleft", "llclip", 1);
llclip._x = patch._xmouse;
llclip._y = patch._ymouse;
}
}
rlowerfunction = function(){
//this function starts the maskclip coming in from the lower right with an upper left reg point
patch.attachMovie("upperleft", "ulclip", 1);
ulclip._x = patch._xmouse;
ulclip._y = patch._ymouse;
}
_root.patch.onRollOver = function() {
if (patch._xmouse <= 150){
leftfunction;
}else{
rightfunction;
}}
View Replies !
View Related
Follow Mouse In Specific Area Help
I understand that the custom mouse would be on all of the flash document, but is there a way to make the mouse work in one specific area?
http://www.whosid.co.uk/new/Website.html
I want the Mouse to only appear within the Box.
Thanks, much appreciated.
View Replies !
View Related
Follow Mouse, Detect Direction, Distance To, Play Corresponding MC Frame
Hello,
Second time poster and a novice in actionscript.
I can almost read it, just can't seem to write it at all.
I'm trying to have the animation of a MC instance name "walking_mc" follow the mouse on the x axis, arrive at the mouse and stop, turn then continue following the mouse in which ever direction it moves.
here's a link to the file:
http://jdittmer.free.fr/test/test.htm
http://jdittmer.free.fr/test/walking.fla.zip
here is what I have so far:
[as]
function fMoveChar() {
var xmouse = _root._xmouse;
var xchar = myCharacter._x;
if (xmouse > xchar) var dir = 1;
else var dir = -1
myCharacter._x += myCharacter.speed * dir;
var dist = Math.abs(xchar - xmouse);
// use conditional statements and the dist variable to tell your mc to goto certain frames
if (dist < 15) {
myCharacter.gotoAndPlay("StopFromRight");
} else myCharacter.speed = 4;
if (dist < 2) {
myCharacter.speed = 0;
myCharacter._x = xmouse;
} else myCharacter.speed = 4;
}
moveInt = setInterval(fMoveChar,44);
[as]
I have an MC with the corresponding frames and the appropriate frame names ie; "LeftToRight", "StopFromRight", "LeaveToLeft";
I'm looking for the actionscript for that will allow it to:
- detect whether the _xmouse is to the left or the right and play the corresponding frame.
An if/else with the dist variable would give me part, but not direction.
I'd appreciate any help you all could give.
Thanks,
JED
View Replies !
View Related
Moive Clip To Follow Mouse
I would like a movie clip to follow the mouse along its horizontal position.
I am using this code:
onClipEvent (enterFrame) {
setProperty (this, _x, _xmouse);
}
but it causes the movie clip to flash and not follow the cursor tightly.
Is there a better way?
View Replies !
View Related
Rotation On Movie Clip, Follow Mouse
I am creating a game where I have a turret (a movie clip) on a helicopter (also a movie clip) , and the helicopter has action scripting to move with the W, A, S, and D keys, and the custom cursor is crosshairs. I want the turret to follow the mouse with rotation only, and follow the mouse whether the mouse is moved and the helicopter isn't, or whether the helicpter is moved and the mouse isn't, or if both are. I am using MX and I would appreciate any help. I have searched the tutorials. Thanks for your time.
View Replies !
View Related
Movie Clip Pivots To Follow Mouse
Hello group-
I am new to posting, so here goes: I am trying to have a slingshot follow the mouse from a pivot point: that is, have it rotate from its registration point, not follow the mouse around the stage, or have 36o-degree rotation. The mouse will pass over an invisible button, which, on press, will go to and play an animation in a different scene, of a rock zooming to the target. This in turn will go to and play another animation in a different scene. I have a very basic understanding of Actionscript, and I am working in Flash MX (my school won't upgrade).
Thanks in advance!
View Replies !
View Related
Making A Movie Clip Follow The Mouse
I have a movie clip following the mouse. I just need to know the name of the function that makes flash redraw instantly instead of at the end of the function.
in director this function is called updateStage()
Example:
function gameLoop(){
clip1._x = _xmouse;
clip1._y = _ymouse;
updateStage(); //redraw
// other statements
// other statements
// other statements
// other statements
// other statements
}
View Replies !
View Related
3D Movie Clip Follow Mouse Problem
Hi. I am an actionscript beginner and wondering if you can help me? I would REALLY appreciate your help with this.
I made spiral rotating line in 3D space animation using Flash CS4. I would like for my 3D spiral Movie clip to follow the mouse movements of a visitor.
My code works.....but....the spiral decreases in size and eventually disappears when moved to certain sections.
In short, what I am trying to do is to keep my spiral effect constantly the same size and movable on the screen.
Here is the code
addEventListener(Event.ENTER_FRAME, rotate3D);
function rotate3D(e:Event):void
{
spiral02_mc.rotationX += 1;
spiral02_mc.rotationY += 2;
spiral02_mc.rotationZ += 3;
}
spiral02_mc.addEventListener(MouseEvent.MOUSE_OVER , pressHandler);
stage.addEventListener(MouseEvent.MOUSE_UP, releaseHandler);
function pressHandler(event:MouseEvent):void {
spiral02_mc.startDrag();
}
function releaseHandler(event:MouseEvent):void {
spiral02_mc.stopDrag();
}
View Replies !
View Related
Movie Clip Rotation To Follow Mouse
Hey,
First off, lemme start by saying that this site is incredibly awesome. Every time I have a problem or wish to learn something in Flash I turn to kirupa.com. Thanks a lot!
Now for my problem. Have you ever played Madness? You know how, depending on where the mouse is, the hand rotates i.e. points at the mouse's current position? Well, I want to learn how to do that. I've attached a short animation demonstrating what I want to be able to do (the arrow points at the mouse's position, and then gun represents the movie clip that rotates) using a script provided by the kind soul who will be willing to help me.
Thanks again,
-Raven~Storm
View Replies !
View Related
Help-Movie Clip Will Follow The Mouse Movement
Hi everyone,
I'm neither a beginner nor a pro in AS. Would u pls help me in this issue-this is very imp and urgent.
Pls visit http://www.mindengine.com/ This is a cool site. I want to replicate the movement of it-only the initial part where user moves his mouse and the whole screen moves. I need this part to replicate.
Can u help me, pls, pls...
Thanks.
View Replies !
View Related
Follow The Mouse+movie Clip Roll Over
Hello, I'm trying to make a movie clip following the mouse when I roll over to another movie clip. I'm trying this code but it does not seems to be working:
Code:
_root.moshe.onLoad = function() {
this._x = 0;
this._y = 0;
speed = 5;
}
boxer.onRollOver = function() {
_root.orn1.gotoAndPlay(2);
_root.moshe.onEnterFrame = function() {
endX = _root._xmouse;
endY = _root._ymouse;
this._x += (endX-this._x) / speed;
this._y += (endY-this._y) / speed;
}
};
Any suggestions would be greatly appreciated, thanks.
View Replies !
View Related
Mouse Follow/stopfollow After Mouse Leaves Object (with Ease)
well, i think the title covers me entirely, i would like some help with a script.
The problem is, i have a scene with objects that at first they are static, when the mouse comes in and makes a move-over the scene and some objects,i have assigned multiple collision to the objects, i want when the mouse moves over a object, the object to follow the mouse,while colliding to all other objects and after a while i would like as the mouse moves away, the following to stop and the objects to return to its original spot with ease.
I know that this is a big one, but i would like some help if i could get
View Replies !
View Related
Can I Constrain A 'follow Mouse' Clip To Certain Areas Of The Screen?
Hi there
got a clip that follows mouse on the Y axis ...
As it stands, the clip is active and follows the mouse up and down the WHOLE screen
Would like to set it up, so that it only follows between about an inch or two of the screen
Here is the code ive used to set up the mouse follow
//y movement
my9=_root.content._ymouse;
if (my9<_y) {
dy9=_y-my9;
}
else {
dy9=my9-_y;
}
moveSpeedy9=dy9/5;
if (my9<_y) {
_y=_y-moveSpeedy9;
}
else {
_y=_y+moveSpeedy9;
}
//x movement
mx9= 300;
moveSpeedx9=dx9/10;
if (mx9<_x) {
_x=_x-moveSpeedx9;
}
else {
_x=_x+moveSpeedx9;
}
}
X movement not important, just want the clip to follow when the mouse is somewhere between 150px and 350px from the top of screen
Could really use some help here ... any ideas?
Cheers for any time and suggestions you can give
G
View Replies !
View Related
[F8] Follow The Mouse - Stop Mc At Location Of Mouse On Click
I have an mc that follows the mouse a certain distance on the x in both directions and then eases to a stop when the mouse gets a certain distance.
What I need to do is to have the mc stop on button click at the x position it is at on click. Then, when another button is clicked the animation continues from it's stopped location to the new mouse location. All with easing of course.
Here is the code for the mouse tracking:
Code:
onClipEvent (load) {
speed = 3;
}
onClipEvent (load) {
stageWidth = 700;
imageWidth = 615;
}
onClipEvent (enterFrame) {
destx = (stageWidth-imageWidth)*(_root._xmouse/stageWidth)
_x += (destx-_x )/speed;
}
Any help would be greatly appreciated.
View Replies !
View Related
TRIG - MC Follow Mouse Rotate Around Mouse Point
I have read and i think i 'fully' understand (unless it gets more complicated or what not) the trig tutorial, on this site.
no offence i cant remeber who's tut.
i can make a movieclip circle another movie clip,static or moving.
but now, i have a movie clip that follows the mouse pointer when the up key is toggled.
and i want this movieclip to rotate around the mouse point,when the left key is either pressed or toggled, and reverse this movement for the right key.
i have tried a few things for this i can not get it to rotate, it just seems to jitter randomly.
i have tried rotating a completely static MC around mose point which also failed..
any help thanks?
this is the code that makes the clip face the mouse, and move to its position.
its a function called from another function.
its followed from a tut but i do understand it. This is not what im having troublewith,this works.
Code:
myRadians = Math.atan2(_root._ymouse-MYCLIP._y, _root._xmouse-MYCLIP._x);
myDegrees = Math.round((myRadians*180/Math.PI))+90;
MYCLIP._rotation = myDegrees;
_root.yMove = Math.round(_root.yChange/20);
_root.xMove = Math.round(_root.xChange/20);
MYCLIP._y += _root.yMove;
MYCLIP._x += _root.xMove;
_root.yChange = Math.round(_root._ymouse-MYCLIP._y);
_root.xChange = Math.round(_root._xmouse-MYCLIP._x);
}
to make it clear what i want, a MC that will circle the mouse point, when key is down or toggled, this movieclip also needs to be capable of moving towards mouse point on key down or toggle.
Cheers.
View Replies !
View Related
Changing AS So Mouse Follow Is Switched To Mouse Repel?
So I'm using the .fla attached as a basis for an image scroller (thanks TheCanadian!) and I was just wondering what the process would be to invert it so the "follow" MC is being repelled by the mouse, rather than attracted.
Here's the code for quick reference...
"follow" is the MC following the mouse and "bounds" is the area in which "follow" can move freely.
Code:
follow.onEnterFrame = function() {
this._x += (Math.max(bounds._x + this._width / 2, Math.min(_xmouse, bounds._x + bounds._width - this._width / 2)) - this._x) / 5;
this._y += (Math.max(bounds._y + this._height / 2, Math.min(_ymouse, bounds._y + bounds._height - this._height / 2)) - this._y) / 5;
};
Thanks!
View Replies !
View Related
Detect Mouse On Clip, Determine Quadrant And Set Property
I'm trying to make a clip that will have another clip attached (eventually it'll be a mask) when you roll over it. I want the mouse positon to be determined on rollover and a different clip (with different registration point) to be attached depending on which quadrant you rollover first. IE- you rollover the lower left quadrant of the mc first so an mc with an upper right registration point is attached and follows the mouse.
basically I want it to look like you're pulling a mask from out of nowhere onto the main mc from whatever corner you start on... (make sense?)
i'm trying to reconstruct what you see here (http://www.mullerphoto.com/)
this is the first baby step!
anyhow, here's my AS and i'll attach the .fla any help is great!
Code:
leftfunction = function(){
if (patch._ymouse <= 100){
llowerfunction;
}else{
//this function starts the maskclip coming in from the upper left with a lower right reg point
_root.patch.attachMovie("lowerright", "lrclip", 1);
lrclip._x = _root.patch._xmouse;
lrclip._y = _root.patch._ymouse;
}
}
llowerfunction = function(){
//this function starts the maskclip coming in from the lower left with an upper right reg point
patch.attachMovie("upperright", "urclip", 1);
urclip._x = patch._xmouse;
urclip._y = patch._ymouse;
}
rightfunction = function(){
if (patch._ymouse <= 100){
rlowerfunction;
}else{
//this function starts the maskclip coming in from the upper right with a lower left reg point
patch.attachMovie("lowerleft", "llclip", 1);
llclip._x = patch._xmouse;
llclip._y = patch._ymouse;
}
}
rlowerfunction = function(){
//this function starts the maskclip coming in from the lower right with an upper left reg point
patch.attachMovie("upperleft", "ulclip", 1);
ulclip._x = patch._xmouse;
ulclip._y = patch._ymouse;
}
_root.patch.onRollOver = function() {
if (patch._xmouse <= 150){
leftfunction;
}else{
rightfunction;
}}
View Replies !
View Related
Detect Mouse On Clip, Determine Quadrant And Set Property
I'm trying to make a clip that will have another clip attached (eventually it'll be a mask) when you roll over it. I want the mouse positon to be determined on rollover and a different clip (with different registration point) to be attached depending on which quadrant you rollover first. IE- you rollover the lower left quadrant of the mc first so an mc with an upper right registration point is attached and follows the mouse.
basically I want it to look like you're pulling a mask from out of nowhere onto the main mc from whatever corner you start on... (make sense?)
i'm trying to reconstruct what you see here (http://www.mullerphoto.com/)
this is the first baby step!
anyhow, here's my AS and i'll attach the .fla any help is great!
Code:
leftfunction = function(){
if (patch._ymouse <= 100){
llowerfunction;
}else{
//this function starts the maskclip coming in from the upper left with a lower right reg point
_root.patch.attachMovie("lowerright", "lrclip", 1);
lrclip._x = _root.patch._xmouse;
lrclip._y = _root.patch._ymouse;
}
}
llowerfunction = function(){
//this function starts the maskclip coming in from the lower left with an upper right reg point
patch.attachMovie("upperright", "urclip", 1);
urclip._x = patch._xmouse;
urclip._y = patch._ymouse;
}
rightfunction = function(){
if (patch._ymouse <= 100){
rlowerfunction;
}else{
//this function starts the maskclip coming in from the upper right with a lower left reg point
patch.attachMovie("lowerleft", "llclip", 1);
llclip._x = patch._xmouse;
llclip._y = patch._ymouse;
}
}
rlowerfunction = function(){
//this function starts the maskclip coming in from the lower right with an upper left reg point
patch.attachMovie("upperleft", "ulclip", 1);
ulclip._x = patch._xmouse;
ulclip._y = patch._ymouse;
}
_root.patch.onRollOver = function() {
if (patch._xmouse <= 150){
leftfunction;
}else{
rightfunction;
}}
View Replies !
View Related
Mouse Follow With Delay When Mouse Over In Certain Area - HELP
Hi actionscript-gods!!!
I got a navigation bar and want a followmouse-object slide along on top of it with a little delay (delay not built in yet) as i move around my mouse in the navigation area. (in adition the object fades out when you don't move the mouse - but that part works and is not important here) My problem is that the object simply won't follow the mouse!!! I hope someone can help me...
Code explanations:
followmouse object = fader
container movie for fader = fadercontainer
Code for first image in _root:
var timeOut;
var maxTime = 2000;
function fadeUp () {
with (fadercontainer.fader) {
if (true == mouseMoved) {
if (_alpha<101) {
_alpha += 10;
} else {
mouseMoved = false;
timeOut = getTimer()+maxTime;
}
}
}
}
Code for fader:
onClipEvent (load) {
_alpha = 0;
function fadeDown () {
if (_alpha>0) {
_alpha -= 10;
}
}
}
onClipEvent (enterFrame) {
if (true == mouseMoved) {
_root.fadeUp(this);
setProperty ("_root.fadercontainer", _x, "_root._xmouse");
} else {
if (getTimer()>_root.timeOut) {
fadeDown();
}
}
}
onClipEvent (mouseMove) {
if (_root._ymouse>66 && _root._ymouse<110 && _root._xmouse>172 && _root._xmouse<689) {
mouseMoved = true;
}
}
Thanx in advance,
Ralf
View Replies !
View Related
Mouse Trailer To Follow Path Instead Of Mouse
I need help taking any old mouse trailer and having it follow a predetermined path (like a simple rectangle) instead of following the mouse cursor. I'm very new to flash and would love to be shown how to do this. I'm not even very clear on how you get a mouse trailer to work let alone disecting it and having it follow a path. I really just want to start with a black background, animate the process of drawing a rectangle, then follow the rectangle with an animation of sparks (I've seen some mouse trailers like this) of some sort (kind of like you're cutting a piece out with a blow tourch), then have the center of the rectangle fall away revealing a mask where I can show a scrolling slideshow. Easy right?! Well I don't think so and I could sure use the help!
Thanks in advance,
Tim
View Replies !
View Related
Movie Clip Mouse Speed Control Depending On Mouse Press
Hi,
Please help me !
As iam developing a small ball game in flash, where i need to control the speed of the ball (i.e, to increase or decrease the speed of ball)when clicked on a button depending on mouse press .
I have done similar on key press but iam not able to do the same for mouse pressed.
Please help me out
Your help will be appreciated.
Thanks & Regards
Zabi
View Replies !
View Related
Playing A Movie Clip On Mouse Over And Continue To Last Frame On Mouse Out
Hi All,
I have a movie clip on the timeline which is an animated mouseover button
Basically what I need to do is for the movie to be stopped at frame one when there is no mouse over and loop continuosly when I do have mouse over then on mouse out i want it to finish it's frames playing from where ever it was at when the mouse was moved out to the last frame and then display frame one so it is stopped again ready for a new mouse over.
Something I have found difficult to work out is that whilst it is doing the "out" play to to last frame, if you put the mouse back over again, it starts from frame 1 so looks like it jumps so i need the mouse over to also read what frame it is currently playing so that it can continue its endless loop from that frame to avoid it jumping about.
I hope that makes sense, it's really difficult to describe in words.
Here's the movie clip's action as it is now.
on (rollOver)
{
this.gotoAndPlay("over");
}
on (releaseOutside, rollOut)
{
this.gotoAndPlay("out");
}
ok so in the movie's timeline itself, the label "over" is a frame containing another movieclip which is basically a continous 30 frame loop and my movie timeline is stop();
so, on (rollOut) it plays at label "out"
I have placed a copy of the movie loop at the "out" frame which plays the movie slower at the end to make it a nice wind down stop
what I thought to do in action script is to read the current frame that the movie loop is at and make so the "out" position movie starts its playing frame from that frame number until it reaches the end frame where it jumps back to frame one of the timeline with the first stopped frame.
I've seen a command something like this below used to get the current frame number and take it away from the total to continue playing from that point, that's not totally right for what I am doing but it shows me the sort of thing i need to write but i don't know how to write an actionscript to read the current frame from the movie1 whcih is playing and start playing movie2 at "out" from that frame number?
on (rollOut) {gotoandPlay(_totalframes - _currentframe); }
maybe there is an easier way to get this to work, i've seen lots of similar examples on the web but nothing that specifically plays a lopp and then continues to the end on mouse out. it sounds simple but I've tried all weekend to do it without success?
Can anyone help me please?
Thanks,
Terrence.
View Replies !
View Related
On Mouse Over, Follow Mouse
Hi,
I would like some text to appear within a particular area of my movie when the mouse rolls over this area.
Thing is, I want the text to follow the mouse until the mouse leaves that area. Should I do this with a button?
Thanks xxx
View Replies !
View Related
Follow Mouse..... Help, Please
Hi,
I want to try this effect. Can anyone help me?
I have circular buttons.
I change colors of the buttons on mouse over. I also have a bigger circle(unfilled) which sits on one of the buttons. Now, If I move my mouse on any other button, the bigger circle should move and sit on the button where the mouse is pointing. (I don't want the bigger circle to trace the mouse throughout the screen.)
How do I do this? I am new to scripting in Flash. Does it require lot of scripting?
Abhigna
View Replies !
View Related
Mouse Follow
I have a MC that contains the onClipEvent (enterFrame)action
along with script for a rectangle to follow the mouses position along the x axis. This works, but how do i set parameters to keep it within a box and only follow the mouses position when it enters that box? Hope thats not too confusing. Basically i want the rectangle only to move when the mouse enters the specified hotspot and restrict the rectangles x movement to this hotspot. All help is creatly appreciated!
View Replies !
View Related
Follow Mouse Help :(
Hi
I want to make a movie clip follow the cursor but only in a vertical direction and the item must not be able to move horizontal. If the cursor moves from left to right nothing should happen until the cursor is moved up or down.
I have flash 5, can anyone help?
thanks
View Replies !
View Related
Mouse Follow?
How do I make one of those things that follow the mouse around when you move around the flash? Mouse trail type thing that flys around the mouse... or whatever.. ha... sorry im not very descriptive.
View Replies !
View Related
Mouse Follow Nav Bar
Pls help
I have this arrow which i wish to move from left to right according to the mouse location and stop following when the mouse moves to a certain location. Therefore I tried adding the following to the arrow symbol
Code:
onClipEvent (enterFrame) {
startDrag(getProperty(_x, _y), true, 0, 389, 550, 389);
}
However, since I used the startDrag script but didn't end with a stopDrag script, I cannot do anything in my movie as it is still dragging. So I thought of changing it to the following:
Code:
onClipEvent (enterFrame) {
startDrag(getProperty(_x, _y), true, 0, 389, 550, 389);
if (_x <= 379) {
stopDrag ()
}
}
But now the arrow does not move but I can click on buttons and such. Can anyone please help me modify it so that it works but does not do anything to my other objects?
Thanx a milliion!
View Replies !
View Related
Follow Mouse
ahhhhh, I really need help. I want a button, when rolled over, will have a text box follow the mouse, but when you rolled out the box stops following the mouse and it disappears. any help is appreciated!
View Replies !
View Related
Follow Mouse FX
Hi folks;
i hope you can help me out on this. I'm currently develloping a new menu for my website and i want some nice animation in it.
This is what i want to do: I have a trusstower and sleeveblock. This sleeveblock should "follow" the mouse (but only up and down!!) as the user moves the mouse from topic to topic.
So, can I combine the StartDrag script with a motionguide? How would you do it?
Thanks in advance
sentencedfan
btw. if you wanna know, how the menu looks like now, come to http://www.fivestyle.de
View Replies !
View Related
Mouse Follow HElp
I have a menu of buttons. I have an arrow that I want to move up and down but only when the mouse is over a button. Example the user rolls over button one the awrrow moves along the x axis and comes to rest at the user's selection, The user moves to another bustton the arrow slides down to that choice and so on. ANyone one with some ideas
View Replies !
View Related
Follow Mouse
Hi
I have made a simple "follow the mouse" swf.
The MC works just great. I have also added two output windows that show the current position of the MovieClip.
Now here's the problem...My movie size is 650 x 400 pixels...but the readout is in 4 digits...what exactly is happening.
If its of any help, here's the code:
Code:
movie_clip._x = _xmouse;
movie_clip._y = _ymouse;
XPos = getProperty ("movie_clip", _x)
YPos = getProperty ("movie_clip", _y)
Thanks for any information...
Tootles
RanTen
View Replies !
View Related
Mouse Follow
hi there
plz i have a serial of buttons and i want when i roll the mouse over the button zone i want a little arrow follow the mouse under the buttons (i hope u get it)
like in http://www.macromedia.fr
if i use
_x +=(_root._xmouse-_x)*.3;
_y +=(_root._ymouse-_y)*.3;
(3 is an example)
so it will follw the mouse in every direction and in every place but i want that the arrow does'nt exist if i don't roll the mouse over the button zone
in http://www.macromedia.fr theres an example
thx in advace
View Replies !
View Related
Mouse Follow
i made a ball with another small ball in, the small ball looks at the mouse but it must stay in the other ball!
it's maybe a bit complicated explained but just see the fla and you understaind i suppose.
thx
View Replies !
View Related
Follow The Mouse
Can someone lead me to someplace or send me a file of possibly an animal or person thats head moves with the mouse and the eyes follow. I kinda get what to do, but I keep missing something. I just want some simple file I can break apart and see what Im doing wrong.
Thanks.
View Replies !
View Related
Mouse Follow
Does anyone know how to have an object follow the mouse in a specific area. Not the whole flash document. Here's an example: http://www.summitprojects.com/
View Replies !
View Related
Tag That Follow Your Mouse
can anybody teach me how to do this thing?
do u see the girl on the right?
when your mouse is over that girl
theres this small tag folowing your mouse
saying "<<just drag the bar, sweetcheeks"
http://www.driftlab.com/
anybody can teach me how to do this?
thnx^^
View Replies !
View Related
Tag That Follow Your Mouse
can anybody teach me how to do this thing?
do u see the girl on the right?
when your mouse is over that girl
theres this small tag folowing your mouse
saying "<<just drag the bar, sweetcheeks"
http://www.driftlab.com/
anybody can teach me how to do this?
thnx^^
View Replies !
View Related
|