Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-14-2003, 02:50 AM   #1
thumperg_04
Registered User
 
Join Date: Mar 2003
Posts: 3
Send a message via AIM to thumperg_04
Default Linking scene to MC

Linking Scene with MC?
OK, so i have been making my buttons out of MC's and scripting their actions. I have been trying to script one of my MC's to link to a scene. When I test, nothing happens, code is...

on(press){
gotoAndStop("myScene",1);
}

pretty simple,yes...
I was wondering if it was even possible to link an MC to a scene? (I did a test button and it worked fine)

I have tried labeling the first frame on the next scene and trying the goto action, nothing. I dont have a stop action on the first frame of the next scene.
If I have other MC's inside my main one could it be confusing the code or the "hit" area of the main MC?
Please Help
Greg
thumperg_04 is offline   Reply With Quote
Old 03-14-2003, 03:48 AM   #2
oldnewbie
Banned by AS.org Staff
 
Join Date: Mar 2002
Posts: 10,533
Default

You can't really target scene names from movie clips or from movies loaded on other levels. You were on the right track, when trying to use frame labels, but you do also have to add _root (from movie clips) or _level0 (from movies loaded on other levels) to the path...

Thus...

ActionScript Code:
on(release){     _root.gotoAndStop("frame_label"); }
oldnewbie is offline   Reply With Quote
Old 03-14-2003, 04:58 AM   #3
thumperg_04
Registered User
 
Join Date: Mar 2003
Posts: 3
Send a message via AIM to thumperg_04
Default

tanky tanky so much!
thumperg_04 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 02:33 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.