Groups | Blog | Home
all groups > macromedia flash sitedesign > june 2007 >

macromedia flash sitedesign : Path confusion-need help


martoons1
6/4/2007 12:00:00 AM
Hi. I am building a portfolio site for myself in which I'm using a 3rd party
Accordion component and loading SWFs into the different sections. In one
section I have a comboBox component as well which is loading an external xml
file for the data.
I've tried to build this without the external xml file and the result is the
same so I'm pretty sure that isn't the problem.

The content for the comboBox isn't loading into the component though. I'm sure
it's due to path problems, because it loads fine as a separate SWF.
Can someone help me understand the path situation.
I have a main SWF with the component named "accordion". Into this is loaded
all the external SWFs.
In the SWF in question I have a component named "combo_2" loading the xml data.
As far as I know I am loading a file into the root(main timeline) of the
loaded swf so logically, to me, I should just be able to use:
_root.combo_2.startComboBox("xml/combo1.xml");
But this doesn't work.

here is some of the code i've tried and failed with:

_root._level0.combo_2.startComboBox("xml/combo1.xml");
_parent._parent..combo_2.startComboBox("xml/combo1.xml");

I'm sure there is some fundamental I am not understanding. Can someone please
help.
Thank you.

Martoons

mikegibbo
6/14/2007 11:03:49 AM
Try using the target icon in the action script. It does a great job, I had the same troubles until I started using it.

Hope it works

AddThis Social Bookmark Button