SWFObject's registerSWF is a nice add-on to ensure people have the correct
version of flash, but it isn't necessary a majority of the time. sites like
youtube already provide embed code using <embed>, and this code doesn't
provide swfobject's version-checking benefits, either. the example i
provided *does* include alternate content; i'll i've done here is provide a
standards-friendly alternate to the <embed> code (using swfobject's
double-object approach). no more, no less.

i suppose i could modify my example to include the registerSWF code, which
can be placed in the body so long as it's after the embed code.

- philip



On Fri, Feb 6, 2009 at 5:56 AM, Getify Solutions, Inc. <[email protected]>wrote:

>  If users copy only the static embed code, and don't have a reference to
> swfobject.js, then they don't get any of the benefit of swfobject which is
> version detection and alt-content switching.  This seems a rather futile
> approach.
>
> --Kyle
>
>
>
>
>  *From:* Philip Hutchison <[email protected]>
> *Sent:* Friday, February 06, 2009 1:06 AM
> *To:* [email protected]
> *Subject:* Re: Generate Share Embed with SwfObject?
>
> it sounds to me like you want users to be able to copy the static embed
> code, not the dynamic embed code.  if you're doing static embed code, the
> swfobject.js file is not a requirement.
>
> perhaps you wanted something like this?
> http://pipwerks.com/lab/swfobject/display-markup/example.html
>
> just be sure the URL for the SWF is an absolute URL.
>
> - philip
>
>
> On Thu, Feb 5, 2009 at 3:01 PM, Aran Rhee <[email protected]> wrote:
>
>>
>> For the swfobject.js include part the snippet could reference the static
>> Google AJAX libraries API location of:
>> http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js
>>
>>
>> Still messy since you should be placing the include and init code in the
>> <head> of the document, rather than arbitrarily with the <body>. As you
>> rightly said, just having the final generated code is not a workable
>> solution.
>>
>>
>> @jd - If you check out the embed code from YouTube etc, you can see that
>> they have to remove any extra functionality such as Flash detection /
>> ExpressInstall/ alt content etc and just hope for the best with their
>> snippet.
>>
>> The only other way around it is to have the user pointed back to some
>> server
>> location which would dynamically create snippet code in the page like how
>> ad
>> servers work to display Flash ads - they either write js or iframe code
>> into
>> the calling page.
>>
>>
>> Aran
>>
>> -----Original Message-----
>> From: [email protected] [mailto:[email protected]] On
>>  Behalf Of Getify Solutions, Inc.
>> Sent: Friday, 6 February 2009 1:29 AM
>> To: [email protected]
>> Subject: Re: Generate Share Embed with SwfObject?
>>
>>
>> You could probably accomplish something like this, but the user is still
>> gonna need to include swfobject.js to get the benefit of our library, so,
>> giving them the "final" markup won't be that helpful cross-browser... you
>> could give them the initial static markup that you use, and there's a
>> number
>>
>> of ways that you could do that... but if you dynamically give them the
>> markup that was generated by swfobject for your page, just for their
>> browser
>>
>> environment, then any of their users who use it with a different browser
>> will have a broken flash experience.  Does that make sense?
>>
>>
>> --Kyle
>>
>>
>>
>>
>> --------------------------------------------------
>> From: "jd" <[email protected]>
>> Sent: Thursday, February 05, 2009 8:25 AM
>> To: "SWFObject" <[email protected]>
>> Subject: Re: Generate Share Embed with SwfObject?
>>
>> >
>> > Sort of like that, but I was hoping there was a method on the
>> > swfobject js that could be called to generate the generic cross
>> > browser embed code.  What I want is to embed our player on a page and
>> > then have it so people who view the page can copy the embed code
>> > easily to use on their own page, what I'm trying to generate is the
>> > embed that the end users will copy (kind of like how on youtube they
>> > present the user with an embed code they can use on their own site, I
>> > want to do something like that and was hoping there was an easy way
>> > with swfobject).
>> >
>> > On Feb 4, 8:13 pm, "Aran Rhee" <[email protected]> wrote:
>> >> You mean like the SWFObject generator
>> >> ?http://www.bobbyvandersluis.com/swfobject/generator/index.html
>> >>
>> >> There is also an AIR and downloadable HTML version
>> >> here:http://code.google.com/p/swfobject/downloads/list
>> >>
>> >> Aran
>> >>
>> >> -----Original Message-----
>> >> From: [email protected] [mailto:[email protected]]
>> On
>> >>
>> >> Behalf Of jd
>> >> Sent: Thursday, 5 February 2009 1:54 AM
>> >> To: SWFObject
>> >> Subject: Generate Share Embed with SwfObject?
>> >>
>> >> Is there a way to use SwfObject to generate a generic embed code that
>> >> could be displayed in an input or something for users to copy and use
>> >> to embed the flash content in their own pages?
>> > >
>> >
>>
>>
>>
>>
>>
>>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to