[Flashcoders] error 2101 urlvariables decode

2011-01-18 Thread David Hunter

Happy New Year everyone! 
Recently updated a site that has a registration form which is now throwing an 
error. I didn't change anything to do with the form. It now throws an error 
#2101: The String passed to URLVariables.decode() must be a URL-encoded query 
string containing name/value pairs. 
I've looked on google and there seems to be some conflict whether it is a 
problem with the flash side or PHP side. I know that this has only occurred 
since updating another section of the site. I am now using CS5 but I was 
previously on CS3. I have tried changing my URLLoaderDataFormat.VARIABLES to 
TEXT and it throws a different error #1069: Property sentOk not found on String 
and there is no default value. (sentOk is the name of the variable I echo back 
from the php to know that an email has been sent). 
A snippet of the flash code is here: http://pastebin.com/pTzZKkMS The PHP code 
that handles the signup is here: http://pastebin.com/FzbMdB7e 
The site has been running fine for over a year with pretty much the same 
actionscript code, the PHP side hasn't changed in years, this error only crept 
in 3 days ago. It doesn't just throw an error but also fails to send an email 
from the php side.
Any and all help greatly appreciated, 
David 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] error 2101 urlvariables decode

2011-01-18 Thread Karl DeSaulniers
What version of php was that file made for and what version of php do  
you have on the server? or better yet, did they upgrade the php on  
your server to a newer version. that may make an old php file not send  
anymore.


JAT

Karl

Sent from my iPhone

On Jan 18, 2011, at 8:01 AM, David Hunter davehunte...@hotmail.com  
wrote:




Happy New Year everyone!
Recently updated a site that has a registration form which is now  
throwing an error. I didn't change anything to do with the form. It  
now throws an error #2101: The String passed to URLVariables.decode 
() must be a URL-encoded query string containing name/value pairs.
I've looked on google and there seems to be some conflict whether it  
is a problem with the flash side or PHP side. I know that this has  
only occurred since updating another section of the site. I am now  
using CS5 but I was previously on CS3. I have tried changing my  
URLLoaderDataFormat.VARIABLES to TEXT and it throws a different  
error #1069: Property sentOk not found on String and there is no  
default value. (sentOk is the name of the variable I echo back from  
the php to know that an email has been sent).
A snippet of the flash code is here: http://pastebin.com/pTzZKkMS  
The PHP code that handles the signup is here: http://pastebin.com/FzbMdB7e
The site has been running fine for over a year with pretty much the  
same actionscript code, the PHP side hasn't changed in years, this  
error only crept in 3 days ago. It doesn't just throw an error but  
also fails to send an email from the php side.

Any and all help greatly appreciated,
David  
___

Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] error 2101 urlvariables decode

2011-01-18 Thread David Hunter

Thanks for the response Karl. the php version is 5.2.5 and I don't think it 
changed recently. It seems lots of people are reporting this problem with 
CS4/CS5 and FP10. none of the solutions on google seem to be helping. I have 
tried encoding the URLLoader.data as variables and as text, on the php side i 
have tried echoing sentOk= .sentOk, sentOk=, ?sentOk=, sentOk=true, 
success. Either an #2101 error is pulled when using variables, when using 
text no error occurs but the php doesn't send the email. Has anyone run into 
this problem? Or has an example of sending and returning vars with a php script 
that they know works in CS5 with AS3 for comparison. This is doing my head 
in!!! 
Thanks in advance

 From: k...@designdrumm.com
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] error 2101 urlvariables decode
 Date: Tue, 18 Jan 2011 13:35:22 -0600
 CC: flashcoders@chattyfig.figleaf.com
 
 What version of php was that file made for and what version of php do  
 you have on the server? or better yet, did they upgrade the php on  
 your server to a newer version. that may make an old php file not send  
 anymore.
 
 JAT
 
 Karl
 
 Sent from my iPhone
 
 On Jan 18, 2011, at 8:01 AM, David Hunter davehunte...@hotmail.com  
 wrote:
 
 
  Happy New Year everyone!
  Recently updated a site that has a registration form which is now  
  throwing an error. I didn't change anything to do with the form. It  
  now throws an error #2101: The String passed to URLVariables.decode 
  () must be a URL-encoded query string containing name/value pairs.
  I've looked on google and there seems to be some conflict whether it  
  is a problem with the flash side or PHP side. I know that this has  
  only occurred since updating another section of the site. I am now  
  using CS5 but I was previously on CS3. I have tried changing my  
  URLLoaderDataFormat.VARIABLES to TEXT and it throws a different  
  error #1069: Property sentOk not found on String and there is no  
  default value. (sentOk is the name of the variable I echo back from  
  the php to know that an email has been sent).
  A snippet of the flash code is here: http://pastebin.com/pTzZKkMS  
  The PHP code that handles the signup is here: http://pastebin.com/FzbMdB7e
  The site has been running fine for over a year with pretty much the  
  same actionscript code, the PHP side hasn't changed in years, this  
  error only crept in 3 days ago. It doesn't just throw an error but  
  also fails to send an email from the php side.
  Any and all help greatly appreciated,
  David  
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Call method by name: A few questions...

