1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Flash Not Loading Properly

Discussion in 'WordPress' started by larssonk22, Jul 12, 2010.

  1. #1
    I've created a flash file which I have embedded into my wordpress theme (index.php) but only the background loads. If I load the same file on my PC or a php/html file it works fine. :confused:

    wordpress link

    html link
     
    Last edited: Jul 12, 2010
    larssonk22, Jul 12, 2010 IP
  2. bapatnmintri

    bapatnmintri Peon

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    sorry man...but flash is not enabled on wordpress.com
     
    bapatnmintri, Jul 12, 2010 IP
  3. larssonk22

    larssonk22 Well-Known Member

    Messages:
    236
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #3
    sorry I don't understand your reply.

    I'm not using wordpress.com, I have other sites built with wordpress that use flash.
     
    larssonk22, Jul 12, 2010 IP
  4. bapatnmintri

    bapatnmintri Peon

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    sorry for the misunderstanding. Could you tell me what sort of code ur using? a normal embed code? it would be great if you could copy paste the code here, this way many more can contribute with what they know also which wordpress theme are you using? may be the theme could have some issues.
     
    bapatnmintri, Jul 12, 2010 IP
  5. larssonk22

    larssonk22 Well-Known Member

    Messages:
    236
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #5
    Link in my first post, here is the code. Theme I am using was built from another theme called saganoskyWP

    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="980" height="463" id="FlashID" title="Flash Gallery">
      <param name="movie" value="site_flash/flash/main.swf">
      <param name="quality" value="high">
      <param name="wmode" value="opaque">
      <param name="swfversion" value="8.0.35.0">
      <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
      <param name="expressinstall" value="Scripts/expressInstall.swf">
      <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="site_flash/flash/main.swf" width="980" height="463">
        <!--<![endif]-->
        <param name="quality" value="high">
        <param name="wmode" value="opaque">
        <param name="swfversion" value="8.0.35.0">
        <param name="expressinstall" value="Scripts/expressInstall.swf">
        <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
        <div>
          <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
          <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
        </div>
        <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>
    <script type="text/javascript">
    <!--
    swfobject.registerObject("FlashID");
    //-->
    </script>
    
    Code (markup):
     
    Last edited: Jul 12, 2010
    larssonk22, Jul 12, 2010 IP
  6. bhuthecoder

    bhuthecoder Member

    Messages:
    245
    Likes Received:
    11
    Best Answers:
    1
    Trophy Points:
    43
    #6
    read this tutorial

     http://www.bhuthecoder.com/embedding-xml-controlled-swf-files-into-wordpress-posts/ 
    Code (markup):
     
    bhuthecoder, Jul 12, 2010 IP
  7. larssonk22

    larssonk22 Well-Known Member

    Messages:
    236
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #7
    That would be great if I wanted to embed into posts ;)

    Thanks though I will keep it for future reference.
     
    larssonk22, Jul 12, 2010 IP
  8. bhuthecoder

    bhuthecoder Member

    Messages:
    245
    Likes Received:
    11
    Best Answers:
    1
    Trophy Points:
    43
    #8
    u can use the same plugin to insert flash file in ur theme
     
    bhuthecoder, Jul 12, 2010 IP
  9. larssonk22

    larssonk22 Well-Known Member

    Messages:
    236
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #9
    Ok thanks I'll try it.

    Edit: Tried it exact same problem :(
     
    Last edited: Jul 12, 2010
    larssonk22, Jul 12, 2010 IP
  10. larssonk22

    larssonk22 Well-Known Member

    Messages:
    236
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #10
    This is odd, I can embed youtube vids, but for some reason the flash file (gallery) on the front page won't load
     
    larssonk22, Jul 12, 2010 IP
  11. bhuthecoder

    bhuthecoder Member

    Messages:
    245
    Likes Received:
    11
    Best Answers:
    1
    Trophy Points:
    43
    #11
    
    [kml_flashembed movie="http://www.kaijaweb.com/clients/emily/site_flash/flash/main.swf" base="http://www.kaijaweb.com/clients/emily/site_flash/flash/" height"500" width"500" /]
    
    Code (markup):
    u tried the exact embedded code after installing the plugin?
     
    bhuthecoder, Jul 12, 2010 IP
  12. larssonk22

    larssonk22 Well-Known Member

    Messages:
    236
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #12
    Yep, I placed your code on the commercials page, as you can see just have a white space underneth the youtube vid.
     
    larssonk22, Jul 13, 2010 IP
  13. bapatnmintri

    bapatnmintri Peon

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #13
    This is your path in HTML file-
    And this is one is from ur WP-
    Are you sure about these? you could be pointing to the wrong folder. Try the absolute URL
     
    bapatnmintri, Jul 13, 2010 IP
  14. larssonk22

    larssonk22 Well-Known Member

    Messages:
    236
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #14
    Thats because the html file is within the site_flash folder
     
    larssonk22, Jul 13, 2010 IP
  15. bapatnmintri

    bapatnmintri Peon

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Alright.

    Now you have nothing, not even the background. What changes have you made?
     
    bapatnmintri, Jul 13, 2010 IP
  16. larssonk22

    larssonk22 Well-Known Member

    Messages:
    236
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #16
    Sorry I should have mentioned I changed the flash file which has a white background. If you right click in the space you will see the flash is still there. I'll change it back in a moment
     
    Last edited: Jul 13, 2010
    larssonk22, Jul 13, 2010 IP
  17. bhuthecoder

    bhuthecoder Member

    Messages:
    245
    Likes Received:
    11
    Best Answers:
    1
    Trophy Points:
    43
    #17
    try this
    1)place all flash content in root directory(wordpess root).
    2)Then reference the swf's location in whatever theme file you want (index.php, home.php, header.php) as <?php bloginfo('url') ?>/yourmovie.swf


    source:
    
    http://wordpress.org/support/topic/337372
    
    Code (markup):
     
    bhuthecoder, Jul 13, 2010 IP
    larssonk22 likes this.
  18. larssonk22

    larssonk22 Well-Known Member

    Messages:
    236
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #18
    It's always the simplist solution!! 3 days wasted lol

    Thank you very much bhuthecoder!! + repped :cool:
     
    larssonk22, Jul 13, 2010 IP
  19. wordpress_dev

    wordpress_dev Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Try to use wp_head() and wp_footer. In your header and footer file. If you are using plugin
     
    wordpress_dev, Jul 13, 2010 IP