Welcome to WebmasterWorld Guest from 107.22.87.205

Forum Moderators: open

Message Too Old, No Replies

Adding url to a button

     
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));
}
 

Featured Threads

Hot Threads This Week

Hot Threads This Month