Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : flex

½â¾öFlex+amfphp+MySQLÖÐÎÄÂÒÂëµÄ·½·¨


Ê×ÏÈ£ºÈ·¶¨Êý¾Ý¿âµÄ±àÂëΪutf8£¬Õý³£´¢´æÖÐÎÄ£¨ÓÃMySQL-Front²é¿´ÖÐÎÄÊÇ·ñÕý³££©
È»ºó£ºServices²éѯMySQLʱʹÓÃ"SET NAMES 'utf8'"£¬ÇÒͨ¹ý"amfphp/browser"ÔËÐп´¿´ÊÇ·ñÖÐÎÄ£¬Èç¹ûÂÒÂëÔòÐÞ¸Ägateway.phpÎļþ£¬È¥µô $gateway->setCharsetHandler("utf8_decode", "ISO-8859-1", "ISO-8859-1");
×îºó£ºÔËÐÐFlex³ÌÐòÏÔʾÖÐÎÄ
......

½â¾öFlex+amfphp+MySQLÖÐÎÄÂÒÂëµÄ·½·¨


Ê×ÏÈ£ºÈ·¶¨Êý¾Ý¿âµÄ±àÂëΪutf8£¬Õý³£´¢´æÖÐÎÄ£¨ÓÃMySQL-Front²é¿´ÖÐÎÄÊÇ·ñÕý³££©
È»ºó£ºServices²éѯMySQLʱʹÓÃ"SET NAMES 'utf8'"£¬ÇÒͨ¹ý"amfphp/browser"ÔËÐп´¿´ÊÇ·ñÖÐÎÄ£¬Èç¹ûÂÒÂëÔòÐÞ¸Ägateway.phpÎļþ£¬È¥µô $gateway->setCharsetHandler("utf8_decode", "ISO-8859-1", "ISO-8859-1");
×îºó£ºÔËÐÐFlex³ÌÐòÏÔʾÖÐÎÄ
......

¹ØÓÚFLEXÖеÄÒþ²Ø·½·¨£¨mx_internal£©


±¾Ìû×îºóÓÉ flashyiyi ÓÚ 2009-2-22 23:18 ±à¼­
×îÖÕÎÒ¾ö¶¨»¹ÊÇÓÓÒþ²Ø”Õâ¸ö²»ÊǺܺÏÊʵĴʡ£mx_internalÊÇÒ»¸ö×Ô¶¨ÒåÃüÃû¿Õ¼ä£¬ÖÁÓÚ“ÃüÃû¿Õ¼ä”µ½µ×ÊÇʲô¾Í²»ÔÚÕâÀï˵ÁË¡£×ÜÖ®£¬µ±ÎÒÃÇÔÚ´úÂëÍ·²¿Ð´ÉÏ£º
use namespace mx_internal
£¨Èç¹ûÊÇ.ASÎļþ£¬ÐèÒªÊÖ¶¯import mx.core.mx_internal£¬×¢ÒâÕâ¸ö²»»áÓдúÂëÌáʾ£©
ÄÇôËùÓÐÒÔmx_internalΪÃüÃû¿Õ¼äµÄ·½·¨¾Í»á³ÉΪºÍpublicÒ»ÑùµÄ·½·¨£¬Ò²¿ÉÒÔÔÚ´úÂëÌáʾÖÐÕý³£µØÁгö£¨»á±»±ê¼ÇΪ»ÆÉ«£©¡£
ÏÂÃæÁоټ¸¸ömx_internal·½·¨
contentPane
ËùÓеÄUIÈÝÆ÷¶¼»áÓÐÕâÑùÒ»¸öÊôÐÔ£¬ËûµÄ×÷ÓÃÊÇÔÚÔ­ÓеÄÈÝÆ÷ÀïÔÙÌ×ÉÏÒ»¸ö×ÓÈÝÆ÷£¬·½±ã·ÅÖÃÄÚÈÝ¡£µ«Òª×¢Ò⣬contentPane²»Ò»¶¨ÓÐÖµ£¬Ä³Ð©Ê±ºò¾ÍÊÇÖ±½Ó·ÅÔÚÔ­À´µÄÈÝÆ÷Àï¡££¨¾ßÌåµÄÎÒ¾Íû¿´ÁË£©
ÓÉÓÚÓÐÕâÑùÒ»¸ö¶«Î÷£¬¶øÕâ¸ö¶«Î÷µÄmouseEnabledĬÈÏΪtrue£¬ËùÒÔ£¬µ±Ä㽫CanvasºÍCanvasÀïµÄ×é¼þmouseEnabledÉèÖÃΪfalseºó£¬»á·¢ÏÖCanvasÀïµÄ×é¼þ»¹ÊÇ»áÕÚµ²ÏÂÃæµÄÊó±êʼþ¡£Õâ¾ÍÊÇÒòΪÔÚCanvasºÍ×é¼þÖ®¼ä¸ôÁËÒ»²ãÒÀÈ»¿ÉÒÔ´¥·¢Êó±êʼþµÄcontentPane¡£
Òò´Ë£¬Ö»ÒªÉèÖÃCanvasµÄcontentPane.mouseEnalbed=false¼´¿É
$addChild
ÖÚËùÖÜÖª£¬Canvas,ApplicationÈÝÆ÷ÊDz»Ä ......

Flex¶ÁÈ¡ä¯ÀÀÆ÷²ÎÊý

