FORUMS: list search recent posts

How to make flash clip stop after playing 30 second?

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Debra Chiang
How to make flash clip stop after playing 30 second?
on Aug 18, 2009 at 9:34:53 pm

Hi everyone,
I'm creating a media samples for a project, and need the movie clip to stop automatically after a 30-second play.

There are 2 samples, one with music, the other without. The music is about 3 minute, and the effects I used for the sample keeps looping.

And think there will be two things to deal with:
1. the looping flash effects
2. the music

What action script / function can I use to make it happen?

Thank you


Return to posts index

demetri tashie
Re: How to make flash clip stop after playing 30 second?
on Aug 19, 2009 at 1:51:49 pm

create a 30 second Timer and have it start at the onset of the movie-clip ( you can place it on the first frame of the movie clip, or on the main time-line itself)

the function triggered by the Timer then includes your 2 requests:

movieclip.stop(): or: stop(); if the code is placed inside the movieclip

and

SoundMixer.StopAll(); or if you created a specific sound channel, call a stop to that.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]