3 Replies Latest reply on Jun 8, 2008 9:02 PM by Gregory Lafrance

    Very easy, quesion from someone very new...

      Hi every one first off thx for taking the time to help me out.

      I'm very very new to flex and coding in general so you can help me out with my question plz dumb it way down because your explaining this to a complete newbie.

      My question come directly from the flex help file:
      Getting Started with Flex 2 > Lessons > Retrieve and Display Data :

      It's actually the second lesson on getting started and I'm already stuck.
      Here is the problem I've build myself a little Blog page using components from Flex following the instructions to the letter as close as I can but when I get to this part of the lesson:

      In Source mode, enter the following <mx:HTTPService> tag immediately after the opening <mx:Application> tag: <mx:HTTPService
      url=" http://weblogs.macromedia.com/mchotin/index.xml"

      The URL property specifies the location of the requested file, in this case the RSS 2.0 feed of Matt Chotin's blog. As of this writing, the URL was still valid, but you should check to make sure it hasn't changed. You should use the latest RSS 2.0 URL listed on the right side of the blog at http://www.adobe.com/go/mchotinblog.http://

      Ok bad news not only does the demo URL to an RSS feed not working. But the index page of working RSS feeds are not working either so I'm pretty much stuck wondering if I've even done the rest of the lesson right.

      Can anyone take the time to share an RSS feed link with me that I can plug into my code to even test if it’s working. If someone can give me a valid feed to test out then I can trouble shoot the rest of the lesson from that point but at this phase without a working feed I don't know what if anything is working.

      PS: I've attached my code with this thread so plz feel free to look it over and it’s if the problem may lay elsewhere.

      Thx for the assist,


        • 1. Re: Very easy, quesion from someone very new...
          Gregory Lafrance Level 6
          Yeah, the FB2 help system is good, but in rare occasions it sucks. In this case the lesson fills in the details later, most of the details that is. This works:

          <?xml version="1.0" encoding="utf-8"?>
          <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml"
          creationComplete="feedRequest.send()" layout="absolute">

          <mx:HTTPService id="feedRequest" useProxy="false"
          url=" http://weblogs.macromedia.com/mchotin/index.xml"/>

          <mx:Panel x="10" y="10" width="600" height="350"
          <mx:DataGrid id="dgPosts" x="20" y="20" width="550"
          <mx:DataGridColumn headerText="Posts" dataField="title"/>
          <mx:DataGridColumn headerText="Date" dataField="pubDate" width="200" />

          <mx:LinkButton x="20" y="225" label="Read Full Post" click="trace(dgPosts.selectedItem.link);navigateToURL(new URLRequest(dgPosts.selectedItem.link));"/>

          <mx:TextArea x="20" y="175" width="550" height="100" text="{dgPosts.selectedItem.description}"/>

          • 2. Re: Very easy, quesion from someone very new...
            John_C_Taylor Level 1
            Thx for the code Greg I tested it out and it works just fine. But you sure are right in that quite a bit of info was left out of the help file to make this work. I'm thinking of using the Lynda lessons to learn a bit more. If this lesson is a reflection of things to come then I think consulting an outside source for flex lessons might not be a bad idea. I've also been considering upgrading from FB2 to FB3 do you think that would be a good idea for a beginner?

            Thx you for all your help in this matter.

            • 3. Re: Very easy, quesion from someone very new...
              Gregory Lafrance Level 6
              FB 2.0.1 help system overall is very good, and I always recommend people to go through the entire FB2.0.1 help system, reading everything and compiling all the sample apps. Its a great way to learn many details about Flex you otherwise would not learn.

              Flex 3 is worthwhile upgrading to, in which case the entire FB3 help system.