From: Garry Bradley on
Hi
I've created a simple Flash banner and I now need to go to an URL when it's
clicked. Simply how do I do it? What do I need to do?

Any help would be very welcome

Garry

From: dan mode smith ~Adobe Community Expert~ on
Make a new button symbol that is the width and height of your stage. You
can either make that button your background or set its alpha to 0.


--
Dan Smith > adobe community expert
Flash Helps > http://www.smithmediafusion.com/blog/?cat=11
http://www.dsmith.tv

"Garry Bradley" <garry.bradley(a)btinternet.com> wrote in message
news:C4340B59.56F0%garry.bradley(a)btinternet.com...
> Hi
> I've created a simple Flash banner and I now need to go to an URL when
> it's
> clicked. Simply how do I do it? What do I need to do?
>
> Any help would be very welcome
>
> Garry
>


From: Garry Bradley on
Hi Dan
Thanks for the reply.

As in your suggestion I've just gone onto Alan Wallace's site to look at his
tutorial on how to add an invisible button to a Flash banner so you can link
an URL.

This is the code he says to insert

LinkButton.addEventListener(MouseEvent.CLICK,clickHandler);
function clickHandler(event:MouseEvent) :void{
navigateToURL(new URLRequest("http://www.mysite.co.uk"));
}

Obviously I've put in the button instance name and I'd put in the relevant
URL to link to. Apparently it should work but I keep getting a
'the class or interface 'MouseEvent' could not be loaded'
error message which stops it from jumping to the URL.

I've checked all the spaces, commas and brackets and as far as I can see
there aren't any errors. Has anyone any idea what's happening here?

For reference I'm running Flash CS3 on a Mac under Leopard 10.5.2.

Help!


On 23/04/2008 4:56 pm, in article funm6k$j4t$1(a)forums.macromedia.com, "dan
mode smith ~Adobe Community Expert~" <dsmith(a)tornadoNOTTHISINstream.com>
wrote:

> Make a new button symbol that is the width and height of your stage. You
> can either make that button your background or set its alpha to 0.
>

From: dan mode smith ~Adobe Community Expert~ on
Actionscript 2 or 3?


--
Dan Smith > adobe community expert
Flash Helps > http://www.smithmediafusion.com/blog/?cat=11
http://www.dsmith.tv


"Garry Bradley" <garry.bradley(a)btinternet.com> wrote in message
news:C435EE66.5E4A%garry.bradley(a)btinternet.com...
> Hi Dan
> Thanks for the reply.
>
> As in your suggestion I've just gone onto Alan Wallace's site to look at
> his
> tutorial on how to add an invisible button to a Flash banner so you can
> link
> an URL.
>
> This is the code he says to insert
>
> LinkButton.addEventListener(MouseEvent.CLICK,clickHandler);
> function clickHandler(event:MouseEvent) :void{
> navigateToURL(new URLRequest("http://www.mysite.co.uk"));
> }
>
> Obviously I've put in the button instance name and I'd put in the relevant
> URL to link to. Apparently it should work but I keep getting a
> 'the class or interface 'MouseEvent' could not be loaded'
> error message which stops it from jumping to the URL.
>
> I've checked all the spaces, commas and brackets and as far as I can see
> there aren't any errors. Has anyone any idea what's happening here?
>
> For reference I'm running Flash CS3 on a Mac under Leopard 10.5.2.
>
> Help!
>
>
> On 23/04/2008 4:56 pm, in article funm6k$j4t$1(a)forums.macromedia.com, "dan
> mode smith ~Adobe Community Expert~" <dsmith(a)tornadoNOTTHISINstream.com>
> wrote:
>
>> Make a new button symbol that is the width and height of your stage. You
>> can either make that button your background or set its alpha to 0.
>>
>


From: Garry Bradley on
It's Actionscript 3 Dan