Module之間的通信交互解決辦法
看看以下的代碼,有點(diǎn)意思
1.子Swf的Code,SampleChildren.mxml
























2.主swf的Code, SampleParent.mxml












































注意到SampleParent.mxml文件中SampleChildren類的使用了么,原來(lái)mxml文件也是對(duì)應(yīng)一個(gè)同名的actionscript class的,這個(gè)class是從Application派生的。但是要注意哦,SampleParent.mxml編譯時(shí)必須能夠看到SampleChildren類的Source。
posted on 2008-01-04 12:27 雁過(guò)無(wú)痕 閱讀(505) 評(píng)論(0) 編輯 收藏