Java CS6 How to convert ai to fla + html + swf using a script - actionscript-3

I would like some assistance with batch image processing - I need to save an vector ai image to fla+html+swf file formats using a script - What I have done is to open the software and open a folder with these image's in. Please advise how i can write a script to assist with this process as I have alot of images I have to save.
I need to save it in actionscript 3 and actionscript 2, so if there is a script that convert it from actionscript 3 to actionscipt 2 that can be usefull aswell.
Please help :)

If I understand you correctly, you want to be able to put an image found inside an .AI-file (Adobe Illustrator) and automatically place that image into two newly created .FLA-files (one with AS3 set as default programming language and one set with AS2 as the default programming language)?
There is no quick and easy solution for this, it would require a combination of a "main app (python, c#, java or similar)" combined with "JSFL" to do what you want. And in the end that app would probably become very complex.
If you can skip the requirement of each ai-file becoming a unique fla-file you can just import all the images into a newly created FLA-file. But if that's not an option, then you're most definitely out of luck :\

Related

Can someone explain AIR Native Extensions FREGetContextActionScriptData() and FRESetContextActionScriptData() in more detail?

I have created an AIR Native Extension wherein, I have created a reusable Loader object on the AS3 side. I then pass this Loader object to the ANE to load whatever loadable file I want to load into the Loader. This works, as expected.
I would like to create the reusable Loader on the C side of the ANE. My understanding is that the FRESetContextActionScriptData() and FREGetContextActionScriptData() functions allows me to create and store AS3 FREObject variables on the C side.
I have been trying to implement these functions on the C side and and unable to wrap my head around how to do so. The Adobe help is insufficient and does not help in any way. I have tried to search for these two words with no success. Can someone throw some light on how these functions are used?
Thanks in advance.

Can't open an Actionscript project with Flashdevelop

I'm working on creating flash games using actionscript 3, i'm trying to open a Flixel project with FlashDevelop but i can't find a way to do it, i cerated a new project and put the files inside but nothing it seems to work, this is the link for the project on Github :
https://github.com/monday8am/BigHeadFootball_FLA
Although 'nothing seems to work' is a bit of a vague description, you might want to consider the following:
1. When you have put all the files in the FlashDevelop project folder (so that means merging the existing src folder with the one from the project etc.) have you set the Document class correctly?
2. If you've followed step 1 and try to run it, what kind of errors come up? If it can't find certain classes or assets you might have to move these.
Basically, it should be possible to open the project with FD once you've set the correct Document class and merged the two projects correctly.

how to I make my flash AS3 game save progress

I have this flash game that I've been working on that works out of the browser, and I'm looking to get it to save it's progress.
I've seen multiple flash games that have accomplished this, and It appears as though they've done this client-side, and I'd like to do the same.
My game consists of 1 mxml file and a number of .as files and I compile it from the command line using flex sdk.
What do I have to do to be able to save save my game's data?
As others have mentioned, SharedObject is the tool you'll use for this.
The basics of this are to initialize a reference to a SharedObject using its static method .getLocal() first:
var mySaveData:SharedObject = SharedObject.getLocal("SomeSaveName");
The String given to this method should not contain spaces.
Once you've done this, you'll be able to use mySaveData.data, which is basically a simple object that you can attach properties to on the fly (it's dynamic):
mySaveData.data.levelsComplete = 2;
Once you've done this, you'll be able to reference that value later on using the same process:
trace( mySaveData.data.levelsComplete );
For simple stuff you can use SharedObject
One way is to use flash's SharedObject to save values in to a 'flash cookie' on the client. Example can be found here: Actionscript 3 saving currentframe location to local hard drive?

How to save flash and actionscript

I have a flash app (chat) with the sources, which is .fla and 7 .as files.
Project is saved in CS6.
I can edit what I want, but I have problem saving it. I have poor knowledge about flash and Action Script, so I need some help saving the project.
Thank you!
Check the "compiler error" panel. If there's anything in there, Flash will refuse to execute any command and will just play the frames sequentially. If there's nothing there, the .fla file is probably not linked to the code in the first place. Look for the "class" attribute under "Properties" -> "Publish" and set to the name of the main .as file.
I assume you did not write the app on the first place. If you are trying to take some code & trying to learn from it (or get it to run), go step by step.
First find the entry point of the app. See any code in the timeline?? Anything on the frames?
If yes, starting following it.
If not, there would be a document class specified in the stage properties...start from there.
Beyond this, Share more details, for a better answer....

write new id3v2-tags in mp3-headers (actionscript-3)

Hello is it possible to write new id3v2 tags to a mp3-file through actionscript?
Normally you can read/write tags like artist,album,genre...
But I would like to add for example the tag "atmosphere = smooth".
Thanks
Unfortunately, there is no working library to write/edit ID3 tags in ActionScript, or at least I wouldn't know of one.
But you can access and edit the file as ByteArray. Check the ID3v2.3 specification to find out which bytes to read and write.
There is a c/c++ project called id3lib on sourceforge. Should you consider porting this to ActionScript using Alchemy, I would be very much interested in the resulting product ;)