Skip to main content
December 12, 2011
Answered

iOS ANE assets missing

  • December 12, 2011
  • 1 reply
  • 879 views

Hi,

I've been working on a native extension for iOS that exposes the MapKit framework to flash (show map on-stage, center map on users location and add annotations (markers) to the map which return events to flash when selected).

I'm making custom annotations ala http://gigaom.com/apple/iphone-dev-sessions-finding-your-way-with-mapkit/ (a custom 'thumb-tack'-png).

Everything works fine except for the fact that the png's don't show up once it's running in flash.

The annotations are there, when I tap where they're supposed to be the tooltip shows up, events are dispatched, the whole sha-bang, only the thumb-tacks aren't displayed...

Anyone know the correct way to embed assets in an ane file? (My first thought is they should be embedded in the .a file since it's the native code that's accessing them, but obviously that doesn't seem to work).

Update: Hmm, seems static libraries aren't supposed to store resources... soooo... how do I get my static lib to use the png in flash then?

Regards,

Nico

This topic has been closed for replies.
Correct answer

I just solved my own issue, I had to embed the image in my final flash-builder project which bundles it in the ipa file.

1 reply

Participating Frequently
December 12, 2011

I have next to no experience with native extensions, but I'll just throw this out there: Perhaps you could just store the resources on a web server and pull them off when you need them?

Correct answer
December 12, 2011

I just solved my own issue, I had to embed the image in my final flash-builder project which bundles it in the ipa file.

December 13, 2011

Hi Brandov:

You can package assets in the ane creation process. you can add any folders/files after mentioning the library.swf in ADT command.

on iOS the ANE Resources are found in ApplicationDirectory.