Displaying Fractions Correctly
Im trying to create a function that will displays fractions in a textfield in the correct format, because 1/4 or 1/2 isnt being accepted by e-learning people as the correct way to display a fraction. So to do this dynamically, i just thought about creating a 3 line dynamic textfield on the fly, placing the numerator of the fraction on the first line, a dash on the second line and the denominator on the third line and then changing the lineSpacing of the textfield to squeeze it all together vertically, but of course, this is the only property of the TextFormat object that is missing and thus cannot be set dynamically, nor can you pass a negative integer as a value for the TextFormat.leading property unless you specify it using the leading attribute of the textformat html node and pass it to the htmlText property of a textfield(Thanks to Peter Hall).... Directory:
> Web Development > Web Applications
Date: 2004-05-26
|
Useful Perl Scripts With Regular Expressions
Most computer users, especially software engineers, have had a need to modify multiple files to either add a line of text, modify a line of text, or completely remove a line of text. The problem is that there never seems to be a piece of software out there that can help you with this problem. Some programs let you get close to doing what you want but in my experience none ever let you do exactly what you want; so a few hours are spent opening each file and editing them manually. Directory:
> Web Development > Web Applications
Date: 2004-05-25
|
Uppercase First Letter
Personally i feel that making the first letter of a word, in a sentence and sometimes the first letter of every word in a sentence, looks better than all lowercase. When it comes to input textfields and the loading of external content, i like to make the first letter capitalised, so i created a String method, which i use regularly and i thought i would share it... Directory:
> Web Development > Web Applications
Date: 2004-05-24
|
Reduce a String
This morning i needed to reduce any given string to a certain length and then place a pattern at the end of the string, in this case a simple '....' but the reduction had to take into account full words, meaning, i didnt want to just split the string in any old place and leave parts of a word in the final string. So i created this little String Exstension which i thought may come in useful for some other people! Seems to work great for me.... Directory:
> Web Development > Web Applications
Date: 2004-05-24
|
updateAfterEvent Explained
It appears that most coders use it, but 50% if not more dont actually know why they are using it, what it does or when they should use it. In the latest article for a regular column in a uk based internet magazine; dot net, a self proclaimed actionscript expert implemented updateAfterEvent in his mouse recording example as follows: Directory:
> Web Development > Web Applications
Date: 2004-05-21
|
To WAP or Not to WAP
WAP: "Wireless Application Protocol (WAP) is an open, global specification that empowers mobile users with wireless devices to easily access and interact with information and services instantly." Directory:
> Web Development > Web Applications
Date: 2004-05-19
|
Php into Flash
Allrighty then, lets get some external data into flash using php. We're not going to use a MySql databse this time, that's something for the next tutorial. In this example we're going to fill a comboBox, a txtbox, and a listBox in flash with data taken from a php file. To complete this tutorial you''ll have to have access to a webserver and have php enabled on your sytem. Directory:
> Web Development > Web Applications
Date: 2004-05-17
| |
|