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 February 10th, 2004, 08:12 PM
shriek shriek is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 4 shriek User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
controling other movie clips or loaded movies

Hi, I don't really know how to search for this answer, but I know it must have already been asked.

How can I address a certain movie.clip or loaded movie from inside another movie clip? By assigning names to every movie I want to control?

The situation is: I have a movie with lots of movieclips (most of them fading in/out), then I load an external swf by clicking a button (this button fades out). Then in this newly loaded movie I have a button that let me go back (unloading the swf). But I also need to right a code so that the previouslly faded out button fades in again. The problem is that it is outside the external swf and worst... the fading sequence is inside a movie clip.

I know there are countless ways of doing what I'm doing without having to control a clip from inside another clip. But I wanted to learn how to do it (if it is possible at all!)

Reply With Quote
  #2  
Old February 10th, 2004, 10:16 PM
timothye timothye is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Sweden/Sverige/USA
Posts: 134 timothye User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
if your inside a mc and you want to control another mc ..
just call to its level ..
example
Code:
 
myBtn.onRelease=function(){
_root.otherMc.gotoAndPlay("whatever");
};

as fo the fade in on the other btn.
when the new btn appears and when that is clicked have it fade the other btn on be _visible.
Code:
myBtn.onRelease=function(){
_root.otherMC.gotoAndPlay("whatever");
myhiddenBtn.visible=true;
};

this should work i havent tested it as i usally do .but if you run into problems ill check back !
cheers m8 ..

Reply With Quote
  #3  
Old February 11th, 2004, 05:57 AM
shriek shriek is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 4 shriek User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks!
I didn't do exactly what you told me but it worked!

Yesterday I was not being able to use the instance name to address a button or MC because I was not telling whether it was _root or _parent or whatsoever.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > controling other movie clips or loaded movies


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 5 hosted by Hostway