≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Using 2d overlay items as buttons in actionscript
Posted by:
(you are not logged in)
Enter the missing letter in: "Internationa?"
(you are not logged in)
Text:
[quote][b][/b] wrote: I still haven't managed to get a button to work. In the constructor function i add an eventlistener for the mouse: [code]stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseIsDown);[/code] This function is getting called: [code] public function mouseIsDown(e:MouseEvent):void { var button:Object = simpleAPI.getSceneNodeByName("button"); if (e.target == button) trace("button clicked"); } [/code] My main problem is to add a mouse down event listener to the button (a 2ddisplayobject made in CC). How do i pull this off?[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact