Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 4th, 2003, 02:29 AM
msabo msabo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 1 msabo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Problem Stopping Movie Clips

I have a movie in which I load multiple movieclips. The movie clips play in a continuous loop.

I am trying to stop the movie clips and am having a problem. Since I do not know how many clips I have loaded I need to close them in a loop similar to this:

for(x=0; x<=../:TotalClips; x++) {
eval("clip"+x).stop();
}

The problem is that only the first movie gets stopped. In debug mode after executing the eval statement once, the code takes off again even though I was stepping though it.

Find note, If I were to write the code as
eval("clip" + 0).stop();
eval("clip" + 1).stop();

it will work.

Any ideas? I have only been using flash for a couple of days now (MX version) so I might be missing something obvious

Thank you in advance

Reply With Quote
  #2  
Old July 8th, 2003, 11:13 AM
SlankenOgen SlankenOgen is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: The Netherlands
Posts: 122 SlankenOgen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
/:varName is deprecated. Instead use _root.mcA.mcB.varName (ie. the full path from the root)

var x = _root.mcA.mcB.varName;

for(var i = 0; i < x; i++){

_root["clip"+i].stop();

}
__________________
~mgb

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Problem Stopping Movie Clips


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway