Just to piggy back on Aran's statements.  I've been snakebit numerous times
blindly cutting and pasting code, but being "skilled" enough to
enter/introduce a typo that caused SWFObject to refer to a div that did not
exist.  Be very specific, whether you are generating your SWFObject code via
server side scripting or manual entry on a web page.   For each SWFObject on
a page, be sure your parameters and especially your target div are valid.
If the dimensions and flashvars are the same for both objects, then you can
reuse those variables as Aran states, but if your intention is to use
different divs make sure you don't typo that.

Incorrect div referencing and bad path references (i.e. referring to
swfobject.js in the wrong folder or placing your flash resources in the
wrong folder) are the 2 errors I consistently make when I manually tweak my
SWFObject code.  Another reason why the code generator is a winner.  :)

Vincent

On Mon, Jan 3, 2011 at 9:50 AM, Aran Rhee <[email protected]> wrote:

> Keith.
>
> I take it that these two object live on the page at the same time (rather
> than one replacing the other)
>
> - you only need to include the swfobject.js file once
>
> - You will want to have 2 embedSWF() calls (if using dynamic publishing),
> or 2 registerObject() calls (if using static publishing) which target
> different divs for replacement.
>
> - For dynamic publishing, the embedSwf() calls can share the same params,
> flashvar, and attribture objects as required (or not at all).
>
>
> Aran
>
>
>
> On Sat, Jan 1, 2011 at 5:10 PM, Keith Purtell <[email protected]>wrote:
>
>> Do I need any special changes to the swfobject code in the header when I
>> have two different objects in the same Web page? Both objects are
>> Flash-based mp3 players. (One is designed to play several songs, the other
>> designed to play a single song.)
>>
>> - Keith
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "SWFObject" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<swfobject%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/swfobject?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "SWFObject" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<swfobject%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/swfobject?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en.

Reply via email to