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

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 the current host name.
* example: http://www.flexpasta.com/?x=1&y=2 would return www.flexpasta.com
*/
public static function getHostName():String
{
return ExternalInterface.call("window.location.hostname.toString");
}

/**
* Returns the current protocol, such as http:, https:, etc
*
*/
public static function getProtocol():String
{
return ExternalInterface.call("window.location.protocol.toString");
}

/**
* Gets the current port for the url
*/
public static function getPort():String
{
return ExternalInterface.call("window.location.port.toString");
}

/**
* Gets the context following the base of the url
* Example http://www.flexpasta.com/test?x=1&y=2 would return /test
*/
public static function getContext():String
{
return ExternalInterface.call("window.location.pathname.toString");


Ïà¹ØÎĵµ£º

Flex AdvancedDataGridµÄʹÓã¬Ë­ÄܸæËßÎÒѽ£¿

×¢£ºµÚÒ»ÁÐÊÇ´øCheckboxµÄTree¡£
»¹ÓÐÎÊÌâÇë½Ì¸÷λ£º
   labelFieldÊÇÔªËضÔÏóµÄÊôÐÔÊÇÏÔʾ²»ÁË£¨carInfo.car_name£©£¬ºÃÏñÖ»¿ÉÏÔʾͬ¼¶µÄÊôÐÔÔõô½â¾ö£¿Ï£Íû¸÷λÄÜ°ïÖúÎÒ£¬Thanks!
 <mx:AdvancedDataGrid id="adg"  width="100%" height="100%" dataProvider="{instance.cars}"
  &n ......

flexÖжÁÈ¡±¾µØÎļþ[ͼÏñΪÀý]

¾­³£»áÉè¼ÆÒ»¸öÕâÑùµÄ¹¦ÄÜ£¬±ÈÈç¸ü¸Ä¸öÐÔÍ·Ïñ£¬Õâ¸ö¸öÐÔÍ·Ïñ×îÖÕÐèÒªÉÏ´«µ½·þÎñÆ÷µÄÎļþϵͳÖУ¬µ«ÊdzÌÐòÏ£ÍûÔÚÓû§Ñ¡ÔñºóÖ±½ÓÓиöÔ¤ÀÀ£¬È»ºóÓû§²Å½øÐÐÉÏ´«¡£Õâ¸ö¹¦Äܼ¼ÊõÉÏÆäʵ¾ÍÊÇÐèÒª¶Ô±¾µØµÄÎļþÄܽøÐжÁÈ¡¡£ÔÚflash player10ÖÐÓиöÀàFileReferenceµÄÀà¿ÉÒÔʵÏÖÕâ¸ö¹¦ÄÜ£¬¶øʵÏÖ¶ÔÎļþ¶ÁÈ¡µÄ½Ó¿ÚÊÇload( )º¯Êý£¬Òª×¢Òâ ......

[Flex]xmlÓëFlexͨÐŵÄÑо¿

Ñо¿E4XÓëFlexµÄ¹Øϵ£¬ËùÒÔ´òËã×ܽáһϣ¬ÓÐ˵µÄ²»¶ÔµÄµØ·½£¬»¹Çë´ó¼Ò¶à¶àÔ­Á¡£
Ò»¡¢×î¼òµ¥Ä£Ê½£ºFlexͨ¹ýhttpserviceºÍdataProvider½øÐÐÊý¾Ý´«Êä
Xml¸ñʽÈçÏ£º
<?xml version="1.0" encoding="utf-8" ?>
<Result>
<NodeA>value1</NodeA>
<NodeB>valve2</NodeB>
…&he ......

Flex¶àSWFÎļþ¼ÓÔØÖ®Applicatoin Domain

¸ÅÒª
µ±ÎÒÃǼÓÔØÍⲿswfʱ£¬±ØÐëÒªÁ˽âÓ¦ÓóÌÐòÓò(Application Domain)¡£´ÓAdobe¹Ù·½ÎļþÖУ¬ÎÒÃÇ¿ÉÒÔµÃÖªÓ¦ÓóÌÐòÓòÄܹ»°Ñ´¦ÓÚͬһ¸ö°²È«Óò(Security Domain)ÖеÄÀà·ÖÀ뿪£¬ÕâÑù¾Í¿ÉÒÔÈÃÒ»¸öÀàµÄ¶à¸ö¶¨Òå¹²´æ£¬»òÊÇÈöà¸ö×ÓÓ¦ÓÃÀ´¹²Ïí¸¸Ó¦ÓõÄÀඨÒå¡£¼òµ¥µãÀí½â¾ÍÊÇÓ¦ÓóÌÐòÓòΪÀඨÒåÌṩÁË·ÖÇø¹¦ÄÜ¡£
Ó¦ÓóÌÐòÓò
Ò»¸ ......

Flex 4 SDK ÐÂÌØÐԽ̳ÌϵÁÐ – Flex 4¸ÅÊö

ÕâÊÇFlex 4 SDK ÐÂÌØÐԽ̳ÌϵÁеĵÚ2Õ¡£±¾Õ¸ÅÊöÁËFlex 4µÄÉè¼ÆÄ¿±ê¼°ºËÐÄÌØÐÔ£¬²¢½éÉÜһЩÏà¹ØµÄѧϰ×ÊÔ´¡£
Flex 4¸ÅÊö
×ݹÛFlexµÄ·¢Õ¹Ê·£¬¿ÉÒÔ˵ÊÇÒ»¸ö“ÓÉ·â±Õ¿ª·Å£¬ÓÉÉÌÒµ»¯µ½ÉçÇø»¯”µÄ½ø³Ì¡£ÔçÔÚ2004ÄêMacromediaÍƳöFlex 1.0(׼ȷµÄ˵Ӧ¸ÃÊÇFlex Server 1.0)ʱ£¬ÔÚ´ó¶àÊý¿ª·¢ÕßµÄÑÛÖУ¬FlexÊÇÉñÃØÇҸ߲ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