Thursday, July 8, 2010

Cue Points not working with your f4v ?

Recently encountered this technote from adobe reminding me why my cue points were not firing with my exported f4v,....

Go back to the good ole standard. FLV. the cue points work perfectly, and as they should.

Hopefully you haven't wasted too much time trying to figure out why they aren't there, when the Media exporter clearly shows them.

Cheers!

Monday, December 7, 2009

SoundTransform, Sound objects AS3 help

Another great gotcha, my aim here is to save someone a few min. banging your head against the keyboard wondering why your SoundTransform is not working with the Sound Object in as3. So the logical way to apply a sound transform, imo, would be to apply it BEFORE the soundChannel gets applied the sound object, thus starting the playback.

But of course, it works the other way around....

Apply the Sound Transform to the soundChannel object associated with the Sound Object AFTER the play function,. like so :

private var sc:SoundChannel = new SoundChannel();
private var req:URLRequest = new URLRequest("someSound.mp3");
public var bk_music:Sound = new Sound(req);

function startMusic():void {

var transform:SoundTransform = new SoundTransform(.2, 0);
// sc.soundTransform = transform; ////THIS IS INCORRECT, DOH !
sc = bk_music.play();
sc.soundTransform = transform; /// correct placement of soundTransform... :}
}

This only wasted about 45min of my life,....just the op order of the soundTransform object.
Hope someone else saves some time when they finally get to this post...



btw: in case anyone is wondering how to start /stop their sound after getting the soundTransform to work, add some eventlisteners and control the soundChannel object very simply :

public function quietMusic():void {
sc.stop();
}
public function loudMusic():void {
sc = bk_music.play();
}


enjoy, frustrated flashers!

Thursday, February 12, 2009

alpha not working gotcha papervision 2.0

Ever try to work with the alpha property in Papervision 2.0 and you're just banging your head against the wall, frustrated as to why it doesn't work?

try:
DisplayObject3D.useOwnContainer = true;

I hope this saves someone else some time, as it took me quite a while to figure this one out...the documentation is still a little few and far between for Papervision, but it's coming along....

Happy flashing.

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..