[Flashcoders] Air Windows installed app

12 views
Skip to first unread message

natalia Vikhtinskaya

unread,
Feb 17, 2014, 6:33:26 AM2/17/14
to Flash Coders List
Hi to all.
I solved all problems with xml editor in flash. I created AIR app that
loads and saves xml after editing. I created Windows installer app. It
works well on XP and Win 8. But when the user installs it on his pc (I
think he has no AIR program on it) app plays but not saves files . What do
you think is possible problem?
Thank you in advance.
_______________________________________________
Flashcoders mailing list
Flash...@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Henrik Andersson

unread,
Feb 17, 2014, 7:58:29 AM2/17/14
to Flash Coders List
natalia Vikhtinskaya skriver:
Code please.

---
Detta epostmeddelande innehåller inget virus eller annan skadlig kod för avast! antivirus är aktivt.
http://www.avast.com

da...@eyebright.com

unread,
Feb 18, 2014, 4:02:09 AM2/18/14
to flash...@chattyfig.figleaf.com
Does it read files, but not write? Do you have the
'WRITE_EXTERNAL_STORAGE' permission (in the AIR... settings) set? Can you
add some tracing to see what directory it's trying to write to?

I'd think the app wouldn't run at all if AIR isn't installed… did you
embed the AIR runtime?


> ----------------------------------------------------------------------

David Benman

unread,
Feb 20, 2014, 7:26:02 AM2/20/14
to Flash Coders List
Where are you saving the files to? You can't write to the application's folder when deployed but might work when you are testing on your machine. You need to be writing to a user folder, document folder, etc. anywhere but a subfolder of the Programs folder.
David Benman
Interactive Developer
da...@dbenman.com
http://www.dbenman.com
(315) 637-8487 (home office)

natalia Vikhtinskaya

unread,
Feb 23, 2014, 1:28:38 AM2/23/14
to Flash Coders List
Thank you for help.
I try to describe situation better. When I publish app as Windows
installer the user can take my exe file and install app on his pc. On
desktop he has icon after clicking on it he runs app. It plays well but
function "write" nothing do. I use

newFileStream.openAsync (appFile, FileMode.WRITE);
newFileStream.writeUTFBytes(xmlSets);
newFileStream.close ();

Yes, the user does not have Air and function that works only in Air does
not work for him. The same installation on my pc works well.
Okay. Next I created Application with runtime embedded. I gave the user
folder with all files that was created by Flash. He puts this folder on his
pc and run exe file. This works well. Everything writes well. But he wants
to have installation process that allow him to install this app as usual
new program. This second way does not give him that. Maybe I can combine
these two ways somehow? This is the first problem.
And additional question. Exe file shows information "Unknown publisher".
How I can change that?

Thank you for any help. Not much places in net now where we can find help
for Flash questions.

Peter Ginneberge

unread,
Feb 23, 2014, 7:42:13 AM2/23/14
to Flash Coders List
You can apply for a license to (re)distribute the Air runtime and then package
it with your application.
http://help.adobe.com/en_US/air/redist/WS485a42d56cd19641-70d979a8124ef20a34b-8000.html

Or you can include a captive copy of the Air runtime with your application.
http://www.adobe.com/devnet/air/articles/air3-install-and-deployment-options.html

The first option will install the Air runtime with your application, as if the
user installed it himself, so it's separated from your application, meaning
both your application and the Air Runtime can be uninstalled separately.

The second options installs both as a bundle. When a user uninstalls your app,
the runtime gets uninstalled with it.

regards,
Peter

natalia Vikhtinskaya

unread,
Feb 24, 2014, 2:02:50 AM2/24/14
to Flash Coders List
Not sure I understand how I can use this information in Flash Cs6. I
created app in this program as Air 3.2 for Desktop. I have only two options
- Windows Installer and App with runtime embedded.

Peter Ginneberge

