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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:07:49+00:00 2026-06-10T06:07:49+00:00

basically, I have an swf file that is set to play 10 seconds after

  • 0

basically, I have an swf file that is set to play 10 seconds after a button is pressed. When the swf is suposed to pop up, it shows a white screen while the swf is loading. I would like to elimenate that. This is my javascript that I am using right now to show the swf 10 seconds after the button push:

<script type="text/javascript">
    function flash() {
 $('#stage').html('<OBJECT style="z-index:2; position:absolute; top:20%; left:15%;" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="90%" HEIGHT="70%" id="rice" ALIGN=""><PARAM NAME=movie VALUE="rice.swf"><PARAM NAME=quality VALUE=low><EMBED src="rice.swf" quality=low bgcolor=#EEEEEE WIDTH="90%" HEIGHT="90%" NAME="rice" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED> </OBJECT>');
}
</script>

I am using setTimout for the wait time. That works, but as I said, it shows the white (well, I changed the bgcolor to EEEEEE so that color) “loading” screen. I tried putting “display:none” in the div, the object tag, and the embed tag where the swf is, and then using a javascript function to change the “display:none” to “display:block” when the button is pressed. I know for a fact that that JS function works, because I am using it for other elements on the page. Here is that JS:

<script type="text/javascript">
    function showStuff(id) {
        document.getElementById(id).style.display = 'block';
}
</script>

And if I were to do that (hide then show the swf) I would need to stop the sound of it. I wouldnt need to pause the swf while it is hidden because it is a short .5 second looping animation. I hope someone can help, thanks.

  • 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-10T06:07:50+00:00Added an answer on June 10, 2026 at 6:07 am

    You should use the jquery library to access the show() and hide() functions 🙂
    like so…

    function showStuff(id) {
         $('#' + id).show();
    }
    

    also… to hide it when the document is ready do…

    $(document).ready(function(){ 
        $('#YourId').hide(); 
    }); 
    

    as for stopping the sound, you should go here:
    Stop music from in flash from javascript event

    Hope this helped 🙂

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

Sidebar

Related Questions

I basically have a program that filters records from one excel file to another
I maintain a C++ application that uses flash ocx to play SWF file. When
Hi I have this code below which basically after 25 seconds of showing the
I basically have a server set up and I'm accepting new clients(UNIX) and i'm
I basically have 7 select statements that I need to have the results output
I basically have to do a update of a record. I have a set
basically have two questions. 1. Is there a c++ library that would do full
I have a flash application(.swf format). I wanted to package the entire swf file
I basically have a web-browser control that is going through and automatically completing some
I basically have: Public Class Job: MyBaseClass { public virtual string JobInformation {get;set;} ...

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.