I’m playing around with Flash packager for iPad and iPhone and it seems like there might be some restrictions on accessing files bundled with the application and delivered within the application directory.
During some video tests I delivered one h.264 video within the application directory and tried starting it using this code invoked on a MouseDown event:
var file : File = File.applicationDirectory.resolvePath( "video.mp4" ); navigateToURL( new URLRequest( file.url ) );
But nothing happened. Really nothing. No thrown error. It’s like I simply didn’t call navigateToUrl. Of course everything works fine with remote URLs so I’m quite sure I didn’t make a mistake.
After several different approaches I figured out I couldn’t access any of my files within the app:/ directory. Regardless of the filetype. Well, at least it didn’t work on my devices: iPhone with iOS 4.1 and iPad with iOS 3.2.2.
There’s a discussion about that the Adobe forums: http://forums.adobe.com/message/2979185
