Flex ƽÆÌ±³¾°Í¼Æ¬
¹À¼Æ²»ÉÙ×öFlexµÄ³õѧÕߺÍÎÒÒ»Ñù£¬Ñ°ÕÒÈÃFlex±³¾°Í¼Æ¬Æ½ÆÌÏÔʾ·½·¨¡£
µ«ÏÖÔÚÎÒÒª¸æËßÄãµÄÊÇFlex±¾ÉíûÓÐÌṩÕâÖÖ·½·¨£¬ÖÁÉÙÔÚFlex3ÉÏÊÇûÓÐÌṩµÄ¡£
ËùÒÔ¾ÍÒª×Ô¼ºÐ´´úÂëÀ´ÊµÏÖÕâÖÖЧ¹û£¬ÆäʵºÜ¼òµ¥µÄ¡£
ÏÂÃæÊÇÎÒÔÚÍøÉÏÕÒµ½µÄÒ»¸ö·½·¨£¬È»ºó×Ô¼º×öÁËÒ»µãССµÄÐ޸ġ£
²¢×öÒ»¸ö¼òµ¥µÄÀý×Ó·ÅÉÏÀ´£¬Äã¿ÉÒÔµãÕâÀïÏÂÔØ¡£
package
{
import flash.geom.Rectangle;
import mx.graphics.BitmapFill;
import mx.skins.ProgrammaticSkin;
import flash.text.StyleSheet;
public class RepeatBackground extends ProgrammaticSkin {
public function RepeatBackground() {
}
override protected function updateDisplayList(w:Number, h:Number):void {
super.updateDisplayList(w,h);
graphics.clear();
var b:BitmapFill = new BitmapFill();
b.source = getStyle("backgroundImage");;
b.begin(graphics,new Rectangle(0,0,w,h));
graphics.drawRect(0,0,w,h);
b.end(graphics);
}
}
}
ʹÓ÷½·¨Ò²ºÜ¼òµ¥£¬Ö»ÐèÒªÉèÖÃÒ»ÏÂcss¾Í¿ÉÒÔÁË
Application
{
backgroundImage: Embed(source="assets/bg1.gif");
border-skin:ClassReference("RepeatBackground");
}
¸½¼þÏÂÔØ
Ïà¹ØÎĵµ£º
дÏÂÕâ¸ö±êÌâ´ó¼ÒÒ»¶¨ÒÔΪÎÒÊÇÖ»FLEXÀÏÄñ,²»È»²»¸ÒÕâô¸ßÉù˵»°,¶øÇÒÊÇÔÚJAVAEYEÀï.ÎÒÖªµÀJEÀï¸ßÊֺܶà.ÓкܶàÈ˶¼¶ÔFLEXÓÐÐãÉîµÄ¼ûµ×,д´ËÎÄÊÇΪÁ˻شðһЩÅóÓѶÔÎÒµÄÌáÎÊ.
ÓкܶàÏëתÐеĿª·¢Õß¶¼ÎÊÎÒÕâÑù¼¸¸öÎÊÌâ:ÏÖÔÚÕÐFLEXµÄ¹«Ë¾¶àÂð?¸ãFLEX¿ª·¢¹¤×ʸßÂð?ÔõôÑù²ÅËãÊÇFLEXÈëÃÅÁË?Ôõô²Å³ÆµÃÉÏÊÇFLEX¸ßÊÖ?
&n ......
ÍøÉÏÕÒÁ˺ܶà×ÊÁÏ£¬µ÷ÁËÓÖµ÷£¬ÊÔÁËÓÖÊԵģ¬ÖÕÓÚÏò¿Í»§¶Ëдcookie³É¹¦ÁË£¬¸ú´ó¼Ò·ÖÏíһϣº
ÆäʵÓÐÁ½ÖÖ·½·¨¿ÉÐУº
·½·¨Ò»£ºÊÇÔÙÄ£°åhtmlÖÐÌí¼ÓÒ»¶ÎjsдcookieµÄ´úÂ룬ÔÙflex¶ËÓÃExternalInterface.callÀ´µ÷Ó㬸оõÂé·³£¬Ã»ÓÃÕâÖÖ·½·¨£º
·½·¨¶þ£ºÖ±½ÓÔÚflex¶ËÏò¿Í»§¶Ëдcookie
¹Ø¼ü´úÂëÊÇ£º
//Ïò¿Í»§¶ËдÈëcookie ......
ת×Ô£ºhttp://www.cnblogs.com/sharplife/archive/2007/09/03/880641.html
×î½ü¿´Ê±Ñ§Ï°FlexÓ¦Ó㬿ªÊ¼¶ÔFlexºÍFlashµÄ¹ØÏµÓÐЩģºý£¬¶ÁÁËOreillyµÄProgramming Flex
2²ÅËãÊÇÃ÷°×Щ£¬ÏÖ¼ÇÏ¡£
1¡¢FlexÓ¦ÓóÌÐòµÄÉúÃüÖÜÆÚ
FlexÓ¦ÓÃ¾ÍÆä¸ù±¾ÉϽ²¾ÍÊÇFlashÓ¦Óã¬Ö»²»¹ýÆäÊÇ»ùÓÚFlex
Framework£¨ÓÉActionScriptд¾Í£©¿ª· ......
ÓÉÓÚFlex Builder compiler shellÓÐmemory leakµÄÎÊÌ⣬ ¶øSDKĬÈÏµÄµÄ JVM heap size Ö»ÓÐ312M£¬µ±compile±È½Ï´óµÄprojectÈÝÒײ»¹»£¬ËùÒÔÖ»ÒªÐÞ¸ÄSDKµÄJVM²ÎÊý¾Í¿ÉÒÔ¡£
±à¼ {Flex SDK}/bin/jvm.config ÎļþÈçÏ¡£
java.args=-Xmx512m ...
Èç¹û»¹ÊÇÓÐError£¬¿ÉÒÔÔö¼Óµ½1024»òÕ߸ü¶à¡£ ......