Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-14-2006, 09:49 AM
Junior Member
 
Join Date: Apr 2006
Posts: 4
Default Help!!!How i can save the snapshoted image

I want to build a drawing program in flash and I want to save image like bmp or jpg with SwfKit and I want to use snaphot image and save in swf kit but i cant understund it!!!Can you help me with that!!!
Reply With Quote
  #2 (permalink)  
Old 04-14-2006, 01:24 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Help!!!How i can save the snapshoted image

1) in swfkit, add a new script, in this sample we name it "SaveImage"

2) in the script, add the following code
Code:
var image = Image.captureMovie(0, 0, 400, 300);
image.save("c:\\my.jpg");
3) in flash call the script, for example in the event handler of a button
Code:
on (click) {
    fscommand("ffish_run", "SaveImage");
}
Reply With Quote
  #3 (permalink)  
Old 04-14-2006, 07:36 PM
Junior Member
 
Join Date: Apr 2006
Posts: 4
Default Re:Help!!!How i can save the snapshoted image

Thanks a lot!!!I can write programs in other programs like visual basic and multimedia builder but the ffish program language is new for me it is diferent
Reply With Quote
  #4 (permalink)  
Old 04-18-2006, 09:04 AM
Member
 
Join Date: Oct 2005
Posts: 87
Default Re:Help!!!How i can save the snapshoted image

I want know what's coord system u used in the function
Reply With Quote
  #5 (permalink)  
Old 04-18-2006, 09:07 AM
Member
 
Join Date: Oct 2005
Posts: 87
Default Re:Help!!!How i can save the snapshoted image

Image.captureMovie(0, 0, 400, 300);

if ur function use PC's screen coords, and my app only know stage coords, is there an easy way to convert?
Reply With Quote
  #6 (permalink)  
Old 04-19-2006, 04:31 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Help!!!How i can save the snapshoted image

Please try FlashPlayer.movieToWindow.
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 03:39 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.