Integrating
Flash and virtualCART

Overview
Adding Vcart
tags to Flash can be accomplished by following a few simple steps.
1. Open a new Flash file, or an existing file you would like
to add e-commerce to.
2. Press
Control F8 to insert a new symbol. Name the symbol "Add" and select
"button" behavior.
3. Create
an "Add to Cart" button or import an image (Ctrl+R).
4. Press F5 three times so the over, down, and hit frames
have values.
5. Click on Scene 1 to return to the main stage (View >
Goto >).
6. Press Control L to open the library. Drag the button "Add"
from the library to the main stage (which you created in step #3).
7. On
the main stage, right click on the "Add to Cart" button and select
"Actions".
8. In the Actions window (Object Actions tab), double click
the "On Mouse Event" command. Release should be the only box checked.
Click for Large Image
9. Under "Actions" list, double click the "set variable"
command. Then, in the Variable field, type "submit", then type "add"
in the Value field.

Click for Large Image
10. Double click on "set variable" command again. Type "item"
in the Variable field, then type the appropriate VirtualCart code
for your product in the value field. If you need help creating the
VirtualCart code, please refer to the VirtualCart Tag
Maker.
Click for Large Image
11. Double click the "get URL" command. In the URL field,
type:
http://cartserver.com/sc/cart.cgi
In the variables field, select, "Send using POST"
Click for Large Image
12.Adding a quantity box:
In the VirtualCart product code, change the 5th field to op1.
Click for Large Image
With the text tool, draw a text box on the stage. In the text options
window, change the settings to "Input Text" and variable to op1.
We recommend that you check Border/Bg and set Max Chars to 2. Put
a 1 in the input text and make sure your text color is not white.

That's it, your code is complete. Press F12 to test your movie.
Making
different options for a product
|