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.
List of issues#2170 Cannot find class within same package
Author: ReactX
Date created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: AS3
State: new
> What steps will reproduce the problem?
Simply by running my program it could not find a class at the type level, within the same
package
> What is the expected output? What do you see instead?
private static var _popupRelocateMe:PopupRelocateMe;
It cannot find this class as a type even though it is defined within the same package:
package com.monsters.maproom_advanced
The function declaration looks like so:
public class PopupRelocateMe extends PopupRelocateMe_CLIP {}
I have tried specifying the entire package path as the type, still it cannot recognize it.
I have attached the SWF below. Files with the problem:
MapRoom.as -> defines PopupRelocateMe as a type, but cannot recognize it within JPEXS
> What version of the product are you using? Is it "nightly build"? Which operating system
do you have?
20.1 Windows
> Please provide any additional information below. If the problem is related to a SWF
file, attach it here, otherwise we can't help you.
30-12-23-stable-newest.swf (2,673 KiB)
Observation: It seems to recognize the class if it is marked with the 'internal'
signature, however, editing a file in JPEXS which has this signature, causes it to not be
able to save the file, giving an error which states:
CURLEY_CLOSE expected but INTERNAL found
Update: Removing the public keyword seems to work / make it visible, and automatically
switches the class to be internal. I'm not sure if this is a long term solution however.
What do you mean by "it could not find a class at the type level, within the same
package" ?
Is there any error message?
Ad "Simply by running my program"
How do you run it? If I run the file you attached in Flash player content debugger,
it asks for email and password but also says that it cannot connect to the server.
Can I reproduce it somehow?
I also tried to edit actionscript (and save without changes) classes
com.monsters.maproom_advanced.MapRoom and PopupRelocateMe in the same package, and it
saved without a problem.
Can you tell me exact steps that I can do to have the same problem?
@JPEXS - so basically here are the steps to reproduce:
1. If you edit a file where the function signature has the 'internal' keyword, and then
try to save the file - you will receive that error that I mentioned above, stopping you
from saving the file at all.
2. The temporary fix to this is: manually removing the internal keyword and saving the
file. Funnily enough however, JPEXS will then explicitly set it back to be internal on its
own.