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




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



FlashKit > Flash Help > Flash ActionScript
Posted on: 06-18-2003, 07:38 AM


View Complete Forum Thread with Replies

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

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

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?

Controlling The Main Time Line Of A Movie Via A Button Within A Movie On A Different Level.
Hi there!
I have two movie is two different levels,
Level 5 is my base movie and I am loading another movie on top of this into level 10.
Once the user clicks onto a button within the movie on level 10, I would like the animation in level 5 to stop (the animation runs on the main root timeline of level 5).

Once the user clicks on a different button within the movie on level 10, I would like the animation on the main timeline of the movie in level 5 to start again from the point where it previously left off.
Is this possible?

It would be great if someone could help me out with this.
Thanks, midi_ie

Controlling A Mc In Level 5 From Main Movie
on (press){
level_5.MC.gotoAndStop ("label");
}



is this the way i should generically control anything on another level...

thanks guys

Controlling An Array From Another Movie/level?
I have an array that works fine, but I want to be able to controll it from another leverl. The array is on level 2, in a .swf named slide.swf. I want to control it from a .swf on level 1. The current code is

on (press) {moveContent(0);
}

How would I code a button on Level 1 to do the same thing????

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

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

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");

}

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

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?

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.

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!

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

Problem With Loading Larger Size Movie Into Level 0 Original Movie
hi,

i am trying to load a larger stage size movie into replacing the smaller original movie, but the larger movie always gets cropped when it's loaded on top of the level 0 movie. is there another approach?

thanx much,
scsirain

scsirain@yahoo.com

Playing A Specific Frame Of A Level1 Movie From Level 0 Movie
I want to play a level 1 movie from a level 0 movie, only I want to play a specific frame of the level 1 movie, not the whole movie. I don't know how to do this with the LoadMovie command. Can anyone help? Thanks

Loading Movie In Same Level Doesn't Stop First Movie Downloading
I could see this in the Safari browsers Activity window.

I have made a site which loads external swf's using loadMovieNum - all in level 3 - upon pressing different buttons.
I thought that if one swf was in the proces of downloading in level 3, and you press another button which loads another swf also in level 3, the download of the first swf would stop - but it doesn't.
It replaces it on the site of course - but the download of the first swf continues in the background - using unnecessary bandwith.

It does the same with loadMovie in to the same empty movieclip.

And

_level3.stop();

...also doesn't stop the download.

Is this the way it's suppose to work ?- I don't like it. I would rather not use UnloadMovie for obvoius reasons.

Problem With Loading Larger Size Movie Into Level 0 Movie
hi,

i am trying to load a larger stage size movie into replacing the smaller original movie using loadMovieNum, but the larger movie always gets cropped when it's loaded on top of the smaller size movie. is there another approach?

thanx much,
scsirain

scsirain@yahoo.com

Movie In Level2 Gets Booted When New Movie In Level 0 Loads
I need a sound to continuosly play while new movies are loaded in and out of level 0. To do this I put my loop in a seperate movie that I'm loading into level 2. However when I load a new movie into level 0 the sound stops. I'm asuming that my level 2 movie is getting booted with the movie in level 0... Why?

Any takers?

Simple?: How Do I Control Main Movie With Movie In A Different Level?
Hi,

I have a main movie (on level 0)with other movies getting loaded into other levels. I want to be able to target a specific scene in that main movie from the movies in the other levels. How do I do this?

Any help is greatly appreciated. The sooner the better.

Thanks in advance,
D

Loading Movie Clip Onto Different Level To The Movie.swf That It Is Held In
Hi Guys

If any one could put me out of my misery, it would be much appreciated.

I have a movie called main.swf and a movie clip within that main.swf called “car”.

OK so far so Good !

Main.swf is on level 1 and I want the movie clip “car” to be on level 2

I know that this can be done through having the movie clip in a separate swf (ie loading url onto a separate level, however I must have the movie clip in the same swf as main.swf.

Any help would be more than appreciated
Cheers

Load Movie: Can You Lock A Level Below A Loaded Movie?
I have a mainmovie with lots of buttons from which users can access 200 still images. The way I have set it up is that ALL images are loaded into level 2 from the buttons on the main movie, and all images unload from level 2 (there is only one image ever up at a time) and then go to a certain frame label back on level 0. Glitch has just come up (at zero hour) - seems that the buttons on level 0 still remain active through level 2 images - sooo, I wonder, is there any way to work around this by assigning level 1 a locked value or something?
Any tips or ideas welcome!
thanks

How To Pass Variables From Main Movie To Movie At Different Level
hi guys,
i have a main movie which loads different movies at different levels.
i want to connect these movies by a single preloader(loader.swf) which will receive two varibles from main movie(main.swf)
1)mymovie (this variable will have the movie name which will be loader by loader.swf)

