I have created a small application with three different slides.
one at frame 1 which acts as a Home page
one at frame 2 which acts as a Gallery page
one at frame 3 which acts as a Contact Page
On the contact page i have the following ‘skeleton’ code… which i have to follow…
// button for submitting form
submitBT.addEventListener(MouseEvent.CLICK, subForm);
// function used to get data from form
function subForm (event:Event):void{
contactEmail = getEmail();
trace(“form submitted”);
}
// validate correct email e.g. contains @
function getEmail():String{
return emailAddress.text;
}
stop();
The instance names are as follows
name = person
email = emailAddress
message = message
i need basic validation such as text lentgh, and also correct email format (i.e. containing a ‘@’)
please can someone help with this i am pulling my hair out!
Apologies if it is realyl basic i am brand new to Flash and Actionscript and programming in general.
Chris