Flex Accordion headerRendererʵÏÖchildÊÕËõ
ÓÃAccordion×é¼þµÄʱºò·¢ÏÖ,childÕ¹¿ªÖ®ºóÔÙµã»÷µÄʱºòûÓÐÏàÓ¦.
È»ºóϰ¹ßÐÔµÄGoogle·¢ÏÖ½â¾ö·½·¨´óÖÂÊÇ×Ô¶¨ÒåÒ»¸ö×é¼þ...
¸Ð¾õΪÁËÒ»¸öС¹¦ÄÜÖØÐ´Óеã ɱ¼¦ÓÃÅ£µ¶µÄ¸Ð¾õ.
ÓÚÊÇ×ÐϸÏëÁËÏÂ,·¢ÏÖÆäʵֻÐèÒªÖ¸¶¨headerµÄitemRenderer¼´¿É:
ÉÏ´úÂë headerRenderer="com.MyAccHeader"
MyAccHeader:
package com
{
import flash.events.MouseEvent;
import mx.controls.Alert;
import mx.containers.Accordion;
import mx.containers.accordionClasses.AccordionHeader;
public class MyAccHeader extends AccordionHeader
{
public function MyAccHeader()
{
super();
this.addEventListener(MouseEvent.CLICK,fun);
}
private function fun(evt:MouseEvent):void
{
(this.parent as Accordion).selectedIndex = (this.parent as Accordion).selectedIndex+1;
}
}
}
Ïà¹ØÎĵµ£º
ÕâÊÇFlex 4 SDK ÐÂÌØÐԽ̳ÌϵÁеĵÚ3Õ¡£±¾Õ½éÉÜÁËFlex 4ÒýÈëµÄMXML 2009ÃüÃû¿Õ¼äÒÔ¼°Flex×é¼þÓëÃüÃû¿Õ¼äÓ³ÉäµÄ»úÖÆ¡£
Flex 3µÄÃüÃû¿Õ¼ä
Flex 3¶¨ÒåÁËΨһµÄMXMLÃüÃû¿Õ¼ä£¬¼´MXML 2006¡£ÔÚFlex Builder 3ÖÐÉùÃ÷MXML 2006ÃüÃû¿Õ¼äµÄĬÈϸñʽÈçÏ£º
xmlns:mx="http://www.adobe.com/2006/mxml"
ÖµµÃ×¢ÒâµÄÊÇ£¬ºÜ¶à³õѧÕß ......
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical">
<mx:Script>
<![CDATA[
import mx.controls.dataGridClasses.DataGridListData;
imp ......
½ñÌìÏÂÎç·¢ÏÖÒ»¸ö¹ØÓÚFlex SDK 3.5.0ÖÐComboBoxµÄbug£¬»¹ÕæÊÇ·ÑÁ˲»ÉÙʱ¼ä¡£ÒòΪÎÒ»¹ÊÇÍ·Ò»´Î·¢ÏÖ×Ô¼º½â¾ö²»Á˵ÄÎÊÌ⣬ÓÐÒ»ÖÖ¿ÉÄÜÊÇÆ½Ì¨»ò¿ò¼ÜµÄÎÊÌâ¡£ÌØ´Ë¼Ç¼¡£
ÎÊÌâÃèÊö£º×öÁËÒ»¸ö¹ØÓÚComboBoxµÄ¶þ¼¶Áª¶¯£¬Ò»Ö±¾Í´æÔÚÎÊÌ⣬ÓÉÓÚ֮ǰÖ÷Ì幦ÄÜûÓÐÍê³É£¬Ò²Ã»Ï¸ÐÄÏÂÀ´ÅŲ顣ÔÚÒ»¼¶ÏÂÀÑ¡Ôñºó£¬ÔÚ¶þ¼¶ÖеÄArrayCollection»ò ......
1£¬½¨Ò»¸öuserdb¿â£¬ÔÙ½¨userinfo±í£¬×ֶΣºid(int),username(varchar),password(varchar)¡£
2£¬DBConnection.java
package com.datainfo;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQ ......
Flex Builder 3 Õýʽ°æ£¬·¢²¼ÓÚÖйúʱ¼ä 2008 Äê 2 Ô 25 ÈÕ£»
ÏÂÔØµØÖ·Ò»£º
http://download.macromedia.com/pub/flex/flex_builder/FB3_win.exe
´óС£º 424 MB £»Î´½øÐÐѹËõµÄ Flex Builder 3 °²×°Îļþ
²»ÓÃ×¢²áµÇ¼£¬¿ÉÒÔÖ±½ÓÏÂÔØ¡£
ÏÂÔØµØÖ·¶þ£º
http://trials.adobe.com/Applications/.../FB3_WWEJ.exe
´óС£º¡ ......