[SWFObject] Standard Embed to SWFObject Converter / publishtemplate
Becky Kinney
bkinney at UDel.Edu
Thu Dec 7 06:12:31 PST 2006
That's great about Steve's tool. That is going to be very helpful for any page that must pass variables to flash on load. Thanks for letting me know, and thanks to Steve for building it.
Becky
----- Original Message -----
From: Aran Rhee
To: swfobject at lists.deconcept.com
Sent: Wednesday, December 06, 2006 6:30 PM
Subject: Re: [SWFObject] Standard Embed to SWFObject Converter / publishtemplate
Becky.
Thanks for the round up.
When I first joined the list (back in March), I posted a publishing template. It seems that ubergeek.tv came up with almost exactly yhe same solution a few months later. The only issues with templates are:
1. you can't package any external files (e.g. swfobject.js)
2. You can't add flash vars in the publish dialouge
3. You can't specify extra params like wmode individually (they are written as a block with the vars $PO and $PE (params object / params embed))
The (default) path to put any HTML templates are :
C:\Program Files\Macromedia\Flash 8\en\First Run\HTML
Below is the basics of the template I created (modify as you wish)
$TTSWFObject
$DS
Creates a SWFObject compatable HTML page.
$DF
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0013)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
$CS
<title>$TI</title>
<script type="text/javascript" src="swfobject.js"></script>
</head>
<body bgcolor="$BG">
<div id="flashcontent">
If you don't have the required Flash Player Version, you will see this text as alternative content
</div>
<script language="JavaScript" type="text/javascript">
// <![CDATA[
var fo = new SWFObject($MO, "$TI", "$WI", "$HE", "$FV.$JR.$NR", "$BG");
fo.write("flashcontent");
// ]]>
</script>
</body>
</html>
BTW - Steve's page does do flashvars now :)
Cheers,
Aran
----------------------------------------------------------------------------
From: swfobject-bounces at lists.deconcept.com [mailto:swfobject-bounces at lists.deconcept.com] On Behalf Of Becky Kinney
Sent: Thursday, 7 December 2006 12:22 AM
To: swfobject at lists.deconcept.com
Subject: Re: [SWFObject] Standard Embed to SWFObject Converter
Interesting approach. I think if you were to add the flashvars, this could be really useful. I don't know of any tool that will handle the flash vars for me, so that would be really nice.
For plain vanilla conversion, it is probably easier to use the html template approach. That is, pick a swfobject template from Flash's publishing options. Of course, you have to have one installed, but there are several out there already written. It might be interesting to have this group check them out and report back on the relative merits of each. Here are a couple I have just googled up:
http://flog.fluid.com/experiments/swfobject-extension/ : this one apparently overwrites the default template. Not sure I'm happy about that, so I haven't tried using it. An advantage is that it ships as an mxp, so is dead easy to install
http://ubergeek.tv/article.php?pid=111 : you have to put this into the HTML templates folder yourself, but the path is provided.
http://www.mail-archive.com/osflash@osflash.org/msg10917.html : this one has a dead link to the template, but some good hints on how you could add the swfobject code to your swfobject template without breaking it.
There are also a couple at the Flash Exchange. One is a macromedia active content thing that uses their script, not Geoff's. But this one looks intriguing in that it apparently lets you choose to use express install without hand editing the html.
http://www.adobe.com/cfusion/exchange/index.cfm#view=sn106&viewName=Exchange%20Search%20Details&loc=en_us&authorid=0&page=0&scrollPos=0&subcatid=0&snid=sn106&itemnumber=-1&extid=1030286&catid=0
Personally I use an html template that was given to me by a friend on another listserv. I don't know that he has it posted anywhere. It did not turn up on my google search.
Becky
----- Original Message -----
From: Steve Kamerman
To: swfobject at lists.deconcept.com
Sent: Monday, December 04, 2006 3:49 PM
Subject: [SWFObject] Standard Embed to SWFObject Converter
I wrote a script to convert the plain-jane OBJECT/EMBED code made by Flash to SWFObject compliant code - I think it's pretty slick so I thought I would post it for you all: http://devel.teratechnologies.net/swfhelp/
Right now it is very simple, and it doesn't support Flashvars parameters, but if there is enough interest in this code, I'll keep working on it J
Steve Kamerman
Director of IT
Tera Technologies
www.teratechnologies.net
--------------------------------------------------------------------------
_______________________________________________
SWFObject mailing list
SWFObject at lists.deconcept.com
http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
------------------------------------------------------------------------------
_______________________________________________
SWFObject mailing list
SWFObject at lists.deconcept.com
http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20061207/8cf866c1/attachment-0005.htm>
More information about the Swfobject
mailing list