If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler
NEW : We have got a new blog where we post some interesting SWF internals info.

#933 Error Upon Declaring Arrays
Author:
Anthony973

Date created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: AS3Direct Editation
State: closed 

Hi!
_____________________________________________
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
> What steps will reproduce the problem?
I got an array to which I assign a value as I declare it.
«
line 16: private static const directions:Object = {
line 17: 0:[0,0,150,0.2],
[more of this here]
};
»
I then try to make a change and hit the save button.
_____________________________________________
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
> What is the expected output? What do you see instead?
There is no problem with this code, it does what it's supposed to when I run an SWF
Player.
Still, I get this error:
«ERROR: IDENTIFIER or STRING expected but INTEGER found on line 17»
_____________________________________________
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
> What version of the product are you using? On what operating system?
FFD v.5.3.0 nightly build 649
_____________________________________________
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
> Please provide any additional information below.
The very same thing happens in other files that also have arrays.
While waiting for a fix, is there any way to stop all error messages from popping up?
Thanks!
(Operating system : Windows 7 x64 Premium)
In nightly 997, object literals should have numbers as keys enabled.
State: new→upgraded
I close this issue due to inactivity. Please create new issue if problem persists.
State: upgraded→closed