Welcome Guest [Log In] [Register]
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:

Username:   Password:
Add Reply
Code Help; ^ read
Topic Started: Apr 1 2005, 02:02 AM (94 Views)
Sharlston
Member Avatar
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.

Posted Image

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.
Offline Profile Quote Post Goto Top
 
Mr. Jiggmin
Member Avatar
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:
Offline Profile Quote Post Goto Top
 
mikepol
Member Avatar
Brackenwood Newbie
remember that

Code:
 
getNextHighestDepth()


only works in MX2004 AS2

the equivalent in as1 is

Code:
 
getDepth()+1;


:bfoot:
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Actionscript · Next Topic »
Add Reply