|
|
 |
FN-FORUM: Flash Actionscript 3.0
date posted 10th February 2008 11:24
Hi All,
I've been away for most of January, hope you had good new years. If anyone
noticed I was gone that is - I tend to post fairly infrequently.
A client has asked me to create a flash ad (I mentioned that I had
experience creating animations... oops). But I'm having problems creating
the actionscript to make the invisible button clickable. If anyone can point
me in the correct direction I'd be very grateful - google hasn't helped thus
far much.
The error I get when trying to export/publish the movie is: '{' expected
Line 2 - moving the '{' to line 2 doesn't fix the error, though.
Code is below, I've removed the URL as its an advert, didn't want to
publicise someone unnecessarily:
inv_btn.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void
{
navigateToURL(new URLRequest
("http://URL "));
trace("Car Hire");
};
Thanks (lots!) in advance
Ric
|
 |
|