Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




On Mouse Press Load Movie To Level 5 And Unload Movies From Level 6.7.8.9 ?



on mouse press Load movie to level 5 and unload movies from level 6.7.8.9 ???

Ok here is the deal
I have 5 Music files I created 5 seperate flash movies for them

As it stands now I have

Track1 load to level 5
Track2 load to level 6
Track3 load to level 7
Track4 load to level 8
Track5 load to level 9

The problem is how I script that if I press track 1 to unload level 6,7,8,9 so only level 5 track playing

Or if I press Track 5 to unload movies level 5,6,7,8

This is what I done so far
http://eclipse.ebportal.com/bluenotejazz/index.html

If u press on track1 and after on track 2, Track 2 will just upload new flash file on top of track 1.


Now I am not good with this but, this is what I tried
This is as code stands

on (press) {
stopAllSounds();
loadMovieNum("flash/track1.swf", 5);
play();
}

This is what I was trying to do for TRACK 1

on (press) {
stopAllSounds();
loadMovieNum("flash/track1.swf", 5);
play();
}
on (release) {
unloadMovieNum(6,7,8,9);
}

---------------------------------

Of course for Track 2 this would be

on (press) {
stopAllSounds();
loadMovieNum("flash/track2.swf", 6);
play();
}
on (release) {
unloadMovieNum(5,7,8,9);
}


ETC

Pls some help need it here and its URGENT !!!



FlashKit > Flash Help > Flash ActionScript
Posted on: 09-03-2002, 10:57 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Load A Movie To Another Level And The Buttons In Base Level Still Work..
Hello,

Ok Im loading movies into level 95. The problem is the movie at the base has buttons in it and they are still active through the movie that is loaded at lvl 95. So to fix this I made one large button and made the movie at lvl 95 dragable. The only issue with this method is now your cursor looks like it is always active. So has anyone figured out a way to block buttons that are at the base level if you load into a upper level?

Thanx
Robert

Level 0 Loads A Movie Into Level 1 - Buttons On Level 0 Still Appear To Be Active Underneath
I am working on an interactive cd. My main movie plays in level 0 and clicking on an option loads the relevant movie into level 1.

The problem I have is that the main movie's buttons are still active underneath and if you click on the wrong place in the movie on level 1 it jumps to a new movie because of the button below.

Is there a way to somehow deactivate these while there is a movie playing above?

Unload Movie In Level 1?
How could I unload a movieclip in leve1 1, or repalace it by other, but in level 0. Is it possible?

Movies Loaded On Level 1 Don't Disable Movies On Level 0
ok my problem is that i have a main movie playing and i load a new movie over it; the problem is that the links (buttons) on the older movie is still active; so how do i disable the buttons on the older movie; give focus only on the new movie and return to the older movie when i have unloaded the new movie ..... if anybdy unerstood my problem pls tell me; how can i fix this

Jerry

Movies Loaded On Level 1 Don't Disable Movies On Level 0
ok my problem is that i have a main movie playing and i load a new movie over it; the problem is that the links (buttons) on the older movie is still active; so how do i disable the buttons on the older movie; give focus only on the new movie and return to the older movie when i have unloaded the new movie ..... if anybdy unerstood my problem pls tell me; how can i fix this

Jerry

HELP With LoadMovie: When I Load Level 1, Level 2 Disappears And Shouldn't
Hi I have a problem...
I have a movie on level 0 with menu buttons A, B and C. Every button loads a new movie (movie A, movie B and movie C) and they all load the movie in level 1. I have another movie containing the music (movie MUSIC).

When I load the site (level 0) I first load the music (movie MUSIC) in level 2 with a loadMovie(2) and later I let the user choose if he wants to see movie A, B or C by loading them with loadMovie(1). Unfortunately when the user clicks on a button to load any of the three movies A, B and C, the music MOVIE disappears and therefore the music stops. I need the movie MUSIC to be in the top-most level and to load before the other movies do, that's why I have it in level 2, so the controls (play, stop, volume) are always on top of all other movies loaded.

