[SWFObject] suggested feature

Geoff Stearns geoff at deconcept.com
Wed May 3 18:28:57 PDT 2006


you can reuse the name over and over if you want...

every time you call 'new SWFObject()' it would just overwrite the  
last one, so the div ids (and swfobject ids) are the only thing that  
needs to be unique.

also it's really easy to extend swfobject - you could make your own  
javascript that adds on to the SWFObject.prototype, so if you want to  
write extensions for it, go right ahead and if it's something useful  
that people will use, i'd consider offering it for download on the  
main SWFObject page.

i've converted the js integration kit over to SWFObject so far, and  
plan on releasing that very soon, and it works like an extension -  
just adding a few extra functions for you to use.



On May 3, 2006, at 8:49 PM, Steve Norris wrote:

> If you use swfObject to embed multiple swfs, overwriting
> the content in multiple div's, is there a way to step
> through a list of swfObject instances and set the
> parameters for each?
>
> So, in:
>
> var so = new swfObject("myMovie.swf", "myMovie", "200",
> "200", "8", "#FFFFFF", true);
>
> "so" is a new instance of swfObject.  If you wanted to
> embed multiple flash files, you would have to create new
> instances for each with unique instance names, correct? I
> really nice feature would be to follow this line of code
> with:
>
> document.swfObjectArray.push(so).
>
> That way, one could simply step through the array and set
> the parameters for each of the swfObjects.  You would have
> to create the swfObjectArray ahead of time ofcourse.
>
> Do you have a feature like this, or is there a better way
> to do this?
>
> Steve
>
> On Wed, 03 May 2006 13:26:36 -0700
> swfobject-request at lists.deconcept.com wrote:
>
>> Send SWFObject mailing list submissions to
>> 	swfobject at lists.deconcept.com
>>
>> To subscribe or unsubscribe via the World Wide Web,
>> visit
>> 	http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
>> or, via email, send a message with subject or body
>> 'help' to
>> 	swfobject-request at lists.deconcept.com
>>
>> You can reach the person managing the list at
>> 	swfobject-owner at lists.deconcept.com
>>
>> When replying, please edit your Subject line so it is
>> more specific
>> than "Re: Contents of SWFObject digest..."
>>
>>
>> Today's Topics:
>>
>>   1. swfObject in a DIV and MM_controlShockwave() (Gary
>> Keogh)
>>   2. ExpressInstall and adobe (Chris Anderson)
>>
>>
>> --------------------------------------------------------------------- 
>> -
>>
>> Message: 1
>> Date: Wed, 3 May 2006 18:17:29 +0100
>> From: "Gary Keogh" <garykeogh at compupharma.net>
>> Subject: [SWFObject] swfObject in a DIV and
>> MM_controlShockwave()
>> To: <swfobject at lists.deconcept.com>
>> Message-ID:
>> 	<38EF4DDE0B28D94D9857533095BBFFDB2CF9B6 at cpserver1.compupharma.ie>
>> Content-Type: text/plain; charset="us-ascii"
>>
>> I have SWFobject loading a flash file into a div tag
>> (layer)
>> I have another button which shows and hides this layer
>> I was using the MM_controlShockwave() function to play,
>> restart and stop
>> these movies, this no longer seems to work with the new
>> swfobject.
>> The flash movie begins to play ok, but will not restart
>> as it did when
>> the flash was loaded using the object tag
>> Any ideas?
>>
>> Here is my HTML page
>>
>> Thanks
>> Gary
>>
>> <HTML LANG="en">
>> <HEAD>
>> <TITLE></title>
>> <META http-equiv="Content-Type" content="text/html;
>> charset=iso-8859-1">
>> <script language="JavaScript"
>> src="../cpscripts/cppagefunctions.js"></script>
>> <script type="text/javascript"
>> src="../cpscripts/swfobject.js"></script>
>> <script language="JavaScript" type="text/JavaScript">
>> <!--
>> MM_reloadPage(true);
>>
>> function MM_controlShockwave(objStr,x,cmdName,frameNum)
>> { //v3.0
>>  var obj=MM_findObj(objStr);
>>  if (obj)
>> eval('obj.'+cmdName+'('+((cmdName=='GotoFrame')?frameNum:'')+')');
>> }
>> //-->
>> </script>
>> </HEAD>
>> <BODY>
>> <div id="image1" style="visibility: hidden;">
>>  <script type="text/javascript">
>>   var fo = new SWFObject("cpmedia/swf/s1g1.swf",
>> "image1", "320",
>> "240", "6", "#FFFFFF");
>>   fo.write("image1");
>> </script>
>> </div>
>> <div id="ActButs">
>>  <p><b><span class="activationbuttontext"><a href="#"
>> onMouseOut="MM_showHideLayers 
>> ('image1','','hide');MM_controlShockwave('i
>> mage1','','GotoFrame','1');MM_controlShockwave 
>> ('image1','','StopPlay')"
>> onMouseOver="MM_showHideLayers 
>> ('image1','','show');MM_controlShockwave('
>> image1','','GotoFrame','1');MM_controlShockwave 
>> ('image1','','Play')">lin
>> k</a></span></b> </span></b></p>
>> </div>
>> </BODY>
>> </HTML>
>>
>> <mailto:garykeogh at compupharma.net>
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:
>> /pipermail/swfobject-deconcept.com/attachments/20060503/7ca69e71/ 
>> attachment-0001.html
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Wed, 3 May 2006 16:10:44 -0400
>> From: "Chris Anderson" <chris.ncic at gmail.com>
>> Subject: [SWFObject] ExpressInstall and adobe
>> To: SWFObject at lists.deconcept.com
>> Message-ID:
>> 	<f8e0e8f70605031310m5dc5347ekd19949b04194031d at mail.gmail.com>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> I was wondering if there may be some problems using
>> expressinstall with
>> adobe working on the site.   It's been working like
>> expected until a
>> recently.  I've tested it in FF with flash player 7
>> visiting my projects and
>> the deconcept link
>> <http://blog.deconcept.com/swfobject/expressinstall.html>and
>> they all
>> seem to be waiting on macromedia and stall.  Has anyone
>> else
>> had a problem?  Can someone else test
>> http://blog.deconcept.com/swfobject/expressinstall.html
>> to with an older
>> (acceptable) version of flash to make sure it's ok?
>> Thanks guys.
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:
>> /pipermail/swfobject-deconcept.com/attachments/20060503/983323ad/ 
>> attachment.html
>>
>> ------------------------------
>>
>> _______________________________________________
>> SWFObject mailing list
>> SWFObject at lists.deconcept.com
>> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
>>
>>
>> End of SWFObject Digest, Vol 2, Issue 17
>> ****************************************
>
> _______________________________________________
> SWFObject mailing list
> SWFObject at lists.deconcept.com
> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com




More information about the Swfobject mailing list