Copy link to clipboard
Copied
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?
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now