<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: AS3 Basics: Sending Variables from AS3 to PHP</title>
	<atom:link href="http://www.wuup.co.uk/as3-basics-sending-variables-from-as3-to-php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wuup.co.uk/as3-basics-sending-variables-from-as3-to-php</link>
	<description>We&#039;re Geeks - This is Where We Write</description>
	<lastBuildDate>Fri, 10 Feb 2012 08:44:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Charlotte</title>
		<link>http://www.wuup.co.uk/as3-basics-sending-variables-from-as3-to-php#comment-12751</link>
		<dc:creator>Charlotte</dc:creator>
		<pubDate>Thu, 31 Mar 2011 11:23:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.wuup.co.uk/?p=1028#comment-12751</guid>
		<description>can i ask for a program that contains:

1. php that count number of .txt file in a folder
2. as3 that read the variable that count number of .txt file in a folder in php

Thank&#039;s a lot :0)</description>
		<content:encoded><![CDATA[<p>can i ask for a program that contains:</p>
<p>1. php that count number of .txt file in a folder<br />
2. as3 that read the variable that count number of .txt file in a folder in php</p>
<p>Thank&#8217;s a lot :0)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charlotte</title>
		<link>http://www.wuup.co.uk/as3-basics-sending-variables-from-as3-to-php#comment-12750</link>
		<dc:creator>Charlotte</dc:creator>
		<pubDate>Thu, 31 Mar 2011 11:20:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.wuup.co.uk/?p=1028#comment-12750</guid>
		<description>please help me.......

(php code)
  

(as3 code)
var request:URLRequest = new URLRequest(&quot;http://localhost/2.php&quot;);
request.method = URLRequestMethod.GET;

var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
loader.addEventListener(Event.COMPLETE, completeHandler);
loader.load(request);

function completeHandler(evt:Event) {
    
 var count1 = evt.target.data.count;
    trace (count1);
} 


(PROBLEM)
i&#039;m trying to count how many text file inside &quot;txt&quot; folder.
In this program $count contains the no. of .txt in the &quot;txt folder&quot; and in php $count successfully return the no. of .txt file....
my purpose is to trace the no. of .txt file in a as3...
but an error occured stated &quot;undefined&quot;... help me please...

Thank you in advance...blessGod</description>
		<content:encoded><![CDATA[<p>please help me&#8230;&#8230;.</p>
<p>(php code)</p>
<p>(as3 code)<br />
var request:URLRequest = new URLRequest(&#8220;http://localhost/2.php&#8221;);<br />
request.method = URLRequestMethod.GET;</p>
<p>var loader:URLLoader = new URLLoader();<br />
loader.dataFormat = URLLoaderDataFormat.VARIABLES;<br />
loader.addEventListener(Event.COMPLETE, completeHandler);<br />
loader.load(request);</p>
<p>function completeHandler(evt:Event) {</p>
<p> var count1 = evt.target.data.count;<br />
    trace (count1);<br />
} </p>
<p>(PROBLEM)<br />
i&#8217;m trying to count how many text file inside &#8220;txt&#8221; folder.<br />
In this program $count contains the no. of .txt in the &#8220;txt folder&#8221; and in php $count successfully return the no. of .txt file&#8230;.<br />
my purpose is to trace the no. of .txt file in a as3&#8230;<br />
but an error occured stated &#8220;undefined&#8221;&#8230; help me please&#8230;</p>
<p>Thank you in advance&#8230;blessGod</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Hamlyn</title>
		<link>http://www.wuup.co.uk/as3-basics-sending-variables-from-as3-to-php#comment-12748</link>
		<dc:creator>Alan Hamlyn</dc:creator>
		<pubDate>Tue, 29 Mar 2011 12:43:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.wuup.co.uk/?p=1028#comment-12748</guid>
		<description>Hey, did you set this up to work with a form? Self submitting etc.

You can do a little get test too.



Then type in the URL to file. i.e http://blah.com/file.php?myName=Alan</description>
		<content:encoded><![CDATA[<p>Hey, did you set this up to work with a form? Self submitting etc.</p>
<p>You can do a little get test too.</p>
<p>Then type in the URL to file. i.e <a href="http://blah.com/file.php?myName=Alan" rel="nofollow">http://blah.com/file.php?myName=Alan</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dimension</title>
		<link>http://www.wuup.co.uk/as3-basics-sending-variables-from-as3-to-php#comment-12746</link>
		<dc:creator>Dimension</dc:creator>
		<pubDate>Thu, 24 Mar 2011 21:55:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.wuup.co.uk/?p=1028#comment-12746</guid>
		<description>Hi, to load the posted value into a variable 

$RandomVariable =  $_POST[&#039;myName&#039;]; (for your example)

If it is then for some reason it won&#039;t work :S 

Good tutorial though</description>
		<content:encoded><![CDATA[<p>Hi, to load the posted value into a variable </p>
<p>$RandomVariable =  $_POST['myName']; (for your example)</p>
<p>If it is then for some reason it won&#8217;t work :S </p>
<p>Good tutorial though</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan</title>
		<link>http://www.wuup.co.uk/as3-basics-sending-variables-from-as3-to-php#comment-12723</link>
		<dc:creator>Johan</dc:creator>
		<pubDate>Wed, 08 Dec 2010 13:20:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.wuup.co.uk/?p=1028#comment-12723</guid>
		<description>If you don&#039;t want a blank window to open but do want to sent the vars thisl work quite nice.

		var loader:URLLoader = new URLLoader();
		loader.dataFormat = URLLoaderDataFormat.VARIABLES;
		
		var myVariables:URLVariables = new URLVariables();
myVariables.myName = &quot;Bill&quot;;
myVariables.beans = &quot;beans are awesome!&quot;;
		
		var request:URLRequest = new URLRequest(&#039;form.php&#039;);
		request.method = URLRequestMethod.POST;
		request.data = myVariables;
		loader.load(request);</description>
		<content:encoded><![CDATA[<p>If you don&#8217;t want a blank window to open but do want to sent the vars thisl work quite nice.</p>
<p>		var loader:URLLoader = new URLLoader();<br />
		loader.dataFormat = URLLoaderDataFormat.VARIABLES;</p>
<p>		var myVariables:URLVariables = new URLVariables();<br />
myVariables.myName = &#8220;Bill&#8221;;<br />
myVariables.beans = &#8220;beans are awesome!&#8221;;</p>
<p>		var request:URLRequest = new URLRequest(&#8216;form.php&#8217;);<br />
		request.method = URLRequestMethod.POST;<br />
		request.data = myVariables;<br />
		loader.load(request);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francisco</title>
		<link>http://www.wuup.co.uk/as3-basics-sending-variables-from-as3-to-php#comment-12665</link>
		<dc:creator>Francisco</dc:creator>
		<pubDate>Mon, 23 Aug 2010 13:25:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.wuup.co.uk/?p=1028#comment-12665</guid>
		<description>Hi, 

This seems like the exact turorial I beed but the download isn&#039;t working at all.  Is it possible to re-upload it please?  This is the link I get:
http://www.wuup.co.uk/wp-content/uploads/2008/11/phpvarstutorial.zip
and the message is a 404 error.

This looks extremely useful.  I&#039;ve been trying to get data to transmit from AS3 to PHP.  I&#039;ve achieved it in AS2 and PHP before but AS3 is proving tobe difficult.  PLEASE HELP!!!</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>This seems like the exact turorial I beed but the download isn&#8217;t working at all.  Is it possible to re-upload it please?  This is the link I get:<br />
<a href="http://www.wuup.co.uk/wp-content/uploads/2008/11/phpvarstutorial.zip" rel="nofollow">http://www.wuup.co.uk/wp-content/uploads/2008/11/phpvarstutorial.zip</a><br />
and the message is a 404 error.</p>
<p>This looks extremely useful.  I&#8217;ve been trying to get data to transmit from AS3 to PHP.  I&#8217;ve achieved it in AS2 and PHP before but AS3 is proving tobe difficult.  PLEASE HELP!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pell grant</title>
		<link>http://www.wuup.co.uk/as3-basics-sending-variables-from-as3-to-php#comment-12554</link>
		<dc:creator>pell grant</dc:creator>
		<pubDate>Mon, 05 Jul 2010 05:05:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.wuup.co.uk/?p=1028#comment-12554</guid>
		<description>This is such a great resource that you are providing and you give it away for free. I enjoy seeing websites that understand the value of providing a prime resource for free. I truly loved reading your post. Thanks!</description>
		<content:encoded><![CDATA[<p>This is such a great resource that you are providing and you give it away for free. I enjoy seeing websites that understand the value of providing a prime resource for free. I truly loved reading your post. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Nunney</title>
		<link>http://www.wuup.co.uk/as3-basics-sending-variables-from-as3-to-php#comment-12338</link>
		<dc:creator>Bill Nunney</dc:creator>
		<pubDate>Sun, 16 May 2010 18:35:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.wuup.co.uk/?p=1028#comment-12338</guid>
		<description>Yes you can quite easily, this tutorial is a bit short. I should really update it.

anyway:

import flash.net.URLRequestMethod;

var myURLRequest:URLRequest = new URLRequest(&quot;http://www.mywebsite.com/phpvarstutorial.php&quot;);

myURLRequest.method = URLRequestMethod.POST;

then you would use the php function

$_POST[&#039;var&#039;]

to get each variable.</description>
		<content:encoded><![CDATA[<p>Yes you can quite easily, this tutorial is a bit short. I should really update it.</p>
<p>anyway:</p>
<p>import flash.net.URLRequestMethod;</p>
<p>var myURLRequest:URLRequest = new URLRequest(&#8220;http://www.mywebsite.com/phpvarstutorial.php&#8221;);</p>
<p>myURLRequest.method = URLRequestMethod.POST;</p>
<p>then you would use the php function</p>
<p>$_POST['var']</p>
<p>to get each variable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://www.wuup.co.uk/as3-basics-sending-variables-from-as3-to-php#comment-12332</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Sun, 16 May 2010 01:22:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.wuup.co.uk/?p=1028#comment-12332</guid>
		<description>Is it easy to change this from a get to a POST?</description>
		<content:encoded><![CDATA[<p>Is it easy to change this from a get to a POST?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Walmik</title>
		<link>http://www.wuup.co.uk/as3-basics-sending-variables-from-as3-to-php#comment-12160</link>
		<dc:creator>Walmik</dc:creator>
		<pubDate>Thu, 14 May 2009 00:11:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.wuup.co.uk/?p=1028#comment-12160</guid>
		<description>Thanks... this makes it simpler than in AS2!</description>
		<content:encoded><![CDATA[<p>Thanks&#8230; this makes it simpler than in AS2!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

