Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Flash




|||||| A Movie ClipThat Follows Mouse ||||||



How do you make a movie clip follow your mouse?

I want to create a text pop up when the mouse goes over a button on my page, but I want it to also follow the mouse while it moves around the area of the button.
I presume to do this you would enter a movieclip (containing the text) that follows ur mouse on the Over state of your button...


Cheers for any help :-)




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

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

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.

Changing Mouse Cursor On Mouse Over/out Without Drag Movie?
Hello,
I have a movie clip/button that activates some actions but I don't want the mouse pointer show the link icon (hand) and instead show the normal arrow icon. Is this possible with a fast mouse.smth actionscript or is a complex startdrag/stopdrag of movieclips the only way out? Thanks in advance.

How Do I Make A Movie Appear When The Mouse Clicks And Where The Mouse Is?
I am making a game, and I need to know how to make a Movie Clip appear when the mouse clicks, at the spot the mouse is. (In the game, you have a gun and hunt things. I want a bullet hole to appear where the mouse is when you fire (click). How do you do that?)
l8erdude
-Flash 5 Bang-

How Do I Stop And Start A Movie On Mouse Out And Mouse In?
Look at:
http://www.hugo.com/home.asp?lang=en&som=hw
Click on the left most button.

You have three buttons.

- When the mouse goes over the button, the movie starts playing.
- When the mouse goes out of the button, the movie stops playing exactly where it was playing.
- When the mouse comes back in, the movie starts playing at the exact spot where it was left playing.

How do I do this!?
I guessit's to do with the onClipEvent function?
I've tried a few things, but can't figure out what the parameters should be.

I just can't figure out how you stop exactly at some place in the movie when the mouse goes out AND how you start it again from that same spot when the mouse comes back in!!?

Can anyone figure out how to do this?

Any help would be appreciated.

Thanks.


Jam

Having Mouse Control The Movie, Even When Outside The Movie.
Hi

I am wanting for the mouse to have control on the movie clip even when it is outside the bounds of the movieclip on the website.

I have a simple little animation which follows the mouse horizontally in the movie clip, but of course, this stops working if the mouse is outside the Flash movie!

Is there anyway for this to work, so that the animation continues to work horizontally when the mouse is focussed down on the html part of the page.

For site see: http://alingham.vze.com/home.php

Mouse Rollover On One Movie Clip Increase Decrease Alpha Of Another Movie Clip..
So I really haven't messed with Actionscript much for a couple years and here is my issue.

I have several movieclips I put together that will eventually be a menu for my website. When you roll over a menu option (movieclip) I am trying to get another movie clip to fade in giving the description of the menu item.

For example - when you roll your mouse over the 'Live Chat' option a brief text description would appear telling you what the live chat is about. This description is a seperate movie clip appearing away from the original menu.

I have made the movieclips for the menu and the movie clips for the descriptions. I tried this action on the menu option to get the description to fade in:


Code:
onClipEvent (load) {
this._parent.mc_text_discussionBoard._alpha = 0;
}
onClipEvent (enterFrame) {
this.onRollOver = function() {
if (this._parent.mc_text_discussionBoard._alpha<100) {
this._parent.mc_text_discussionBoard._alpha += 5;
}
};
}
But the alpha only increases on the description (mc_text_discussionBoard) by 5 when I keep rolling my move over and out and over again. It makes sense why it does that, but I'm not exaclty sure how to get it to continually increase the alpha by 5.

any help would be great and I am anxiously waiting to get this solved!
Kevin

Movie Following Mouse
i want the rollover thing to follow mouse - please could someone help me out and set it up for me

http://www.900degrees.co.uk/images/reviews/example.fla

Mouse Over Movie
how do you figure out if the mouse is over a swf? not a movie clip but the whole move. _xmouse keeps the last value while it was over the movie clip. I'm confused. thanks in advance

Movie After Mouse
When doing a website with several buttons in the navigation, how would I make it play a movie after I click a specific button and still have it go to the right location after it has played the movie? A good example of what I want to do can be found at www.gotee.com (the animation that occurs after a button is clicked). Thanks.

