The example below assumes you are using Main.as as your main/driver class
//create a new private and static variable
private static var _instance:Main;
//constructor
public function Main(){
_instance=this;
}
//get function that returns an instance of main
public static function get instance():Main {
return _instance;
}
Inside any class, you access the stage by using:
Main.instance.stage
few more years and you can drink !
then maybe google can forget about all those mad and strange searches

webworksusa said
did you solved your connection problem ? did you tried port forwarding from the router config ?
Yes I did, had to give port 80 superpowers in the firewall.
zefs said
SimplyDo said
zefs said
Hehe, indeed. Which android phone is it that you using?HTC DESIRE HD .. Proud owner for almost a year. Bought it on day 1.
Which phone do u own?I got the Galaxy S2, I really love its design. Both are great phones. Wish battery life was better though
Maybe the 2000mAh battery will help a bit.
Yes the only problem is the battery time. Once you adapt and manage it correctly it becomes perfect
FusionCore said
myjilson saidHey, I use C# XNA . It’s an amazing platform to write on. To convert things to iOS and Android I use Monotouch and Monogame.
Great work dude! How did you do these games? which language? Can you tell us your story?
How are your games doing on android or iphone.
With these tools (Monotouch and Monogame) is performance maintained ?
bitfade said
SimplyDo saidprobably because dhcp server on your router didn’t renew the lease
I used to connect to .65 previously but i dont know how in the world did it change to .68
probably.
I can’t figure this out
I hava a class that represents a button, it consists of:
- A back (another custom class)
- A txt
- A rectangle (hidden) above everything
I am applying a TOUCH _TAP event to an instance of this class.
When i tap on the button it works, however if the tap is above the text it doesnt register the tap.
The even listener is applied to the instance itself. mosueChildren can’t be applied
Am i forgetting anything? I need a work around.
I wanted to add the event to the hit sprite located inside the button above everything else however i have common touchbegin and touchend events registered to this button and other buttons(diffrent objects/classes)


