| Welcome to Brackenwood. We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| Code Help; ^ read | |
|---|---|
| Tweet Topic Started: Apr 1 2005, 02:02 AM (94 Views) | |
| Sharlston | Apr 1 2005, 02:02 AM Post #1 |
|
Arse.
|
Hey, is it possible to code something so that when you roll over a button an image appears somewhere on the stage? and also a make a description under the button. thanks. I want it so that when you hover over a button an image appears in the middle and a description appears in the space below the buttons. note: not many buttons work yet. |
![]() |
|
| Mr. Jiggmin | Apr 1 2005, 04:46 AM Post #2 |
|
made of tulips
|
Well the easiest way to do that would be to just put the image and description in the over state of your button. You can do it with actionscript too, of course
To do it with AS it would go something like this:give the picture linkage identifyer of pic_MC in your library. then when the mouse is over the button you can call the picture to the stage by putting something like: m = _root.attachMovie("pic_MC","pic_MC"+getNextHighestDepth(), getNextHighestDepth()); m._x=someNumber; m._y=someNumber; Then when the mouse isn't over the button you can remove the picture with m.unloadMovie(); I don't have flash on this computer so I can't really test this code.... and I'm not sure if it's getNextHighestDepth().... its something like that.... errrr.... I'll check it when I get home. :lol: |
![]() |
|
| mikepol | Apr 8 2005, 11:49 AM Post #3 |
![]()
Brackenwood Newbie
|
remember that
only works in MX2004 AS2 the equivalent in as1 is
|
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Actionscript · Next Topic » |






To do it with AS it would go something like this:
12:31 AM Jul 12