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 23rd, 2004, 03:23 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 scripting problem

ok, I'm experienced with flash but there are certain scripts that I can't seem to grasp.

Here is my Dilema -

I am writing an interactive CDRom. In seen 1 (the interface) I have 2 Layers - Buttons and interface. I have the buttons converted to a movie symbol. The child to that is of the buttons scrolling down from the top of the interface. My problem is that when editing the child I want to be able to navagate back to the start of the Parent (interface) when I have clicked one of the buttons in the child state. I hope that all makes sence!

Could someone help me with a basic script please? I'm sure it's something easy I have overlooked but I seemed to have tried everything.

Thanks.

Reply With Quote
  #2  
Old January 23rd, 2004, 05:02 AM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,713 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: 9974 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 1 Day 10 h 25 m 58 sec
Reputation Power: 580
Facebook MySpace
Hi, if I think I understood you right this should do:
Code:
on(release)
   {
        _parent.gotoAndStop(1);
   }

That goes on the button itself. Dont click the frame, left click the button and open the AS window. Sorry, just in case you didnt know... if you want to play the parent from the start and not stop at the start use:
Code:
on(release)
   {
        _parent.gotoAndPlay(1);
   }
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
  #3  
Old January 23rd, 2004, 08:16 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 for that - I see it's going to work but I neglected to mention that there was a scene before the interface (the intro) and when using your script and pressing the button it plays that scene instead of the interface scene.

Any ideas?

Reply With Quote
  #4  
Old January 23rd, 2004, 11:34 AM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,713 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: 9974 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 1 Day 10 h 25 m 58 sec
Reputation Power: 580
Facebook MySpace
Hi, you could try labelling the frame you want to jump to.
Code:
 
on(release)
   {
        _parent.gotoAndPlay("myStarter");
   }

You can label them under frame properties.

Reply With Quote
  #5  
Old January 23rd, 2004, 04:46 PM
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
unfortunately that doesn't work either. It still goes back and plays the first scene instead of the second scene.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Parent Child scripting 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 5 hosted by Hostway