Mouse Over Movie
I have a simple Button which activates a Movie Symbol on the mouse over state.

I would like to make the short movie continue even if the mouse moves away from the over state. If the mouse is left over, the movie runs its 20 frames and then comes to an action stop. But at the moment if the user moves the mouse away the image flips back to the up state.

Cheers

I have searched the site but I have a bit of RSI and my hand is killing me :-)

Deen

Mouse Out Of The Movie
Hello =), im new on flash and i can't find out the way to take the event or find the instruction that tells me when the mouse is out of the screen (out of the swf on any page)... do i make myself clear??

Does exist that ??, thanks a lot.

by the way... i tried with xmouse and ymouse restrinctions but some times when i move the mouse too fast that condition doenst work.


...and please forgive my spelling im from argentina.

Mouse Off Movie
This might be blindingly obvious , however I have yet to figure out how to do this.

I'm building a video component, that will sit as a flash element in an XHTML page, one problem that I've experienced is that when a person starts to drag the video scrubber and moves off the movie without releasing the scrubber, the video will continue to scrubb when the mouse moves back on to the movie.

Does anyone know how to stop the drag if the cursor moves off the flash movie altogether?

Mouse Outside Movie
I have buttons near the edge of my flash movie. If I move my mouse quickly ouside the .swf it thinks that the mouse is still hovering over the buttons. How do I get around this?

Is The Mouse Over The Movie?
Hi peoples!

I want to display a tooltip whenever the mouse is over the flash movie, when the mouse leaves the movie I want the tooltip to disappear.

So how do I tell when the mouse enters and leaves the movie?

Thanks :-)

monk.e.boy

Movie Clips Following Mouse
can u have more then 1 movie clip following the mouse?
if so how....

i used the startdrag command for more then one movie clip and only one would follow the mouse

please help

Mouse Controlled Movie
Hey guys
I was wondering if it was possible to make it so that a movie clip moves in accordance with mouse movement. For example, if the mouse moved all the way to the left, then the movie clip would move all the way to the right. And the movie clip location would be constantly updated as the mouse was moving. Thanks everyone
Don

Has Mouse Left Movie Yet?
ok, still haven't figured it out, can't find help, but it ought to be so easy...

i have a small swf embedded in html (like a banner or so). if mouse enters movie, an MC responds to it's x-position.
easy. i do that with _root._xmouse.
but if mouse leaves the swf-area, that MC is supposed to become invisible. i cannot figure out though when pointer is actually leaving the area. when it does _root._xmouse only keeps returning the last valid value.
Know what i mean?
it's being done all the time, so, like, everybody has to know. please tell me

thank you,

marc

Keeping The Mouse In The Movie
Does anyone have any idea how to restrict the mouse to the movie only i.e. Not let the user move the mouse outside the movie unless (For example) they press Escape?

The reason for trying to do this is that I am developing a game that requires user interaction via the mouse. If the user moves the cursor past the edge of the movie they lose control of the game and die. Very annoying. Hence i need to keep the mouse 'in the game' until they decide to stop playing.

