[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

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

loadVariables syntax error?

I cannot seem to find the syntax error that Flash's debugger is complaining about.

**Error** Symbol=menu, layer=Layer 1, frame=1:Line 18: ')' or ',' expected
         loadVariables("GetDetails.asp?Record=" add String(CurrentRecord), this)

Total ActionScript Errors: 1        Reported Errors: 1

The loadVariables statement worked fine in Flash 7 - soon as I converted to 8 this error surfaced. Any help is appreciated.

0
Onyx23
Asked:
Onyx23
1 Solution
 
Onyx23Author Commented:


I tried this too!

**Error** Symbol=menu, layer=Layer 1, frame=1:Line 18: ')' or ',' expected
         loadVariables("GetDetails.asp?Record=", add String(CurrentRecord), this)
0
 
jack_p50Commented:
the "add" operator is now deprecated. to add two strings use the "+" operator. in your case:
loadVariables("GetDetails.asp?Record=" + String(CurrentRecord), this)
0
 
seifipCommented:
loadVariables("GetDetails.asp?Record=" + String(CurrentRecord), this);
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
jack_p50Commented:
seifip i posted the same line
0
 
seifipCommented:
sry... havent read it before =D
0
 
muxxterCommented:
For string concatenation, Flash MX still supports "add". But Flash 8 no longer does, use "+".

However, that error sounds more like you for got to close a ")" on a previous line.

Check whatever has "( )", just before the loadVariables(). Either an "if" statement, function call, or function header. And just make sure all the parentheses are closed.

Cheers
MuXx
0
 
seifipCommented:
Its right... Nearly all programming software (ex.: Flash, Delphi) shows the error line one line after the real error so if you hace error on line 18 your programming/compiling soft will write you that you have the error on line 19.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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