{"id":2008,"date":"2004-03-20T16:12:30","date_gmt":"2004-03-20T16:12:30","guid":{"rendered":"http:\/\/www.soulhuntre.com\/items\/date\/2004\/03\/20\/flash-based-xml-parsing\/"},"modified":"2004-03-20T16:12:30","modified_gmt":"2004-03-20T16:12:30","slug":"flash-based-xml-parsing","status":"publish","type":"post","link":"http:\/\/legacyiamsenseiken.local\/2004\/03\/20\/flash-based-xml-parsing\/","title":{"rendered":"Flash based XML parsing"},"content":{"rendered":"
ed note: I am writing this entry because it too me 12 hours or so to cram the solution to my current problem into my head. I am goign to nap. If I lose it all, this entry will give me the fast track on getting it back if I need it \ud83d\ude42<\/i><\/p>\n
Flash<\/a> and XML<\/a>, two things that should go together. So for the Client A site I have data in the CMS (content management system) and I need to use it to build submenu’s for navigation. No problem, I used a PHP script to pull it out and build an XML file. Pulling that into Flash is no problem… the thing is, what to do with it?<\/p>\n To start with, I tied it into the nice components that come with Flask 2004 MX. I figure that’s what they are there for. And it works, the XML goes into a component and that gets wired to a list box and blammo<\/i>… it works. Except the list box looks nothing like I need it to for the client… and the one thing I need to be able to do (make the background transparent) doesn’t seem to be possible.<\/p>\n <\/p>\n Ok, backup plan. Put a bunch of label components in the menu area, stack ’em and handle the indexing for the scroll myself. I needed to do it anyway ’cause the scrolling wasn’t going to be standard. So I can’t use the auto XMLConnector, I have to use the regular XML stuff and walk the tree<\/a> myself.<\/p>\n Example 1<\/b><\/u><\/p>\n <?xml version=”1.0″ ?> \n
<galleries>
<gallery>
<title>Art Work<\/title>
<id>2<\/id>
<weight>25<\/weight>
<url>\/content\/sections\/gallery\/gallery.php?gallery_id=2<\/url>
<target \/>
<\/gallery>
<gallery>
<title>Test gallery<\/title>
<id>4<\/id>
<weight>25<\/weight>
<url>\/content\/sections\/gallery\/gallery.php?gallery_id=4<\/url>
<target \/>
<\/gallery>
<\/galleries><\/p>\n<\/blockquote>\n