-
Not a compile-time constant (external api)
Hey guys,
I have an error trying to implement an api from AppNext...
Here's the very simple code:
Code:
Code:
public class AppNext extends MovieClip
{
var appnextExtension:AppnextASExtension = null;
public function AppNext()
{
appnextExtension = new AppnextASExtension();
appnextExtension.init("5908545098APPIDEXAMPLE");//Set your AppID
appnextExtension.showPopup(); //showtheinterstitial
}
And this is the error I get:
1046: Type was not found or was not a compile-time constant: AppnextASExtension.
It seems that there's an import missing for AppnextASExtension...
It should be something like: import.com.AppnextASExtension <-- right? but with the correct one, of course. Makes sense?
Or maybe with the:
var appnextExtension:AppnextASExtension = null;
They are trying to skip that error, but is still popping up... (?)
Thanks in advance!
Cheers,
-
var appnextExtension:AppnextASExtension = null;
Should be
var appnextExtension:AppnextASExtension;
Works.
You probably have to install an extension. They'll give you file, should be able to double click it and flash will add the extension. The extension is the appnext code and flash will include it automatically.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|