Author Topic: How to edit a Shockwave Flash .swf file?  (Read 1182 times)

Offline vc

  • Hero Member
  • *****
  • Posts: 519
How to edit a Shockwave Flash .swf file?
« on: April 01, 2010, 11:38:13 AM »
I am wondering if there are any tools available for editing .swf files.  Specifically:  my intent would be to extract graphics and images from typical 'slideshow' types of .swf containers.  Would that be possible?

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: How to edit a Shockwave Flash .swf file?
« Reply #1 on: April 01, 2010, 11:55:59 AM »
I am wondering if there are any tools available for editing .swf files.  Specifically:  my intent would be to extract graphics and images from typical 'slideshow' types of .swf containers.  Would that be possible?

I had occasion to look for an editor to produce edited SWF files some time ago and failed to find one, but I cannot say that it would not be possible to get content out of such a file ......  in truth I have forgotten if I could or not.

If you want to give a link to such a file I might like to have another look   :D

Offline vc

  • Hero Member
  • *****
  • Posts: 519
Re: How to edit a Shockwave Flash .swf file?
« Reply #2 on: April 01, 2010, 12:10:07 PM »
If you want to give a link to such a file I might like to have another look   :D


Here is one such link:

http://www.cbc.ca/photogallery/news/3198/

(Downloadable, with this FireFox extension):

https://addons.mozilla.org/en-US/firefox/addon/53003
« Last Edit: April 01, 2010, 12:17:41 PM by vc »

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: How to edit a Shockwave Flash .swf file?
« Reply #3 on: April 01, 2010, 01:24:09 PM »
I eventually got the addon installed and d/loaded the file from the site ......  but could not play it with anything.  ???

In that particular situation - with that site - I would bring up the pics I was interested in recovering, go to full screen, and use Ksnapshot to take a shot of each pic and save them.

Offline vc

  • Hero Member
  • *****
  • Posts: 519
Re: How to edit a Shockwave Flash .swf file?
« Reply #4 on: April 01, 2010, 06:16:46 PM »
I eventually got the addon installed and d/loaded the file from the site ......  but could not play it with anything.  ???

Yes - I opened it with KWrite, and found that it's pretty much all in hex.  No links discernible.

In that particular situation - with that site - I would bring up the pics I was interested in recovering, go to full screen, and use Ksnapshot to take a shot of each pic and save them.

Done.  After some GIMPwork, the result is of suitable resolution for use as a background on an EeePC 701 display screen, or a Motorola Milestone, or such.  For better resolution I'd have to build another system... I have CRT monitors capable of 2048 x 1536 that would serve; if the .swf screen resolution scales accordingly, then the captured image should fit a larger display at least somewhat more clearly.

Offline Tuxfriend

  • Hero Member
  • *****
  • Posts: 1256
Re: How to edit a Shockwave Flash .swf file?
« Reply #5 on: April 01, 2010, 06:37:56 PM »
If you open the CBC stuff in full screen, then take a screen shot of only the image (e.g. using KSnapshot), then you'll have good quality images you can work with further.
Best regards

Eddie

Offline vc

  • Hero Member
  • *****
  • Posts: 519
Re: How to edit a Shockwave Flash .swf file?
« Reply #6 on: April 01, 2010, 10:46:29 PM »
If you open the CBC stuff in full screen, then take a screen shot of only the image (e.g. using KSnapshot), then you'll have good quality images you can work with further.

Unfortunately though, their definition of 'full screen' is really not - the viewing window goes full screen, yet the actual image still spans only two-thirds.

In addition to that, any screen capture made with KSnapshot is only at the standard 96dpi screen resolution, regardless.  That is the reason why I would have to set up a machine for a higher-resolution display output - and hope that the images would scale to the display accordingly.  If they do, then I would indeed be able to capture more pixels; if they do not, then I would be as well off performing the captures at a more standard display resolution.

As it is though, the captures I've made today are of sufficient resolution for an old EeePC - and that was my goal, anyhow.  A means of editing .swf files would be nice to have available; however, this present 'workaround' method seems adequate for the moment.

