Show / Delay Problems

Posted by chrisrushingTW 
Show / Delay Problems
August 26, 2010 09:09PM
I have my animations activated in actionscript to myeffect.show(); and hide(); within a function.
I'm using the panel for all my animation tweaking.
2 issues...

1. Is there anyway I can set delays to them in this manner, in the action script?

2. When I go to a fire a function that has myeffect.hide(); in it... when "myeffect" is already hidden (and suppose to be hidden) it automatically plays the hide effect. In other words... I need myeffect.hide(); to ONLY work if "myeffect" is visible. There is no need to play the effect if its already invisible.
Re: Show / Delay Problems
August 26, 2010 09:30PM
Ok i figured out that i can do this for the 1st issue.

	myeffect.showAutoPlay = true;
	myeffect.showDelay = 5;

Not sure about the 2nd yet.
Re: Show / Delay Problems
August 27, 2010 02:06PM
Sort of got a start on the issue.

My flash file goes forward and backwards though an array of functions with the arrow keys (left, right).
Basically if i'm going back and a specific mc is already hidden... then i don't need it to animate the hide animation.

if (p.t_o1a.targetVisibility == true) {
          p.t_o1a.hide();
          p.t_o2a.hide();
          p.t_o3a.hide();
          p.t_o4a.hide();
     } else {
     }

But i can't find the best way to code this... nor get it to work even slightly.
If there is another parameter i should set this by... like with "if last slide == 2 , then do this... if last slide == 0 then do this."

Any help is appreciated.



Edited 1 time(s). Last edit at 08/27/2010 02:07PM by chrisrushingTW.
Re: Show / Delay Problems
August 30, 2010 01:32PM
Well, you can try to check if the target clip of the flasheff is visible or not.
if(yourClip.visible==false)
doFunction()

function doFunction(){
..................
}
Re: Show / Delay Problems
August 30, 2010 05:06PM
Yeah that doesn't work. Still just plays the mc.hide(); regardless.
Sorry, you do not have permission to post/reply in this forum.