Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Results 1 to 5 of 5

Threaded View

  1. #1

    Default Problems adding url link to buttons in action Script 3

    I am having some issues adding an url link to a button that made in flash, the code i am using is


    Code:
    function makebtn (mc:MovieClip, aurl:String):void
    {       
          mc.aurl= aurl;
          Mc.buttonMode= true;
          mc.addEventListener(MoveEvent.Click,gotoaurl);
    }
    
    function gotoaurl (e:MouseEvent) :void
    {
         var aurl:String = e.target.aurl;
         navigateToUrl(new URLRequest (aurl));
    }
    makebtn(bnt1,'http://www.masterpiececorp.com/ARMREF.htm');
    I attached the flash file

    Help please!


    Gina T
    Last edited by Vlykarye; 09-12-2011 at 10:17 PM.

  2. # ADS
    Join Date
    Always
    Posts
    Many
     

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial