>From the documentation:
http://code.google.com/p/swfobject/wiki/documentation

   1. The *static publishing method* embeds both Flash content and
   alternative content using standards compliant markup, and uses JavaScript to
   resolve the issues that markup alone cannot solve

The advantages of the *static publishing method* are:

   1. The actual authoring of standards compliant markup is promoted
   2. Best embed performance
   3. The mechanism of embedding Flash content does not rely on a scripting
   language, so your Flash content can reach a significant bigger audience:
      - If you have the Flash plug-in installed, but have JavaScript
      disabled or a use a browser that doesn't support JavaScript, you
will still
      be able to see your Flash content
      - Flash will now also run on a device like Sony PSP, which has very
      poor JavaScript support
      - Automated tools like RSS readers are able to pick up Flash content

So, yes, you could just embed your SWF with the nested object tags, but you
would be missing out on some functionality.  If that functionality is not
useful to you (like Flash version detection, and the Adobe Autoinstall if
you don't have Flash), then you don't need javascript at all.  However, if
you truly have an audience that is Javascript averse, I dare say that most
of the internet looks terribad to them.  :)

If I understand your requirement (from the original post) that you weren't
allowed to have open script tags in the body of your HTML and that the only
javascript you could use was that in referred files, it really seems to me
personally that you would actually be better off using the dynamic
publishing method.  As it only involves setting up marked divs in the body
of the HTML.  All your javascript could be contained in two reference files,
the swfobject.js file and as you had posited, a page1.js file that contained
all the declarations of the divs on your page that would be swfs.

If your requirement is NO JAVASCRIPT AT ALL, then putting in the nested
markup and crossing your fingers for good luck is what you would need to
do.  But if the only requirement is keeping things in external files, then
either method allows for it.  I personally prefer the dynamic publishing
method because the markup is cleaner, and it just makes a lot more sense to
me than the embed/object/nested IE if stuff that you have to place
otherwise.

Hope this helps.

Vincent


On Sun, Feb 7, 2010 at 1:32 PM, wilson <[email protected]> wrote:

> HI Vincent, first off, thanks for helping.
>
> Youre right, i HAVE to embed my swf without the help of Javascript
> (client's requirement) thats why i went the SWFObject way insted of
> the standard Adobe way.
>
> You wrote : Properly done, the code in your body puts the
> appropriate .swf ("../../flash/V01.swf") you specify on the screen.
> The only thing your included javascript files do is execute the
> javascript that allows SWFObject to gain control of it.
>
> Do you mean that i could simply get away WITHOUT those two lines...
>
> <script type="text/javascript" src="../../../scripts/swfobject.js"></
> script>
> <script type="text/javascript" src="../../../scripts/
> registerSWF.js"></
> script>
>
> because the way i embed my swf within the <object> tag does it by
> itself?
>
> All i have to fulfill in terms or requierements is this:
> - Flash content not dependent of Javascript
> - alternate content if no Javascript and/or no Flash Player
>
> To recap, i could get away wihthout those two lines because the way i
> embed my swf with the <object> tag is sufficient by itself to meet
> the
> requierements?
>
> Thanks again.
>
> --
> 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