Cp-s05box Wiki
No edit summary
(original steps removed for an easier access, may be added later)
Line 4: Line 4:
 
==Steps==
 
==Steps==
 
#Open [[Project:SWF Tricks/Programs/SWiX|SWiX]].
 
#Open [[Project:SWF Tricks/Programs/SWiX|SWiX]].
  +
#If your SWiX version opens the tag list of the file by default and doesn't display it as raw XML, switch to XML mode via the View tab at the top.
#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.
 
  +
#Copy the entire document ('''Ctrl+A''' and '''Ctrl+C'''). Paste it in the "Quick Drop" section below.
#Search for all the '''PlaceObject2''' elements that are direct children of '''Movie''' (not first contained in a different element like '''DefineSprite''').
 
 
#If your SWiX version opens the tag list of the file by default, and you have to switch to XML mode via the View tab at the top, 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. Press "go" and copy the output.
#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).
 
  +
#Remove the XML content from SWiX and replace it with the output that you copied.
#*Make sure that all of the new values are larger than 0.
 
  +
#In order to save:
#*You'd need to go back to these tags later, so you can leave an XML comment by adding <code><nowiki><!-- comment here --></nowiki></code>.
 
  +
#*If on stage 2 you've had to switch mode, before saving, select '''File &rarr; Play''', close the popup window, and save the file afterwards using '''Ctrl+S''' or from the File menu.
#*You can save your file from time to time to see how it's changed during the process.
 
  +
#*Otherwise, only go to '''File &rarr; Save
#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.
 
 
#You can use [[Project:SWF Tricks/Programs/Kurst SWF Renderer|Kurst SWF Renderer]] to convert the modified file to PNG (this converter increases the file size, so set the ''content scale'' option of Kurst to 1). You can then crop the image.
#*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.
 
#If your file also has some blur effects, search for any '''BlurX''' and '''BlurX''' element and multiply their ''High'' and ''Low'' attributes as well.
 
#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.
 
 
==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 &rarr; 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 06:25, 26 May 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. If your SWiX version opens the tag list of the file by default and doesn't display it as raw XML, switch to XML mode via the View tab at the top.
  3. Copy the entire document (Ctrl+A and Ctrl+C). Paste it in the "Quick Drop" section below.
  4. If your SWiX version opens the tag list of the file by default, and you have to switch to XML mode via the View tab at the top, 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. Press "go" and copy the output.
  5. Remove the XML content from SWiX and replace it with the output that you copied.
  6. In order to save:
    • If on stage 2 you've had to switch mode, before saving, select File → Play, close the popup window, and save the file afterwards using Ctrl+S or from the File menu.
    • Otherwise, only go to File → Save
  7. You can use Kurst SWF Renderer to convert the modified file to PNG (this converter increases the file size, so set the content scale option of Kurst to 1). You can then crop the image.

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.