[Flashcoders] OldSchool buttons w/NewSchool AS
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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] OldSchool buttons w/NewSchool AS
A number of companies I've worked for have had solutions for this along a similar vein. Basically you have labeled states in a MovieClip and that MovieClip has a AS class linkage and you have code that manages the states. It does mean that the desingers have to remember to use the class linkage, but I've never found a problem explaining that to them - just a small learning curve on their part. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Sinning Sent: 28 January 2008 15:28 To: Flash Coders Subject: [Flashcoders] OldSchool buttons w/NewSchool AS 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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders __ This e-mail has been scanned for viruses by the Virtual Universe e-mail security system - powered by MessageLabs. http://www.virtual-universe.net __ Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London NW6 6RJ Tel: +44 (0) 870 788 6000 Fax: +44 (0) 870 788 6689 Web:www.virtual-universe.net - CONFIDENTIALITY NOTICE This e-mail may contain information which is confidential and privileged. If you are not the named addressee of this e-mail, you may not copy or use it, or forward or otherwise disclose it to anyone else. If you have received this e-mail in error, please e-mail the sender by replying to this message and then fully delete it from your system. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Amplefuture Group. Amplefuture Group reserves the right to monitor e-mail communications from both external and internal sources for the purposes of ensuring correct and appropriate use of our communication equipment. __ This e-mail has been scanned for viruses by the Virtual Universe e-mail security system - powered by MessageLabs. http://www.virtual-universe.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] OldSchool buttons w/NewSchool AS
Hi, That's the same approach I have taken - create basic rollover button code and give the designers a template. It is not a hugely different with AS3; extend MovieClip, add event handlers for mouse over, etc. then fill in the functionality as you see fit. It's a good exercise too if you are finding your way around new code, so re-inventing the wheel has benefits and maybe enables you to refactor some old code to update it. HTH Glen Matthew James Poole wrote: A number of companies I've worked for have had solutions for this along a similar vein. Basically you have labeled states in a MovieClip and that MovieClip has a AS class linkage and you have code that manages the states. It does mean that the desingers have to remember to use the class linkage, but I've never found a problem explaining that to them - just a small learning curve on their part. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Sinning Sent: 28 January 2008 15:28 To: Flash Coders Subject: [Flashcoders] OldSchool buttons w/NewSchool AS 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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders __ This e-mail has been scanned for viruses by the Virtual Universe e-mail security system - powered by MessageLabs. http://www.virtual-universe.net __ Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London NW6 6RJ Tel: +44 (0) 870 788 6000 Fax: +44 (0) 870 788 6689 Web:www.virtual-universe.net - CONFIDENTIALITY NOTICE This e-mail may contain information which is confidential and privileged. If you are not the named addressee of this e-mail, you may not copy or use it, or forward or otherwise disclose it to anyone else. If you have received this e-mail in error, please e-mail the sender by replying to this message and then fully delete it from your system. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Amplefuture Group. Amplefuture Group reserves the right to monitor e-mail communications from both external and internal sources for the purposes of ensuring correct and appropriate use of our communication equipment. __ This e-mail has been scanned for viruses by the Virtual Universe e-mail security system - powered by MessageLabs. http://www.virtual-universe.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Glen Pike 01736 759321 www.glenpike.co.uk <http://www.glenpike.co.uk> ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] OldSchool buttons w/NewSchool AS
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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders