A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Not a compile-time constant (external api)

  1. #1
    Senior Member
    Join Date
    Jul 2002

    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:


    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!

  2. #2
    Senior Member
    Join Date
    Nov 2001
    var appnextExtension:AppnextASExtension = null;

    Should be

    var appnextExtension:AppnextASExtension;


    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

Click Here to Expand Forum to Full Width

HTML5 Development Center