[2004-05-26] 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)....
[2004-05-24] 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...
[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....
[2004-05-21] 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:
[2004-05-17] 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.
[2004-05-13] Film Grain A very cool defect I notice on older movies and films is the film grain effect caused by the aging of the actual film reels. While most would consider that to be a flaw, I take the converse of that view and think it is a really nifty effect. After all, one person's perception of a flaw is another person's idea for a Flash MX 2004 tutorial.
[2004-05-10] WebProWorld and CartoonSmart Launch Contest for Flash Animators Are you a Flash animator or interested in learning more about Flash animation?
|
|