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 …
Read Article →
In-depth guides, insights, and best practices for modern software engineering
This is how to add text leading using Actionscript 2 for Flash.
var txtFormat:TextFormat = new TextFormat();
txtFormat.leading = 5; // change this to …
Read Article →
SELECT * FROM tablename
INSERT INTO tablename (col1, col2, col3,..) VALUES (val1, val2, val3,...)
UPDATE …
Read Article →
If you need to connect to a mysql database from php you can do it like this:
<?php
$DBH = 'localhost';
$DBU = 'root';
$DBPWD = …
Read Article →
I have a question for anyone that can answer it:
I create an .htaccess file in the root of a subdomain, but if I enter either of these two lines I get …
Read Article →If you get an error message similar to this one when trying to run Quake 4…
Fatal Error: could not create destination file C:/Program Files (x86)/id …
Read Article →I was trying to import a massive csv dataset into phpMyAdmin and it kept throwing error:
Invalid field count in csv input on line 1
This is quite …
Read Article →This is somewhat of a debatable topic, but it has come up a lot of times without any real final clarity, so I will try and cover it all.
Lets begin by …
Read Article →CSS allows you to add a border to almost all html elements. This is one of many CSS techniques you can use to enhance your web pages, along with using …
Read Article →What the heck is..
uncaught exception: [Exception… “Could not convert JavaScript argument arg 0 [nsIDOMHTMLDivElement.appendChild]” …
Read Article →Getting this error in ActionScript 3?
Error 1046: Type was not found or was not a compile-time constant: Event.
You need to import the Event class: …
Read Article →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 →The hitTest method in ActionScript 2 is how you check whether the mouse (or another object) is overlapping a movie clip. It’s essential for …
Recently I checked my website stats and saw I had a few hits from “127.0.0.1:4664” and wondered to myself, what the heck is that? Am I …
Read Article →If you want to only show numeric characters in a textfield in Flash ActionScript 2, you can use the restrict property:
myTextField.restrict = …If you use a dynamic textbox in Flash and you want to embed the British Pound symbol (£) then you will want to also embed the “Latin I” …
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 →Believe it or not, this one is super easy to fix!
It’s actually a temporary problem with your motherboard, all you need to do is:
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 →A quick and easy way would be to type the following in one line with single spaces in the Terminal.
This way of installing OpenGL and SDL libraries …
The hosts file is located at the following address:
C:\windows\system32\drivers\etc</span>
or
%systemroot%\system32\drivers\etc</span>
But …
I think this may be the fastest way to get a list of all the directories in a given folder/directory using PHP.
I needed this when building a plugin …
Read Article →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 you …
Read Article →I discovered a very annoying bug in the Flash IDE a little while ago, and it has happened to me quite a few times.
Today it happened again and so I …
Read Article →