ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Whats the best to use for SWF files - An iframe or some solution ?

July 03, 2007 3:19am

Subscribe [0]
  • #1 / Jul 03, 2007 3:19am

    Davmit

    11 posts

    Hi Friends,

    What would be the best way to embed a flash file?
    the basic object tag did not work for me
    so i was using an i frame

    Thanks,
    Davmit

  • #2 / Jul 03, 2007 4:19am

    RJN

    61 posts

    I-frames are not good coding practice these days, so no that is not a good solution.

    Where are you placing the flash code. if it is in a publish entry then no I doubt it will work, but in a template it will be fine. The template structure means though you may need to either use an absolute path to the flash file or place a / in front of the file name ie /flashfile.swf in the code (assuming the flash file is in the root directory)

    I have used both the javascript adobe solution packaged with Dreamweaver, the Flash Satay idea from alistapart.com and have just implemented the PHP alternate content method in the Adobe Flash detection kit all work fine.

    If your using the javascript method do not forget to call the js file in the head of the template page.

  • #3 / Jul 03, 2007 5:28am

    Mark Bowen

    12637 posts

    Hiya Davmit,

    There is also the excellent swfobject which is exceptionally easy to use and if used correctly will produce valid clean code.

    A nice one that I always use on sites! 😊

    Hope that helps.

    Best wishes,

    Mark

  • #4 / Jul 03, 2007 5:46am

    Davmit

    11 posts

    Hi Mark,

    Thanks for the reply 😊
    i tried using the swfobject but it gave an error
    i have linked the the swfobject.js file in the head tag of the template

    but still its not working

    Any thing i could be doing wrong?

    Thanks,
    Davmit

  • #5 / Jul 03, 2007 2:19pm

    RJN

    61 posts

    as i said have you placed a / in front of the file reference?

  • #6 / Jul 03, 2007 4:01pm

    Mark Bowen

    12637 posts

    HIya Davmit,

    Can you possibly post a link to the page where it isn’t working or the code of the page so we can see what is what?

    Regards,

    Mark

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases