Link to home
Start Free TrialLog in
Avatar of KodiakASP
KodiakASP

asked on

Moving SWF to AIR

I am currently using Flash to create an Actionscript 2 Projector (EXE) File.

I want to use AIR. My EXE is 4.8 MB and growing. When I convert to AIR it drops to ~200KB (WowWowWeWa!).

That's my only motivation; size.

Here are my concerns ; 3 questions.

#1. Reading Local Files : I use the projector to open a local file (C:\msconfig.txt) and load variables. Can I do this in AIR?
#2. Fullscreening : I use the projector to fullscreen (I know this works with AIR but how do I do it with Actionscript 2.0 I can't find anything that works)
#3. Updating : I can update my EXE by over-writing it and it works. Do I need to send a new package each time for the user to install? Is there any auto-update function or process with AIR? Is there any silent update process so the user wouldn't have to do anything whether updating AIR or my app?

Thanks in Advance
ASKER CERTIFIED SOLUTION
Avatar of moagrius
moagrius
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
#1.  Yes...

#2.  No, AIR requires you to use AS3...  You cannot use AS2 with it...

#3.  I don't think you can update the app silently, but you can definitely make an app to check the server and update if necessary...

CyanBlue
Avatar of KodiakASP
KodiakASP

ASKER


1. Thanks
2. Keep going.... All my AS2 seems to run fine in AIR. I mean the whole thing works it just won't full screen.
3. I would assume there is AS2?
No It's the projector element. The SWF is only 97 KB :) uncompressed.
When I convert it to EXE it is 4.78 MB
When I convert it to AIR it is 200 KB :)
CyanBlue "...AIR requires you to use AS3"

I don't think so... Under publish settings in Flash CS4 my AS2 application goes RIGHT INTO an Air installer package and runs just fine... it just won't full screen haha.
check the mike chambers blog post i linked - you can port apps to AIR, but you're really just kind of wrapping them - and you won't have direct access to a lot of the AIR-specific API
"No It's the projector element. The SWF is only 97 KB :) uncompressed.

When I convert it to EXE it is 4.78 MB
When I convert it to AIR it is 200 KB :)"

gotcha - that makes more sense : )