Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

How do I install "autostarter" from dev center?

9 replies [Last post]

Hi,

I'm a newb to Actionscript and wanted to know how to install the autostarter plugin (from the Developer wiki). It's not just a matter of clicking on "Get This!". So what am I supposed to do? Can someone help with simple instructions?

Thanks in advance!

David K.

First we need to know what style of player embedding code you are using.

Here is the code for the page...

<script src="/swfobject.js"></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','230','193','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=video/default.flv&autostart=true');
s1.addVariable("repeat","none");
s1.write('preview');
</script>

-David K

<html>

  <head>

    <script src="/swfobject.js"></script>

  </head>

  <body>

    <div id="playercontainer"><a id="preview" href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Adobe Flash Player to see this video.</a></div>

    <script type='text/javascript'>
      var s1 = new SWFObject('player.swf', 'player', '230', '193', '9.0.124');
          s1.addParam('allowfullscreen',        'true');
          s1.addParam('allowscriptaccess',      'always');
          s1.addVariable('file',                'video/default.flv');
          s1.addVariable('autostart',           'true');
          s1.addVariable('repeat',              'none');
          s1.addVariable('plugins',             'autostarter');
          s1.addVariable('autostarter.count',   '3');
          s1.write('preview');
    </script>

  <body>

<html>

Ok, I copied and pasted exactly what you have there into my page. I reloaded and reloaded, but no success. It still plays every time. I adjusted the count to '1', also. Still no success.

Any ideas?

Thanks!

-David K

Yeah, it works quite well. I'm up to 55 counts before it will autostart.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">

  <head>

    <title>Simple Autostart Plugin - JWMP v4.4.x - swfobject v2.1</title>

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script>

    <script type='text/javascript'>
      var flashvars =
      {
        'file':                         '/Movies/video1.flv',
        'repeat':                       'none',
        'playlist':                     'bottom',
        'playlistsize':                 '60',
        'plugins':                      'autostarter',
        'autostarter.count':            '55',
        'frontcolor':                   '86C29D', // text & icons                  (green)
        'backcolor':                    '003367', // playlist background           (blue)
        'lightcolor':                   'C286BA', // selected text/track highlight (red)
        'screencolor':                  '000000', // screen background             (white)
        'id':                           'playerId1',
        'autostart':                    'true'
      };

      var params =
      {
        'allowfullscreen':              'true',
        'allowscriptaccess':            'always',
        'bgcolor':                      '#000000'
      };

      var attributes =
      {
        'name':                         'playerId1',
        'id':                           'playerId1'
      };
      
      swfobject.embedSWF('player-4.4.182.swf', 'player', '320', '320', '9.0.124', false, flashvars, params, attributes);
    </script>

  </head>

  <body>

    <div id="playercontainer" class="playercontainer"><a id="player" class="player" href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Adobe Flash Player to see this video.</a></div>

  <body>

<html>

I tried to use what you posted - adjusting it to play my movie. It still didn't work. This time, it doesn't play unless I push "play". I tried emptying my cache and clearing cookies, but still no luck!

Help!

David K

You have to clear the cookie manually.

Search for "com.jeroenwijering.autostarter".

I found it in: C:\Documents and Settings\Chris\Application Data\Macromedia\Flash Player\#SharedObjects\PQ6WPL39\willswonders.myip.org

I'm sorry but i've the same problem.
I've found and deleted the cookie file but the player still play everytime even if I define the autostarter.count to 1.
What can I do ?

Can you paste a link to a page demonstrating the error?