2010-02-26 50 views
1

有沒有辦法?Google Adsense in Flash

我知道它不可能將JavaScript代碼複製並粘貼到Flash中,因爲Flash不會對它做任何事情(或導致錯誤)。

但我知道Google Adsense代碼會生成一個顯示廣告的iFrame。所以我想如果我要抓住iFrame源(src屬性)並將該頁面加載到Flash中......也許?

所以我想我的問題是可以讓Flash加載一個HTML頁面?

我知道有Mochi廣告,但我想獲得的$ :)

回答

2

多一點點%,這將有一個文本框做到這一點,將其設置爲動態。然後在屬性中單擊將文本渲染爲HTML,或將.html屬性設置爲true。然後使用Loadvars加載html文件並將該變量分配到textfield.htmlText屬性中。

loadText = new LoadVars(); 
loadText.onLoad = function() 
{ 
    _root.helpText_txt.html = true; 
    _root.helpText_txt.htmlText = this.testText; 
} 
loadText.load("text.htm");