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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:36:58+00:00 2026-05-22T19:36:58+00:00

Well i just want to know that using static publishing method SWF-Object , can

  • 0

Well i just want to know that using static publishing method SWF-Object , can we pass flashvars to flash swf file??

The static publish method is

<head>
    <title>SWFObject 2 static publishing example page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script type="text/javascript" src="embedswf/swfobject.js"></script>
    <script type="text/javascript">
    swfobject.registerObject("myId", "9.0.0", "embedswf/expressInstall.swf");
    </script>
</head>

<body>
    <div>   
        <object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height="750" flashvars="var1=irfan" params="var1=irfan">
            <param name="movie" value="fish.swf" />
            <!--[if !IE]>-->
            <object type="application/x-shockwave-flash" data="fish.swf" width="600" height="750" flashvars="var1=irfan" params="var1=irfan">
            <!--<![endif]-->
            <div>
                <h1>Alternative content</h1>
                <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
            </div>
            <!--[if !IE]>-->
            </object>
            <!--<![endif]-->
        </object>
    </div>
</body>

but the flashvars and params are not passed to flash file??

  • 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-22T19:36:59+00:00Added an answer on May 22, 2026 at 7:36 pm

    I think what you’re asking is if you’ve got a statically embedded SWF using SWFObject…. thats about the only way that really makes sense. In that case the answer is yes. Even if your embed tag was dynamically generated using PHP or something, you can still pass flash vars. Easiest way to do this is to download and install the swfObject AIR app for generating your embed tag.

    http://code.google.com/p/swfobject/downloads/list

    You’ll see an area for flashvars. It’s simply key/value pairs so create a key, “keyname” and populate it with your data. Then in AS3 inside your main class (or anywhere really) you can access this data like so:

    root.loaderInfo.parameters.keyname;
    

    So lets say you have a key “userName” with the value “myUser”. You can get this like so:

    var uName:String = root.loaderInfo.parameters.userName;
    trace(uName);
    

    Obviously you’re gonna want to do some basic checking to ensure these objects exist and what not, but this is pretty much how you access flash vars, and also happens to be the same way you access GET variables on the SWF url.

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

Sidebar

Related Questions

I just want to check if I understood well the way asynchronous Http request
I got this code from someone and it works very well, I just want
Well I know it's not evil just not as pretty in semantics as <strong>
Maybe I just don't know .NET well enough yet, but I have yet to
I'm pretty new to APEX ( well, just started using it ~an hour ago),
A Java version of this question was just answered, and, well, I don't know
Well, just to keep it simple: I have a webform. On it a button
I'm just starting with The Well-Grounded Rubyist, and they gave the following example: print
Well, I'm gonna be pretty straightforward here, I just have a piece of code
Ok another WPF question, well I guess this is just general .NET. I have

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.