AS程序员实用工具类

Hot:

 声音类

QueueLoader
QueueLoader是一个顺序载入资源并监控的as类库。还能加载图片,SWF,MP3,XML……QueueLoader是为AS3设计的,并且开源了。

URL-Prioritization Class
Url prioritization class它支持Loader,URLLoader以及Sound对象(也许有一天能支持NetStream对象)。它允许你设置请求的优先级以便这些对象能正确的顺序执行,还能查看当前的执行请求和载入请求。

MusicBuilder & SoundObject
这是一组类,包括MusicBuilder,SoundObject,SOCollection,Timer。这些类允许你使用multiple streaming mp3声音文件建立自己的音乐。它使用了一个新的Timer类,能够精确计算到毫秒,现在你能无缝的循环播放你的MP3文件。

SoundController Class
SoundController class管理声道。当当前声道达到最大值的时候,SoundController类会停止最早的声音,因此你可以播放新的声音。这类似“队列”的结构。当你添加新的声音,最早的声音被删除。

Sound Manager Class
这是个单例,可以在你的游戏/项目的任何地方被使用。只需要将你所有的声音文件注册到这个单例中,然后通过ID使用它们。

Using the Sound, SoundChannel, SoundTransform classes
正如你所见,这篇东东谈的是如何使用Sound, SoundChannel, SoundTransform类

字符类:

As 3 Inflector
这个转换器支持单/复数转换,驼峰,下划线,人性化(首字母大写等)

AS3 StringTokenizer
在java.util包内有一个非常有用的工具,就是StringTokenizer类。AS的StringTokenizer类是一个很方便的类,它提供一个简单的机制,使用特定的个人标记来分割字符串。

ActionScript 3 Inflector class for pluralizing and singularizing words
这个转换器支持大多数的单词的单复数转换。它本质上是Rails inflector类的端口

zeh.compression.LZW (AS2)
LZW是一个静态类,它允许使用Lempel-Ziv-Welch – or LZW – algorithm进行字符串压缩。它提供了一个快速引擎进行良好的压缩。这个引擎能够循环分割,很利于发送大量可压缩数据到服务器。比如说一张图片的点阵。

Sprintf.as
格式化字符串是一个很便利的功能,但杯具的是Flash AS库中没有。这个类增加了sprintf(把格式数据写成串)功能

文本类:

TextMetrics–寻找子串坐标,行宽等
你是否需要在动态TextField中找出换行?是否需要精确定位x/y,宽/高进行高亮显示。或者需要知道每行的宽度?gs.utils.text.TextMetrics类可以帮到你。

HTMLStyle
这是为了简化Flex中的html-text开发的组件。HTMLStyle使用几乎相同的标签,也使用与ActionScript代码。

AS3 AutoComplete class
ActionScript工程中的AS3 AutoComplete类。

Flash Text Search Engine Class
一个轻量级的多功能ActionScript文本搜索引擎。你可以简单的使用它,或者使用专家功能例如排除字符,大小写等。

Playing with Text in AS3
这篇教程将教你AS3中基本的文本格式处理。你应该会创建Textfield,改变它的颜色和属性,定位,嵌入字体。我们将使用TextField类和TextFormat类去完成这些任务。

ActionScript Spellchecker for Flash Textfields
这个类允许你使用TextField中的拼写检查功能。现在,你能右键单击拼错的单词并且从字典中加载上下文的建议。

TextAnim
TextAnim是一个可扩展的,用来创建文本动画的类。思路是将文字打散成序列块,然后就可以自由的做你想要的动画。至于选择哪种补间引擎就无所谓了:Tweener,BTween,GTween,Tweensy,TweenLite……

颜色类:

Color Name Class
它根据SVG1.0定义颜色名和16进制的值。

ColorMatrix Class for AS3
和as2版本相比,作者增加了一些新的方法并尽可能的做了优化。

TweenMax
TweenMax扩展至快速轻便的TweenLite引擎。这次又增加了许多有用的功能像timeScale,AS#事件调用,终点设置,yoyo(tween动作 不停地往复循环  指示补间动画按与其补间属性最后一次增加的方向相反的方向播放),重复,延迟重复,四舍五入等。(我想这可能可以用来做颜色的过渡动画)。

Actionscript 3 Color Sampler Class
显示对象的颜色取样引擎。定义一个BitmapData的取样区(宽,高,x,y)并计算该区域的平均值。能够在该区域内取得RGB的红绿蓝通道,色调,饱和度和亮度的数值。

AdvancedColor
AdvancedColor对象主要是扩展了内置的颜色对像,它还提供了静态的方法,能够让颜色的值在色彩模式之间转换。

ColorFader:
在指定的时间内渐变到一个指定的16进制颜色。

Designer Class
用这个易使用的类去控制flash中的绘图API。用简单的AS命令就能绘制圆形,方形或者比较复杂的梯形。

Bitmap类:

Bitmap在我们的开发中使用率很高,这意味着掌握它很重要.实际上,有很多现成的类可以帮助我们更简单的操作Bitmap对象。接下来我们收集了8个关于Bitmap的类供大家参考,希望大家会喜欢。

AS3 Scale9 Bitmap
一个创建9宫的类。

