To further illustrate how to do this, you can do the below:
**SWFOBJECT CODE**
<script type="text/javascript">
var flashvars = {xmlFile: "path of xml"};
var params = {};
var attributes = {};
swfobject.embedSWF("images/cellnorth_banner_625x275.swf", "banner1", "625",
"275", "9.0.0", false, flashvars, params, attributes);
</script>
**ACTIONSCRIPT IN FLA**
var paramList:Object = this.root.loaderInfo.parameters;
Now the paramList will contain your variables in the flashVars from
SWFObject. I used this method for 3 areas on a webpage. Each version used
the same swf file but used different XML that was determined by the
flashVars on which XML to load.
Hope this helps,
Nathan Mynarcik
Interactive Web Developer
[email protected]
254.749.2525
www.mynarcik.com
On Mon, Apr 26, 2010 at 1:38 PM, Nathan Mynarcik <[email protected]> wrote:
> You should include the path to the xml via the flashvars area of swfobject.
> Then from there, you need to pull in the flash vars with your actionscript.
>
>
> -----Original Message-----
> From: Jitendra <[email protected]>
> Date: Mon, 26 Apr 2010 11:00:28
> To: SWFObject<[email protected]>
> Subject: [SWFObject] How to define absolute path of xml, images folder and
> main swf path in this swf object code?
>
> How to define absolute path of xml, images folder and main swf path in
> this swf object code?
>
> <script type="text/javascript">
> var flashvars = {};
> var params = {};
> var attributes = {};
> swfobject.embedSWF("loader.swf", "flash-banner", "920",
> "320", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
> </script>
>
>
> This is structure.
>
> loader.swf
> main.swf
> main.xml
> images
> ---1.jpg
> ---2.jpg
> ---3.jpg
>
> --
> 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.