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… Read More »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… Read More »Super Easy Email Validation AS2
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… Read More »1180 Call to a possibly undefined method navigateToURL
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… Read More »How to use a Timer in Actionscript 3
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… Read More »Actionscript 2 – PHP Data Transfer
Split string into sentences by max line length.This uses a character array but doesn’t use word-wrapping. This outputs the following: You got this far so… Read More »Actionscript2: Split string by line length with & without word-wrap
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… Read More »Add a date to a date in Actionscript 2
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… Read More »Add a month to selectable date range – Date Chooser – Actionscript 2
If you want to only show numeric characters in a textfield in flash actionscript you can use the following code:
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… Read More »Enable / Disable Cursor Hand in Actionscript 2
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… Read More »Calling event functions from movieclips in actionscript 2
You have a flash uploader and you get this error: security error: securitySandboxError This means that the flash is not trusted by the domain and… Read More »Security error: securitySandboxError with Flash
You have a string and you want to capitalize the first character but have the rest of the word in lowercase. DO THIS!
If you want to position the flash top/left and not have it scale when you resize it’s bounding box window, you can set the following… Read More »Stage align and Stage scale in actionscript 3
After creating a onRelease handler in Actionscript 2 as follows: ..you then want to remove the handler for whatever reason, you can remove it like… Read More »Remove an onRelease Handler
Anyone up for an online Flash IDE? Take a look at this:http://antimatter15.com/ajaxanimator/build/ Nice work!
The problem:While working on a Papervision3D Flash Project I had a problem where a back button that sits above the 3d canvas and acts as… Read More »Papervision Event Listener Idea
I often have issues where ‘dumb browsers’ cache my published swf files and when they dynamically populate they don’t always update. This is SUPER annoying… Read More »Don’t cache my swf files!
I personally really like this way of clearing an array’s elements: Declare your array to use: Add elements: Clear the array:
Ever needed to change the font size of a standard flash combobox component? You will need to give it an instance name e.g. “myCombobox” and… Read More »Change combobox font size in Flash Actionscript
So you have now placed a swf file into your html page and you want to be able to see through it. Lucky for you,… Read More »Transparent swf in html
Error: “1046: Type was not found or was not a compile-time constant: InteractiveScene3DEvent.” I got this this morning when I opened up a project I… Read More »Papervision error 1046
Ever wondered how to get variables from an html page to a flash element? Well, it’s quite easy using the following actionscript 2 example: I… Read More »Trying to get variables into flash from the browser!
tween is an actionscript class and can be used after importing the core files. e.g.