StockTicker.retrieverScriptURL

Availability

StockTicker component version 1.7

Usage

tickerInstance.retrieverScriptURL

Description

Property; A String. The retrieverScriptURL is a string value indicating where the component should retrieve stock data. The url usually is the script supplied with the component, stockquote.php (the default). It uses a relative path from the swf to the URL. If you want to use a plain xml file or a different script to retrieve quotes, perhaps in a different scripting language like ASP.NET or jsp, specify the name of your script here.

NOTE: In AS3 you must use the full url to the script, ie. http://www.mydomain.com/stockquote.php, or else the data will not be loaded because of security restrictions.

Since some people may want to test the stock quotes before uploading files to their server, it's possible to do this in 1 of 2 ways:

1) Clear this property to an empty string.
2) Append a "?test" to the end of the URL. So for example if you had retrieverScriptURL set to 'stockquote.php', you could retrieve data locally by setting it to 'stockquote.php?test'.

A web service is used in this case to retrieve the stock data, but this web service will not work once your swf is online. (That's when the PHP script is used).

Example

The following code sets the ticker to point to a jsp script to pull stock data:

myTicker.retrieverScriptURL = "scripts/stockquote.jsp"; // get the jsp script in the 'scripts' directory relative to the running swf