Creative TextFX v2 Forum


box Creative TextFX v2
With Creative TextFX v2 you can create stunning text effects in FLASH. This Flash component gives you access to more than 300 predefined text effects that are customizable from the user interface or directly with ActionScript elements - properties, methods, constructor parameters and events - thoroughly documented in the complete product manual or in the Contextual Help.

Find out more about Creative TextFX v2

Thread: Prevent Out-Effect on condition

title left
User Details
message
title right
Juergen Ragaller

post date:
2010-06-11 03:44:09
Hi there!rnrnI have a textFX instance on Stage with "in" "wait" and "out" effects (Named MainText).rnrnWhen a user interacts with the text (hovers over some word) the out stage of the textFX instance must not be executed. How can I do that?rnrnThanks for helprnJürgen
Andrei Rinciog [Extend Studio]

post date:
2010-06-14 05:18:30
Hello,

You can set the TextFX property "useOut" to false when the user hovers the word.Try that and tell me if you need more help.

Also, check the actionscript dictionary from our documentation for all the properties and methods available.


Regards,
Andrei Rinciog
Juergen Ragaller

post date:
2010-06-14 05:48:55
Hi Andrei

I just tried that - without success. The out stage is still performed.

Code: MainText.useOut = false;

Is it possible that once the animation starts (an the effect chaning is in the waitEffect stage) setting that property will not affect the movie anymore?

Thanks again
Jürgen
Andrei Rinciog [Extend Studio]

post date:
2010-06-15 05:00:36
Hello again,

I've made a script example to show you how to do this. I've placed a TextFX instance on the stage with the default configuration, with the three effects in, wait and out. And I have a button on the stage and when it's pressed it disables the out effect. I've also added an event listener that checks if the TextFX component has been initialized before I try to change that option. If the TextFX component has not reached the out effect yet it will disable it.


import xtd.textFX_v2.ComponentTextFXEvent;
import flash.events.MouseEvent;

var tfxloaded : Boolean = false;
var disableOut : Boolean = false;

tfx.addEventListener(ComponentTextFXEvent.INIT, listener);
function listener (e : ComponentTextFXEvent ){
tfxloaded = true;
execDisable();
}

button.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(e:MouseEvent):void {
disableOut = true;
execDisable();
}


function execDisable() : void {
if(tfxloaded && disableOut) {
tfx.textFX.useOut = false;
}
}


Regards,
Andrei Rinciog
Juergen Ragaller

post date:
2010-06-15 08:09:34
Hi Andrei

So far I do understand the above code.
Is it possible to stop tfx after the wait effect is over?

Thanks so much
Jürgen
Andrei Rinciog [Extend Studio]

post date:
2010-06-17 04:27:24
Hello,

I'm afraid that's not possible. If there is anything else I could help you with.

Regards,
Andrei Rinciog