Adobe flash notification before client start

Stormwind

New Member
Sep 2, 2017
9
0
Hello, anyone knows how to add a adobe flash notification before the client starts?? I'm using plusemu revcms and for example safari is not loading the client, becasue it need to accept the using of flash. I want to add an notification, as other retros has, that will solve this problem.
 

Gang67

|Jump out gang, we jump out those vehicles|
May 5, 2017
303
54
Hello, anyone knows how to add a adobe flash notification before the client starts?? I'm using plusemu revcms and for example safari is not loading the client, becasue it need to accept the using of flash. I want to add an notification, as other retros has, that will solve this problem.
Rip it from their client :p
 

Hayd3n

peace.wtf
Jun 14, 2013
76
29
Hello, anyone knows how to add a adobe flash notification before the client starts?? I'm using plusemu revcms and for example safari is not loading the client, becasue it need to accept the using of flash. I want to add an notification, as other retros has, that will solve this problem.

Create a .css file for the button
PHP:
.button{border:2px solid #1bc912;background:#098025;background:-webkit-gradient(linear,left top,left bottom,from(#098025),to(#098025));background:-webkit-linear-gradient(top,#098025,#098025);background:-moz-linear-gradient(top,#098025,#098025);background:-ms-linear-gradient(top,#098025,#098025);background:-o-linear-gradient(top,#098025,#098025);background-image:-ms-linear-gradient(top,#098025 0%,#098025 100%);padding:9.5px 19px;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;-webkit-box-shadow:rgba(255,255,255,0.4) 0 0px 0,inset rgba(255,255,255,0.4) 0 1px 0;-moz-box-shadow:rgba(255,255,255,0.4) 0 0px 0,inset rgba(255,255,255,0.4) 0 1px 0;box-shadow:rgba(255,255,255,0.4) 0 0px 0,inset rgba(255,255,255,0.4) 0 1px 0;text-shadow:#43494d 0 1px 0;color:#ffffff;font-size:20px;font-family:helvetica,serif;text-decoration:none;vertical-align:middle;}.button:hover{border:2px solid #098025;text-shadow:#43494d 0 1px 0;background:#07591a;background:-webkit-gradient(linear,left top,left bottom,from(#07591a),to(#07591a));background:-webkit-linear-gradient(top,#07591a,#07591a);background:-moz-linear-gradient(top,#07591a,#07591a);background:-ms-linear-gradient(top,#07591a,#07591a);background:-o-linear-gradient(top,#07591a,#07591a);background-image:-ms-linear-gradient(top,#07591a 0%,#07591a 100%);color:#fff;}

Add the link in client.php
PHP:
 <link rel="stylesheet" href="LINK TO CSS" type="text/css" />

Find & Replace swfobject.embedSWF
PHP:
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.1.0", "{imagePath}/web-gallery/flash/expressInstall.swf", flashvars, params, null, callback);

In your client file find & replace the <div id="flash-container">
PHP:
<div id="flash-container">
        <style>
  #clienterror{color:#FFFFFF;background:#000000;font-family:'Ubuntu';padding:250px 12px;width:100%;height:100%;display:none;position:fixed;top:0;left:0;text-align:center;z-index:1000000;}#clienterror p{width:445px;margin:0 auto;font-family:'Ubuntu';font-size:24px;text-align:center;padding:20px 0;}#clienterror a{margin:0 auto;margin-bottom:10px;display:block;}#clientdcerror{color:#FFFFFF;background:#000000;background:rgba(0,0,0,0.85);font-family:'Ubuntu';padding:48px 12px;width:100%;height:100%;display:none;position:fixed;top:0;left:0;text-align:center;z-index:1000000;}#clientdcerror p{width:445px;margin:0 auto;font-family:'Ubuntu';font-size:24px;text-align:center;padding:20px 0;}#clientdcerror a{margin:0 auto;margin-bottom:10px;display:block;}
  </style>
  <div id="clienterror">
  <img src="{imagePath}/habora_new.png"><br /><br />
<p>Oh no!<br/><br/>Could not activate Adobe Flash Player in your browser..<br/><br/>You can try to activate Flash Player using the button below or downloading it from the Adobe page.</p>
<p><a href='http://www.adobe.com/go/getflashplayer' class='button'> Enable Flash / Install</a></p>
</div>
        <script type="text/javascript">
            $('content').show();
        </script>
        <noscript>
            <div style="width: 400px; margin: 20px auto 0 auto; text-align: center">
                <p>If you are not automatically redirected, please <a href="/client/nojs">click here</a></p>
            </div>
        </noscript>
    </div>
When they click the button the pop up will show

e79dea4e66912557e019daed2b46a580.png
 
Last edited:

Stormwind

New Member
Sep 2, 2017
9
0
Create a .css file for the button
PHP:
.button{border:2px solid #1bc912;background:#098025;background:-webkit-gradient(linear,left top,left bottom,from(#098025),to(#098025));background:-webkit-linear-gradient(top,#098025,#098025);background:-moz-linear-gradient(top,#098025,#098025);background:-ms-linear-gradient(top,#098025,#098025);background:-o-linear-gradient(top,#098025,#098025);background-image:-ms-linear-gradient(top,#098025 0%,#098025 100%);padding:9.5px 19px;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;-webkit-box-shadow:rgba(255,255,255,0.4) 0 0px 0,inset rgba(255,255,255,0.4) 0 1px 0;-moz-box-shadow:rgba(255,255,255,0.4) 0 0px 0,inset rgba(255,255,255,0.4) 0 1px 0;box-shadow:rgba(255,255,255,0.4) 0 0px 0,inset rgba(255,255,255,0.4) 0 1px 0;text-shadow:#43494d 0 1px 0;color:#ffffff;font-size:20px;font-family:helvetica,serif;text-decoration:none;vertical-align:middle;}.button:hover{border:2px solid #098025;text-shadow:#43494d 0 1px 0;background:#07591a;background:-webkit-gradient(linear,left top,left bottom,from(#07591a),to(#07591a));background:-webkit-linear-gradient(top,#07591a,#07591a);background:-moz-linear-gradient(top,#07591a,#07591a);background:-ms-linear-gradient(top,#07591a,#07591a);background:-o-linear-gradient(top,#07591a,#07591a);background-image:-ms-linear-gradient(top,#07591a 0%,#07591a 100%);color:#fff;}

Add the link in client.php
PHP:
 <link rel="stylesheet" href="LINK TO CSS" type="text/css" />

Find & Replace swfobject.embedSWF
PHP:
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.1.0", "{imagePath}/web-gallery/flash/expressInstall.swf", flashvars, params, null, callback);

In your client file find & replace the <div id="flash-container">
PHP:
<div id="flash-container">
        <style>
  #clienterror{color:#FFFFFF;background:#000000;font-family:'Ubuntu';padding:250px 12px;width:100%;height:100%;display:none;position:fixed;top:0;left:0;text-align:center;z-index:1000000;}#clienterror p{width:445px;margin:0 auto;font-family:'Ubuntu';font-size:24px;text-align:center;padding:20px 0;}#clienterror a{margin:0 auto;margin-bottom:10px;display:block;}#clientdcerror{color:#FFFFFF;background:#000000;background:rgba(0,0,0,0.85);font-family:'Ubuntu';padding:48px 12px;width:100%;height:100%;display:none;position:fixed;top:0;left:0;text-align:center;z-index:1000000;}#clientdcerror p{width:445px;margin:0 auto;font-family:'Ubuntu';font-size:24px;text-align:center;padding:20px 0;}#clientdcerror a{margin:0 auto;margin-bottom:10px;display:block;}
  </style>
  <div id="clienterror">
  <img src="{imagePath}/habora_new.png"><br /><br />
<p>Oh no!<br/><br/>Could not activate Adobe Flash Player in your browser..<br/><br/>You can try to activate Flash Player using the button below or downloading it from the Adobe page.</p>
<p><a href='http://www.adobe.com/go/getflashplayer' class='button'> Enable Flash / Install</a></p>
</div>
        <script type="text/javascript">
            $('content').show();
        </script>
        <noscript>
            <div style="width: 400px; margin: 20px auto 0 auto; text-align: center">
                <p>If you are not automatically redirected, please <a href="/client/nojs">click here</a></p>
            </div>
        </noscript>
    </div>
When they click the button the pop up will show

e79dea4e66912557e019daed2b46a580.png

Thanks! I did everything you said, but it doesnt work. I get black screen now.

My flash.css file ive created:

My client.php

Code:
<!DOCTYPE html>

<html lang="en">

    <head>

        <link rel="shortcut icon" href="{url}/app/tpl/skins/{skin}/images/favicon.ico" type="image/vnd.microsoft.icon"/>

        <meta http-equiv="content-type" content="text/html; charset=utf-8">

        <title>{hotelName} Hotel</title>

 

        <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/client.css" type="text/css">
 <link rel="stylesheet" href="{url}/app/tpl/flash.css" type="text/css" />
 

        <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/swfobject.js"></script>

        <script type="text/javascript">

            var BaseUrl = "{url}/swfs/gordon/PRODUCTION-201701242205-837386173/";

            var flashvars =

            {

                "client.allow.cross.domain" : "1",

                "client.notify.cross.domain" : "0",

                "connection.info.host" : "localhost",

                "connection.info.port" : "30000",

                "site.url" : "{url}",

                "url.prefix" : "{url}",

                "client.reload.url" : "{url}/disconnected",

                "client.fatal.error.url" : "{url}/disconnected",

                "client.connection.failed.url" : "{url}/disconnected",

                "external.variables.txt" : "{url}/swfs/gamedata/external_variables.txt",

                "external.texts.txt" : "{url}/swfs/gamedata/external_flash_texts.txt",

                "external.override.texts.txt" : "{url}/swfs/gamedata/override/external_flash_override_texts.txt",

                "external.override.variables.txt" : "{url}/swfs/gamedata/override/external_override_variables.txt",

                "external.figurepartlist.txt" : "{url}/swfs/gamedata/figuredata.xml",

                "productdata.load.url" : "{url}/swfs/gamedata/productdata.txt",

                "furnidata.load.url" : "{url}/swfs/gamedata/furnidata.xml",

                "use.sso.ticket" : "1",

                "sso.ticket" : "{sso}",

                "client.starting" : "Please wait! {hotelName} is starting up.",

                "processlog.enabled" : "0",

                "flash.client.url" : BaseUrl,

                "client.starting.revolving" : "Whololo/Tijd is maar een illusie./Gotta go fast!/Your computer might blow up./Don't panic!/You might die./Get yourself a drink while waiting./Whats that noise?/",

                "flash.client.origin" : "popup"

            };

            var params =

            {

                "base" : BaseUrl + "/",

                "allowScriptAccess" : "always",

                "menu" : "false"

            };

            swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.1.0", "{url}/swfs/gordon/PRODUCTION-201701242205-837386173/expressInstall.swf", flashvars, params, null, callback);

        </script>

    </head>


    <body>


        <div id="client"></div>
        <div id="flash-container">
        <style>
  #clienterror{color:#FFFFFF;background:#000000;font-family:'Ubuntu';padding:250px 12px;width:100%;height:100%;display:none;position:fixed;top:0;left:0;text-align:center;z-index:1000000;}#clienterror p{width:445px;margin:0 auto;font-family:'Ubuntu';font-size:24px;text-align:center;padding:20px 0;}#clienterror a{margin:0 auto;margin-bottom:10px;display:block;}#clientdcerror{color:#FFFFFF;background:#000000;background:rgba(0,0,0,0.85);font-family:'Ubuntu';padding:48px 12px;width:100%;height:100%;display:none;position:fixed;top:0;left:0;text-align:center;z-index:1000000;}#clientdcerror p{width:445px;margin:0 auto;font-family:'Ubuntu';font-size:24px;text-align:center;padding:20px 0;}#clientdcerror a{margin:0 auto;margin-bottom:10px;display:block;}
  </style>
  <div id="clienterror">
  <img src="{imagePath}/habora_new.png"><br /><br />
<p>Oh no!<br/><br/>Could not activate Adobe Flash Player in your browser..<br/><br/>You can try to activate Flash Player using the button below or downloading it from the Adobe page.</p>
<p><a href='http://www.adobe.com/go/getflashplayer' class='button'> Enable Flash / Install</a></p>
</div>
        <script type="text/javascript">
            $('content').show();
        </script>
        <noscript>
            <div style="width: 400px; margin: 20px auto 0 auto; text-align: center">
                <p>If you are not automatically redirected, please <a href="/client/nojs">click here</a></p>
            </div>
        </noscript>
    </div>
        
        


    </body>

</html>

What is the problem in your opinion?

Really appreciate the help.
 

Hayd3n

peace.wtf
Jun 14, 2013
76
29
Place this above var flashvars = {
PHP:
var callback = function(e) {
            
            if(!e.success) {
                document.getElementById("clienterror").style.display = "block";
            }
            else {
                document.getElementById("clienterror").style.display = "none";
            }
            };

and replace the swfobject again
PHP:
var clientUrl = "LINK TO HABBO.SWF";
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.1.0", "{imagePath}/web-gallery/flash/expressInstall.swf", flashvars, params, null, callback);
 

Stormwind

New Member
Sep 2, 2017
9
0
Uncaught ReferenceError: $ is not defined
at client:121
I can now see the text before client starts, but when i click the button it redirects me to adobe flash player site only and I also have this error above ($('content').show();)

Place this above var flashvars = {
PHP:
var callback = function(e) {
           
            if(!e.success) {
                document.getElementById("clienterror").style.display = "block";
            }
            else {
                document.getElementById("clienterror").style.display = "none";
            }
            };

and replace the swfobject again
PHP:
var clientUrl = "LINK TO HABBO.SWF";
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.1.0", "{imagePath}/web-gallery/flash/expressInstall.swf", flashvars, params, null, callback);
 

Gang67

|Jump out gang, we jump out those vehicles|
May 5, 2017
303
54
Uncaught ReferenceError: $ is not defined
at client:121
I can now see the text before client starts, but when i click the button it redirects me to adobe flash player site only and I also have this error above ($('content').show();)
To be honest the only way you're going to learn is by trying to fix things yourself
 

Hayd3n

peace.wtf
Jun 14, 2013
76
29
I am trying all the time, but i get more and more errors lol
I'll check when I'm home, I probably left something out
 
I am trying all the time, but i get more and more errors lol
Try this client.php
PHP:
<!DOCTYPE html>

<html lang="en">

    <head>

        <link rel="shortcut icon" href="{url}/app/tpl/skins/{skin}/images/favicon.ico" type="image/vnd.microsoft.icon"/>

        <meta http-equiv="content-type" content="text/html; charset=utf-8">

        <title>{hotelName} Hotel</title>



        <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/client.css" type="text/css">
 <link rel="stylesheet" href="{url}/app/tpl/flash.css" type="text/css" />


        <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/swfobject.js"></script>

        <script type="text/javascript">

            var BaseUrl = "{url}/swfs/gordon/PRODUCTION-201701242205-837386173/";

            FlashExternalInterface.loginLogEnabled = true;
   
    FlashExternalInterface.logLoginStep("web.view.start");

    if (top == self) {
        FlashHabboClient.cacheCheck();
    }
   
    var callback = function(e) {
           
            if(!e.success) {
                document.getElementById("clienterror").style.display = "block";
            }
            else {
                document.getElementById("clienterror").style.display = "none";
            }
            };
           
            var flashvars =

            {

                "client.allow.cross.domain" : "1",

                "client.notify.cross.domain" : "0",

                "connection.info.host" : "localhost",

                "connection.info.port" : "30000",

                "site.url" : "{url}",

                "url.prefix" : "{url}",

                "client.reload.url" : "{url}/disconnected",

                "client.fatal.error.url" : "{url}/disconnected",

                "client.connection.failed.url" : "{url}/disconnected",

                "external.variables.txt" : "{url}/swfs/gamedata/external_variables.txt",

                "external.texts.txt" : "{url}/swfs/gamedata/external_flash_texts.txt",

                "external.override.texts.txt" : "{url}/swfs/gamedata/override/external_flash_override_texts.txt",

                "external.override.variables.txt" : "{url}/swfs/gamedata/override/external_override_variables.txt",

                "external.figurepartlist.txt" : "{url}/swfs/gamedata/figuredata.xml",

                "productdata.load.url" : "{url}/swfs/gamedata/productdata.txt",

                "furnidata.load.url" : "{url}/swfs/gamedata/furnidata.xml",

                "use.sso.ticket" : "1",

                "sso.ticket" : "{sso}",

                "client.starting" : "Please wait! {hotelName} is starting up.",

                "processlog.enabled" : "0",

                "flash.client.url" : BaseUrl,

                "client.starting.revolving" : "Whololo/Tijd is maar een illusie./Gotta go fast!/Your computer might blow up./Don't panic!/You might die./Get yourself a drink while waiting./Whats that noise?/",

                "flash.client.origin" : "popup"

            };

            var params =

            {

                "base" : BaseUrl + "/",

                "allowScriptAccess" : "always",

                "menu" : "false"

            };
           
            if (!(HabbletLoader.needsFlashKbWorkaround())) {
            params["wmode"] = "opaque";
            } 

            swfobject.embedSWF(BaseUrl + "Habbo.swf", "client", "100%", "100%", "10.0.0", "xxx", flashvars, params, null, callback);

            window.onbeforeunload = unloading;
    function unloading() {
        var clientObject;
        if (navigator.appName.indexOf("Microsoft") != -1) {
            clientObject = window["flash-container"];
        } else {
            clientObject = document["flash-container"];
        }
        try {
            clientObject.unloading();
        } catch (e) {}
    }
    window.onresize = function() {
        HabboClient.storeWindowSize();
    }.debounce(0.5);
   
        </script>

    </head>


    <body>


       <div id="client-ui" >
    <div id="flash-wrapper">
    <div id="flash-container">
        <style>
  #clienterror{color:#FFFFFF;background:#000000;font-family:'Ubuntu';padding:250px 12px;width:100%;height:100%;display:none;position:fixed;top:0;left:0;text-align:center;z-index:1000000;}#clienterror p{width:445px;margin:0 auto;font-family:'Ubuntu';font-size:24px;text-align:center;padding:20px 0;}#clienterror a{margin:0 auto;margin-bottom:10px;display:block;}#clientdcerror{color:#FFFFFF;background:#000000;background:rgba(0,0,0,0.85);font-family:'Ubuntu';padding:48px 12px;width:100%;height:100%;display:none;position:fixed;top:0;left:0;text-align:center;z-index:1000000;}#clientdcerror p{width:445px;margin:0 auto;font-family:'Ubuntu';font-size:24px;text-align:center;padding:20px 0;}#clientdcerror a{margin:0 auto;margin-bottom:10px;display:block;}
  </style>
  <div id="clienterror">
  <img src="{imagePath}/habora_new.png"><br /><br />
<p>Oh no!<br/><br/>Could not activate Adobe Flash Player in your browser..<br/><br/>You can try to activate Flash Player using the button below or downloading it from the Adobe page.</p>
<p><a href='http://www.adobe.com/go/getflashplayer' class='button'> Enable Flash / Install</a></p>
</div>
        <script type="text/javascript">
            $('content').show();
        </script>
        <noscript>
            <div style="width: 400px; margin: 20px auto 0 auto; text-align: center">
                <p>If you are not automatically redirected, please <a href="/client/nojs">click here</a></p>
            </div>
        </noscript>
    </div>
    </div>
    <div id="content" class="client-content"></div>
</div>
       
       


    </body>

</html>
 

Stormwind

New Member
Sep 2, 2017
9
0
Thanks, I used this code for the client and fixed some bugs, but there's 3 left that i cannot fix. The client wont start either, its black screen right now.

ERRORS that shows:

Uncaught ReferenceError: FlashExternalInterface is not defined
at client:26
habora_new.png Failed to load resource: the server responded with a status of 404 (Not Found)
client:1 Cross-origin plugin content from must have a visible size larger than 400 x 300 pixels, or it will be blocked. Invisible content is always blocked.
 

HoldUp

dont even
Aug 31, 2017
242
32
Thanks, I used this code for the client and fixed some bugs, but there's 3 left that i cannot fix. The client wont start either, its black screen right now.

ERRORS that shows:

Uncaught ReferenceError: FlashExternalInterface is not defined
at client:26
habora_new.png Failed to load resource: the server responded with a status of 404 (Not Found)
client:1 Cross-origin plugin content from must have a visible size larger than 400 x 300 pixels, or it will be blocked. Invisible content is always blocked.
Well.. The habora_new is the logo that was used in this tutorial?
Change that to {url}/app/tpl/skins/YOURSKINNAME/images/logo.png / logo.gif (depends on what your logo is called.. )
 

Stormwind

New Member
Sep 2, 2017
9
0
Well.. The habora_new is the logo that was used in this tutorial?
Change that to {url}/app/tpl/skins/YOURSKINNAME/images/logo.png / logo.gif (depends on what your logo is called.. )
Yeah man, but that's not a problem that makes my client go black.. I think Uncaught ReferenceError: FlashExternalInterface is not defined
at client:26 is the real problem :((( can't fix it :((.
 

Stormwind

New Member
Sep 2, 2017
9
0
You get that error when you're entering my client?
Lol, i don't get that error. I can't see anything wrong at 118 either. Look:
Code:
<!DOCTYPE html>

<html lang="en">

    <head>

        <link rel="shortcut icon" href="{url}/app/tpl/skins/{skin}/images/favicon.ico" type="image/vnd.microsoft.icon"/>

        <meta http-equiv="content-type" content="text/html; charset=utf-8">

        <title>{hotelName} Hotel</title>



        <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/client.css" type="text/css">
 <link rel="stylesheet" href="{url}/app/tpl/flash.css" type="text/css" />
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="http://brainpark.se/brainclass/app/tpl/skins/Habbo/js/flash_detect_min.js"></script>

        <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/swfobject.js"></script>

        <script type="text/javascript">

            var BaseUrl = "{url}/swfs/gordon/PRODUCTION-201701242205-837386173/";

            FlashExternalInterface.loginLogEnabled = true;
 
    FlashExternalInterface.logLoginStep("web.view.start");

    if (top == self) {
        FlashHabboClient.cacheCheck();
    }
 
    var callback = function(e) {
         
            if(!e.success) {
                document.getElementById("clienterror").style.display = "block";
            }
            else {
                document.getElementById("clienterror").style.display = "none";
            }
            };
         
            var flashvars =

            {

                "client.allow.cross.domain" : "1",

                "client.notify.cross.domain" : "0",

                "connection.info.host" : "localhost",

                "connection.info.port" : "30000",

                "site.url" : "{url}",

                "url.prefix" : "{url}",

                "client.reload.url" : "{url}/disconnected",

                "client.fatal.error.url" : "{url}/disconnected",

                "client.connection.failed.url" : "{url}/disconnected",

                "external.variables.txt" : "{url}/swfs/gamedata/external_variables.txt",

                "external.texts.txt" : "{url}/swfs/gamedata/external_flash_texts.txt",

                "external.override.texts.txt" : "{url}/swfs/gamedata/override/external_flash_override_texts.txt",

                "external.override.variables.txt" : "{url}/swfs/gamedata/override/external_override_variables.txt",

                "external.figurepartlist.txt" : "{url}/swfs/gamedata/figuredata.xml",

                "productdata.load.url" : "{url}/swfs/gamedata/productdata.txt",

                "furnidata.load.url" : "{url}/swfs/gamedata/furnidata.xml",

                "use.sso.ticket" : "1",

                "sso.ticket" : "{sso}",

                "client.starting" : "Please wait! {hotelName} is starting up.",

                "processlog.enabled" : "0",

                "flash.client.url" : BaseUrl,

                "client.starting.revolving" : "Whololo/Tijd is maar een illusie./Gotta go fast!/Your computer might blow up./Don't panic!/You might die./Get yourself a drink while waiting./Whats that noise?/",

                "flash.client.origin" : "popup"

            };

            var params =

            {

                "base" : BaseUrl + "/",

                "allowScriptAccess" : "always",

                "menu" : "false"

            };
         
            if (!(HabbletLoader.needsFlashKbWorkaround())) {
            params["wmode"] = "opaque";
            }

            swfobject.embedSWF(BaseUrl + "Habbo.swf", "client", "100%", "100%", "10.0.0", "xxx", flashvars, params, null, callback);

            window.onbeforeunload = unloading;
    function unloading() {
        var clientObject;
        if (navigator.appName.indexOf("Microsoft") != -1) {
            clientObject = window["flash-container"];
        } else {
            clientObject = document["flash-container"];
        }
        try {
            clientObject.unloading();
        } catch (e) {}
    }
    window.onresize = function() {
        HabboClient.storeWindowSize();
    }.debounce(0.5);
 
        </script>

    </head>


    <body>


       <div id="client-ui" >
    <div id="flash-wrapper">
    <div id="flash-container">
        <style>
  #clienterror{color:#FFFFFF;background:#000000;font-family:'Ubuntu';padding:250px 12px;width:100%;height:100%;display:none;position:fixed;top:0;left:0;text-align:center;z-index:1000000;}#clienterror p{width:445px;margin:0 auto;font-family:'Ubuntu';font-size:24px;text-align:center;padding:20px 0;}#clienterror a{margin:0 auto;margin-bottom:10px;display:block;}#clientdcerror{color:#FFFFFF;background:#000000;background:rgba(0,0,0,0.85);font-family:'Ubuntu';padding:48px 12px;width:100%;height:100%;display:none;position:fixed;top:0;left:0;text-align:center;z-index:1000000;}#clientdcerror p{width:445px;margin:0 auto;font-family:'Ubuntu';font-size:24px;text-align:center;padding:20px 0;}#clientdcerror a{margin:0 auto;margin-bottom:10px;display:block;}
  </style>
  <div id="clienterror">
  <img src="{imagePath}/habora_new.png"><br /><br />
<p>Oh no!<br/><br/>Could not activate Adobe Flash Player in your browser..<br/><br/>You can try to activate Flash Player using the button below or downloading it from the Adobe page.</p>
<p><a href='http://www.adobe.com/go/getflashplayer' class='button'> Enable Flash / Install</a></p>
</div>
        <script type="text/javascript">
            $('content').show();
        </script>
        <noscript>
            <div style="width: 400px; margin: 20px auto 0 auto; text-align: center">
                <p>If you are not automatically redirected, please <a href="/client/nojs">click here</a></p>
            </div>
        </noscript>
    </div>
    </div>
    <div id="content" class="client-content"></div>
</div>
     
     


    </body>

</html>
 

Users who are viewing this thread

Top