Can you please help me make the music play without the music MOVIE disappearing and stopping when a movie UNDER/BELOW is loaded in a level lower that the music movie's level?

Thanks a lot!

Loading Movie To Level 1, Cancelling Out Level 0 Buttons?
I have a movie (main.swf) and when you click one of the buttons, it loads section.swf on top of main.swf onto level 1

When section.swf appears on the screen, everything is fine BUT... the buttons on the main.swf work THROUGH the section.swf which is on level 1. Is there anyway to cancel out the buttons on level 0 when a movie is loaded ontop of it to level 1????

TIA

If Movie #1 Is In Level One, Then Load Movie #2 To Level One...
OKay, so i'm an actionscript newbie, and i am wondering what the code would look like for this kind of if statement.

This is what i have now:
A jukebox that loads external movie #1 to level 1 when you click play. The stop button unloads any movie in level 1. There is a next button and a previous button that currently have no actions assigned to them.

What i want to happen:
When the user clicks either next or previous, the appropriate movie # loads into level 1 to replace the one that was there before.

So onRelease of next button, if movie #1 is in level 1, then load movie #2 into level 1. If movie #2 is in level 1, then load movie #3 into level 1, and if movie #3 is in level 1, then load movie #1 into level 1.

Same for previous, except backwards. So onRelease of previous button, if movie #1 is in level 1, then load movie #3 into level 1.

Can you help me write the code properly?
Thanks!

Play Movie In Level 0 From Loaded .swf On Level 10?
hi everyone...

i have a movie(frame2) on the main timeline of the the main .swf loaded in at level 0, Which i want to play by clicking a button in a movie on the main timeline of .swf loaded in on level 10 what actionscript do i need to do this, i have looked at several other answers on the message board but none seemed to be relevant any body know what the script should be that i attach to the button.????your help would be much appreciated...

Controling Movie Level 0 From A Higher Level
Hi,

I have a movie that loads various other .swf files into level 3.

How do i get the movie loaded into level 3 to tell the main movie in level 0 to go and play a certain frame?

Can this be done?

Cheers

Pete

Controlling Skip To Scene From Movie On Level 0 To Movie On Level 1
I have a menu movie loaded onto level 0....and i need a button in that movie to tell the movie that's loaded into level 1 to go a particular scene in level 1...i know this is possible...i think i've even done this before...but i can't remember...and i've done a million searches on the web and it's making me nuts...so any help would be really really great!

thanks much

Movie Clip From One Level To Another Level
I have heard this can't be done but anyways..

I would like to take a movie clip from _level0 and duplicate and send it into another movieclip in _level1.

IS IT POSSIBLE??


Trish.

(Level1 has to be in flash 4...for now.)

Wait for the Wizards response.................

Movie Clip From One Level To Another Level
I have heard this can't be done but anyways:

I would like to take a movie clip from _level0 and duplicate and send it into another movieclip in _level1.

IS IT POSSIBLE??


Trish.

(Level1 has to be in flash 4...for now.)

