Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8923753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:13:15+00:00 2026-06-15T07:13:15+00:00

This is a script that pulls data from a text feed and displays the

  • 0

This is a script that pulls data from a text feed and displays the Stock value from within that feed. It works just fine when I test the movie but when I try to publish it in a web page it does not display the live data in IE or Chrome. I’m just using the default publish options and I’m also trying to use it on a Digital Signage player that is essentially rendering a web page in IE.

import flash.net.URLLoader;
import flash.net.URLRequest;

var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onLoaded);

function onLoaded(e:Event):void{
    var rawRSS:String = e.target.data;
    var pattern:RegExp = /<TD.*?TD>/sg; 
    var pieces:Array = rawRSS.match(pattern);   
    var CH = pieces[2].split(">");
    var CHR = CH[1].split("<");
    var CHRW:String = String(CHR[0]);
    var CHRWT:String = CHRW.substr(0,5);

    stock_price.text = CHRWT;

    var loc:int = pieces[4].indexOf("+",0);
    var gain:String = String(pieces[4].charAt(loc));
    //trace(gain);

    if (gain == "+"){
        stock_price.textColor = 0x00CC33;
    }
    else {
        stock_price.textColor = 0xFF0000;
    }

}

loader.load(new URLRequest("http://www.nasdaq.com/aspxcontent/NasdaqRSS.aspx?data=quotes&symbol=CHRW"));
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T07:13:16+00:00Added an answer on June 15, 2026 at 7:13 am

    If you run your swf from a web server, it is not allowed to fetch data from another domain, unless that domain allows it in a crossdomain.xml file, and Nasdaq’s doesn’t.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is driving me crazy. I have a script that pulls data from a
I have this script that collects data from users and I want to check
I'm trying to run this script that basically reads/interprets text in from a textfile
I have this jQuery script that works fine: $(select).change(function () { var finalPrice =
I have a server with a PHP script that pulls data from a source
I've got a Python CGI script that pulls data from a GPS service; I'd
I'm modifying an XML generator script that pulls data from a Sharepoint list, and
I have a perl script that pulls serialized php data from a database, unserializes
I have an R script that pulls data from a MySQL database, processes it,
I tweaked this script that I used from JqueryUi and I have a problem.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.