Creative MovieFX v2 Forum


box Creative MovieFX v2
Creative MovieFX v2 is a Flash effects component that offers the ability to apply effects on any movie clips. From the user friendly interface it?s very easy to browse the over 280 predefined effects gallery and apply them on the three transition types available (In effects, Out effects, and Wait effects) without writing a line of code.

Find out more about Creative MovieFX v2

Thread: Using actionscript help

title left
User Details
message
title right
Lee

post date:
2010-06-11 10:18:41
Hi

Does anyone have any code that I can look at on how to set up effects in AS3 and how to apply properties on different effects. I've taken a look at the pixelate sample on the site but can't seem to be able to understand how you apply, say, maxPixelSize for instance.

Is there anyone out there?
Andrei Rinciog [Extend Studio]

post date:
2010-06-14 04:59:41

Hello Lee,

Here's a list with all the parameters for each effect: http://www.extendstudio.com/documentation/creative-moviefx-v2/documentation/docs/effects-parameters.html

The parameters for each effect are added in the constructor of the MovieFX class. They are added as strings with properties separated by commas. Here are the parameters that are received by the MovieFX constructor: http://www.extendstudio.com/documentation/creative-moviefx-v2/documentation/docs/classes/class-moviefxmain-parameters.html

Tell me if you have more questions.

Regards,
Andrei Rinciog
Lee

post date:
2010-06-14 10:16:08
Do you have example code of applying the firefly effect that I could take a look at?

Thanks
Andrei Rinciog [Extend Studio]

post date:
2010-06-16 07:59:47
Hello,

We don't have any example but I did a quick test and here's how you can set it up:

import xtd.movieFX_v2.effects.FireFlyEffect;
import xtd.movieFX_v2.presets.wait_FireFlyEffect;

var waitEffectName : String = "FireFlyEffect";
var waitEffectProperties : String = wait_FireFlyEffect.Extend_Default;
waitEffectProperties += ";numberOfFireFlies=10" +
";minimumAlpha=1" +
";maximumAlpha=1"
";minimumFireflyRadius=3.1" +
";maxNumberOfRotations=10";


mfx = new MovieFXMain(
target,
"PixelateEffect",
waitEffectName,
"PixelateEffect",
"NoneEffect",
in_PixelateEffect.Extend_Default,
waitEffectProperties,
out_PixelateEffect.Extend_Default,
actions_NoneEffect.Extend_Default,
movieFXMainConfig
);
mfx.container.x = 25;
mfx.container.y = 25;
mfx.start();

As you can see, I first load the default preset and then add to that string the properties that I want to change. This way you can make sure that the effect will look decent and you don't forget any property.

Regards,
Andrei Rinciog