martinbeaulne
04-07-2009, 12:47 PM
Hi ! I've been decompiling a client's swf to add new products to his website, but can't get it to work...
I've got the following errors:
1084: Syntax error: expecting identifier before this. line 189
1084: Syntax error: expecting identifier before this. line 192
Here is the function's code:
public function stringToFunction(param1:TextEvent) : Function
{
var _loc_2:String;
var _loc_3:Array;
var _loc_4:String;
_loc_2 = param1.text;
_loc_3 = _loc_2.split(",");
if (_loc_3.length > 1)
{
_loc_4 = _loc_3[0];
_loc_3.splice(0, 1);
var _loc_5:String;
return _loc_5.this[_loc_4](_loc_3); //line 189
}// end if
var _loc_5:String;
return _loc_5.this[_loc_2](); //line 292
}// end function
Can someone tell me how to get it fixed ?
Thanks !
Martin
I've got the following errors:
1084: Syntax error: expecting identifier before this. line 189
1084: Syntax error: expecting identifier before this. line 192
Here is the function's code:
public function stringToFunction(param1:TextEvent) : Function
{
var _loc_2:String;
var _loc_3:Array;
var _loc_4:String;
_loc_2 = param1.text;
_loc_3 = _loc_2.split(",");
if (_loc_3.length > 1)
{
_loc_4 = _loc_3[0];
_loc_3.splice(0, 1);
var _loc_5:String;
return _loc_5.this[_loc_4](_loc_3); //line 189
}// end if
var _loc_5:String;
return _loc_5.this[_loc_2](); //line 292
}// end function
Can someone tell me how to get it fixed ?
Thanks !
Martin