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




How Can I Controll A Movie That Is Loaded On Level 1



hello friends...


i have a prob here.....

i have a MAIN mc.... now em loading SECOND mc on level 1 in MAIN mc...

now i want to controll the SECOND mc from main....

i mean how can i stop or play the SECOND mc whenever i want to... by pressing a button in MAIN mc....


i tried my best.... but i cant controol it.. ???... em sure if there is anyway of doing this then i will get my answer ....



FlashKit > Flash Help > Flash ActionScript
Posted on: 08-01-2002, 12:02 PM


View Complete Forum Thread with Replies

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

Controll The Root Timeline From Externally Loaded Movie Clip
does anyone know how to controll the root timeline from an externally loaded movie clip?

I have loaded a movie clip, which has buttons on it that I would like to controll the main original website timeline with.

something like this.parent.parent?

thanks a lot

harky

Controll The ROOT Timeline From Externally Loaded Movie Clip?
does anyone know how to controll the root timeline from an externally loaded movie clip?

I have loaded a movie clip, which has buttons on it that I would like to controll the main original website timeline with.

something like this.parent.parent?

thanks a lot

harky

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

Playing A Loaded Movie Clip (loaded In A Different Level)
I really don't understand the problem here, I'm loading a swf containing a movie clip with 2 frames with Stop(); on each. The file is loaded on _level5 so I tried this:

Code:
tellTarget (_level5.musicmc) {
gotoAndStop (2);
}


but instead of telling the musicmc movieclip to go to frame 2, it tells it to the main timeline to go to frame 2 and stop...What's the problem, when I use "Debug Movie", I can see the:
_level5
......._level5.musicmc (....... = spaces)

what's wrong, it seems to don't want to tell the MC to go to frame 2. I passed many hours on this simple d*mn thing and I really can't find out...


BTW, I'm using Flash 5

Controll Loaded Swf
In my main movie there are 4 buttons each of them load a different movie into the same level(level10).
Now lets say that i clicked button nr 1 and it loaded a movie called firmast.swf the button also sets my backround to alpha 30.

Now when i scroll over the button that just loaded the movie called firmast.swf i want it understand that it has loaded a movie and not set backround`s alpha back to 100.

Ok lets presume that i click button nr 2 that loads tooted2.swf into level 10. and sets backround`s alpha to 30.
Now when i rollover button nr 1 backround`s alpha is set back to 100 and when i rollover button nr 2 alpha is not changed.

All the 4 buttons have to understand that if they have loaded a movie into level10 and i preform rollover on them they wont change alpha back to 100, but for example if button1 loaded a movie into level10 and i rollover button2 the backround`s alpha is set back to 100

Download Test movie if can help me
http://www.hot.ee/meediaprojekt/Test.zip

If Movie Loaded In Level 8 Then.. Else...
Is there a way to check if a certain movie is loaded in a certain level.
I have a background that loads into level one and content that loads into level 2.

Each section has a different background and several sub sections. I want to put a script onto the buttons that checks whether the correct background swf is loaded for each section when you are there and only load the content for that sub-sector but if the background is wrong then to load that also.

I presume it'll be something like this but I am brand new to actionscript.

On (release)
If level1 contains "correctbackground"
then
load movie ("content",2)
else
loadmovie("correctbackground",1)
loadmovie("content",2)
end if

The reason for this is because when entering a new section it will have a new background, but when moving through the subsectors I don't want it to keep reloading the background.

Thanks in advance for any help

SetProperty Of A Loaded Movie In A Level?
Is it at all possible to control the placement of a loaded movie that has been placed in a new level?

_level1.setProperty._x = 100 doesn't work...

I know you can position .swf's using the targetting method when loading a movie, but what about in a new level? I would try to use the targetting method, but then the scripting in the "to be loaded" swf doesn't work...

any help is appreciated... i am open to any solutions... actionscript, javascript, whatever... but it can't be slicing the page into html and postioning my swfs in table cells.

thanks.

~N

Level Loaded Movie Sketchy - Help
so im loading a series of movies into a holder. each one has its own nav and im loading them into level 1 but im leaving a background image on level 0 so that there is something that remains throughout the transitions. inside one of the movies i have a sliding menu that just stops working every now and then. the call is going:

on (rollOver) {
if (_global.menustate == "closed") {
_level1.buttonslide.play();
_global.menustate = "open";
}
with (_root.vidprevA) {
gotoAndPlay(2);
}
}
on (rollOut) {
with (_root.vidprevA) {
gotoAndPlay(1);
}
}

this is driving me nuts, any tips appreciated. i will post the files if necessary but its a whole series....

m

Positioning A Movie When Loaded On A Level?
Can anyone help me with the syntax so I can position a movie when I load it into a level?

loadMovieNum("moviename.swf",5)

This just puts it in the upper left corner (not where I need it naturally)

thanks for any help!

Save Swf Movie Loaded Into Level 1
I'm trying to capture the SWF movie which is stored as a .GIF on the server and that is being loaded into the memory.

g_url = "http://www.kaartenhuis.nl/kaarten/flash/klaroengeschal.gif";
loadMovieNum(g_url, 1, "GET");

Once it has been loaded into the memory, how can I save the loaded file as SWF? Or how do I get the file from the server if they renamed it to GIF?

Thanks!

Calling From A Movie Loaded In A Different Level
I have my flash site split up into four different movies...the first movie is a root movie that loads the other three, and the other three are the header, the body, and the background. The bg is loaded on to level 2, the body on level 3, and the header on level 4. Well, what I need to do is when I hit a button in the header, it changes a value in the body movie but I'm not sure how to do this. How to I have the action tell the movie clip in level 3 do something when it is loaded on level 4? Any help would be greatly appreciated! Thanx in advance!

Level For The External Movie Loaded
hi my friends

can you help me in assigning a level for the external movie(reseller_locations.swf) loaded to a moivie clip(clipHolder)

code

loadMovie("reseller_locations.swf", this._parent.clipHolder);

can any body guide me.

if needed, please tell me for any kind of more details.

thankx in advance for help.

arun

(F8) Check If Movie Is Already Loaded In A Level
This may be a simple question, but I'm relatively new to the actionscript side of Flash.

I have buttons that each load a different movie clip into, let's say, Level One. I'd to know how to write the AS so that if a specific movie is already loaded into that level, it won't load again when the button is pressed.

Thanks in advance if you can help.

Playing Loaded Movie From Another Level
I'm trying to play a movie that is already loaded. For example. The main movie loads "super.swf" into level 6. "super" plays and then stops. How do I from the main movie tell "super" on level 6 to continue playing after you click on a button. I tried

on (release) {
level_6.play();
}

That didn't work. Should I just copy that last frame of the movie in level 6 and on release from the main tell it to unload level 6 and load level 7 that has the last frame from level 6 as the first frame of level 7?

I hope I made enough sense for someone to know what I was talking about.

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 Can I Controll My Main Swf File From Loaded Swf
In my main swf, I m loading 1 swf file which is having 1 mc and in that there is 1 btn.

what i want is when a user will click this btn of my loaded swf i want to move to another scene of my main swf.

How can i do it? I tried to search the ans in forum bt could not trace out.

this is bit urgent so if some can help me out in this.

many thx in advance.

Control Timeline Of Movie Loaded Into New Level
I've constructed a flash 5 site in levels - there's an unchanging background in level 0, the navigation is loaded into level 20, and I have different files for the "areas" swapping in level 1. For poster.swf in level 1 I don't want the navigation to appear; it unloads fine. Poster.swf has a back button to gallery.swf, and I want the navigation to reappear without animating. I've labeled the frame I want to target "midpoint" and this is the code I've used:

Code:
on (release) {
loadMovieNum ("gallery.swf", 1);
loadMovieNum ("navbar.swf", 20);
tellTarget ("_level20/") {
gotoAndStop ("midpoint");
}
}
All of the movies load, but I always get an error message: Target not found: Target="_level20/" Base="_level1". What am I doing wrong? -I'm pretty new at this, so you made need to really spell out your answers, especially code. Thanks.

Is It Posible To Stream A Loaded Movie In Level 2?
The thing is im working in a huge movie with videos in it and if i publish with the music in it it gets pretty slow, so i tried making another movie with the music and load it as level 2 PERFECT, now how can i make it stream with the main movie??
Thanx.

Load Variables From A Loaded On Level 1 Movie?
How do you load variables into your movie from another movie loaded into that one? is there a way? I am making a casino like thing... and when you click the button or whatever I want the Casino movie to load on level 1 and the Variable "money" from the loaded on level 1 movie clip to show on the main movie as well. PLease help. I have no idea how i would do this or if its even possible. Thanks alot.




matt

Making A Movie Loaded To A Level Stretch To 100%
This might be a basic question... I have jjust never encountered it till the job I am now working on.

I have a movie that is 100% x 100% (noscale) so takes up the full browser window. Within that movie, I am calling another movie to load in Level 10

How to I get the content of the movie that is being loaded in level 10 to stretch (scale) to 100% ? It contains a movieclip that I need to stretch out to fit the browser.

At present it just loads into Level 10 and is the size defined in the file - so it doesn't stretch.

I am using Cs3 with actionsscript 2

Give Layer Or Level To Loaded Movie
As in the attached code, i had made an example where a movie (swf) will be opened when press a button.

If i need to give a layer or level to the movie, what should be done?

Hope someone could help me.

How To Control A Mc Inside A Loaded Movie On Level 1
nov.15th 2003


