Hey guys,
I have an error trying to implement an api from AppNext…
Here’s the very simple 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,