Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-17-2003, 12:39 PM   #1
Biscutty
Member
 
Join Date: Jul 2002
Location: London
Posts: 91
Default targeting layers?

Hi, I have used the loadMovieNum command to load a movie to _level2 of my movie.

Is there a way to target the layer from the main timeline (_layer0) as you would a MC?

ie.:

on(release) {
_level0._layer2.gotoandPlay("hello"
}

thanks for the helps
Biscutty is offline   Reply With Quote
Old 03-17-2003, 02:48 PM   #2
merciless
Registered User
 
Join Date: Mar 2003
Posts: 20
Default

You almost have it. Im not sure why you are calling _level, _layer theres no such thing.

Since this script is on _level0 you dont have to add it to your script path. _level2 is a seperate independant entity to _level0

on(release) {
_level2.gotoandPlay("hello" );// target main timeline of _level2
}
merciless is offline   Reply With Quote
Old 03-17-2003, 03:05 PM   #3
freddycodes
Master of Nothing
 
Join Date: Dec 2002
Location: San Diego, CA
Posts: 2,468
Default

And of course its
ActionScript Code:
gotoAndPlay()

not

ActionScript Code:
gotoandPlay()
freddycodes is offline   Reply With Quote
Old 03-17-2003, 04:15 PM   #4
Biscutty
Member
 
Join Date: Jul 2002
Location: London
Posts: 91
Default thanks

Hi thanks for the help, it seems my problem was with amy calling of a function and not the pathing after all..
Biscutty is offline   Reply With Quote
Old 03-20-2003, 11:11 PM   #5
artmar23
Registered User
 
Join Date: Nov 2002
Location: Mexico
Posts: 8
Exclamation well

what happend if i want to play diferents level from inside a mc???
artmar23 is offline   Reply With Quote
Reply


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:23 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.