Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2007
    Posts
    87
    Plugin Contributions
    0

    Default Flash hack question

    Hi all,
    I started with the blank_sidebox which works great, and I simply took the code for flash from the flash hacks sidebox and manipulated it into the blank_sidebox code.
    All works fine, but I can't get the code to work for a false loop, the code I use does not work.
    I am using 1.3.8a upgraded from 1.3.7.

    I would prefer to use an flv which would give me a play arrow.
    Any suggetsions?

    $content .= '<script type="text/javascript">';
    $content .= 'swfobject.embedSWF("video/easyhome.swf","myContent", "false", "142", "100","8.0.0");';
    $content .= '</script>';
    $content .= '<div id="myContent"><p>Alternative content</p></div></div></div>';

  2. #2
    Join Date
    Jan 2007
    Posts
    87
    Plugin Contributions
    0

    Default Re: Flash hack question

    Hi again,

    If I use this code do I simply add $content .= ' to each line of code to get it to work?
    Code:
    <p id='preview'>The player will show in this paragraph</p>
    
    <script type='text/javascript' src='swfobject.js'></script>
    <script type='text/javascript'>
    var s1 = new SWFObject('player.swf','player','140','100','9');
    s1.addParam('allowfullscreen','true');
    s1.addParam('allowscriptaccess','always');
    s1.addParam('flashvars','file=video/easyhome.flv');
    s1.write('preview');
    </script>

  3. #3
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Flash hack question

    SwfObject should be loaded from the template javascript folder. The code shown on JW web site looks like version 1.5, I couldn't download their player to see.

    The players work the same, so using swfobject 2 or 2.1, just code the player like this..

    Code:
    $content .= 'swfobject.embedSWF("player.swf?file=video/easyhome.flv&autoStart=false","myContent", "142", "100","8.0.0");';
    I would prefer to use an flv which would give me a play arrow.
    The flv wont work without the swf! and that the swf has the skin, arrows and buttons.
    Dave
    Always forward thinking... Lost my mind!

  4. #4
    Join Date
    Jan 2007
    Posts
    87
    Plugin Contributions
    0

    Default Re: Flash hack question

    Hey got it, thanks a lot, I excluded the control bar works great.

    Bill

 

 

Similar Threads

  1. Flash hack&blank sidebox = blank page
    By AmandaGero in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Apr 2009, 06:19 PM
  2. Post hack Question
    By pixelpadre in forum General Questions
    Replies: 1
    Last Post: 8 Dec 2008, 08:45 PM
  3. Flash with XML hack: could use an iFrame
    By websitebob in forum General Questions
    Replies: 0
    Last Post: 29 Aug 2007, 11:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg