Flash MX2004 產生 Flash 8 的swf經驗教學

來源:互聯網
上載者:User
  1、複製default.xml並粘貼到C:\Documents and Settings\[UserID]\Local Settings\Application Data\Macromedia\Flash MX 2004\en\Configuration\Publish Profiles 目錄下flash8.xml的檔案裡。
  2、用文字編輯器開啟flash8.xml
  3、改變<flash_profile>標籤裡name值為flash8(在第二行)(如圖)
  4、尋找<version>標籤,並將其值從7改變為8(應該在64行)(如圖)


  5、儲存當前檔案
  6、重新啟動Flash
  7、建立一個新的flash檔案並將下面的代碼放到第一幀
// create textfield
this.createTextField("txtField",
this.getNextHighestDepth(), 10, 10, 300, 100);
txtField.html = true;
txtField.htmlText = "<font size=’60’>Hello World!
</font>";
txtField.textColor = 0x0055CC;
// set new antialias mode
txtField.antiAliasType =
flash.text.TextRenderer.AntiAliasType.ADVANCED;
// create shadow filter
var dropShadow = new flash.filters.DropShadowFilter();
dropShadow.blurX = 5;
dropShadow.blurY = 5;
dropShadow.distance = 3;
dropShadow.angle = 35;
dropShadow.quality = 2;
dropShadow.alpha = 0.5;
// apply shadow filter
txtField.filters = [dropShadow];
  8、使用快速鍵CTRL+SHIFT+F12發布視窗



  9、匯入剛才建立的flash8.xml檔案,並儲存。
  10、匯出或者發布你的檔案,即可在已安裝的Flash 8播放器播放測試。
  測試結果:



聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.