<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Free Flash Tutorials at FlashMint Tuts &#187; flash tutorials overview</title>
	<atom:link href="http://tuts.flashmint.com/tag/flash-tutorials-overview/feed/" rel="self" type="application/rss+xml" />
	<link>http://tuts.flashmint.com</link>
	<description>Advanced Flash Tutorials and tips</description>
	<lastBuildDate>Wed, 17 Mar 2010 14:16:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Creating Contact Module Tutorial with AS3</title>
		<link>http://tuts.flashmint.com/creating-contact-module-tutorial-with-as3/</link>
		<comments>http://tuts.flashmint.com/creating-contact-module-tutorial-with-as3/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 13:33:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash Tutorials]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[contact form]]></category>
		<category><![CDATA[contact module]]></category>
		<category><![CDATA[flash components]]></category>
		<category><![CDATA[flash tutorials overview]]></category>
		<category><![CDATA[flash xml]]></category>

		<guid isPermaLink="false">http://tuts.flashmint.com/?p=403</guid>
		<description><![CDATA[Do you want to create a Contact Module using popular scripts? In this tutorial, we&#8217;ll create a Advanced Contact Module with ActionScript 3.0 &#8211; XML and PHP. Don&#8217;t worry! You don&#8217;t need to know PHP Script. During the tutorial, I&#8217;ll explain you coding and designing parts of the creation process. Also, we will use XML [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-404" title="preview" src="http://tuts.flashmint.com/wp-content/uploads/preview2.jpg" alt="" width="220" height="137" />Do you want to create a Contact Module using popular scripts? In this tutorial, we&#8217;ll create a Advanced Contact Module with ActionScript 3.0 &#8211; XML and PHP. Don&#8217;t worry! You don&#8217;t need to know PHP Script.  During the tutorial, I&#8217;ll explain you coding and designing parts of the creation process. Also, we will use XML to make an easy upgrade. The Module can be improved and used each project. The Steps are very easy. Just follow the steps carefully and apply them. </p>
<p><span id="more-403"></span></p>
<h3>Step 1: Preparing The Folder</h3>
<p>First, Create a new folder called &#8220;AS3 Contact Module&#8221; Open the new blank projects like the following:</p>
<p>1. Contact.fla &#8211; Flash Project</p>
<p>2. Contact.html &#8211; HTML Page to show swf file.</p>
<p>3. Contact.swf &#8211; Main Swf File</p>
<p>4. contactImg.jpg &#8211; The image of The Module</p>
<p>5. ContactPHP &#8211; PHP Script</p>
<p>6. ContactXML &#8211; XML Script</p>
<p><img class="size-full wp-image-408 alignnone" src="http://tuts.flashmint.com/wp-content/uploads/17.jpg" alt="" width="513" height="113" /></p>
<h3>Step 2: Flash Project</h3>
<p>Open a new AS3 Project File. You can see the properties of the project below.</p>
<p><img class="alignnone size-full wp-image-411" src="http://tuts.flashmint.com/wp-content/uploads/24.jpg" alt="" width="274" height="354" /></p>
<h3>Step 3: Background Properties</h3>
<p>Select Rectangle Tool (or Press &#8220;R&#8221;) and create a rectangle without outline. The size of the rectangle can be changed. Now, Crop the rectangle like the following and reduce the alpha value to 20. Align it at the top of the module.</p>
<p><img class="alignnone size-full wp-image-412" src="http://tuts.flashmint.com/wp-content/uploads/34.jpg" alt="" width="547" height="305" /></p>
<h3>Step 4: XML Text Fields</h3>
<p>Create 2 dynamic texts to type the information of the module. They use XML File to call texts.  You can see their instance names below. I&#8217;ll give the actionscript explanations at the end of the designing.</p>
<p><img class="alignnone size-full wp-image-413" src="http://tuts.flashmint.com/wp-content/uploads/44.jpg" alt="" width="714" height="411" /></p>
<h3>Step 5: Import The Image</h3>
<p>Go to &#8220;Insert &gt; New Symbol&#8221;. Create a new blank MovieClip. Move it to the stage from library. Apply the properties like the following.</p>
<p><img class="alignnone size-full wp-image-414" src="http://tuts.flashmint.com/wp-content/uploads/55.jpg" alt="" width="720" height="413" /></p>
<h3>Step 6: Contact Form</h3>
<p>Now, We can start to create contact form. Let&#8217;s start with the background of the input text. Press &#8220;R (Rectangle Tool)&#8221; and draw a shape. The size of the shape is 200&#215;20. Then fill the shape with this colours: Main Color: #252525, Outline Color: #333333. If you want, you can add a drop shadow effect.</p>
<p><img class="alignnone size-full wp-image-415" src="http://tuts.flashmint.com/wp-content/uploads/64.jpg" alt="" width="708" height="411" /></p>
<h3>Step 7: Input Texts</h3>
<p>Input text allows you to type text and show them. Therefore, we must use them in our contact form. Create 4 input texts and 1 dynamic text. Align them according to the backgrounds. You can see the properties below.</p>
<p><img class="alignnone size-full wp-image-416" src="http://tuts.flashmint.com/wp-content/uploads/74.jpg" alt="" width="716" height="416" /></p>
<h3>Step 8: Send Button</h3>
<p>To use &#8220;Submit Function&#8221; we must create a button. You can use same background to create it. Use a static text to show &#8220;SEND&#8221; text. Because we will not change it.</p>
<p><img class="alignnone size-full wp-image-417" src="http://tuts.flashmint.com/wp-content/uploads/82.jpg" alt="" width="712" height="411" /></p>
<h3>Step 9: Coding The Design</h3>
<p>We have just finished the designing.I will explain the actionscript in the code area. Now, We can start to write the codes. Let&#8217;s start with XML Actions. Type these codes to the first frame.</p>
<pre>/*To Define The Main Varibles*/
var urlLoader:URLLoader = new URLLoader();
var imgLoader:Loader = new Loader();
var loadFunction:URLLoader=new URLLoader  ;

/*XML Request*/
function XMLFunction(XMLPath:String):void {
    urlLoader.load(new URLRequest(XMLPath));
	urlLoader.addEventListener(Event.COMPLETE, onSuccess);
}
//The Name of the XML File
XMLFunction("ContactXML.xml");

/*XML - Flash Actions*/
//We'll define "info, title and image" varibles to use them in XML File.
function onSuccess(e:Event):void {
	var xml:XML=new XML(e.target.data);
	contactInfo.htmlText=xml.info;//We use HTML to show any type of texts
	contactInfo.autoSize=TextFieldAutoSize.LEFT;//AutoSize-Left
	contactTitle.htmlText=xml.title;
	contactTitle.autoSize=TextFieldAutoSize.LEFT;
    imgLoader.load(new URLRequest(xml.@image));
	imageMc.addChild(imgLoader);
}
</pre>
<h3>Step 10: Coding The Design</h3>
<p>To show and hide input text. The codes are same but we have to change them because we want to show different text on the input texts.</p>
<pre>/*Focus In - Focus Out*/
/*An object dispatches a FocusEvent object when the user changes the focus
from one object in the display list to another.*/

//Name Text Actions
nameText.text="NAME";
nameText.addEventListener(FocusEvent.FOCUS_IN, focusInName);
nameText.addEventListener(FocusEvent.FOCUS_OUT, focusOutName);

function focusInName(evt:Event) {
	if (nameText.text=="NAME") {
		nameText.text="";
	}
}

function focusOutName(evt:Event) {
	if (nameText.text=="") {
		nameText.text="NAME";
	}
}

//E-Mail Text Actions
emailText.text="E-MAIL";

emailText.addEventListener(FocusEvent.FOCUS_IN, focusInEmail);
emailText.addEventListener(FocusEvent.FOCUS_OUT, focusOutEmail);

function focusInEmail(evt:Event) {
	if (emailText.text=="E-MAIL") {
		emailText.text="";
	}
}

function focusOutEmail(evt:Event) {
	if (emailText.text=="") {
		emailText.text="E-MAIL";
	}
}

//Subject Functions
subjectText.text="SUBJECT";

subjectText.addEventListener(FocusEvent.FOCUS_IN, focusInSubject);
subjectText.addEventListener(FocusEvent.FOCUS_OUT, focusOutSubject);

function focusInSubject(evt:Event) {
	if (subjectText.text=="SUBJECT") {
		subjectText.text="";
	}
}

function focusOutSubject(evt:Event) {
	if (subjectText.text=="") {
		subjectText.text="SUBJECT";
	}
}

//Message Functions
messageText.text="MESSAGE";

messageText.addEventListener(FocusEvent.FOCUS_IN, focusInMessage);
messageText.addEventListener(FocusEvent.FOCUS_OUT, focusOutMessage);

function focusInMessage(evt:Event) {
	if (messageText.text=="MESSAGE") {
		messageText.text="";
	}
}

function focusOutMessage(evt:Event) {
	if (messageText.text=="") {
		messageText.text="MESSAGE";
	}
}
</pre>
<h3>Step 11: Coding The Design</h3>
<p>To communicate between Flash and PHP.</p>
<pre>/*/PHP - Flash Actions/*/

//Make a PHP Script Request to Post to the server

var urlRequest:URLRequest=new URLRequest("ContactPHP.php"); //The Name of the PHP Script
urlRequest.method=URLRequestMethod.POST;

//Send Button
sendBtn.addEventListener(MouseEvent.CLICK, SubmitFunction);

/*Text Field Validation*/
function SubmitFunction(e:MouseEvent):void {
	if (nameText.text == "NAME" || emailText.text == "E-MAIL" ||
	subjectText.text == "SUBJECT" || messageText.text == "MESSAGE" ) {
		resultText.text="PLEASE FILL OUT ALL REQUIRED FIELDS";

	} else if ( !emailValidate(emailText.text) ) {
		resultText.text="VALID E-MAIL ADDRESS.";//If E-Mail field is empty the e-mail will not be sent.
	} else {
		resultText.text="SENDING...";//If everything is correct the message'll be sent.

		var dataEmail:String = "name=" + nameText.text
		   + "&amp;email=" + emailText.text
		   + "&amp;subject=" + subjectText.text
		   + "&amp;message=" + messageText.text;
</pre>
<h3>Step 12: Coding The Design</h3>
<p>E-Mail Validation Actions.</p>
<pre>function emailValidate(s:String):Boolean {
	var p:RegExp=/(\w|[_.\-])+@((\w|-)+\.)+\w{2,4}+/;
	var r:Object=p.exec(s);
	if (r==null) {
		return false;
	}
	return true;
}
</pre>
<h3>Step 13: Coding The Design</h3>
<p>I&#8217;m going on with the URL Actions.</p>
<pre>/*URL Actions*/

var URLvariables:URLVariables=new URLVariables(dataEmail);

URLvariables.dataFormat=URLLoaderDataFormat.TEXT;
urlRequest.data=URLvariables;
loadFunction.load(urlRequest);
loadFunction.addEventListener(Event.COMPLETE, responseFunction );
	}
}

/*Status of the E-Mail*/

function responseFunction(e:Event):void {
	var loader:URLLoader=URLLoader(e.target);
	var emailStatus=new URLVariables(loader.data).success;
	//If E-Mail is sent successfully, the visitor'll see this message.
	if (emailStatus=="yes") {
		resultText.text="THANK YOU! YOUR MESSAGE WAS SENT SUCCESSFULLY.";
		//If E-Mail can not be sent, the visitor'll see this message.
	} else {
		resultText.text="AN ERROR OCCURED!";
	}
}
</pre>
<h3>Step 14: Creating XML File</h3>
<p>To show the text on the Flash, we must create a XML File. Open XML File you saved and type these codes. You can change the information.</p>
<p><img class="alignnone size-full wp-image-418" src="http://tuts.flashmint.com/wp-content/uploads/92.jpg" alt="" width="783" height="227" /></p>
<h3>Step 15: Creating PHP File</h3>
<p>To send visitor information you have to have a e-mail account. Open PHP Script you saved. Change the &#8220;emailAddress and siteName&#8221; with yours. The PHP Script contains an automatic response system.</p>
<pre>&lt;?php

//Type the receiever's e-mail address
$emailAddress = "info@email.com";
//Type your Site Name
$siteName = "Company Name";

$contact_name = $_POST['name'];
$contact_email = $_POST['email'];
$contact_subject = $_POST['subject'];
$contact_message = $_POST['message'];

if( $contact_name == true )
{
	$sender = $contact_email;
	$receiver = $emailAddress;
	$client_ip = $_SERVER['REMOTE_ADDR'];

	$email_body = "The Name Of The Sender: $contact_name \nEmail: $sender \n\nSubject: $contact_subject
\n\nMessage: \n\n$contact_message \n\nIP ADDRESS: $client_ip \n\n$siteName";

	$emailAutoReply = "Hi $contact_name, \n\nWe have just received your E-Mail. We will get
in touch in a few days. Thank you!  \n\n$siteName ";

	$extra = "From: $sender\r\n" . "Reply-To: $sender \r\n" . "X-Mailer: PHP/" . phpversion();
	$autoReply = "From: $receiver\r\n" . "Reply-To: $receiver \r\n" . "X-Mailer: PHP/" . phpversion();

	mail( $sender, "Auto Reply: $contact_subject", $emailAutoReply, $autoReply );

	if( mail( $receiver, "New E-Mail - $contact_subject", $email_body, $extra ) )
	{
		echo "success=yes";
	}
	else
	{
		echo "success=no";
	}
}

?&gt;
</pre>
<h3>Conclusion</h3>
<p>Congrulations!You&#8217;re done! You can test your movie. You have created a contact module with ActionScript 3.0, XML and PHP. Everything is ready. You must only send the folder to your server and start to use.</p>
<p><strong>Here&#8217;s how your new amazing contact form should look:</strong></p>
<p><img class="alignnone size-full wp-image-424" src="http://tuts.flashmint.com/wp-content/uploads/contact-screenthos.jpg" alt="" width="701" height="396" /></p>
<p>You can also <strong>check the form in action</strong> <a href="http://tuts.flashmint.com/wp-content/uploads/contact-form/Contact.html" target="_blank">here</a>.</p>
<p>If you have any question, please leave a reply here. I hope you enjoyed this tutorial and thanks for reading!</p>
<div id="fb-like" style=""><iframe src="http://www.facebook.com/plugins/like.php?href=http://tuts.flashmint.com/creating-contact-module-tutorial-with-as3/&amp;layout=button_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:50px; height:25px"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://tuts.flashmint.com/creating-contact-module-tutorial-with-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What Flash Tutorials will be Published at FlashMint Tuts?</title>
		<link>http://tuts.flashmint.com/what-flash-tutorials-will-be-published-at-flashmint-tuts/</link>
		<comments>http://tuts.flashmint.com/what-flash-tutorials-will-be-published-at-flashmint-tuts/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 09:12:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[flash tutorials overview]]></category>

		<guid isPermaLink="false">http://tuts.flashmint.com/?p=17</guid>
		<description><![CDATA[We accept step-by-step tutorials and How-to’s that contain text and screenshots formatted in HTML. Each tutorial should start with a title, preview image (200*200) and a descriptive excerpt for the main page. After the introduction there will be a ‘Preview’ heading with your live demo or video embedded under that. The tutorial itself should be [...]]]></description>
			<content:encoded><![CDATA[<p>We accept step-by-step tutorials and How-to’s that contain text and screenshots formatted in HTML.</p>
<p>Each tutorial should start with a title, preview image (200*200) and a descriptive excerpt for the main page.</p>
<p>After the introduction there will be a ‘Preview’ heading with your live demo or video embedded under that.</p>
<p>The tutorial itself should be laid out in numbered steps, starting with Step 1 containing an illustrative screenshot. The layout is repeated for each step until the tutorial is complete.</p>
<p>To create the coherent structure outlined above you’ll need to utilize some HTML tags like &lt;h2&gt; &lt;/h2&gt;, &lt;p&gt; &lt;/p&gt;, &lt;em&gt; &lt;/em&gt;. As such, your tutorial will need to be created in a HTML file. It’s best to format your tutorial in a text editor like Notepad or a WYSIWYG program like Dreamweaver. It must be saved with a .html extension (i.e. yourtutorial.html).</p>
<p>Please note that every step in your tutorial should be illustrated with a screenshot unless it is blindingly clear. Image size should be 500*500 pixels. Each image should contain a readable UI area.</p>
<p>Number every image in order of appearance: the first image should be titled 1.jpg, your twentieth should be titled 20.jpg, and so on.<br />
Use the following code for an image to appear in your tutorial:<br />
&lt;div class=”tutorial_image”&gt;&lt;img src=”-1.jpg” alt=”” /&gt;&lt;/div&gt;.</p>
<p><strong>Flash Tutorial Intro Preview</strong></p>
<p>Every tutorial should start with a preview of the finished product. This preview should be 500px wide or less.<br />
Live demo is the best way to preview a Flash effect. On the tutorial page you can embed animations. If you are having trouble creating your live demo or creating a place to host it, get in touch with us and we will find a solution.</p>
<p><strong>What to Submit</strong></p>
<p>Before submitting your Flash tutorial, create a .ZIP file with two folders: ‘Tutorial’ and ‘Preview’. Tutorial folder includes your formatted HTML tutorial and your tutorial images and a Preview folder which includes your preview files and a 200 x 200 pixel preview image. If the .ZIP file is over 10 MB use an online file transfer service for delivery. Send your tutorial to marketing (at) flashmint (dot) com</p>
<div id="fb-like" style=""><iframe src="http://www.facebook.com/plugins/like.php?href=http://tuts.flashmint.com/what-flash-tutorials-will-be-published-at-flashmint-tuts/&amp;layout=button_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:50px; height:25px"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://tuts.flashmint.com/what-flash-tutorials-will-be-published-at-flashmint-tuts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Welcome To The Unique Fount Of Flash Tutorials</title>
		<link>http://tuts.flashmint.com/welcome-to-the-unique-fount-of-flash-tutorials/</link>
		<comments>http://tuts.flashmint.com/welcome-to-the-unique-fount-of-flash-tutorials/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 11:24:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[flash tutorials overview]]></category>

		<guid isPermaLink="false">http://tuts.flashmint.com/?p=12</guid>
		<description><![CDATA[All the web developers and Flash lovers of the world come together! We are glad to welcome you at FlashMint Tuts &#8211; an unmatched one-stop solution for everyone who seeks professional help for designing Flash applications or wants to share some rare and useful findings with other webmasters. Flash is a tool for creating interactive [...]]]></description>
			<content:encoded><![CDATA[<p>All the web developers and Flash lovers of the world come together! We are glad to welcome you at FlashMint Tuts &#8211; an unmatched one-stop solution for everyone who seeks professional help for designing Flash applications or wants to share some rare and useful findings with other webmasters.</p>
<p>Flash is a tool for creating interactive and animated Web site. These Flash tutorials will teach you how to use Flash in your web designs. The mission of FlashMint Tuts is to be your reference guide to mastering your Flash scripting, learning new Flash effects and Flash concepts. Every technique presented at FlashMint Tuts can be easily implemented into your professional Flash work.</p>
<p>Here you will find exclusive and most sufficient <strong>Flash tutorials</strong> which will help you to solve any issue arising in the process of developing Flash powered web pages. Besides, your assistance is always appreciated and even required so feel free to add <strong>Flash tips</strong> <strong>and tutorials</strong> to fill the incredible FlashTuts collection. Moreover, you have the real opportunity to earn from the collaboration so use your chance to make some profit with minimum efforts and maximum pleasure.</p>
<p><strong>What we’re looking for in tutorials</strong></p>
<p>At FlashMint Tuts we are not looking for quick tips for beginners. We are looking for comprehensive, multi-step tutorials that create a complex and high-end final result on the following topics:</p>
<p>•    Flash animation and interactivity<br />
•    Flash web design and user interfaces<br />
•    Flash applications</p>
<p><strong>Flash Tutorials Acceptance</strong></p>
<p>Before starting, please contact us for the tutorial concept and ideas. We would only reject a tutorial if it did not adhere to the basic requirements listed here, or if the final effect was amateurish.<br />
# If you’re not sure, send a sample of your work.<br />
# Spell check before sending your post.<br />
# We reserve the right to edit your post (h3 and strong tags, punctuation, grammar, etc…)<br />
You agree that the post was not previously and will never be republished elsewhere.</p>
<p><em>Note on Plagiarism</em></p>
<p>Please, if you submit a tutorial for publication on FlashMint Tuts, make sure it is an original article.<br />
Since direct copy and pasting is obvious plagiarism; paraphrasing, where the author would base the tutorial on another tutorial, but write it out in his/her own words, is just as unacceptable as copying and pasting.</p>
<p><strong>Getting paid</strong></p>
<p>As a freelance contributor you will be paid $150 per tutorial via PayPal (unless otherwise specified). Payments are made at the beginning of each month.</p>
<p><strong>Author Profile </strong></p>
<p>As an author, you will be featured on the top of each tutorial you send. With your first tutorial you should also submit your website URL, short bio and an email address that is attached to a <a href="http://gravatar.com" target="_blank">Gravatar</a> account.<br />
Our aim is to create the most powerful <strong>Flash knowledge base</strong> in one place so join us right away and enjoy the advanced facilities of Flash design.</p>
<div id="fb-like" style=""><iframe src="http://www.facebook.com/plugins/like.php?href=http://tuts.flashmint.com/welcome-to-the-unique-fount-of-flash-tutorials/&amp;layout=button_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:50px; height:25px"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://tuts.flashmint.com/welcome-to-the-unique-fount-of-flash-tutorials/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

