Round to the Nearest Value

March 4, 2010Danwize No Comments »

As I was developing a game I needed something to round an integer to the nearest 5. The following function allows you to round a given integer n to the nearest integer f. It’s a very simple Actionscript function, but I it might come in handy.

public function round(n:int, f:int):int

Read More »

Meebo Drag to share

February 10, 2010Danwize No Comments »

I just stumbled across a cool tool called Meego drag to share. I’ve just installed it on this blog and here’s a test.  All you have to do is install the plugin found here: .  Once the plugin is installed, all you have to do is include an image and the plugin takes [...]

Read More »

Missing Text in Flash Player

December 30, 2009Danwize 3 Comments »

To fix missing text in Flash-player in OSX, just delete the fonts in Users/Library/Fonts that are duplicated in HD/Library/Fonts

Read More »

Deep Linking

November 11, 2009Danwize No Comments »

I just happened across this cool feature in Flex while looking for solutions to other problems. It’s called deep linking. It allows you to return to a specific state of a Flex application by including information in the url. Go here to read more about it:

Read More »

Get Rid of Yellow Focus Rect

November 10, 2009Danwize 6 Comments »

Are you tired of seeing the yellow focus rectangle in your Flex applications? It’s really easy to get rid of it. All you have to do is this: stage.setFocusRect = false; It’s really that easy. See more info about this property here:

Read More »

AS3 Binary Search

October 13, 2009Danwize 4 Comments »

Here is a simple recursive binary search function written in AS3.  This is a quick and efficient way to search an array.  In the worst case, binary search will take log2(n) steps to finish the search where n is the length of the array.  Of course this algorithm only works if the array has been sorted.  It [...]

Read More »

Parable of the Laborers in the Vineyard

October 1, 2009Danwize 1 Comment »

With men this is impossible; but with God all things are possible.

Read More »

Hello world!

October 1, 2009Danwize No Comments »

This is my fist blog post ever!  I’m excited to get this thing going.  Hopefully you can find some useful information on my blog.

Read More »