Newgrounds.com — Everything, By Everyone.

Checking login status…

USERNAME:

PASSWORD:

Logging in…

Logged in as:
.
Logging out…
Inbox My Account Log Out


Forum Topic: Just a simple question?

(63 views • 4 replies)

This topic is 1 page long.

<< < > >>
None

littlemaster

Reply To Post Reply & Quote

Posted at: 5/12/08 12:06 AM

littlemaster LIGHT LEVEL 09

Sign-Up: 12/02/06

Posts: 280

If I want to go to another frame when a movie clip hits its last frame then do I use root. inside the movie clip in its last frame to make it know its in the main timeline or something.

A dog rules while a god drools or is that the opposite?

BBS Signature

None

Coaly

Reply To Post Reply & Quote

Posted at: 5/12/08 12:22 AM

Coaly FAB LEVEL 20

Sign-Up: 08/11/04

Posts: 2,472

At 5/12/08 12:06 AM, littlemaster wrote: If I want to go to another frame when a movie clip hits its last frame then do I use root. inside the movie clip in its last frame to make it know its in the main timeline or something.

_root is like the main timeline's reference... for lack of a better explanation. So in order to change the main timeline's frame then yes you need _root. So you could put _root.gotoAndPlay(frameNumberHere); (or _root.gotoAndStop();) on the last frame of the movieclip and it will change the main timeline's frame.

profile | pm me | sig by bomtumes

BBS Signature

None

littlemaster

Reply To Post Reply & Quote

Posted at: 5/12/08 12:24 AM

littlemaster LIGHT LEVEL 09

Sign-Up: 12/02/06

Posts: 280

Let me repeat my statement and make it easier. If I would like to go to another frame in the main timeline but the script is inside a movie clip then do I use root cuz It doesn't work for me.

A dog rules while a god drools or is that the opposite?

BBS Signature

None

littlemaster

Reply To Post Reply & Quote

Posted at: 5/12/08 12:25 AM

littlemaster LIGHT LEVEL 09

Sign-Up: 12/02/06

Posts: 280

I posted late.

A dog rules while a god drools or is that the opposite?

BBS Signature

None

Coaly

Reply To Post Reply & Quote

Posted at: 5/12/08 12:35 AM

Coaly FAB LEVEL 20

Sign-Up: 08/11/04

Posts: 2,472

At 5/12/08 12:25 AM, littlemaster wrote: I posted late.

I already answered your question, pretty thoroughly... You need _root.gotoAndPlay(number); to change the main timeline's frame.

profile | pm me | sig by bomtumes

BBS Signature

All times are Eastern Daylight Time (GMT -4) | Current Time: 05:12 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!