unread,
Feb 24, 2014, 7:02:52 AM2/24/14
to Flash Coders List
Easiest way is probably the "app with runtime embedded" option.
And if that is similar to how it works in Flash Builder (Flex), you'll then
need installer software to create a custom executable.

As stated in the article:
<quote>
The resulting set of files is a complete AIR application, including a captive
copy of the AIR runtime. It can then be packaged as an installer using several
different approaches.
</quote>

The different approaches are further explained in the article.

On 24/02/2014 8:02, natalia Vikhtinskaya wrote:
> Not sure I understand how I can use this information in Flash Cs6. I
> created app in this program as Air 3.2 for Desktop. I have only two options
> - Windows Installer and App with runtime embedded.
>
>
> 2014-02-23 16:42 GMT+04:00 Peter Ginneberge <p.ginn...@telenet.be>:
>
>> You can apply for a license to (re)distribute the Air runtime and then
>> package it with your application.
>> http://help.adobe.com/en_US/air/redist/WS485a42d56cd19641-
>> 70d979a8124ef20a34b-8000.html
>>
>> Or you can include a captive copy of the Air runtime with your application.
>> http://www.adobe.com/devnet/air/articles/air3-install-and-
>> deployment-options.html
>>
>> The first option will install the Air runtime with your application, as if
>> the user installed it himself, so it's separated from your application,
>> meaning both your application and the Air Runtime can be uninstalled
>> separately.
>>
>> The second options installs both as a bundle. When a user uninstalls your
>> app, the runtime gets uninstalled with it.
>>
>> regards,
>> Peter

erik mattheis

unread,
Feb 24, 2014, 3:35:07 PM2/24/14
to Flash Coders List
I'm unsure the status of this or if someone has suggested any of the
following:

Are you saying the app doesn't work when using the installer but works as
expected when copying the app folder somewhere outside of your clients
"Program Files" folder? This will fail with default Windows settings as you
need elevated permissions to change files withing the Program Files
directory.

If this is the case, look into writing the file to the app storage
directory
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.html#applicationStorageDirectoryor
the Documents directory
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.html#documentsDirectory

As to "Unknown Publisher" you need to buy and include a security
certificate in the publish settings:
http://www.adobe.com/devnet/air/articles/packaging-air-apps-desktop.html#articlecontentAdobe_numberedheader
--
Erik Mattheis

natalia Vikhtinskaya

unread,
Mar 1, 2014, 5:09:09 AM3/1/14
to Flash Coders List
Thank you all for the help. Finally I understand where is problem. I
created App with runtime embedded. Then I used Advanced Installer
http://www.advancedinstaller.com/ and created installer package. By
default it installs my app to Program file folder. The App runs but nothing
write on the disk. When the user choose any own folder on the disk for
example c:\myApp then the app writes information on the disk without
problem. Why that I don't know but unfortunately the customer wants
installation process be without choosing other folders by users. It seems
to him very complex. The user should just say "ok" what Installation
process offer. What can I do? I tried to find way in Advanced Installer
to change default folder but did not find that possible. Do you have any
advice?

Hans Wichman

unread,
Mar 1, 2014, 5:55:25 AM3/1/14
to Flash Coders List
Have your app write files into the users document area instead of a
subfolder of the app which will be in the Program Files folder and under
restrictions.
Part of it might be solved by instructing advanced installer to enforce
the user to have administrative permissions.

best
Hans

natalia Vikhtinskaya

unread,
Mar 1, 2014, 6:19:03 AM3/1/14
to Flash Coders List
Installer put app to c\programfiles\companyname\folder\folderwithapp
Installer do the job and copy files.The App when it placed in Program
files folder with subfolder with xml fil does not write it when I change
xml and save it in app. Everythng works if app placed not in Programfile
folder.

natalia Vikhtinskaya

unread,
Mar 1, 2014, 7:29:55 AM3/1/14
to Flash Coders List
This is code in app
var appDirectory:File =
File.applicationDirectory;//File.applicationStorageDirectory
var fileString:String = appDirectory.nativePath;
var appFile:File = File.documentsDirectory;
var
setsFile:String=fileString+File.separator+"data"+File.separator+"sets.xml"

function initLoadXML():void{

var XMLfile:File = File.applicationDirectory.resolvePath(setsFile);

var myXMLLoader:URLLoader = new URLLoader(new URLRequest(XMLfile.url));

myXMLLoader.addEventListener(Event.COMPLETE, setsLoaded);
}
function saveXML():void{
var newFileStream:FileStream = new FileStream();
appFile =
appFile.resolvePath(fileString+File.separator+"data"+File.separator+"sets.xml");

newFileStream.openAsync (appFile, FileMode.WRITE);
newFileStream.writeUTFBytes(xmlSets);
newFileStream.close ();
}
Maybe here is something wrong with path or I store data in a wrong place.I
have xml in the folder data in the same folder as exe file with app.

Henrik Andersson

unread,
Mar 1, 2014, 7:58:04 AM3/1/14
to Flash Coders List
natalia Vikhtinskaya skriver:
> This is code in app
> var appDirectory:File =
> File.applicationDirectory;//File.applicationStorageDirectory
> var fileString:String = appDirectory.nativePath;
> var appFile:File = File.documentsDirectory;
> var
> setsFile:String=fileString+File.separator+"data"+File.separator+"sets.xml"
>
> function initLoadXML():void{
>
> var XMLfile:File = File.applicationDirectory.resolvePath(setsFile);
>
> var myXMLLoader:URLLoader = new URLLoader(new URLRequest(XMLfile.url));
>
> myXMLLoader.addEventListener(Event.COMPLETE, setsLoaded);
> }
> function saveXML():void{
> var newFileStream:FileStream = new FileStream();
> appFile =
> appFile.resolvePath(fileString+File.separator+"data"+File.separator+"sets.xml");
>
> newFileStream.openAsync (appFile, FileMode.WRITE);
> newFileStream.writeUTFBytes(xmlSets);
> newFileStream.close ();
> }
> Maybe here is something wrong with path or I store data in a wrong place.I
> have xml in the folder data in the same folder as exe file with app.
>

Yes, there is something wrong: you are violating all the guidelines
about correct filesystem use.

Ask the user where to save data when reasonable, and default to a sane
location.

And never ever attempt to write to a location reserved for program
files, only installers are allowed to touch those folders.


---
Detta epostmeddelande innehåller inget virus eller annan skadlig kod för avast! antivirus är aktivt.
http://www.avast.com


natalia Vikhtinskaya

unread,
Mar 1, 2014, 8:44:28 AM3/1/14
to Flash Coders List
Ok, I understand. Where I must save my data?I have them in the same folder
as fla file.

erik mattheis

unread,
Mar 1, 2014, 12:13:58 PM3/1/14
to Flash Coders List
In your code, change every File.applicationDirectory to File.
applicationStorageDirectory






On Sat, Mar 1, 2014 at 7:44 AM, natalia Vikhtinskaya
<natav...@gmail.com>wrote:
--
Erik Mattheis

David Cohn

unread,
Mar 2, 2014, 12:51:18 AM3/2/14
to flash...@chattyfig.figleaf.com
Natalia,

In saveXML, try:
appFile = File.applicationStorageDirectory.resolvePath("data/sets.xml");

Several quibbles with the code, but this should work...

HTH,
--Dave

John R. Sweeney Jr.

unread,
Mar 4, 2014, 12:21:09 PM3/4/14
to Flash Coders List
Howdy,

I have a client that wants to bring their touchscreen app over to the iPad. It has several videos that are mp4, but I don't know the compression that was used. Is H.264 the only think iPad's like when played back in a Flash app?


Thanks,
John


John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169

John R. Sweeney Jr.

unread,
Mar 12, 2014, 9:01:52 PM3/12/14
to Flash Coders List
I hear crickets. :)

