Cp-s05box Wiki
mNo edit summary
No edit summary
Line 15: Line 15:
 
#Now, save the file. You can use [[Project:SWF Tricks/Programs/Kurst SWF Renderer|Kurst SWF Renderer]] to convert the modified file to PNG (due to the new size, if you picked a big number, you can set the ''content scale'' option of Kurst to 1 due to the large size). You can then crop the image.
 
#Now, save the file. You can use [[Project:SWF Tricks/Programs/Kurst SWF Renderer|Kurst SWF Renderer]] to convert the modified file to PNG (due to the new size, if you picked a big number, you can set the ''content scale'' option of Kurst to 1 due to the large size). You can then crop the image.
 
#*If the bottom or right edges of the SWF image are cut, go to the previous step and increase the Width and Height attributes even more, until achiving the full image.
 
#*If the bottom or right edges of the SWF image are cut, go to the previous step and increase the Width and Height attributes even more, until achiving the full image.
  +
  +
==Notice==
  +
If your SWiX version opens the tag list of the file by default, and you have to switch to XML mode, before saving your changes, go to '''File → Play''', close the popup window, and save the file afterwards using Ctrl+S or from the File menu.
   
 
==Quick Drop==
 
==Quick Drop==

Revision as of 15:47, 20 March 2014

SWF Tricks
2021 notice:
To avoid Adobe from blocking flash rendering, set your computer time to 2020 or earlier while decompiling and/or rendering swf files as a temporary fix.
Programs
Tutorials

As you may know, the top of SWF icons in Club Penguin (and other SWF files) is usually cut, and in additional, the dimensions of the file are small. This tutorial shows both how to move it down, and also how to increase their size.

Steps

  1. Open SWiX.
  2. Go to the top of the document, where the Movie tag is placed. Increase its Width and Height attributes. You can increase it by 1.5X, where X is the number that you want to multiply the dimensions of the SWF icon by.
  3. Search for all the PlaceObject2 elements that are direct children of Movie (not first contained in a different element like DefineSprite).
  4. In its Matrix' child, increase all the TranslateX and TranslateY values by the same number (you can pick one number to the TranslateX attributes and a different to the TranslateY attributes).
    • Make sure that all of the new values are larger than 0.
    • You'd need to go back to these tags later, so you can leave an XML comment by adding <!-- comment here -->.
    • You can save your file from time to time to see how it's changed during the process.
  5. Now, on each one of the PlaceObject2 elements from the previous stage, in the Matrix tag contained inside it, multiply all the values by the same number. This includes TranslateX and TranslateY in the Translate tags, ScaleX and ScaleY in the Scale tags, and if it has in addition a Rotate element, multiply its attributes as well.
    • If a certain Matrix element has no Scale element, add to it a new Scale childthat its ScaleX and ScaleY attributes are set to the number that you multiplied by.
  6. If your file also has some blur effects, search for any BlurX and BlurX element and multiply their High and Low attributes as well.
  7. Now, save the file. You can use Kurst SWF Renderer to convert the modified file to PNG (due to the new size, if you picked a big number, you can set the content scale option of Kurst to 1 due to the large size). You can then crop the image.
    • If the bottom or right edges of the SWF image are cut, go to the previous step and increase the Width and Height attributes even more, until achiving the full image.

Notice

If your SWiX version opens the tag list of the file by default, and you have to switch to XML mode, before saving your changes, go to File → Play, close the popup window, and save the file afterwards using Ctrl+S or from the File menu.

Quick Drop

You can copy the XML from SWiX to this form, press "go", copy the output and save in SWiX for an easier and quicker process.