Trick o' the day:

Make a MovieClip.  Inside it put the following frame labels:

_up
_over
_down (optional)

Assign any mouse action (onRelease, onPress, onRollOver, etc.) to the MovieClip and it will behave like a Button except it's a MovieClip so you can target stuff inside.

Steven Sacks
Flash Maestro
Los Angeles, CA
--
blog: http://www.stevensacks.net
gaia: http://www.gaiaflashframework.com

Andrew Sinning wrote:
Old school (4-frame) buttons are so nice because they give designers direct access to the look of the button in each of four states, but as a programmer they've always driven me nuts. I want to use AS to control the buttons. I want a set of templates that determine what the body of the button looks like and the ability to dynamically set the text and/or graphical "content" inside the border of the button. While I can think of a few ways to do this, I don't want to reinvent the wheel and I'm looking for some friendly wisdom. I see the world through the eyes of a programmer, and I've been a soloist for a very, very long time. New opportunities call for me to lead and direct artists, and to provide a framework that won't hinder their creativity.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to