Polling the twitter service every 60 seconds (refresh) would be a way
that you could get updates semi-automatically.  You're not using RTMP,
so you're never going to be really live.   HTTPService calls are
asynchronous, so there isn't much overhead just listening to a Timer().
For extending the functionality, here's a couple links.
http://blogs.adobe.com/flexdoc/2009/03/simple_twitter_client_in_flex.htm
<http://blogs.adobe.com/flexdoc/2009/03/simple_twitter_client_in_flex.ht\
ml>  l http://apiwiki.twitter.com/Twitter-API-Documentation
<http://apiwiki.twitter.com/Twitter-API-Documentation>
-TH

--- In [email protected], "James" <garymoorcroft_...@...>
wrote:
>
> But is it possible within flex to have a feed that acts live such as
this i.e. it is constantly changing? I thought within flex you could
only load data upon some sort of event such as the click of a button?
>
> The user can refresh their tweets simply by clicking the load tweets
button again but may it be better to have a refresh function constantly
running and refreshing the feed every couple of seconds to keep it
essentially 'live'? I thought something like this would take up
memory/loading times though.
>
> The ability to post tweets to twitter from within an app does sound
like a great idea though. I wouldn't know where to start on this though.
Do you know of any examples on the net that show this being done that I
could implement into my own?
>
> Cheers for your help though. These are good ideas.
>
> --- In [email protected], "turbo_vb" TimHoff@ wrote:
> >
> > Hi James,
> >
> > If your application automatically displays new tweets, those created
after the initial load, than yes; that would be considered "live".  If
however its just taking a snapshot, then no.  A starting point would be
to "refresh" the tweets.  Having the ability to post tweets, and see
them instantly show up, would also make it more live.  Other ideas would
be IM, chat, or other real-time activities that involve the course; like
live test scoring, or something.
> >
> > -TH
> >
> > --- In [email protected], "James" <garymoorcroft_ict@>
wrote:
> > >
> > > I've previously made an air application for my university course
and my tutor has suggested that I incorporate more "live data" into it.
One of the ways he suggested was to include a twitter feed. I have no
experience of using feeds within flex but I think I've managed to get
one in.
> > >
> > > How it works is when users type in their twitter id and click a
load button all of their tweets are displayed within a repeater
component. They can then click a save button to save their twitter id
and whenever they start the application in the future their tweets will
load into the repeater component automatically as long as their name has
been saved.
> > >
> > > This may seem like silly question but does what I've described
constitute a 'live twitter feed' which is what I've been asked to
include or am I missing something?
> > >
> >
>

Reply via email to