Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7899175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:37:54+00:00 2026-06-03T08:37:54+00:00

I looked around internet and was always looking like from previous 6 months for

  • 0

I looked around internet and was always looking like from previous 6 months for a script that could load flash content/game while showing an actual loading screen But I always received a few answers:

  1. It is not possible to show an actual loading with Javascript.
  2. You can do it only by adding action script to the flash file maybe they are talking about FLA
  3. Why Don’t you show a fake loading screen that appears and show some
    seconds and then disappears (the most annoying this of such screen
    is that they first make user load 15 seconds then the flash starts
    loading, if it starts loading those 15 seconds still it is worth
    something it is good BUT making them wait double is really bad)

But at last I found something that I was looking forever. A Jquery based script that shows actual loading (shows ad too) and uses swf Object to talk to flash content too. It is really awesome as it doesn’t require you to do changes to the FLA, it is just pure outer environment dealing. So now the question arises what’s the issue then. Well the issue is that this script was made for pixels, it works if you are using width and height for flash in pixels, while I can’t use pixels as I am using %ages (this way user have ability to go full screen optionally by pressing f11).

So as you can see I want that script to work with %ages that is my problem, but as I mentioned earlier I didn’t came here right away I have been asking for help (Actually Begging) in over 14 forums from previous few months and of course some good people still exists some people helped me to reach a certain point (but it didn’t solve the problem) So now I will provide some Markup:

Here is link to the script that I am talking about http://www.balloontowerdefense.net/jquery-preloader/jquery-preloader.html (It is the link to the creator of this script)

Here is a link to working example (flash based on Pixels) http://www.balloontowerdefense.net/jquery-preloader/example.html

Some one helped me here but it didn’t work 1 month ago. The person told me that I should change the plugin Named as Preroll the changes preferred were these

Modify the plugin to use user-supplied units instead of pixels. To do this, you will need to modify two functions in the plugin, applygameiframe and showgame.

applygameiframe should be changed to:

var applygameiframe = function() {
  var gc = '#'+settings.gameframe;
  var iframe = $('<iframe />').attr({
    "id": settings.gameid,
    "src": settings.swf,
    "frameborder": 0,
    "scrolling": "no",
    "marginwidth": 0,
    "marginheight": 0
  }).css({
    "height":'settings.height
    "width": settings.width
  });
  $(gc).append(iframe);
  return true;
};

showgame should be changed to:

var showgame = function() {
    var ac   = '#' + settings.adframe;
    var game = '#' + settings.gameframe;
    $(ac).hide();
    $(game).css({
    "width": settings.width,
    "height": settings.height
    });
};

Once those changes are made, the inline CSS should be set to whatever you supply as parameters (i.e., 100%, 50em, etc.).

I did the changes told to be done as described above to the Preroll plugin and after that this is what I get http://files.cryoffalcon.com/MyFootPrint/fullscreen.html

Now if you let the game load (as loading screen appears) all is well done except that in the end, the game doesn’t appear, it loads but when it should skip and make the game appear at that time something goes wrong. (For reference you can see this link http://www.balloontowerdefense.net/jquery-preloader/example.html here when the loading finishes then game appears)

Can Someone Fix this problem?

Note: Sorry for not providing JsFiddle but as I live in Afghanistan with 5KBps speed it is not possible for me.

I didn’t provided the HTML, CSS and JS that makes up the whole demo page as I thought it will make the question very long but still if you think I should provide Please let me know in comments.

I tried my best to make the question more relevant with Relevant Markups BUT still If I am missing something I would try my best by editing it and providing it you again.

Being an accountant, I tried my best to use programmers terms, coding is my passion but I am still in learning stage of JS

UPDATE: After solving the problem here you can see now everything is fine. http://files.cryoffalcon.com/MyFootPrint/newfullscreen.html
Credit: Goes to the one who answered this question.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T08:37:55+00:00Added an answer on June 3, 2026 at 8:37 am

    This seems to be just a pure css problem. You’re trying to set the width to 100% while the parent of div.gamewrapper has no width or height. That’s why the size is 0 and it will not show up.

    The trick you need to apply is add the following to your style:

    html, body, .gamecontent {
        height: 100%;
        width: 100%;
    }
    

    Update:
    Also, remove float: left; from .gamecontent .game, and add a width and height of 1px such that it becomes:

    .gamecontent .game {
        margin:0px auto 0px auto;
        padding:0px;
        overflow:hidden;
        width : 1px;
        height : 1px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've looked around the internet and haven't quite found what I'm looking for. I
I have looked around the internet for 3 hours now looking for a solution
I have looked around the internet for something that will do this but it
I looked around on the Internet but could not find a proper answer: Is
I've looked around all day yesterday for a working HTML validator that I could
I have looked around here and the Internet in general but it seems this
I looked around and found that there is an onerror function for flexigrid but
i've looked around the internet but can't seem to find what i need. I
I have looked around stackoverflow and search the internet but did not find a
I have a rails 3 application and looked around in the internet for daemons

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.