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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:27:03+00:00 2026-05-25T13:27:03+00:00

I have 20 different flash files that i need to play randomly when a

  • 0

I have 20 different flash files that i need to play randomly when a user enters a zip code. I am done with the project, but the way I have done it is I think could have been done a lot better. I have 20 different aspx files that have the flash object. I redirect users to different aspx files based on the random number using Random class. Is there a way to just have one aspx file where the param value and data could be passed using a variable. That way, its easier to maintain and i don’t have to go to 20 different aspx files to update anything. Here is what the flash object looks like.

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="960" height="952"
            id="HOT" align="middle">
            <param name="movie" value="../FlashFiles/FirstTime/HOT_00.swf" />
            <param name="quality" value="high" />
            <param name="bgcolor" value="#000000" />
            <param name="play" value="true" />
            <param name="loop" value="true" />
            <param name="wmode" value="transparent" />
            <param name="scale" value="showall" />
            <param name="menu" value="true" />
            <param name="devicefont" value="false" />
            <param name="salign" value="" />
            <param name="allowScriptAccess" value="sameDomain" />
            <!--[if !IE]>-->
            <object type="application/x-shockwave-flash" data="../FlashFiles/FirstTime/HOT_00.swf" width="960" height="952">
                <param name="movie" value="HOT.swf" />
                <param name="quality" value="high" />
                <param name="bgcolor" value="#000000" />
                <param name="play" value="true" />
                <param name="loop" value="true" />
                <param name="wmode" value="transparent" />
                <param name="scale" value="showall" />
                <param name="menu" value="true" />
                <param name="devicefont" value="false" />
                <param name="salign" value="" />
                <param name="allowScriptAccess" value="sameDomain" />
                <!--<![endif]-->
                <a href="http://www.adobe.com/go/getflash">
                    <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
                        alt="Get Adobe Flash player" />
                </a>
                <!--[if !IE]>-->
            </object>
            <!--<![endif]-->
        </object>

Please advise!! 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-05-25T13:27:03+00:00Added an answer on May 25, 2026 at 1:27 pm

    SwfObject is commonly used to write the flash tag from JavaScript, passing any necessary parameters. It’s a bit cleaner than writing the tag manually. You can emebed the name of the flash movie by a server side call as shown below, or use pure JavaScript.

    var flashvars = {};;
    flashvars.basePath = "/";
    
    var params = {};
    params.allowScriptAccess = "always";
    params.base = "/";
    params.bgcolor = "#000000";             
    params.wmode = "transparent";
    params.scale = "noscale";
    params.salign = 'tr';
    
    swfobject.embedSWF("<%= GetRandomFlashMove() %>", 
                       "BaseLoader",
                       "976",
                       "561",
                       "10.0.0",
                       "/expressInstall.swf",
                       flashvars, params);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a flash project that shall target different platforms. However - code is
I have different urls that points to the same code www.url1.com www.url2.com I need
I have two functions that have different enough logic but pretty much the same
My problem is this: I have 16 x different sizes of flash files. (banners)
I have a content scroller in my Flash CS5/AS3 project that I want to
I have some Flash animations that I need to interact with in Flex. The
I'm working on a Flash project that deals with multiple files. There is a
I have noticed over the years that different developers have different criteria for what
I have a flash .swf file that I embed on my webpage. On my
I have a file that is really in csv format but is being handed

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.