Cara, já chegou a ver Arduino?
Ele praticamente já vem com todos componentes pronto, tenta ver se não consegue fazer com ele
Ele praticamente já vem com todos componentes pronto, tenta ver se não consegue fazer com ele
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:TextInput x="55" y="10" id="nome"/>
<mx:Label x="10" y="12" text="Nome:"/>
<mx:TextInput x="55" y="49" id="email"/>
<mx:Label x="10" y="51" text="E-mail:"/>
<mx:Button x="95" y="93" label="Enviar"/>
</mx:Application>
<mx:Script>
<![CDATA[
import mx.controls.Text;
import mx.containers.TitleWindow;
import flash.net.sendToURL;
private function Enviar():void {
var urlString:String = "Arquivo PHP";
var request:URLRequest = new URLRequest(urlString);
var variables:URLVariables = new URLVariables();
variables.nome = nome.text;
variables.email = email.text;
request.data = variables;
request.method = URLRequestMethod.POST;
navigateToURL(request,"_parent");
}
]]>
</mx:Script>
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:TextInput x="55" y="10" id="nome"/>
<mx:Label x="10" y="12" text="Nome:"/>
<mx:TextInput x="55" y="49" id="email"/>
<mx:Label x="10" y="51" text="E-mail:"/>
<mx:Button x="95" y="93" label="Enviar" click="Enviar()"/>
<mx:Script>
<![CDATA[
import mx.controls.Text;
import mx.containers.TitleWindow;
import flash.net.sendToURL;
private function Enviar():void {
var urlString:String = "Arquivo PHP";
var request:URLRequest = new URLRequest(urlString);
var variables:URLVariables = new URLVariables();
variables.nome = nome.text;
variables.email = email.text;
request.data = variables;
request.method = URLRequestMethod.POST;
navigateToURL(request,"_parent");
}
]]>
</mx:Script>
</mx:Application>