Õâ¸öÀàÌṩµÄ¹¦ÄÜÓУº
´Óä¯ÀÀÆ÷ÖлñÈ¡ÍêÕûµÄURL
Ö÷»úÃû
µ±Ç°ËùʹÓõÄЭÒé
¶Ë¿Ú
Ö÷ÓòÃûºóÃæµÄ·¾¶
²ÎÊýÖµ
Ô­ÎĵØÖ·£ºhttp://www.flexpasta.com/index.php/2008/03/15/getting-url-parameters-host-name-port-in-flex-actionscript/
package com.flexpasta.utils
{
import flash.external.ExternalInterface;
import mx.core.Application;
import mx.collections.ArrayCollection;
import mx.controls.Alert;


public class HTTPUtil
{
//--------------------------------------------------------------------------
//
// Constructor
//
//--------------------------------------------------------------------------
/**
* @private
*/
public function HTTPUtil()
{
super();
}

/**
* Returns the current url that the swf player lives in
*
*/
public static function getUrl():String
{
return ExternalInterface.call("window.location.href.toString");
}

/**
* Returns ......

FlexÖеÄLabelʵÏÖÊó±êÊÖÐͼ°Ï»®Ïß

<?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;
   import mx.controls.Alert;
   import mx.collections.ArrayCollection;
   [Bindable]
   private var myData:ArrayCollection = new ArrayCollection([{userName:"Gasol",country:"Î÷°àÑÀ"},
                   {userName:"Nashi",country:"°Ä´óÀûÑÇ"},
                   {userName:"Yaoming",country:"Öйú"}]);
   
   internal function test(event:MouseEvent):void {
    Alert.show("internal click!"+event.target.data);
  &nb ......

flex tree ĬÈÏÕ¹¿ª


ÕâÀï·ÖÁ½ÖÖÇé¿ö£¬Ò»ÖÖÊÇÊý¾ÝÔ´ÔÚMXMLÎļþÖУ¬È磺
<mx:XML id="treeXML"
format="e4x">
        <root>
            <node label="֪ͨͨ¸æ¹ÜÀí"
data="0">
                <node label="É걨֪ͨ" data="1"
/>
                <node label="Ìî±íÐëÖª" data="1" />
               
<node label="É걨ָÄÏ" data="1" />
                <node label="Á¢Ïîͨ¸æ"
data="1" />
                <node label="ÆäËü֪ͨͨ¸æ" data="1"
/>
           ......

¹ØÓÚFlex SDK 3.5.0 ÖÐComboBox¶þ¼¶Áª¶¯ÎÊÌâ

½ñÌìÏÂÎç·¢ÏÖÒ»¸ö¹ØÓÚFlex SDK 3.5.0ÖÐComboBoxµÄbug£¬»¹ÕæÊÇ·ÑÁ˲»ÉÙʱ¼ä¡£ÒòΪÎÒ»¹ÊÇÍ·Ò»´Î·¢ÏÖ×Ô¼º½â¾ö²»Á˵ÄÎÊÌ⣬ÓÐÒ»ÖÖ¿ÉÄÜÊÇƽ̨»ò¿ò¼ÜµÄÎÊÌâ¡£Ìش˼Ǽ¡£
ÎÊÌâÃèÊö£º×öÁËÒ»¸ö¹ØÓÚComboBoxµÄ¶þ¼¶Áª¶¯£¬Ò»Ö±¾Í´æÔÚÎÊÌ⣬ÓÉÓÚ֮ǰÖ÷Ì幦ÄÜûÓÐÍê³É£¬Ò²Ã»Ï¸ÐÄÏÂÀ´ÅŲ顣ÔÚÒ»¼¶ÏÂÀ­Ñ¡Ôñºó£¬ÔÚ¶þ¼¶ÖеÄArrayCollection»òArray×÷Ϊdataproviderʱ£¬ÓпÉÄܸñʽ³öÎÊÌ⣬»ò²»ÄܱéÀúËùÓÐÄÚÈÝ£¬Ö»³öÏÖµÚÒ»ÌõÑ¡Ôñ¡£
ÅŲ飺ÓÉÓÚÎÒÕâ¸öÇ°¶Ë³ÌÐò£¬µ½ºǫ́ÁªÏµÖ®¼ä»¹ÓÐÒ»¸ö´úÀí³ÌÐò£¬ËùÒÔÒ»Ö±ÔÚÅŲéÊÇ·ñÊÇ×Ô¼º³ÌÐòµÄÎÊÌ⣬»òÕßÊÇ´úÀí³ÌÐòµÄÎÊÌâ¡£¶ÔArrayCollectionºÍArrayÊý¾Ý¸ú×ÙÁË°ëÌ죬ûÓз¢ÏÖÒì³£¡£¡£
½â¾ö£ºGoogleÊǸöºÃ¶«Î÷£¬ÎÒËÑË÷µ½ÓÐÈË·´Ó³Flex SDK 3.5 ComboBoxµÄBug£¬ÓÚÊǺõ¡£¡£¡£Ïëµ½ÎÒ֮ǰװ¹ý¶à¸ö°æ±¾µÄSDK£¬ÎÒ¸ü»»SDKµ½3.2ÎÞÐĵÄÊÔÁËһϣ¬ÎÊÌâ½â¾ö£¬¸ãÁË°ëÌ죬²»ÊÇ×Ô¼ºµÄÎÊÌâ¡£¡£¡£ ......
×ܼǼÊý:792; ×ÜÒ³Êý:132; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [8] [9] [10] [11] 12 [13] [14] [15] [16] [17]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