2)mylevel (at which level)

now problem is how i will pass the varibles from main.swf to loader.swf which will load movies in main.swf

am i logically correct.........
is there any tutorial available similar to this.

bye
all comments are appreciated
adnan

Loading Movie - Movie Clip Or New Level?
What are the advantages/disadvantages of loading an swf either into a movie clip on the stage or on to a new level? I've seen how you can do both, and I'm not sure what the advantages/disadvantages for both options are...Basically I'm comparing loading the swf into a movie clip or into a new level...which is better for this type of thing???

Thanks!

Load Movie Level / Draggable Movie
hi

I have 2 questions relating to laoding a movie into a new level - and then allowing that movie to be dragged - with the acceleration / de-acceleration effect happening.

On the #1 question:

Is it possible to specify x and y co-ordinates on where the new movie loads in the level specified?

I'm aware that positioning can be achieved by loading the movie into a target movie holder - but as I'd like the movie to be draggable - I assuming this isn't an option.

So at the moment I'm using:

on(release){
loadMovieNum("movie1.swf","5");
}

to load the movie - can this be extended to included x / y co-ordinates in level 5?


#2 question:

The movie1.swf has a draggable function using an invisible button:

on (press) {
//Start Dragging Movieclip Behavior
startDrag(this);
//End Behavior

}
on (release) {
//Stop Dragging Movieclip Behavior
stopDrag();
//End Behavior
}

how is the acceleration / de-acceleration effect achieved in the context of this code.

Many thanx for any help given!

Dirk

Nav Bar Movie On Top Level( How)?
Have a look at my site. If i don't move the main nav movie and images load on the page the nav bar sits behind the images. If i move the nav bar first then it sits above the images. How do i place the nav bar above everything on the site (Using levels i think?) before i move it. Don't know how to do it.
http://www.earthquakeabs.fsnet.co.uk/Test.htm
Please help..

X & Y Pos Of Movie In A Level?
hi guys — is there any way to set the x & y positions of a loaded movie when it gets loaded into a level, not a mc?

my code is (nextMovie being my var to see what section is loaded):

//loads the starting movie into level 1
loadMovieNum(nextMovie, 1);

thx in advance!

Movie Level
hi,
i have made 1 file named menu. there are 2 menu clips, left and right.
inside each MC, there are buttons. each button contains the following code:

on (release) {
this.swapDepths(1);
this.createEmptyMovieClip("target_mc1", this.getNextHighestDepth());
target_mc1._x = -600;
target_mc1._y = -150;
target_mc1.loadMovie("1.swf");
}

the problem im facing is the external movie loads on the top of the right menu, the left menu is still on the top of that external movie.

anyone can help plz?

Regards





























Edited: 07/08/2008 at 02:20:01 PM by Angel3m

Movie Level
I was simply loading an external swf file into my main swf. I have 3 layers with graphics on them. So all I did was load my swf into Level 0 but the external swf still covers up my 3 layers of graphics? Does this make sense to anyone?

If I load the external swf into an empty mcHolder in my main swf then my external swf moves very slowly for some reason. Even if I adjust the main swf to the fps that the external uses?

Level Of The Movie
Hello,

my problem is that I load a movie in my flash document but this movie open itself above to all the other objects. It should remain under a cascade menu.

The comand that I used is:

loadMovieNum("video.swf", 1)

and hundred similar.

The effect is like this: http://www.orangenergy.com/videoproject/

Every suggestions is REALLY appreciated.

Maxim

Telling Movie On Another Level
ok ok,

this may be very basic, but I confess i do not know


Question:

How do you tell a movie (on say Level 0) to tell the another movie (on say Level 3) to go to a particular frame (lable)? Also how is it possible for a movie to close itself? (so the main movie is on level 0, and another movie is on level three, and before it closes it does some fancy animation or something, then closes itself?)

thanks in advance

Positioning A Movie Level:
Could someone show me some love and help me out. Ok I have a link that when you click on that link, another swf movie is suppose to load up, the question is when the movie is loaded, how would I position to to where I want it on the movie stage?