The action bellow is employed to control a movie clip ;

.................................................. .................................................. ........
tellTarget ("_root.drescovinha.menubuttonsmc") {
gotoAndPlay (6);
}
.................................................. .................................................. ........

It has not worked and the error message is :
Target not found: Target="_root.drescovinha.menubuttonsmc" Base="_level0.menu.drescovinha" ;

Both movie clips are inside "menu_port.swf" loaded on level 1 onto intro_mc_port.swf which is loaded onto "base_movie.swf"
on level zero ;

What is the correct action to control menubuttonsmc ???

Thank you very much





__________________________________________________ ___________________________
__________________________________________________ ___________________________

How To Control A Mc Inside A Loaded Movie On Level 1
nov.15th 2003


The action bellow is employed to control a movie clip ;

.................................................. .................................................. ........
tellTarget ("_root.drescovinha.menubuttonsmc") {
gotoAndPlay (6);
}
.................................................. .................................................. ........

It has not worked and the error message is :
Target not found: Target="_root.drescovinha.menubuttonsmc" Base="_level0.menu.drescovinha" ;

Both movie clips are inside "menu_port.swf" loaded on level 1 onto intro_mc_port.swf which is loaded onto "base_movie.swf"
on level zero ;

What is the correct action to control menubuttonsmc ???

Thank you very much





__________________________________________________ ___________________________
__________________________________________________ ___________________________

How Do You, Check If The Movie.swf On Level 3 Is Fully Loaded And If So, Do This?
I want to add on a frame in a movie on level 0, to check if movie B has been fully loaded onto level 3 and if so, go and play frame 10 of that movie B, if not, then load movie B onto level 3 and when its fully loaded, play frame 10 then.

How To Check If Movie Is Loaded On Another Level & Play Frame#?
  I have a menu for an all flash webpage on a top level and I want to command flash to check and see if there is a movie loaded on another level, such as level 1, and if so play frame 30 of that movie.  and if there's no movie, do nothing.  I tried the ifFrameLoaded command, but cant get it to work for other levels than the current level.  I have tried it in conjunction with _level1 for example  and with "tell target"  It seems to be in compatible.  

Do you know any other code to do this?

Thanks for any ideas,

Peter

PS this is the code I have tried that didnt work:

on (release) {
     _level1.ifFrameLoaded (1) {
        gotoAndPlay(30);
    }
}



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?

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.

How Can I Control A Movie Clip Which Was Loaded In To A Empty Movie Clip On Level 0
how can i control a movie clip which was loaded in to a empty movie clip on level 0 the name of the movie is 'imagemc.swf' and 'imagemc' for the empty movie clip on level 0. the movie doesn't have a movieclip name, how am i going to tell target the movie?

Movie Speed Controll
Hi,

As i have got into some problems , pls help me.

I was trying to controll the speed of movie clip depending on the mouse pressed at the same time i was just showing a progress bar for speed , my problem is once i set the speed and click on play the , my speed getting set to porgress bar (MC name is bar ) instead of my other movie clip (called ball).


I think iam doing some mistake, so pls have look at this fla and reply me soon..(the credit for this code in this fla file goes to pellepiano who helped me doing this..)

Regards
zab

Movie Controll Question.
Is there a wat to controll another swf file without importing it?
For example if you have two swf files running in one html page. Could I use the buttons from one to controll the other?

What I want to do is have a menu on one file and then load different movies into the other swf file by pressing them.

Thnx
-KX2

Movie Controll Problem
Hi i have a problem cotrolling a menu i am trying to make...
in this menu it has some movie instances, after a movie instance has played i want the main scene to move onto the next frame but im **** at using actionscript allthough i do try, could you help me,

here is the .fla file dont worry about the fonts they will change when its finshed!

ok open the file and preview the movie, press the explore button then click back and it gets stuck on the movie istance when i want to change to the next frame in the main scene can u help?

Controll Movie Size After Loading
I need to load a movie into my main time line. I need the movie to be displayed at a much smaller size that the movies actual size. Can this be done?

HELP Scene Controll In Movie Clip
HELP!! scene controll in movie clip
Look i now this is as basic as it can be but after 7 months of non flash work ( whas freshing up on php ) open source baby.

I have this movieclip and in it i want to say to a scene where the movieclip is in to go to frame 44. i used to use _level0 command but forgot all about it.

been with flash since flash 3

PS: how can i change my freaking username

Drag And Drop Movie Controll?
Not very glamorous . . . but,

How do I get the movie to advance to a certain point depending which vehicle the batteries are dragged into?

as in . . . http://www.holden9.freeserve.co.uk

Is it something to do with hitTest?

Any help appreciated.

Movie Clip Timeline Controll
This is for MX 2004
I have multiple movie clips within a single movie clip playing on a scene. On rollover of any of the second level movie clips i would like buttons nested within them to reset the playhead of the other three clips back to frame one of their repesctive clips. Can anybody point me in the right direction to doing this?

