I would like to know how can I install a library packages to a Flash project. I am using Adobe Flash CS4 and the library I'm trying to include is in AS3.
The library can be found on http://code.google.com/p/as3ansi/
I would like to know how can I install a library packages to a Flash project. I am using Adobe Flash CS4 and the library I'm trying to include is in AS3.
The library can be found on http://code.google.com/p/as3ansi/
I can't see from the link you've given where the library files are; it seems more like that thing is a ready-built SWF or something. In general though, to 'install' a library (install is a misleading way to think about it), you put the line:
import folder.folder.*;
..and you put the folders which contain the library files into your project directory (and of course change 'folder' in the above code to whatever the folder names are). For example, if the code is located inside a folder called math > geometry, you'd do:
import math.geometry.*;
Once done, you'll be able to access all the classes and functions that come with your new library. Hope that all helps.
Crap. I should have registered an user. I can't log to my account to reply to debu directly.
I did not try to create an instance of BitmapAsset directly because I'm at work.
About the library. I think the owner did not made the deployment very well.
Try this url http://code.google.com/p/as3ansi/source/browse/#svn/trunk/src
Thank you