Fixed: #1339 AS1/2 direct editation - targetPath as an expression

This commit is contained in:
Jindra Petřík
2021-02-13 16:47:51 +01:00
parent d35b07ee42
commit eec91777e6
2 changed files with 8 additions and 7 deletions

View File

@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.flash.action.parser.script;
import com.jpexs.decompiler.flash.SourceGeneratorLocalData;
@@ -539,6 +540,11 @@ public class ActionScript2Parser {
expectedType(SymbolType.PARENT_CLOSE);
ret = new GetTimeActionItem(null, null);
break;
case TARGETPATH:
expectedType(SymbolType.PARENT_OPEN);
ret = new TargetPathActionItem(null, null, (expression(inFunction, inMethod, true, variables, functions)));
expectedType(SymbolType.PARENT_CLOSE);
break;
default:
return null;
}
@@ -706,12 +712,6 @@ public class ActionScript2Parser {
ret = new StopDragActionItem(null, null);
break;
case TARGETPATH:
expectedType(SymbolType.PARENT_OPEN);
ret = new TargetPathActionItem(null, null, (expression(inFunction, inMethod, true, variables, functions)));
expectedType(SymbolType.PARENT_CLOSE);
break;
case UNLOADMOVIE:
case UNLOADMOVIENUM:
SymbolType unloadType = s.type;