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: Default Patterns not loading when using AS

title left
User Details
message
title right
Matt Burch

post date:
2008-05-13 15:48:19
I've run into something that may be a bug. I am dynamically creating a new component instance using AS in my application every 30 seconds or so. Everything seems to be working fine except that some default effectParam properties aren't working correctly.

For example, in your "Working_With_ActionScript_1.fla" example file, if I using the MaskWave effect, it works, but isn't going in the default "Sprial CW" direction that's indicated in your MaskWave class. However, if I drag a component instance onto a mc on the stage ("normal" use), it will go in the spiral direction like it should.

I've noticed this with a couple other patterns. It seems like if the component is instantiated and configured strictly using AS, it's not transitioning itself in the order that it should. Can you please advise? Thanks.
Jon Stanciu [Extend Studio]

post date:
2008-05-14 08:04:54
Hello Matt,

You are right; for some effects, when instantiating CMFX directly from ActionScript, there are properties which have as defaults different values than the ones in the user interface.
Nevertheless, all the effects can be fully configured very easily by using our NEW product documentation; you can access it by following the link below:

<a href="http://www.extendstudio.com/documentation/creative-moviefx/" target="_blank">Creative MovieFX NEW Documentation</a>

In order to obtain the fastest results, I recommend the following procedure: locate the effect and its parameters in the "Available effects" section of the documentation and use the ActionScript Dictionary to get the AS name of its properties (use the "Parameters>The Effect Parameters tab" section). Afterwards, configure the effect to get the desired result.

I wish you good luck and I hope Creative MovieFX helps you obtain the best results in your projects!

Kind regards,
Jon Stanciu
Matt Burch

post date:
2008-05-14 10:58:13
Hey Jon, thanks for your reply. The new documentation is great. Unfortunately, I don't believe I was clear enough in my description. The issue is that I'm unable to configure certain effects to behave correctly at all. Let's continue using the MaskWave effect. If you use this modified code in your Working_With_Actionscript_1.fla example file:


_global["MaskWaveEffect"] = xtd.effects.movieclip.MaskWaveEffect;
var initObj = new Object();
initObj.targetMC = _root.MyMC;
initObj._effect = "MaskWave";
initObj.effectParams = new Object();
initObj.effectParams.pDuration = 60;
initObj.effectParams.ordering = "Snake TopLeft CW";
initObj.effectParams.orderType = "Custom";
initObj.effectParams.wCuts = 5;
this.attachMovie("Creative MovieFX DEMO","me",10,initObj);
me.initEffect();

...you'll see it doesn't bring in the pieces in the 'Snake Top Left CW' order like it should, they all simply come in at once. Now, looking at the MaskWave class, the developer has indicated that if 'ordering' and 'orderType' aren't defined, it will default to a custom ordering, with a clockwise pattern, so I shouldn't have to even define those in order to get something other than all pieces coming in at once.

I think the issue may lend some hints at line #73 of MaskWaveEffect.as:

times = (orderType == "Custom")? obj.orderTweensByType(ordering) : obj.orderTweensByAngle(angle);

If I trace out 'times', it appears to be an empty string. For some reason, obj.orderTweensByType isn't returning anything. May be a good place to start looking. Thanks again.
Catalin Serban [Extend Studio]

post date:
2008-05-15 09:10:08
Hi Matt,
Please send us the fla file to see exactly what is happening,

Regards,
Catalin Serban

Matt Burch

post date:
2008-05-21 10:21:39
Catalin,

I'm unable to send the FLA because it's part of a very large project with a library of supporting classes. Like I said above, if you use your example FLA that's packaged with your product, "Working_With_Actionscript_1.FLA", and use the code I posted above, you will see this behavior. You should be able to use that FLA to determine the bug, since the behavior is exactly the same as in our project.

Please post with findings as soon as you can. Thanks for your reply.
Horea Radu [Extend Studio]

post date:
2008-05-27 04:17:31
Hello,

In the current version of MovieFX the default values are set through the interface so this is why the default values are not the same when using the component from actionscript. There are some XML files that contain the default values in the Flash configuration folder in the Extend/MovieEffects/effects_xml folder. You could use these files to get the default values from AS.

If you use the values in the XML files you should obtain the same result as if you have dragged the component on the stage.

Best regards,
Horea RADU.