all groups > flash (macromedia) > october 2004 >
You're in the

flash (macromedia)

group:

button rollover


button rollover rovision
10/22/2004 8:58:16 PM
flash (macromedia):
I've been able to do this in F5, but now in MX04Pro... things are harder:

on (rollOver) {
setProperty(someInstanceName,_visible,true);
}

I have 2 buttons on the same layer, when I roll over one, I need the other one
to be visible.

Thanks for your help,

Re: button rollover urami_
10/23/2004 9:45:29 AM


[quoted text, click to view]


on (rollOver) {
someInstanceName._visible=true;
}

--


Regards


urami_*

<hol>
http://flashfugitive.com/
</hol>


By The way:
Re: button rollover rovision
10/29/2004 3:26:45 AM
Thanks Urami for your reply. However, I'm not sure this is going to work. I
tried different ways to do this and it still doesn't work like I want to. Let
me rephrase my question a little: - on the main timeline I have 2 buttons, A
and B, identical, but with 2 instance names. Both have the &quot;Up&quot; state
empty [or it could be visible]. When loading the movie I need both buttons to
be invisible [they should be anyway since the Up state is empty]. Then, when
rollover A I need B to show the &quot;Over&quot; state and vice versa. I read
somewhere that in MXPro you can asign instance names to buttons and apply some
methods. In F5 I replaced the rollover states with MCs and simple graphics to
simulate the other button. Still not very elegant and too much code. Any
ideas? From what I've tried so far, it seems that even in MX the situation is
the same, A and B need to be in MCs.
Re: button rollover urami_
10/29/2004 11:45:12 AM


[quoted text, click to view]

YOu can't control button frames , in any version of flash.
Buttons are not like movie clips , different type of timeline.
YOu need to make two movie clips and simulate buttons.
You can still assign button event to movie clip and make it act just
like button.

There is one thing I don't really get. If the button A is not visible , how you find it
to select it to show the B button ?
Sorry, bit confused :)


--


Regards


urami_*

<hol>
http://flashfugitive.com/
</hol>


By The way:
Re: button rollover rovision
10/29/2004 2:46:13 PM
Thanks Urami for your time. The buttons are supposed to be &quot;hot
spots&quot;, similar to an image map on a catalog page. They simply act like
buttons to send the viewer to a larger image of a product. So, at the loading
of the page, they need to be invisible, and made visible on rollover. I've put
the buttons in separate MCs [having something in the Up state too], and make
the buttons invisible onLoad the movie. But I don't know how [if there's a way]
to make them visible again on rollover. From what I've tried it doesn't work.
In F5 I had some sort of a replacement graphic rectangles to simulate the
buttons. Since when you rollover A, which is a button inside an MC, you can
make the replacement B visible [A is a picture of the item, B is the
description], and vice-versa, it worked. But this involves a lot of repeating
code and when you add this to some 3,000 products... :(
AddThis Social Bookmark Button