Hi!
I'm trying to make a tv-series catalog for myself but i'm having
some trouble. This it how far i have come:
http://serenadserver.homeip.net/flex/katalog/tvserier/tvserier.mxml
I'm having some problem to make something like when u click on the
series all the episodes will show in the grid. My problem is I have
no idea how to make the xml for it or how to make it in flex could
you help me?
Here is my xml:
<?xml version="1.0" encoding="iso-8859-1"?>
<tvserier>
<serier>
<title>Lost</title>
<info>From J.J. Abrams, the creator of Alias, and
Damon Lindelof (Crossing Jordan) comes an action-packed adventure
that will bring out the very best and the very worst in the people
who are lost. Out of the blackness, the first thing Jack (Matthew
Fox, Party of Five) senses is pain. Then burning sun. A Bamboo
forest. Smoke. Screams. With a rush comes the horrible awareness
that the plane he was... </info>
<image>http://image.com.com/tv/images/processed/thumb/41/fa/1
2304.jpg</image>
<episode>Pilot. Pilot (1)</episode>
</serier>
<serier>
<title>The 4400</title>
<info>The 4400 tells the stories of 4,400 abductees
after they are returned to earth, but they ended up being abducted
by people from the future to save mankind. In the words of the
executive producers, these are stories of people dealing with
traumatic changes, driven by the mystery of what happened and why.
Some of them have been affected in mysterious ways, and some will
have certain... </info>
<image>http://image.com.com/tv/images/processed/thumb/ea/18/6
001.jpg</image>
</serier>
</tvserier>
Here is my flex:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
initialize="mySrv.send()">
<mx:Script>
<![CDATA[
var selectedItem;
]]>
</mx:Script>
<mx:HTTPService id="mySrv"
url="http://192.168.0.200/PHP/tvSerier.xml" showBusyCursor="true"
resultFormat="object" contentType="application/xml" method="GET">
</mx:HTTPService>
<mx:Style source="tvserier_style.css"/>
<mx:Panel width="462" height="600">
<mx:VDividedBox height="100%" width="100%">
<mx:HBox width="100%" height="100%" marginTop="5">
<mx:TileList id="tvList" width="100%"
height="100%" itemWidth="430" itemHeight="156" borderStyle="solid"
borderSides="bottom" dataProvider="{mySrv.result.tvserier.serier}"
change="selectedItem=event.target.selectedItem"
cellRenderer="TvThumbnail" />
</mx:HBox>
<mx:DataGrid id="avsnitt" height="166" width="100%"
dataProvider="{tvList.selectedIndex}">
<mx:columns>
<mx:Array>
<mx:DataGridColumn headerText="Avsnitt"
columnName="episode" />
<mx:DataGridColumn headerText="Säsong" columnName="id" />
<mx:DataGridColumn headerText="Undertexter"
columnName="Undertexter" />
</mx:Array>
</mx:columns>
</mx:DataGrid>
</mx:VDividedBox>
</mx:Panel>
</mx:Application>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/