Outsource web development, offshore web development, offshore web application company from India
Launch Services Intro - Flash! Sample works! Search this site! Client Area :: Tracking, Documents etc.,
 
 
Developing Flash based applications with PHP
Tutorials  
Articles  
Free Scripts - Code Snippets  
Site Promotion  

 
Search this site
 
     
 

Powered by Freefind.com

 

 

Web Site Development  
Offshore outsourcing  
Graphic Design  
Site Promotion  
Custom Applications  
PDA Development  
E-Commerce Solutions  
E-Business Development  
Web site Maintenance  
Flash Development  
Website Redesign  
Mobile Applications  
Legacy To Web  
Portfolio  

 

 

Here is a simple tutorial with step-by-step learning on how to connect make Flash based applications to interact with PHP programming- helping you to start and explore backend database driven Flash.

Step 1 : Open Macromedia FlashMX, set the area as 200px and 20px.

Step 2 : Select the text tool from the Toolbox as shown in the figure below

Step 3 : After selecting the text tool from the properties menu, select the text tool  type as input text from the drop down menu.

Step 4 : Drag and draw a textbox using the same tool. 

Step 5 : To make the text tool area appear like a textbox, select the "SHOW BORDER AROUND TEXT".

Step 6 : Set the Var value for the textbox as t1. That is you are naming the text box as "t1".

Step 7 : draw a similar textbox again with a larger area. set the variable name for the text box as t2. Set the property for the second text box as Multi line as shown below.

Step 8 : Select the Rectangle tool from the toolbox. Draw a small rectangle

Step 9 : Convert it into a button. After creating it into a button, right click the button and select Actions .

Step 10 : When you click the "Add new item to the script", Select Actions -> Movie Control -> on 

Step 11: After selecting "on". A small window containing the following options will be listed. select the "Press" from the options. 

Step 12 : Now click (+} again. Select the Actions -> browser / Network -> getURL from the actions pane.

Step 13 : Now a small window asking for a few parameters to be filled will be prompted as shown below. Set the URL text to the page to which the data to be posted. example (submit.asp) for PHP users make it as (submit.php).

Select the window value as "_self " and the Variables value to be set as "Send using POST ".

Step 14 : Now export this to a .swf file.

Step 15: Now create a php page save it as "submit.php". Paste the below given code. 

<?php
$Nm=$_REQUEST["t1"];
$Comments=$_REQUEST["t2"];
$to = "admin <admin@example.com>";
$subject = "request from webmail";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: website enquiry <websiteenquiry@example.com>\r\n";
mail($to, $subject, $Comments, $headers);
?>


Thus the submiited content would be posted as an email to the administrator.

 
  Home  I  About Us  I  Services  I  Price Quote  I  Resources  Contact Us  
Copyright © 2002 macronimous.com All rights Reserved.