MC Moves With Mouse
Hello-
How do I do like they do here:
http://www.exopolis.com/site/
When you move your mouse over the logos they moves around. Is there a .fla I can download to look at? Or can someone hlp me? I am a newbie
Thanks!
FlashKit > Flash Help > Flash ActionScript
Posted on: 03-23-2004, 11:19 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Image Moves When Mouse Moves?
Hi,
I'm trying to work on a code so when the mouse moves left or right, the background image on a flash movie or multiple images will scroll the opposite way. However, Ive never coded anything regarding mouse movement (that I can remember) because I'm not too fluent in using mouse listeners. Id appreciate if someone could whip up a code like this that I can learn from.
Pixel movement rate (speed) and direction control would be really nice here. Its an easy code I'm sure, I just dont know how mouse listeners work (if this is what you have to use).
Thanks in advance!
How Do I Create A Movieclip To Play If Mouse Is Unactive, And Stops When Mouse Moves?
I am in the process of creting a world map navigation for a global ite portal.
In the map a user can hover over different continents to zoom in on specific countries then click on that country's to goto its specific website.
However I think the world map looks a little un-user friendly so was looking at playing a quick tutorial movie (a mouse cursor, moving over a continent and highlighting it) when the mouse is not being moved, then stops when the user moves the mouse.
This feature a little reminisant of when sonic the hedgehog used to tap his foot if you didnt use your joypad for a while.
I would also like to start the movie (after he preloader ive used) with the tutorial playing, so the user can understand the way it works straight away.
I am a novice at action scripting, so all help would be appreciated!
Thanks
M
How Do I Create A Movieclip To Play If Mouse Is Unactive, And Stops When Mouse Moves?
I am in the process of creting a world map navigation for a global ite portal.
In the map a user can hover over different continents to zoom in on specific countries then click on that country's to goto its specific website.
However I think the world map looks a little un-user friendly so was looking at playing a quick tutorial movie (a mouse cursor, moving over a continent and highlighting it) when the mouse is not being moved, then stops when the user moves the mouse.
This feature a little reminisant of when sonic the hedgehog used to tap his foot if you didnt use your joypad for a while.
I would also like to start the movie (after he preloader ive used) with the tutorial playing, so the user can understand the way it works straight away.
I am a novice at action scripting, so all help would be appreciated!
Thanks
M
Scroller That Moves According To Mouse Movement Not Mouse Location.
I am trying to recreate the effect seen here:
Express Top Ten
alright here's the request:
I have found many scroller tutes most of which use buttons to control them. What I need or think I need is a tute or file to refer to, that uses a mouseover effect to move the movieclip with respect to how much the mouse has moved and still uses easing.
I have found files that make the movieclip move according to the mouse position on the stage, but i need it to move in according to how far it just moved.
feel free to email me with any questions.
thanks in advance,
chris
email me
MC Moves With Mouse
Hello-
How do I do like they do here:
http://www.exopolis.com/site/
When you move your mouse over the logos they moves around. Is there a .fla I can download to look at? Or can someone hlp me? I am a newbie
Thanks!
MC Moves With Mouse
Hello-
How do I do like they do here:
http://www.exopolis.com/site/
When you move your mouse over the logos they moves around. Is there a .fla I can download to look at? Or can someone hlp me? I am a newbie
Thanks!
Record Mouse Moves
hiya,
i installed an extension from macromedia called vcr which was supposed to enable you to record mouse moves and replay them - this would be perfect for the help i am trying to build. Problem is that the extension doesn't work
anyone know of this ext or know of something else to use?
any help appreciated
MC In A Btn To Keep Playing When Mouse Moves Over It?
Ok very simple scenario here!
All ive done is put a movieclip into a button in the over state so of course when the user moves their mouse cursor onto the title (this is what the flash is for) it starts playing.
Only problem is when they move their cursor off of the title the movie clip stops playing
All i want to do is have it play in its entirety even if the user no longer has their cursor on the actual title
I am new to flash so i guess its a bit of an obvious question but any help appreciated muchly
Sound When Mouse Moves?
I need the keys on the home page of this web site www.locksmithmusic.com to make a jingling noise whenever the user moves the mouse/keys. I'm guessing that it uses the onMouseMove command, but I don't know how to apply it -- or even if that's the right command to use. Any help?
Thank you so much.
Summarah
On Mouse Over Fly Moves Away From Cursor
what i want is when the mouse over occurs on the fly movie clip(or whatever) the fly sets a course for a random place within the overall movie and moves towards it, where it waits until another mouse over occurs.
I understand the principles of this concept but cant get the code to work. Thanks in advance for any help!
How Do You Get An MC To Detect A Hit When Mouse Moves Over It?
Hello all,I really need to crack this project of mine.
1: What i need is for a movie clip to play when the mouse is moved over it. There will be multiple clips that detect this mouse over and play.
2: Also i need one clip that will start as soon as the mouse moves and follows it with easing/elasticity only in x and not y axis and stops when mouse movement stops. This would be a mask revealing an image behind.
Hopefully this is clear.
Any help on either of these or both would be very much appreciated.
Thanks
Andrew
Mouse Moves Image
I want it when my mouse moves up or down, left or right the image moves the same. The image is bigger the movie so moving the mouse you can see the image. Can anyone help.
Camera Moves With Mouse
Hi guys,
Just a quick post with HOPEFULLY a quick and helpful answer. See the background effect on this game which moves the background when the mouse is moved, I would love to know how to make something similar to that. Can you either, Direct me to a tutorial that will teach me how to do this OR do you know the script to do this?
All help is appriciated!
Thankyou!
MC In A Btn To Keep Playing When Mouse Moves Over It?
Ok very simple scenario here!
All ive done is put a movieclip into a button in the over state so of course when the user moves their mouse cursor onto the title (this is what the flash is for) it starts playing.
Only problem is when they move their cursor off of the title the movie clip stops playing
All i want to do is have it play in its entirety even if the user no longer has their cursor on the actual title
I am new to flash so i guess its a bit of an obvious question but any help appreciated muchly
[req]camera Moves With Mouse?
Hi. Can anyone help me achieve this?
I need to make the background image move opposite the cursor to make it seem like the camera is moving.
A good example of what I want can be found on this site:
http://www.pleymo.net
Please check it out and help meee.
Cheers.
Shawin.
MC Moves Away As Mouse Gets Close Help
I suppose the help in the subject is an understatement.
What I'm looking to do is have a MC on the stage. As the mouse gets close to it, it moves away - idealy in the opposite direction. Eventually it would hit a limit and bounce back to it's original position. Kinda like the way 2 magnets would repel each other.
I've seen this effect before on other sites (none of which I can find currently )…
I realize that it's just going to be some trig/algebra and the tracking of the x/y of the mouse. Perhaps an onEnterFrame action on the MC.
I can figure out the distance the mouse is from the MC (the square root of ((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)) ) - but then then dealing with angles and stuff starts to hurt my brain.
I went to art school… can anyone help? (Or if you can point me to a tutorial or something… I searched, but I couldn't find anything that didn't involve FOLLOWING the mouse.)
Thanks,
Chenzo
Mouse Over Moves When Text Is From A .txt File
WHY!!!
this is what i am loading into my button from a .txt(see below)
when ther is no <a href> the mouse over is cool but when i add the <a href> it makes the over state move or not work????
&MN_01btn1= <a href="http://www.someurl.com">. SOUTHERN CALIFORNIA FACILITIES</a>&
Disable Slider When Mouse Moves Away
Hi
This is the script to a volume slider I made ....
code:
// slider
ctrls.sound_ctrl.vol_slider.top = ctrls.sound_ctrl.vol_slider._y;
ctrls.sound_ctrl.vol_slider.bottom = ctrls.sound_ctrl.vol_slider._y;
ctrls.sound_ctrl.vol_slider.left = ctrls.sound_ctrl.vol_slider._x-50;
ctrls.sound_ctrl.vol_slider.right = ctrls.sound_ctrl.vol_slider._x+50;
ctrls.sound_ctrl.vol_slider.vol_arrow.onPress = function() {
startDrag(this._parent, false, this._parent.left, this._parent.top, this._parent.right, this._parent.bottom);
ctrls.sound_ctrl.vol_slider.onEnterFrame = function() {
if (_global.mute == 0) {
global_sound.setVolume(this._x-this.left);
}
_global.current_volume = this._x-this.left;
ctrls.sound_ctrl.vol_text.text = this._x-this.left;
//ctrls.sound_ctrl.mute.gotoAndStop(1);
};
ctrls.sound_ctrl.vol_slider.vol_arrow.onRelease = function() {
delete ctrls.sound_ctrl.vol_slider.onEnterFrame;
stopDrag();
};
};
My problem is that if I move the mouse away from the slider with the mouse button still pressed down, I don't get my stopDrag and the volume slider and the volume continues to follow the mouse. I tried ....
code:
ctrls.sound_ctrl.vol_slider.vol_arrow.onRelease = ctrls.sound_ctrl.vol_slider.vol_arrow.onRollOut = function() {
delete ctrls.sound_ctrl.vol_slider.onEnterFrame;
stopDrag();
};
.... but that doesn't seem to work properly either. What can I do?
thanks
mark
[F8] Movieclip Moves To Mouse Coords
i can get a movieclip jumping from its position to match the mouses coordinates when the mouse is clicked.
but how would i go about making the movie clip move towards the mousedown coordinates at a speed which i can state in the actionscript?
thank you.
To Experts: CPU Goes Way Up When Mouse Moves? Weird
Hey guys,
I am making a game and I've noticed when the mouse isn't moving, the game runs fast and cpu utilization less than 3%. When I move my mouse the game lags a bit and the cpu utilization goes between 30-48%
I then tried a test. I opened a brand new flash doucment. I didn't add anything to the stage and added no code. I ran it and moved my mouse around rapidly. The cpu utilization went over 30% again.
Flash must be processing something to do with your mouse whenever it moves. Any idea why it does this? and if there is anything that can be done to stop it?
Thanks,
Ryan
How To Make An Object Moves Away From Your Mouse?
How to make an object moves away from your mouse in the direction indicated by your mouse? I cannot seem to be able to post my .fla hence here is the program in s notepad format.
I am only able to make the ball drop to the bottom of the screen because of the gravity and the ball will bounce back up. The ball can be click by the mouse to anywhere in the screen and once u release, the ball should move away from the mouse in the direction that you had swing it.(<--this is the part that i cannot make it happen)
Pls help out if possible
PHOTO Under Mask Moves W/mouse?
I want to be able to load a jpeg into an MC and make the image in the MC slide around under a mask as you move the mouse.
There's an example of what I'm talking about on this website: www.heinart.com
If you click on any one of the thumbs ...then on the left it says "view detail on" ...click it and you'll see what I mean.
If anyone could tell me how (or where I can find out how in a tutorial or something) it'd be great.
Pause When Mouse Moves Out Of The Movie
Hey, I'm building a game and I want it to pause when the mouse moves out of the flash movie, i've seen other websites that do this and im not sure what the best way of doing it would be, I would like to do it outside of actionscript so I dont have to use IF statements to stop everything if the mouse isnt over the screen.
Moiveclip Moves Along With Mouse Pointer
Hi all,
I'm trying to wirte a simple script pls help.
I placed a graphic into a moive clip. And i place the movieclip from the library onto the main scene. I'll like the moive clip to do the following:
------------------------------------------------------------------
if mouse pointer moves ?pixels to the left,
then moiveclip moves ?pixels to the right.
>
if pointer moves ???pixels to the top,
then moiveclip moves ???pixels th the bottom.
------------------------------------------------------------------
i'll like the moive clip to move the same amount of pixels as the mousepointer but in an oppsite direction.
Can someone help me figure out how i should go about typing a script like that?
Thank you, very much for your help.
Movie Clip Moves In Direction Of Mouse
I believe this is pretty straight forward, but I still need a bit of assistance. I want to have a movie clip (which essentially a .bmp image) to scroll left and right (x axis only! Not on y axis) on my stage as I move the mouse. I don't want the user to have to click the image to scroll left and right, rather just have the .bmp direction follow the mouse.
Would the code for that be something like;
onClipEvent(mouseMove) {
stageX=_root.xmouse;
stageY=_root.ymouse;
}
Any Good Colour Efx When Mouse Moves Over, Advanced
hey i saw some websites with those neat colourfull backgrounds that change of colour when you move the mouse... looks like pretty heavy coding...
anyone got a tutorial on that? the images seem to be made in photoshop just blurs and fades from 1 colour to another....
greetz
melvin
Image Scrolls When Mouse Moves Around Screen.
Hey,
Im not new to flash, but very new to actionscripting and the complicated part of flash..
does anyone know where there is a tutorial, or how to make a large image that goes off screen, scroll around when the mouse moves around over the image (horizontal scrolling)?
I would appreciate any help!
thanks,
james
Horizontal Strip That Moves With The Users Mouse
Basically, I have a photo gallery, on a long horizontal strip. I want the user to navigate this strip by simply moving their mouse to the right to make it move right, and moving their mouse to the left to make it move left.
I know that there is a way to do this where you track the mouse whereever it is on the stage...but I'd only like it to be only active when it is over this particular strip.
Also, each thumbnail on this strip has a rollover effect. I would like to have that roll over effect stay active...
Any help would be appreciated.
Thanks.
How Do I Create A Moving Background As The Mouse Moves Across It?
I have a large background that is bigger than the Flash document area. When the mouse moves left, I want the background to move left with it, uncovering more of the background. The further the mouse is moved over to the left of the screen, the faster the background will move too.
How would I do this?
I'm a complete amateur when it comes to Flash and especially scripting so I'd really appreciate some simple explanations. Thanks.
Horizontal Strip That Moves With The Users Mouse
Basically, I have a photo gallery, on a long horizontal strip. I want the user to navigate this strip by simply moving their mouse to the right to make it move right, and moving their mouse to the left to make it move left.
I know that there is a way to do this where you track the mouse whereever it is on the stage...but I'd only like it to be only active when it is over this particular strip.
Also, each thumbnail on this strip has a rollover effect. I would like to have that roll over effect stay active...
Any help would be appreciated.
Thanks.
Sliding A Content Clip Around As Mouse Moves?
Greetings. I need to build an interface holding a content movie clip that will extend out past the sides and top/bottom of the stage. I need that content clip to move around as the mouse moves over it. Like, you move your mouse to the right edge of the screen, and the clip scrolls left. Simple. You see these interfaces everywhere.
I'm wondering - what's the best way to accomplish such a task? As in, is it best (or normal practice) to just place mouse over zones on each edge, and start the scrolling on rollOver...or maybe there's a function method one could use that bases the clip's position on the current x/y of the mouse? Is there a scroller class that I read about, or was that someone's custom class?
Any input is greatly appreciated.
Rotation Tween Stutters When Mouse Moves?
Hey whaddup?
I wanna make a rotating record (1 rotation), but when I use a simple tween it doesnt rotate smooth , it only does if I hold mouse still. Check it out here (press button in the middle of the record to make it spin)
http://homepages.svc.fcj.hvu.nl/1127456/plaat.swf
http://homepages.svc.fcj.hvu.nl/1127456/plaat.fla
how can this be fixed? Preload or something?
-one-
Horizontal Strip That Moves With The Users Mouse
Basically, I have a photo gallery, on a long horizontal strip. I want the user to navigate this strip by simply moving their mouse to the right to make it move right, and moving their mouse to the left to make it move left.
I know that there is a way to do this where you track the mouse whereever it is on the stage...but I'd only like it to be only active when it is over this particular strip.
Also, each thumbnail on this strip has a rollover effect. I would like to have that roll over effect stay active...
Any help would be appreciated.
Thanks.
Making A Movie Clip Run Every Time Mouse Moves
Hi everyone,
What I'm trying to do is have a movie clip as a custom cursor. I have that part done, the movie clip being set as the custom cursor (see attached fla file), but the problem is how do I make the movie clip run from the beginning every time the user moves their mouse? (so that the trails will stack upon one another and create a rather nice looking effect)... I've done this, but it was accomplished using LOTSANDLOTS of buttons, all coded with a RollOver effect and set to play the movie. Is there any way to use ActionScript to do this, or do I have to do the button thing?
Please help,
DaRkAvenger
NOTE: 2 files included, one with the buttonrollovers, and the other with the actionscript
Make Windmill Blades Moves Faster When Mouse Over - Please Help?
Hi there everyone,
I am trying to make a flash banner for a new climate change site in London. I am fairly new to flash but would like place some windmills i have drawn on the banner. I have managed to make a button, and placed movies into the up, over and down sections. The movies work, so that when the mouse goes over the mill, the blades move backwards or faster but from the start of that movie.
Its a success in a way but not ideal, as its too jerky. Is there anyway, so that when i move the mouse over the windmill, the blades (no matter which frame of their movie they are in) just move exponentially faster. I think it would create a really nice effect for the banner.
Please help, all suggestions most appreciated.
Many thanks
Jamie
ps. I am using Flash 8 Professional
[F8] Changing Frames Automatically When Mouse Moves Off The Stage
Hi, I'm trying to use the following code to send my movie to a different frame when the mouse moves off the stage...
this.onEnterFrame=function(){
{if (this.hitTest(_xmouse,_ymouse))
{}
else
{this.gotoAndStop(31)}
}
}
this code is attached to frame 33.
it sort of works, as in sporadically and with parts of the stage, and only if I don't move the mouse too quickly.
Is there a cleaner, saner way of getting this done? (rollOut won't really work with the way the movie is set up...) Thanks
Movie Clip Moves In Relation To Mouse Position
Hi.
I'm a beginner using Flash MX - I found this link;
http://www.ecosign.net/html/__de/arbeiten/arbeiten.php
and would like to do something similar. I thought it would be fairly easy but I've been trying to do it all afternoon but I can't seem to manage. I'm going insane. Can someone please tell me how it is done?
Thanks.
How To Make Movie Clips React When Mouse Moves Over Them?
I have an arrow that is a movie clip instance and it rotates with my mouse movement. Its all cool up to here but i want this event to take place when my mouse comes over the clip (or a rectangular area which bounds the arrow) not all over the stage. Can somebody please tell me how to do this, if you can help me with a code please tell me how to put it in exactly with the rest of my existing code, i'm pretty new at this thing
Thank you
How To Make Image Sequence Moves On Buttons Mouse Over?
Can anyone please please please help me through the mouse over effect on buttons that changes the background image on the banner. I don't know how to do that at all. I would be highly obliged if anyone help me through this.
Sample link here: www.emedianow.com
I Want The Control Bar To Move When The User Moves His Mouse Over A Certain Place
I have been trying to figure this out for a loooong time and I'm still having issues.
I have an FLV. I also have a control bar that controls the FLV. I want the control bar to move when the user moves his mouse over a certain place and then for it to go off when the mouse over is off.
the problem is, when I put the mouse over that specific place, the buttons in the control bar no longer work...What am I doing wrong?!??arggh
attached is an fla if my explanation wasn't clear.
MouseEvent.MOUSE_MOVE Memory Increasing As Mouse Moves...
I have an eventListener added to the stage listening for mouse movement. It calls a function that simply tweens some movieclips left and right depending on where the mouse is on stage. I use Tweener for the tweens.
I added a profiler to my project that displays the framerate and memory usage. When I'm moving my mouse, the memory usage increase slightly while I move the mouse. If I stop mouse movement, the memory increase stops. Any ideas?
|