create windows(.exe) file using adobe flash - actionscript-3

I've create an app using flash cc for android. It works great but now my goal is to publish it in windows. I know I can use air for windows. I've tried it and it works. But the problem with that is, you can see all the swf files on installed folder. That makes my files vulnerable for theft. So I want to know if there's any methods or converter to convert my whole air application in exe so that it doesn't expose all the included swf files. I think game like machinarium was created using flash. But when I got the setup file it include exe files and non of flash files or any other files were exposed. Is it possible to achieve with flash as3? Any help would be much appreciated.

If you're using Adobe Flash you can go to your publish settings and a small menu will pop up and there will be tabs at the top. Go to the tab that has a list of the various file formats you can export to and .exe will be one of them. Check the box and then set the file location, then hit 'Publish' and you should have an .exe file.

Related

How to find Action Script in a flash file (.fla file)

I have to analyse data in a flash file. I have given with swf file , which i decompiled and produced .fla file which contains 35000 lines of code.
In that .fla file how to find user written code (i think so Action Script ). I am struggling with this.
Meanwhile i am preparing environment for flash editor with flashdevelope software.
Can somebody please suggest me how to find user written code in a flash file(.fla)
You have to look on each and every keyframe which have an action symbol. I put an image to show how it will appear in flash file.
If your swf is targeted to AS3 then probably all the codes will decompiled in external ActionScript files. You will have to search in all the directories generated from your decompiler.
Edit
as #BadFeelingAboutThis suggests, there is another way by looking at the left panel within action panel.

How does one import symbols from a .fla file to an AIR project in FlashDevelop?

This is my first time working with AIR. In previous AS3 projects in FlashDevelop, I would create a .fla file with Flash Professional in the same directory as my source files and link my main class as the document class. I used Flash to create symbols and export them for actionscript and then wrote the definitions in FlashDevelop. That isn't working with AIR.
I have the .fla file in the same directory with all of my source files. FlashDevelop AIR Mobile compiles the project fine, but the application is a white screen. Compiling the same project with the same compiler in Flash Professional works perfectly, showing all of the symbols.
How do I access the symbols in my .fla file if I am compiling from FlashDevelop?
Try the following.
In Flash Professional, go to your publish settings. Check the .swc box to export a swc when you publish (and make sure the export location is in one of your flash develop project sub folders. A subfolder called 'lib' is common practice). Also, if desired, uncheck other outputs in your publish settings.
Publish your .fla.
In Flash Develop, find the .swc in the project panel directory tree, right click it, and choose "Add to Library" You may also need to right-click again and choose "options" and tell it to "Include completely".
Now all the symbols from your .fla are available to your FlashDevelop project.

How to open a Flash project with some existing code?

I am a Java developer and have no experience in Flash, so sorry in advance if some of my questions will look stupid :)
I got some source code in this hierarchy and structure:
-sources flash builder
-com
-greensock
-deng
-fzip
-utils
-org
-flintparticles
ALAccessibility.as
ALEvent.as
ALImage.as
ALVideo.as
ALVideoOld.as
Project.as
Project-app.xml
Folders are marked with - sign. I didn't write in details what is inside of every folder (they have a lot of .as files)
How to open these files and folders as a Flash (I don't know exactly as an Action Script or Flex or something else) project? I also have project.swf file.
I have the Adobe Flash Builder 4.7.
I think you might be doing the import one folder too "high".
Usually the file structures you posted here are within a /src directory which is inside a project directory. There should be an Eclipse project file (.project) in the folder you're targeting for the import.
I don't think it works any differently from importing a Java project into Eclipse.
If that's not available, you'll have to create a new project and copy everything you have into that project structure - it's possible you've lost some project config (build path, compiler settings, etc) if the raw source is all you have...
In Flash Builder. File -> Import Flash Builder Project. Select "Project Folder" and Browse to the folder. Follow any instructions that may appear afterward.

Flash: Possible to export song from Library? Or find it in a folder?

Somehow in moving my flash project files to my external hard drive, I lost the two background music tracks. They still play in the swf, but they're nowhere to be found (when I click on properties, it has it sitting somewhere it clearly isn't).
Is there a way to export the sound to a new mp3? The sound file definitely exists, but I can't seem to find it or access it. I want to make a new version of this on iPad hence I need all the original sounds.
If you have a .FLA file you can just open it in WinRAR and go to LIBRARY folder, which contains all the stuff you had in your project library.
If you only have a .SWF file I recommend using Sothink SWF Decompiler, which you can try for free. From there you can export all the assets you want.

Recomplie a swf file of a flash project that come without as3proj file

I have a folder of flash source code and what I would like to do is modify a action script file and recompile the swf again.
Unfortuneatly , I found that the source code do not have as3proj file . What I have is like this
FlashProject:
org/as2lib
project.fla
as files
And I tried to create a new project and what I saw is rsc, bin and lib folder, Then I tried to put the file like this:
lib/org/as2lib
rsc/as files
project.fla
What it generate is a white swf without any content, what should i do to compile it ? I am using flashDevelop ,Thanks
You have to create a new project, dismantle your FLA in Adobe Flash (trial will do) via exporting an SWF, then you grab resources out of that SWF within FlashDevelop, and use them accordingly. Migrating from Adobe Flash into FD is no simple task.
That FLA you have is an Adobe Flash project file, which FlashDevelop cannot read. So you have to start a new project, and embed your existing assets in FlashDevelop's way.