1 Reply Latest reply: Nov 29, 2012 7:59 AM by sinious RSS

    Nook shop details API

    bryan6721 Community Member

      Nook reqiuries the use of their shop details API to reference other apps from the published app. Their documentation is for Corona, Eclipse and Flash Builder. I'm using Flash CS5 and can't find any instructions how to implement this API in Flash CS5.

       

      I have tried to add the shop details API provided by Nook in the Flash/Preferences/ActionScript/ActionScript 3.0 settings/ but Flash will not recognize the methods when used in the project.

        • 1. Re: Nook shop details API
          sinious MVP

          If you want to use those classes in every project then add it in like that but I'd suggest doing it project by project as not all projects will require that SDK. You do that in the publish properties in AS3.0 settings instead:

           

          addclass.jpg

           

          As long as they provided a SWC, full .as or intrinsic classes you should pick up on code hinting. There's no shortage of posts about code hinting being a bit iffy or just outright not working in the internal Flash Pro AS editor though.

           

          You can (and should) try an external editor like FlashDevelop. I know it's not ideal to get used to a whole new editor but it's highly regarded in the community and almost as good as Flash Builder on code completion and prediction. If you start a FD project and put the source in the same folder the code hinting will work better and IMHO faster. It integrates with Flash Pro so you can run the project directly from FD and FD will capture output traces.

           

          Alternatively you could just use FDT and eclipse (as close to FlashBuilder as you'll get) which is free and you mentioned your tutorial supports eclipse. FlashBuilder is built on eclipse.

           

          Though FD is just good to have around for editing other types of documents (XML, text, etc) with encoding support.

           

          Bottom line, the built-in AS editor in Flash Pro is notorious for code completion issues of all sorts, although CS5.5 is a bit better (I can't speak for CS6).