AS3 bitmap mosaic class
很有趣的类,将图片进行马赛克处理

Active Window Blur
这个有点像flex中Alert后模糊的背景。

Animated Bitmap Class
这是一个动画播放类

CollisionDetection Class
这是一个用来检测碰撞的类

DistortImage Class
用来进行图像扭曲变形的类

ImageLoader
图片的加载管理类,有点像对象池的概念。

Reflection class
倒影类



21 Responses to “AS程序员实用工具类”

  1. MaksimMamontov Says:
    November 8th, 2010 at 19:01

    Профессиональный квартирный переезд по приемлемой цене

    [Reply]

  2. velvet touch saskatoon Says:
    November 26th, 2010 at 09:21

    This is my problem…

    Amazingly website, I like how your page looks! The layout is amazing!…

  3. remanufacturare cartus Says:
    December 3rd, 2010 at 05:59

    valuable post…

    You got a really useful blog I have been here reading for about half an hour. I am a newbie and your post is valuable for me….

  4. Грузчики Киев Says:
    December 3rd, 2010 at 23:29

    Мы определяем родные решения:
    смотреть фильм
    Скачать торрент
    услуги грузчиков киев
    моторное масло
    на высоком профессионализме

    [Reply]

  5. video call Says:
    December 16th, 2010 at 06:24

    valuable post…

    You got a really useful blog I have been here reading for about half an hour. I am a newbie and your post is valuable for me….

  6. video call Says:
    December 16th, 2010 at 08:55

    Pretty good post…

    I just stumbled upon your website and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon….

  7. how many calories Says:
    December 23rd, 2010 at 13:05

    Pretty good post…

    I just stumbled upon your page and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon….

  8. video phone Says:
    December 27th, 2010 at 20:54

    Life goes on…

    In three words I can explain all I know about life: It goes on….

  9. Casino Fruit Machine Says:
    January 13th, 2011 at 06:23

    Another Title…

    I saw recently so sending a trackback to my site, thx again Si…

  10. business management Says:
    February 20th, 2011 at 13:21

    I’ve just started off a blog, the knowledge you give on this site has aided me extremely. Thank you for all your time & work….

    Of course, what a great site and informative posts, I will add backlink – bookmark this site? Regards, Reader…

  11. TadWinett Says:
    June 18th, 2011 at 17:57

    Great One…

    Thanks. My link:http://swerngh.meinblog.at/ ,Thanks again….

  12. cheap mac eyeshadow Says:
    September 20th, 2011 at 21:09

    Towering effectiveness disdains another crushed option. The dog intends zones up until the present untouched.–Abraham Lincoln subsequently

    [Reply]

  13. Frankie Barette Says:
    November 2nd, 2011 at 21:33

    I found this informative and interesting blog so i think so its very useful and knowledge able

    [Reply]

  14. Carmelo Keppner Says:
    November 4th, 2011 at 07:00

    What blogging website is anyone to begin a blog and extremely get audiences or clients?

    [Reply]

  15. Alishia Konma Says:
    November 19th, 2011 at 06:21

    I’ve been exploring for a little bit for any high-quality articles or weblog posts on this sort of house . Exploring in Yahoo I eventually stumbled upon this web site. Reading this information So i am glad to express that I have an incredibly just right uncanny feeling I came upon exactly what I needed. I so much for sure will make certain to do not put out of your mind this web site and provides it a glance on a continuing basis.

    [Reply]

  16. Else Stippich Says:
    November 30th, 2011 at 05:49

    thx mate Here’s some pass forward: Thought for the day? : User error: replace user and press any key to continue.

    [Reply]

  17. Lamont Wimpy Says:
    December 10th, 2011 at 07:29

    But I’m too into iOS and iPhones to switch

    [Reply]

  18. Leonel Whitsitt Says:
    December 19th, 2011 at 04:14

    hey there and thank you for your info ¡V I’ve certainly picked up anything new from right here. I did however expertise a few technical issues using this site, as I experienced to reload the website many times previous to I could get it to load correctly. I had been wondering if your hosting is OK? Not that I am complaining, but slow loading instances times will often affect your placement in google and can damage your high-quality score if ads and marketing with Adwords. Well I’m adding this RSS to my email and can look out for much more of your respective interesting content. Ensure that you update this again very soon..

    [Reply]

  19. hervey bay land Says:
    January 2nd, 2012 at 11:36

    I really like like you would have written that. Very educational.

    [Reply]

  20. Kyphoscoliosis Treatment Says:
    January 10th, 2012 at 13:24

    I enjoy looking at and I conceive this website got some really useful stuff on it! .

    [Reply]

  21. hery poter Says:
    January 17th, 2012 at 09:42

    Thank you a lot for providing individuals with a very pleasant chance to read critical reviews from this web site. It can be so great and also full of a good time for me and my office acquaintances to visit your website minimum 3 times every week to read the fresh secrets you have got. Of course, I am certainly happy with the impressive tactics served by you. Selected 4 facts on this page are in truth the most impressive I’ve ever had.

    [Reply]


Copyright © 2009-2012 Ase7en.com All Rights Reserved
粤ICP备09071940号