Git Product home page Git Product logo

as3-chat-room's Introduction

#圖文混合組件(RichTextField) v1.0 as3版的圖文混合組件,支持flash的所有顯示物件,支持複製貼上剪下功能,要求使用flash11及以上版本發布

##如何使用

var rtf:RichTextField = new RichTextField(200, 100, new TextFormat("Microsoft YaHei", 14));

rtf.registerImage(100, ImageClass);

rtf.insertImage(100);

##API 1.registerImage //註冊圖片類型

2.insertImage //在光標位置插入图片

3.editable //設置是否可手動編輯

4.content //取得textField的參考

5.clear //清除圖片和文字

6.setTextFormat //在指定範圍内設置文字格式,如果不指定範圍則對選擇的內容進行設置

7.setNormalFormat //對選擇的行套用常用的對齊、加粗、斜體和加底線樣式

感謝 WLDragon 的分享

as3-chat-room's People

Contributors

rodmen13 avatar wldragon avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.