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




How To Set Level Of A Mc



How do i set the level of a movie clip, so tht it alwyas remain on the top,,,
Thanx for the help !!



FlashKit > Flash Help > Flash ActionScript
Posted on: 11-19-2002, 11:19 PM


View Complete Forum Thread with Replies

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

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?

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 !!!

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

Why Are Buttons On A Lower Level Still Active In A Loaded Higher Level...?
hi, i'm very new to flash and am in the midst of trying to figure out the loadMovieNum feature. I have the one swf loading into a higher level (say 10) but the buttons on the level below it are still active (ie you get the little hand if you roll over them) even though they are no longer visible. I tried loading all levles into 0, but that means the page below goes away entirely and i like having the preloader of the next page pop up over the current page. I've tried just loadMovie into an empty MC but get the same result. Can anyone help?

thanks in advance!!

[F8] Quiz Template Not Computing Score When Loaded Into A Level Other Than Level 0...
I have created a 10 question multiple choice quiz from the quiz template, and it works perfectly as its own .swf. But when I use the moviecliploader object to load the quiz .swf into another .swf in level 5 (or any other layer other than 0) I am able to go through all of the questions and get the correct feedback, but when the results frame shows up, nothing gets computed. Does anyone know what I should do to allow this to work? Thanks.

Quiz Template Not Computing Score When Loaded Into A Level Other Than Level 0...
I have created a 10 question multiple choice quiz from the quiz template, and it works perfectly as its own .swf. But when I use the moviecliploader object to load the quiz .swf into another .swf in level 5 (or any other layer other than 0) I am able to go through all of the questions and get the correct feedback, but when the results frame shows up, nothing gets computed. Does anyone know what I should do to allow this to work? Thanks.

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!

Return At Level 0 In A Specific MC Frame By Clicking In Other Level...
I have a movie that loads (by a button) others swf's in level 1, 2...

My problems are:

1 - These buttons functions, in level 0, being still working when I "loadMovieNum" and then I have another ones above in levels 1, 2...
How can I make the bellows buttons (level 0 - that are "invisible") to stop working?

2 - I used "tellTarget" function in level 0, inside a MC, that jumps to frame 100 to 150 and stop. And so it loads another swf's in levels 1, 2...Nice.

The code I used is:

on (release) {
tellTarget("/my_movie") {
gotoAndStop(150);
loadMovieNum("filetwo.swf",1);
loadMovieNum("filethree.swf",2);
}
}

Otherwise, when I "unloadMovieNum" 1, 2... and it returns at level 0, the playhead starts again in frame 1.
How can I return at frame 100 by the same click?

The code I´ve put in a button in filetwo.swf is:

on (release) {
unloadMovieNum(1);
unloadMovieNum(2);
loadMovieNum("fileone.swf",0);
_root.my_movie.gotoAndPlay(100);
}

What is wrong?

Whoa.. Sending A Variable From Level 1 To Level 0.. Hmmm...
I thought this would be easy but can't find the code anywhere.

I've loaded a .swf movie into level1 and want to click a button in that movie that changes a variable in the main timeline (level0).

Does anyone know the actionscript to do this?

Thanks dudes,
bossanova

Return At Level 0 In A Specific MC Frame By Clicking In Other Level...
I have a movie that loads (by a button) others swf's in level 1, 2...

My problems are:

1 - These buttons functions, in level 0, being still working when I "loadMovieNum" and then I have another ones above in levels 1, 2...
How can I make the bellows buttons (level 0 - "invisible") to stop working?

2 - I used "tellTarget" function in level 0, inside a MC, that jumps to frame 100 to 150 and stop. And so it loads another swf's in levels 1, 2...Nice.
Otherwise, when I "unloadMovieNum" 1, 2... and it returns at level 0, the playhead is on frame 150.
How can I return at frame 100 by the same click?

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

Return At Level 0 In A Specific MC Frame By Clicking In Other Level...
I have a movie that loads (by a button) others swf's in level 1, 2...

My problems are:

1 - These buttons functions, in level 0, being still working when I "loadMovieNum" and then I have another ones above in levels 1, 2...
How can I make the bellows buttons (level 0 - "invisible") to stop working?

2 - I used "tellTarget" function in level 0, inside a MC, that jumps to frame 100 to 150 and stop. And so it loads another swf's in levels 1, 2...Nice.
Otherwise, when I "unloadMovieNum" 1, 2... and it returns at level 0, the playhead is on frame 150.
How can I return at frame 100 by the same click?

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

Controling Tween In Level 2 With Button In Level 1
Hi all,

This may be a bit long and confussing, pls bear with me. thank you

imagine this:
i have a main.swf tht loads a swf 3 buttons in it (but.swf) onto level1.

There are 3 other differnet SWF files (1.swf, 2.swf, 3.swf). Each of then has a tween tht casues them to fade in from frame 1to 10, stops at frame 10(a stop actionscript is used), and fades out to from frame 11 to20 and stops there(a stop actionscript is used, casues its the end and no point to loop).

