This blog has moved to a new location! http://iqandreas.github.com/

Friday, December 11, 2009

Debug Text has been updated - now with Documentation!

In addition to making the appearance of the blog a little nicer, I finally got around to updating and creating Documentation for DebugText.


DebugText now has it's very own hosting thanks to a very helpful contributor. :)

The library can be downloaded directly at:
http://iqandreas.isbetterthanyou.org/DebugText/DebugText_1.0.0.zip
(If anyone prefers "rar" or any other compression, just ask)

And the Documentation can be viewed directly in the browser at:
http://iqandreas.isbetterthanyou.org/DebugText/Documentation/


The ZIP file includes the class, ASDoc documentation, and and some example usage.

Check out the old thread for a few examples, all of which can also be found in the example.swf file found in the ZIP:
http://iqandreas.blogspot.com/2009/10/debugtext-onscreen-trace-replacement.html



This is taken directly from the "README.txt" file.
DebugText version 1.0

DebugText is a lightweight, onscreen, visual tracing tool.

This tool was developed because 'trace()' is not always available (like when preloading external SWFs), and the process of creating new TextFields all the time can become a bit of a hassle. The DebugText class will create a small textField on the screen that displays whatever you "trace" out, and instead of several lines of code to make this TextField, one line is enough.

There are two versions of the DebugText class. Both versions use the same code, but different packages:
  • Top level (no package name) - Place the AS file directly into your Global Classpath. Named for convenience, to avoid import statements. It can be moved to a specific package, but then an import statement is required at the top of every class that uses DebugText.
  • aRenberg.utils.DebugText - Requires import statements for each class DebugText is used in.

For sample uses, see the Examples folder.

I hereby release this code to the general public. All users are allowed to use and modify the code as they please as long as they don't publicly take credit for the code as their own work. References to where the code can be found are appreciated, but not required.


Copyright 2009 Andreas Renberg
http://iqandreas.blogspot.com/
http://iqandreas.isbetterthanyou.org/



Now I only have go get around to creating the rest of the Debug suite...

Saturday, December 5, 2009

Simple AS3 VolumeKnob component

An entire month went and not a single post... Sadly, there is a lot of valuable information I learn that I don't put on my blog, which I should, I just never get around to it.


I still haven't written any documentation for it, but I thought I'd throw this out there in case there is anyone else trying to create the same effect.

Pass in a DisplayObject as the "knob", and when the user holds down the mouse and drags around, the volume will increase when rotated to the right, and decrease when rotated to the left.

It is "continuous", like those digital volume knobs, where you can turn without limit left and right, and even if volume is all the way down to 0, you can still keep turning left etc.

Files stored here:
http://iqandreas.isbetterthanyou.org...VolumeKnob.zip
The ZIP contains the class (src/VolumeKnob.as) and one simple example file (src/Main.as) as well as a compiled SWF in the bin directory.
(Thanks to a very helpful donor for the webspace!)


Better description, ASDoc, and examples to come. Refer to comments inside of AS file for more details until then.

Feel free to use and distribute the class freely, but NEVER pass it on as your own work telling others you made it. PLEASE tell me if you end up using it for any projects. It's not a requirement, but it I would like it.