AS3 Common Tools Class library Ghostcat

Source: Internet
Author: User
Tags svn advantage

Ghostcattools has been released using the Flex Spark framework as well as air and part ghostcat features. Includes extensive development of commonly used features.

Download Address: Http://ghostcat.googlecode.com/svn/trunk/GhostCatTools/GhostCatTools.exe


Ghostcat is a very rich open source Tool library (also contains a complete set of UI components, but it is only a derivative of the class library.) )
It can basically cover most of the problems you may encounter.
Using the UI will increase the volume of around 50K, and using a non-UI display object increases the volume of more than 20K, rather than the display class can be very small.

Ghostcat is freely applied to commercial and non-commercial applications using the BSD protocol. If you use Ghostcat, even in real projects, you want to be able to give feedback via email.

http://code.google.com/p/ghostcat/

Actual Application Projects

Promotion Notes Ceodream
PHP "rel=" nofollow ">http://app.pengyou.qq.com/appframe.html?appid=608&height=950&frame=http%3a%2f% 2fceo.qzoneapp.com%2findex.php ps.renren.com/ceodream "rel=" nofollow ">http://apps.renren.com/ceodream
Http://apps.facebook.com/ceodream

Ghostcat is a Feature-rich the open source tools for libraries, (which also contains a complete set of UI components, but it I s only a class library derivatives.)
It basically can cover most of the problems your may encounter.
Using the UI would increase the size of 50K or so, with the use of Non-ui display object would increase more than 20K in size, rather than display type can be very small.

Ghostcat using BSD agreement may is freely used in commercial and non-commercial. If you use a ghostcat, even for the actual project, we hope to give feedback e-mail.

The practical application of project

Renren.com:ceo Dream
Http://apps.renren.com/ceodream?origin=103&_vip_flag=32

@author Flashyiyi
blog:http://uh.actionscript3.cn/space.php?uid=12147

Reference
Http://ghostcat.googlecode.com/svn/trunk/GhostCat/asdoc-output.chm

SWC Download
Http://ghostcat.googlecode.com/svn/trunk/GhostCat/bin/GhostCat.swc

SVN tools
Http://tortoisesvn.net/downloads.html

Tutorials to view Wikis

Example (ie cannot be opened):
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/AStarExample.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/BindingExample.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/CollisionExample.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/ControlRectExample.swf
Http://ghostcat.googlecode.com/svn/trunk/example/bin-release/GIFExample.html
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/GXMLExample2.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/GXMLExample.swf
Http://ghostcat.googlecode.com/svn/trunk/example/bin-release/IFrameExample.html
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/IMEExample.swf
Http://ghostcat.googlecode.com/svn/trunk/example/bin-release/LangageExample.html
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/LightExample.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/Paper3DExample.swf
Http://ghostcat.googlecode.com/svn/trunk/example/bin-release/RightClickExample.html
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/SkewExample.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/SmoothCurveExample.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/SWFDecoderExample.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/TestExample.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/Tile45Example.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/TileExample.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/TweenExample.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/SortExample.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/EllipseLayoutExample.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/PixelExample.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/TableExample.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/StringTweenExample.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/BitmapScreenExample.swf
Http://ghostcat.googlecode.com/svn/trunk/example/bin-release/SoundExample.html
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/TransitionExample.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/FrameRateExample.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/WalkExample.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/MazeExample.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/BombExample.swf

A few simple UI examples
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/UIBoxExample.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/UIBuilderExampler.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/UIComboBoxExample.swf
http://ghostcat.googlecode.com/svn/trunk/example/bin-release/UIScrollExample.swf

Ghostcat formerly known as Asgameui, the initial design just want to do a lightweight UI component library. Flex for the moment, even if aswing actually did not achieve and Sprite perfect combination, and the volume is still very sorry. As a result, many developers have finally been forced to choose their own development. However, they have developed something that is not functional enough, not a targeted tool, lacks versatility, and therefore cannot fill this vacancy.
Asgameui comes from a "logical injection" scenario that sacrifices the convenience of the layout and leverages the Flash IDE to serve itself, enabling it to achieve the same degree of freedom and convenience as the original timeline development, while conforming to object-oriented programming. Thus can be in the pure code environment directly to apply the original animation website rich expression Way, achieves two kinds of mutually exclusive way union. As a result, development costs are significantly reduced when developing rich performance UIs.
It is worth mentioning that while Ghostcat has introduced a lot of UI-independent content at the bottom, the volume is still only up to 50K when using the UI (it would be very low without the UI). This is mainly from the loose class library design. You can reference a lot of content and use it fully in your project, or simply refer to a feature point, and you won't be able to increase the SWF volume by introducing a feature.
The Ghostcat UI takes full account of its performance. In addition to Affinity MovieClip, it brings both ease and animation effects within the assembly. This is not currently available in other libraries. Moreover, compared with some writing library, Ghostcat control volume, but also provides the layout, List,itemrender and other advanced features, making it in the basic functions of the same as Aswing,flex components, only the efficiency and convenience of less than.