Can anyone suggest a link or site to help me with playing video on a iPad from inside of a Flash AIR app? StageDirectVideo works great, but resides under the display list. I need video on top of a background graphic. Everything I've tried does not play the video.

Thanks,

John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169




On Mar 4, 2014, at 11:21 AM, John R. Sweeney Jr. <jr.sw...@comcast.net> wrote:

> Howdy,
>
> I have a client that wants to bring their touchscreen app over to the iPad. It has several videos that are mp4, but I don't know the compression that was used. Is H.264 the only think iPad's like when played back in a Flash app?


Rick

unread,
Mar 12, 2014, 10:44:36 PM3/12/14
to Flash Coders List
Yup, video plays behind the display list only, under the stage, because that is where the gpu can process it rather than the cpu. So, I think the workaround is to have the "background" graphic as a frame, which is in actuality above the video with a transparent center, but at least preserves the appearance of background graphic consistent with the style of your app.
Take what I say here with a grain of salt as I've only really dealt with video in an AIR app in the real world for android, so perhaps someone else can weigh in with more hands on knowledge and iOS experience. I read up on it a while back for an iOS AIR app that ended up not including the video component.

:: Richard Hassen:: Graphic and Interactive Designer:: rickh...@hotmail.com:: cell 415.450.1199

> Subject: Re: [Flashcoders] Video on IOS
> From: jr.sw...@comcast.net
> Date: Wed, 12 Mar 2014 20:01:52 -0500
> To: flash...@chattyfig.figleaf.com

John R. Sweeney Jr.

unread,
Mar 13, 2014, 12:20:12 AM3/13/14
to Flash Coders List
Ironically, that is what I tried about an hour ago. No other video approach was working, so I cut a hole in the background graphic and made it a .png. Then I saw the video. Though that would be a work around.

Does anyone else have an suggestion. Is that the ONLY this the only way to play video now on the iPad in a Flash app?

It seems a bit absurd…

Thanks,
John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169




On Mar 12, 2014, at 9:44 PM, Rick <rickh...@hotmail.com> wrote:

> Yup, video plays behind the display list only, under the stage, because that is where the gpu can process it rather than the cpu. So, I think the workaround is to have the "background" graphic as a frame, which is in actuality above the video with a transparent center, but at least preserves the appearance of background graphic consistent with the style of your app.
> Take what I say here with a grain of salt as I've only really dealt with video in an AIR app in the real world for android, so perhaps someone else can weigh in with more hands on knowledge and iOS experience. I read up on it a while back for an iOS AIR app that ended up not including the video component.


Paul A.

unread,
Mar 13, 2014, 4:32:30 AM3/13/14
to flash...@chattyfig.figleaf.com
I have made a few IOS projects using video and not really found much of
an issue, though encoding of the video has been critical (to avoid
skipping frames)- originally targeting iPad 1's.

The video does play over background graphics and it seems to play flvs.

Rendering options are set to auto, resolution standard.

Unfortunately I don't remember the encoding settings that I used to
generate the flvs.

Not sure if that is helpful or not.

Paul

Cédric Muller

unread,
Mar 13, 2014, 5:21:00 AM3/13/14
to Flash Coders List
John, are you using StageVideo ? If positive, then that’s the reason why Flash content will _always_ appear on top of the Stage.
(I may be offroads, as .. always)

hth,
Cedric

John R. Sweeney Jr.

unread,
Mar 13, 2014, 10:33:33 AM3/13/14
to Flash Coders List
I know that FLV's work, but these are all MP4's and the play as a standalone and using StageVideo, but I cannot find a way to play them with normal video playback over graphics in the display list.

Thanks,

John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169




On Mar 13, 2014, at 3:32 AM, Paul A. <pa...@ipauland.com> wrote:

> The video does play over background graphics and it seems to play flvs.


John R. Sweeney Jr.

