Simple Actionscript help: making banner clickable

Discussion in 'Programming' started by grafx77, May 29, 2009.

  1. #1
    I am getting this error with this actionscript code. I need my banner to be clickable please:

    ERROR:
    1084: Syntax error: expecting rightparen before getURL.

    CODE:
    
    	[SWF(width="125", height="125", backgroundColor="#FFFFFF")]
    	public class main extends Sprite
    	{
    		[Embed(source="gggbanner.jpg" getURL="navigateToURL(new URLRequest('http://mywebsite.com') ")]
    		public var Logo:Class;
    
    		public function main()
    		{
    			var logo:Bitmap = new Logo();
    			//logo.Width=105;
    			addChild(logo);
    			loaderInfo.addEventListener(Event.COMPLETE, onCreationComplete);
    		}
    
    Code (markup):
    Everything works other than the getURL part! Please reach me on MSN or Yahoo.

    Yahoo: grafx7712
    MSN:
     
    grafx77, May 29, 2009 IP
  2. akshayhack0123

    akshayhack0123 Banned

    Messages:
    1,678
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    hey why are you doing coding for making banner clickable...simply make it a button and use geturl <url link> action to do that
     
    akshayhack0123, May 29, 2009 IP