• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            S.l.e!ep.¢%

            像打了激速一樣,以四倍的速度運(yùn)轉(zhuǎn),開心的工作
            簡單、開放、平等的公司文化;尊重個性、自由與個人價值;
            posts - 1098, comments - 335, trackbacks - 0, articles - 1
              C++博客 :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

            c++ & flash 通信

            Posted on 2008-12-08 09:34 S.l.e!ep.¢% 閱讀(850) 評論(1)  編輯 收藏 引用 所屬分類: VC
            #### c++ to flash calls:
            TRY
            {
            	CString ret = m_FlashPlayer.CallFunction("<invoke name=\"FlashFunction\" returntype=\"xml\"><arguments><string> empty ?</string></arguments></invoke>");
            	//AfxMessageBox(ret);
            }
            CATCH(COleDispatchException, ex)
            {
            	TCHAR   szCause[255];
            	CString strFormatted;
            
            	ex->GetErrorMessage(szCause, 255);
            	strFormatted = "The program exited because of this error: ";
            	strFormatted += szCause;
            	AfxMessageBox(strFormatted);
            }
            END_CATCH
            
            
            
            in Actionscrīpt now :?
            import flash.external.*;
            
            ExternalInterface.addCallback("FlashFunction", this, InternalFlashFunction);
            
            function InternalFlashFunction(str: String): String 
            {
               play();
               return"You can return a string...";
            }
            
            
            

            #### flash to c++ calls:

            BEGIN_EVENTSINK_MAP(CFlashPlayerDlg, CDialog)
                //{{AFX_EVENTSINK_MAP(CFlashPlayerDlg)
            	ON_EVENT(CFlashPlayerDlg, IDC_SHOCKWAVEFLASH1, 150/* FSCommand */, OnFSCommand, VTS_BSTR VTS_BSTR)
            	ON_EVENT(CFlashPlayerDlg, IDC_SHOCKWAVEFLASH1, 197/* FlashCall */, OnFlashCall, VTS_BSTR)
            	//}}AFX_EVENTSINK_MAP
            END_EVENTSINK_MAP()
            
            
            void CFlashPlayerDlg::OnFSCommand(LPCTSTR command, LPCTSTR args) 
            {
            	AfxMessageBox(command);
            }
            
            void CFlashPlayerDlg::OnFlashCall(LPCTSTR request) 
            {
            	AfxMessageBox(request);
            }
            
            
            
            


            in Actionscrīpt :
            fscommand("ChangeText", textInput_txt.text); // for fscommand// or
            
            flash.external.ExternalInterface.call("GetContacts"); // flash call

            Feedback

            # re: c++ & flash 通信  回復(fù)  更多評論   

            2008-12-08 11:42 by RichardHe
            有意思!好好研究下!
            欧美日韩精品久久久免费观看| 99久久久国产精品免费无卡顿 | 色综合久久久久无码专区| 免费精品久久天干天干| 精品午夜久久福利大片| 久久狠狠一本精品综合网| 国产色综合久久无码有码| 国产亚州精品女人久久久久久| 久久天天躁夜夜躁狠狠| 久久久久18| 91精品国产乱码久久久久久| 2021国内精品久久久久久影院| 国产精品无码久久综合网| 亚洲AV无码久久精品色欲| 久久国产成人精品国产成人亚洲| 久久久久久人妻无码| 一级a性色生活片久久无少妇一级婬片免费放| 77777亚洲午夜久久多喷| 久久se精品一区二区影院| 国产精品久久久亚洲| 人妻无码久久一区二区三区免费 | 久久狠狠爱亚洲综合影院 | 日本三级久久网| 99久久99久久精品免费看蜜桃| 婷婷久久五月天| 欧美久久一区二区三区| 久久丝袜精品中文字幕| 久久国产V一级毛多内射| 久久久久99精品成人片三人毛片| 99麻豆久久久国产精品免费| 亚洲AV无一区二区三区久久| 天堂久久天堂AV色综合| 久久婷婷五月综合色高清| 人妻无码αv中文字幕久久| 久久不见久久见免费视频7| 亚洲愉拍99热成人精品热久久| 无码久久精品国产亚洲Av影片| 一本色道久久88精品综合| 久久久精品人妻一区二区三区蜜桃| 亚洲精品国精品久久99热一| 久久精品国产亚洲av影院|