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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:55:29+00:00 2026-05-13T05:55:29+00:00

I am trying to do a very minimalistic sample of borderless video using swfobject

  • 0

I am trying to do a very minimalistic sample of borderless video using swfobject and some cookie code that checks if a site visitor has been there before. The latter cookie code works, but basic SWFObject 2.2 code doesn’t.

My problem is that the SWFObject 2.2 library from code.google is not working as expected; specifically it is NOT obeying the params.play=’false’ and it is autoplaying the SWF each time, regardless of how i set this attribute (it disobeys). I read a cookie from the given domain, and should it be set with ‘autostart_video=false’ I then pass the string “false” to that SWFObject play parameter, with the purpose of making it NOT autostart the video upon refresh. The cookie checking code, but the @#$%#$@$ swf code doesn’t. In the simplest example below, I’ve excluded the cookie code altogether to test just the SWFobject code by itself.

The attribute in the code sample below is using static publishing but dynamic publishing method doesn’t work either (tried both methods). I was beginning to think there was something wrong with the sample SWF file itself, but tested it with other swfs and they all have this behavior.

The code below was generated using the “SWFObject 2 HTML and JavaScript generator v1.2” that google published.

I tried to reverse the swfobject library, and frankly the code is obfuscated or just well beyond me, so cannot find where it’s setting the params and/or autoloading more libraries otherwise i’d not ask for help.

At any rate, please help!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
            <head>
                <title></title>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                <script type="text/javascript" src="swfobject/swfobject.js"></script> <!--path is correct-->
                <script type="text/javascript">
                    swfobject.registerObject("myFlashContent", "9.0.0");
                </script>
            </head>
            <body>
                <div>
                    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="600" id="myFlashContent" align="middle">
                        <param name="movie" value="swfObject2.2-is-retarded.swf" />
                        <param name="play" value="false" />
                        <param name="loop" value="false" />
                        <param name="menu" value="false" />
                        <param name="quality" value="autohigh" />
                        <param name="scale" value="noscale" />
                        <param name="wmode" value="transparent" />
                        <!--[if !IE]>-->
                        <object type="application/x-shockwave-flash" data="dwfObject2.2-is-retarded.swf" width="400" height="600" align="middle">
                            <param name="play" value="false" />
                            <param name="loop" value="false" />
                            <param name="menu" value="false" />
                            <param name="quality" value="autohigh" />
                            <param name="scale" value="noscale" />
                            <param name="wmode" value="transparent" />
                        <!--<![endif]-->
                            <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>
                        <!--[if !IE]>-->
                        </object>
                        <!--<![endif]-->
                    </object>
                </div>
            </body>
        </html>
  • 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-13T05:55:29+00:00Added an answer on May 13, 2026 at 5:55 am

    <param name="play" value="false" /> isn’t designed to stop a video from playing, only the SWF.

    Most video player SWFs are not timeline-based and are ActionScript-based instead. This means they are almost 100% AS, which usually means they only consist of one or two frames. If there is only one frame in the project, and the project relies on ActionScript to do stuff, stopping the SWF on the first frame will have zero effect… the ActionScript on frame one will still execute. In turn, the linked video will still be loaded and will play.

    So what you’ll need to do is determine if your player SWF has an internal variable you can set to prevent auto-play. This then needs to be communicated to the SWF using the FlashVars param, not the “autoplay” param — that param simply tells Flash Player not to let the SWF go past frame one when loaded. It doesn’t prevent ActionScript from executing, and is completely independent from the video controller.

    For example, if your video player SWF uses an internal variable named “autostart”, and it accepts a boolean as an argument, you’d write it as:

    <param name="flashvars" value="autostart=false" />
    

    Check the documentation for your video player SWF to see what flashvars are available to you.

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

Sidebar

Related Questions

I'm trying to do a very simple INSERT using VB.NET. For some reason I'm
I am trying something very simple, but for some reason it does not work.
I'm trying to do a very simple button that changes color based on mouseover,
i am trying to compile this very simple piece of code class myList {
I am trying to do some very simple form validation checking for null or
I've tried to build a very minimalistic memory read library to read some unsigned
I'm doing some template work on a personal project and I'm trying very hard
I'm trying a very basic XPath on this xml (same as below), and it
I'm trying to compile/link a very old piece of software on a linux system
I'm trying to get something very subtle to work, it looks pretty awful right

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.