I recently downloaded a shiny text effect which works great except that it runs
continuosly.
It is made of 3 movie clips. I would like the text effect to run a few times
and then stop. However if I enter a stop action in all three movie clips the
effect only runs once.
Can someone suggest how to run this effect only a few times and then stop?
Thanks
sh93:confused;
margotdarby - 20 Jul 2008 00:44 GMT
Put all three movie clips into a single mc with a stop action at the end.
Depending on the effect you want, you could either repeat the clips a few times
before the end of the mc timeline and then put in your stop(); and save the
movie clip and use it that way...or you could put each clip in only once, then
use the resulting mc over and over in successive frames on the parent timeline.
Note: if you use this latter method you will have to resave and rename the new
mc in different, successive versions and put in another line of code so the
movie will jump to the next version. For example,
firstClip: //the effects play once
stop();
gotoAndPlay(timeline frame for secondClip);
secondClip: //the effects play again
stop();
gotoAndPlay(timeline frame for thirdClip);
etc. etc.
sh93 - 22 Jul 2008 23:49 GMT
Hi Margot: thanks for the help. I think I can work with the "go to and play".
This is a text effect done with a mask. My text runs tree lines ( Welcome - to
- My House). So I would like the effect runnning at the same time on all tree
lines. (which are on 3 mcs and then combined into the one on the main scene)
The starry text fla I got is made of three mcs combined in one scene. I did
add the action as you suggested (it sounded great) but it did not seem to
affect anything. It kept running anyhow.
I have the fla file but there is no script because the effect is achieved with
tree different color bars and one light that runs through as a mask.
Thanks for any help
sh93
margotdarby - 21 Jul 2008 03:44 GMT
You could also do it largely in code, but that might be overkill. If you're
working in AS3, it might be fun to test the clips using the AS3 Timer class...
var timer:Timer = new Timer(delay:Number, repeatCount:int);
This would give you a quick way to test out how the effects looked when
repeated various times at different intervals.
For example, if you wanted to try running the clips 3 times with a second
interval, you'd go...
var myTestTimer:Timer = Timer (1000, 3);
myTestTimer.addEventListener(TimerEvent.TIMER, onTimer);
myTestTimer:start();
function onTimer(evt:TimerEvent):void {
[and here you set up and play your movie clip sequence]
}