Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: .Swf

  1. #1
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    .Swf

    What is the code for using a .swf file like for a banner or something?
    _____________________________________________
    "It is impossible to finish a race if the path is unknown."
    Last edited by Pavel_htm_lover; 12-22-2005 at 04:45 AM.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I'm guessing you are asking how to put a swf on a page.
    Code:
    <object type="application/x-shockwave-flash" data="yourflash.swf" width="400" height="300">
    <param name="movie" value="yourflash.swf">
    </object>
    Adjust the height and width to your liking.

  • #3
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Exactly thx bud

  • #4
    Regular Coder Masterslave's Avatar
    Join Date
    Dec 2005
    Posts
    287
    Thanks
    2
    Thanked 0 Times in 0 Posts
    You can also use the embed tags.

    Code:
    <embed src="images/yourflash.swf" width="100" height="100" />
    Correct me if I'm wrong, but I thought the embed tags were for IE or Firefox. I had problems with IE and Firefox with Flash because the both are using different tags for Flash.

  • #5
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The embed tag is deprecated.

  • #6
    Senior Coder TheShaner's Avatar
    Join Date
    Sep 2005
    Location
    Orlando, FL
    Posts
    1,126
    Thanks
    2
    Thanked 40 Times in 40 Posts
    <embed> was introduced by Netscape if I'm correct. Like Mark said, it's deprecated. The best method is AE's code. However, as in the article i'm about to post, it mentions that IE will wait to load the entire flash movie before playing it, which can be a bit annoying if you have a big flash movie. So there's an easy work around that just requires you to have a container flash movie load the actual movie. That way, IE loads the container which is very small and the container flash is set to stream the actual movie. There is also the problem of not prompting for a Flash update since you leave out the codebase attribute. Def. not a big deal, but there's also a little tip on what to do for that also in the article. Hope it helps.

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

    -Shane

  • #7
    Regular Coder Masterslave's Avatar
    Join Date
    Dec 2005
    Posts
    287
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Nice article on alistapart. I was a bit right with the embed tag. Very interesting article.


  •  

    Posting Permissions

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