2

I use this site http://www.showmycode.com/ to decompile the swf below http://kwcdn.000dn.com/swfs/8b/23440heisesm/bg.swf

But the code only shows the link for a video but I can not get the image in the background. Where and how is that image is embedded in the swf? How can I retrieve that image?

Long story short, I want to search which game is it, from an ads in a Chinese site, but I can not read any Chinese, and the ads is a fake lead to a fake game. So the easiest way is to decompile the swf and use the image in google search hoping for some results. The decomplied code is shown below:

function video_replay()
{
    my_ns.seek(0);
}
var str_url = "http://kwflvcdn.000dn.com/swfs/17/23308hssm/hesm.flv";
var my_nc = new netconnection();
my_nc.connect(null);
var my_ns = new netstream(my_nc);
my_ns.setbuffertime(0);
var my_video;
my_video.attachvideo(my_ns);
my_video.smoothing = true;
my_ns.play(str_url);
var m_iErrorCount = 0;
my_ns.onstatus = function (infoObject)
{
    if ((infoObject.level == "error") && (m_iErrorCount < 2))
    {
        m_iErrorCount++;
        var _local2 = setTimeout(video_replay, 3);
    }
    else if (infoObject.code == "NetStream.Play.Stop")
    {
        var _local2 = setTimeout(video_replay, 0);
    }
    else if (infoObject.code == "NetStream.Buffer.Flush")
    {
         trace(my_ns.time);
    }
};
1

https://www.youtube.com/watch?v=EDUyzrxR-mY

game found enjoy it if you like. This is the real game from that flash teaser

The game I found myself as well while I was visiting chinese upload websites http://bdtg.37.com/s/1/1789/22338.html?baidu_key=395e3e9222fd2722

  • haha, thanks. But that youtube vid is misleading, the actual game is black desert and here is the screen shot of that ads black-desert.com/races – user2174870 Jan 10 '15 at 4:07
  • yup in comments it really did a good job fooling me as a kalonline player haha :P – SSpoke Jan 11 '15 at 11:23
2

Although I do not fully understand your questions, you might try SWFtools, a set of utilities that help you deal with all kinds of swf problems

http://www.swftools.org

Another flash decompiler is: http://www.free-decompiler.com/flash/

If you want to get the background or still image that is shown before you start the video, just browse the source of that website and search for ".swf". There should be a link to an image near/in the "flashvars" code.

Hope this helps at least a bit.

2

THis is one of the canonical sources:

http://jmendeth.com/blog/reverse-engineering-flash/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.