..(It's not that entirely doubt you tony.)

Wait for the Wizards response.................

Contolling A Movie At Level 0 From Level 1?
I have one movie (intro.swf) loaded on top of my main movie (start.swf) when the user clicks the 'skip intro' button I want the movie at level 1 (intro.swf) to unload and the movie at level 0 to progress (go to and play frame 28). What code do I use on the 'skip intro' button?

Load Movie Level
Is there a way to find out in a prelaod situation if a load movie is loaded . I have a loader loading the main movie and in the first frame of the loader I also load a another small movie onto level1 is there a way to tell if that level1 movie is loaded then go to another frame and start the next
load like .

Code:

if (_level1.getBytesLoaded()>=_level1.getBytesTotal()) {
gotoAndPlay("mainload")
}

Load Movie This Level... ?
I am trying to load a swf to level 28, in MX.
I can load it but it displays top layer.


on (release) {
loadMovieNum("movie.swf", 28);
}

there are a dozen layers that are supposed to be above it.
Could someone tell me why it won't work?

Thanx DjXtraKtor

Load Movie Level 101
How do I make this work to load level 101

on (press) {
_root.wnd.loadMovie("info-windows-mk.swf");
}

Which Level For Load Movie?
Hi,

I'm trying to out together quite a big site, so I'm going to split it up into separate swf's and load the sections using the load movie script. I'm just wondering is there any reason why you shouldn't load them into level 0?
The reason is that if I load them into level 1, then things might show through from the main swf they are loaded from, so I thought I could just put them all into level 0 to avoid this. I understand that this mans the new one replaces the old one, but what are the consequences of this - will it mean that if I want to click back to the original movie that it wll have to load back up again or not?

Thanks

Kerry

Load Movie From Level
I have created one presentation in which i have loaded 5 movie clips at different levels.
i dont know how to start the loaded movie from particular label.
I'll be thankful to u if u can help me out with this problem.

Load Movie Level
Hi
I have to load a movie in level 01. So how can I make the movie to be loaded in a x and y axis that I choose?

Load Movie - Next Level
I'd like my buttons to load a movie onto the next level at all times, so that everytime the next movie loads it is always loading on top of the current movie. Also an unload the movie in the level below would be a plus... Does this make sense? Is it possible? I wish it was possible to do something like loadmovie to (_currentlevel + 1) ...but I just made up that script.

How To Make "Perloader In Level 0 React To File Size Of Level 1 Movie"
Hi with the help of a kind heart online, i was able to recieve a FLA file which contents the script for me to load an external movie onto a main movie, while allowing the preloader of tht main movie to wait for the external movie to be loaded b4 skiping the fram with the mc "loading".

Everything works fine offline but when i host it up online the main movie stucks at the mc "loading", and does not load the external movie. I have tried to replace tht external movie with a simple only one pix in it flash movie, but still no difference. Also when i previewed the main movie in flash 6, a window titled "output" poped up with the message "1110938". i tried looking up for infor on it but no luck at all.

here's the link to download the FLA file from :
http://www.geocities.com/yutokagui/p..._05_03.zip.zip

Hope someone can help thx alot.

Load Movie...Park/Play...Load A Button Into Level
Okay, I tried the Park/Play tutorial in order to load a movieclip and have a button on the stage that controls the main movie. Problem is that I have a background that covers up my button which is in level0. My movie clip is in level1. How do I bring that button out in front of the background? Do I load it into level2? If so, how do I do this?

Thanks alot,
Roger

Load Movie - Level 0 - Telltarget
I've got the main movie and on release loads new movie(s) into level 0. To return to the main movie where it left off on the timeline I have tried this script with no luck:

on (release) {
loadMovieNum ("main.swf", 0);
tellTarget ("_root.targ") {
}
}
- targ being the invisible MC.
Can someone please help me with this?

Getting A Movie To Load Into A Certain Spot On A Level...
I am trying to make a menu where the buttons load a small movie(.swf) for the submenu.. but I cannot figure out how to place that new movieclip in a specific spot in the main movie. Am I going about this the completely wrong way? Is it possible to specify the location? Any help is appreciated.. thanks

Load Movie With Level Problems...
I have a intersting question that may take some understanding...

I have created a rebrick for my site and i want to load movies UNDERNEATH my original image. For instance if you click a button i want a movie to load that fits in my Interface. However i can't make the level lower than 0 because that is the default level. take a look at this...

www.digital-domicile.net/sample.html

If you click on the biography button you will see that a whole new movie opens with a different inside image. For that i have to make the rubrick for both movies. I don't want to do that.... Any suggestions PLEASE

I posted this here because it has a little actionscripting in it.....

Can I Load A Movie Into A Negative Level
I am working on a site that was developed before I really understood levels. Now I am faced with either having to redevelop the entire structure of the site, unless I were able to load a movie into a negative Level number, thus placing the loaded movie behind the main movie is Level 1, is this possible?

thanks g:ary

Load A Non-looping Movie In A Level
heya!

im workin on a site for a client. they have an swf from their old designer, but not the fla (and no, im not asking to break it open).

right now, their swf plays and loops forever.

what they'd like is for it to play thru once, then pause, then jump to another page.

so, i created a loading swf: just a black bg with an action script to load their swf into level 10. then, at frame 250 or so (theirs is only 125 frames) i have an action to jump to the next page URL.

which works fine, except their animation keeps looping inside mine. is there anyway to adjust the load movie script so that it turns off their loop?

To Load Movie Into Target Or Level?
Hi,

How do I decide if I were to load movie into target or level when using "loadMovie"? What is the difference between target and level? I understand that target acts as a container to run the movie. Besides that?

Thanks!

Regards.

Marines.com Load Movie Level
Hi guys,

I 'm wondering how different movie can be on top of each other on different level. Like on:
(the 3 Boxes...)

http://www.marines.com/

Cause if you load several movies on different level normally you don't see the one underneath and on and on.
I'm sure it's pretty easy buck can't find the trick...

thx

Load Movie - Target Vs Level
This is what I need to do, I have a Flash MX movie that loads the main page on level 1 and the navigation on level 2. All other pages are loaded into level 1. I recently added a new photogallery but the pics make the file too big so I want to load the photo page in level 1 and use seperate swfs for each pic (load externally) I was using the keypress adding previous frame on the left arrow and next frame on the right arrow and on release as well. it works fine for loading the photo page in level 1 but I can't load the individual pics on level 1 at the same time so my question is there a way to load individual swf using the target method? I hope I'm clear
rdee

Load Movie On Another Level, Not Working..
Hi all,

I can't seem to work out why the load movie isn't working??

I've got a swf embeded within an HTML page, and a link within it that loads another swf over the embeded one, into level 2.

I've put the following in on a button within a mc:

on (release) {
loadMovieNum("test.swf", 2);
}


would it matter that it's in a mc instead of on the main timeline??

I doesn't work,

any suggestions. most welcome

Load Movie Into Level 0.newlevel ?
I want to use loadMovieNumber on buttons to load new content into level0 but have the new content fade up over the old content instead of just replacing it. Just loading into level1 will not be a solution because there is more than 1 potential content page so I need to be able to identify which level the old content is using and load 1 level above that or somehow always load into 0.newlevel or something. I don't know obviously.

Any help woould be much appreciated. Thanks in advance.

Load Movie On Higher Level
Hi

I am doing a site in which each section is a different swf which needs to be loaded onto a higher level.

Is there some script which tells the movie to be loaded onto a higher level as opposed to having to stipulate which number level it is??

cheers Max

Load Movie Level Frame ?
Hello,

I have four buttons in my main movie. I want the buttons to load the same external SWF but then goto a certain frame in the movie. How would I script this??

Thank you, Liz

Load Movie In A Higher Level
Hello.
In my movie I have a data base fron xml, and I have a button. When I press the button I want it to loadMovie in a movieclip which is at the top layer but when it does, it shows below the text from the data base. How could I get to show it above anything else?
thank you everybody
kisses

Load Movie/level Question?
I have a site were a .swf file loads over the main site as a pop up image. My problem is that when the pop up (.swf) loads on level 1 the active links/button and sounds still react from the main site. Is there a way I can stop this from happening, so I can just have level 1 active when loaded??

Changing Movie Level After Load
I am still trying to come up with a solution for this problem.

I need to change a swf's level after it is loaded.

I have been able to conduct a swap with the below code.
_level19.swapDepths(20);

But it results in the swf in _level19 becoming non functional like it jumped to some random level. All script to control the timeline of level_19 after the swap becomes non functional. An unloadmovieNum command for every single level in the piece won't unload it.

This is my 4th forum I have posted on. So I am assuming the code does not exist.

Is there a command that can control the stack level of just one single swf or movie clip? Like
_level19.goto(5);

Load Movie On Level In Position...?
I need som' help here...

can somebody tell how to load an external swf file into my main movie on _level2 in another position than x: 0, y: 0 – I need it to be loaded to x: 200, y: 0.

I dont want it to be loaded into a movieclip!

Thanx!

*Rob

Load Movie In Target AND In Level
My problem is this:

I have a button that must uppon being press go to the root lvl, find a target and open a movie in that target but in succesive lvls.

so, the ideal code would be...

on(release){
_global.lvl++;
_root.target1.loadMovieNum("movie.swf",_global.lvl );
}

But flash doesn't allow me to do both at the same time, either i choose a target or a lvl, not both, and even less if the lvl is a variable.

This movie has some buttons that when pressed the open clips that should acumulate until closed.

Ty

Load Movie Swap Level -eek
I'm in a pickle. Basically the code needs to load in movielcips in ever decreasing levels, ideally loads one whilst one is playing. Then once a loaded clip has reached the end of its frames it fades out. Then next clip needs underneath plays, and it loads the next.....

Any help i've made a mess here!


Code:
var i:Number = 1;
do {
choice = i;
t = _root.createEmptyMovieClip("containernew"+i, i);
t._x = 0;
t._y = 0;
newlevel=(i-(i+i))
//trace(newlevel)
t.loadMovie(choice+".swf", newlevel);
t.removeInt =
onEnterFrame=function(){
trace(this._currentframe)
if (this._currentframe >= this._totalframes) {
do {
this._alpha=this._alpha-1

} while (this._alpha>10);


remove()
};
}
i++;
} while (i<8);


MovieClip.prototype.remove = function() {
trace(this);
//this.unloadMovie();
//clearInterval(this.removeInt);
};

Load Movie On Level In Position...?
I need som' help here...

can somebody tell how to load an external swf file into my main movie on _level2 in another position than x: 0, y: 0 – I need it to be loaded to x: 200, y: 0.

I dont want it to be loaded into a movieclip!

Thanx!

*Rob

Load Movie In A Level With Different X And Y Posit
Hi, all!!

I don't know if this is posible or if it was answered already.

Is it posible to load an swf movie on a different level and to set the x and y positioning different than the 0.0????

all this without to load the movie in a container.

Thanx in advance for your answers

Imre

Load Movie Clip On A Level
I made this loader but it loads the movie on top of my main movie, I want it to load on the last level behind a mask layer, how do I do this?


Code:
var movieRequest:URLRequest = new URLRequest("test.swf");
var movieLoader:Loader = new Loader();
movieLoader.load(movieRequest);
addChild(movieLoader);
I would also like to turn test.swf in to a variable.

Thanks

Unload Any MC From Level X
i've got three buttons that load an mc into level2. within the loaded mc, there is a close button that works great using this.unloadmovie();

There's another button in an MC on the main timeline that takes you to another spot on the main timeline...and I want it to unload ANY mc that may be in level 2. the code i'm using doesn't seem to work.
Code:
on (release) {
_root.unloadMovieNum(2);
_root.gotoAndPlay("framelabel");
}
It takes me to the right spot on the timeline, it just won't unload whatever mc is on level 2. Am i missing something here?

Unload Level?
Is there a way to check if a movie is loaded into a layer, or more importantly do something when a layer is unloaded?

something like:


Code:
on (unload layer 4){
_root.gotoAndStop(9);
}
etc?

Unload Level 1
Hey Pals,

Is there a code that unloads a movie off of a level no amtter what that movie is? I need to make sure that all swfs are unlaoded when the user goes to another page oe the swf will still be over the stage. All of the swfs (8 different swfs with different titles) load onto level 1 of a certain page, but they hang over the other pages when you navigate to them. It's not on the site yet, but I could upload it if you need to see what's up.

I'm thinking the buttons for that page need to be coded to unload ANY swfs on level one.

Thanks!,

Stu

Unload All Level Between 50 And 100 ?
I am trying to create a function to unload every level between 50 and 100. There is only one movie clip on each level.

unloadLevels = function() {
//HOW TO UNLOAD ALL THESE LEVELS ?
}

Any assistance is appreciated.

Thanks,
Stephen.

Unload All Level Between 50 And 100 ?
I am trying to create a function to unload every level between 50 and 100. There is only one movie clip on each level.

unloadLevels = function() {
//HOW TO UNLOAD ALL THESE LEVELS ?
}

Any assistance is appreciated.

Thanks,
Stephen.

Copyright © 2005-08 www.BigResource.com, All rights reserved