List Info

Thread: Re: Load XML




Re: Load XML
country flaguser name
United States
2007-03-19 16:41:08
Sorry, I don't think I made myself quite clear. I built an
XML-driven 
flash menu, and in my actions layer I call in menu.xml.  My
flash menu 
is embedded into the web pages using swfobject. Currently I
call in the 
XML file with menu_xml.load("menu.xml");

In my actions layer I know I can call in the XML file by
doing
    menu_xml.load("http://w
ww.mywebsite.com/swfs/menu.xml");
but this isn't ideal because I have a test site I put
everything on 
first, so I'd be stuck changing the URL in the .fla every
time. (helmut 
that is what I meant by doing the work twice - I would have
to 
constantly switch the URL back and forth).

Am I approaching this wrong?

Thuy Nguyen
Web Designer
Angus Journal
816.383.5228

>   
_______________________________________________
Flashnewbiechattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.c
om

RE: Load XML
country flaguser name
United States
2007-03-19 17:06:04
Then what you need is some code to dynamically change the
domain - what
I use in a case like that is something like this:

var application:Object = new Object();
application.url = this._url.slice(0,
this._url.lastIndexOf("/")+1);

then wherever I want, I just call application.url and append
the
fileaname/folders of the file I want to load.  It works no
matter the
.swf domain.

Jason Merrill
Bank of America  
Global Technology & Operations
Learning & Leadership Development 
eTools & Multimedia Team


 
_______________________________________________
Flashnewbiechattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.c
om

Re: Load XML
user name
2007-03-19 17:10:10
you are doing it correctly and since you are using swfobject
i'll tell you
how I would skin this cat.

I would create a variable on my menu swf and call it
menuDepth (or similar)

then you can use an if statement or a case statement to
determine the
variable, then i would call me xlm such as

if menuDepth == 1
then
load xml
else if menuDepth == 2
load ../xml
else if menuDepth == 3
load ../../xml
and.. you get the idea

then with swobject I would pass the menuDepth variable to me
flash movie...

again, many ways to skin this naked cat and this is how I
would skin it 

...helmut


On 3/19/07, Thuy <tnguyenangusjournal.com>
wrote:
>
> Sorry, I don't think I made myself quite clear. I built
an XML-driven
> flash menu, and in my actions layer I call in menu.xml.
 My flash menu
> is embedded into the web pages using swfobject.
Currently I call in the
> XML file with menu_xml.load("menu.xml");
>
> In my actions layer I know I can call in the XML file
by doing
>     menu_xml.load("http://w
ww.mywebsite.com/swfs/menu.xml");
> but this isn't ideal because I have a test site I put
everything on
> first, so I'd be stuck changing the URL in the .fla
every time. (helmut
> that is what I meant by doing the work twice - I would
have to
> constantly switch the URL back and forth).
>
> Am I approaching this wrong?
>
> Thuy Nguyen
> Web Designer
> Angus Journal
> 816.383.5228
>
> >
> _______________________________________________
> Flashnewbiechattyfig.figleaf.com
> To change your subscription options or search the
archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.c
om
>
_______________________________________________
Flashnewbiechattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.c
om

Re: Load XML
user name
2007-03-19 17:32:30
I like Jason's option the bestest....

...helmut

On 3/19/07, Merrill, Jason <jason.merrillbankofamerica.com> wrote:
>
> Then what you need is some code to dynamically change
the domain - what
> I use in a case like that is something like this:
>
> var application:Object = new Object();
> application.url = this._url.slice(0,
this._url.lastIndexOf("/")+1);
>
> then wherever I want, I just call application.url and
append the
> fileaname/folders of the file I want to load.  It works
no matter the
> .swf domain.
>
> Jason Merrill
> Bank of America
> Global Technology & Operations
> Learning & Leadership Development
> eTools & Multimedia Team
>
>
>
> _______________________________________________
> Flashnewbiechattyfig.figleaf.com
> To change your subscription options or search the
archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.c
om
>
_______________________________________________
Flashnewbiechattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.c
om

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )