Mouse Trailers
I'm new to Flash MX and was wondering if someone could tell me or know of a good tutorial in placing those neat mouse trailers found here over an image.
Thanks
FlashKit > Flash Help > Flash Newbies
Posted on: 06-07-2003, 04:10 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Mouse Trailers
HELP!
I've made a cool mouse trailer, but when I publish it as HTML - Transperet Windowless, the text doenst drag (doesnt follow), but the swf is working great, what may be the problem? what should I do?
Ron.
Mouse Trailers
How would i make mouse trailers with action scripting.
-NativeMunky needs your help
Mouse Trailers
Does anyone know of a simple tutorial on how to place those neat mouse trailers found here over an image with flash mx?
Thanks
Mouse Trailers
I applogize if this is the wrong forum for me, but i posted in the newbies and was advised to post this question here. So if you can help it would be appreciated.
"How do i add a mouse trailer.
I am more than a newbie, just learning so i thought the best way is to buy a swish site which i did to figure out construction from a finished product backwards.
It has worked, I am figuring this out, but the mouse trailer i thought i would add as flash effect was one i got from swishzone, where and how do i do that. the swish site i purchased was circles.
I want the mouse trailer to show up on every page. Do i put it on the splash page? if so how and where?? HELP please!!"
Mouse Trailers
can anyone help me with creating mouse trailers .
i have created a few of them by creating an mc.
then adding it to the main frame.
But how to make it look like a mouse trailer.
i am working on v5.i know this is flash MX forum.
But i need a quick answer any help is welcome.
So couldn't download the fla available in the experiments page.
If anyone could help.
Mouse Trailers
can anyone help me with creating mouse trailers .
i have created a few of them by creating an mc.
then adding it to the main frame.
But how to make it look like a mouse trailer.
i am working on v5.i know this is flash MX forum.
But i need a quick answer any help is welcome.
So couldn't download the fla available in the experiments page.
If anyone could help.
Adding Mouse Trailers Effects
Hi... I need help in adding a mouse trailer effect into a webpage... i just made a mouse trailer effect but have no idea on how i am suppose to add it into the webpage... i'm using dreamweaver...
Trailers
Hey all of you fellow flashers, I'm wondering what is the simplest way to make a trailer off of a graphic or movie clip using actionscript, I tried to use the one in the help fla's but it's too jumbled with all of the buttons and guides and what not, and I can't find it in the actionscript reference guide. If you know what it is referred to in the book or know the code for making these darn trailers please post it for me.
Thanks
Flash Trailers
I am some what of a novice to flash when it comes to certain techniques that may be used or incorporated with flash. I have seen some what of movie trailers that various designers are doing now. I am wondering what type of 3rd party software if any that they may be using. I was also wondering about certain music and sound effects files, if some know other that flash kit i might find sound fx files that i may be able to use. The inspiration behind this http://www.nbd-future.com/
Problem With Loading Movies And Trailers
Hi outthere!
I made a swf wich has a prolader with a mouse trialer and it works right, but I also made an other movie wich must be loaded in the first one once the user makes a click on a button. My problem is that each of the single movies has its own mouse triler and preloader, but it only works the in the "mother movie" buto not in the "child movie".
I´m sure it´s a problem of levels.
Can anyone of u tel me how can I solve this?
I mean, when I start downloading the "mother" I see the preloader and the mouse trialer, but when I make the click on the button and start to download the "child movie", the trailer on the "child" never works.
The "mother" uses the "_root" to call an object, and also the "child" uses it so I think that´s the problem, but How can I solve it? How can I "talk" to each "_root" thinking of them like a single project??
Thanks!!
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
OnPress Doesn't Work If The Mouse Button Is Pressed Again But The Mouse Is Not Moved.
I have a very simple piece of code but it has one very annoying bug. When I press the button a second time, the code doesn't work. The only way to get the code to work is by moving the mouse a tiny bit, or moving the mouse off the button and back on.
Does anyone know a way to make a button that can be clicked many times without moving the mouse?
Code:
randommultiquiz.onPress = randommultiquizOnPress;
function randommultiquizOnPress() {
_root.attachMovie("connect", "newconnect", 200);
newconnect._x = 0;
newconnect._y = 0;
newconnect._xscale = 100;
newconnect._yscale = 100;
}
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
How Do I Create?: Scrolling Image Stops On Mouse Over-starts On Mouse Off
I’m trying to create this animation:
I have an long rectangular image (with more images going across it) scrolling FROM the right side of the screen to the left (very slowly). similar to a ticker.
I want the scrolling to stop when the viewer mouses over the menu strip. If they press on the image that they have just moused over, I have a movie clip I want to play for that image (a few images pop up, one bigger than the other). When the viewer mouses off, the movie clip disappears, and the menu continues scrolling to the left, from the right.
Greatly appreciated!!
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.
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
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;
}}
Custom Mouse Cursor Conflict With Mouse Trail
When I put mouse trails and custom mouse cursor script in the same scene the mouse trails work but the cursor does not change to the custom cursor. If I use the custom mouse cursor script in a seperate scene, on its own, it works fine. I think that the two scripts are conflicting.
Mouse trail script:
onClipEvent (enterFrame) {
//x movement
mx=_root._xmouse;
if (mx<_x) {
dx=_x-mx;
}
else {
dx=mx-_x;
}
moveSpeedx=dx/10;
if (mx<_x) {
_x=_x-moveSpeedx;
}
else {
_x=_x+moveSpeedx;
}
//y movement
my=_root._ymouse;
if (my<_y) {
dy=_y-my;
}
else {
dy=my-_y;
}
moveSpeedy=dy/10;
if (my<_y) {
_y=_y-moveSpeedy;
}
else {
_y=_y+moveSpeedy;
}
}
Custom mouse cursor script:
Layer 1(functions):
stop();
/* update the cursor coords */
function updateCursor() {
_root.cursor._x = _xmouse;
_root.cursor._y = _ymouse;
updateAfterEvent();
}
Layer 2(on event handlers):
onClipEvent(load) {
Mouse.hide();
this.swapDepths(100);
}
onClipEvent(mouseMove) {
_root.updateCursor();
}
Please help!
Mouse Direction Scroll With Mouse Over Image Enlargement...
Hi all..
Haven't had much luck finding a tutorial to help me do this one so any help locating it would be good.. I'm trying to design an image gallery where the images scroll left to right depending on mouse movement. Once a mouse is over an image it enlarges then returns to normal shape with mouse off.
any help appreciated..
cheers!
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
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.
Mouse Hittest Too Slow? Mouse Passes Over Wall
Hi everyone,
I'm having a problem with a new game i'm working on.
I have the following code to attach a movieclip to the mouse:
Code:
startDrag(_root.dot, true)
Mouse.hide();
Ok, and i have a wall movieclip with the following:
Code:
if (_root.dot.hitTest(_root.wall)){
trace("hit!")
}
This works fine, as long as you move the mouse slowly -- if you zip it over the wall, it seems that the hittest doesnt have time to register the hit? Or that the "_root.ball" doesnt actually go over the wall, it just is transported to the new mouse location? (im not sure )
Any infomation on how to make the hittest 100% detect the mouse over the wall would be great.
Many thanks.
Regards.
[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.
Getting An Object To Point Towards Mouse - Rotation - Mouse Follower
Hi guys, I'm kinda getting lost in AS3 and was hoping if someone here can help out.
Picture an arrow in the middle hanging from the top and at the bottom two buttons, Left and Right. When the user enters the frame with mouse, I want the arrow to point towards the mouse maybe with some ease if necessary. Obviously the user will either choose Left or Right so it will look like the arrow is pointing to the button. But I want the arrow object to follow the mouse in realtime and thats why i want to get it to follow the mouse and rotate accordingy, rather than making an animation such as play this when mouse is on button Left (OnRollOver).
So I'm looking for a good script to do that . Any help is appreciated.
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.
Scene Transitions Now Effecting My On Mouse Over, On Mouse Out Button?
This is quite a complicated problem to explain.
Basically I had some buttons with a on mouse out, and on mouse over effects.
I wanted each button to load a different scene of the movie.
For some reason the on mouse over and mouse out button effects work until I link them to load a scene in the movie.
If you download the following file you can see this.
http://www.editorskeys.com/site.file
(rename the file to .zip)
The only button I have linked to load a movie is the Drinks button. It loads the drinks scene, no problem, however the mouse over effects don't seem to work anymore.
I have included the .fla file so if someone could maybe have a quick look at it, it is probably just a small bit of coding I have done wrong!
I would really appreciate anyones help, thankyou!
p.s if anyone manages to do it can you e-mail it to adam.w@editorskeys.com
Swarm To Mouse W/ Elasticity And Move Randomly W/ No Mouse
I started another thread where i had gotten help and combined the snow tutorial and the programatic mask tutorial to create particles that reveal an in-focus image over a blurred one. I just need help making the particles swarm around the mouse when it is present and have the particles just float around when not.
Presently the random motion is just fine and looks like this (i just inverted the this._x and this._y so that they would go with the mouse direction not away from):
ActionScript Code:
onClipEvent (enterFrame) { // horizontal movement rad += (k/180)*Math.PI; xmovement = _root._xmouse; this._x -= (Math.cos(rad)+(xmovement-(width/2))/50)*-1; // vertical movement ymovement = _root._ymouse; this._y -= (Math.cos(rad)+(ymovement-(width/2))/50)*-1;}
"width" and "height" are variables that refer to the size of the movie.
All the mouse trail FLAs i could find just sort of stuck in the corner if you moused off the flash movie. I would like to make it so the particles return back to their little merry random paths after you have moused off the movie.
Any tips or examples you could point me to would be great. Thanks!
Customized Mouse & Arrow Mouse Appears On Right Click
Hi everyone,
I've created a custom cursor for my mouse and I've also created a new ContextMenu for my right click menu options. My mouse works fine, but when I right click and make a selection my custom cursor along with the standard arrow mouse appears as well. Then throughout the rest of the movie, both mouses appear. How do I permanently get rid of the standard arrow mouse and just have my custom mouse be used especially when right clicking?
For my mouse I did use: Mouse.hide();
I've done research on this topic but none seemed to address the right click part. Any help would be greatly appreciated!!
Thanks!
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!
Mouse.hide(); Does Not Work - Mouse Cursor Is Still Shown
why mouse cursor does not hide ?
the mc cursor to replace mouse cursor is shown together with it;
what´s wrong?
thanks
Quote:
onLoad = function () {
Mouse.hide();
cursor.swapDepths(200);
};
onEnterFrame = function () {
cursor._x = _xmouse;
cursor._y = _ymouse;
};
onUnload = function () {
Mouse.show();
};
Does Disabling Mouse Input Disable Mouse Listeners?
My flash site has various "pages" (MovieClips) and each of these pages has various dynamically generated movieclips with listeners for mouse events, etc. I switch between them in the manner of "active.alpha = 1, rest.alpha = 0" and disabling mouse input on inactive clips.
My question is, does _mc.mouseEnabled = false and _mc.mouseChildren = false also stop listeners for mouse events running on those movieclips or do you have to manually remove each event listener to stop it from running (and unnecessarily using resources).
Also if a movieclip's alpha is set to 0 does Flash still use resources for "drawing" it on stage or is it effectively removed from the drawing process (even if the movieclip contains running animations)?
The thing is my application is running very slow and I'm guessing it's because even when I hide a page flash is still calculating how to draw it and detecting mouse events on all its children.
Thanks for any answers, cheers.
Scene Transitions Now Effecting My On Mouse Over, On Mouse Out Button?
This is quite a complicated problem to explain.
Basically I had some buttons with a on mouse out, and on mouse over effects.
I wanted each button to load a different scene of the movie.
For some reason the on mouse over and mouse out button effects work until I link them to load a scene in the movie.
If you download the following file you can see this.
http://www.editorskeys.com/site.file
(rename the file to .zip)
The only button I have linked to load a movie is the Drinks button. It loads the drinks scene, no problem, however the mouse over effects don't seem to work anymore.
I have included the .fla file so if someone could maybe have a quick look at it, it is probably just a small bit of coding I have done wrong!
I would really appreciate anyones help, thankyou!
p.s if anyone manages to do it can you e-mail it to adam.w@editorskeys.com
Swarm To Mouse W/ Elasticity And Move Randomly W/ No Mouse
I started another thread where i had gotten help and combined the snow tutorial and the programatic mask tutorial to create particles that reveal an in-focus image over a blurred one. I just need help making the particles swarm around the mouse when it is present and have the particles just float around when not.
Presently the random motion is just fine and looks like this (i just inverted the this._x and this._y so that they would go with the mouse direction not away from):
ActionScript Code:
onClipEvent (enterFrame) { // horizontal movement rad += (k/180)*Math.PI; xmovement = _root._xmouse; this._x -= (Math.cos(rad)+(xmovement-(width/2))/50)*-1; // vertical movement ymovement = _root._ymouse; this._y -= (Math.cos(rad)+(ymovement-(width/2))/50)*-1;}
"width" and "height" are variables that refer to the size of the movie.
All the mouse trail FLAs i could find just sort of stuck in the corner if you moused off the flash movie. I would like to make it so the particles return back to their little merry random paths after you have moused off the movie.
Any tips or examples you could point me to would be great. Thanks!
Play & Reset FLV On Mouse Over And Mouse Out W/ Poster Frame
Hi everyone -
It's been a while since I've posted here but I'm glad to see the boards are still strong.
I'm working off of a tutorial I found on Monkeyflash called "Adding a Poster Frame to Flash Video". This tut allows me to select my desired still to show before the user click play and once the video resets.
Would I'd like for this to do is to play on Mouse Over. On Mouse Out, the video should stop and reset so that the poster frame appears once again, until the user Rolls Over once again to initiate playback from the start.
Here is what I have so far. The problem with the AS below is that once I mouse out it stops playing but I can no longer play the video on mouse over. Not only that, the video seems to stop only when I mouse out on top of the playback controls.
Code:
import fl.video.VideoEvent;
myPoster.addEventListener(MouseEvent.MOUSE_OVER, playMovie);
function showPosterFrame(event:Event):void {
myPoster.visible = true;
}
myVideo.addEventListener(MouseEvent.MOUSE_OUT, stopMovie);
function hidePosterFrame(event:Event):void {
myPoster.visible = false;
}
function playMovie(event:MouseEvent):void {
myVideo.play();
}
function stopMovie(event:MouseEvent):void {
myVideo.stop();
}
myVideo.addEventListener(VideoEvent.PLAYING_STATE_ ENTERED, hidePosterFrame);
myVideo.addEventListener(VideoEvent.COMPLETE, showPosterFrame);
Mouse. Hide, Mouse.show-on New Position
On button release i hide mouse because mc start to play
and on the end of that mc i show mouse agin.
Plese tell me how to move mouse in new position on screen with mouse.show() function
tenx,
m.
Mouse Drag Wirth Invisible Mouse?
I'm kind of new with the actions,
but I can make a movie clip drag to the mouse--with the startDrag action.
what i cant do is make the mouse-arrow disappear.
could you write the actionscript for that??
thanx
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
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
Mouse Reactions -object Bounce Away From Mouse
Hi! Im somewhat new to actionscript so I was wondering if anyone could help me out and point me in the right direction.
Im working on this project in which I have and object that I want to react to the mouse. Basically I just want it to bounce away from the mouse (faster or slower depending on how fast the mouse comes at it). I dont want it to just move in a straight line away from the mouse, I want it to have a subtle bouncing effect.
I have a little experience working with mouse reactions. Ive done a piece where you show a 360 view of and object and have it spin in the direction the mouse passes by it. Ive also done a piece where an object just follows the mouse horizontally across the screen. With this piece though, I want the object to move all over the screen not just horizontally.
Can anyone offer any help or ideas on how to do this? I'd really appreciate it.
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
Cant Get Hide Mouse Follow Mouse To Work
I used a tortorial on making mouse cursors and mine will follow the mouse until I click one button and then it sticks and does not move, but my invisible mouse is active you just cant see where your draging it...!!!
any tips??
Mouse Trailer Effect For A Symbol Vs. A Mouse
i am trying to create a trail behind an object - like a mouse trailer. i have found many mouse trailer scripts but do not know what to adjust so that it will follow an object/symbol versus the mouse movement....thanks for you help....here is the script that i was gonna use....
//initialization
d=1;
speed=10;
ssize=10;
dif=60;
//create sample
_root.createEmptyMovieClip("sample", 16000);
with(_root.sample){
lineStyle(5, 0x0, 70);
moveTo(-10, 0);
lineTo(10, 0);
moveTo(0, -10);
lineTo(0, 10);
}
//hide sample
_root.sample._visible=0;
//duplicating clips
_root.onMouseMove=function(){
duplicateMovieClip("sample", "start"+d, d);
_root["start"+d]._x=_root._xmouse+random(dif)-dif/2;
_root["start"+d]._y=_root._ymouse+random(dif)-dif/2;
_root["start"+d]._width=ssize;
_root["start"+d]._height=ssize;
mColor=new Color(_root["start"+d]);
mColor.setTransform({rb:random(256), gb:random(256), bb:random(256)});
_root["start"+d]._visible=1;
_root["start"+d].onEnterFrame=function(){
this._alpha-=speed;
if(this._alpha<=0) removeMovieClip(this);
}
d++;
}
|