2011-01-18 Thread Micky Hulse
Here is my latest solution:

Document class:

===

import com.foo.util.GoogleMaps;

...

_map.controls = ['PositionControl', 'ZoomControl', 'MapTypeControl',
'ScaleControl', 'OverviewMapControl'];

===


Here's com.foo.util.GoogleMaps:

===

import com.google.maps.controls.*;

...

private function onMapReady($e:Event):void {
for each (var s:String in _controls) {
this['my' + s]();
}
};

...

private function myZoomControl():void {
_map.addControl(new ZoomControl());
};

private function myPositionControl():void {
_map.addControl(new PositionControl());
};

private function myMapTypeControl():void {
_map.addControl(new MapTypeControl());
};

private function myScaleControl():void {
_map.addControl(new MapTypeControl());
};

private function myOverviewMapControl():void {
_map.addControl(new MapTypeControl());
}

...

public function set controls($a:Array):void {
_controls = $a;
};

===

I am sure to all ya'll pro AS3 coders, the above looks pretty silly... :)

I don't think I will actually use the above code in my final
program... I just thought I would share a working solution.

Thanks again for all of the help! I really appreciate it. :)

Cheers,
Micky
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] error 2101 urlvariables decode

2011-01-18 Thread Karl DeSaulniers

Hi David,
I am not sure about your mailer, as I am an old AS2 head. lol
But I have a sendmail_generic php script you could try to see if it  
works over yours.

It is set up to work with flash and html alike.
Instructions are in the comments in the script.

http://designdrumm.com/sendmail_gen.php.zip

FYI, I have used this for years and it still works with Flash 10.
I have a feeling in your php script, you need to set more headers to  
send with, like X-Mailer parameters.

HTH,

Karl


On Jan 18, 2011, at 7:23 PM, David Hunter wrote:



Thanks for the response Karl. the php version is 5.2.5 and I don't  
think it changed recently. It seems lots of people are reporting  
this problem with CS4/CS5 and FP10. none of the solutions on google  
seem to be helping. I have tried encoding the URLLoader.data as  
variables and as text, on the php side i have tried echoing  
sentOk= .sentOk, sentOk=, ?sentOk=, sentOk=true,  
success. Either an #2101 error is pulled when using variables,  
when using text no error occurs but the php doesn't send the email.  
Has anyone run into this problem? Or has an example of sending and  
returning vars with a php script that they know works in CS5 with  
AS3 for comparison. This is doing my head in!!!

Thanks in advance


From: k...@designdrumm.com
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] error 2101 urlvariables decode
Date: Tue, 18 Jan 2011 13:35:22 -0600
CC: flashcoders@chattyfig.figleaf.com

What version of php was that file made for and what version of php do
you have on the server? or better yet, did they upgrade the php on
your server to a newer version. that may make an old php file not  
send

anymore.

JAT

Karl

Sent from my iPhone

On Jan 18, 2011, at 8:01 AM, David Hunter davehunte...@hotmail.com
wrote:



Happy New Year everyone!
Recently updated a site that has a registration form which is now
throwing an error. I didn't change anything to do with the form. It
now throws an error #2101: The String passed to URLVariables.decode
() must be a URL-encoded query string containing name/value pairs.
I've looked on google and there seems to be some conflict whether it
is a problem with the flash side or PHP side. I know that this has
only occurred since updating another section of the site. I am now
using CS5 but I was previously on CS3. I have tried changing my
URLLoaderDataFormat.VARIABLES to TEXT and it throws a different
error #1069: Property sentOk not found on String and there is no
default value. (sentOk is the name of the variable I echo back from
the php to know that an email has been sent).
A snippet of the flash code is here: http://pastebin.com/pTzZKkMS
The PHP code that handles the signup is here: http://pastebin.com/ 
FzbMdB7e

The site has been running fine for over a year with pretty much the
same actionscript code, the PHP side hasn't changed in years, this
error only crept in 3 days ago. It doesn't just throw an error but
also fails to send an email from the php side.
Any and all help greatly appreciated,
David
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders