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 7831727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:51:32+00:00 2026-06-02T11:51:32+00:00

I am trying to load a flash movie after the dom content has loaded.

  • 0

I am trying to load a flash movie after the dom content has loaded. For this I use jQuerys document ready functionality. But the flash won’t load if it’s inside of the document ready. It will load on the outside.

Most basic version of the code.

<html>
<head>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script src="js/swfobject.js"></script>
</script>
<body>
    <div id="uploader-1"></div>
</body>
<script>
$(document).ready(function() {
    var i =1;       
    flashElement = $('#uploader-1');

    var swfVersionStr = "11.1.0";
    var flashvars = {"x": 10, "y": 12};
    var params = {"wmode": "transparent"};
    params.quality = "high";
    params.allowscriptaccess = "sameDomain";
    params.allowfullscreen = "false";
    var attributes = {};
    attributes.id = "uploader-1";
    attributes.name = "uploader-1";
    attributes.styleclass = "uploader";

    swfobject.embedSWF(
        "flash/Uploader.swf", "uploader-1",
        '1000px', '1000px',
        swfVersionStr, false, 
        flashvars, params, attributes);
    swfobject.createCSS("#uploader-1", "position: absolute; left: 10px; top: 10px; width: 1000px; height:1000px;");
});
</script>

If I run this exact code without the doc ready. it works. (also it might be worth mensioning that when inspecting the source the dom is exactly the same) Any suggestions? I tried searching both SO and google but have not found anything similar to this. Issue appears in IE8

  • 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-02T11:51:33+00:00Added an answer on June 2, 2026 at 11:51 am

    Finnaly solved it. it seemed to be a cache issue loading an old, old, old version of the movie.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to load an xml file from wikipedia into my flash movie.
This problem occurs when I'm trying to load images through flash. For example when
Im trying to load a flash movie using swfobject which i have been successful
I'm trying to load Gravatars into Flash. Luckily, they provided a crossdomain.xml file at
Hai am trying to load the variables from parent(flash) to child(flash).Its working fine,. parent
Trying to load content into a div, then on click load the previous content
I trying to load and save setting with this code but when I closing
i am trying to create a new flash movie. i am using CS4, for
I'm trying to load some XML into flash to populate some dynamic text fields.
I'm using the flash 10 activex control to load a flash movie into my

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.