Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

23 Posts in 9 Topics by 9 members

Jump to:

General Discussion

If this is your first visit, you will need to register before you can post. However, you can browse all messages below.

Forums » General Discussion » Basic Installation Question

Page: 1 Go to End
Author Topic: Basic Installation Question 717 Views
  • Kevmeister
    avatar
    Community Member
    1 posts

    Basic Installation Question Link to this post

    Is this all I need? It doesn't seem to load anything. I have all files in the same folder (including swfobject.js). I am using the personal but will purchase pro as soon as I get it to work.

    Thanks,
    Kevin

    <html>
    <head>
    <title>Demonstration</title>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Language" content="en"/>

    <script type="text/javascript" src="swfobject.js"></script>

    <script type="text/javascript">
       var flashvars = {
    JSON: '{"debug":true,' +
    '"ui":{"style":"light"},' +
    '"vitems":[' +
    '{' +
    '"id":"1",' +
    '"layer":"video",' +
    '"url":"video1.flv",' +
    '"variant":"flv",' +
    '"width":788, "height":460' +
    '},' +
    '{' +
    '"id":"2",' +
    '"layer":"video",' +
    '"url":"video2.flv",' +
    '"variant":"flv",' +
    '"width":788, "height":460' +
    '}' +
    ']}'
    };
    var params = {
    swfliveconnect: "true",
    allowScriptAccess: "always",
    salign: "lt",
    scale: "noscale",
    loop: "false"
    };
    var attributes = {
    name: "CosolventPlayer",
    id: "CosolventPlayer"
    };

    swfobject.embedSWF("cosolventplayer.swf", "flashcontent","788", "460", "9.0.0", "expressInstall.swf",flashvars, params, attributes);
    </script>

    </head>
    <body>
    <p>
    hello world<p></p>
    </body>
    </html>

  • joseph.gay
    avatar
    Community Member
    28 posts

    Re: Basic Installation Question Link to this post

    Hi,
    The main issue I see from your code sample is that you need to provide a div for swfobject to replace. That div's id should be the id that you pass to swfobject, so in your case, flashcontent. See the revised code below.
    ------------
    <html>
    <head>
    <title>Demonstration</title>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Language" content="en"/>
    <script type="text/javascript" src="swfobject.js"></script>
    <script type="text/javascript">
    var flashvars = {
    JSON: '{"debug":true,' +
    '"ui":{"style":"light"},' +
    '"vitems":[' +
    '{' +
    '"id":"1",' +
    '"layer":"video",' +
    '"url":"video1.flv",' +
    '"variant":"flv",' +
    '"width":788, "height":460' +
    '},' +
    '{' +
    '"id":"2",' +
    '"layer":"video",' +
    '"url":"video2.flv",' +
    '"variant":"flv",' +
    '"width":788, "height":460' +
    '}' +
    ']}'
    };

    var params = {
    swfliveconnect: "true",
    allowScriptAccess: "always",
    salign: "lt",
    scale: "noscale",
    loop: "false"
    };

    var attributes = {
    name: "CosolventPlayer",
    id: "CosolventPlayer"
    };

    swfobject.embedSWF("cosolventplayer.swf", "flashcontent", "788", "484", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
    </script>
    </head>
    <body>
    <p>
    hello world
    </p>

    <div id="flashcontent">
    </div>

    </body>
    </html>
    ------------
    Hopefully you can see from that what was changed. Note the size passed to swfobject, 24 pixels should be added to the max video height in order to accommodate the control bar. The ui style setting won't hurt anything, but we only have the one skin for now. We still have modularized skinning on the horizon, but its not yet available. Let me know if that helps.

    Joe

  • joseph.gay
    avatar
    Community Member
    28 posts

    Re: Basic Installation Question Link to this post

    Hi,
    If you are still having trouble, try our latest release available here in the forums. The personal release package now includes sample code. Also, with previous releases we failed to document the need to deploy the player along with the flex framework runtime shared libraries. We now bundle those libraries along with a statically linked version of the player that can be used standalone.

    717 Views
Go to Top

Currently Online: There is nobody online.

Welcome to our latest member: y0rk1e