Tag Info

New answers tagged


onAreaTouched Is triggered when the button is pressed, and that press is inside its bounds. This means the event will never be isActionOutside() or isActionCancel(), because a button simply wouldn't receive events like this. You need to have a global listener that listens for events. All your components talk to your global listener and the global listener ...


Make the link clickable and then go to url using intent. Text link = new Text(100, 100, this.mFont, "Link", this.getVertexBufferObjectManager()){ @Override public boolean onAreaTouched(final TouchEvent pSceneTouchEvent, final float pTouchAreaLocalX, final float pTouchAreaLocalY) { switch(pSceneTouchEvent.getAction()) { ...

Top 50 recent answers are included