An Award for Senator Burr

The NAACP, labor, faith and civil rights leaders came together to award Sen Burr a Hypocrisy Award in recognition of Burr's consistent opposition to policies that help America's working families

Some News Links

Blogs
Ed Cone - http://edcone.typepad.com/wordup/
BlueNC - http://bluenc.com/
Progressive Pulse - http://pulse.ncpolicywatch.org/
Facing South - http://www.southernstudies.org/

MSM Blogs
Under the Dome (N&O) - http://projects.newsobserver.com/dome
Mark Binker (Greensboro) - http://blog.news-record.com/staff/capblog/
Laura Leslie (NPR WUNC) - http://www.wunc.org/programs/news/Isaac-Hunters-Tavern

Media
Raleigh N&O - http://www.newsobserver.com/
Charlotte Observer - http://www.charlotteobserver.com/
Wilmington Star - http://www.starnewsonline.com/
Fayetteville Observer - http://www.fayobserver.com/
Winston-Salem Journal - http://www2.journalnow.com/content/list/news/
Greensboro News Record - http://www.news-record.com/
Asheville Citizen Times - http://www.citizen-times.com/apps/pbcs.dll/frontpage

Rightwing "Think" Tank
Carolina Journal - http://www.carolinajournal.com/

addEventListener

On my stage I have a movieClip "Car" that is made up of (contains) other movieClips "Body", "Engine", and "Wheels". I want to add an Mouse_Over EventListener to Car, and I want that Listener to activate regardless of which part of the Car is moused over. However I want the resulting function to act up the entire Car, not just that part which was moused over.

Within the resulting function, if I act on event.target I'll only get part of the Car. To get the entire car I need to use event.currentTarget.

use event.currentTarget rather than event.target to select the object for which the listener is registered rather than the specific object (which could be a child) that triggered the listener

actionscript 3

Some notes to help me code as3 -

A Package is a collection of classes.

A Class is a template for objects; objects are instantiations of classes.

When naming a class (the .as file) the naming convention is to start with a capital letter: CustomClass, not customClass or customclass

The main function in a class is the constructor function. The constructor function automatically runs when the class is first created.

package
{
     import flash.display.MovieClip; //to use MovieClip it must be expressly imported

     public class HelloWorld extends MovieClip //class must be public to be called
     {
          public function HelloWorld() //constructor function
          {
               trace("hello world");
          }

          private function myFunction():void //method
          {
               trace("I am a method");
          }
     }
}

Syndicate content