unread,
Mar 13, 2014, 10:30:09 AM3/13/14
to Flash Coders List
StageVideo is the only way I've been able to get the video to play on a iPad2. But it plays under everything. It is not part of the display list, its under the display list. The other problem is that in authoring the video doesn't play on my MAC only after I import it to the iPad.

When I use the normal Video class, my video plays on top of my background graphic and in authoring, but doesn't play on the iPad2.

I'm looking for a example of the code approach to get my videos working on top of the background.

Thanks,

John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169




On Mar 13, 2014, at 4:21 AM, Cédric Muller <flash...@benga.li> wrote:

> John, are you using StageVideo ? If positive, then that’s the reason why Flash content will _always_ appear on top of the Stage.
> (I may be offroads, as .. always)
>
> hth,
> Cedric


Paul A.

unread,
Mar 13, 2014, 10:44:24 AM3/13/14
to Flash Coders List
I just re-encoded the MP4s supplied to me.

All I know is that I'm using the 'standard' video player and playing
video over background content with the display list hierarchy respected.

John R. Sweeney Jr.

unread,
Mar 13, 2014, 10:59:53 AM3/13/14
to Flash Coders List
But they are FLV's , right?



John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169




On Mar 13, 2014, at 9:44 AM, Paul A. <pa...@ipauland.com> wrote:

> I just re-encoded the MP4s supplied to me.
>
> All I know is that I'm using the 'standard' video player and playing video over background content with the display list hierarchy respected.

Paul A.

unread,
Mar 13, 2014, 11:09:13 AM3/13/14
to flash...@chattyfig.figleaf.com
On 13/03/2014 14:59, John R. Sweeney Jr. wrote:
> But they are FLV's , right?
Yes, but they started life as MP4s. I found some video wouldn't work
without recoding.

John R. Sweeney Jr.

unread,
Apr 10, 2014, 11:37:46 AM4/10/14
to Flash Coders List
Howdy all,

My client wants to have about 12 different exe files launched from a single Flash front-end projector and much of their content has same named files, hence I need sub-folders. All of my research indicates that an external .exe file must reside inside of a folder called fscommand and you cannot path down to sub-folders.

Does anyone know of a way to launch .exe files from a Flash projector into a fscommand folder and then into sub-folder?

Example:

fscommand("exec","sub_1/start.exe");
then
fscommand("exec","sub_2/start.exe");

and so on.

Thanks in advance for any help,
John

John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169





erik mattheis

unread,
Apr 10, 2014, 11:52:58 AM4/10/14
to Flash Coders List
Just making sure you know you can do this with the AIR NativeProcess class,
seems like you need it to be a SWF? If so could you lauch a single BAT file
that would in turn launch all the EXEs?
--
Erik Mattheis

tom rhodes

unread,
Apr 10, 2014, 11:56:47 AM4/10/14
to Flash Coders List
make some batch files that launch the files you want from the same dir.

or make a little command line prog that takes the name of the file you want
to launch as a command line argument...

John R. Sweeney Jr.

unread,
Apr 10, 2014, 5:02:50 PM4/10/14
to Flash Coders List
Thanks for the suggestion.

Forgot about batch files. :)

Ran a test and it works just fine.

Much appreciate and have a great weekend,
John

John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169




On Apr 10, 2014, at 10:56 AM, tom rhodes <tom.r...@gmail.com> wrote:

> make some batch files that launch the files you want from the same dir.
>
> or make a little command line prog that takes the name of the file you want
> to launch as a command line argument...

John R. Sweeney Jr.

unread,
Apr 17, 2014, 5:21:44 PM4/17/14
to Flash Coders List
Hi all,

I need to center a Flash projector on both MAC and PC. Not center the stage, but literally, when you double click the app or exe, it opens in the center of the monitor.

Any suggestions? They would be greatly appreciated.

Thanks,
John

John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169




On Apr 10, 2014, at 10:56 AM, tom rhodes <tom.r...@gmail.com> wrote:

