I need a button in Flash/AS3 that toggles between on and off. So I was glad to see that the Button class has the toggle property that lets me have that behavior. I was less happy to see that what I get when I make something a "button" in the Flash file is an instance of SimpleButton class, which does not have that option.
Is there a way...
I'm very new to flash. I'm trying to show a simple button for my simple flash app (with adobe flex builder 3).
The main project file, Client2.as:
package
{
import flash.display.Sprite;
[SWF(width="600", height="600", frameRate="31", backgroundColor="#00FFFF")] //set project properties
public class Client2 extends Sprite
...
UPDATE: This is not an actual issue. It transpires that there was another Sprite being create and set to alpha=0 which just happend to be at the same Y position as the height of the SimpleButton. This was preventing interaction with the button. Thanks to the guys for your thoughts. I'm closing the question.
I have a SimpleButton which...
This is driving me insane. I am working in Flash (not Flex) with Actionscript 3. I have an instance of the class SimpleButton. I have a TextField that I don't want to lose focus when the user clicks my SimpleButton. It is my understanding that both Actionscript 2 as well as the Flex class 'Button' both have a settable/gettable proper...