I've written a swc lib using flash pro cs6. Among others the swc contains "LPChat" class:
package {
import com.adobe.serialization.json.JSON;
import flash.display.Sprite;
import flash.net.URLRequestHeader;
import flash.utils.setInterval;
public class LPChat extends Sprite {
private var _sessionKey:String;
private var chatEvents:ChatEvents;
private var links:Object;
private var info:Object;
public function LPChat(chatObj:Object) {
.....
}
}
when included in a flash pro projects all works fine, but when included in a flex project I get the following error:
Error #1063: Argument count mismatch on LPChat(). Expected 0, got 1.
which is strange because the constructor does expect 1 and not 0 arguments. I can see the same behavior inside the flash builder IDEA:
any help would be appreciated
It seems that the default package caused the problem. when I moved it to com.lp all issues where solved.