Quantcast Code Snippets | The Danosphere.

The Danosphere.

Avatar

class TheDanosphere extends Dan implements Blog

Flex SandboxMouseEvent – Not All It’s Cracked Up To Be.

Recently while piddling around in the day-to-day tasks I handle here at DecisionLens I was deep within the List class when I came across something I had never seen before – a SandboxMouseEvent [gasp]. Upon seeing all the wonderous events I could listen to I thought- this is amazing! I can listen for all kinds of stuff happening outside of my sandboxed flash window! So I whipped together a little demo to see what this magical new event could do… [Click Here for Source]:

(Either JavaScript is not active or you are using an old version of Adobe Flash Player. Please install the newest Flash Player.)

As you can see, not performing as advertised! It seems the only even it captures is MouseUpSomwhere, and that fires when you roll out of the window? Very weird. I thought maybe it was an issue with being trapped in a browser window, so I threw the same code into an AIR application, and same thing- only event fired was MouseUpSomewhere. I don’t know if this is a bug (seems to be since mouseUp isn’t really occuring, its more of a RollOverSomewhere), or I’m just misunderstanding the functionality of this event, but in either case, it was certainly a letdown to see I was still pretty much trapped within my tiny SWF prison.

Using Flex HDividedBox and VDividedBox Cursor Assets Independently

In a recent project of mine I had the need for a vertical resize cursor. Flex has a very nice vertical resize cursor already packaged along with the VDividedBox. There is a similar horizontal resize cursor for the HDividedBox. After some googling and a little sample project, I found out how to access the cursor assets of these components for independent use without an H or V DividedBox. Simply use the embed from below along with a CursorManager.setCursor() call and you’ve got pretty native horizontal and vertical resize cursors!

asdf
asp
fds
';document.write(content);
[code snippet: http://snipt.org/ooggh]

I’m Very Much Still Alive

:emerges from abyss:

Hey everyone! I’ve been on leave but wanted to post a lil update here. Code samples should be up this weekend, along with a more complete version of the “AS3 Node Network” complete with XML saving.

I also have a pretty awesome BitmapData writeup coming that really stretches the limits of Flash and Bitmaps, including an optimized Async JPEG Encoder- which allows you to encode JPEGs 4x faster than the default adobe lib, and also allows you to monitor progress of the process and merge multiple BitmapData objects seamlessly.

So what I’m trying to say is good stuff is coming, so stick around! Hoping to post this stuff over a series of posts, the first of which should be up tomorrow :) til then… ;)

Snipt.org Releases API, AIR App, and So Much More

I’m pleased to announce Snipt.org the twitter-based code sharing service is growing into much more. Today the Snipt.org API was released along with a number of other features including an AIR App, AS3 Library,  and Wordpress Plugin (which I’m using on this site!). Hopefully we will see some cool implmentation of the API in the near future (Textmate hint hint). To check out all the goodies head to Extending Snipt.org.

|

What's Here?