|
User Details |
message
|
|
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
|
|