Results 1 to 9 of 9
  1. #1
    Administrator Boss Hog's Avatar
    Join Date
    Mar 2008
    Posts
    3,440
    Thanks
    64
    Thanked 30 Times in 28 Posts

    Embed .SWF files, how to??

    I have been given a couple of files by Adobe that are flash files (.swf), how do I go about displaying these on the forum, in the position of the main banner above?

    To show the animated gifs was easy, we use the following code....

    PHP Code:
    <a href="http://www.graphicdesignforums.co.uk/graphic-design-competitions/3291-graphic-design-forums-competition.html"><img src="http://www.graphicdesignforums.co.uk/banners/adobe-cs5.gif" alt="WIN ADOBE CS5 PREMIUM EDITION + MUCH MORE" /></a
    ...but what do I have to change the above code to to display .swf files?

    Any advice is greatly appreciated.

    Cheers

    Damon

  2. #2
    Senior Member socreative's Avatar
    Join Date
    Jun 2009
    Location
    Internet
    Posts
    166
    Thanks
    0
    Thanked 0 Times in 0 Posts
    www.socreative.tv
    web :: flash :: print :: branding

  3. #3
    Administrator Boss Hog's Avatar
    Join Date
    Mar 2008
    Posts
    3,440
    Thanks
    64
    Thanked 30 Times in 28 Posts
    Thanks for that, looks a little complicated for my liking

    ...may just ask them to supply a different file type

  4. #4
    Senior Member socreative's Avatar
    Join Date
    Jun 2009
    Location
    Internet
    Posts
    166
    Thanks
    0
    Thanked 0 Times in 0 Posts
    it very easy

    PHP Code:
    <script type="text/javascript" src="js/swfobject.js"></script>
    <script type="text/javascript">    
            swfobject.embedSWF("flashmovie.swf", "FlashContent", "960", "250", "9.0.0", "expressInstall.swf");
    </script> 
    and in your page just create a DIV with the id FlashContent like so

    PHP Code:
    <div id="FlashContent">
    </
    div

    the flash movie will be loaded into that div
    www.socreative.tv
    web :: flash :: print :: branding

  5. #5
    Administrator Boss Hog's Avatar
    Join Date
    Mar 2008
    Posts
    3,440
    Thanks
    64
    Thanked 30 Times in 28 Posts
    Thank you

  6. #6
    Senior Member DougBarned's Avatar
    Join Date
    Jun 2009
    Location
    London / U.K.
    Posts
    181
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Also might be worth checking out A List Apart: Articles: Flash Satay: Embedding Flash While Supporting Standards for a standards supporting solution from back in 2002. Allows you to display an alternative file to viewers without (or who disable) flash.

    But only if you're interested :)

    /Doug
    design-is.co.uk - freelance projects
    dougbarned.co.uk - personal site & blog - twitter
    feralinteractive.com - designer day job - twitter - facebook

  7. #7
    Junior Member AMI Creative's Avatar
    Join Date
    Nov 2009
    Location
    Staffordshire, Stoke-on-Trent
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by socreative View Post
    it very easy

    PHP Code:
    <script type="text/javascript" src="js/swfobject.js"></script>
    <script type="text/javascript">    
            swfobject.embedSWF("flashmovie.swf", "FlashContent", "960", "250", "9.0.0", "expressInstall.swf");
    </script> 
    and in your page just create a DIV with the id FlashContent like so

    PHP Code:
    <div id="FlashContent">
    </
    div

    the flash movie will be loaded into that div

    Remember to provide a no-script tag for you alternative content :)

  8. #8
    Senior Member socreative's Avatar
    Join Date
    Jun 2009
    Location
    Internet
    Posts
    166
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i deliberately left it out since Boss Hog was struggling to understand how it works ;)
    www.socreative.tv
    web :: flash :: print :: branding

  9. #9
    Administrator Boss Hog's Avatar
    Join Date
    Mar 2008
    Posts
    3,440
    Thanks
    64
    Thanked 30 Times in 28 Posts
    Quote Originally Posted by socreative View Post
    i deliberately left it out since Boss Hog was struggling to understand how it works ;)
    :icon_tongue_smilie:

Similar Threads

  1. Secure Clients Files
    By RickNash in forum General Software & Hardware Forum:
    Replies: 8
    Last Post: 10-22-2011, 03:54 PM
  2. Corrupted files
    By Swarls in forum General Software & Hardware Forum:
    Replies: 3
    Last Post: 10-19-2011, 12:49 PM
  3. Autocad files?
    By Poppy Design in forum Adobe Forum:
    Replies: 5
    Last Post: 02-05-2009, 08:30 AM
  4. Embed fonts / outline text?
    By mark.d.chapman@mac.com in forum Graphic Design Forum:
    Replies: 1
    Last Post: 12-31-2008, 12:14 AM
  5. Do you hand over the source files?
    By Boss Hog in forum Graphic Design Forum:
    Replies: 6
    Last Post: 08-11-2008, 05:41 PM

Posting Permissions

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