|
do_btn.addEventListener(MouseEvent.CLICK, showStringInfo); Open up flash and make 3 text boxes like above. Make one and input text box with an instance name of input and the other two dynamic text boxes with instance names ouput1 and output2.
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.... |
| w___w_w_._j__a_v___a2s__._c__om_ | Contact Us |
| Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
| All other trademarks are property of their respective owners. |