> make some batch files that launch the files you want from the same dir.
>
> or make a little command line prog that takes the name of the file you want
> to launch as a command line argument...

Eric E Dolecki

unread,
Apr 17, 2014, 5:55:36 PM4/17/14
to Flash Coders List
Use AIR and u can do that

Eric

John R. Sweeney Jr.

unread,
Apr 17, 2014, 6:03:07 PM4/17/14
to Flash Coders List
Yeah, I know AIR can do it, but the client wants this to run off of a CD. They don't want the users to have to install anything to their HD.

Appreciate the suggestion, but I'm stuck figuring out what to do with the projector.

Thanks,
John

John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169




On Apr 17, 2014, at 4:55 PM, Eric E Dolecki <edol...@gmail.com> wrote:

> Use AIR and u can do that
>
> Eric


lmarshall

unread,
Apr 18, 2014, 2:04:20 AM4/18/14
to Flash Coders List
I used to use Zinc to wrap swfs for both mac and pc.

http://www.multidmedia.com

Sent from my iPhone

Hans Wichman

unread,
Apr 18, 2014, 2:30:19 AM4/18/14
to Flash Coders List
Hi,

you can build standalone air projectors as well, instead of the .air you
will build an exe that can run of cd. Depends on the target you are using.

best
Hans

Henrik Andersson

unread,
Apr 19, 2014, 11:42:07 AM4/19/14
to Flash Coders List
John R. Sweeney Jr. skriver:
> Hi all,
>
> I need to center a Flash projector on both MAC and PC. Not center the stage, but literally, when you double click the app or exe, it opens in the center of the monitor.
>

Which monitor? Believe it or not, but there are people who have more
than one.


---
Detta epostmeddelande innehåller inget virus eller annan skadlig kod för avast! antivirus är aktivt.
http://www.avast.com


Hans Wichman

unread,
Apr 19, 2014, 11:58:04 AM4/19/14
to Flash Coders List

John R. Sweeney Jr.

unread,
Apr 19, 2014, 3:28:56 PM4/19/14
to Flash Coders List
Thanks. Yes I know that, because all four of my systems have two monitors… :)

I'm centering on the main (or primary) monitor.
John

John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169




On Apr 19, 2014, at 10:42 AM, Henrik Andersson <he...@henke37.cjb.net> wrote:

> Which monitor? Believe it or not, but there are people who have more
> than one.


John R. Sweeney Jr.

unread,
Apr 19, 2014, 3:30:12 PM4/19/14
to Flash Coders List
Thank you for the suggestion. I still hoping for a projector solution, so I don't have to change several external calls through fscommands, already implemented. If I have to change I will.

Have a good day,
John

John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169




On Apr 19, 2014, at 10:58 AM, Hans Wichman <hans.w...@gmail.com> wrote:

> http://forums.adobe.com/message/2094043 ?

John R. Sweeney Jr.

unread,
Apr 23, 2014, 5:25:48 PM4/23/14
to Flash Coders List
Hi all,

Has anyone posted an AIR app in the Play Store/Google? I've got several in the App Store and have my certificate from Verisign, but when I go to upload my .apk file to the Google store it says I need a certificate dated 25 years out. Called Veri-sign and they want another $500 for that type of certificate.

Has anyone done the self-signed certificate and does that scare off buyers from downloading your games/apps?

Thanks,
John

John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169


John R. Sweeney Jr.

unread,
Jun 19, 2014, 4:05:24 PM6/19/14
to Flash Coders List
The group has been quite for awhile. Anyone still here?

I know things are constantly evolving, I’m curious if anyone has found a good tool that will convert a rather complex game from Flash to HTML? I know Adobe has tools to convert timeline animations and graphics and minimal code and Google Swiffy came around when CS4 was out. I’m looking around to see if there is any newer developments in bringing existing Flash AS3 apps to HTML. Even if it’s not one to one, but at least gets me a good start, please through out your thoughts and/or suggestions.

