homepage Welcome to WebmasterWorld Guest from 54.166.255.168
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
Adding url to a button
gmboat



 
Msg#: 4620017 posted 11:15 am on Oct 30, 2013 (gmt 0)

I am new to Action script. I am trying to add a url to a button but I get the following error: 1120 Access to undefined property btnLondon_btn

My code is as follows:

import flash.events.MouseEvent;
import flash.net.navigateToURL;
import flash.net.URLRequest;
import flash.net.URLRequestMethod;

btnLondon_btn.addEventListener (MouseEvent.CLICK, goLondon);
function goLondon (event:MouseEvent)
{
var url:String = "http://www.globillionaire.com/?page_id=806";
navigateToURL (new URLRequest(url));
}

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved