Flash add to cart

Im just trying to translate this:

<form action=https://secure2.360training.com/vu3/index.cfm?event=addCartItems&amp;cId=3199 name="theForm" method="post">
    <input value="1714676" name="packageId" type="hidden"><input value="77" id="verticalId" name="verticalId" type="hidden"><input src="/images/enroll-now.gif" alt="Enroll for OSHA 10 Hour Construction Course" align="left" type="image">
</form>

to a simple flash button. I cannot get it to work by using this method:

    pur.addEventListener(MouseEvent.CLICK, addItem);
function addItem (event:MouseEvent):void
{
var url:String = "https://secure2.360training.com/vu3/index.cfm?event=addCartItems&cId=3199";
var request:URLRequest = new URLRequest(url);
var roman:URLVariables = new URLVariables();
roman.productId="1714676";
request.data = roman;
request.method = URLRequestMethod.POST;
navigateToURL(request, "_blank");
}

Does anyone have any suggestions?