A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Calling twitter into Flash

  1. #1
    Member
    Join Date
    Jan 2001
    Location
    Tampa, FL
    Posts
    62

    Calling twitter into Flash

    I created a twitter account and i'm trying to bring the favorite tweets into a flash page.
    How do i call in this data? Im not very good with code outside of flash.

    Heres the script i got from twitter:

    <script src="http://widgets.twimg.com/j/2/widget.js"></script>
    <script>
    new TWTR.Widget({
    version: 2,
    type: 'faves',
    rpp: 39,
    interval: 30000,
    title: 'Beer List',
    subject: 'Lost Kangaroo Pub',
    width: 250,
    height: 600,
    theme: {
    shell: {
    background: '#43c43f',
    color: '#ffffff'
    },
    tweets: {
    background: '#ffffff',
    color: '#444444',
    links: '#43c43f'
    }
    },
    features: {
    scrollbar: false,
    loop: false,
    live: true,
    hashtags: false,
    timestamp: false,
    avatars: false,
    behavior: 'all'
    }
    }).render().setUser('JonPaulTaylor').start();
    </script>

    I got Flash cs4.mac
    1100101010100101

  2. #2
    Member
    Join Date
    Jan 2001
    Location
    Tampa, FL
    Posts
    62
    I got this script from Blue_chi.
    it works in Actionscript 3. How do i get this code to work in Actionscript 2?

    var myXMLLoader:URLLoader = new URLLoader();
    myXMLLoader.load(new URLRequest("twitter.php"));
    myXMLLoader.addEventListener(Event.COMPLETE, processXML);

    function processXML(e:Event):void{
    var myXML:XML = new XML(e.target.data);

    tweet_1.text = myXML.status[0].text;
    tweet_2.text = myXML.status[1].text;
    tweet_3.text = myXML.status[2].text;
    1100101010100101

  3. #3
    Member
    Join Date
    Nov 2007
    Location
    Los Angeles, CA
    Posts
    32
    I'm a little late to the party but check tutorial out:
    http://www.republicofcode.com/tutori...witter_widget/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center