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

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.

Related

Adobe Flash Professional CS5 edit

I am new to Flash and I need to edit some files that are used in a flash project. The files I need to edit are in actionscript. What is the relation to the file types .as(actionscript), .fla (flash?), and .swf Also, do I need to recompile after any changes I make to an actionscript file.
Most likely, the .fla file is the main project file (what ties everything together). The .swf files are likely the final output from said project file. The .as files are code files that are likely attached to various items in the .fla file.
Here is an example:
You create a project in FlashPro/AdobeAnimate, you import some graphics, animate them on a timeline, and then want to add some code to those graphics to make them do something dynamic, so you create a class file (.as) and write some code, then link that class file to a timeline or object in FlashPro. When you are all done, you publish your application. This creates a .swf file which is then used on the web (legacy) or loaded by another application (Adobe Air, Visual Studio etc.).
Now, .swf files can also be used by other .swf files when a program runs. So some assets like graphics (.png, gif, jpeg, .swf) could be used by the application at run-time. The .fla & the .as file(s) though are only used for authoring and are not needed for running the published application.
You DO need to re-publish your .fla after any changes to an Actionscript (.as) file - this will generate a new .swf file.

create windows(.exe) file using adobe flash

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.

Actionscript 3.0(Adobe Flash CS4) Loading external .as files without knowing name of .as file

I want to know how to load external class files(.as files) in actionscript but don't have to know the class file's name. Think of it like loading mods in minecraft with forge mod loader, it doesn't know the main class of the mod's file name, yet it successfully loads the mod. I want to know if something like this is possible in actionscript 3.0 because I feel like making a tower defense game that isn't like the others out there but have it so it can be modded and have mods loaded but of course I have to load the class file without knowing the class file's name.
Note: I don't got access to Adobe Air so I can't use anything that requires Adobe Air.
You want to load a particular .as file AFTER or BEFORE compilation? After the compilation it is hardly possible - the file would not be compiled and therefore it would be useless. Why don't you use a swf or some kind of XML/JSON with settings in that case? Before the compilation you would still need to identify it by it's package name/name.
Basically, you want a plugin management system.
In AS3, it is not possible to "load" a .as file on execution, because it is a (uncompiled) source file. But, it is possible to load another swf and to use the classes within it.
Your process should probably be something like this :
Get a list of the plugins/addons. If you were using AIR, it would have been possible by browsing the content of a folder. Since you're not, you'll probably need to use a listing file (basically, a file that say "Here's the list&path of the plugins you need to load".
Load each swf file
(possibly) call a initialization method for each plugin.
You may wish to look into the way OSMF manages plugins, for example : http://osmf.org/dev/osmf/OtherPDFs/osmf_plugin_dev_guide.pdf

as3 document class doesn't load

I have a document class in my project and after I update it and put it on server the flash player loads the old version. It doesn't save in the cache memory which I clean every time I test the results, but seems to work when I change the name and modify the swf's doc class. Any idea how I could get around this? My document class is in the same folder the swf is, if it matters.
You must recompile your .swf locally and reupload that to your server. Any classes (.as files) are compiled into the .swf and not loaded by the .swf In fact, there's no reason to put any source code on a server, just like there's no reason to upload a .fla file.

How to export assets from an .SWF container?

Given is an online swf on Hubworld's site, which loads two configuration XMLs into an .swf file, then displays a game. A copy of the Flash with the two configuration files can be found here. (http://db.tt/zYT9Owg5). If unzipped into a folder, it loads the two XML files and displays everything correctly. The problem is, how to take it apart?
I tried decompiling the file, but it only shows up as a (mostly) empty file with a single symbol and a few misc tags inside it, despite the file itself containing several hundreds of vectors. (http://i.imgur.com/si6gq.png). I severly doubt that any sort of encryption or obfuscation is present, since it's a children's game and I took apart many others without a problem. How could I retrieve the said files from the container?
The swf contains another swf embedded as a ByteArray. I'm not sure why, but this is probably an obfuscation technique.
You can view the actual assets by running the swf in SWFWire Debugger. This application will dump the swf that is loaded from the ByteArray into the same folder as fashion.swf. You can then load this in your decompiler, or SWFWire Inspector if you just want to view the assets.