|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
So I need to post some variables to a Paypal shopping cart from flash. One of the required variables is 'add'. The problem is, 'add' is a reserved word in ActionScript. So i tried (and failed) with the following line of code:
var add = "1"; Is there anyway I can use this variable name some how and post directly to paypal? -Tim |
|
#2
|
|||
|
|||
|
Hi, couldnt you call the variable something different in actionscript and then just use that variable for the "add" value..i.e:
var thisAdd = "1"; getURL("mysite.php?bla=bla&add="+thisAdd+"blabla=blabla", "_blank"); |
|
#3
|
|||
|
|||
|
I can't believe that didn't occur to me. Have you ever asked someone where your hat or glasses are when you are actually wearing them, thats how I feel. Good call on that one, I would have probably ended up tearing out my hair. Thanks Tann.
btw, on my other post about the preloader not displaying right away, I ended up having to build my own preloader. The problem is that any components you use from the flash set get loaded in frame 1 automatically and you can't change that. -Tim |
|
#4
|
|||
|
|||
|
Hi, about the preloader...I kind of remember the post you made..bit hazy...you could place all the big components into their own movie and load that into your main movie. Then you can use the preloader on the new loaded data...guess it's a bit late now but that might have worked...
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > using ActionScript reserved words as variables |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|