|
|||
|
I'm doing AS3 development using FlashDevelop and would like to create an exe that is cabable of saving an image to the local file system.
1) Is that easily accomplished using SWFKit? 2) Is there sample code to this effect? Apologies, but I did not find any existing information on this. I would like to get a proof of concept running asap on this. Thanks! Please note : I did see the post with the intrinsic classes that I would need to add to the class path in FlashDevelop for code completion and compiling ( http://www.swfkit.com/forum/thread_2_1695.html ). However I'll be dealing with a ByteArray rather than just a string. |
|
|||
|
Sure, you can do this. The attached sample shows how to save a movie clip to a bitmap file by using flash 9 (AS3) + swfkit.
As what you can see from the sample, we recommend that you write bitmap file saving code in ffish script. Although you can call ffish script objects directly in as3, it will take a long time to pass bitmap pixel values from actionscript to swfkit. The reason is that even a small bitmap contains a lot of pixels, and if you call ffish script objects in as3 to save each pixel of the bitmap, it will take remarkable time to transfer data from as3 to swfkit. In the sample, for the same reason, we convert the data array to a string before pass it to the ffish script "saveBitmap" function. If you use array instead, it will use a long time to pass the array items one by one. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|