Skip to main content
Participant
November 7, 2011
Question

Re: Native alert on ios

  • November 7, 2011
  • 1 reply
  • 2009 views

I am a college instructor and I'm trying the best I can to prepare for my Spring semester. I appreciate any help in seeing the path to the inclusion of Native Extensions (NE) in a Flash Professional 5.5 project using Air for iOS.

There is no Flex / Flash Builder installed at school and I teach non-programmers...  what I am looking for is a NE example  for Flash Pro 5.5. The build out from Flash Pro 5.5 -> iphone is straight forward and I have that ready for the students.

When I visit http://help.adobe.com/en_US/air/build/WS597e5dadb9cc1e0253f7d2fc1311b491071-8000.html#WS08cc5e527b0868243ea2ffcd1314dff873a-7ffc the info refers to  Flash CS5 (not 5.5) and I was wondering if the integration and packaging is "exactly" the same for Flash Pro CS5.5? Or does Flash CS 5.5 offer any advantage over CS5 for this inclusion?

I found (I think) a variant in the LINKAGE info to SWC on the above link's description of part of the process (unless I read the steps wrong)... so now I have to ask after failing at the trial-and-error way.  Does the "Include Files dialog" for Air for iOS settings play any role in getting an NE to work/be included in an iOS Flash Professional CS 5.5 project? Or is it still an external packaging path needed for NE? (Sorry if this isn't a brilliant question, I haven't found any clear documentation of the usage of the Included Files area other than for Default.png (and I guess external swf files without code???).

It is great that NEs can be included and it already reads like a few good ways have been made.Thank you with any information to link or other post that you can provide.

This topic has been closed for replies.

1 reply

Participating Frequently
November 8, 2011

strentzler,

In the context of your first question, Flash CS5 and Flash CS 5.5 are equivalent. For both, using an ANE requires that you use the AIR 3 SDK, which itself requires several manual steps to get working with Flash Professional.

You cannot currently create an app with Flash CS 5 or 5.5 that uses native extensions (except for AIR for TV). You can create the SWF files, but the final export to the application package (.ipa file) can only be done using the command-line ADT utility that is part of the AIR SDK.

Right now, I'd say the process is requires a fair degree of technical saviness. Perhaps it might be too much for your non-programmers at this point. I expect this to change in the next release of Flash Professional, when it should just be a matter of selecting the ANE you are using in a dialog.

Participant
November 8, 2011

Thanks for the response, appreciated. Is the link in original post the best for documenting the process of packaging ADT for native extensions or is there another tutorial floating out there somewhere? Asking to see if I can point students to a link or I have to  to dive in and do screen shot after screen shot.

Participating Frequently
November 8, 2011

I don't recall seeing a tutorial that specifically uses Flash Professional to compile an app that uses an extension.

Of course, once you have your SWF files compiled using Flash Pro, it is a matter of using the command line tools to build the application package. The only difference between making an application that uses an extension and one that does not is a single parameter (-extdir) on the command line. Unfortunately, the step to the command line seems to make even experienced programmers weak at the knees.