RSS
Home Posts tagged "actionscript 2"
formats

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 meals a foolproof method, so don’t use it for anything big, but if you want to just do a quick test then here you go: var email:String =

Read More…

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
formats

Set line leading / line spacing in flash actionscript 2

This is how to add text leading using Actionscript 2 for Flash. var txtFormat:TextFormat = new TextFormat(); txtFormat.leading = 5; // change this to whatever you need it to be ttt.setTextFormat(txtFormat); ttt2.setTextFormat(txtFormat);</span> There is also a GUI way of doing this: Select your textfield and and under the paragraph section, set the top/right hand icon

Read More…

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
formats

Remove an onRelease Handler

After creating a onRelease handler in Actionscript 2 as follows: myMovieClip.onRelease = function() { doWhatever(); } ..you then want to remove the handler for whatever reason, you can remove it like this: delete myMovieClip.onRelease;

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 

This is the official blog of HSMoore Ltd.

© Site by HSMoore Ltd