public
Description: Flying Saucer as3 helper classes
Clone URL: git://github.com/csessions/as3.git
Minor fixes
csessions (author)
Wed Sep 03 23:35:26 -0700 2008
commit  3f640bcb17e54bb79069c52cd0d8644a36172c45
tree    8ec8f668d9654161d114634c2d76cae316ecf5a0
parent  1fa335fcf9137ee2b80a25b2b898f25101a49654
...
76
77
78
 
79
80
81
...
76
77
78
79
80
81
82
0
@@ -76,6 +76,7 @@ package net.flying_saucer.ui {
0
         if(attrs[e]) listen(btn, MouseEvent[e], attrs[e])
0
       btn_attributes[btn] = attrs
0
       btn.mouseChildren = false
0
+ btn.cacheAsBitmap = true
0
       btn.buttonMode = attrs.enabled
0
       set_hit_area(btn, attrs.hit)
0
       reset(btn)
...
7
8
9
 
 
10
11
12
...
20
21
22
23
 
24
25
26
...
7
8
9
10
11
12
13
14
...
22
23
24
 
25
26
27
28
0
@@ -7,6 +7,8 @@
0
 
0
 package net.flying_saucer.util {
0
 
0
+ import net.flying_saucer.util.*
0
+
0
   public class Str {
0
 
0
     // Public Methods
0
@@ -20,7 +22,7 @@ package net.flying_saucer.util {
0
     //
0
     public static function shorten(str:String = '', clip_on_word:Boolean = false):String {
0
       return clip_on_word ?
0
- str.match(/^(.*) .*$/)[1] + '…' :
0
+ str.match(/^(.*) .*$/m)[1] + '…' :
0
              str.match(/^(.*?)[ |…]*.[ |…]*$/)[1] + '…'
0
     }
0
     

Comments

    No one has commented yet.