Super Easy Email Validation AS2
I needed a quick and easy way to check for the basics of an email address.
Does it contain “@” and “.” symbols.
This is by no …
Read Article →31 articles about actionscript development, tools, and best practices
I needed a quick and easy way to check for the basics of an email address.
Does it contain “@” and “.” symbols.
This is by no …
Read Article →1180 Call to a possibly undefined method navigateToURL
If you get the above error when trying to run your flash actionscript 3 file, you are obviously …
Read Article →It is really easy to create a Timer in Actionscript 3.
Instantiate the Timer Class and pass a time in millions of 1000 to it to work in seconds.
var …
Read Article →
In the below example we will use Actionscript 2 to call a remote PHP file that will return data to it.
It is a simple way of transferring data between …
Split string into sentences by max line length.
This uses a character array but doesn’t use word-wrapping.
var personalMessage: String = …
Read Article →
Error 1046: Type was not found or was not a compile-time constant: Event.
You need to import the Event class!
import flash.events.Event
I needed to work out a date range according to the date 3weeks away from the current date.
After a bit of thinking, I found that it’s actually …
I have been working on a project where I need to select a date range starting today and ending a month from now, so the user cannot select anything in …
Read Article →if (mc.hitTest(_root._xmouse, _root._ymouse, true))) {
trace("hitTest Run");
}
Read Article →
If you want to only show numeric characters in a textfield in flash actionscript you can use the following code:
myTextField.restrict = "0-9"; …
Read Article →
If you have a movieclip that by default has the hand cursor showing on RollOver and you don’t really want this, you can disable it by doing the …
Read Article →In a flash movie I usually have a frame of actionscript that controls all elements in the file to keep everything in one place.
Sometimes I have an …
Read Article →