(The ._XMouse and ._YMouse properties are out as they're read only...)

Cheers in Advance,

RedSeal.

Mouse Over And Movie Clip
please can anyone help, am trying to play a movie clip when mouse rollover event occurs but without having the movie clip actually on the stage. I'd like to control the x/y location.
Another thing, there's an object on my stage (just a stroke) and i'd like to change the colour when my mouse rolls over a button.

thx in advance, you wonderful people out there

debi

Movie Clip Under Mouse Help
hi everyone,
i have a problem i have been working on for 3 hours now.

i have a button and on the up state of the button there is a movieClip....and when you dbl-click on the movie clip(in the editing mode, not the flash swf) there is 2 frames, each has a stop on the frame, and frame1 is box and frame2 is a circle.

how would i go about changing the frame to frame2 on the movieClip through actionScripting?

i have tried everything, _root.butt.movClp.gotoAndStop(2)
_root.movClp.gotoAndStop(2)
_parent.butt.movClp.gotoAndStop(2)

i would love some help.
thanks
-mike

Mouse/Movie Clip Help
Can you help?

I have a movie clip which when it is rolled over hides the mouse and when rollled out shows the mouse. This section i have worked out!

What i need next is when the movie clip is rolled over the mouse turns into a custom cursor which moves in the confines of that clip, so that when you rolll off the movie clip the normal cursor remumes.

Any help would be grand!

Jemes

Follow Mouse Outside Movie
Hey guys

Is it possible if I have a movie on my page and a movie clip inside, to get the movie clip to follow the mouse position left and right when the mouse is anywhere on the page (not just over the movie) ??

If so how ??

thanks

Mouse Cursor Movie?
i have a question. i have this landscape movie i'm working on. and what i want to do is if the mouse is not active for lets say 30 seconds the landscape turns into a night scene. Is the a script for that? if the mouse in not active goto night movie and when the mmouse is active it goes back to where they left off.
thank you

On Mouse Over For Movie Clips...
What's the command so that if I move my mouse over a movie clip it will start playing another movie clip.??

thanks.

Mouse Over Movie Clip
Hi,
I was wondering how I could detect if the cursor is over the movie clip. Could someone please help me out. I am trying to create a movieclip object as button but I don't know how to detect to see if the cursor is on the movie.
Thanks.

Shirley

Duplicate Movie At Mouse Pos
My brain aint in AS mode today

How do I duplicate a movie at the mouse position when clicked?
I've made the movie duplicate but can't remember how to put it together to make it use the clicked point.

And does anyone have sumit that can get me on the way to making a bouncing ball movie? i.e how to make it bounce off a wall.

Mouse In Movie Detect
is there a way to check if the mouse is still in the active movie ?
I would like to make some kind of focus detect on a menu. The point is that if i move the mouse out of the MC really quick, it'll miss the motion and will still think the mouse is in there.
The movie is in a frame, all I want is flash to be able to 'see' the mouse is in another frame.

Cheers

Mouse Movement To Movie
Does anyone know how to make a movie in which you move the mouse into the side of the window and it allows you to move freely througout the movie?

Mouse-over Re-triggers Movie
Hello,
i have a pop-out menu and i'm trying to figure out how to keep a movie (within my main movie) from re-starting when someone mouses-over a new button.

Here's the actual menu - http://www.layaboutband.com

if you mouse over it, it opens, but if your mouse stays stationary, it starts to close. the reason, as i see it, is that the menu names (music, photos, etc) are the buttons, and the brown background is not.

basically, i want it to open and stay open as long as the mouse is there, and the whole thing close when you mouse-off of the menu.

maybe i dont have this setup right, i'm new to it all.

attached is the FLA, and here's a zipped up copy of the FLA if that helps:
http://www.layaboutband.com/menu.zip



thanks a lot for any help

Mouse Out On Flash Movie
Is there a quick and dirty way to make an object that is locked to the mouse disappear when the mouse leaves the movie area. I have an swf in the left frame of a website and the right frame is html. I want the object attached to the mouse to disappear whenever the mouse leaves the movie area. Thanks in advance.

On Mouse Over Actions For A Movie.
I want a set of actions to be triggered when the mouse is over a movie in my Flash.

I don't want to use a button, because I don't want the mouse to change.

How can I do this?

I want to use Flash 5... but will use MX is I have to.

In Flash 5, I don't 'think' you can put mouse over actions on movies?

Or should I use a button and make sure the cursor doesn't change?
(I haven't done this before... would it be worthwhile trying to do this? And if so how? Any links to sample movies or tutorials would be appreciated.)

Any help with any of the above would be areally appreciated.

Thanks.


Jam

Determine When The Mouse Is Outside The Movie
Hello.. need urgent help for a final touch on a project before i hand it in.

Ive implemented a photoscroller, which allows the user to scroll a number of photos in any direction using the mouse. But once the mouse leaves the photoscroller, having set it to scroll in a certain direction, it just continues to scroll. I want it to slow down and stop..

Hope someone can give me a code patch to do this. Shouldn't be hard, i just can't figure out how to do it myself.

Here's the code for the photoscroller:


Code:
// Setting the xmouse to 0 in the centre of the movie:
xmouse = _xmouse - (widthmovie / 2);
// Setting the speed:
speed = (xmouse) / scrollspeed;
// If the speed is negative, the speed will be made positive here:
if (speed < 0) {
speed = -(speed);
}
// If the mouse moves to left, the photo will scroll to the right:
// (That makes sense.... Doesn't it!! ;-)
if (xmouse < 0) {
xphoto = xphoto + speed;
}
// If the mouse moves to the right, the photo will scroll to the left:
if (xmouse > 0) {
xphoto = xphoto - speed;
}


// Checking for the left end of the image:
if (xphoto > 0) {
xphoto = 0;
}
// Checking for the right end of the image:
if (xphoto < -(widthphoto - widthmovie)) {
xphoto = -(widthphoto - widthmovie);
}
// Placing the moviclip (photo) on it's new postition:
setProperty("photo", _x, xphoto);
edit: see it in action here.. http://www.menonly.no/index.php?1

Movie Mouse Over Limits
Hello all

I'm quite new to Flash and I'm still learning the basics. I've just been having problems with a movie I've been working on. I've created an image scroll navbar which has mouse over properties. On it's own the .swf file works fine because of the movie size dimensions but I'm embedding the .swf movie into another .swf. So instead of just taking the mouse over property of the movieclip itself the property is taken from wherever the mouse is on the screen. As the actionscipt is on the frames instead of the movieclip I can't find a way to constrain the dimensions to just the movie clip. Basically I just want the images to scroll when the mouse is over the images themselves not anywhere on the screen which it is now.

The site I'm working on is

http://www.sandrineadele.com/

and the page is the private page at the bottom of the menu. I've attached the .fla to this.

Any help will be brilliant and greatly appreciated.

Thanks

Chris McIntyre

Button Movie After Mouse Out?
Hello

I can work out how to set an MC in the mouseover section of a button but how do you make it so that an MC plays after the mouse leaves the button?

Ive seen sites where for example the buttons are little shapes that raise up when you put the mouse over them and then when you go onto the next button the first button slowly falls back down to its original position. I assume this is just playing an MC on the mouseout state? How can i do this?

Many thanks

M

Mouse Over Movie Clips
Hi,

I'm working on a navigation system, which is a little square and once you mouse over it the little square expended to a bigger square with couple button on it. how do i make the movie stop after it expended and so i can roll over the buttons. but redused when i mouse out the area. Please advice!

Thanks!

Help With Mouse Over Movie Clip
I have a series of buttons with movie clip, however i just need to change the text on Life Event Planner button and the Equifax button. When i try to do this the text will change for all three buttons Life Events, Equifax and Credential direct. I basically copied the credential button to make the other two buttons. How can i change the text on the other two buttons without modifying the credential direct button??
http://www.vantis.mb.ca/images/swf/grow_opp_prosp2.html

Please help and thank you.
Fasash

Movie Speed With Mouse
HI,

If i have a movie clip in a flash document, and want to control the speed of the movie clip with reference to the position of the mouse on it. So if you move your mouse to the left the movie starts playing left and if u move it to the right than vice versa.

Anyone have a link to any tutorials/lessons in flashkit/or anywhere that explain?

Thanks

Mouse Position Outside Of The Movie
I want to have one of those annoying guys whose eyes follow your mouse on the bottom of my website. However, I want the eyes to move all the time, not just when the mouse is over the actual area of the movie. I assume I'd need to be able to get the mouse position at all times, is this possible?

Mouse Position In Movie?
I want to make a text box that shows where the mouse x,y position is. What would the code be?

Start Movie On Mouse Down?
im a flash noob...lol...

so im making a custom mouse icon, and i have that working.... and in the mouse "movie clip", aside from the lone mouse button i made, i have a shape tween.

i want to make it so when i click, the tween starts, then at then stops at the end of the tween (and restart if you click again).

i have the stop part working fine....lol

but how would i go about making it play when you click (on mousedown)

from what i can tell, i need to somehow combine "play();" and the on mouse down command...

so any ideas how? also, would i use "onMouseDown (mouse)" or "onMouseDown (MovieClip)"

thanks for helping a flash noob

Movie Move By Mouse
Anyone remember that script that when you move your mouse left to right it plays a movie loop....for instance moving to the right advances the movie and moving to the left rewinds it ?

any ideas on that script ?

Thanks

Movie Follow The Mouse
Hi mates
i m making a site and want its movieclip to follow the mouse (left,right,up,down to the end of the picture i masked and had put in the mc)i used most of the codes here on the forums but all it does is it moves fine but the whole pic inside the movie clip dissapear and the background color appears i want it to stop at the end of the pic in the mc (to stop at the left,right ends of the image i use as mc)

i know it may be a stupid question and i didn't explain it well but here is what i mean and want to do

http://www.fifastreet.com/

please take a look and tell me

Cheers

Play Movie On Mouse Over
Hi,

I am converting several small QuickTime movies to Flash 8 SWF with FlixPro from on2.

When the HTML page loads I would like the SWF to show a still (probably the first frame) and play the SWF movie when the user puts their mouse over the image. The movie would stop playing when the mouse is no longer over it.

I do not want any player controls visible, only the movie.

Is this possible with just HTML code (I have Dreamweaver MX) or do I have to purchase Flash MX also?

Many thanks!

Control Movie By Mouse
Dear Friends,

Have a look the above image. When I will click on Circle A it will change the size and position to Circle B. Again when I will click on Circle B it should go to the same origin size Circle A. How I can make this animation by using flash, action script

Regards
John

Trying To Trigger A Movie With Mouse Over
Good afternoon/evening everyone.

I have a problem, that I cannot solve do to the fact that Im a designer trying to better my action script and Im hitting a wall.

What Im trying to achieve: I have a movie clip on the stage, that has a stop in the first frame. when my mouse hovers over it i want it to go through and play it. when my mouse leaves the movie clip, i want it to goto and play the fade out.

Heres what Ive done, and heres the link where u can find it online: http://www.60watts.org/test/index.html
YOU MAY have to scroll down

onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndPlay("over");
hitState = "over";
}
if (hitState == "over" && !this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop("20");
hitState = "off";
}
}


