Categories
Teaching

Community organizers

Real heroes

Freedom Riders from 1961, this lookslike a stunning project

Categories
Flash

McCain has no honor

[kml_flashembed movie=”http://www.markbadger.org/drawing/McCain.swf” height=”400″ width=”550″ /]

quick and dirty sketch of John McCain’s lack of honor

Categories
ActionScript

Using Movie Clips from a loaded swf

/*
When you need to load a movie clip in a loaded swf how do you do it? then you want to use the clips in the loaded movie your swf.
Every swf can be loaded in three different ways , while you can use the code included in a movie clip this also allows you to use the visual assets in the fla’s library . to make this work you need two swfs on your base swf with this code in the main timeline

Yes I know it should a class but we’re just trying to learn the basics of the code

In our second swf named s_1.fla is a movie clip in the liibrary named C1 set to dispatch
*/

var _loader:Loader
var info:LoaderInfo
_loader = new Loader(); //create a loader
info= _loader.contentLoaderInfo;//checks the actual contet of the object not just the loader we are splitting things up here
info.addEventListener(Event.COMPLETE, onInit, false, 0, true)// add a listener for the init event that fires when all the assets of the loaded swf is available to you

function onInit (e:Event) {
// e is the intit event it means the swf is ready to be used
// e.target target is the swfs contentloaderInfo every swf has an applicationDomain, a loaded swfs domain by default is the main movies child. hasDefinition is a method it’s asking if in this application is there a Movie CLip named “c1”
trace(“head exists: ” + e.target.applicationDomain.hasDefinition(“c1”) );
// okay so are definition exists but we need to set it up so we can use is as a constructor and make it into a class we do that by using the keyword as types the “c1 as a Class so we can pu tit into a variable and then make a new instance of the it
var head:Class = e.target.applicationDomain.getDefinition(“c1”) as Class;
var p = new head()
//make a new instance and stick it on the stage
addChild(p)
}

// actually load the swf
_loader.load(new URLRequest(“s_1.swf”))
addChild(_loader)

//
//
You should be able to past this code into a main timeline and it will run once you make the second swf named s_1.swf with the movie clip in it.

Categories
Comics Jack Kirby

HAPPY BIRTHDAY JACK!

A tribute panel to Jack Kirby from Urban Empathy

It’s Jack’s 91st birthday, so I figured a panel from a comic book about Ghandi and non-violent communication is appropiate some how. Jacks work is so large and so powerful it can become a driving force in any comic and of all the panels I’ve ever done, here’s one that owes him a lot.

And yes it’s also “I have a dream” day that other King gave and that Obama guy is giving a speech tonight that means the next three months are spent making phone calls and walking the streets for him but right now

“Long Live the King!”