Re: [Flashcoders] this.selected
Buttons are hardwired bro, gotta use a MovieClip. Granted, there might be a way to hack it so you tell it to go frame like _over or _down; but it's not worth the voodoo. - Original Message - From: Simon Lord [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, April 21, 2006 9:13 PM Subject: [Flashcoders] this.selected The standard button components support setting the toggle state of a button to true. Can I achieve the same result with a button I made? Or do I *have* to create a movieClip? I want the button to toggle between the frame 1 and 3 of the button. ___ Flashcoders@chattyfig.figleaf.com 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
RE: [Flashcoders] this.selected
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 ___ Flashcoders@chattyfig.figleaf.com 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
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 ___ Flashcoders@chattyfig.figleaf.com 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 ___ Flashcoders@chattyfig.figleaf.com 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
RE: [Flashcoders] this.selected
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 ___ Flashcoders@chattyfig.figleaf.com 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 ___ Flashcoders@chattyfig.figleaf.com 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 ___ Flashcoders@chattyfig.figleaf.com 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
[Flashcoders] this.selected
The standard button components support setting the toggle state of a button to true. Can I achieve the same result with a button I made? Or do I *have* to create a movieClip? I want the button to toggle between the frame 1 and 3 of the button. ___ Flashcoders@chattyfig.figleaf.com 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