Implement Nesbox in Blog

Asked

Viewed 58 times

1

I wanted to use the nesbox browser emulator in a blog using an external address.

According to the HTML code provided by the developer the code only takes a chunk of the address. Follow the example of excerpt from the developer’s code to attach the emulator to an html page:

var resizeOwnEmulator = function(width, height)
{
    var emulator = $('#emulator');
    emulator.css('width', width);
    emulator.css('height', height);
}

$(function()
{
    function embed()
    {
        var emulator = $('#emulator');
        if(emulator)
        {
            var flashvars = 
            {
                system : 'sega',
                url : '/roms/Flappy Bird (PD) v1.0.gen'
            };
            var params = {};
            var attributes = {};

            params.allowscriptaccess = 'sameDomain';
            params.allowFullScreen = 'true';
            params.allowFullScreenInteractive = 'true';

            swfobject.embedSWF('flash/Nesbox.swf', 'emulator', '640', '480', '11.2.0', 'flash/expressInstall.swf', flashvars, params, attributes);
        }
    }

    embed();
});

This code is to be made available at an internal address, but by using an external server I put the full address (example: 'http://exemplo.com/nome/flash/nesbox.swf') and the emulator even shows on the page, but the ROM does not load correctly, I believe because the other files (snes.swf, for example) that make emulation of the emulator platform are not recognized in the folder I created on the external server.

Anyone who knows this emulator has any idea what it is possible to do to run the emulator from an external address?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.