Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-08-2005, 11:02 AM   #1
bhang!
Registered User
 
Join Date: Apr 2005
Posts: 1
Default Controlling the main.swf from a loaded sub.swf

Hi All

Hope you can help me. I am loading a subMovie in to a mainMovie onto level 2 using the loadMovie command, I am trying to control the mainMovie from within the subMovie. ie When I click a button in the subMovie I want it to unload the subMovie and go to a specific frame lable in the mainMovie this is what I am doing but it aint working pls help

on (release) {
_root.gotoAndPlay("welcome"); ('welcome' is in mainMovie)
}
on (release) {
unloadMovieNum(2);
}




d
bhang! is offline   Reply With Quote
Old 04-08-2005, 11:49 AM   #2
badlorry
Registered User
 
Join Date: Feb 2005
Location: London
Posts: 177
Default

looks to me like you have conflicting event code (ie. 2 release events) for a single object. Have you tried it like this?


Quote:
Originally Posted by bhang!

on (release) {
_root.gotoAndPlay("welcome");
unloadMovieNum(2);
}

d
badlorry is offline   Reply With Quote
Old 04-10-2005, 01:28 PM   #3
Egg
Senior Member
 
Join Date: Nov 2003
Location: Harwich. UK
Posts: 135
Default

bhang.
Try this:
ActionScript Code:
on (release) {     unloadMovieNum(2);     _level0.gotoAndStop("welcome"); }
Egg
Egg 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 11:04 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.