Movie On Level 1 On START
I'm doing a job for a client. I designed an special interface that is made out of 3 different parts. The top is a big menu, the middle is empty (invisible), and the bottom is for some images. Now, I would like to make my interface-movie start on Level 1 so when users select a menu item, that one could be load on Level 0, in the middle part of the interface.
Is it possible to load my main movie on start on Level 1 ??

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")
}

Targeting A Movie Above The Level You Are In
...how is this done? I can't see any of my nested movies within the 'target path' box, so how do I manually code my way backwards up them???

Control Movie On Level 0
I have been trying for hours to figure this one out and so far no luck.

I have a projector that has a movie clip in it labeled "blue"
I have a swf loaded into level 19 that has a button on it to print 1 frame in that level. but before it prints I want it to make the movieclip "blue" advance 1 frame so it changes the background color of my projecter to white before the printing starts any ideas?

Linking To Another Movie-level-
hey there, I need some help... heres the scenerio:

I have a 2 main movies:

-the first movie is the background on level0 and from there buttons load other movies on level1

-the second movie is the same thing...background level0 and other movies on level1

what i have done so far:

From the first movie there is another movie on level1 that loads the second movie on level0 (so I get rid of the firstmovie)

the problem:

from that second movie I want, either it be just level0 OR level0 with another movie on level1, ...I want to GO BACK to the first movie - background, to a specific frame to skip the intro and for it to load the corresponding movie on level1....

if this helps....

main movie loads w/small intro...once menu is loaded a button loads another movie on level1 that movie on level1 loads a different movie on level0level0 might/might not have a movie on level1 but from there i want it to unload the level1 movie, if there is any, defenitely level0 movie AND to load the firstmovie to a specific frame to skip the intro and load the corresponding movie on level1....

sorry about the length, just wanted to be accurate.... hope it is clear.... I appreciate it....

thx...DR

Linking To A Different Movie And Level
i've tried and tried and can't figure it out....

I am trying to link from 2.swf to a specific .swf contained level1 of 1.swf (in other words....from the second movie to the moive on level1 of the first movie) how do I do this please help..

thx

DR

Loading Movie/level HELP
I have a movie (with its own internal variables) that I want to load into another movie with the navigation. Problem is I want it BENEATH the navigation (level0). I tried makin yet another movie that brought in both the navigation (on level 5) and the new movie (level 1). For some reason the new movie didn't work when it was loaded beneath the navigation.
Just so you know what is in the swf i am trying to load: it simply tracks the _ymouse and tells a clip within it to go to a specific frame.

Please help!

Thanks.

ROBT

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?

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

Loading A Movie Into A Level
Hi,
I can't understand the "level" thing in "loadMovieNum". What is the level...?please help me.
Thanks,

Movie Level Question
Hi Everyone,

I come to conclusion that i need help from the experts(you) since i've been figuring out this problem since yesterday. I am calling an external SWF using loadMovie like this:

loadMovie("AboutMe.swf", _root.movAboutMe.movOnTheFly);

I'm doing a load in the first Frame, First Layer, _root of my main Movie. The weird thing is the External Movie Loads perfectly except.. the sub movies on this external movie is not working with their corresponding events. Example... in AboutMe.swf if loaded, when i clicked on of its button to play a movie, its not doing anything, and so as the default movies that plays in OnClipEvent(load). Does this have to do with Level Numbers? since i have _level0 in my main movie and there's another one on the external movie(aboutme.swf) which i loaded?. I hope my question make sense.

Any help or advice will surely be appreciated.

Movie In A Superior Level
I have a movie (level 0) and this movie load other in level 1 each movie have buttons the problem is that I want to disable the buttons in level 0 if there is a movie in a superior level. Because I don’t want that the people can push the other buttons by mistake.

I attach the example.

I think this can be achieved making a background under the buttons in the level 1 or maybe whit AC.

thanks for any help.
LOBO

Aligning A Second Movie In Another Level
Searches are down...sorry....I have a movie with a button that, when clicked, will load another movie using the loadmovie actionscript. However, the new movie is not the same dimensions as the first, and I don't want it in the upper left corner of the "current" movie. Is there a way to dictate where on the stage the new movie will load to? Thanks in advance,

wake

Masking Movie On What Level Or ?
ok, still pretty new to all of this, but here goes....I have this movie (attached) that has a
square pattern running on a loop.

My problem is: I can't seem to make a mask that contains the movie or that is to keep it from running off the sides of the document??? Can this be done and how? Is it a movie level thing or a actionscript? Any help would be great!!!

thanks,

ebbhead2
I'm using Flash MX

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