Knowledge Base |
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.
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.
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
Addendum…
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
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
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.
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
Other questions in this item:
MCTE + Loader Pro V3 slide show Apply 3D Cube transition without using actionscript Apply Flip transition using code MCTE is working, but not properly MCTE+Loader Pro+3DCube Create MCTE and Loader v3 using code Apply 3D Cube transition using actionscript Apply the MCTE by pressing a button Multiple transitions using ActionScript code Transition between two movie clips using Blur 3D Cube effect Apply Flip transition with no code Remove MC after it plays Use SquareLight Transtion using AS to create slideshow Component Now Showing up in AS3? Multiple transitions using frame by frame animation Using animated movieClips tweenDuration:Number Using MCTE in a class based environment MCTE V3 using videoclips Apply Flip transition using code MCTE + LoaderProV3 + Multiple transitions Trial version message Solid Red Window Set up MCTE with a XML file Shadow to target clip Shadow to target clip Setup MCTE from .xml file MCTE hides text written with Arial from stage MCTE hides text written with Arial from stageMenu |
|
|


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