AS3: basic class setup

6 2 15th 2010 § 0 comments

I’m tired of typing this over and over. CS5 does this for you, but I have a feeling that I will be using CS4 at work for at least another year before we do an official upgrade. And that’s fine, Cs5 as of today’s date still crashes a lot- so after they work out the bugs and send out some patches, it will all be groovy, till then here is my simple AS3 class layout.

package com.drpunchlogic
{
	// 	-- IMPORT

	public class classname extends MovieClip
	{

		// 		-- VARS

/*
--------------------------------------------------------
	SET IT UP
--------------------------------------------------------
*/
		public function classname( )
		{	

		}

/*
--------------------------------------------------------
	START CLASS
--------------------------------------------------------
*/
		// INIT
		public function init(e:Event) : void
		{

		}

// 	-- END CLASS
	}
// 	-- END PACKAGE
}

Tagged , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

What's this?

You are currently reading AS3: basic class setup at DrPunchBlog.

meta

  •  

    June 2010
    M T W T F S S
    « May   Jul »
     123456
    78910111213
    14151617181920
    21222324252627
    282930  
  • Archives

  • The Uber-Mannerist ...
    By Van Arno
  • RSS mtr.me

    • ‘Up In The Air’ Producer Launches The Allegiance Shingle With IM Global-Funded ‘Money Monster’
      EXCLUSIVE: Daniel Dubiecki has launched The Allegiance Theater, a association designed to emanate a breakwater where talent and financiers can induce film and TV projects. The association gets off a belligerent with a privately-backed beyond and growth account to beget character-driven, commercially appealing stories, pronounced Dubiecki. As Jason Reitman’s […]
    • New Oils
      James and Esao both published oil paintings to their blogs recently, James’s work on tip is titled, “Pauline Prieto“, and Esao’s investigate underneath it is substantially eleven or thirteen years aged now from art propagandize and he writes about because it is called “Grumpy Study”. Article source: http://meathaus.com/2012/02/06/new-oils/ […]
    • Video Game Character Facebook Profiles
      This is a array of cinema from a Facebook profiles of video diversion characters. Obviously they’re fake, that we wish we would’ve famous before spending a half hour perplexing to find and crony Nathan Drake and Solid Snake. OMG, how cold would it be to know those dual guys in genuine life? “Wow,GW — man-crush […]
  • Translator