SWFÖ®¼äͨÐÅ¡¢FlexÓëSWFÖ®¼äͨÐÅ¡¢C#ÓëSWFÖ®¼äͨÐÅ
SWFÖ®¼äͨÐÅ¡¢FlexÓëSWFÖ®¼äͨÐÅ¡¢C#ÓëSWFÖ®¼äͨÐÅ
Ò»¡¢SWFÖ®¼äͨÐÅ£¨¸÷SWFÎļþ¾ùûÓаüº¬¹Øϵ——·ÇÄÚ²¿Ç¶Èë¼ÓÔØ£¬¾ù¶ÀÁ¢£©
ʹÓà LocalConnection Àà¿ÉÒÔ´´½¨Ò»¸ö LocalConnection ¶ÔÏ󣬸öÔÏó¿ÉÔÚÒ»¸ö SWF ÎļþÖлò¶à¸ö SWF Îļþ¼ä£¬µ÷ÓÃÁíÒ»¸ö LocalConnection ¶ÔÏóÖеķ½·¨¡£ ͨ¹ý±¾µØÁ¬½Ó£¬¿ÉÒÔÔÚ SWF ÎļþÖ®¼ä½øÐÐÕâÖÖͨÐÅ£¬¶ø²»ÓÃʹÓà fscommand() »ò JavaScript¡£ LocalConnection ¶ÔÏóÖ»ÄÜÔÚÔËÐÐÓÚͬһ̨¿Í»§¶Ë¼ÆËã»úÉ쵀 SWF ÎļþÖ®¼ä½øÐÐͨÐÅ£¬µ«ÕâЩ SWF Îļþ¿ÉÒÔÔÚ²»Í¬µÄÓ¦ÓóÌÐòÖÐÔËÐС£ÀýÈ磬һ¸ö SWF ÎļþÔÚä¯ÀÀÆ÷ÖÐÔËÐУ¬¶øÁíÒ»¸ö SWF ÎļþÔÚ·ÅÓ³ÎļþÓ¦ÓóÌÐòÖÐÔËÐС£
ActionScript 3.0 Öд´½¨µÄ LocalConnection ¶ÔÏó¿ÉÒÔÓë ActionScript 1.0 »ò 2.0 Öд´½¨µÄ LocalConnection ¶ÔÏóͨÐÅ¡£·´Ö®ÒàÈ»£ºActionScript 1.0 »ò 2.0 Öд´½¨µÄ LocalConnection ¶ÔÏó¿ÉÒÔÓë ActionScript 3.0 Öд´½¨µÄ LocalConnection ¶ÔÏóͨÐÅ¡£Flash Player ¿É×Ô¶¯´¦Àí²»Í¬°æ±¾ LocalConnection ¶ÔÏó¼äµÄͨÐÅ¡£
// Code in LocalConnectionSenderExample.as
package {
import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.net.LocalConnection;
import flash.text.TextField;
import flash.text.TextFieldType;
import flash.events.StatusEvent;
import flash.text.TextFieldAutoSize;
public class LocalConnectionSenderExample extends Sprite {
private var conn:LocalConnection;
// UI elements
private var messageLabel:TextField;
private var message:TextField;
private var sendBtn:Sprite;
public function LocalConnectionSenderExample() {
buildUI();
sendBtn.addEventListener(MouseEvent
Ïà¹ØÎĵµ£º
firefoxϵ±flashÉèÖòÎÊý wmode Ϊ transparent »òÕß Opaque ʱºòÎı¾¿òÖÐÊäÈëÖÐÎÄ»á³öÏÖÎÊÌâ¡£
µÍ°æ±¾µÄfirefoxÖÐÎÞ·¨ÊäÈëÖÐÎÄ£¬¸ß°æ±¾ÖÐÔò³öÏÖÂÒÂë¡£
ÂÒÂëÓëflashºÍÒ³Ãæ±àÂ뷽ʽ¶¼Ã»ÓйØϵ£¬ÊÇfirefoxµÄbugÔì³ÉµÄ¡£
½â¾ö·½·¨Ö»ÓÐʹÓÃwmodeµÄĬÈÏÖµ£¬µ«ÊÇÕâÑùʹµÃflashÔÚÕû¸öÒ³ÃæµÄ×îÉϲ㣬divµÈ¶¼»á±»ÆäÕÚµ²×¡¡£
¼Ç ......
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("/*\n------Êä³ö½á¹û------------");
getSplit("ABCDEFG"); ......
ÔÚsqlÓï¾äÖÐÉæ¼°µ½Ê±¼äÀàÐÍʱ ÈôÖ»ÏëÒªÈÕÆÚ to_date('2007-7-8','yyyy-mm-dd')
ÔÚC#ÖÐÓÐdatetimeÀàÐÍ£¬´úÂë˵Ã÷Ò»ÇÐ
DateTime dt = System.DateTime.Now;
string lsh;
lsh=string.Format("{0:yyyyMMddHHmmss}", dt);
DateTime dt = DateTime.Now;
Label1.Text = dt.To ......