Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ÖжÁÈ¡±¾µØÎļþ[ͼÏñΪÀý]

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

flex socket .netµÄÁ´½Ó

http://www.cnblogs.com/beniao/archive/2009/01/12/1373921.html
ÎÞ·¨ÔËÐÐÈçÉϲ©¿ÍµÄ´úÂ룬ÓÚÊÇ×Ô¼ºµ½ÍøÉÏÕÒ×ÊÁÏ
·¢ÏÖÔÚhttp://hi.baidu.com/littlelaa/blog/item/bdea73f2382289a6a50f5241.html
¹Ø¼üÊÇC#ÖÐREADLINEÕâ¸ö·½·¨ÎÞ·¨ÔÚÈýÃëÄÚ¶ÁÈ¡£¬ÒòΪ½áβûÓÐ/N /RµÈ×Ö·û¡£
C#¶Ë
using System;
using System.Net.Socke ......

flexÖÐlistµÄÀûÓÃ

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
       width="550" height="400">
       
    <mx:Script>
        <![CDATA[
&n ......

¹ØÓÚflash/flexµÄ³ÌÐòÓò

subject of application domain of flash and air.
ÔÚflash»òflexÖУ¬³ÌÐò¼ÓÔØÍⲿswfÎļþ£¬¸ÃÎļþµÄ³ÌÐòÓòĬÈÏΪÖ÷³Ì ÐòÓòµÄÒ»¸ö×ÓÓòÖС£±ÈÈçÄãʹÓÃA.swf¼ÓÔØB.swfÎļþ£¬B±»¼ÓÔØºó£¬³ÉΪA³ÌÐòÓòµÄÒ»¸ö×ÓÓò£¬×ÓÓòÊÇÉêÃ÷ÀàµÄʱ£¬²»Äܸ²¸Ç¸¸ÀàÒÑÉêÃ÷ÀࣺÈç¹ûAÖж¨ ÒåÁËÀàcom.sogou.MapÀ࣬ͬʱBÖÐÒ²¶¨ÒåÁËcom.sogou.MapÀ࣬µ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