Index of /finance

      Name                    Last modified       Size  Description

[DIR] Parent Directory 05-Jan-2009 04:28 - [DIR] Currencies_Converter/ 01-Nov-2006 02:02 - [DIR] Finance_Ticker/ 01-Nov-2006 00:42 - [DIR] Forex_Cross_Rate/ 01-Nov-2006 02:02 - [DIR] LED_Display_Ticker/ 01-Nov-2006 02:02 - [DIR] Live_Quote/ 01-Nov-2006 00:42 - [DIR] Stock_Watch/ 01-Nov-2006 02:02 - [TXT] demo.html 01-Nov-2006 00:42 2k

*******************************
WELCOME TO STOCK APPLETS V.1.0!
*******************************

Thank you for purchasing this powerful set of stock applets from TUFaT.com. This is the first public release of these stock applets. Special thanks to Michael Klishin for creating these applets, and allowing their distribution on the $5 Script Archive.

Two important disclaimers first...

1) These applets were "inspired" by the Java applets from www.stockapplets.com. They are original in their coding and in all of their XML configuration options. Only the basic interface design is similar, and even that is somewhat different. At least, different enough in my opinion to sell on TUFaT.com as an original product. The next version of these applets will likely have further design improvements, and possibly some basic animation effects (I'm open to suggestions!).

2) These applets require a connection to Yahoo's Finance CSV and XML feeds to work correctly. Thus, if Yahoo Finance is down on a particular day, or if they change their CSV system somehow, these applets will fail. If Yahoo Finance is temporarily down, the only thing to do is wait until it comes back online. If Yahoo Finance actually changes the output format of their feeds, please let me know as soon as possible by emailing this information to g8z@yahoo.com. I don't actually monitor the Yahoo Finance feed daily, so you essentially have to tell me if they do this. I will certainly appreciate the heads-up, and I'll try to make the appropriate adjustments quickly.

Ok, moving on...

These applets include 100% of the Flash 2004 Professional source code. You MUST have at least version 7.2 of the compiler to compile the Flash source code. Also, if you're compiling the LED Ticker Display applet, please ensure that you have the TTF font installed. In some cases you may need to clear your ASO cache before compiling.

These applets all work in an identical manner: An XML configuration file, "settings.xml" is loaded on startup, which tells the Flash SWF file how to retrieve information from Yahoo Finance, and some basic display parameters for the applet.

For example, in the currency converter, you'll find this code:

<url>
	<prefix><![CDATA[http://finance.yahoo.com/d/quotes.csv?s=]]></prefix>
	<middle><![CDATA[]]></middle>
	<postfix><![CDATA[=X&f=sl1c1abg&e=.csv]]></postfix>
</url>

The combination of prefix, middle, and postfix makes up the full URL from which the applet retrieves data. 

You'll also see this in the currency converter applet:

<currencies>
	<currency id="USD" description="US dollar" />
	<currency id="EUR" description="Euro" />
	<currency id="CAD" description="Canadian dollar" />
	<currency id="GBP" description="UK pound" />
	<currency id="JPY" description="Japanese yen" />
	<currency id="CHF" description="Swiss franc" />
</currencies>

Obviously, this is the list of currencies that should be displayed in the applet. There is no limit to the number of different currencies that you can convert, but having many currencies will slow the applet loading time.

Most of these applets also have an <update> parameter, which tells Flash the number of seconds between refreshes. Currencies and stocks change by the minute, and sometimes even by the second. This ensures that your applet will always display the correct values - at least, correct according to Yahoo Finance. All of the applets in this set of Stock Applets include internal refreshes. This is essentially why you would choose to do these in Flash rather than traditional HTML. Flash can refresh in the background without requiring intervention by the user in the form of a browser refresh.

Of course, these applets include all of the Flash source code, but you only need to upload the SWF file, and the HTML file, to your server to make these work. The <object> code within the HTML files can be embedded directly within your website's page. The settings.xml file should always be in the same folder as the SWF, although you can change the XML file path, or the XML file name, in MainScript.as and re-compiling the SWF.

Rather than go through all of the various XML settings that are available in all applets, try changing some of the parameters yourself, and see the result! For the most part, I think they're very self-explanatory. Please be very careful when editing the XML configuration files. You should use a good text editor like TextPad (www.textpad.com), and be careful of XML syntax errors.

Please support the $5 Script Archive by not re-selling or re-distributing these applets. They took about 3 months to develop, at significant time and cost to me, and at $5 I think you'll agree that it's a great deal. You do get 100% of the source code after all, free upgrades, and community support on the TUFaT.com forum: http://www.tufat.com/forum/

Thanks for your support of TUFaT.com, and good luck!
Darren