[SWFObject] Multiple Flash Movies

DL dl.lists at ntlworld.com
Sat Jun 17 15:26:29 PDT 2006


On 17 Jun 2006 at 15:01, Asai wrote:

> >Because I'm feeling extremely tired and lazy, I'm wondering if 
> >anyone can direct me to the place where I learn how to install 
> >multiple flash movies in the same web page with SWFObject.
> 
> thanks alot
> 
> 
_______________________________________________

Here is my answer to an earlier similar question ..

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/20060617/cf438e22/attachment-0005.htm>


More information about the Swfobject mailing list