Code

ActionScript Full Screen function

// June 11th, 2009 // No Comments » // Code

Started working on a new Flex project today and found myself searching the docs for the correct syntax in making Full Screen apps so I figured I’d post it here and hopefully I’ll remember this function next time I need it.

private function toggleFullScreen():void
{
    try 
    {
        switch (systemManager.stage.displayState) 
        {
            case StageDisplayState.FULL_SCREEN:
                systemManager.stage.displayState = StageDisplayState.NORMAL;
                break;
            default:
                systemManager.stage.displayState = StageDisplayState.FULL_SCREEN;
                break;
        }
    } 
    catch (err:SecurityError) 
    {
    }
}

Drupal node access and redirect of users based on role and username

// June 5th, 2009 // 17,137 Comments » // Code

My boss asked me to start setting up a client area on our company website where we could share documents with our clients and also do some minor commenting about the documents. It was also a requirement that the clients would be taken to their own specific client page without access to any other clients page. (more…)

jQuery (JavaScript) Font Resize

// May 26th, 2009 // 1 Comment » // Code

Here is a way to resize text with javascript. Calling these 2 functions from clicks on images or button is easy. Just add a click event to call the functions as needed. (more…)