dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: embed .mov file in .swf file problems

  1. #1
    Junior Member
    Join Date
    Jan 2010
    Posts
    3

    embed .mov file in .swf file problems

    I imported a .mov file into a .swf file and it works great. Then I embedded the .swf file into a web page. Again, it seemed to work fine--at least works fine when I open it in a browser locally. However, after I upload everything to the server, the .swf file seems to be okay, but the embedded video no longer works. I triple checked that all of the links are correct, all of the files are uploaded (including the embedded video) but nothing works.

    Warning: This is an adult site. I can provide the URL if requested. Thanks for your help.

    Marcus

    Edit by admin: no contact info permitted on the forum, and no links to any adult material are permitted. thank you

  2. #2
    Senior Member
    Join Date
    May 2008
    Posts
    332
    Almost always when it works on the local machine and not the server, it's a pathing problem. From another post:
    You can put your files in whatever folders you want, they do not have to be in the root. But if sticking them in there worked, then you know that the issue was a pathing problem.
    Just remember that paths become relative to the Web page on which those files are used. So for example, if your .swf is in the flash/rss folder and you use that .swf on a Web page in the root, you are in effect, removing that .swf from flash/rss and putting it in root. So if the .swf is loading any related files (rss, xml, etc), the path used inside the .swf has to be relative to it's new location in root and back down into flash/rss. This is true even though when testing the .swf by itself, it can be inside flash/rss and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
    So just be sure that you use addresses relative to the final locations and you can put the files wherever you want.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com

  3. #3
    Banned
    Join Date
    Oct 2008
    Posts
    74
    You can provide the code for embedding the video to your site.
    I suggest you use SWFObject to embed flash to website, which will be more optimized and stable than any other Flash embed method around.
    If you don't have Flash tool, you can check playerDIY FLV player creator (http://www.playerdiy.com/).
    Good luck!

  4. #4
    Junior Member
    Join Date
    Jan 2010
    Posts
    3
    Here's the code:

    <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" width="991" height="331" id="FlashID" title="Wild Things Banner">
    <param name="movie" value="topBanner2.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="6.0.65.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="topBanner2.swf" width="991" height="331">
    <!--<![endif]-->
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="6.0.65.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>

    I'm sure you're just trying to promote that ***** thing, anyway.

  5. #5
    Senior Member
    Join Date
    May 2008
    Posts
    332
    From the looks of things it looks like the Flash player is expecting to find all related files in the same folder as the html page. Are all flash related files, the .swf and/or the .mov and other related files in the same folder as the html?
    See my first post about pathing issues related to placing the .swf on the html Web page.
    What do you mean the .swf works but not the video? Any error messages?
    EfV

  6. #6
    Junior Member
    Join Date
    Jan 2010
    Posts
    3
    yeah, I moved everything right into the root folder. Re-exported the .swf file, re-embedded it into the html, made sure everything was uploaded including the .mov and the related .swf files. No luck. Thanks anyway, people.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center