all groups > flash actionscript > february 2004 >
You're in the

flash actionscript

group:

One movie clip controlling another



One movie clip controlling another Dinghus
2/24/2004 8:20:40 PM
flash actionscript: I want to have a movie clip appear when the mouse rolls over another mc and disappear when it rolls out.

Re: One movie clip controlling another ufitzi
2/24/2004 8:50:04 PM
you cn use timeline effects(gotoandplay("showMC2") within an onClipEvent()
handler->
****************************************(do a search within the ActionScript
dictionary on this function, or online)

,->where showMC2 is a frame on the main timeline where mc2 is placed..

you can use event handlers (onClipEvent(rollOver)) to attachMovie("mc2")

The first option is probably more suitable
Re: One movie clip controlling another Dinghus
2/24/2004 8:56:29 PM
So if I have 30 mc's and each one controls a different mc, i would need 30 frames.

Re: One movie clip controlling another Dinghus
2/24/2004 9:33:55 PM
Or I could have a dynamic text box and as I roll over different movie clips
the variable for the text box changes value.

I guess I need to know how to do a rollover on a movie clip. I can't seem to
get anything to happen.

I'm trying :

myMovieClip.onRollOver = myFunction();

Then have myFunction do what I want. Doesn't seem to work tho. Anybody know
how to do this simple thing?
Re: One movie clip controlling another ufitzi
2/24/2004 9:44:59 PM
myMovieClip.onRollOver = function()
{
...code...
}

OR

place this code on your mc
on(rollover)
{
.....code....
}

****One of these is the syntax you need if your using ActionScript 1.
Everything becomes much cleaner if you have the option of using AS2.

In regards to your visiblility idea, you can set the _visible property of a mc
to true or false. This option would also work.
AddThis Social Bookmark Button