Offline vc

  • Hero Member
  • *****
  • Posts: 519
Re: How to edit a Shockwave Flash .swf file?
« Reply #7 on: April 02, 2010, 07:14:11 AM »
Have you tried "swftools" ?

No; they seem to be currently unavailable?  The package for same does not appear in Synaptic now, at any rate.  What were they?

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: How to edit a Shockwave Flash .swf file?
« Reply #8 on: April 02, 2010, 07:29:19 AM »
I have the tools installed on my 2007/2009/KDE4 install, but they are not of much use if I cannot d/load a working SWF file.

I can create SWF files (jpeg2swf) and extract the pics from them (swfextract) .......  provided I do not use Flash MX H.263 compression when creating the SWF file.

I do not at this time have a downloaded SWF file to play with ....  they seem rather scarce  :)

Quote
'Tools for SWF (Flash) animations under linux'
SWF Tools is a collection of SWF manipulation and generation utilities.  Included are:
    * PDF2SWF A PDF to SWF Converter. Generates one frame per page. Enables you to have fully formatted text, including tables, formulas etc. inside your Flash Movie. It's based on the xpdf PDF parser from Derek B. Noonburg.
    * SWFCombine A tool for inserting SWFs into Wrapper SWFs. (Templates) E.g. for including the pdf2swf SWFs in some sort of Browsing-SWF.
    * SWFStrings Scans SWFs for text data.
    * SWFDump Prints out various informations about SWFs.
    * JPEG2SWF Takes one or more JPEG pictures and generates a SWF slideshow.
    * PNG2SWF Like JPEG2SWF, only for PNGs.
    * GIF2SWF Converts GIFs to SWF. Also able to handle animated gifs.
    * WAV2SWF Converts WAV audio files to SWFs, using the L.A.M.E. MP3 encoder library.
    * AVI2SWF Converts AVI animation files to SWF. It supports Flash MX H.263 compression. Some examples can be found at examples.html.
    * Font2SWF Converts font files (TTF, Type1) to SWF.
    * SWFBBox Allows to readjust SWF bounding boxes.
    * SWFC A tool for creating SWF files from simple script files.
    * SWFExtract Allows to extract Movieclips, Sounds, Images etc. from SWF files.
    * RFXSWF Library A fully featured library which can be used for standalone SWF generation. Includes support for Bitmaps, Buttons, Shapes, Text, Fonts, Sound etc. It also has support for ActionScript using the Ming ActionCompiler.

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: How to edit a Shockwave Flash .swf file?
« Reply #9 on: April 02, 2010, 07:39:16 AM »
I will try to attach a SWF file created with the SWFTools ........  just 3 pics reduced to 150x150 to keep the file size small .... just drop the ".txt" from the name and try it.

Did not work  :(

« Last Edit: April 02, 2010, 07:47:14 AM by JohnBoy »

Offline Tuxfriend

  • Hero Member
  • *****
  • Posts: 1256
Re: How to edit a Shockwave Flash .swf file?
« Reply #10 on: April 02, 2010, 08:56:36 AM »
Maybe HTTrack can download the SWF file. HTTrack is in the repos.

But be careful: If you dl the whole web you could put an end to it ...  :D
« Last Edit: April 02, 2010, 08:59:55 AM by tuxfriend »
Best regards

Eddie

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: How to edit a Shockwave Flash .swf file?
« Reply #11 on: April 02, 2010, 10:44:48 AM »
Maybe HTTrack can download the SWF file. HTTrack is in the repos.

But be careful: If you dl the whole web you could put an end to it ...  :D


I tried that ......  it seems I cannot play the file ........  I get a pop up saying that some plugin is missing   :D

EDIT
         "The CBC.ca photo gallery requires the Adobe Flash Plugin version 7.0 or higher."
« Last Edit: April 02, 2010, 10:48:31 AM by JohnBoy »

Offline Tuxfriend

  • Hero Member
  • *****
  • Posts: 1256
Re: How to edit a Shockwave Flash .swf file?
« Reply #12 on: April 03, 2010, 03:28:08 AM »
Time for a software suggestion ...?  :D
Best regards

Eddie