Ghostcat is renamed because the class library is now far beyond the concept of the UI. It uses its own base class library for divergence, and has spawned many useful and unique functions, such as:

MovieClip extensions are provided:
You can manipulate vector animations, bitmap animations, and code animations in the same way, and you can stitch the animations together. Animation with rewind, frame speed control, play queue function, and can convert vector animation to bitmap animation playback.

A strange dynamic content display module:
It can be very simple to use (you can imagine it's just a huge duplicate content graphic), which automatically repeats objects by creating, moving, deleting, and handling the scaling and moving perfectly. Moreover, it is even the basis of the list implementation! Just rewrite a few methods, it can immediately achieve 45 degrees angle of the game map effect. You can also use it just as a logical class and take advantage of events to achieve whatever functionality you want.

A very sophisticated XML deserialization:
You can use it to express any kind of class (can contain the constructor parameter list), and imitate the flex to achieve automatic event monitoring, attributes outside the chain and other functions. Can be a serialization of a multi-tier display object, or a set of data that contains a complex class. Extending it is also simple. You just need to understand and rewrite its 3 methods, and if you just want to escape the property name, you just need to set a property, which is the most common requirement for a custom parser.

A general-purpose queuing system:
It is not only used to load the queue of resources, but can queue anything! function, sound, window, and judgment, turn, loop. In a way, it's even like a scripting engine. and the use and expansion is also very simple. Using it, new, and then commit (), to extend it, you just need to implement a normal command mode, and the valid code can only be a few lines. As an example, I've provided a simple task system in which the command pattern has the advantage of being the most expressive. This is also a substitution scheme for handling AS3 when there is no multithreading.

A simple bitmap engine:
Yes, although the same is addchild, but this way to add things, is the use of the optimized rendering method. When a large number of items move, it can achieve better performance than the default rendering mode. Also, it can switch instantly in multiple rendering modes, with less risk. The bitmap engine also implements the basic mouse event simulation function. Starting from this place, it provides a simple bitmap effect class that allows the object to have smooth shadow and diffuse effects with only a single line of code and simple settings. Coupled with the physical class, you can form a complete particle engine.

Ghostcat's function is much more than that, in fact, most of the common functionality is already implemented internally (such as tween), which is not mentioned. Just list some special features.
-Judge the edge of the vector to achieve the collision detection of irregular objects (non-bitmap)
-efficient bitmap collision and overlapping vector detection
-a star, depth/breadth, 2d/3d/Road point, the way to seek unified treatment.
-two times the bell curve, cutting and calculating the normal by length, smoothing curve fitting (over or over dot)
The-SWF parser, which plays the sound from the ByteArray, directly controls the AVM1 animation class capacity.
-rich text easing, partial text filter, gradient text, character diff contrast, ANSI transcoding, URL decoding, Chinese digit, phonetic code, which is a separate bottom pack
-Fully implemented by flash Pinyin Input method, the need to load 200K thesaurus, the cursor followed and can be input words (feel and intelligent ABC almost)
-Thumbnails, Reflections, trapezoidal transformations, mosaics, various special effects, flames, whatever.
-Full function customization transition, not only can be used, but also can be created. If not, you can use the template in creater
-Particle, physics, depth
-Screenshots like QQ!
-Stream to read text and pictures. HTML can, Flash can also
-Similar to FXG, using objects to save drawing operations, simplifying the drawing process
-A variety of drag and drop tools, deformation tools, edit shape tools. Individual drag points can also be used separately.
-Single-File self-loading
-Right button, double click, three-click, keyboard management, mouse gesture
-The Shadow Builder. Flash can also simulate the effect of good lighting. Shadows can fold walls.
-Anti-Client modification solution (memory modification, acceleration)
-cutting graphics, while supporting vector, bitmap, and, you can press 45 degrees angle to cut!
-Color Mode Conversion
-Go to the background, magic Wand
-The simple realization of the picture-text mixed row. You can also display table tables
-Filter Agent: Modify the filter's properties to take effect immediately, you can directly to it tween! Of course, the water wave magnifying glass, contrast saturation is also available by the way.
-Commonly used JS extension: IFrame, convenient to provide interface to external JS, call the browser music player mid, as well as some commonly used anti-refresh, prevent mouse wheel interference. Of course, Deeplink is indispensable.
-Fan, ring, dashed
-Arithmetic (string analysis)
FP10 Limited
-beep music, variable speed playback

Maybe in the use, Ghostcat still need some cost (at least you need to know where each function is), but it is worthwhile, some problems you may not meet Now, may also be encountered in the future. This is a matter of once and for all. At the same time, I also hope that ghostcat can also give you some inspiration, so that you do not think you can do or too much trouble to do things, so, improve the quality of flash products, so as to promote the development of the industry, so that all people benefit.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.