logo

$20
how to get a flash file working properly in a wordpress page

I'm lost with flash.

http://developer.nelsonbostock.com/index.html

got a flash file (holder.swf) which is calling on a series of sub files to animate as per the demo above, which is working fine in the index.html page but not when i try to load the file in a Wordpress page using kimili flash embed (see how the individual animations don't load here: http://developer.nelsonbostock.com/index.php/who-we-are/

because the file links to other pages on the website, i can't embed it as an iframe otherwise the links load in the iframe.

what am I missing / what's the best way to get this working please?

Dave Smith | 03/16/10 at 10:15am | Edit


(3) Possible Answers Submitted...

  • avatar
    Last edited:
    03/16/10
    11:18am
    Edouard Duplessis says:

    the best thing is to use absolute path in your flash...

    or make a variable in your flash for your site root...

    like that:

    var root = http://www.mysite.com/myflashfile/


    and when you call your file in flash call it like that:
    $root./flash.swf


  • avatar
    Last edited:
    03/16/10
    4:29pm
    Erez S says:

    http://developer.nelsonbostock.com/nelson-bostock-flash/index.html
    is'nt working,and on
    http://developer.nelsonbostock.com/index.php/who-we-are/
    the flash is working perfect
    so i don't understand what is the problem

    • 03/16/10 1:07pm

      Dave Smith says:

      sorry, see updated url in q'n or here: http://developer.nelsonbostock.com/index.html for the correctly working flash file. i'm still working in the background to try to fix it myself hence the changes

    • 03/16/10 1:13pm

      Erez S says:

      do you want to show it on every post,or to have short tag which you'll write on your post and this will show the flash?

    • 03/16/10 1:17pm

      Dave Smith says:

      the latter would be best

    • 03/16/10 1:34pm

      Erez S says:

      function jjj_showflash(){
      return '
      <object type="application/x-shockwave-flash" data="http://developer.nelsonbostock.com/holder.swf" width="550" height="210" id="VideoPlayback">
      <param name="movie" value="http://developer.nelsonbostock.com/holder.swf" />
      <param name="allowScriptAcess" value="sameDomain" />
      <param name="quality" value="best" />
      <param name="bgcolor" value="#ffffff" />
      <param name="scale" value="noScale" />
      <param name="salign" value="TL" />
      <param name="FlashVars" value="playerMode=embedded" />
      </object>';
      }
      add_shortcode('showflash', 'jjj_showflash');

      add the code to the end of your functions.php on your theme,before the ?> and then simply write [showflash] where you want to show the flash,enjoy

  • avatar
    Last edited:
    03/16/10
    3:48pm
    Andrzej Zglobica says:

    have you tried to add attribute

    base="."
    to your kmili code?

This question has expired.





Current status of this question: Completed