Buttons in ActionScript 3.0
Solved/Closed
Hello,
I'm trying to make my buttons clickable in flash CS4 ActionScript 3.0, but for some reason it keeps giving me the error - 1120: Access of undefined property btnHome. I have set it ups as - Instance of: btnHome and name home. What am I doing wrong? Please help!
My code looks like this
function goHome(event:MouseEvent):void
{var targetURL:URLRequest = new
URLRequest("http://www.spintopdesigns.com/");
navigateToURL(targetURL);}
btnHome.addEventListener(MouseEvent.CLICK,goHome);
I'm trying to make my buttons clickable in flash CS4 ActionScript 3.0, but for some reason it keeps giving me the error - 1120: Access of undefined property btnHome. I have set it ups as - Instance of: btnHome and name home. What am I doing wrong? Please help!
My code looks like this
function goHome(event:MouseEvent):void
{var targetURL:URLRequest = new
URLRequest("http://www.spintopdesigns.com/");
navigateToURL(targetURL);}
btnHome.addEventListener(MouseEvent.CLICK,goHome);
Related:
- Buttons in ActionScript 3.0
- Asus volume buttons not working - Guide
- Scratch 3.0 download - Download - Programming languages
- Op auto clicker 3.0 - Download - Mouse and keyboard
- Ulead photo express 3.0 free download full version - Download - Image editing
- Action buttons in powerpoint - Guide
2 responses
pro-genius
Posts
185
Registration date
Tuesday November 18, 2008
Status
Member
Last seen
January 29, 2010
68
Feb 19, 2009 at 11:20 AM
Feb 19, 2009 at 11:20 AM
Hmmm really i don't know. The code looks good to me :S