Advertisement
henke37

getMasterString

May 6th, 2013
526
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import flash.sampler.*;
  2.  
  3. function secretlyKeepsLongStringAndReturnsL():String {
  4.     var s:String="Long";
  5.     for(var i:uint;i<20;++i) { s+=s; }
  6.     return s.substr(0,100);
  7. }
  8.  
  9. var L:String=secretlyKeepsLongStringAndReturnsL();
  10. var m:String=getMasterString(L);
  11.  
  12. trace(L.length,getSize(L));
  13. trace(m.length,getSize(m));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement