Groups | Blog | Home
all groups > flash data integration > december 2005 >

flash data integration : XML connector & combo boxes


JoLiv73
12/30/2005 8:56:28 AM
Hi to everyone
I'm trying to import xml data into my flash 7, a.s.2 project. I also studied
the XMLConnector tutorial.

I use the xml connector combined with a drop down combo box and a text box, in
order to select and display my xml data.
The whole project works fine as long as i keep the components at the root
level.
When I move the combo & text box on a movie symbol, they are no longer
available for Binding with the xmlconnector (at the component inspector).

I tried another way: I compile a small swf, including the mentioned
components, at the root level. Then I load it (loadMovie) from within my
project. It works, BUT the drop down combo box doesn't actually ...DROP!

Has anyone ever faced a similar problem?

Thanks
dreambits
1/6/2006 9:29:22 PM
[quoted text, click to view]

the Binding only works on the first frame of the movie or a movieclip,
the help files say.
I have no experience with your second problem, i have just checked out
how the binding works, and for just importing XML data, in my opinion
it's better to just do it "manually", without the components. I use a
class from Sepiroth that imports xml and converts it to native flash
objects. I use it all the time, it's very nice. Check it out if you're
interested at http://www.sephiroth.it

-Edwin


--
Dreambits, dreamweaver CD-Rom en online cursus
roveberg
2/22/2006 5:16:00 PM
Aside from making sure the components are on the first frame of your movie,
components also like to be on the root. This, of course, is often not
practical, so you can fool components nested in movieclips into thinking
they're on the root by actually using a small piece of actionscript:

this._lockroot = true;

Put that action in the first frame of the movieclip and your components in
that swf should work fine when loaded into another movie.
AddThis Social Bookmark Button