Here's the problem:
I want the first button to click and 1.swf will be loaded onto level2 (it fades in and stays)of the main.swf. And when click onto the second button, 1.swf will fade out, be unloaded from level2 and 3.swf will fade in onto level2.

And this will go on and on in no particluar order(e.g button 1 can be clicked onto first then button 3, or button 2then button 3,etc).

i have tried to use the script below for the buttons but it donest seem to be right
----------------------------------------------------------------
on (release) {
_level2.gotoAndPlay(11);
}
on (release) {
unloadMovieNum(2);
loadMovieNum("3.swf", 2);
}
--------------------------------------------------------------

Hope i have made my problem clear, if not pls let me know.

I think this should be a fairly simple problem to slove....So i hope someone can reply me soon

THX A Million!

Set A Variable In One Level By Clicking In Another Level
I want to click on an item in level1000 and have it assign a variable in level0.
Thanks

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.................

Level To Level Control (a Bit Simple)
How to control the timeline and the clips in level N from other levels.

How To Deactivate Links From Level 1 To Level 0 ?
Hi

I have some buttons on level 0 when I get to level 1 then I still feel some links below even buttons are hidden I want to know that can I deactivate links from level 1 to level 0?

thanks

How Can I Read A Variable In One Level From A Swf On Another Level
Hello experts!

I have to swfs loaded on levels 5 and 8, but I want level 5 to start once a variable in level 8 called "loaded" = true. How can I read "loaded" from level 5.

I'm using flash 5

thanks in advance

Stage Level Overlay Level
This is for an open book test I have for school. I have tried to serch it out but can't find the answer. Does anyone know?

Is the stage level above or below the overlay level.

A) above
B) below
C) the levels are on separate layers
D) they are only on mask layer
Barbara/Babs

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?

LoadMovie Into Level, Then Target An MC In That Level
Hi -

I am loading an .swf called "nav.swf" into _level16 of my main movie. Within nav.swf there are MCs in the root which I would like to target from the main movie.

I have tried the following:

_level16.nextButton._visible=false;

and

_level16.nextButton._visible=0;

with no luck.

when i trace _level16.nextButton I get undefined returned.

am I using the correct syntax here?

thanks!

Have Level 0 Play From Action On Level 3
I have a two movies main being on level 0 and the other that loads on top of 0 levl 3 when u click on one of the buttons on level 3 I want the main timeline on level 0 to continue to play wich is currently on frame 175 and stop at 185. So I have a stop on the main timeline of level 0 at frame 185and on 175 and the script I have on the button is
on (release) {
unloadMovie(2);
_level0.play();
loadMovie("home.swf", 2);
}

I also tried
on (release) {
unloadMovie(2);
_level0.gotoAndPlay(176);
loadMovie("home.swf", 2);
}

the both work but it dosent stop at 185

so I tried

on (release) {
unloadMovie(2);
_level0.gotoAndStop(176);
loadMovie("home.swf", 2);
}

and of courser it stoped on 176.
I am not sure what I am doing wrong. please help

Calling A Function In Level 0 Swf From Level 2 Swf
Hey guys,

I've got a swf file on level 0, which I've loaded another swf into level 2. My objective is to blur everything on level one to make the loaded swf on level 2 stand out. I have everything worked out except, I can't seem to call the functions in the main movie timeline from the level 2 movie.. i've tried _root, _parent, and even tried using a work-a-round by passing a _global variable back and forth between the two, which was getting messy. I know there's got to be a better way, or something simple I'm missing. Can you guys help?
Thanks in advance!

Jump To Scene 2, Frame Label "start" On Level 5 From Button On Level 150?
I have a button on Level 150 that needs to load movie on level 5 and tell the movie to jump to a frame label called "start" in Scene 2. Is this possible to do?

here's the code that I have for the button on level 150

