The Ultrashock Ultra Bundle
  • Home
  • Community
  • Forum
  • Flash
  • Flex
  • Thread
  •  
  • Previous topic
  • Next topic
Sign up to post

Flash
 Flex

  • adehaas Author 
    • 639 
    • 0 
    • 0 
    RSS feed not showing
    adehaas

    No comments yet

    Be the first to comment

    Posted: Oct 04 2008, 09:00 PM

    by adehaas

     

hi all,

been testing a very basic rss feed in flex (from adobe’s cookbook beta).
see code below.
the weird thing is, it doesn’t throw an error, but just doesn’t show anything when launched?!? any ides?

the compiler argument is set to “-locale en_US -use-network=true” ... not sure if this is how it’s supposed to be for this kind of app though ... thanks for any tip in the right direction guys!

[AS]

<?xml version=“1.0” encoding=“utf-8”?>
<mx:Application xmlns:mx=“http://www.adobe.com/2006/mxml” layout=“absolute”
backgroundColor=”#000000”
applicationComplete=“rssFeeder.send();”>

<mx:HTTPService id=“rssFeeder”
  url=“http://rabbitpot.wordpress.com/?feed=rss2”
  result=“rHandler(event)”>
</mx:HTTPService>

<mx:Script>
  <![CDATA[
 
  import mx.rpc.events.FaultEvent;
  import mx.collections.ArrayCollection;
  import mx.rpc.events.ResultEvent;
  import mx.controls.Alert;
 
  [Bindable]
  private var rArray:ArrayCollection;
 
  private function rHandler(event:ResultEvent):void
  {
  rArray = event.result.channel.item as ArrayCollection;
  }
 
  private function eHandler(event:FaultEvent):void
  {
  Alert.show(event.message.toString(), “Couldn’t feed”);
  }
 
  ]]>
</mx:Script>

<mx:DataGrid x=“0” y=“10” width=“100%” height=“200” dataProvider=”{rArray}”>
  <mx:columns>
  <mx:DataGridColumn headerText=“Title” dataField=“title”>
      <mx:DataGridColumn headerText=“Date” dataField=“date”>
      <mx:DataGridColumn headerText=“Description” dataField=“description”>
  </mx:columns>
</mx:DataGrid>

</mx:Application>

[/AS]

thanks!

  0 REPLIES
 
  •   Log in or join for free to make a comment.
 
Topic actions
  •  Share on Facebook
  •  Share on Twitter
Topic Categories
  •  Show All Topics
  •  Development
    •  Server Side
    •  Client Side
  •  Creative Software
    •  Web
    •  Video
    •  3D
    •  Illustrator
    •  Photoshop Battles
    •  Photoshop
  •  Design
    •  Typography
    •  Resources & Insight
    •  Checkpoint
  •  Career
    •  Copyright Matters
    •  Advice & issues
    •  Job Seekers
    •  Job Offers
  •  Flash
    •  UltraMath
    •  OOP
    •  Third Party Tools
    •  Open Source alternatives
    •  Data Communication
    •  Components
    •  Flex
    •  AIR
    •  Flash Lite
    •  Flash Professional
    •  Flash Newbie
    •  ActionScript
    •  XML
  •  Lounge
    •  Polls
    •  Random Chat
    •  Showcase And Critique
    •  BombShock Award Nominations
  •  Community Essentials
    •  BombShock Award Winners
    •  Tutorials
    •  Interviews
    •  News
    •  Bitmap tutorials
Popular Topics
  • Sort by: 
  • Activity
  • Views
  • Comments
  • Likes
Advertise with us
  • Your advertisement here!
  • loading
Ultrashock
  • Creative Assets
  • Community
  • Blog
  1. Home
  2. Forum
+/-
Creative Assets
  • Categories
  • Contributors
  • How to buy
Make Money
  • Commission Rates
  • Referral Program
  • Contributor Program
Community
  • Activity Feed
  • Forum
  • Profiles
About
  • Quick Tour
  • Our History
  • Banners & Logos
Support
  • Contact Ultrashock
  • Advertise with us
  • Legal Information
  •  Keep up to date
  • Flash 779  Flash
  • Audio 6,481  Audio
  • Vector 2,130  Vectors
  • Image 12,338  Images
  • Creative Assets 21,728  Assets
  • Profiles 282,751  Members
  • Topics 93,776  Topics
  • Blog 4  Blog
  • Facebook 1,679  Facebook
  • Twitter 1,163  Twitter
  • Join our FREE monthly newsletter!
  • Archive
  • Invalid email address. Please try again.
Subscribe
  • ©2012 Ultrashock LLC - All rights reserved
  • Terms of Use
  • Privacy Policy
  • Switch to dark theme
  • RSS Feeds
  • Top

©2012 Ultrashock LLC - All rights reserved

Printed on Sat, February 11, 2012 - 19:20:01