[osflash] SwfObject publish templates for IDE

Alias™ aliasrob at gmail.com
Wed Nov 8 09:41:37 EST 2006


Hi guys,

Recently, I've finally gotten so annoyed by the eolas patent avoidance
modifictions in IE that I've wanted an HTML publish template for swfObject,
so that you can do preview as HTML in the flash IDE and not have the browser
focus issues in IE.

I couldn't find one online, so I made my own. It's very simple, just a paste
of the swfObject source into a header (so that the html page won't become
dependant on swfobject.js files which could easily get lost/misplace/put in
the wrong location). The downside of this is that there is one tiny
modification that needs to be made to the swfobject source code:

On line 93, which looks like this:

    catch(e){}}if(axo!=null){_23=new
deconcept.PlayerVersion(axo.GetVariable("$version").split("
")[1].split(","));}}


when the script is run through the publish script, "$ve" is being eaten as
flash seems to be mistaking it for a publish template parameter (even though
there is no corresponding value for that particular 2 letter combination).

So, quick workaround:

    catch(e){}}if(axo!=null){_23=new
deconcept.PlayerVersion(axo.GetVariable("$\v\ersion").split("
")[1].split(","));}}

And all works nicely.

You can download the template at:

http://www.proalias.com/osflash/templates/Default.html

Save it in:
\\Documents and Settings\{username}\Local Settings\Application
Data\Macromedia\Flash 8\en\Configuration\HTML\

And viola, swfobject in your default templates, and no js files to get
lost/eaten.

Probably not the best idea to use this for sitewide deployment, as the
inline JS could cause bandwidth bloat, but for quickly showing
clients/project managers stuff, it's quite handy.


If anyone has any issues with this working, please let me know!

HTH,
Alias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20061108/8d5aedeb/attachment.htm


More information about the osflash mailing list