flash help

Out of context: Reply #7

  • Started
  • Last post
  • 15 Responses
  • rabattski0

    nice script. but that goes character thru character. if you have a pretty long text it'll take some time to execute. quite cpu intensive. and you have to know how many characters do fit in that box. and what happens when you break a word of a the end? i think you should take word length in account as well. if the total characters of the last word is bigger than the maximum then that word goes to the next box. something like that.

    i dunno if you can get the .length variable of an empty text box. logically it should be zero because it's empty then again sometimes flash isn't about logic. if you can get a value than that would be the fastest way. and choice, size of typeface plays a role as well in the .length value. but i would try it nonetheless. if you do get a zero (which is more likely) than you prolly need to manually figure out how many characters do fit in those boxes.

    interesting effect btw. where did you see it? can you post it up here? want to see it in action. maybe it makes more sense for the coders here.

View thread