Click to See Complete Forum and Search --> : Flash issue...


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

Eye for Video
04-07-2009, 01:16 PM
I’m not sure what the problem is but remember decompilers make best guess assumptions when spitting out the code. So even if you get this part fixed, the file in it’s entirety still may not work. Have you had much success at decompiling before?
My suspicions are that those lines need a set of parenthesizes around
([_loc_4](_loc_3))
and / or a comma between the array and the condition… maybe something like
([_loc_4], (_loc_3))
but like I said, don’t know for sure but just having the array [_loc_4] followed directly by the condition (_loc_3) seems like a problem. Experiment a little with different ways to express that.
This advice comes with a 100% no money back guarantee!
EfV