RE: [flexcoders] showing subcateogries on selecteditem
I think you should divide your xml into two files. The first one should hold the basic information about the series like this: ?xml version=1.0 encoding=iso-8859-1? tvserier serier titleLost/title infoFrom 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 imagehttp://image.com.com/tv/images/processed/thumb/41/fa/1 2304.jpg/image /serier Etc etc. Then you place the episode data in another xml document, but with a reference to the Series like this: ?xml version=1.0 encoding=iso-8859-1? tvepisodes episode title=LostPilot. Pilot (1)/episode Etc etc. In this way you can filter the data based on the 'title' attribute in the second document. I hope that helps. Best regards Torben Nielsen Starvision Studios -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pioplacz Sent: lunedì 24 ottobre 2005 1.43 To: flexcoders@yahoogroups.com Subject: [flexcoders] showing subcateogries on selecteditem 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 titleLost/title infoFrom 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 imagehttp://image.com.com/tv/images/processed/thumb/41/fa/1 2304.jpg/image episodePilot. Pilot (1)/episode /serier serier titleThe 4400/title infoThe 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 imagehttp://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 -- 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 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
RE: [flexcoders] showing subcateogries on selecteditem
Why make it in xml? Why not just put it all in a database and pull it from there. It is easier to update that way. Do you know any server side languages? (ColdFusion, JSP, PHP, etc) If you plan on using Flex for anything serious then I suggest learning scripting languages and database design and management or hire someone that does know them. Otherwise you probably wont get far. Sorry I havent been more helpful. --Kelly [EMAIL PROTECTED] www.dekaydmedia.com From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of pioplacz Sent: Sunday, October 23, 2005 7:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] showing subcateogries on selecteditem 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 titleLost/title infoFrom 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 imagehttp://image.com.com/tv/images/processed/thumb/41/fa/1 2304.jpg/image episodePilot. Pilot (1)/episode /serier serier titleThe 4400/title infoThe 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 imagehttp://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="" href="http://192.168.0.200/PHP/tvSerier.xml">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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.