Shopping cart help

This shopping cart is close to what I need , however it is not completely doing what I would like it to do and am looking for some help.

When someone presses the “add to shopping list” button, I would like the product information to load, but not be visible until the user is done adding all the products they want into the shopping list. Then I want them to be able to click on a “shopping list” tab at the top of the page and it will take them to the frame that holds the shopping list products they added.

Any ideas on how I can accomplish this with the code I have would be appreciated.

Here is the code I am using on Frame 1 of the timeline:

import Product;
import Shopping;

var shop_cart = new Shopping();
displayCart();

function displayCart(){
//Create main movie clip to hold shopping cart output
empty_mc = attachMovie(“empty_mc”,“empty_mc2”,150);
//Create movie clip to hold shopping cart output headings
temp_mc = empty_mc.attachMovie(“display_mc”,“headings_mc”,10 01);
temp_mc.total.text = “Total”;
temp_mc.desc.text = “Description”;
temp_mc.quantity.text = “Quantity”;
temp_mc.price.text = “Price”;
temp_mc.update_btn._visible = false;
delete temp_mc;
//Loop through items in shopping cart
for(i=0;i<shop_cart.size();i++){
var newProd:Product = shop_cart.getElement(i);
dataGrid.addItem(newProd)

//Attach display for each item in shopping cart
temp_mc = empty_mc.attachMovie(“display_mc”,“display_mc”+i,i +100);
//Shift display downward 16 pixels
temp_mc._y = (i + 1) * 20;
//Place values from product in shopping cart in the text fields
temp_mc.quantity.text=newProd.getQuantity();
temp_mc.desc.text=newProd.getDesc();
temp_mc.price.text=newProd.getPrice();
temp_mc.total.text=newProd.getTotal();
//Position holder of product in shopping cart
temp_mc.pos = i;
//button action to update quantities
temp_mc.update_btn.onPress = function() {
var tempProduct:Product = shop_cart.getElement(this._parent.pos);
if (this._parent.quantity.text == “0”){
shop_cart.removeElementAt(this._parent.pos);
}
else {
tempProduct.setQuantity(this._parent.quantity.text );
}
displayCart();
}
delete newProd;
}
//Create movie clip to hold shopping cart Grand Total output
temp_mc = empty_mc.attachMovie(“display_mc”,“total_mc”,1000) ;
temp_mc._y = (shop_cart.size() +1) * 20;
temp_mc.total.text = shop_cart.getTotal();
temp_mc.desc.text = “Grand Total”;
temp_mc.update_btn._visible = false;

delete temp_mc;
this.grandTotal.text = shop_cart.getTotal();
}

Here is the code on my “add to shopping list” button:

on (press){
import Product;
var my1Product = new Product();
my1Product.setQuantity(1);
my1Product.setPrice (2.99);
my1Product.setDesc(“Water”);
shop_cart.addElement(my1Product);
delete my1Product;
displayCart();
}

Here is the code for my product.as :

class Product {

//Instance Variables
private var price:Number;
private var desc:String;
private var quantity:Number;

public function Product() {

}

public function getPrice():Number {
return price;
}

public function setPrice(myVar:Number):Void {
price = myVar;
}

public function getQuantity():Number {
return quantity;
}

public function setQuantity(quantity:Number):Void {
this.quantity = quantity;
}

public function getDesc():String {
return desc;
}

public function setDesc(myVar:String):Void {
desc = myVar;
}

public function getTotal():Number {
return price*quantity;
}
}

Here is the Shopping.as :

import Product;

class Shopping {

private var cart:Array;
private var elementCount:Number;

public function Shopping(){
cart = new Array(20);
elementCount = 0;
}

public function addElement(object){
cart[elementCount++] = object;
}

public function getTotal():Number{
var total = 0;
var i;
for(i=0;i<elementCount;i++){
var tempProduct:Product = cart*;
total += tempProduct.getTotal();
}
return total;
}

public function size():Number{
return elementCount;
}

public function getElement(index){
return cart[index];
}

public function removeElementAt(index) {
if (index <= elementCount && index > -1){
delete cart[index];
for (var i = index+1; i<elementCount; i++) {
cart[i-1] = cart*;
}
elementCount–;
}
}

}