I’ve made a bunch of changes to LogViewer, you can get the latest package over at:
http://www.rogue-development.com/logViewer.xml
But much more interestingly, I made the changes in direct response for my desire to improve the logging facilities in XRay.
In case you’ve never heard of it before, XRay is the best tool for debugging Flash applications out there. It’s written by a guy named John Grden that I’ve had the opportunity to work with for the past year or so. Last week I told him about LogViewer and he added it in to XRay. But it just didn’t feel right. It looked clunky and there was some functionality that should be there but was missing. So for the past couple days I’ve been hacking apart LogViewer, adding in a few features, and making it look a little prettier. Here are the results…

As you can see, the search functionality remains, but with a find-previous option listed.
Two new features include the ability to filter based on a text string, and the ability to highlight lines that contain a text string. Both very useful when you have an application spewing large amounts of logging information at you.
With any Luck, we can get these changes wrapped up over the next week to a release-quality state and post it for all to use.
ObjectHandles, the easy way to add user resizing & movement of objects to your flex application, has been updated.
Changes include:
- Initial rotation support added (still needs some tweaks). Thanks
goes to Alexander Kludt for contribution of most of this feature.
- Metadata for events added. (Thanks Thomas Jakobi!)
- Bug fix for making ObjectHandles dynamically through actionscript
instead of in an MXML document.
- Ability to turn mouse cursor support off (since they are ugly right
now).
A new demo is up and downloads can be found at:
http://www.rogue-development.com/objectHandles.xml
(Clear your browser cache before viewing the demo again, I’ve seen it
not refresh sometimes, even on a shift-reload on my browser)
Enjoy!
I have a weird bug that I’m having trouble figuring out. I have the following code:
comp.graphics.clear();
comp.graphics.lineStyle(5, 0×888888);
comp.graphics.moveTo(0,0);
comp.graphics.lineTo(0,50);
comp.graphics.lineStyle(0, 0);
comp.graphics.beginFill(0×188888);
comp.graphics.drawCircle(10,10,5);
comp.graphics.endFill();
I would expect that to draw a vertical grey line with a filled in circle to the right of it. What I actually get is this:

It’s like flash is drawing my circle and then doing a flood-fill outside the circle instead of inside it like it should. If I remove the call to drawCircle(), I get similar results but without the circle.
My solution was to draw the line and the circle on different objects, but I’m unclear on why this is necessary.
ObjectHandles, the easy way to add user resizing & movement of objects to your flex application, has been updated.
Now, when mousing over the component or the various handles an appropriate mouse cursor will be displayed.
There’s been a lot of interest from people about this component. It’s seen over 400 downloads and I’ve received quite a few emails about it. If you interested in following this project more closely, I’ve set up a google-group where I plan to announce new versions and people can ask questions. To join, go over to:
http://groups.google.com/group/objecthandles
Downloads, examples, etc can be found on the project page:
http://www.rogue-development.com/objectHandles.xml
If the example on the project page seems out of date, you may have to clear your cache. I’ve found some browsers don’t refresh i-frames like they should.
I’ve started a new project to make a flex component to quickly display largish amounts of text. It’s main purpose is to display logging information on screen. It’s uses a semi-intelligent algorithm to re-use on screen components and batch UI updates in groups.
http://www.rogue-development.com/logViewer.xml
I’ve spent a bit more time on my move/resize flex component and there’s now an expanded demo available online.
I’ve also set up a dump of the latest binary .swc that I’ve been working on to the website. With any luck this will be of some use to someone.
http://www.rogue-development.com/objectHandles.xml
New in this version:
- Horizontal & Vertical Anchors
- A selection manager
I’ve been spending some time working on a flex component to add “handles” to an on screen object to allow an end-user to resize and move it. It’s exactly the same type of functionality when you’re using design mode of Flex Builder.
Below is the first look at the current progress I’ve had.
As you might have noticed it has a few bugs and is far from done feature-wise. It you’d like to keep up on it, take a look at the project page.
If anyone knows of a project doing this same type of functionality, please let me know. I hate to duplicate efforts.
Flex Builder has that great “Constraints” UI that allows you to anchor components to their parent that I’m sure everyone has used.

But what happens if you create an object in actionscript and then you want add constraints to it? There is no “top” property you can set to anchor the component to the top. It turns out the constraint system is entirely based on Flex’s style system and can be used as follows:
var someComponent:SomeComponent = new SomeComponent();
var style:CSSStyleDeclaration = new CSSStyleDeclaration();
style.setStyle(”top”, 0);
style.setStyle(”horizontalCenter”, 0);
someComponent.styleDeclaration = style;
And BAMN, someComponent will be anchored to the top, center of it’s parent (assuming it’s parent is a container that supports anchors.) Available style selectors are:
- top
- left
- right
- bottom
- horizontalCenter
- verticalCenter
You could also specify the styles in a css sheet, or by adding them to an already existing style.
Edit…
As a commenter has posted you can also use the setStyle method in addition to the various other methods I mentioned. So the following would also work:
someComponent.setStyle(”top”,0);