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 5 of 5
  1. #1
    Regular Coder
    Join Date
    Mar 2006
    Posts
    459
    Thanks
    3
    Thanked 0 Times in 0 Posts

    swfobject or Adobe's Code

    I was wondering what people use when embedding Flash into web pages? Are there benefits to both swfobject & Adobe's js file? Or is swfobject far superior?

  • #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 think swfobject is far superior. With Adobe's code you have to change your flash code in three places. The noscript part, then twice in the javascript call. With swfobject its one line and 3 things you need to fill it such as flashvars, attributes, or params. Note SWFobject is up to version 2.0 now. Version 1.5 is still better than Adobe's code in my opinion. With version 2.0 you can choose to use static or dynamic publishing. Static would be to have the flash code in the document already but would not get rid of the "Click to Activate" thing. Dynamic does the opposite. I currently use version 1.5 only because I haven't had time to update to version 2.0
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder
    Join Date
    Mar 2006
    Posts
    459
    Thanks
    3
    Thanked 0 Times in 0 Posts
    So is Dynamic harder to use I don't see the point in having 2 options? Or does dynamic need to pull the code from a db or soemthing?

  • #4
    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
    No it helps to read the documentation.

    Static is where the code is in the html meaning all of the object tags, all of the parameter elements are there as well.

    Dynamic creates the flash on the fly using javascript.

    The static option is there for people who want to have valid flash object code while at the same time detecting the users flash version.

    Read the documentation!
    http://code.google.com/p/swfobject/wiki/documentation
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • Users who have thanked _Aerospace_Eng_ for this post:

    tomyknoker (05-12-2008)

  • #5
    Regular Coder
    Join Date
    Mar 2006
    Posts
    459
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Oh yea it's right there oops!


  •  

    Posting Permissions

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