Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

flexʵÀýЧ¹ûͼ

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" verticalAlign="top" applicationComplete="init()">
<mx:Script>
 <![CDATA[
  
  import mx.events.ItemClickEvent;
import mx.collections.ArrayCollection;
import mx.controls.Alert;
[Bindable]
public var dataColl:ArrayCollection=new ArrayCollection();
//ID񅧏
var k=1;
//ÁªÏµÈ˶ÔÏó
var userobj:Object;
//ÐÔ±ðĬÈÏ״̬
var sexobj:String="ÄÐ";
//ÓÒ¼üɾ³ý²Ëµ¥
var menucont:ContextMenu;
//³õʼ»¯ÐÐÊý
var p:int=0;
public function init():void{
menucont=new ContextMenu();
addMenuItems();
}
//Ìí¼ÓÓÒ¼ü²Ëµ¥Ïî
public function addMenuItems():void{
var item:ContextMenuItem = new ContextMenuItem("ɾ³ý");
menucont.customItems.push(item);
item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuItemHandler);
menucont.hideBuiltInItems();
userdata.contextMenu = menucont;
}
//²Ëµ¥ÓÒ¼üʼþ´¦Àí
public function menuItemHandler(event:ContextMenuEvent):void{
var CaptionString:String=event.target.caption;
if(CaptionString=="ɾ³ý"){
//È·¶¨Êó±êËùÔÚÐÐÊý
var findex:Number = Math.floor(userdata.contentMouseY/userdata.rowHeight)-1 + userdata.verticalScrollPosition;
if (findex<0 || findex>=userdata.verticalScrollPosition+userdata.rowCount-1) //ÐкÅСÓÚ0ʱºÍ´óÓÚdatagridÐÐ×ÜÊýʱµÄ ´íÎó´¦Àí
{
Alert.show("ÇëÑ¡ÔñҪɾ³ýµÄÐÐ","Ìáʾ");
} else {
p=findex;
dataColl.removeItemAt(p);
Alert.show("ɾ³ý³É¹¦","Ìáʾ");
}
}
}
public function checkuser(event:MouseEvent):void{
var gname=uname.text;
var gphone=uphone.text;
if(gname!="" && gphone!=""){
dataprovider();
}else{
Alert.show("ÇëÊäÈëÓû§Ãû»òµç»°ºÅÂë","Ìáʾ");
}
}
//µ¥Ñ¡°´Å¥´¥·¢Ê¼þ
public function changsex(event:ItemClickEvent):void{
if(event.currentTarget.selectedValue=="f"){
sexobj= "Å®";
}else{
sexobj= "ÄÐ";
}
}
//ÖØÖÃ
public function resetvalue(event:MouseEvent):void{
uname.text


Ïà¹ØÎĵµ£º

FlexÓëASP.NET½áºÏ

1.½«flex±àÒëºóµÄ³ÌÐò²åÈëµ½asp.netÒ³Ãæ
flexµÄ×îÖÕÊä³ö¾ÍÊÇÒ»ÕÅÍøÒ³+Ò»¸öflash(.swfÎļþ)
Õâô˵ÄãÃ÷°×ÁË°É£¬Æäʵ¾ÍÊÇÓÃËûÉú³ÉµÄÍøÒ³µÄ·½Ê½°ÑÄǸö.swfÎļþ²åÈëµ½ÄãµÄasp.netÒ³Ãæ¾Í¿ÉÒÔÁË¡£
¼ÙÈçÄãµÄflex3ÏîÄ¿Ãû×Ö½ÐTestApp£¬×î¼òµ¥Ö±½ÓµÄ°ì·¨¾ÍÊÇ£¬
°Ñ"bin-debug"Ŀ¼Ïµģº
TestApp.html
TestApp.swf
AC_OETags.js ......

eclipse 3.4 ÅäÖà Flex 3.0 ²å¼þ

Ò»¡¢ÏÂÔØ eclpse 3.4
µØÖ·£ºhttp://archive.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/eclipse-SDK-3.4.2-win32.zip
Íê³Éºó£¬È¥ eclipse Àï¸üÐÂÈí¼þ£¬²Ëµ¥£º Help ---  Software Updates µã Ganymede Update Site £¬Ñ¡ÖÐ Java Development £¬´Ë¶¯×÷Ϊ°²×° eclipse 3.4 ÀïµÄ Web ¿ª·¢²å¼þ£»
¶þ¡¢Ï ......

Flexѧϰվµã

Ò»¡¢¹úÍâÕ¾µã
1.×ÊÔ´Àà
Adobe Flex 2 Component Explorer£º ¹Ù·½µÄ£¬Õ¹Ê¾Á˸÷ÖÖ×é¼þµÄÓ÷¨£¬ÈëÃűؿ´¡£
CFlex£ººÜºÃµÄÒ»¸öFlex×ÊÔ´Õ¾µã£¬°üÀ¨½Ì³Ì£¬ÐÂÎÅ£¬×ÊÔ´Õ¾µã…… Ö»ÊÇÒ³ÃæÓеãÔÓÂÒ£¬´ó¼ÒÒ»°ã¿´ÓÒ±ßÄÇÒ»À¸¾ÍÐÐÁË¡£
FlexBox£ºÒ»¸öÊÕ¼¯ÁËÍøÉϺܶ࿪Դ×é¼þµÄÕ¾µã£¬Êǽø½×ѧϰµÄºÃ°ïÊÖ¡£
FlexLib£ºÒ²ÊÇÒ» ......

flexǶÈëjspÖÐÓöµ½µÄÄÑÌ⣿

ÒѾ­×öºÃµÄÒ»¸öJ2EEÏîÄ¿£¬ÏëÓ¦ÓÃflexÖеÄͼ±í£¬ËùÒÔÏÖÔÚµÄÊ×ÒªÎÊÌâ¾ÍÊÇÈçºÎ°ÑflexǶÈëµ½jspÖУ¬°´ÕÕÍøÉϽéÉܵĽâ¾ö·½°¸×öÁ˸öС²âÊÔ£º
<%@ taglib uri="FlexTagLib" prefix="mm"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
  &nbs ......

FlexÖеĵ¼º½Æ÷

Ò»¸öµ¼º½ÈÝÆ÷¿É
ÒÔͨ¹ýÒ»×é×ÓÈÝÆ÷À´¼à¿ØÓû§µÄ²Ù×÷¡£±ÈÈ磬TabNavigator
Õâ¸öÈÝÆ÷¾Í¿ÉÒÔͨ¹ýÒ»×étabs
À´ÈÃÓû§Ñ¡Ôñ¿É¼ûµÄ×ÓÈÝÆ÷¡£Flex3
ÌṩÁËÈýÖÖÖ÷ÒªµÄµ¼º½ÈÝÆ÷£º
Ø      

ViewStack
Ø      

TabNavigator
Ø &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