on (release) {
unloadMovieNum (100);
loadMovieNum ("city.swf", 5);
unloadMovieNum (10);
unloadMovieNum (150);

Now how do I tell level 5 to jump to a certain
scene and then a certain frame label?

Any help would be greatly appreciated. Thanks.

Ps. This was is done in flash 5 not MX.

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.

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

[CS3] Multi Level Drop-down Menu. Trouble With The Multi Level Bit
Hi,

I'm creating a multi-level drop down menu for a college project. So far I have 2 main menu items, one of which (products) contains 3 sub menus (line 1, 2 and 3). Line 1 should also have 3 sub menu items (product 1, 2 and 3).

I'm putting the actions for the line1_mc roll over and roll out on the main timeline but it doesn't seem to be working because it is trying to call a movie clip from within another movie clip!

Any ideas would be greatly appreciated!

Can U Tranfer A Whole Level In To A New Level?
Can u tranfer a whole level in to a new level??
What I mean is that..lets say I have _level2 and there are 20 varibles on it and I want it to load all of the varibles and movie on to _level3....is that possible??

Control An MC On Level 0 From Swf On Level 10
I have a blank mc on level 0. My control (menu) buttons are on a loaded swf on level 10.

When I try to control the visibility of the blank mc on level 0 through level 10, Flash (or my knowledge!) can't reach past the _root level of the level 10swf to see (and hence control) the mc "BCX" on level 0.

Am I trying something that can't be done? Seems like it should be able to!

Level Starts With Level 0, Right?
Hi,

sorry, cause this is so simple question but the first level in flash is the 0, right? And it starts allways with that one...then it comes 1, 2, 3, and so on, right?

Thanks,
Miguel

Control Level 0 From Level 1?
How can i tell level 0 to play from a loaded .swf in level 1
i cant seem to figure it out.


Please Help

Moving .swf From Level 0 To Level 1
Hi,
we encountered problems moving .swfs from Level 0 to Level 1. When we exorted the movie itself, Scripts worked proper, but when we use loadmovienum the actions for the movement of the cast don't work anymore. Who can help us?

Variables On Level 0 And Level 1
Hi! got a big problem which I think is much easier than it looks. I use main movie (level0) as a menu where other movies are loaded onto level 1. I set a variable in main movie(level0)on first frame which is used only once and then I need to change this variable from other swf from level 1 and later check this variable for use with IF variable==....
I have no idea how to do it although I spent a whole day trying that.
thanks for help

Level 0 And Level 1 Question
i have this two movie clips.... i set one on level zero and the other on level one.

scenario: i click a specific button at level zero movie clip that loads the level one movie clip above it, but hides the level zero movie clip along the process by using the AS:

Code:
lvl-zero._visible = false;
problem: now i want the level zero movie clip to be visible again when ever i will press a specific button at the level one movie clip....

anyone here in this forum can help me do what i want my movie clips to do?

any suggestions, tips or comments will be appreciated...

thanks in advance guys!

Load Into Level Under Nav Level
need to use load into level option and not MC. How do i get the loaded movie to load under the nav layer?

How To Go From Level 1 Movie To Level 2 Movie Frame Number 10
i'm in level 1 and i want to go to level 2 frame 10 how to i do that? i tried two script but none works.

the script i tried:

on button:
on (release) {
_root:a = "a";
gotoAndPlay ("start");
}

on last frame"
if (_root:a == "a") {
unloadMovieNum (1);
loadMovieNum ("intro.swf", 2);
_level2.gotoAndPlay("guest");
}
second method:

on last frame:
if (_root:a == "a") {
unloadMovieNum (1);
loadMovieNum ("intro.swf", 2);
_root:guest = "guest";
}
on first frame of level 2:
if (_root:a == "a") {
gotoAndPlay ("guest");

}

Dummy Swf In Movie Level Need To Preload Swf Into Dummy In This Level
I have a movie that is loading mc1 into level1

This movie mc1 is loading swf's into an empty dummy mc in it.

Cant seem to get the a percentage load to work from the swfs that are loaded into the dummy.

Any direction or help would be appreciated.

m

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

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!

Controlling A Movie At Level 1 From A Movie At Level 0
Here's the plan! I want to load a movie at level 1, but be able to control it from buttons in the original movie clip. Any suggestions?

Thanks

James

Level With Me
Hello,

I need advice on using levels. I know which movies I'm loading, so I'm wondering if it's possible to place movies in at different levels (in other words drag the movie clip onto my workarea and giving it an instance name, versus using the loadMovie function and then specifying the level)? If it is possible, how do I do it? and, if not, what's the best way to load all my movies back on the stage using the loadMovie command? And how do I access my variables. Also, can I load multiple movies into the same level?

P.S. The reason I'm doing this is because I'm using swap depths to stack stuff up and there are a few mcs that I always need to be on top of the stack, while still allowing the user to stack stuff below these mcs. I've thought about just giving the lower mcs lower depths, but have determined that this will not work for what I'm trying to do.

How To Know Swf In Level?
hi every1...

is there a way to tell what .swf is loaded into a level?

i.e what movie is playing in level1 for instance...

cheers,
Alvin

From One Level To Another By AS
I made a nice looking scrolling navigation bar (thanks to the posting of (Wouter Peschier http://www.thesquad.nl) This movie loads in level3 but with the buttons that scroll on my screen I want my viewers to load and onload a movie on level 1. The script of Wouter includes following script:

#include "as/buttonActions.as"
on (release) {
_root.MCcontent.gotoAndStop("b8");

As I am newbie in AS - can somebody please help me further with this.

Thanks

NBT

How Can I Add A New Level?
I would like to add a SWF through the "load/unload movie" action so I can export an existing Flash movie as a Quicktime movie. The thing is I can't figure out how to add a level.
Thanks.

How To Tell One Level What To Do From Another Level
I've got a movie on level five that I'm telling to unload. But I want the movie on level three beneath (that is currently stopped on a blank keyframe) to go to another part of the movie on level three and continue to play.

When level five is unloaded, level three is sat there stuck on it's blank frame because it can't hear level five shouting at it

How can level three hear what it's being told???

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