Much appreciated…

Mike Starr

unread,
Jun 19, 2014, 4:13:22 PM6/19/14
to Flash Coders List
John,

Have yough considered writing up some simple pseudocode for us to build
upon?

Merrill, Jason

unread,
Jun 19, 2014, 4:22:51 PM6/19/14
to Flash Coders List
New version of Flash just came out that claims to export to HTML5 Canvas and do Actionscript to Javascript translations. Worth checking out?

https://helpx.adobe.com/flash/how-to/creating-publishing-html5-canvas-document.html


Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning
703.302.9265






-----Original Message-----
From: flashcode...@chattyfig.figleaf.com [mailto:flashcode...@chattyfig.figleaf.com] On Behalf Of John R. Sweeney Jr.
Sent: Thursday, June 19, 2014 4:03 PM
To: Flash Coders List
Subject: [Flashcoders] Flash to HTML

The group has been quite for awhile. Anyone still here?

I know things are constantly evolving, I'm curious if anyone has found a good tool that will convert a rather complex game from Flash to HTML? I know Adobe has tools to convert timeline animations and graphics and minimal code and Google Swiffy came around when CS4 was out. I'm looking around to see if there is any newer developments in bringing existing Flash AS3 apps to HTML. Even if it's not one to one, but at least gets me a good start, please through out your thoughts and/or suggestions.

Much appreciated.

Thanks,
John

John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169


_______________________________________________
Flashcoders mailing list
Flash...@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

----------------------------------------------------------------------
This message, and any attachments, is for the intended recipient(s) only, may contain information that is privileged, confidential and/or proprietary and subject to important terms and conditions available at http://www.bankofamerica.com/emaildisclaimer. If you are not the intended recipient, please delete this message.

John R. Sweeney Jr.

unread,
Jun 19, 2014, 4:25:02 PM6/19/14
to Flash Coders List
Hi Mike,

Not sure what you mean? I have a game that is written in AS3 and deployed via AIR to PC and MAC desktop, iPad’s and Android. Now my client wants to take it online, but I can’t use it as a Flash site, but then IOS and Android tablets won’t be able to access the app. So it will have to go to HTML5/CSS/jQuery. I’m just curious if there are any conversion tools to either automate that process or at least convert most of it and I’ll code the rest.

Thanks,
John

John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169




On Jun 19, 2014, at 3:10 PM, Mike Starr <starr...@gmail.com> wrote:

> John,
>
> Have yough considered writing up some simple pseudocode for us to build
> upon?


John R. Sweeney Jr.

unread,
Jun 19, 2014, 4:34:26 PM6/19/14
to Flash Coders List
Has anyone played with this? Everything I’ve read, timeline animations can get converted and simple code. I have a 5 frame app that has 50 layers, 1000+ library elements and thousands of lines of code that the client now wants to go online for all platforms. What a surprise. ;)

I’ll look into the latest update more closely, but was just wondering of things like Google Swiffy had gotten better or something else had come along. I’ll glad do the research, just wonder if anyone could point me in a direction.

Thanks,
John

John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169




On Jun 19, 2014, at 3:19 PM, Merrill, Jason <jason....@bankofamerica.com> wrote:

> New version of Flash just came out that claims to export to HTML5 Canvas and do Actionscript to Javascript translations. Worth checking out?


James Merrill

unread,
Jun 19, 2014, 4:49:55 PM6/19/14
to Flash Coders List
I would really consider saying no to that request, and suggesting a rebuild
that uses modern web standards. There are a lot of web optimizations that I
would almost guarantee an export wouldn't consider... You'd definitely want
to be lazy loading a lot of those assets so the preloading is reasonable.
Ultimately, do you want to be refactoring and fixing AS3 code that Adobe
will hopefully support in the future, or dealing with loads of Javascript.
It's a tough choice :/
--
James Merrill
toThePixel.com <http://www.toThePixel.com>

