Home
> FlashEff 2.0
> Topic
hiding effect
Posted by msudallas
hiding effect September 17, 2011 06:53PM | Registered: 14 years ago Posts: 6 |
I just finished writing a program that shows an effect and then hides it. My code works great, but the effect decides to hide on its own without a cue. Everything is in AS3. Below is my FlashEff code. I call the functions showIt and hideIt to trigger show and hide.
Anyone else having this problem? I think its a bug in FlashEff. If I am doing something wrong, let me know. HELP!
import com.jumpeye.Events.FLASHEFFEvents;
import com.jumpeye.flashEff2.text.scramble.FETScramble
var effect:FlashEff2Code = new FlashEff2Code();
addChild(effect);
var showEffect:FETScramble = new FETScramble();
effect.showTransition = showEffect;
var hideEffect:FETScramble = new FETScramble();
effect.hideTransition = hideEffect;
function showIt () {
trace("showing it");
effect._targetInstanceName = "theText";
effect.show();
}
function hideIt () {
trace("hiding it");
effect._targetInstanceName = "theText";
effect.hide();
}
Anyone else having this problem? I think its a bug in FlashEff. If I am doing something wrong, let me know. HELP!
import com.jumpeye.Events.FLASHEFFEvents;
import com.jumpeye.flashEff2.text.scramble.FETScramble
var effect:FlashEff2Code = new FlashEff2Code();
addChild(effect);
var showEffect:FETScramble = new FETScramble();
effect.showTransition = showEffect;
var hideEffect:FETScramble = new FETScramble();
effect.hideTransition = hideEffect;
function showIt () {
trace("showing it");
effect._targetInstanceName = "theText";
effect.show();
}
function hideIt () {
trace("hiding it");
effect._targetInstanceName = "theText";
effect.hide();
}
Re: hiding effect September 17, 2011 07:12PM | Registered: 14 years ago Posts: 6 |
Re: hiding effect September 19, 2011 01:29PM | Admin Registered: 15 years ago Posts: 547 |
If you set both show and hide effect the component will automatically do them both. If you don't want to the hide effect to start, use
showAutoPlay and hideAutoPlay properties instead of calling show and hide methods.
showAutoPlay and hideAutoPlay properties instead of calling show and hide methods.
import com.jumpeye.Events.FLASHEFFEvents; import com.jumpeye.flashEff2.text.scramble.FETScramble var effect:FlashEff2Code = new FlashEff2Code(); addChild(effect); effect._targetInstanceName = "theText"; var showEffect:FETScramble = new FETScramble(); effect.showTransition = showEffect; var hideEffect:FETScramble = new FETScramble(); effect.hideTransition = hideEffect; function showIt () { trace("showing it"); effect.showAutoPlay=true; effect.hideAutoPlay=false; } function hideIt () { trace("hiding it"); effect.showAutoPlay=false; effect.hideDelay=0 effect.hideAutoPlay=true; }
Re: hiding effect September 19, 2011 02:36PM | Registered: 14 years ago Posts: 6 |
Sorry, you do not have permission to post/reply in this forum.