Yes, the reason is called outdated code / methods. The only reason to use
object/embed is if you need to insert your swf onto someone else's page and
cannot add js etc. Even then, the static publishing method offered in
swfobject is a better way to go.

If you want to use object/embed, then that is your choice, but it is not
compatible with the SWFObject library.

I can confidently say (after working with Flash for > 10 years) that if you
are embedding you swf onto a page you control, that the <embed> is not
necessary and swfobject is they best way to get your swf embeded onto that
page.


Aran


On Wed, Mar 16, 2011 at 9:36 AM, Tute <[email protected]> wrote:

>  Im using a product called FLV Audio Recorder. That's the source code so I
> didn't want to change even if I think the embed is not neccesary. I believe
> the developers would have a reason for that.
>
>
> On 03/16/2011 11:34 AM, Aran Rhee wrote:
>
> Matias
>
>  Why do you want to do that?
>
>  The <embed> tag is not necessary (or standards complaint) in order to
> display a .swf.
>
>  SWFObjeject will create a single <object> tag based on the browser the
> user has for you. All you need to do it decide on whether you want to use
> the static or dynamic publishing methods
>
>  If you misunderstood where you need to pass data into the swf, that cam
> be done through the flashvars object (dynamic publishing ) or param (static
> publishing)
>
>  Have a read of the SWFPObject documentation (
> http://code.google.com/p/swfobject/wiki/documentation ) , and then you
> might want to use the code generator to help you (
> http://code.google.com/p/swfobject/wiki/generator ).
>
>
>  Cheers,
> Aran
>
>
> On Wed, Mar 16, 2011 at 9:18 AM, Matias <[email protected]> wrote:
>
>> I want to create this:
>>
>> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
>> codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/
>> swflash.cab#version=8,0,0,0<http://download.macromedia.com/pub/shockwave/cabs/flash/%0Aswflash.cab#version=8,0,0,0>"
>> width="320" height="140"
>> id="audiorecorder" align="middle">
>> <param name="allowScriptAccess" value="always" />
>> <param name="bgcolor" value="#FFF5EE" />
>> <param name="wmode" value="transparent">
>> <param name="movie" value="/audiorecorder.swf?
>> userId=123&recorderId=456&sscode=html" />
>> <embed bgcolor="#FFF5EE"  src="/audiorecorder.swf?
>> userId=123&recorderId=456&sscode=html" width="320" height="140"
>> name="audiorecorder" allowScriptAccess="always" type="application/x-
>> shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"; /
>> >
>> </object>
>>
>> But I didn't find a way to create an embed inside an object. I need
>> this to change on fly the src value to alter the param recorderId.
>>
>> --
>> 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.
>>
>>
>
>

-- 
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