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À¬»ø»ØÊÕºÍÐÔÄÜÓÅ»¯
2009-10-10 10:08
FlexÀ¬»ø»ØÊÕµÄһЩ֪ʶ×ܽ᣺
1¡¢±»É¾³ý¶ÔÏóÔÚÍⲿµÄËùÓÐÒýÓÃÒ»¶¨Òª±»É¾³ý¸É¾»²ÅÄܱ»ÏµÍ³µ±³ÉÀ¬»ø»ØÊÕ´¦Àíµô¡£
2¡¢¸¸¶ÔÏóÄÚ²¿µÄ×Ó¶ÔÏó±»ÍⲿÆäËû¶ÔÏóÒýÓÃÁË£¬»áµ¼Ö´Ë×Ó¶ÔÏ󲻻ᱻɾ³ý£¬×Ó¶ÔÏ󲻻ᱻɾ³ýÓֻᵼÖÂÁ˸¸¶ÔÏ󲻻ᱻɾ³ý¡£
3¡¢Èç¹ûÒ»¸ö¶ÔÏóÖÐÒýÓÃÁËÍⲿ¶ÔÏ󣬵±× ......
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()" layout="absolute" xmlns:ns1="com.component.*">
<mx:Script>
<![CDATA[
import com.component.DataHBox;
import com.component. ......
ŪÁËÁ½Ì죬ÖÕÓڰѸ´ÔÓµÄxmlÎļþµÄÊý¾Ý¸ù¾Ý×Ô¼ºµÄÒªÇó¶Á³öÀ´£¬ÏÔʾÔÚÒ³ÃæÉÏÁË¡£flexͨ¹ýHTTPService×é¼þ·¢ËÍÇëÇ󣬶ÁÈ¡xmlÎļþÖÐÊý¾Ý£¬ÓÃxmllistcollection´æ´¢xmlÖÐijһ²¿·ÖÊý¾Ý£¬²¢°ó¶¨ÔÚgridview¿Ø¼þÉÏ¡£
xml£¬xmllist£¬xmllistcollectionÖÐÖ»ÓÐxmllistcollection¾ßÓÐÐ޸ĸüÐÂÊý¾ ......
1flex¶Ë
<mx:Button label="ÏÂ ÔØ" click="download()"/>
//ÏÂÔØ
public function download():void{
var str:String=this.uploadfiles.selectedIndex.toString();
if(str=="-1"){
Alert.show("ÇëÑ¡ÖÐÒªÏÂÔØµÄÎļþ");
&n ......
1¡¢¿ª·¢»·¾³£ºÔÚmyeclipse7.0ÖÐÕûºÏflex plup3.0, °²×°flex plup3.0ʱ,Ñ¡myeclipse ÖÐeclipseµÄĿ¼£¬È»
ÕÒµ½flex µÄ°²×°ºÃµÄĿ¼£¬½«pluginsºÍfeatures¶ÔÓ¦µ½¿½µ½myeclipseÀïÃæ eclipseÏàÓ¦µÄĿ¼Ï¡£
2¡¢´´½¨ flexºÍ java (Web)µÄ¹¤³Ì(ͨÐÅ¿ò¼ÜÓÃblazeds.war)£º
&nb ......