Skip to main content
January 1, 2009
Answered

navigateToURL throwing up error

  • January 1, 2009
  • 2 replies
  • 461 views
Hi anyone
I am getting an error which says "ArgumentError: Error #1063: Argument count mismatch on bingo_game9_AS3_fla::MainTimeline/get_link(). Expected 0, got 1." when trying to access a web page from Flash.
The movie clip on the stage is called "link_mc"
btn_over, btn_out etc. works fine. It just changes the size of the mc when mouse is over using functions elsewhere.
See attached code. Any ideas?
Rick
This topic has been closed for replies.
Correct answer Ned Murphy
Because you are using an event listener to call the function, the event sends an argument to the function, but your code doesn't accommodate receiving it.

Use: function get_link(e:MouseEvent) {

2 replies

January 1, 2009
Thanks a lot Ned. Good one. Seems to work fine now.
Happy new Year to you.
Rick
Ned Murphy
Legend
January 1, 2009
You're welcome, and have a happy one yourself!
Ned Murphy
Ned MurphyCorrect answer
Legend
January 1, 2009
Because you are using an event listener to call the function, the event sends an argument to the function, but your code doesn't accommodate receiving it.

Use: function get_link(e:MouseEvent) {