*1) base param*
yes you can use the base param in this way you can also use absolute paths
too.  Often when developing a site assets are kept by type in a sub folder
eg js, css, images, swf or flash etc.  In this case testing you flash movie
will be relative to its current location which is /flash (in your case) so
the movie is attempting to load files from within this location (I often
have files for testing flash here on localhost for development purposes)
 The base param sets flash instance a new base location from which to load -
so you can use absolute paths instead and achieve the same ends.  So assets
are loaded from this base location the default is ./ which is the same
location as the html (php jsp or what have you) embedding the swf file

you can use any tool that can monitor http activity - I find firebug for
firefox's net profiler perfect for this

*2) flashvars*
yeah that did look odd but as you have amended it you should now be getting
the var via trace(_root.primaryXML) should output bannerhome.xml

- S


2009/9/9 mplsdan <[email protected]>

>
> Thanks for the suggestion.
>
> To the above point, I honestly don't understand the "base" parameter
> too well. Is the base parameter used to change or correct paths that
> are used in your Flash file? Or does it help point to the location of
> your .swf file?
>
> I ended up using absolute paths in my swfobject code to get this
> going, and in my XML file, I essentially did the same thing.
>
> To fix my bigger issue, after much stressing, I figured out that I had
> the variable name wrong, the one that was telling my Flash file what
> XML file to use. Once I updated that, my code worked.
>
> So instead of this:
>   <param name="flashvars" value="xml=bannerhome" />
>
> I changed it to this:
>  <param name="flashvars" value="primaryXML=bannerhome.xml" />
> (for example)
>
>
>
> On Sep 9, 1:26 pm, Sam Sherlock <[email protected]> wrote:
> > try adding
> > <param name="base" value="/flash" />
> >
> >  to each object of the static output
> >
> > - S
> >
> > 2009/9/9 mplsdan <[email protected]>
> >
> >
> >
> >
> >
> > > I am trying to pass an XML file to my swfobject script, and having
> > > trouble. I used the online generator, but I'm not sure where I define
> > > my XML file in the code? I tried the flashvars, with xml="filename"...
> >
> > > I need this code to be in the body of the page, so I'm using the
> > > 'static' method. I'll paste the URL of the site in question, and my
> > > code below.
> >
> > > The site URL:
> > >http://precision.thenetforward.com
> >
> > > ----------------
> >
> > > The swfobject code I'm using:
> >
> > > <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> > > width="990" height="280" id="precisionBanner">
> > >                                <param name="movie"
> > > value="/flash/flashhead.swf" />
> > >                                <param name="allowfullscreen"
> value="false"
> > > />
> > >                                <param name="allowscriptaccess"
> > > value="sameDomain" />
> > >                                <param name="flashvars"
> > > value="xml=bannerhome" />
> > >                                <!--[if !IE]>-->
> > >                                <object
> type="application/x-shockwave-flash"
> > > data="/flash/
> > > flashhead.swf" width="990" height="280">
> > >                                        <param name="allowfullscreen"
> > > value="false" />
> > >                                        <param name="allowscriptaccess"
> > > value="sameDomain" />
> > >                                        <param name="flashvars"
> > > value="xml=bannerhome" />
> > >                                <!--<![endif]-->
> > >                                        <a href="
> > >http://www.adobe.com/go/getflashplayer";>
> > >                                                <img src="
> > >http://www.adobe.com/images/shared/download_buttons/
> > > get_flash_player.gif" alt="Get Adobe Flash player" />
> > >                                        </a>
> > >                                <!--[if !IE]>-->
> > >                                </object>
> > >                                <!--<![endif]-->
> > >                        </object>
> >
>

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