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
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
July 03, 2007 3:19am
Subscribe [0]#1 / Jul 03, 2007 3:19am
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
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
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
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
as i said have you placed a / in front of the file reference?
#6 / Jul 03, 2007 4:01pm
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