Important! All new questions are usually answered within the next business day.

MCTE V3 (MovieClip Transition Effect V3)

(views: 7740)

A transition effect component with lots lots of flash animation effects already included and lots of patterns sold separately. Here are all known common issues for MCTE V3, the custom patterns are treated here too. If you have any questions that you think we should discuss here please let us know. Write to support.



how to instantiate the MCTE component through Actionscript

(2007-07-05 - views: 2238)

Q: I recently purchased the MCTE component. It works great, I just can't figure out how to instantiate the component through Actionscript, i.e. WITHOUT having to drag it on stage (it is of course, already in my Library).
A: You can instantiate the MCTE from ActionScript, dynamically or statically using the following syntax:
var myMCTEInstance = new MCTE(targetInstance, [autoPlay:Boolean, transitionType:String, [patternName:String, preset:String, gain:Number, tweenType:String, easeType:String, tweenDuration:Number, customParam1:String, customParam2:String, customParam3:String, customParam4:String, customParam5:String] ])

eg.
new MCTE(myMovieInstance);

or

var myMcte = new MCTE(myMovieInstance, true, "show", "Stripes", 6, 16, "Strong", "easeInOut", 25);


Note. You can code on a MCTE instance even after you drag&drop it manually over the MovieClip. The MCTE should perform very intuitively, you should try to use it as you feel it to, and if you have questions don’t hesitate to contact our support team.



User Comments

Unclear as to syntax…
posted by robertnyc on 2008-05-02

I'm trying the above but getting various warnings and errors. In the sample code you have above

var myMcte = new MCTE(myMovieInstance, true, "show", "Stripes", 6, 16, "Strong", "easeInOut", 25);

What does "6" represent?

It seems in the syntax provided, you want to pass two arrays in. I tried that

var myMCTEInstance = new MCTE(cloud_mc, [true, "show", ["squareScale","", 100, "Regular", "easeOut", 5, "", "", "", "", ""] ])

and it works but I get this warning from the AS3 compiler:

**Warning** Scene 1, Layer 'Layer 2', Frame 1, Line 8: Warning: 3590: Array used where a Boolean value was expected. The expression will be type coerced to Boolean.
var myMCTEInstance = new MCTE(cloud_mc, [true, "show", ["squareScale","", 100, "Regular", "easeOut", 5, "", "", "", "", ""] ])

But if I follow more your example and use

var myMCTEInstance = new MCTE(cloud_mc, true, "show", "squareScale","", 100, "Regular", "easeOut", 5);

I get this warning:

MCTE V3WARNING: The Pattern:MCTEPatternsquareScale is unavailable.

Can you help me figure this out?

Also, what other AS3 calls are permitted on the component? I do most of my development solely in AS3 (i.e. not timeline) and would welcome any documentation, hints, links as to how to use the component in this way. Thanks! Robert

Addendum…
posted by robertnyc on 2008-05-02

I've been looking through the examples -- one further question: how to you set _targetInstanceName if the target is not on stage? I'm instantiating a custom class and setting targetInstanceName to the variable name, and then tried it using the "name" of the instance, and neither work. I get "target does not exist"

Thanks
MCTE syntax
posted by negush on 2008-05-05

The value "6" from the MCTE constructor represents the preset of the pattern and it's not an element of any arrays. The MCTE constructor uses a list of parameters and not arrays. Also the last error message you mentioned (MCTE V3WARNING: The Pattern:MCTEPatternsquareScale is unavailable.) means that the pattern you want to use was not found in the Library. You need to have the patterns you use, placed inside the Library.

For more information about the MCTE component please see the corresponding tutorials and documentation: http://www.jumpeyecomponents.com/Flash-Components/Transition-Effects/MovieClip-Transition-Effects-V3-45/, "How to use" tab.


Login to post your comment login to post your comment



Back

Knowledge Base Search

Enter keywords bellow:
Advanced Search

Menu

FlashEff Premium Special Offer



Get your FlashEff Premium Now!

Free Trial Versions

The trial versions do have a major limitation. They will ONLY run into debugger flash player versions, such as the Flash IDE player and the activeX FP used by developers.

Switch from Free Trial version to Full version.

You can switch from Trial to Full versions in a blink of an eye.
See this tutorial in order to find out how.

We accept Google Checkout

Google Checkout Acceptance Mark

Secured by VeriSign

Translate this page