CS4 Button Errors - HELP

I apologise if this issue already has a thread, I did a search and did not find it. Basically, I need to make quite a few [55!] buttons using CS4. I thought it would be fairly straightforward - upload the banner, give it an Action to go to a certain link, done. OR NOT.

I spent four hours going back and forth with a friend who is a programmer. She was able to accomplish this easily in CS3, and could not diagnose what was occurring in CS4. I then got on the phone with a programmer from my company. Nobody was able to figure out what was going on.

I’ve posted the process I’ve been using below:

  1. File > Open image file
  2. Right click > convert to symbol > button > rename to button1
  3. Click on image, properties panel at bottom of screen displays details (window > properties) if it’s not shown.
  4. In properties there’s a box that has grey text <instance name> - change this to button1 (the same as the symbol name in step 2).
  5. Right click > Actions. Ensure Actionscript 3.0 is select in top left drop down. In bottom lower left panel, click on Scene 1, it will then let you add the code in on the right.

function gotoAuthorPage(event:MouseEvent):void { var targeturl:urlRequest = new urlRequest(“http://google.com/”); navigateTourl(targeturl); }
button1.addEventListener(MouseEvent.CLICK, gotoAuthorPage);

  1. Click Save and then Control > Test Movie. Check it works then File > Export Movie.

When I tested it, on mouse over it appears to recognise that there’s a link, but when I click nothing happens. I’ve received the following errors:

“Type was not found or was not a compile-time restraint URLrequest.”

“Call to a possibly undefined method URL.”

“Call to a possibly undefined navigateToURL.”

Please, someone, help me!! :hr: