Skip to main content
Known Participant
June 18, 2011
Question

Conditional compile because using flash.filesystem.File

  • June 18, 2011
  • 1 reply
  • 574 views

Hi,

im using a CS 5.5 Flash Professional Project to build a combined kiosk / iPad App. Everythings worked fine until I used flash.filesystem.File to cache some files on the iPad app.

Now when I try to run the kiosk version I get problems because of the import of flash.filesystem.File.

Any idea on how to deal with this? I thought about "conditional imports" or something a like so that I can compile the kiosk without flash.filesystems.File.

Also I heard it's possible to compile the Flash Professional project as "AIR swf" which has support for flash.filesystem.File - but I need a simple swf File to use it with Zinc.

Right now I depend on the .fla File because we have a lot of assets in there. Any recommendations?

Best,

Cedric

This topic has been closed for replies.

1 reply

Colin Holgate
Inspiring
June 19, 2011

Are you using Zinc just to have a launchable application that can be full screen? If that's the case, could you use AIR in its full screen mode? See this article:

http://cookbooks.adobe.com/post_Using_the_FullScreen_functionality_in_AIR-8004.html

Cedmo55Author
Known Participant
June 19, 2011

Hi Colin,

need Zinc for other reasons. But thanks anyway.

This is my solution now:

CONFIG::IOSBUILD { // iOS ONLY

     ... some code here

}

And in Flash Professional under Action Script settings I added "IOSBUILD" which I can switch to true / false