Movie Clip Actionscript Controll
I have a movie clip, called squarecounter, which has a stop action in each frame. (Around 40 frames long) Each frame has a number in it, frame one number 1, frame two number 2 etc... I have a button, and i need it to work so every time you roll over the button, the movie clip squarecounter will move forward one frame. Eg: Rollover it once and number 2 appears, Roll over again and number 3 appears...
What code would i use to make the movie clip move one frame forwards each time the button is rolled over?

(Edit: Gotoandplay(2) won't work because the button is going to be rolled over more than once, and i don't know much actionscript beyond the basics)

Thanks for any help
JethroG

Frame/Movie Controll...web Design
I am trying to put in transitions between pages on my web page. The site is fully flash. I am having trouble jumping out of a movie clip to the next frame on the parent timeline. I have tried gotoAndStop, but cannot get that to work right. Any suggestions on maybe how to get that to work, or maybe just a better way to do it all together?

Movie Clip Controll Problems
I have two movie clips. Clip1 controls Clip2.

I need Clip1 to make Clip2 run in reverse till it hits a command to stop.

In each frame of Clip2 a variable (_global.portfolioFrame) is set to "go" or "stop"

When a button is clicked in Clip1 it runs the following:

_global.portfolioFrame = "go"

while (portfolioFrame = "go") {
clip2.prevFrame()
}

But nothing happens in Clip2.

Controll The Main Movie From The External Movie
hi ,

can i control the main movie gtom the external movie i loaded?

for example , if i have one main movie ,there is a container movie clip, i loaded in external movie , now on the external movie there is a button that loades another external movie to the container of the main movie.
is that possible? how?

Thanks in advance
S

Continously Scrolling A Loaded HTML File Or .txt File With Controll Buttons Simultan
hi

i want to know how can i make a loaded(external) HTML file or .txt file scroll upwards continously in a loop(automaticly),in a scrollbar window which can be controlled by up,down & stop buttons Simultaneouslyin flash MX or Flash5.here is an example of what i want.....

http://coriolisnet.com

In this particular "News & Events" window text keeps scrolling upward by it self in a loop after every 6 seconds of pause, with a up,down & stop buttons simultaneously.the only change i want is that text to move continously at very slow speed without pausing.

i'll be very thanks full if u can help me with this.can you please pin point the actionscript which make the external text scroll.

smiles
anu

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

Flash 8 Button To Controll Movie Clip Help
Hi

A simply question, does any one know how to make a simple back and forward button move a movie clip either left or right?

I have about 40 thumbnails that i want people to be able to scroll through with out displaying them all at the same time.

I have made all the parts i think i just need help with the codeing.

in my world it would be

when you release this button, move this movie clip so many pixels to the left, or right depending on which button you select. Does that make any sense?

Any help muchly appriecieated.

Greg

Movie Clip Animation Button Controll
Hi all,

Im new to the forum, i need alittle help.

I want to create a advance animated button, when the mouse rolls over the button startes to move around and animate. I cant seem to make this work.

I can make a button animate a movieclip. But i cant make a button animate itself.

Is there a way of doing this by only using movieclips? Because i want my button todo a advance animation not just the simple animation, using a button object.

Any help would be greatfull

Regards
Holy_smokes

How To Controll The Alpha Speed Of A Movie Clip
Hi every one,

I read a lot of threads in this forum and got a lot of help, thank you.


Here is my question

When a movie clip is clicked on, another movie clip will fade out.

The problem is that the clip that needs to fade out just disapears in a second,
is there a way to controll the speed.

I read a lot of info about this for complicated setups, is there a simple fix for this.
I was hoping I could just do this designR_mc._alpha = 0/4;
But that does not work.

HERE IS THE CODE

design_mc.onRelease = function()
{ designR_mc._alpha =0;

}

Thanks to every one

Adrien

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

Movie Clip Timeline Controll With Mouse Position
Hi everybody!,

I am new to this forum, and would love to be of help to any of you. I am having a problem myself though. It seems to be basic, but I can't find it anywhere, and i have tried so many times i am not sure what to do.

Here's the problem.

I have a Movie Clip called Menu1, it has it's own timeline inside, a rotating menu. I want the menu to move according to the mouse position. When you move the mouse to the left it will start off slow (if you are close to the center of the page) and speed up when you get to the edge. When going left i want the timeline to play forward (from the point i is currently at), when going to the right it will start off slow (if you are close to the center of the page), and speed up when you get to the edge, but i want it to play the timeline backwards (from the point it is currently at).

In other words how do i use the mouse to controll the timeline in the movie clip called menu1? I can figure out the slow/fast part( if need be), I am really stumped can anyone help?

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

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