Questions tagged [simplebutton]
26 questions
3
votes
3 answers
Flash toggle button
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…

Sietse
- 7,884
- 12
- 51
- 65
2
votes
1 answer
stopImmediatePropagation doesn't work for SimpleButton
I'm trying to cancel the event in this actionscript3 code:
public class Main extends Sprite
{
public function Main()
{
this.addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
}
protected function…

Алексей Андронов
- 21
- 1
- 3
1
vote
1 answer
Animate / Flash CC, AS3. Want to toggle button.upState on and off
I'm working on a school project right now. I've searched far and wide and haven't found a solution.
I have 2 simpleButtons. One is named btOui, the other btNon. I was looking for a way to make btOui's downState be false when btNon's downState is…

Nicolas Labonté
- 11
- 1
1
vote
1 answer
Multiple Inheritance in ActionScript 3.0 (in beginner talk)
I think it's called Multiple Inheritance. Correct me if I'm wrong.
I'm pretty much a beginner with AS3 and am having some trouble with it. Basically, if I were to do this:
package {
import flash.display.*;
public class ClassName extends…

Xyspade
- 73
- 1
- 1
- 9
1
vote
2 answers
as3 Cannot create same SimpleButton at the same time
I make a tile-matching game, and the operation is picking three numbers of 3x3 grid that show 1~9, and if the sum of the three numbers are as same as the goal of target number( usually 6~24, 6=1+2+3, and 24=7+8+9), then the three numbers will…

Shuinvy
- 251
- 2
- 6
- 23
1
vote
1 answer
AS3 I don't understand the different treatment of an extended movieclip class vs extended simplebutton class
I recently discovered the custom classes in actionscript 3. I started using them in my latest project but I find it hard to bend my brain around how it all works.
I created two different classes to test.
One is an extended movieclip called…

silvith
- 290
- 2
- 14
0
votes
2 answers
AS3 - SimpleButton inside of a Sprite
I have a menu that is a sprite and I'm adding a button to be able to minimize the menu. I'm using a SimpleButton() and I added the button as a child of the menu so menu.addChild(button) The problem I'm having is that when I mouse over and click the…

Josh Brittain
- 2,162
- 7
- 31
- 54
0
votes
1 answer
Trigger SimpleButton state with KeyDown Listener in AS3
I am looking for a way to trigger the downState of my SimpleButton using my KEY_DOWN event. I am hoping there is a way to do this without having to switch this to a MovieClip custom button.
Here is my…

brenjt
- 15,997
- 13
- 77
- 118
0
votes
1 answer
How get all buttons in AIR/Flash
I'm using following code to register a function for click event of all SimpleButtons inside my swf file.
The SimpleButtons that their name begins with 'b' must be register. But it not works for all buttons. Some of buttons in another MovieClip or…

Jalal
- 6,594
- 9
- 63
- 100
0
votes
1 answer
Button removed with removeChild() gets re-added in it's over state
I have a SimpleButton on the stage, and in the click event for it, I remove it using removeChild(). When re-adding the button, it gets re-added in it's "over" state, not the "up" state as expected.
I'm pretty sure it's a bug, so I've filed a JIRA:…

divillysausages
- 7,883
- 3
- 25
- 39
0
votes
1 answer
intermittent bug - DevExpress XtraEditors SimpleButton's text only appears 1st time when mouse is on top of it
pretty weird issue, essentially not replicable with certainty. Several offending buttons are located on top of a tab control's header (not as a tab page child, they are child to the same surface that tab control is child to) in upper right corner,…

EndangeringSpecies
- 1,564
- 1
- 17
- 39
0
votes
3 answers
When the mouse button is held down, why do SimpleButtons stop detecting over state?
I was hoping to gain some insight as to why Flash acts in a particular way. Here is the scenario: if you...
1) add a SimpleButton to the stage and view the SWF
2) then press and hold the mouse button down OUTSIDE of the button's boundaries
3) then…

Blake uburuDOTcom
- 23
- 5
0
votes
3 answers
AS3: Making a SimpleButton from library sprites: Possible?
I'm working on a small project in AS3, and I need to make some interface buttons. I had them as separate classes at first, but then realized that it was probably overkill, and on top of that, figured out a way to simplify the event calls by making…

StormShadow
- 1,589
- 4
- 25
- 33
0
votes
1 answer
C# Custom SimpleButton change color
I have done a custom button using a Devexpress SimpleButton and I want to change the color of the button like this, but it doesn't work.
this.Button.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
…

mrvinent
- 115
- 2
- 16
0
votes
0 answers
Simple Button Transparent Background on Xtragrid
i want to add a simple button on the view caption section or the group panel section of the xtragrid (see attached images). The problem is that i can't find a way to make the button's background transparent. I've tried almost everything on the…

Andreas Myriounis
- 484
- 5
- 13