Request need some help wit flash (Read 69 times)

  • Interested and courious
  • Group: Premium Member
  • Joined: Jul 27, 2007
  • Posts: 58
Hello guys im trying to add a contact in my web page, its flash based wit action script 2.0 im trying to do a contact with name, coment and email and maybe a telephone but i dont know how to start... so can you help me some?
Imagination is better than knowledge, Because Knowledge is finite. (Albert Einstein)
  • Avatar of dada
  • VILLAIN
  • PipPipPipPipPipPipPipPip
  • Group: Administrator
  • Joined: Dec 27, 2002
  • Posts: 5533
I presume you already know how to show different pages using Movie Clips. Just make sure your "contact" Movie Clip contains input text fields with certain instance names, and then make a button that, once pressed, takes the content of these text fields and sends them to a server-side script. Your script will return something, and based on that information you can tell the user whether sending the contact e-mail failed or succeeded. It's good practice to empty the form fields after successfully sending.

That's basically what you need to do.

If you didn't understand every term I just used, you probably should start following ActionScript and, say, PHP tutorials online.
Last Edit: February 20, 2008, 07:58:52 pm by Dada
  • Interested and courious
  • Group: Premium Member
  • Joined: Jul 27, 2007
  • Posts: 58
oh ok so php is the way for the server side script right?
 i mean i need it to have in in the same folder than the swf that will send the info to the server then to an email? is that right?
Imagination is better than knowledge, Because Knowledge is finite. (Albert Einstein)
  • Avatar of dada
  • VILLAIN
  • PipPipPipPipPipPipPipPip
  • Group: Administrator
  • Joined: Dec 27, 2002
  • Posts: 5533
You don't need to have the file in the same folder as the SWF file. In your Flash file, you will use ActionScript to refer to the PHP file (which can be just "script.php", but also "folder/script.php").