Flash Work Book


¿ÀÈÄ 9:03 2004-12-25
¹¹°¡ ÀÌ·¸°Ô º¹ÀâÇϳÄ..
// ¿©±â¼­ºÎÅÍ ÇÊ¿äÇÑ ÄÚµå 
var kioskdata = _global.kioskdata; 
var wsc = kioskdata.wsc; 
 
// Å×½ºÆ® ÄÚµå 
kioskdata.GetServiceStatus(); 
kioskdata.WebServiceResultCallBack(                           
        function() 
        { 
                switch(kioskdata.GetWebServiceCallStatus()) 
                { 
                        // ¾ÆÁ÷ ÁøÇàÁß 
                        case 'Progress': 
                                break; 
                        // À¥¼­ºñ½º ÀÀ´ä ¾øÀ½ 
                        case 'ConnectionFail': 
                                trace('server down'); 
                                break; 
                        // °á°ú ¹ÞÀ½ 
                        case 'Stop': 
                                trace('results:' + kioskdata.WebServiceResults); 
                                break; 
                } 
        } 
); 

°ªÀ» °¡Á®¿À´Â ÄÚµå´Â À§Ã³·³ ÁÙ¿©³õ±ä Çߴµ¥, ´öºÐ¿¡ ó¸®ÇÏ´Â Äڵ尡 ¿­¶ó ¸¹¾ÆÁ³´Ù.

// À¥ ¼­ºñ½º °ü·Ã ÀÎÀÚ 
public var wsc; 
private var wsc_callback_interval; 
public var WebServiceCallStatus:String = 'Stop'; 
public var WebServiceResults:String = ''; 
 
// wsc(À¥¼­ºñ½ºÄ¿³ØÅÍ)ÀÇ status À̺¥Æ®¿¡ È£ÃâµÊ 
public function WebServiceOnStatus(code) 
{ 
        // ¿¬°á ÀÚü°¡ ºÒ°¡´É! 
        if(code =='WebServiceFault') 
        { 
                WebServiceCallStatus = 'ConnectionFail'; 
        } 
        trace('WebServiceOnStatus:' + code); 
} 
 
// wscÀÇ result À̺¥Æ®¿¡ È£ÃâµÊ 
public function WebServiceOnResult(results) 
{ 
        WebServiceCallStatus = 'Stop'; 
        WebServiceResults = results; 
        trace('WebServiceOnResult:' + results); 
} 
 
// À¥¼­ºñ½ºÀÇ ÇöÀç »óŸ¦ üũ 
// È£ÃâÀÌ Ã³¸®µÇ°í ÀÖ´Â °æ¿ì ProgressÀÌ°í, 
// ±× ÀÌ¿ÜÀÇ °æ¿ì¿£ wsc_callback_intervalÀ» Ŭ¸®¾îÇؼ­ È£ÃâÀ» ¸ØÃá´Ù. 
public function GetWebServiceCallStatus() 
{ 
        switch(WebServiceCallStatus) 
        { 
                // À¥¼­ºñ½º ÀÀ´ä ¾øÀ½ 
                case 'ConnectionFail': 
                // °á°ú ¹ÞÀ½ 
                case 'Stop': 
                        clearInterval(wsc_callback_interval); 
                        wsc_callback_interval = undefined; 
                        break; 
        } 
        return WebServiceCallStatus; 
} 
 
// ÄݹéÇÔ¼ö ½ÇÇà ´ë¸®ÇÔ¼ö 
public function WebServiceResultCallBack(callbackfn) 
{ 
        if(undefined==wsc_callback_interval) 
                wsc_callback_interval = setInterval(callbackfn, 100); 
} 
 
// À¥ ¼­ºñ½º È£Ãâ 
private function CallWebService(op, param) 
{ 
        if(WebServiceCallStatus == 'Progress') 
        { 
                trace('CallWebService fail - it is progress'); 
                return; 
        } 
        WebServiceCallStatus = 'Progress'; 
        wsc.operation = op; 
        wsc.params = param; 
        wsc.trigger(); 
} 

ÀÌ°Å ³­¸®µµ ¾Æ´Ï±¸¸¸..

¿ÀÈÄ 4:21 2004-12-24
_root.onLoad(); ¾ÈµÇ´Â Çö»ó ÀÎÁöÇÒ °Í
µÇµµ·ÏÀ̸é onClipEvent
?()¸¦ »ç¿ëÇÏ°í, Äݹé ÇüÅ·Πµî·ÏÇÏ´Â _root.onLoad = function () {...} ÇüÅÂÀÇ ÇÔ¼ö´Â »ç¿ëÀ» ÀÚÁ¦.
µð¹ö±× ¸ðµå(ctrl + shift + enter)¿¡¼­ ÀÛµ¿ÇÏ´ÂÁö È®ÀÎÇÏ´Â ½À°üÀ» µéÀÌÀÚ.

¿ÀÈÄ 3:31 2004-11-11
Macromedia - Flash Flash MX 2004 Documentation
http://www.macromedia.com/support/documentation/en/flash/

¿ÀÈÄ 5:39 2004-11-08
C#¾îÇø®ÄÉÀ̼ǿ¡¼­Ç÷¡½Ã¿ÀºêÁ§Æ®»ç¿ëÇϱâ UsingFlashObjectInC#Application

WorkBook ÇÁ·Î±×·¡¹ÖºÐ·ù