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