videogamer2791,
    
    I think you have 2 choices, either an app server sends the email, or  you 
rely on the default email program on the users' machines (using  something 
like:  URLRequest("mailto:"+ ... ) )
    
    On the web, you have this issue sending email regardless of what you  use 
to code the UI (e.g. regardless if HTML, Flash, Flex, etc.)
    
    Following is a sample method for sending mail from default email program on 
the users' machines using AS3/Flex:
    
    private function clickSendEmail_submitBtn():void {
         var u:URLRequest = new  URLRequest("mailto:[EMAIL PROTECTED]"+ 
subjectBox  +"&body="+ messageBox );
        navigateToURL(u,"_self");
    }    
    
    btw ... any app server Flash can talk to, Flex can talk to too.   Commonly 
including:  PHP, Java, ColdFusion, WebServices, etc.  Will  pembrokecycle.com 
have access to an app server?  If so, please post  back regarding what 
language.  And of course there are any of a number  of ways to send the data 
from Flash/Flex to the app server.
      
      Please post back any follow up questions you may have.
      
    hth,
    
    g
  

videogamer2791 <[EMAIL PROTECTED]> wrote:  Hi all,
i am making a web page for a friend that will be at pembrokecycle.com,
I am a Flash AS coder with little experience with Flex, but I knew 
that it would be a little easier with data, so I used that instead 
(plus, the components look nicer).  I am pretty much done with every 
thing else except for the "Contact Us" page. In flash, I know to use 
a php script with a new Load Vars class, but I have no idea what to 
do with flex. I have seen Google searches with coldfusion, but no 
tuts.  I don't even know if google domains (which he is using), 
supports coldfusion, so i would like to save that as a last resort.  
some one please help me.
Also, im only 16, so please keep the explanation a little dumbed 
down, even though i could probably understand it anyways.
**********
[code]
<mx:Panel label="Contact Us" width="100%" height="100%"
  title="Contact Us"  horizontalAlign="center" verticalAlign="middle">
  <mx:Form width="100%" height="100%">
  <mx:FormItem label="E-Mail" width="100%" required="true">
  <mx:TextInput width="100%" id="emailBox"/>
  </mx:FormItem>
  <mx:FormItem label="Subject" width="100%" required="true">
  <mx:TextInput width="100%" id="subjectBox"/>
  </mx:FormItem>
  <mx:FormItem label="Message" width="100%" height="200"
  required="true">
  <mx:TextArea width="100%" height="200" id="messageBox"/>
  </mx:FormItem>
  <mx:Button id="submit" label="Submit">
  <mx:enterFrame>
  <![CDATA[
  if (isEmail && isSubject && isMessage){
  submit.enabled = true;
  } else {
  submit.enabled = false;
  }
  ]]>
  </mx:enterFrame>
  </mx:Button>
  </mx:Form>
  </mx:Panel>
[/code]
    

 
---------------------------------
No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.

Reply via email to