Not signed in (Sign In)

Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorcaelestis
    • CommentTimeMay 18th 2007
     
    Hello,

    I have spent days trying to figure this one out and I can't.

    I have a swf file that loads a FLV file using the standard flash 8 player FLVPlayback. It is an intro movie so I am not using any controls for this FLV.

    What my swf does it display a 5,4,3,2,1, coutdown and then on the last frame I have the FLVPlayback autostart my FLV file.

    When I use the standard code to generated by Flash 8 to embedd the swf it works great but I have to activate it.

    If I change nothing and use SWFObject or UFO my swf will just loop continuously and never play the FLV file.

    The code I am using is for SWFObject is:

    <script type="text/javascript">
    // <![CDATA[
    var so = new SWFObject("skip.swf", "skip", "550", "400", "9", "#000000");

    so.addVariable("flashVarText", "this is passed in via FlashVars for example only"); // this line is optional, but this example uses the variable and displays this text inside the flash movie

    so.addParam("wmode", "opaque");
    so.write("flashcontent");
    // ]]>
    </script>


    With the proper UFO code I get the same results.

    All my files are in the same directory, the FLVPlayvack paramater contentPath in the swf is Webvideo13.flv

    I have seen alot of examples of people defining their FLV file like:

    <script type="text/javascript">
    var s1 = new SWFObject("skip.swf","single","550","400","7");
    s1.addParam("allowfullscreen","true");
    s1.addVariable("file","Webvideo13.flv");
    s1.addVariable("image","preview.jpg");
    s1.write("player1");
    </script>

    But that doesnt work for me. My swf just will loop forever. No error messages of any kind it just loops. Do I need to import that s1 varaible into my FLVPlayback component somehow??

    Any insight into this would be greatly appreciated.

    Thanks!
    • CommentAuthorAran
    • CommentTimeMay 18th 2007
     
    Hi.

    PLease post examples of your working <object / embed> version, and the non working swfObject pages so we can see any differences you might have missed.
    • CommentAuthorcaelestis
    • CommentTimeMay 19th 2007
     
    Thanks for the reply,

    The standard Flash 8 <object / embed> at http://members.cox.net/caelestis/flash8.html

    The code:

    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="330" height="350" id="skip" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="skip.swf" /><param name="loop" value="false" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><embed src="skip.swf" loop="false" quality="high" bgcolor="#000000" width="330" height="350" name="skip" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>

    Below are my two pages that just loop the swf file using SWFObject and UFO.

    I have tried this on my cox webspace, a godaddy windows and linux plan, and a windows 1stchoicehosting plan, and all 4 different platforms give me the same results on the files.

    http://members.cox.net/caelestis/swfobject.html
    http://members.cox.net/caelestis/ufo.html

    I also included my skip.fla file at http://members.cox.net/caelestis/skip.fla

    Maybe something is wrong in my FLVPlayback paramaters?

    Thanks for any help you can offer!
    • CommentAuthorAran
    • CommentTimeMay 20th 2007
     
    caelestis.

    This code below works in IE6 and FF2. I have put an absulute path on everything so I could test it from my desktop.

    <html>
    <head>
    <script type="text/javascript" src="http://members.cox.net/caelestis/swfobject.js"></script>
    </head>
    <body bgcolor="#000000">
    <div id="flashcontent">
    alternate content goes here
    </div>

    <script language="JavaScript" type="text/javascript">
    // <![CDATA[
    var so = new SWFObject("http://members.cox.net/caelestis/skip3.swf", "flvskip", "330", "350", "8", "#000000");
    so.write("flashcontent");
    // ]]>
    </script>
    </body>
    </html>