Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

-inline Argument Causes RTE

Explorer ,
Jun 25, 2013 Jun 25, 2013

If I add the -inline compiler option to my game library project, it builds fine, but when running the game, I get run time errors:

[Fault] exception, information=ReferenceError: Error #1069: Property com.pblabs.engine:PBE::_main not found on class com.pblabs.engine.PBE and there is no default value.

_main is a private static sprite on class PBE which is used when I access a public static getter like this: PBE.mainStage. I can confirm when this error occurs that _main and _main.stage are populated. I haven't added any [Inline] tags to my poject - just the compiler option and I'm using AIR 3.8 Beta.

Can someone please help me understand why this is happening? Should I submit a bug or is this normal behaviour?

TOPICS
ActionScript
492
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Jun 25, 2013 Jun 25, 2013

lol - immediately after writing this, I figured this problem out on a hunch. Turns out you cannot use the inline argument on a SWC without also using the inline argument on the SWF - even if your SWF doesn't need it, you must add it if any of your SWC's have the inline argument.

Translate
Explorer ,
Jun 25, 2013 Jun 25, 2013

lol - immediately after writing this, I figured this problem out on a hunch. Turns out you cannot use the inline argument on a SWC without also using the inline argument on the SWF - even if your SWF doesn't need it, you must add it if any of your SWC's have the inline argument.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 25, 2013 Jun 25, 2013
LATEST

Actually, once I ran my build with the command line compiler, I get this output:

     [java] Warning: The function XXX could not be inlined, as no source could be found. Inlining functions defined in a SWC is not supported.

any ideas when support for this will be added?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines