3 Replies Latest reply: Feb 12, 2014 11:28 PM by Anton Azarov RSS

    Adobe Native Extensions Xcode 5?

    ThijsInteractionDesign Community Member

      Dear all,

       

      I have a challenge. I have developed an Xcode library which I would like to make available for people who use Flash, mainly in order to create a nice interface since Flash is WAY better for creating interfaces than Xcode. Therefore I dived into creating an Adobe Native Extension as explained in this quite nice tutorial on the Adobe website. I came across many issues on the way but in the end I succeeded in creating a .ANE file which could be used in Flash. Flash clearly recognizes the names of the classes etc that are defined in the actionscript library, but as soon as it runs the scripts I get an error saying "Could not find the class <classname>". I considered me to be the most likely prolem so I decided to take a step back and build the code that is in the .zip file of the tutorial (so my hands did not touch the code other than compiling it) strangely I get the same errors again.

       

      There are 3 most likely things that could be at the essence of this:

       

      - The tutorial was written quite some time ago, by now we have Xcode 5 which might be different from the version used when writing the tutorial. Specificially it could be that some of the build settings are not compatible with adobe AIR. I am curious whether people have experience with this.

       

      *- I make a mistake in importing the library into my flash code.  I saw other posts on these forums where people have been making such mistakes. Some variations I tried are importing the .ANE directly (which another guy here also tried and reported that this would not work, strange but ok..) then I did it with the SWC and I also made the traditional mistake at first of not linking it externally. But after having solved that as well I am stuck. Maybe there is something else I should be aware of?

       

      - My Flash version and AIR versions are more modern than the ones in which this code was written, could it be that there are depreciation issues in the newer versions?

       

      * An interesting detail though is that I do manage to include the .ANE file of the original build which is also included in the .zip. Therefore I think it is unlikely that I make a mistake in importing the libraries, but nevertheless these things can never be truly ruled out.

       

      If it helps I can share the coding I used but as it is the tutorial code I do not expect that there are true mistakes in this.

       

      Do you have any experience in this? Or could you reproduce my error(or not and thus solving it?) Any help is appreciated!