Inverting animation in the Alternativa3D

Hi! If you wish to reverse (play from the end to the beginning) some of your animations in the Alternativa3D engine, you could try to set the AnimationClip‘s property speed to the negative value, but it could be harmful in most cases and don’t officially supported.

Unfortunately, there is no any information or suggests about inverting animations like so on the public yet and nothing about it in the official documentation. I think, current engine build (7.7) have no lightweight native implementation of this functionality. It could be nice to see something like boolean reverse property at the AnimationClip class, isn’t it? Bot there is nothing similar yet =(

So, with great tip from the Vladimir Babushkin (about rebuilding animation by keyframes with reversed time), I came to this piece of code:
Continue reading

Found a typo? Please, highlight it and press Shift + Enter or click here to inform me!

Share Button

FlashDevelop + Flash Pro IDE + AIR (quick tip)

Hello, friends!
I had to write some code in the FlashDevelop for my AIR app (builded from Flash Pro IDE) recently and there was a little tricky to force FD to recognize and work well with all AIR-related classes and code.
So, if you’re using FD for code writing and Flash IDE to publish you AIR app, you could create usual FD “Flash IDE Project”.
But that project type don’t support native AIR code and it could be annoying.
To add native AIR code support in your FlashDevelop Flash IDE Project, just add “+configname=air” to the Additional Compiler Options in the Compiler Options tab of your project properties dialog:

FlashDevelop project properties dialog

FlashDevelop project properties dialog

Hope it will be helpful for some of you.

Found a typo? Please, highlight it and press Shift + Enter or click here to inform me!

Share Button

New in the Flash Player 11 (Incubator) API

Hi! For sure, you already heard about FP11 Incubator build. And maybe watched and played some molehill-related demos already. And even you could write something three-dimensional with help of new playerglobal.swc. But new Flash Player version brings not just the low-level GPU API, but also many other nice functionality. I’d like to share all the Flash Player 11/12 related information, found in the prerelease Language Reference (~7MB) for the Incubator build.

Here it is: Continue reading

Found a typo? Please, highlight it and press Shift + Enter or click here to inform me!

Share Button

“Color blink” effect with TweenMax

You could create a nice and smooth “color blink” effect for any DisplayObject, including TextField instances with a few lines of the code using TweenMax:

import com.greensock.easing.Cubic;
import com.greensock.plugins.ColorMatrixFilterPlugin;
import com.greensock.plugins.EndArrayPlugin;
import com.greensock.plugins.TweenPlugin;
import com.greensock.TweenMax;

/* run this line only once (as example, you can put it into the main document's constructor or your initialization function) */
TweenPlugin.activate([ColorMatrixFilterPlugin, EndArrayPlugin]);

/*and use this line later to start blinking */
TweenMax.to(anyDisplayObject, 1, {colorMatrixFilter:{colorize:0x74F88E, amount:1}, repeat:-1, yoyo:true, ease:Cubic.easeInOut} );

By the way, be careful with TintPlugin or ColorTransformPlugin while tweening TextFields with TweenMax – you can notice some lags or jerks in the tween animation.

Found a typo? Please, highlight it and press Shift + Enter or click here to inform me!

Share Button

Snow…

So, this is a first post here.
Just launched this blog and personal site with one recent experiment.

Great thanks to:
Dan Gries for his perfect perlin-based snowfall engine
Christian Corti for his awesome AS3 Amiga Soundtracker Module Replay class (FLOD)
(it could be a flashModPlug, but sources or swc are not released to the public yet)
0xFFFFFF and Flastar for support and useful comments
– my girl for patience and care while I was busy with this experiment

If you like that Amiga snow and want it’s source – just comment here and I’ll see – maybe I’ll clean it a bit and prepare for a public.

Found a typo? Please, highlight it and press Shift + Enter or click here to inform me!

Share Button