Wednesday 9 November 2016

Lesson 13: Printing and Sending Email with ActionScript 3.0

CONTACT FORM AS3
---------------------------------------------------------------------------------------------------------
FOLLOW IMOPTANT STEMPTS

------------------------------------------------------------------------------------------------------------------
BEFORE SEND MESSAGE
1) FIRST SOVLE SMTP PROBLEM 
SMTP AUTHENTICATION EXCEPTION IN VB
2)  IMAP ENABLED
3) CORRECT GMAIL ADDRESS IN CODE
4) CORRECT THIS GMAIL PASSWORD IN CODE

------------------------------------------------------------------------------------------------------------------
USEFUL IMAGES:
https://www.google.com/settings/security/lesssecureapps
https://mail.google.com/mail/u/0/#settings/fwdandpop


https://www.google.com/settings/security/lesssecureapps

https://mail.google.com/mail/u/0/#settings/fwdandpop


------------------------------------------------------------------------------------------------------------------
Step 1: Check that IMAP is turned on
Step 2: PHP NOT RUN ON GOOGLE CHROME THEFOR WE USE 
FREE PHP HOSTING
Step 3: NEED FREE PHP FILE HOSTING BY 000WEBHOSTING
FOR PHP FILE
Step 4: MAKE WEBSITE
Step 5: UPLOAD PHP FILE IN PUBLIC HTML FOLDER AND USE FILE
LINK IN ACTION SCRIPT AS3 CODE
---------------------------------------------------------------------------------------------------------
FOLLOW STEPS:
---------------------------------------------------------------------------------------------------------
OPEN ACTION SCRIPT AS3
CONTACT FORM IMAGE AND IMPORT TO STAGE
MAKE THREE LAYERS
COPY AND PASTE BELOW CODE IN LAYER 1 FRAME ONE CODE
MAKE TEXT BOXES AND BUTTON WITH INSTANCE NAME
ONE BY ONE
USE TLF BOXES WITHOUT THIS SHOW ERROR
----------------------------------------------------------------------------------------------------------
CONTACT FORM AS3
CONTACT FORM AS3
CONTACT FORM AS3


CONTACT FORM AS3

------------------------------------------------------------------------------------------------------------
READ MORE:
https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef/related?hl=en
http://www.peachpit.com/store/actionscript-3.0-for-adobe-flash-professional-cs5-classroom-9780321704474
DOWNLOAD LESSON 13:
https://peachpit.wamnet.com/cgi-bin/cs/mvsrch_front?KEY=%2BA5PMNGabiGbQ%2B/4DSzGPHgmPLIymLi2ek1uyie5mdQvjxdiV8JqyVpeaPLpqJWIAckf2fRGQDMCQpoInYLDWuNM%2BH2FCmdiLE1Bam/jxsu0OpvhzOUwcSc3EmGppyrxThbdP15VqcADa7AdQATu9xdz0IlskaKM7mVumjx7MAzB/XTbh8shca76ud1iexZ69NgBIOLpK11spr%2BsohDvtzHB8rU/pzYRn8NfGfg3prbZkQqvaaqtVWQNauB00RIZx4jXMYbX71UAOoF41OBiMOT1iJUrE1meVi8FKCTR4iACvwo4bGxRC4azcCdjqWJ%2B4GPwfXwgOlG2W9/fcojDhMeObH9acljF0u36TWA9LXq26JoTEe%2BqgkJuL3F9OeP6a5Zz0THuqzE%3D&View=List

CONTACT FORM AS3 - YouTube

https://www.youtube.com/watch?v=sTC73MGWd0k
33 mins ago - Uploaded by SAVE MONEY
http://flashcollege.blogspot.co.uk/2016/11/lesson-13-printing-and-sending-email.html.

ActionScript 3.0 Flash CS5/CS6 Classroom in a Book: Lesson 13 ...

https://www.youtube.com/watch?v=O_f20lhyDfY

12 Jul 2013 - Uploaded by Adobe Tutorials
Lesson 13Printing and Sending Email with ActionScript 3.0 (To buy the book click on the following link: ...
------------------------------------------------------------------------------------------------------------
ACTION SCRIPT CODE LAYER 1 FRAME 1 CODE:
MAIN TIMELINE FRAME 1 CODE
-------------------------------------------------------------------------------------------------------------
var variables:URLVariables = new URLVariables();
//USE IMAP ENABLE SETTING GMAIL ADDRESS
//MAKE FREE ACCOUNT 000WEBHOSTING BY SIGNUP
//MAKE FREE WEBSITE
//UPLOAD PHP FILE IN PUBLIC HTML FOLDER
//USE PHP FILE LINK IN CODE
var mailAddress:URLRequest = new URLRequest("https://fbigadgets.000webhostapp.com/EMAIL.php");
name_txt.tabIndex = 1;
email_txt.tabIndex = 2;
subject_txt.tabIndex = 3;
note_txt.tabIndex = 4;
print_btn.tabIndex = 5;
send_btn.addEventListener(MouseEvent.CLICK, onSubmit);
function onSubmit(e:Event):void {
variables.sName = name_txt.text;
variables.sEmail = email_txt.text;
variables.sMessage =variables.sName + " has sent this note:" + "\n\n"+note_txt.text;
variables.sSubject = subject_txt.text;
mailAddress.data = variables;
mailAddress.method = URLRequestMethod.POST;
sendToURL(mailAddress);
feedback_txt.text = "Your mail has been sent";
}
print_btn.addEventListener(MouseEvent.CLICK, onPrint);
function onPrint(e:MouseEvent):void {
var now:Date = new Date();
var note:String = name_txt.text + " has sent this note on:" + "\n" + String(now) + "\n\n" + note_txt.text;
var printNote:PrintJob = new PrintJob();
if (printNote.start()) {
try{
var pageSprite:Sprite = new Sprite  ;
var noteText:TextField = new TextField();
noteText.wordWrap = true;
noteText.width = printNote.paperWidth;
noteText.height = printNote.paperHeight;
noteText.text = note;
addChild(pageSprite);
pageSprite.addChild(noteText);
printNote.addPage(pageSprite);
} catch(e:Error) {
trace("There was an error");
}
printNote.send();
removeChild(pageSprite);
}
}

------------------------------------------------------------------------------------------------------------
UPLOAD EMAIL.php  IN 000 WEB HOSTING PUBLIC HTML FOLDER
PHP FILE EMAIL.php CODE:
-------------------------------------------------------------------------------------------------------------
<?php
$sendTo = $_POST["sEmail"];
$subject = $_POST["sSubject"];
$headers = "From: " . $_POST["sName"] . "<" . $_POST["sEmail"] .">\r\n";
$headers .= "Reply-To: " . $_POST["sEmail"] . "\r\n";
$headers .= "Return-path: " . $_POST["sEmail"];
$message = $_POST["sMessage"];
mail($sendTo, $subject, $message, $headers);
?>
-------------------------------------------------------------------------------------------------------------











1 comments:

Lesson 13: Printing And Sending Email With Actionscript 3.0 - Flash College >>>>> Download Now

>>>>> Download Full

Lesson 13: Printing And Sending Email With Actionscript 3.0 - Flash College >>>>> Download LINK

>>>>> Download Now

Lesson 13: Printing And Sending Email With Actionscript 3.0 - Flash College >>>>> Download Full

>>>>> Download LINK py


EmoticonEmoticon