all groups > flash (macromedia) > march 2006 >
You're in the

flash (macromedia)

group:

Getting rollover image to stay


Getting rollover image to stay sjw040385
3/26/2006 7:29:51 PM
flash (macromedia):
I want a rollover image to stay on the screen after the button is clicked. So
far I can only make the image appear and then disappear on rollover/hit. (now
on rollover/click, a new image with info appears to the side in the button but
it doesnt stay there) How would I do this?Thanks.
Re: Getting rollover image to stay Wolf van Ween
3/26/2006 7:53:55 PM
You would write actionscript to override the automatic button behaviour.

Tell us how your button looks like, and we can tell you how to change it.

You write "make the image appear" - that is not entirely clear:
- what sort of image: a jpg, some flash graphic symbol?
- how does it appear? Does it simply sit in the "over" state, do you use a
Behavior or did you already write a bit of actionscript yourself

Re: Getting rollover image to stay sjw040385
3/26/2006 8:18:02 PM
I have a website with a menu on the left side of the screen. I want the words
as I roll over them to change to a different color (which Ive done using the
button screen) and when people click on the word I want a layout (image and
text) to appear on the right. I was told that i could format the layout of the
button on the "over" and "hit" frames to make the layout appear. So, they do
appear when I roll over and click, but I dont know how to make the layout stay
after Ive clicked the button?
Re: Getting rollover image to stay Wolf van Ween
3/26/2006 8:58:30 PM
Oh, so the "layout" is outside the button hit area?
You made the button artificially larger so that it contains the area where you
click and the area where the "layout" appears?

If so, ingenious, but not good.

And do I guess right, that you want different "layouts" or "pages" to appear
when different buttons are clicked.
Well, there are many ways to do this, either have the "layouts" prepared on
different frames, and have the buttons jump to those frames, e.g.
on(Release) { this.gotoAndStop("layout_1") }
Or you prepare them as movieClips on stage but hide them, then switch
visibility in the button script:
on(Release) { this.layout_1._visible = true; }
AddThis Social Bookmark Button