Here is my button, which does the "add to cart" function in my web page.
Problem is that, that I need to make exact button in flash, which does the same thing.
I would be grateful if someone could help me.
var _lv:LoadVars = new LoadVars();
//when you click the submit button
submit_btn.onRelease = function()
{
//any input variables are added as properties of the LoadVars object
Hi there, thank you for response.
It should add product to the basket, but it seems it isn't working.
I made quick button, just regular square and now it gives me errors:
Scene 1, Layer 'Layer 1', Frame 1, Line 4 1119: Access of possibly undefined property onRelease through a reference with static type flash.display:SimpleButton.
Scene 1, Layer 'Layer 1', Frame 1, Line 2 1046: Type was not found or was not a compile-time constant: LoadVars.
Scene 1, Layer 'Layer 1', Frame 1, Line 2 1180: Call to a possibly undefined method LoadVars.
But this isn't priority, fact that you were able to run it, but it didn't add product to the cart, there is a mistake in code.
I'm new at ac, so I don't really understand what I am doing :\
http://katalogs.net84.net/index.php/...sk=updatecart&return_url=aHR0cDovL2thdGFsb2dzLm5ldDg0Lm5ldC9pbmR leC5waHAvc2FtcGxlLXNpdGVzLTIvY2F0ZWdvcnkvMTItZWlue nVnc2thc3Rlbg%3D%3D Okay I was able to put html form in URL, but my flash app is in different location from location where is "add to cart" button, and when I press button with this URl it redirects me to place where my button is, but I need to stay where my flash app is. I tried to put flash app's URL in "return_url" but then i get 404 error.
I putted it on 1. layer, made simple button with instance name "submit_button", but when I test my scene, nothing happens, when I click on button, even when I upload it to my homepage.
fruitbeard - I talked to my professor, he said that cURL isn't option, and said to use LoadAndSend function, but he's bussy man so i don't want to disturb him with my problems.