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 January 28th, 2004, 02:04 AM
kiwirob kiwirob is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 20 kiwirob User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Parent/Child Problem.

Ok another problem -

I have 3 scenes in my swf. The first scene is the intro and the second is the interface. In the interface I have a child movie which I want to direct back to the 6th frame of the parent in the interface. I use the following code but what seems to happen is that it directs the swf. back to the 6th fram of the intro.

_root.gotoAndPlay(6);


Can anyone help please? Tann?

Reply With Quote
  #2  
Old January 28th, 2004, 06:30 AM
Tann San Tann San is offline
Gotta get to the next screen..
Click here for more information.
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,584 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 7835 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 5 h 44 m 35 sec
Reputation Power: 534
Facebook MySpace
Hi, don't know if I said this already but when using scenes you have to remember that when published they are all blended into one big scene. Try using frame labels instead of frame numbers. So name keyframe 6, i.e. "player" and use:

_root.gotoAndPlay("player");

or:

_parent.gotoAndPlay("player");

Hope that helps
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
  #3  
Old January 28th, 2004, 07:43 AM
kiwirob kiwirob is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 20 kiwirob User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks Tann,

It worked. Hopefully that should keep me troubleshooting free for a while. Then again who know's what's around the corner!

Reply With Quote
  #4  
Old January 28th, 2004, 01:27 PM
dnfGraphics dnfGraphics is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 4 dnfGraphics User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi guys,
I am having a similar problem and have tried the fix Tann suggested but it didn't work. I have a dropdown menu mc nested under the menu header mc. My code is:

_root.submenu2.button2.onRelease = function() {
_parent.gotoAndStop("Profile");
};

But the click doesn't work. (It's not that it goes to the wrong place, it doesn't do ANYTHING).

If it helps you can download the fla from URL to see what's going on.

I promised the client I would have this done yesterday, so any help is GREATLY appreciated.
THANKS.

Reply With Quote
  #5  
Old January 28th, 2004, 04:01 PM
Tann San Tann San is offline
Gotta get to the next screen..
Click here for more information.
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,584 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 7835 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 5 h 44 m 35 sec
Reputation Power: 534
Facebook MySpace
Hi, the link doesnt work. I've been playing with methods like this quite a lot recently. Sometimes I would experience similar problems when the parent clip has a similar handler. I think I had the problem with the .onRollOver event. I had to change the way my application worked to circumvent this. Does the submenu2 movie also have a onRelease() function?

Reply With Quote
  #6  
Old January 28th, 2004, 04:43 PM
dnfGraphics dnfGraphics is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 4 dnfGraphics User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi Tann,
I figured it out. I was having my action scripts in the parent level instead of the movieclip level. It was disgustingly simple and I'm a little embarrassed.

Thanks for coming to the rescue. It's great to know I'm not alone in this world.

Peace, Love & Prosperity,
David
URL

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Parent/Child Problem.


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