[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 926
  • Last Modified:

getURL syntax error

I am new to flash, and have some actionscript code that gives me an error message when it compiles.  My code is:

on (rollOver) {
      gotoAndPlay(2);
}
on (rollOut) {
      gotoAndPlay(11);
}
on(release) {
      getURL("http://147.202.34.39/members/index.html");
}

and when I run it, I get the message

Symbol=w22, Layer=Layer 6, Frame=20: Line 1: Wrong number of parameters; getURL requires between 1 and 3.
     getURL();

I can't see the problem - maybe it's obvious to someone here ?
0
Kevin
Asked:
Kevin
  • 3
  • 2
  • 2
1 Solution
 
nishasrilankanCommented:
Use the movie Explorer...there might be hidden coding, because here the error message says the error is in the Line one and you know in the code you given...getURL is not in the Frame 1
0
 
blue-genieCommented:
it says, "Wrong number of parameters"

your getURL wants another parameter. ie.

getURL("http://147.202.34.39/members/index.html", "_blank");

specify a target for it to open in. your options include, _parent, _self - can't think of the others.
0
 
nishasrilankanCommented:
there must be a blank getURL..ie:getURL();....
check the w22 symbol's, 6th layers...20th Frame...that should be there..
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
KevinAuthor Commented:
OK I am learning thanks to your help.  I tested around and see that the code I pasted here was OK.  As you say there is an empty getURL() statement somewhere.  But when I look at symbol 22 (movie clip) Layer 6 Frame 20 - there is no actionscript that comes up.  Is there any way (like a global editor kind of thing) to see all the actionscript in a flash file so that I can find this bugger ?
0
 
nishasrilankanCommented:
If you are using Flash MX use Movie Explorer

Window >> Other Panels >> Movie Eplorer or (Alt+F3)

From there select the Actions and you will be able to find all the actions
0
 
blue-genieCommented:
alternatively post your fla, i'm sure nish can spot it for u quickly.
0
 
KevinAuthor Commented:
Found the little bugger.  Thanks very much for your assistance.
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now