Kerry Thompson

unread,
Jun 19, 2014, 5:18:22 PM6/19/14
to Flash Coders List
It doesn't sound that tough a choice to me. Adobe will support Flash for
years, for sure--it still supports Director, with regular Shlockwave
updates. Whether there will be a market for us coders is another question.
I have a job, with a real salary (I had to put the retirement thing on hold
when I found out how much I would have to pay in taxes for IRA withdrawals
and my wife still working), and there seem to be plenty of opportunities
around for the time being, but more and more companies are discontinuing
Flash development.

I agree that the code probably wouldn't be production quality, but I've
found taking somebody's code and optimizing it to be a great way to learn a
new language. And, of course, JavaScript isn't that tough--it's ECMA 5,
while AS3 is ECMA 3. There aren't a lot of surprises in JavaScript for a
seasoned AS programmer.

Cordially,

Kerry Thompson

John R. Sweeney Jr.

unread,
Jun 19, 2014, 5:23:51 PM6/19/14
to Flash Coders List
The toughest choice for them is cost. This game was expensive and took about a year to build and then don’t want to shell out the same amount for a complete rebuild.

So I’m at least doing the research.

Thanks,


John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169




On Jun 19, 2014, at 3:47 PM, James Merrill <jmer...@gmail.com> wrote:

> It's a tough choice :/

Paul A.

unread,
Jun 19, 2014, 6:47:28 PM6/19/14
to flash...@chattyfig.figleaf.com
It's wishful thinking that there is a magic button anywhere that is
going to convert any flash app of any real complexity into a fully
functional HTML app.

I think Adobe are making strides in this area, but it's nowhere near
what you need. If it was, Adobe would be blasting it from the rooftops.

I have seen a simple game built in Flash CC and generating
HTML/Javascript but not a conversion from an existing codebase.

You may find this informative:

http://alesys.net/site/2013/12/15/postmortem-making-an-html5-game-with-flash-cc-html5-canvas-document-for-a-game-jam/

Paul

John R. Sweeney Jr.

unread,
Jun 19, 2014, 7:04:10 PM6/19/14
to Flash Coders List
Howdy,

I know that and I’m sure most developers do too, but I promised the client I would do my best to look into it, before I give him the inevitable bad news. The assets are the problem as much as the extensive coding. This is a real-time simulation of living on your own for a year (52 weeks on a per week bases). Just a ton of stuff going on and being tracked.

Our clients TOO often hear create once and deploy everywhere. We are already ahead of the game delivering about a dozen apps/games on the three platforms. But I don’t see a way to do it on the fourth and then your forced to maintain two codebases of each game. That also sucks. :(

Thanks,


John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169




On Jun 19, 2014, at 5:44 PM, Paul A. <pa...@ipauland.com> wrote:

> It's wishful thinking that there is a magic button anywhere that is going to convert any flash app of any real complexity into a fully functional HTML app.

tom rhodes

unread,
Jun 20, 2014, 4:47:33 AM6/20/14
to Flash Coders List
Look at Haxe, www.haxe.org and in particular OpenFL lib (
http://www.openfl.org/) to use with it, port your AS3 to Haxe (there are
automated tools for this, but you'll probably still have to get your hands
dirty) and from there you should be good with a few tweaks to compile with
OpenFL to HTML5, iOS, Android and lots of other targets all from the same
codebase.

Seriously I've been using Haxe for years now, mostly to make programming
server side and javascript much much easier coming from AS3. I've tapped
prbably 5% of it's potential ;) It's awesome.

erik mattheis

unread,
Jun 22, 2014, 9:00:50 AM6/22/14
to Flash Coders List
How is HAXE/OpenFL for compiling to native mobile devices? Any libraries
allow it to access device features or does it still compile a web app into
a native wrapper?
--
Erik Mattheis
612 377 2272
Reply all
Reply to author
Forward
0 new messages