Accessibility
 
Home > Products > Flash > Support > Building Applications
Flash Icon Macromedia Flash Support Center - Building Applications
Trading portfolio holdings

To address the fourth requirement in the IMEX system, you must be able to trade securities from the client Flash movie. The user will enter one or more buy/sell trades into the Flash movie, and then transmit them to the server using an XML element called TRANSACTION . Each TRANSACTION element contains one or more TRADE elements.

<TRANSACTION SESSION="rnr6f7vkj2oe14m7jkkycilb" />
<TRADE ACTION="BUY"
    TYPE="MARKET"
    SYMBOL="RICH"
    QTY="50" />
<TRADE ACTION="SELL"
    TYPE="LIMIT"
    PRICE="50.375"
    SYMBOL="POOR"
    QTY="100" />
</TRANSACTION>

To indicate whether the transaction succeeded or failed, the server replies with one of the following TRANSACTIONREPLY elements:

<TRANSACTIONREPLY STATUS="OK" />

or

<TRANSACTIONREPLY STATUS="FAILED" />

Note: For more information about XML, search Webmonkey using the keyword "XML."

To Table of Contents Back to Previous document Forward to next document