1 Reply Latest reply on Jul 24, 2010 10:49 PM by 2m

    PayPal button action works in preview but not when published

    runninghawlk

      Hi! 

       

      Any thoughts as to why this works correctly in CS5 publish preview but when I publish it I either get no action or (XP comupter) or a blank page (vista).  Any thoughts or insight would be appreciated.  Also, I'm new to flash and here's the button action:

       

      on (release) {

       

              //create the LoadVars that will hold our paypal information

              var paypal = new LoadVars();

             

              //specify the business, amount of the item, shipping, etc.

              paypal.cmd="_xclick";

              paypal.upload="1";

              paypal.business="robert@runninghawlk.com";

              paypal.currency_code="USD";

              paypal.amount="275.00";

              //paypal.handling = "0";

              //paypal.no_shipping = "0";

              paypal.item_name="One Session";

             

              //added

              //paypal.lc="GB";

              paypal.bn="PP-BuyNowBF";

              //paypal.no_note="1";

             

              //send our information to PayPal, including all the optional  variables we have collected from customer

               paypal.send("https://www.paypal.com/cgi-bin/webscr","_blank","POST");

       

      }

       

      Thanks!

       

      Robert

        • 1. Re: PayPal button action works in preview but not when published
          2m Level 2

          Hi Robert,

           

          as far as I understand your post, you are missing some kind of "button-artwork" in the published file, but do not report a problem with the "action" that the script should perform.

          My guess would be that it will be hard to help you without having a better understanding what your trying to achive and how (are you using a prebuilt component, or did you build the button fron scratch etc....)

          It might be even necessary to have a look at the fla itself.

           

          M