Author Archives: ascontest

ActionSnippet Contest Winner

The other judge for the contest was Rich Shupe. We just reviewed the entries together and have decided on a winner….
The winner is Petri Leskinen (piXelero)
Have a look at the winning snippet if you haven’t seen it already.
Rich and I thought that Kyle Phillips deserved honorable mention for his google analytics snippet.
Thanks to everyone who [...]

Posted in misc | Tagged , , , | Leave a comment

Bounce Ball Inside a Circle

CLICK HERE TO COPY
Actionscript:

package  {

    import flash.display.Shape;

    import flash.display.Sprite;

    import flash.geom.Point;

 

    /**

     * Re: http://board.flashkit.com/board/showthread.php?t=797453

     * @author makc

     * @license WTFPLv2

     */

    public class BouncingBall extends Sprite{

        public function BouncingBall () {

            r = 10;

        [...]

Posted in motion | Tagged , , , | Comments closed

Google Analytics Utility

CLICK HERE TO COPY
Actionscript:

package com.hapticdata.utils

{

    import flash.external.ExternalInterface;

    /**

     * Simplifies posting to Google's Analytics Tracker, allows easily disabling for development phase

     * and uses ExternalInterface rather than navigateToURL

     * @class Urchin

     * @author Kyle Phillips - <a href="http://www.haptic-data.com">http://www.haptic-data.com</a>

     * @created October 28, 2008

     * @example Analytics.post("section");

  [...]

Posted in external data, misc | Tagged , , , , | 2 Comments

Hide Browser Scrollbars

CLICK HERE TO COPY
Actionscript:

/*

This snippet is by Mels le Noble

www.melslenoble.nl

It will hide the browser scrollbars.

*/

 

// see if we are testing locally

if (stage.loaderInfo.url.split("/")[2])

{

 ExternalInterface.call("function(){document.body.style.overflow='hidden';document.html.style.overflow = 'hidden';}");

}

This snippet by Mels le Noble will hide the browser scrollbars. The bulk of the snippet is the javascript inside the ExternalInterface.call() method. I like the trick that Mels uses to check [...]

Posted in UI | Tagged , , , , | Leave a comment