Skip navigation
bryan6721
Currently Being Moderated

Nook shop details API

Nov 29, 2012 7:24 AM

Tags: #air #as3 #actionscript #flash_cs5 #api #shop #details #nook

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.

 
Replies
  • Currently Being Moderated
    Nov 29, 2012 7:59 AM   in reply to bryan6721

    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).

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points