Welcome, Guest. Please login or register.
Did you miss your activation email?
June 18, 2013, 12:44:22 AM

Login with username, password and session length
Search:     Advanced search
The look of the forum is still being worked on. Thank you for your patience.
193707 Posts in 16235 Topics by 17079 Members
Latest Member: Kira_Nielyp

* Home Help Login Register
AppleGeeks.com  |  Help / Advice  |  Flash  |  Topic: Unload and Load movie scripting problem 0 Members and 1 Guest are viewing this topic.
Pages: [1] Go Down Print
Author Topic: Unload and Load movie scripting problem  (Read 5918 times)
DougofTheAbaci
Hero Member
*****
Posts: 6848


Just call me Audiophilus Magnum.


WWW
« on: July 10, 2004, 11:55:41 AM »

ok i'm having problems with some scripting.  here's what i have:

on (release) {
   unloadMovie(container);
   _root.mainmenu.createEmptyMovieClip("container",1);
   loadMovie("menu.swf","container");
   container._x = -8.8 ;
   container._y = 0 ;
}

in theory, this is supposed to unload then load a .swf file in another movie on my stage... but it doesn't want to be nice to me and work.  anyone see where i'm going wrong?
Logged

Quote from: Douglas Adams
It is a mistake to think you can solve any major problems just with potatoes.
Dark Prism
Sr. Member
****
Posts: 407



WWW
« Reply #1 on: July 10, 2004, 04:14:27 PM »

Well, where is the menu saved to? I would say you would want to make "menu" a movie clip instead of a .swf so that you can have the clip right in the main .swf, eliminating the problem of finding where the menu.swf is.
Logged

DougofTheAbaci
Hero Member
*****
Posts: 6848


Just call me Audiophilus Magnum.


WWW
« Reply #2 on: July 14, 2004, 01:16:42 PM »

nah the problem isn't that.  and by putting it into the main clip i increase my file size.  by having it as an external .swf i don't have that.  the problem comes when i try to load and unload it from another external .swf file.  though i think i can figure it out.
Logged

Quote from: Douglas Adams
It is a mistake to think you can solve any major problems just with potatoes.
Dark Prism
Sr. Member
****
Posts: 407



WWW
« Reply #3 on: July 14, 2004, 08:30:10 PM »

well if you want it online, you need to upload the menu.swf first, then put the link to it into your code to tell the script where the clip is coming from.
Logged

Hawk
Guest
« Reply #4 on: July 16, 2004, 08:05:25 PM »

Code:

on (release) {
unloadMovie(container);
_root.mainmenu.createEmptyMovieClip("container",1);
loadMovie("menu.swf","container");
container._x = -8.8 ;
container._y = 0 ;
}


Code:
unloadMovie(container);


I dont see a problem with that, would make sense to make sure there's a container movieclip to unload before actually unloading.

Code:
_root.mainmenu.createEmptyMovieClip("container",1);


ok, so you're creating a new empty movieclip inside mainmenu movieclip.

Code:
loadMovie("menu.swf","container");


hmmm this is weird. you're saying load the movie menu.swf into container. but don't you have to give the path where "container" exist?

like this...

_root.mainmenu.container.loadMovie("menu.swf");


i believe thats the problem.

Code:

container._x = -8.8 ;
container._y = 0 ;


same thing here. you created container inside another movieclip...you need to give the path to it.
Logged
Turro
Full Member
***
Posts: 224


« Reply #5 on: July 17, 2004, 02:38:10 AM »

You know flash too, Hawk?
What you use it for?

Sorry, if somebody asked this before...
Logged

Turro is back! tell your friends, your family and your sister. Especially your sister.
http://www.newgrounds.com/bbs
http://lgforum.jacklandstudios.com/
DougofTheAbaci
Hero Member
*****
Posts: 6848


Just call me Audiophilus Magnum.


WWW
« Reply #6 on: July 18, 2004, 11:28:59 AM »

he had this crazy colour thing once... or was that machall? but thanks i'll give it a go and see if it works.

once i've got enough of it up and running i'll post a link for people.  right now the only section that actually has anything other then an under construction post on it is the links section. once i have a few more sections done i'll post to see what you guys think.
Logged

Quote from: Douglas Adams
It is a mistake to think you can solve any major problems just with potatoes.
Hawk
Guest
« Reply #7 on: July 18, 2004, 11:37:17 AM »

Quote from: Turro
You know flash too, Hawk?
What you use it for?

Sorry, if somebody asked this before...


I do Flash at work

http://www.applegeeks.com/temp/Artt891/index2.html
Logged
Pages: [1] Go Up Print 
AppleGeeks.com  |  Help / Advice  |  Flash  |  Topic: Unload and Load movie scripting problem
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.068 seconds with 19 queries.