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




Help Me Please How Can I Do An On Mouse Over Affect With Action Script In Flash 5?



Hi. I need to know the code for on mouse over in flash 5.0. I was doing this tutorial:
http://www.flashkit.com/tutorials/Ac...-121/more5.php

when they gave me the wrong code for on mouse over. the said it was something like

on (rollover)

but that doesnt work for me. Please help me. Visit the tutorial if you dont understand what I am saying. Thanks for your help.



FlashKit > Flash Help > Flash ActionScript
Posted on: 09-16-2002, 09:26 PM


View Complete Forum Thread with Replies

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

Mouse Over Affect With Buttons
Hello I am trying to use buttons (shown as a picture) that when the mouse goes over the button it will show a larger version of that same picture. How do I do this? Please help!!

Thanks
Arosa

Movieclip With Action OnRollOver Affect The Buttons Inside It
Hello,

I've got a movieclip with an rollover function. The movieclip has buttons inside, but they don't work.
The action applied to the movieclip is the the scale (I'm using Tweener to make the scale action).

How can I resolve this issue?

MX: On Mouse Events Affect Other Buttons
I'm trying to build a small draggable flash window to display error messages in another bigger flash movie. I built it as a symbol, which includes the basic graphics, a hitArea symbol and an OK button. Thing is if I use some code like

this.onPress=function(){
this.startDrag(false);
}

the OK button loses its button ability. I know the onPress code is affecting the OK button cos if I remove those lines the OK button works again. I've already changed the hit area so that I can only click and drag on the upper part of the symbol, and the OK button is way below it. Any clues anyone?

Mouse Speed To Affect Volume?
hey,

Hoping someone can help me out. I want the speed with which the mouse moves to control the volume of an audio loop, ie when the mouse moves quickly the volume gets higher, when the mouse is not moving the volume is at 0. My mouse is already dragging a movieclip, so it would be ok for the speed of the movieclip to affect volume rather than the mouse, if that is easier.

Thanks for your time

Mouse Over Triggered Action In Flash MX
hello! hope someone can help me out. I am a newbie using Flash MX and I have a basic question. I am sure you all have seen this on a lot of flash websites: when your mouse hovers over a graphic object or whatever, and an action happens. just in case, below is a link to a website that demonstrates what i'm talking about:

http://www.sonymusic.co.jp/Music/Inf...eng/index.html

you'll notice that if you mouseover the words information, profile, and mail on that website, flowers will appear and disappear. I am looking to do a similar function on my website. So if any one can provide me with an example of the actionscript needed to do this simple function, it would be much appreciated! Remember, I am using Flash MX. peace~

Action When Mouse Is Out Of Flash Window?
Hi all,

I've got an animated button and when I click it and quickly drag my mouse out of the flash movie, the button freezes. Can anybody tell me how to do an action in actionscript that tells the movie to recognise that the mouse is out of the flash area?

Cheers.

Action When Mouse Leaves Flash Movie Area
Hello All!

I've got a flash movie that is a menu with a photo that is approximatly 700x300. I want an action that will trigger when the mouse leaves the flash movie all together. Is this possibe?

Is there a way to have have my movie know when the mouse is not in it and trigger something?

Question On Action Script To Detect When Mouse Leaves Flash Area
Long title, but Search here is being difficult (timing out with a 404 page)
I have a button that covers my entire stage with an action script of:


Code:
on (rollOver) {
gotoAndPlay("start");
}

But I would also like it to do the same if it detects that the user's mouse leaves the flash area on an html page.

What would the action script be?

Does The Server Affect Flash?
I created a dynamic hierarchical menu for my site http://www.ls3k.com

Each submenu is a separate movie clip that is set to _visible = false
When triggered they are changed to _visible = true

For some reason when I put the .swf on the remote server the submenus won’t trigger. However, they work fine on my local Dev server even when the embed string points to the .swf on the remote server.

I also went to another computer and tried it with the same results. When the HTML page is requested from my host’s server the menu doesn't work. When requested from the server on my computer the menus work.

Anybody have a theory as to why this doesn't work?
Remote server = IIS 5.0 on Win2000
Local Dev server = Apache 1.3.2.0 on Win2000

Wobble Affect Using Flash?
The Wobble affect (if I am not mistake) is not the same a the pendulum affect (which is done using sin and cosine, etc). I would believe that the two are quite different.

What are the algorithms to achieve the wobble affect. Are there any resources which shed light on this, or any mathematical formulas/equations???

Any help very much appreciated
regards
[Edited by mediahype on 09-30-2001 at 10:55 AM]

Affect On Flash Porjector
Does upgrading to Flash PLayer 7 affect the version of the player embedded when you create a projector?

How Do I Make A Fire Affect In Flash 5?
How do i make a fore effect in flash? like a fire burning?
plz explain and make a fla file if u can plz@!

Using Flash To Affect Javascript Code...
Sorry for the vague title...What I want to do is create a Flash photo album in such a way that as you scroll through, banner ads that are on the top of the webpage also change. Obviously, this is pretty easy to do if the album is Javascript...but I haven't tried it in Flash. Assuming this is possible, what, in general terms, is a good way to implement this?

Does Using Flash Affect Google Results?
I have a question to ask. I am looking into building a new site, and I like the idea of lots of things happen using flash, but someone has told me that doing so will mean I won't appear in the search engines.

I don't entirely trust him, because he is a salesman trying to sell me his work.

Is this true?

(thanks form a newbie)

Affect Flash Movie From One Html Frame To Another?
If you have an html frameset. You have a flashmenue in one frame and a flashmovie in another frame. Is there a way to tell that movie which framelabel to go from the flashmovie in the other html frame?

Flash Player 7's Affect On Projector Version?
Does upgrading to Flash PLayer 7 affect the version of the player embedded when you create a projector?

What External Factors Can Affect Flash Files?
Hey there!

Random question. If I have a site that (I think!) is structured well and works really well on my harddrive, what can cause it to be some challenges that cause different operation on the server side? Obviously connection speed is a factor . . . but that is why you throw up load bars, right? For example . . . images that are called correctly when I test the site on my machine work fine . . .but when I upload them, performance can be spotty and sometimes they won't load at all! Are there any common problems that people run into after they upload a site?

Since When Does The Type Of Computer (mac / Pc) You Use Affect Flash Performance?
I have this thing I've been testing, its not done cause I've been running into this issue..

The images show up on a PC
The images show up on an iMac
The images show up on a PC Laptop
The images DO NOT show up on a G5 Intel or PowerPC 10.4.9 - 10.4.10

I loaded the same exact site every time, cleared cache every time, etc.. but the images were fine on the above EXCEPT G5s.. How is this possible?

All they do is read a file from its own server, not external, load the bitmapdata and attach a movieclip. There are no relative /'s versus :: issues or anything.

The fact it works on an iMac blows my mind.


This happened only once before with this Motorola ad I was working on but I never went back to fix it. Anyone have this happen?

----------

Want to hear more weird?
The images load so it can get the dimensions and stuff.. but it just doesn't load the BitmapData attachment for some reason. It loads just the BG Color you select for the BMPData. This is only on the G5 (so far).


Link if you want to test: http://seesaw.net/matt/

Can Html Mouseover Affect Flash File
Is it possible to have a mouseover effect on an html hyperlink that affects a flash file?

We created a map in flash that I would like to have affected by the mousover of links on another section of the web page. The flash map has mouseover effects built into it, but I would also like some of these effects to work when one of the external links is moused over.

Thanks!

Flash Security - Would It Affect OnRelease Handler?
I have inherited perhaps the worst single piece of code project from a developer who left my company. The project is a weather widget that calls data and external SWFs from multiple domains. I am being asked to refactor the weather widget to work in multiple testing environments during a CMS conversion of the widget's host site.

There is an icon clip that loads weather icons (e.g. clouds) -- SWFs (they're hand animated, I think) -- to show the conditions. When there's a severe weather alert, however, based on the weather XML feed we're using, a static SWF is loaded in the icon spot. To that static SWF we add an onRelease handler to facilitate some functionality for describing the alert in detail.

Except -- it -- the onRelease handler -- doesn't work outside of the Flash IDE test environment. I can test it and the onRelease handler works fine locally in the Flash IDE. I am 90% certain that it will also work in the production environment because we have existing crossdomain.xml files in the production environment that have kept this widget working up until now.

HOWEVER -- when I post the file to sub-sub testing domains off the production domain, the onRelease handler fails.

Where is the rub? Is it a Flash security / crossdomain.xml file issue?

IronChefMorimoto

Does Flash Detect And Redirection Affect GoogleBot?
I am implementing a really good flash detection method found here:

http://www.macromedia.com/devnet/fla...detection.html

i want to modify the script a bit so that when it detects NO flash or LOWER flash version, instead of displaying altertnate content, it redirects to a no-flash.php page i've created which is nothing but info about flash requirements and link to Macromedia flash area..


then i thought.......


WHAT ABOUT GOOGLE?!

Will the bot be redirected to my no-flash page all the time? I mean how does these bots crawl anyway? kind of regular access method right? so when the detection script checks googlebot out, and finds no plugin information, it keeps redirecting it to the no-flash (and no content) page... RIGHT?

i hope this isnt the case.. but if so.. you guys know how to fix this?

Code Comments Affect Flash Apps
flash-bug.com sustains that AS code comments are evaluated by the compiler. I, for one, don't believe that this is possible, but that guy seems pretty sure about it and tells a nice story regarding Adobe and it's product.

Link to the main site: http://www.flash-bug.com/

Html Onmouseover Affect Flash File
Hi there,

I just wondered if there was anyway of affecting a flash movie by moving over certain HTML certains within a document. I think I'm gonna need to explain it more
Although I'm pretty certain the answer is no. I just thought I'd check.

Let's say we have a HTML form with three textboxes within it. Each textbox has some javascript function initiated onFocus(). The javascript function communicates with the flash movie in order to change it. i.e. Display something related to the textbox.

Any code samples are appreciated.

Thanks,

Nathan

Mouse Over Action
i think this is the board where i'm supposed to post this question.......

i want to move my mouse all over the page and make certain parts of a photo on a layer disappear and have the other photo below it replace it.......when the mouse isn't on an area, i want the top photo to instantly reappear....

basically i have two photos and i want the top one to disappear in places where the mouse goes over it....is this possible? or something to that effect? i think it is, i just don't know how to do it....

i haven't worked on flash too long, but i do have a book and can't find the answer in there...please post if you can help me out--thanks, kelly

Mouse Action Help
Hello .. i have a problem and i really can't get it right ... can somebody help me please ? In my intro screan there is a text called morreke ... I want this text to go to the right when my mouse goes left and go to the left when my mouse goes right ( and this in a continues loop. The html file you can see at http://users.pandora.be/morreke/flash/Movie2.html ! the fla file you van find at http://users.pandora.be/morreke/flash/Movie2.fla !! the text is airbus so it can be that you have another but that's not a problem.

Can somebody tell me how to do it, or do it for me ??

thanx in advance.

if you guys are soooo nice ( because of christmas ) to do it for me, you can mail it back to bjorn.morrhaye@pandora.be

Action On Mouse Over
I mean that how can I get the action on mouse over? For example I have :
Tel/Fax Mobile Email
on mouse over "Tel/Fax" some action will be nearby or to show the image

Thanks in advance!

Smething like this http://www.diz.ru/

On Mouse Over Action
hello,

I want to activate an action countiniously while the cursor is "over" my button...when I use on(mouseOver) it only activates when the cursor "enters" the button...

can someone plese help me , thx

/ jan

Action On Mouse Over
Could anyone explaine me how can I get for example if I mouse over "CONTACT" the phone number and email will appear nearby???
What script I need to use here
Tanks in advance!!!

Mouse Action Please Help
Dear All,
I Have a button ..
How can active the rollover state button without moving the mouse over it (the button).
for example : from timeline action script.
Any can answer please with samll example..
Thanksa lot..

Mouse Action
hi everyone,

does anyone know a tutorial or a way about getting something like the menu shown on http://www.mk2.com/last_days/ done?

I started working on it, but I have no glue how to realise the effect when the mouse enters the Flashsite (the automatic scrolling).

Here's what I've done so far:

mausListener = new Object();
mausListener.onMouseMove = function() {
maus_x = int(mc_maus._xmouse);
maus_y = int(mc_maus._ymouse);
}

Mouse.addListener(mausListener);

onEnterFrame = function () {
mc_himmel._x = -(maus_x /7) +320
mc_berge2._x = -(maus_x /6) +320
mc_berge1._x = -(maus_x /5) +320
mc_wasser._x = -(maus_x /4) +320
mc_boot._x = -(maus_x /2) +500

mc_himmel._y = -(maus_y /30) +130
mc_berge2._y = -(maus_y /20) +292
mc_berge1._y = -(maus_y /15) +220
mc_wasser._y = -(maus_y /12) +300
mc_boot._y = -(maus_y /12) +276
}

Thanks so far...

kobo80

Action When Mouse On
Hey

At www.ipexpert.com > select one of the four links on the top ( eks. partnerships )
There's four boxes to the right, each containing a picture and some text. When holding the mouse over one of the pictures, which is in another cell than the text below it, the text still change color, even when it's in another cell than the picure which the pointer is being hold over. How is it possible to make a target for on mouse over, or whatever they've done? I'm talking about HTML and not flash.

-Mikkel

Mouse Following Action
How would you have something follow your mouse for example the inside of a scope as you move the mouse around the scope would follow you?

Thanks

(also is there a pre made action script for pacman?)

Please Help-Mouse Action Script
For the life of me I cant figure this one out...please help.
I have to admit I am no pro at this aspect of flash but what I am trying to do is have a mask move across the sceen right under the mouse cursor. IT WORKS, except there is a 2" space between the mouse and the mask at all times.

How do I reduce the distance between the mouse and the mask?

If it helps, here is the action script I am using:

x_mouse = _root._xmouse;
y_mouse = _root._ymouse;
if ((x_mouse>=0) and (x_mouse<=545) and (y_mouse>=0) and (y_mouse<=150)) {
_root.navigation.gotoandstop(Math.round(x_mouse/4));
}


Thanks a ton.

'on Mouse' Action Greyed
I have been trying to assign an action to a button in flash 5 but the 'on mouse' event is constantly greyed. Even if I go into Expert mode I get an error in the script. (Mouse events are permitted only for button instances, on (release) {

Targeting A MC With A Mouse Over Action
Is it possible to activate a Movie Clip with a mouse over action??? Now I do not want the MC to be in the button… but in a totally separate place in my movie. Almost like a javascript rollover command that targets more than one clip. If this makes sense to anyone can you please send me in the proper direction… thank you.

How Do You Detect Mouse Action?
Hi,

I have a MC (timer) inside a movie (main.swf) that has a timer, the MC (timer) loads Intro.swf onto Level 0, when it times out. I need to add a mouse detection to the movie (main.swf) so that when someone clicks anywhere on the screen the MC (timer) goes to and plays frame 1.

Any suggestionss???

Mouse Action Script
I'm using MX.Is there a way to get a custum made flash cursor to fade out when the cursor leaves the frame such as a menu in a multi framed website. And then have the custom cursor fade back in whe your cursor goes back over the frame?

Action On Mouse Not Moving
Hi All,

Just a quick question to a actionscripting problem. I need something to happen when the mouse is NOT moving. Say when my mouse is moving around the screen an object turns red.. and when it's NOT moving it turns blue. Let me know if anyone has an answer.

Thanks!

Inigo

Action When Mouse Clicked Outside Of Swf?
hey guys long time no post..

anyways im in need of a little help.


I have am swf movie overlayed on a html with absolute positioning etc.

Its a menu slideout for the site im creating..

anyways i was wondering if theres a way you can tell a flash movie to go to a particular frame when the mouse is clicked outside of the flash movie.

Im still using flash 5 btw.. dont like mx at all (action scripting is easier in 5 i reckons

Continue Action While Mouse Is Down
Howdy,
I have 2 buttons on my movie that controlls the timeline.

The rewind button has the following actionscript:

on (rollOver) {
this.stop();
}

on (press) {
if (this._currentframe>=35) {
this.prevFrame();
this.prevFrame();
} else {
this.gotoAndStop(104);
}
}

on (rollOut) {
this.play();
}


Then on the forward button I have:

on (rollOver) {
this.stop();
}

on (press) {
if (this._currentframe<=102) {
this.nextFrame();
this.nextFrame();
} else {
this.gotoAndStop(33);
}
}

on (rollOut) {
this.play();
}

This all works great. It skips forward or backwards 2 frames because the image on the timeline changes every 2 frames. When it reaches the end of the loop, you click and it jumps to the begining and vice versa. However, the user needs to keep clicking to get the timeline to forward or reverse. How can I have it continually move forward or backward while the mouse is down? Some sort of loop inside on(press) I expect. I cannot figure out how to do it. Your help is always appreciated.

Thanks,
mperla

Action For The Right Mouse Button
Hi!

It is just a simple question...
Can I give an action for a secondary (right) mouse button for my movie using an actionscript?

Thanks.
HoPe

Mouse Out Action Over A Button
I request if possible the procedure which relates to the mouse out action.
Specifically when the user places the mouse over the button, the animation begins to play, if however the user removes the pointer before the button animation completes, the animation returns to the rest, or mouse out state.
If you can point to any tutorials or resources or if you can describe this procedure I would greatly appreciate it
Thank you for you co-operation and time.

Performing An Action When Mouse Is Still
I am using flash mx2004 and I am trying to think if there is a way to perform an action when the user's mouse is still.

I want the program to play music when the mouse is moving, but stop it when the mouse is still.

To play the sound I use:

_root.pos=0;
_global.myMusic = new Sound();
myMusic.loadSound("song"+curtrack+".mp3", true);
myMusic.start((_root.pos),1000);

To stop I use:

_root.pos=myMusic.position;
myMusic.stop();

Is there an easy way to do this?

Thanks

Use Mouse To Determine Action
I have been experimenting with this and cannot get it to work. I would like a command to say that if the mouse is at a certain loacation, another action should happen, ex if this action is in the frame

if (_xmouse >= 10){
this happens to mc1

}else{
this will happen to mc1
}

Action Script For Mouse
Sorry if this is in the wrong section.
I'm trying to make it so when I enter a frame the curser is placed at certain co-ordinates, but i'm not sure how. Any help would be appreciated =).

Mouse Action Timer
hi there, i am a newbie...

i just got a timer question to ask.

how to make a flash movie to play all over again if there's 20s inactivition...

it's a bit like the screensaver, with 20s inactivition, the movie will start play again...

thanks

Simple Mouse Over Action
i want my inviz button to not show the hand cursor. i just want the arrow to stay the same

so inside a simple action i added the actionscript but it doenst work, it still shows the hand....this is what i have on the inviz butt

on (rollOver) {gotoAndPlay(2);
myButton.useHandCursor = false;

}


any help is appreciated, thank u

Simple Mouse Action
dear all:

i want to do a simple action but couldn't find sample on
flashkit or here, would u guys help me on that.
what i want to do is, when the mouse move to right, the image/gragpic will move to right horizontal, and the mouse move
to the left the image will follow it again(no up and down, only left
and right).
thanx for help.

free

Action On Key (keyboard Not Mouse) Press
I want to skip to a certain frame in my movie when the user presses a certain key. No mouse actions involved at all!

Is this possible, if so how?

Thanks for the help...

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