136 reputation
118
bio website gone3d.com
location DC Metro
age 49
visits member for 1 years, 5 months
seen Nov 7 '13 at 14:08

Diginaut


May
11
awarded  Fanatic
Mar
2
awarded  Enthusiast
Feb
27
comment Shooting Bullets Around a Sphere
I'm working on a similar idea, but I'm doing all the work in code (AS3). The ship can be in orbit or not, but that won't affect the shots - the shots are affected by the gravity of the planet, their vector. Glancing shot is only bent a small amount, too close to the planet and it falls in. If you have it transition from RotateAround() to vector, it might look a little odd - circle arc to straight line. You might want to do a gravity calc to smooth the trajectory of the shot
Feb
12
awarded  Informed
Feb
12
awarded  Custodian
Feb
12
reviewed Reviewed Calculate combat result between 2 units
Dec
28
comment Change the tilemap shown on stage in Flixel
What is the code in add(level)?
Nov
29
comment Create and use a Button class on AS3.0
Take a look at this: wonderfl.net/c/asTE SimpleButton doesn't have the addChild method, so I changed things up and made the button a sprite. But this should be enough to get you where you need to be.
Nov
29
awarded  Commentator
Nov
29
comment Create and use a Button class on AS3.0
let us continue this discussion in chat
Nov
28
comment Create and use a Button class on AS3.0
Is it available yet or are you call it too soon? stackoverflow.com/questions/13457037/actionscript-3-0-typeerror/…
Nov
28
comment Create and use a Button class on AS3.0
soonButton.x = xVal; soonButton.y = yVal; There are all sorts of properties on the simple button class - take a look at the docs and make sure to expand the Show Inherited properties if it they aren't already help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/…
Nov
28
comment Create and use a Button class on AS3.0
Yes - add the infobox button programmatically, not directly to the stage via the IDE and it should work.
Nov
28
comment Create and use a Button class on AS3.0
Is the simple button on the stage or added programmatically. You need to add it to the stage as an InfoBoxButton
Nov
28
comment Create and use a Button class on AS3.0
sorry - yes excatly - then lay it out as you would the regular buttons
Nov
28
comment Create and use a Button class on AS3.0
you'll need to instantiate each button as this new class instead the original button. Remove the reference of soonButton and just make it this.addEventListener....
Nov
28
comment Create and use a Button class on AS3.0
I'm just a little confused now - yes it would work on the soon button - you want it on all the buttons? Then create a new button class with this infobox and have it show/hide internally. That way you don't have to worry about hooking up all the buttons. It will require a custom button class, though.
Nov
28
awarded  Editor
Nov
28
comment Create and use a Button class on AS3.0
Fixed the code - add the listener to the soonButton instance - then it calls the same function
Nov
28
revised Create and use a Button class on AS3.0
Added changes to address problem