ActionScript 3.0 :: Submitting Cart Data To PHP Page
Feb 10, 2010
im trying to pass my AS3 array to a sendmail.php page to send the user details of the order (the arrays contents) my array is called 'details'. The method im using is a bit unreliable and im wondering if theres a more effective way of doing this? Im currently using....
ActionScript Code:
//submit button
function cartsubmit(e:Event):void {
[Code].....
View 1 Replies
Similar Posts:
Mar 23, 2007
I'm encountering a problem I did not think of. I have a single textfield, that oncesubmitted via "Get" method, sends the data to the site (Think of a google search field in a banner).In any case, I have some default text in the field. But when someone clicks on the submitbutton, the default text gets submitted as the search string. Is there a way to get the result from submitting the form without entering text into the textfield to be a default URL, and not the text string? See Below:
myfield.text = "Enter Your Text";
myfield.onSetFocus = function(oldFocus) {
myfield.text = "";
[code].....
View 1 Replies
Nov 29, 2009
I am trying to establish a connection between my swf and a database using PHP. I keep getting the following error:
Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
at Error$/throwError()
[code].....
View 2 Replies
Oct 2, 2009
Good tutorials which show how to create a user login/reg page and also a shopping cart feature .
View 0 Replies
May 26, 2006
I have form in flash with input text fields with Var field set to t2_2 t3_2 t4_2... what i want to do when user enter values and press buton it should post data(values) to aspx page - how can i do that ? i saw what i did
[Code].....
then i can access t2_2 value on aspx page, so what shoul i put before getURL so it will set values from texboxes
View 2 Replies
Jun 4, 2009
I purchased a flash template and replaced all of the information with ours. The problem that I'm having is that when customers fill out the contact form on the 'contact' page, it doesn't send their email to us (which is one of the fields).
The site is live at [URL]
I've attached a jpg that shows the movie clip I'm working in.
View 3 Replies
Apr 8, 2010
Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query
string containing name/value pairs. at Error$/throwError() at flash.net::URLVariables/decode() at flash.net::URLVariables() at flash.net::URLLoader/onComplete()
[code]......
View 13 Replies
Sep 27, 2010
So i would like to know if its possible to have stage capture(like a screen grab) i have a user generated game that allows them to design an image, but i also want to be able to allow them the submit their drawing after they are completed. writing the code for the submit button(that captures the stage). And the second part how would i let them submit it?
View 1 Replies
Aug 10, 2008
Loading data from the test.php into the startLoading();
How do I load the data from test.php "echo $photo_out;" into the startLoading();
loadVariables("test.php", this, "POST");
infoField._visible = true;
startLoading(test.jpg);
[Code]....
View 16 Replies
May 15, 2009
I am trying to make a box where a student enters their name and then clicks a button so their name is rememered and shows up. I have created an input text instance called "nameText" and a button to submit it called "submitMe".
Second, in this game I would like to keep track of when a specific button is clicked. In this game I'm having incoming freshman into college decide if the statement applies to college or high school by clicking on a button (saying high school or college). I want to keep track of their choices and display them on a result page, then clear when I click the replay button on the results page. Each button has its own name for each of the 12 questions (hs1 for high school c1 for college, and so forth until hs12 and c12).
Third, I'm looking for any advice on how to print in flash. The person I am developing this program for wants students to print their results (with their name on it from the "nameText" input field) and be able to hand it in to her in class. I am not sure how to do this and I can't seem to find a clear way that works. I have made a button called "printMe"
Otherwise I've attached the swf file so you can see what I'm thinking.
View 3 Replies
May 5, 2010
Is there a site for submitting defects for CS5?Code hinting/completion for optional params in custom classes does not function, and seeing as it does every where else, such as the built in classes, I imagine it's a defect. For me this feature is huge, can't wait to see it working.
View 3 Replies
Feb 28, 2012
this is really puzzling me: my flash-builder 4.6 application works fine with the ad-hoc distribution profile. but when i try to submit the .ipa-file via the application-loader, i always get this error:iPhone/iPod Touch: application executable contains unsupported architecture(s): arm.i also tried to put the armv6/armv7 keys into the infoadditions.
View 1 Replies
Nov 28, 2009
I have an interactive map that I would like to script so that when a county is clicked, it sends through to a page called results.php this HTML table:
<form name="Merchant Details" action="results.php" method="post">
<input type="hidden" name= County>
<input type="hidden" name= MerchantType>
So County and MerchantType are fields in a SQL table. The script needs to tell the results.php page that County A and MerchantType B has been sent.
Where A is the name of the county and B is ALL (the default i've chosen for MerchantType)
View 1 Replies
Apr 21, 2010
I'm trying to insert a HTTP header into the request that is made when a .SWF requests a .FLV movie via the flvplayback object. Here's my scenario.
We are using Akamai to distribute our flash video so it loads faster. Our current set up involvels 4 primary components:
1. HTML sitting on our corporate webservers.
2. SWF being served by the Akamai servers.
3. FLV file being served by the Akamai servers.
4. flvplayback skin (SWF file) being hosted by the Akamai servers.
When the HTML file loads into the browser, it requests the SWF, which then loads the flvplayback skin and FLV video. This whole process works until you add security to the mix. We have referer security, which means that that Akamai-hosted files won't load unless the requesting domain is one of our corporate domains. The referer is usually passed over in the HTML header, so the HTML file can successfully request and load the SWF from the Akamai servers. However, when the SWF then requests the skin and FLV file, they don't load because the referer header isn't passed over in this request.
How do I insert the referer header into the SWF request for the FLV and flvplayback skin? I'm assuming this needs to be done from within the flvplayback instance in my SWF file, but I don't know how to reference that. I tried the following, but it didn't seem to work:
myFlvPlayback.URLRequestHeader("Referer", "http://mycorporatedomain.com/requestingpage.html");
View 1 Replies
Nov 15, 2009
I am wanting to have a high score function at the end of my game. My code is generating a URL, but is then appending it with &onLoad=%5Btype%20Function%5D which is making it fail. If I past the code manually into a browser, removing &onLoad=%5Btype%20Function%5D from the end, it works perfectly.The URL that is being created is:
[URL]
My code is:
System.security.loadPolicyFile("C:path....crossd omain.xml");
var score:Number = 1001;
var hsname:String = "FlashTest";
function addHighScore(returnFrame:String, name:String, score:Number, code:Number) {
[code]....
View 2 Replies
Jan 26, 2009
i'm trying to build a flash site and ran into a problem... i have a gallery page with a bunch of page numbers at the top. when you click on one, a movieclip loads of some images coming in.so the problem i'm having is that i made a little animation for when you roll the mouse over the page number (they scale up when the mouse is over, scale back when the cursor moves away)... what it's doing is when you roll over, it goes to a certain frame in the timeline and plays that animation.that's all working cool, but i need it to not do that once it's clicked on. so basically when you actually click on a page number, the over script should stop until you go to another page... here's the code i've written,
function over(event:MouseEvent):void {
this.gotoAndPlay(30);}
function out(event:MouseEvent):void {[code].....
View 0 Replies
Sep 18, 2008
I built my dynamic gallery using AS 2.0 and XML, now, what I want to do is add a shopping cart of sorts. All I really want to do, is have the person on the other end be able to click an image and then be able to select a size or sizes and quantity, at the end it shows them their selections (text not images) and then they hit send and it sends me an email. That's it....
View 6 Replies
Apr 12, 2009
modify an existing flash shopping cart I purchased from Flashden.net (link). The cart uses two XML files to pull in data and to configure most of the data settings. I need help with one thing: I'm using this cart on a sunglasses shopping site and I need to configure the optional sunglasses to be clickable so they can be added to the cart. I know I need to modify both the flash .fla and the xml file so I've included the code for both below. Here's a link to the website I'm trying to re-configure. The section I need to edit has the optional sunglasses on the right-hand side of the main photo.Here's the first xml file that does some of the basic settings. This file is called settings.xml.[code]I made an attachment for the actionscript code called actionscript.txt that needs to be modified. All I need to do is figure out a way to make the optional images clickable so they can be added to the main cart. We can also just create a button that says add to cart next to each sunglass option. Either way works for me. I'm even willing to compensate the person who can help me come up with a workable solution.
View 3 Replies
Jan 13, 2010
i was trying to find simple code of xml shopping cart i.e it's in AS3 or AS2 it's should be simple & run as different level?i mean if i need to import different swf file or using _root.shopping_cart.URL...
View 1 Replies
Jan 18, 2010
im trying to add a delete item option to a cart, currently i have....
Code:
//populate cart
details.push([vItemCode,vBaseColor,vSecondColor,vThirdColor]);
//loop through cart and output it into the text field
[code]....
how could i add a delete button to remove certain items?
View 3 Replies
Jan 19, 2010
I have my cart data stored using...
ActionScript Code:
details.push([ItemCode,ItemColour,ItemName,ItemCost]);
I then output this cart on my movie file by using...
ActionScript Code:
var test:String = "";
//loop through cart and output it into the text field
for (i = 0; i < details.length; i++)[code]....
the cart items are outputted into a dynamic text field. The problem is that next to each item i need to add a delete button that deletes the specific row that it is placed upon.i know i could use splice to remove the item from the array, but the problem is getting to this stage first.
View 1 Replies
Jun 15, 2009
I need to get data from my asp page (example.asp) into flash. This url gets me exactly what I need:
myXMLvariable.load("http://www.domain-name.com/example.asp?NID=396");
But that works only for the childnode with number ID (NID) 396. How do I format my actionscript to get this page by using the NID which changes depending on the button selected in Flash.
View 4 Replies
May 1, 2008
I'm not sure whether this is right place to put this. I've done a search but nothing is helping unfortunately and I was hoping someone on here had done something like this.I am selecting an amount of an item from a drop down list in flash and assigning it to a global value. I then want to put that global value as the number of items in the code.My code is:
PHP Code:
panel.dropdownpink.addtocart.onRelease = function()
{
[code].....
View 9 Replies
Nov 13, 2009
I am trying to load this little image viewer via xml into my as3 shopping cart. [URL] I have resized it larger but that shouldn't matter. I have another swf that I created quickly and load it the same way via xml and it opens perfectly in the center of the cart movie, the other one is way left and high for some reason.
Here is the code for it:
stage.scaleMode = StageScaleMode.NO_SCALE;
// import tween
import fl.transitions.Tween;
import fl.transitions.easing.*;
[Code] .....
View 3 Replies
Feb 4, 2010
I'm trying to insert paypal ADD TO CART buttons to my webpage. How do I use the paypal HTML codes in my webpage? How to set things up? Show me the script I sould use. What about the Paypal generated HTML code?
View 6 Replies
Feb 23, 2010
This is the script I'm using in my web page. How to amend this to function with the PayPals Add to Cart button? I have searched for a solution in the PayPal website... but was not successful.
I thought of posting it here so I can get your help in fixing my website to make the add to cart button working.
[Code]...
View 2 Replies
Feb 24, 2011
I am trying to create a Flash styled shopping cart to integrate into my website. When the "Add to Cart" button is clicked, i am displaying the corresponding text down the side of the stage. However I need a "Total Price" Dynamic text field to display the Total price of all items clicked!I am new to flash and it's proving very difficult to me, as the only way i could think of doing this is creating Boolean variables with all the items and if "add to cart" had been clicked Boolean = True... But how do I code the addition of prices? and cater for all the variations that are possible?
View 15 Replies
Feb 10, 2009
i want to build a shopping cart in flash, but i dont know how to do.actually i have a gallery i.e. [URL]now what i want to do is that to put check boxes under each thumbnail,after selecting that check box that product should be added to the cart.
View 2 Replies
Feb 17, 2009
I have an xml generated AS 2.0 gallery which i also would like to have a paypal 'add to cart' button. This is my first venture into e-commerce,so not exactly sure how these would connect up.I am using the free cart provided by paypal and can generate the <form> buttons for 'add to cart' and 'view cart'. In HTML this is fine, however, i need the buttons to work from the xml.Is this something with Xform? If so, is there a nice intro to that?
View 0 Replies
Apr 2, 2010
I've made a paypal shopping cart intergrated with flash, where customers can add items to the paypal checkout, then view it. But I'd also like to know the code for removing items on the paypal checkout page, but from within the swf.
View 2 Replies