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
Ïà¹ØÎĵµ£º
flash.util.TimerÀà
flash.util.TimerÀàÔÊÐíͨ¹ýÌí¼Óʱ¼äʼþ»òÑÓʱÀ´µ÷Ó÷½·¨¡£Í¨¹ýTimer¹¹ÔìÆ÷´´½¨ÊµÀý¶ÔÏ󣬴«µÝÒ»¸öºÁÃëÊý×Ö×÷Ϊ¹¹Ôì²ÎÊý×÷Ϊ¼ä¸ôʱ
¼ä£¬ÏÂÃæµÄÀý×ÓʵÀý»¯Ò»¸öTimer¶ÔÏóÿ¸ö1ÃëÖÓ·¢³öʼþÐźţº
var timer.Timer = new Timer(1000);
......
Ò»¡¢ÏÂÔØ 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 ¿ª·¢²å¼þ£»
¶þ¡¢Ï ......
×ªÔØ×Ô http://amberoracle.blog.163.com/blog/static/10598633820097262242474/
µÚÒ»²½£ºÐ´ASÀà¼Ì³Ðmx.validators.Validator ,²¢µ¼Èëmx.validators.ValidationResult.
valueÖдæ·ÅÐèÒªÑéÖ¤µÄÄÚÈÝ
resultsÊý×éÖдæ·ÅÑéÖ¤ºóµÄ½á¹û£¬Èç¹ûͨ¹ýÑéÖ¤£¬Êý¾ÝΪ¿Õ£»Èç¹ûÑé֤ʧ°Ü£¬Êý×éÖÐÊÇValidationResult.¶ÔÏó£¬ÄÚº¬Ê§°Ü ......
Ò»¸öµ¼º½ÈÝÆ÷¿É
ÒÔͨ¹ýÒ»×é×ÓÈÝÆ÷À´¼à¿ØÓû§µÄ²Ù×÷¡£±ÈÈ磬TabNavigator
Õâ¸öÈÝÆ÷¾Í¿ÉÒÔͨ¹ýÒ»×étabs
À´ÈÃÓû§Ñ¡Ôñ¿É¼ûµÄ×ÓÈÝÆ÷¡£Flex3
ÌṩÁËÈýÖÖÖ÷ÒªµÄµ¼º½ÈÝÆ÷£º
Ø
ViewStack
Ø
TabNavigator
Ø &nbs ......
Hey,buddy! How are you doing these days?All right,Let us straight to the point.
flexǶÈë×ÖÌåÓÐÁ½ÖÖ·½Ê½£º
·½Ê½1£¬Ö±½ÓǶÈ룺
[Embed(mimeType='application/x-font', source='font/minicartoon.ttf', fontName='ÃÔÄã¼ò¿¨Í¨')]
private var mnCartonFont:Class;
&nbs ......