Hey Ryan,

Maybe you can throw in a for loop to find and stop each clip:

for(var i in _root) {
        if(typeof(_root[i]) == "movieclip") {
                _root[i].stop();
        }
}

Not a really clean solution 'cos it'll eat processor like crazy if you
have a lot of elements in the root, but worth a try.

Cheers,
Grant

-----Original Message-----
From: Ryan Sabir [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 9 November 2004 10:38 AM
To: Flash Developers List
Subject: [fugli] Pausing a Flash movie



Hey all,

I've got a Flash movie with numerous animated movieclips in it. I've
been asked to add a pause function to it now.

Am I right in thinking I will need to send a stop() to all the embedded
movieclips? Is there a simple way to go through all the clips and pause
them, then restart them when the user unpauses?

At the moment my pause just stops the main timeline, but all the
embedded clips keep running.

thanks...

-----------------------
Ryan Sabir
Newgency Pty Ltd
2a Broughton St
Paddington 2021
Sydney, Australia
Ph (02) 9331 2133
Fax (02) 9331 5199
Mobile: 0411 512 454 http://www.newgency.com/index.cfm?referer=rysig 


---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

---
You are currently subscribed to fugli as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to