Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Pre-sales

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-21-2006, 05:40 PM
Junior Member
 
Join Date: Dec 2006
Posts: 1
Default Saving an Image file from AS3 in FlashDevelop

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.
Reply With Quote
  #2 (permalink)  
Old 12-22-2006, 02:36 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Saving an Image file from AS3 in FlashDevelop

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.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:51 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.