Board Thread:General Discussion/@comment-15305799-20131006230155/@comment-4018164-20131203064408

You can find the swf file that contains the music here (you can find swf files by going to the "SWF" section of articles). Like Hey.you said, you should use Trillix, as it allows you to decompile the file and view its resources. You can then extract it by selecting the sound fragment (on this case it would be Sound 18) and pressing the "Extracting objects" button. The file is most likely be an MP3 file, that you can later play or convert to other file formats as well.

About music files, i'd like to add System Defender and Spy Drills to the files that you can play as they are.

About other files, it seems like CP includes in them a script that checks whether or not your domain is "valid" (like play.clubpenguin.com), and doesn't play the start if you're in, say, Google's website. It's also possible that playing the file interacts with other files relative to it in Club Penguin's directories. Though you can search for archives of older file versions of CP games, and see whether they have this limitation (try here). For example, the Thin Ice archive works.

Anyway, according to this, the best way to embed a SWF file is to use SWFObject. You can also do it like this: the units are either in numbers (represent number in pixels), or using a number followed by a percentage sign, to specify a width/height by n% of the total space.