0

I have a weird problem with Flex and Flash Builder 4.6 captive build.

I'm doing an Windows AIR App, and it all works fine, both as an AIR app and form the IDE. However when I make it into a Captive build, its like anything that references Capabilities, just doesn't get compiled in.

No errors or anything. Thus all my window centre, docking functionality just doesn't exist.

Even this line, in an attempt to debug, doesn't fire

mx.controls.Alert.show(Capabilities.screenResolutionX.toString());

If I do an Alert.show('here') on the same line, which is in the init function called from creationComplete it shows.

4

1 回答 1

0

我弄清楚发生了什么,但我不明白。我会将其发布为答案,因为它是答案,但是如果有人想将答案发布为原因,我很乐意接受他们的答案。

这是 init 方法中的第一段代码

// Force Start Program on login.
if (!Capabilities.isDebugger)
{
    NativeApplication.nativeApplication.startAtLogin = true;
}

执行此代码后没有其他内容,这让我认为它出现错误并退出该方法。如果我删除这段代码,一切都会好起来的。但为什么?

于 2012-04-30T11:26:26.087 回答