A major benefit to making buttons like this in Flash is you can target
nested movieclips, textfields, etc. inside a movieclips but you cannot with
buttons.

This opens up all kinds of custom actions for your buttons that are
impossible with Button instances.  :)

 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Simon Lord
> Sent: Saturday, April 22, 2006 2:16 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] this.selected
> 
> That's a very helpful tip Steven.  Thanks!
> 
> 
> On Apr 22, 2006, at 5:03 PM, Steven Sacks wrote:
> 
> > A little known trick in Flash:
> >
> > Make a movieclip.  Give it 3 frames and put frame labels on 
> each named
> >
> > _up, _over, and _down
> >
> > Put a stop(); action on frame 1.
> >
> > If you assign a button method to the movieclip, like onRelease,  
> > onRollOver,
> > etc. it will behave just like a button on its own, going to 
> the _up  
> > _over
> > and _down frames automagically without any coding required.
> >
> > You can make additional frames and put frame labels on them 
> to your  
> > heart's
> > desire.  As long as those three frames are there and there's a  
> > button method
> > assigned to the movieclip, it will behave like a button.  
> You can use
> > .enabled = false to make it stop, just like a button.
> >
> > So, to make a selected button (that isn't a toggle button), make a  
> > fourth
> > frame "sel" (or something like that) and onRelease set its enabled  
> > to false
> > and tell it to go to frame "sel".  To unstick it, just set its  
> > enabled to
> > true and it will start working again.
> >
> > HTH,
> > Steven
> >
> > _______________________________________________
> > [email protected]
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> 
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to