ofcourse, i would have to do a version when the hitState is off. if you goto my link, youll see that bad results.

i appreciate everyones time, and if you have just a little to time to spare and understand why its not working the way id like it to, id really really appreciate it.

k, take care.

Mouse Over Flash Movie?
hey guys

i wonder if there is command or function to get the information if the mouse is over the flash movie
cause i have written a little menu and it changes whit the mouse's position.
the bad thing is that the page is html and flash
so if i leave the movie the mouse's position is still in the movie and the menu counts with it

by the way
cool new forum

Mouse Over - Starts Movie?
I'm fairly new to flash but not new to programming.

In a recent post (as well as many others) I've seen flash animations that have an effect that I'm trying to accomplish. It seems pretty standard so I'm guessing there has to be a tutorial on the web somewhere for this. My problem is that I dont know how to to Google it properly.

Anyway, here's the site:

http://www.proscreate.com/


I want to know how to activate a movie clip when you place your mouse over a button or something like that. In the link above, a user can mouse over the menu options and a small animation will play.

Do you know of any good tutorials that might cover this? Can anyone point me in the right direction? Does anyone have a sample .fla they can post so I can figure out how to do it?

Thanks a ton.

Pause The Movie When Mouse Over
Hello,
I want to make the movie in my flash file pause when ever i rollover my mouse on it...can i make it without take the button in F8?

Copyright © 2005-08 www.BigResource.com, All rights reserved