[SWFObject] suggested feature

DL dl.lists at ntlworld.com
Thu May 4 12:17:19 PDT 2006


On 4 May 2006 at 14:14, Steve Norris wrote:

> It is critical, to the 
> success of a software application that I am writing, that 
> there be a standardized way to access the swfObjects in an 
> existing .html page. 

I'm doing something similar .. for placing multiple SWFObjects
 .. all different id's .. in HTML wrapper page .. 
I place SWFObject code in a function ..

e.g. to load one SWFObject instance ..

loadSWFObject("top", "test.swf", "test", "100", "100", "8.0.22", "#ffffff");

then ..

function loadSWFObject(div_id, src, movie_id, w, h, v, bgcolor) {

var so = new SWFObject(src, movie_id, w, h, v, bgcolor);
             so.addParam("quality", "high");
             so.addParam("scale", "exactfit");
             so.addParam("salign", "LT");
             so.addParam("menu", "false");
             so.addParam("swLiveConnect", "true");
             so.addParam("name", movie_id); 
             so.addParam("allowScriptAccess", "sameDomain");
             so.write(div_id);
}

The div properties (in classes) are then all defined in CSS stylesheet.

e.g.

<div class="so_top" id="top">
<p>This is replaced by the Flash content.</p>
</div>


This layout allows SWFObject div attributes to be targetted .. 
e.g. to move / resize SWFObjects or make them visible/hidden.

DL
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20060504/2831ce92/attachment-0005.htm>


More information about the Swfobject mailing list