I think you may need to look at what your Python script is doing. It may not be
set up to handle default values in the case of missing data.
jord
On Oct 8, 2011, at 10:40 AM, John Polk wrote:
> I had this:
>
> var req:URLRequest = new URLRequest(siteUrl +
> "store/flash_store2.py"
> How do I trouble-shoot this?
I suggest adding a trace() to see what the requested URL is, and to check that
it's well formed. Change this…
> var req:URLRequest = new URLRequest(siteUrl + "store/
> flash_store2.py?id=" + id + "&pkg=" + pkgID);
…to this:
var url:String = siteUrl + "store
Please ignore that last comment about double declaration.
I didn't notice the comment marks /**/
On Oct 8, 2011, at 9:40 AM, John Polk wrote:
From: Karl DeSaulniers
To: Flash Coders List
Sent: Saturday, October 8, 2011 4:16 AM
Subject: Re: [Flashcoders] can't get e.target.data
Excuse me if
Hi John,
Well, I see here that your declaring your id and pkg twice.
once in the url
?id=" + id + "&pkg=" + pkgID
and then again in the req.data
variables.pkg = pkgID;
variables.id = id;
req.data = variables;
but both are being sent to
siteUrl + "store/flash_store2.py
maybe
From: Karl DeSaulniers
To: Flash Coders List
Sent: Saturday, October 8, 2011 4:16 AM
Subject: Re: [Flashcoders] can't get e.target.data
> Excuse me if my AS3 is not entirely correct, but wouldn't this be more
> of what your trying to do?
> ...
> var req:URLRequest = new URLRequest();
>
From: Cor
To: 'Flash Coders List'
Sent: Saturday, October 8, 2011 3:49 AM
Subject: RE: [Flashcoders] can't get e.target.data
> Not sure, but by doing:
> var req:URLRequest = new URLRequest(siteUrl + "store/flash_store2.py?id=" +
> id + "&pkg=" + pkgID);
> doesn't this "overwrite" the posting o
I tried all sorts of combinations. The point is, it works fine *if* the data
pertains to var "id" but not if it pertains to var "pkg" (which is why I don't
think your suggested solutions would have helped). It's absolute idiocy, and
something I have found pervasive throughout Flash. It's hard en
Yes, thank you Willem!
Karl
On Oct 8, 2011, at 3:20 AM, Cor wrote:
Yes, THANKS TO WILLEM !!! :-)
Best regards,
Cor
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl
DeSaulniers
Sent: zaterdag 8 ok
Yes, THANKS TO WILLEM !!! :-)
Best regards,
Cor
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl
DeSaulniers
Sent: zaterdag 8 oktober 2011 10:18
To: Flash Coders List
Subject: Re: [Flashcoders] can't
Ah ok,
I see. Nice!
Best,
Karl
On Oct 8, 2011, at 3:09 AM, Cor wrote:
I do it like this: (Thanks to Willem!)
/*
//usage
var myPHP_Loader = new PHP_Loader("myPhpFile.php", ["val1", "Value
1"],
["val2", "Value 2"]);
myPHP_Loader.addEventListener("loaded", myPHP_LoaderLoadedHandler);
function
Excuse me if my AS3 is not entirely correct, but wouldn't this be more
of what your trying to do?
...
var req:URLRequest = new URLRequest();
var post_vars:URLVariables = new URLVariables(id, pkg);
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
req.method = UR
I do it like this: (Thanks to Willem!)
/*
//usage
var myPHP_Loader = new PHP_Loader("myPhpFile.php", ["val1", "Value 1"],
["val2", "Value 2"]);
myPHP_Loader.addEventListener("loaded", myPHP_LoaderLoadedHandler);
function myPHP_LoaderLoadedHandler(e:Event):void {
trace(e.target.loader.data[
I'm also not to entirely sure you should use
var variables:
having a var named variables might be a back-end no-no (I think)
The whole reserved names thingy..
Karl
On Oct 8, 2011, at 2:49 AM, Cor wrote:
Not sure, but by doing:
var req:URLRequest = new URLRequest(siteUrl + "store/flash_sto
Not sure, but by doing:
var req:URLRequest = new URLRequest(siteUrl + "store/flash_store2.py?id=" +
id + "&pkg=" + pkgID);
doesn't this "overwrite" the posting of the URLVariables?
I use URLVariables all the time and never have any problem.
-Original Message-
From: flashcoders-boun...@c
I think the other way he was doing it is supposed to be like this..
var str:String = new String();
str = e.target.data;
Yes?
Karl
On Oct 8, 2011, at 2:39 AM, Cor wrote:
yes
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.fig
Well then wouldn't..
var str:String = e.target.data;
work?
Karl
On Oct 8, 2011, at 2:31 AM, Ross Sclafani wrote:
Has to be.
Ross P. Sclafani
Design | Technology | Creative
347.204.5714
http://ross.sclafani.net
http://www.twitter.com/rosssclafani
On Oct 8, 2011, at 3:25 AM, "Cor" wrote:
yes
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl
DeSaulniers
Sent: zaterdag 8 oktober 2011 9:38
To: Flash Coders List
Subject: Re: [Flashcoders] can't get e.target.data
Well then wouldn't..
var st
Has to be.
Ross P. Sclafani
Design | Technology | Creative
347.204.5714
http://ross.sclafani.net
http://www.twitter.com/rosssclafani
On Oct 8, 2011, at 3:25 AM, "Cor" wrote:
> var str:String = String(e.target.data);
>
> without new?
>
> -Original Message-
> From: flashcoders-boun...@c
var str:String = String(e.target.data);
without new?
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl
DeSaulniers
Sent: zaterdag 8 oktober 2011 2:44
To: Flash List
Subject: Re: [Flashcoders] can't get e
19 matches
Mail list logo