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 won’t get far.

 

 

Sorry I haven’t been more helpful.

 

--Kelly

[EMAIL PROTECTED]

www.dekaydmedia.com

 

 

 


From: [email protected] [mailto:[email protected]] On Behalf Of pioplacz
Sent: Sunday, October 23, 2005 7:43 PM
To: [email protected]
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>
            <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="" 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




Reply via email to