SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Enthusiast Qubito's Avatar
    Join Date
    Sep 2003
    Location
    Mexico
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I need to embed flash inside a container xhtml

    HI. I need to Embed flash movie inside a xhtml tag. instead of image that already shown.

    the site is http://printte.com/e

    i want to put this swf http://printte.com/FlashDocs/banner2.swf
    into BannerFix tag

    <div id="BannerFix">
    <h2>Printté</h2>
    <h3>El servicio que hace la diferencia.</h3>
    </div>

    by the way
    BannerFix is 602px Width and 182px Height

    however i have never embed flash. i put this code that i find but it doesnt respect the margins.

    <object type="application/x-shockwave-flash
    data="c.swf?path=movie.swf"
    width="400" height="300">
    <param name="movie"
    value="c.swf?path=movie.swf" />
    <img src="noflash.gif"
    width="200" height="100" alt="" />
    </object>

    I did the replacement

    <object type="application/x-shockwave-flash
    data="c.swf?path=http://printte.com/FlashDocs/banner2.swf"
    width="602" height="182">
    <param name="banner2"
    value="c.swf?path=http://printte.com/FlashDocs/banner2.swf" />
    <img src="http://printte.com/e/images/bannerFix.jpg"
    width="602" height="182" alt="" />
    </object>


    help me to embed the flash movie inside the tag xhtml BannerFix.
    thanks in advance
    Qubito

  2. #2
    Zero Point Zero Siebird's Avatar
    Join Date
    Feb 2007
    Location
    York, PA
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I recommend using SWFObject technique. This is a widely used practice. Also gets rid of the annoying double click for IE users.

  3. #3
    SitePoint Enthusiast Qubito's Avatar
    Join Date
    Sep 2003
    Location
    Mexico
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    thanks

    thanks i will see the solution you send me. thanks a lot

  4. #4
    SitePoint Wizard bronze trophy DaveWoods's Avatar
    Join Date
    Dec 2004
    Location
    Derbyshire - UK
    Posts
    2,651
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Only valid way I've come across is the satay method

    http://www.alistapart.com/articles/flashsatay

  5. #5
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,495
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also note that the code at the very end of the Satay has an error that can be easily fixed with a quick run through the HTML validator. I really wish ALA would fix that.

    The Satay may have its issues (the main one being the lack of Flash version detection), but I have a feeling that the main issue (which I cited above) may be resolved by using Flash version detection inside the c.swf file - which is something I brought up on the Flash board last year, but was ignored by everybody.

  6. #6
    SitePoint Enthusiast Qubito's Avatar
    Join Date
    Sep 2003
    Location
    Mexico
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HI dan could you post the complete code i would require in order to detect. here is the satay snipet i have

    <object type="application/x-shockwave-flash
    data="c.swf?path=http://printte.com/FlashDocs/banner2.swf"
    width="602" height="182">
    <param name="banner2"
    value="c.swf?path=http://printte.com/FlashDocs/banner2.swf" />
    <img src="http://printte.com/e/images/bannerFix.jpg"
    width="602" height="182" alt="" />
    </object>

  7. #7
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,495
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Something like this should do the trick (as far as the HTML validation error in the article is concerned). Note that I used a Flash file that is dedicated to Cubs fans and also makes fun of White Sox fans at the same time (I'm a baseball fan).

    Code:
    <object type="application/x-shockwave-flash" data="c.swf?path=cubs_sox.swf" width="520" height="390">
    	<param name="movie" value="c.swf?path=cubs_sox.swf" />
    	<img src="images/alternate-content.jpg" width="520" height="390" alt="alternative text content" title="Descriptive Tooltip Text" />
    </object>
    As for the Flash detection, that would have to be done inside the c.swf file, which I do not know how to do. Adobe has an article that shows how to do it for Flash 4, but I don't know if it can be done with more recent versions of Flash - especially with ActionScript 3.0 (in my previous post I mentioned I had brought it up, but I was asking if it was possible, which is probably why I was ignored).

  8. #8
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    The swfObject method mentioned above is both valid and also offers version checks.

  9. #9
    Zero Point Zero Siebird's Avatar
    Join Date
    Feb 2007
    Location
    York, PA
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Johnny Gulag View Post
    The swfObject method mentioned above is both valid and also offers version checks.
    Exactly, that is what I like about it, cause you can also use it to describe what the flash has in it. (i.e if its navigation - you can use a unordered list with links) and i believe it would help a little bit with SEO. That's just an idea, I'm not even sure if thats proper, but I have done it.


Bookmarks

Posting Permissions

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