Monday, December 29, 2008

e.target.name not working - as3 gotcha

Frustrated,...
So if you have ever encountered this :

head1.addEventListener(MouseEvent.CLICK, headClick);

private function headClick(e:MouseEvent):void {

trace(e.target.name)
}
// outputs something random like "instance22" instead of the instance name of the MC you are targeting, which in this case is "head1".

So after some searching and anger, (I still don't know why but this is only a random occurrence for me), if you add currentTarget in place of target

like so:
e.currentTarget.name

I get the proper results.
trace(e.currentTarget.name) // outputs "head1"; woohoo!

so if you keep seeing instance22, or instance286 instead of the instance name your looking for,. try the above.
if it still doesn't work, then something else is wrong,...

;}

Thursday, November 20, 2008

processing - flash integration amazing

i have been looking at processing.org for a while now and i've finally jumped in headfirst.

Incredible.

I am blown away at the "sketch" mentality of this language and it's sizzling performance.

Super cool, super fast prototyping will never be the same.

Being a flash developer by trade for many years, all i kept thinking was how do i get this into flash?...
well my questions were answered with a great post from

an as3 port i found created earlier this year is located here on googleCode.
It's an as3 api that allows for the inclusion of js files to be loaded into a swf container via javascript.
SUPA cool huh?

i've only scratched the surface of processing, which is still in beta after 4 years, yet i can't wait to keep working with it and i'm really excited to progress with it's ever developing features and functionality.

The community behind it is also extremely helpful and sharing.

Keep up the great work guys and thanks for an awesome, awe-inspiring extension of my third-eye.

Thursday, October 23, 2008

Papervision 2.0 InteractiveScene3DEvent Gotcha

So has anyone spent any real time frustrated as to why something simple like :

item.addEventListener(InteractiveScene3DEvent.OBJECT_PRESS, planeClicked);

public function planeClicked(ev:InteractiveScene3DEvent) {
trace("planeClicked");
}

isn't working??

Well I have just finished spending time(1.5+ hours) on something such as this, so you may be in luck having now found this, if you happen to be in a similar situation.

yes, yes you have already tried to make the Material's interactive property true,
or the plane's interactive to true, etc,
whatever.

What i forgot about was the viewport. DOH!

viewport.interactive = true;

fixed.
I love this stuff..

Wednesday, October 8, 2008

i'll vote for "that one"

Wow.
I swear I can SEE his 72 year old synapses firing like they are that old.
Standing next to the next president, he's exactly what he appears to be:
An old man, with old views and deep seeded anger, the maverick who can't debate to save his life, nor understand and relate to the generation that's going to push his decrepit ass out of this race on November 4th.
How frustrated it makes me to listen to him utter over and over " Obama wants to attack Pakistan". Yet the way Barack handled it, as he has again and again, was superb, cool and collected.
Barack moves me in way I have never felt before. He has, and I want to shout it, moved me to tears on several occasions.

I love this race. I love Barack Obama.

Make sure all who feel the same actually go out and vote,....
McCrazy is not the future. And now he's scared, and he should be.

All hail!, Barack the VOTE.

Thursday, August 21, 2008

flashforward and arrowLove





Whenever I doodle I draw arrows. Usually the same type, an ever-branching system of four-stroke arrows that continue to spiral out. I’ve never really thought much about it, just seeing it as an ever-present need for direction and expansion.

Years ago, when I started seeing the arrows for flashForward I was instantly intrigued, thinking it was my dream environ for TWO of my great passions—Flash and arrows.

The first day of this event has been nothing short of inspirational. From magnificent, awe-inspiring Hodgin visualizations to Miha Pogacnik's metaphorical Bach brilliance and chaos perspectives in the lifespan of a creative mind.

Reminded of the passion in me, I was beginning to forget about.

Reminded of why I love what I do and how cool Flash was, is and will continue to be.

Inspired to a "future that is present" as Craig Swann so succinctly described—all the decisions for our future are decided as soon as we make them, start now and marry what you eventually want with what you do right now.


So far it's great. I feel this is exactly what I was looking for.

Friday, August 8, 2008

Stone Balance at Gem Show


I had the pleasure of being invited to balance stones at a Gem/Fossil Show last weekend. My father snapped a handful of pics that can be seen here, please check them out if you have a chance...

I'm progressively getting more and more addicted to this pastime, and it's excitement is growing. I was amazed at the response I received and the crowds I drew just balancing stones...

I will have more pics to post soon.