Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-08-2005, 11:02 AM   #1
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) {

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

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

Originally Posted by bhang!

on (release) {

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

Try this:
ActionScript Code:
on (release) {     unloadMovieNum(2);     _level0.gotoAndStop("welcome"); }
Egg is offline   Reply With Quote

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 08:48 AM.

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.