Movie Clip To Remain Loaded
I have a movieclip (image) that loads once a user clicks on a menu item.
Is there a way to have it remain loaded as its keeps loading each time the user clicks on the same menu item.
I am kinda thinking of some action script like this;
IF MC_CLIP IS LOADED REMAIN LOADED
ELSE
LOAD MC_CLIP
Thanks
FlashKit > Flash Help > Flash General Help
Posted on: 08-12-2004, 08:07 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Movie Clip To Remain And Go To Scene?
i have a scene that has a movie clip (set to play once) in it and another movie clip(also set to play once) inside that movie clip. how can i get the last movie clip to go to the scene by keeping all the movie clips and new stuff showing up? (i tried a few actions and they do not seem to work, they blink back and forth or do not show the entire MC.)
Preloader In Externally Loaded Swf Stops Working (loaded Into An Empty Movie Clip)
SEE BOTTOM OF THREAD FOR CURRENT PROBLEM
1. I have my navigation buttons in level0
2. When a button is pressed it loads an external .swf into the highest empty level
3. There is an MC in this loaded .swf called loadmovie and inside that another MC called empty.
4. Inside the 'loadmovie' MC, there is a frame action that loads another external .swf file into the 'empty' MC.
The problem I am having is that the preloader that is on the external .swf that is loaded into the 'empty' MC does not work.
It works fine if you test it on its own. But not when loaded into a Movie Clip.
MY SCRIPT:
iBytesTotal = _root.getBytesTotal();
iBytesLoaded = _root.getBytesLoaded();
iBytes = (iBytesLoaded/iBytesTotal)*100;
percentageNumber = Math.round(iBytes)+"%";
setProperty("progressBar", _xscale, iBytes);
Do I have to refrence it differently? Because of where it is situated?
e.g
iBytesTotal = _level32._root.loadmovie.empty.getBytesTotal();
confesed!
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
Target Host Movie Clip From Loaded Movie Clip.
Hi all.
I have a movie clip loaded into my main movie. This movie clip is the INTRO of the website. What want is that when this INTRO ends it should tell the main movie to go to the next scene of the movie. I tried _parent.nextScene() but it is not working. Please help me as I need it badly and urgently.
Thanks.
Zee
P.S: Btw this is my first ever post on FlashKit so I hope to have a great time here!
Loaded Movie Clip To Talk To The Movie That Loaded It
Trying to get a loaded movie clip to talk to the movie that loaded it, but can't figure out the right ActionScript... . i'm using:
on (release) {
tellTarget ("home.swf") {
gotoAndPlay("blank");
loadMovieNum("viewer.swf", 2);
it ain;t workin, i've also tried _parent &
_root - in replace of 'home.swf' to no avail, much thanks to anyone that can help!!!
Movie Clip Loaded Within Movie Clip Problems
Hi there,
I was wondering if someone could help me. I want to have a button ("Shows") in one flash file (site.swf) and when it is clicked it will load a movie into an empty movie clip (loadMovie("skillbest.swf", "shows"). The skillbest.swf file has a text box with a scroll bar that was made from scratch. The textbox loads text dynamically from an external text file (message.txt). On its own, the skillbest.swf loads the text correctly, and the scroll bar calculates the correct height. Once you try and load the skillbest.swf file from the methond above (loadMovie) from the site.swf file, the text does not get loaded. I'm wondering if someone could help me fix this and tell me what I'm doing wrong. I've included the files, and will open in Flash MX. I thank you all in advance, and hope someone can help me.
Michael
Having A Loaded Movie Clip Talk To Another Movie Clip
Here's what I want to do:
Load a clip into my main movie - "loadedMovie"
at the end of the timeline in "loadedMovie" i want a function, perhaps setColor, which will change the colour of another movie clip which sits in the main movie.
Does this make sense? for a loaded movie clip to change the color of an instance of another movie?
Many thanks,
Ray
Loading Movie Clip Into Loaded Movie Clip
Hi,
I'm working on a flash site and I'm having some trouble with the programming for it. I'm not so great at action script, so I'm hoping that my troubles are caused by my own stupidity and that some cool smart person will have an answer for me.
So, I have a main menu flash file that functions like the one in this tutorial:
http://www.kirupa.com/developer/mx/p...transition.htm I set it to load various swf files and it's works just fine. What I want to do is have it load a swf that functions exactly the same (buttons that load external clips with transitions) as the main swf- this is a sub page menu. So, in theory, the sub menu page should load the final content, and three swfs would be seen stacked ontop of each other.
I changed the instance names in the sub menu file to be different than that in the main menu file. This fixed the original problem of it loading the content clip into the clip that the sub menu should stay in. Now, It loads the sub menu just fine, but then it gets stuck and never loads the content. The sub menu buttons will not function at all. Independent of the main menu, the sub menu file works perfectly What can I do??? Does it have anything to do with the "_root"? I never understood the concept, so I'm having trouble with it. Any help at all would be highly appreciated. Thanks Much!!!
Loading Movie Clip Into Loaded Movie Clip
Hi,
I'm working on a flash site and I'm having some trouble with the programming for it. I'm not so great at action script, so I'm hoping that my troubles are caused by my own stupidity and that some cool smart person will have an answer for me.
So, I have a main menu flash file that functions like the one in this tutorial:
http://www.kirupa.com/developer/mx/p...transition.htm I set it to load various swf files and it's works just fine. What I want to do is have it load a swf that functions exactly the same (buttons that load external clips with transitions) as the main swf- this is a sub page menu. So, in theory, the sub menu page should load the final content, and three swfs would be seen stacked ontop of each other.
I changed the instance names in the sub menu file to be different than that in the main menu file. This fixed the original problem of it loading the content clip into the clip that the sub menu should stay in. Now, It loads the sub menu just fine, but then it gets stuck and never loads the content. The sub menu buttons will not function at all. Independent of the main menu, the sub menu file works perfectly What can I do??? Does it have anything to do with the "_root"? I never understood the concept, so I'm having trouble with it. Any help at all would be highly appreciated. Thanks Much!!!
Control The Play On The Main Timeline From Within A Loaded Movie (not A Movie Clip)?
Question... I have a movie (main movie) that loads another movie (movie 2) automatically. Movie 2 contains a button that loads yet another movie (movie3). Now I’m having trouble with this next part... When movie3 loads I want "main movie" to stop where it’s at in the timeline and stop all other loaded movies until the user clicks another button where upon movie 3 will go away and "main movie" will resume. Movie 2 is like the paper clip guy in Word and movie 3 is my help movie. Therefore, it can be accessed at any point during the main movie and I don’t want to use a goTo command to jump to a frame label or scene. Does anyone have any idea how to control the play on the main timeline from within a loaded movie (not a movie clip)?
Closing A Loaded Movie Clip & Returning To A New Frame In The Parent Movie
I have 2 movie clips movie1.swf & movie2.swf.
A button on frame 2 in movie1.swf loads movie2.swf onto layer 1.
I then have a close button in movie2.swf that I need to set up so it closes movie2.swf but instead of returning to frame 2 of movie1 it goes to frame 1.
I know this is probably really simple but I can't seem to get it right!
Cheers.
Closing A Loaded Movie Clip & Returning To A New Frame In The Parent Movie
I have 2 movie clips movie1.swf & movie2.swf.
A button on frame 2 in movie1.swf loads movie2.swf onto layer 1.
I then have a close button in movie2.swf that I need to set up so it closes movie2.swf but instead of returning to frame 2 of movie1 it goes to frame 1.
I know this is probably really simple but I can't seem to get it right!
Cheers.
Closing A Loaded Movie Clip & Returning To A New Frame In The Parent Movie
I have 2 movie clips movie1.swf & movie2.swf.
A button on frame 2 in movie1.swf loads movie2.swf onto layer 1.
I then have a close button in movie2.swf that I need to set up so it closes movie2.swf but instead of returning to frame 2 of movie1 it goes to frame 1.
I know this is probably really simple but I can't seem to get it right!
Cheers.
Calling A _root. Variable Of A Movie Clip That Is Loaded Into Another Movie...
My problem is I have two movie clips that i'm working with. The child-clip has a variable and a movie at _level10 (the base of it) that I would like to call when the child-clip is loaded into the parent-clip. I tried _level10.variable but that did not work. And commonly _root brought me to the _root of parent.
How can I get around this?
P.S.
I know there was a way in Flash 4 that you could call instances backwards (//instance) or something like that. But I haven't used Flash 4 in a LONG while.
Plz Help
Passing Variables From Movie Clip To Loaded Movie
I've got a movie clip which contains a button in it. This movie clip contains a few dynamic text fields and is duplicated 20 times. When clicked the button loads a movie into a specified target. Is there a way to send the movie clip's variables to the loaded movie?
Thanks very much.
-Mike
Movie Clip To Low Opacity When External Movie Is Loaded
Hi all,
I have a movie clip with a button that loads an external flash movie when clicked. Once the external movie is loaded I would like the movie clip (that will remain as a background) to low its opacity. How can I do that ??? I'm using AS2 and the way that I'm loading the external movie is:
Code:
on (release) {
loadMovieNum("new.swf", 1);
}
Thanks a lot in advance!
Duplicating Movie Clip With External Movie Loaded Into It
I have a movieclip called "textcolor" that loads an external "movie1.swf" into itself when a button is pushed -- and it works.
But when I attempt to duplicate the "textcolor" movieclip after the "movie1.swf" has loaded into it, it doesn't work. Of course I can control all other attributes about "textcolor" such as alpha and size using other buttons, why can't I duplicate it?
Here's my simple code:
---------------------
on (release) {
_root.textcolor.duplicateMovieClip("textshadow", 1);
textshadow._x = 200;
textshadow._y = 200;
}
---------------------
Is there something I'm missing here?
Much thanks,
--James
Movie Clip To Low Opacity When External Movie Is Loaded
Hi all,
I have a movie clip with a button that loads an external flash movie when clicked. Once the external movie is loaded I would like the movie clip (that will remain as a background) to low its opacity. How can I do that ??? I'm using AS2 and the way that I'm loading the external movie is:
Code:
on (release) {
loadMovieNum("new.swf", 1);
}
Thanks a lot in advance!
Is Movie Clip Loaded?
is there a way for me to tell that a movie clip is loaded so that i can say
if (moveclip loaded) {
blah blah blah;
}
thanks in advance,
NightHawk
Is A Loaded Movie Clip Done?
I'm loading movieclips into target mc's.
Is there any way for me to know when these have reached the end of their timelines?
They are text effects and I can't edit the loaded mc's themselves to set a variable or anything when they are finished.
-FastEddie.
Loaded Movie Clip....
i have a problem:
on the screen is a movie clip (which has buttons in it), and loaded .swf file (which has dynamic text field in it).
and the quetion is:
how can i (if even possible?), give values to this text field variable by using these buttons in movie clip?
i think it can't be done... but i'm not pro knowing flash powers.
raido
...and, is it possible to exchange data between loaded movies?
Is A Movie Clip Loaded
I have a flash time line that as a movie clip on each frame.
Some of the clips are pretty long.
Is there a way to find out if the current clip is loaded before playing it.
I have a movie clip loader at the beginning of every main clip with the following.
if (_parent.getBytesLoaded() == _parent.getBytesTotal()) {
_parent.gotoAndPlay(3);// begin the clip
} else {
gotoAndPlay(2);//loader frame to
}
but for some reason it does not seems to work.
Any thoughts,
Thank you
Loaded Movie Clip
Search wasn't working so I'm not sure where to find answer.
I'm loading an external movie id4test.swf into a empty movie clip blankClip. All works fine play great.
Now after the exernal movie finishes I need it to tell another clip in the MIAN movie to go to the next frame. Doesn't seem to work.
on last frame of loaded movie, id4test.swf, I have
stop();
tellTarget (_root.screening_room.id4FilmStripPull) {
nextFrame();
play();
}
where the target id4FilmStripPull is another MC in the same time line as the emptyMC
I've tried as expression as well. No dice. Can a loaded movie control the movie it is loaded into? Not the empty movie clip, but the main movie that holds the empty movie clip?
What is also wierd is if I simply have a stop action on the last frame of the loaded clip it stops fine, but if I have any other actions along with it, like posted above, it contiues to play the clip.
Thanks for the help
Url Of Last Movie Loaded Into Clip?
I could have sworn there was something built into Flash that you could do something like
trace(myMovie._content);
and return something like "newmovie.swf". Is there a way a built in way to do this?
How Could I Know If My Movie Clip Is Loaded?
hi there.. well, the question's simple
how could I know if my movie clip is loaded?, because I want unload a movie clip but I don't know if is loaded or not. Is it possible to unload a movie even when this movie is not loaded already?..
Thank you.
Loaded Swf Into Movie Clip
Hey guys.
I have created a movie clip called "player", and inside of the player is a mc called "loader". i have loaded an swf inside the loader(the code is placed in "player"):
onClipEvent (enterFrame) {
this.loader.loadMovie("stuff.swf");
}
"stuff.swf" loads perfectly into "loader". thats all fun and games, but my problem deals with the path:
stuff.swf is a flash file that holds a text field ("textField") and buttons. i want the text field to display certain text on the press of the buttons. so would my code for the first button be:
on (release) {
_level0.player.loader.textField = "blablabla";
}
i wrote "_level0.player.loader.textField" and not "_root.textField" because stuff.swf is loaded into "player" in level0. i have performed these tasks and ofcourse they dont work. thanks if you can suggest anything.
.swf Loaded Into A Movie Clip
Hi Guys,
I don't know if you can help but I've got a problem with a .swf file that I am loading into a movie clip, it seems to partially lose its functionality..................
The .swf is one frame with a background, a few input text boxes, dynamic text boxes and a couple of buttons. There is currently no code attached whatsoever.
However, when it is loaded into the movie clip the cursor cannot be placed in the input text boxes.
The buttons still react to the cursor, but I have tried to trace the onRelease event and the host movie will not recognise that the button is pressed.
The code I am using is similar to this:
//On the first frame of the "host" timeline
_root.emptyMovieClip.myButton = function(){
trace("clicked")
}
As I said, there's no code in the .swf and "myButton" is on the root timeline of the loaded .swf.
Does anyone know whats going on with it?
At End Of Loaded Movie Clip Do Something
ive got a load of swfs that have been given to me, i am loading and unloading them in to a flash movie using loadMovieNum('flash/url.swf,'1'); i cant edit the swf's.
I want the flash movie which is loading the swf's to go to and stop on frame 1 when the loaded movie (swf) has reached its end.
again i cant edit the swf's.
any ideas?
At End Of Loaded Movie Clip Do Something
ive got a load of swfs that have been given to me, i am loading and unloading them in to a flash movie using loadMovieNum('flash/url.swf,'1'); i cant edit the swf's.
I want the flash movie which is loading the swf's to go to and stop on frame 1 when the loaded movie (swf) has reached its end.
again i cant edit the swf's.
any ideas?
Controlling A Movie Clip Of Loaded Movie
We can load another movie on main movie:
loadMovieNum ("loaded.swf", 1);
We can also control a movie movie clip:
tellTarget ("movie clip") {
gotoAndPlay (2);
}
My question is how I can control the movie clip in loaded
movie by clicking a button in main movie.
In detailed.
I made a swf file named MAIN.SWF.
And I loaded another swf file named LOADED.SWF on MAIN.SWF using load movie action.
I want to move the frame of LOADED.SWF by clicking a button in MAIN.SWF.
Can I do it?
If I can do it, I have one more.
The LOADED.SWF has a movie clip.
Can I move the frame of the movie clip in LOADED.SWF
by clicking the button in the MAIN.SWF?
Is it possible? How?
Thanks in advance
Movie Clip Problem With Loaded Movie
I am trying to load a .swf movie (loaded movie) into another movie (main movie). There are movie clips within the loaded movie that stop and start based on which frame the movie is playing.
In the main movie the loaded movies' movie clips lose their stop and start functionality. When I test the main movie I get a "target not found" when the loaded movie tries to stop and start the movie clips.
Stop Movie Clip Until Movie Loaded
I have a transition movie clip in a main movie. I want to stop the clip until an external swf has completed loading and then have the clip continue. Also the same transition is being used for all external movies. Thanks--I'm a Rookie.
Loaded Movie Clip To Main Movie
Hello,
Need some help
I load an external movie clip on LEVEL 1 which has a buton that unloads that same external movie clip and then goes back to the main movie but plays a different FRAME LABEL.
Can;t seem to make it work.
Using this code:
on (release) {
unloadMovieNum(1);
gotoAndPlay("start_classes");
}
I know I can save myself the research by just placing the button on the main movie, but I would like to know how I can do this from the external movie clip.
THE CODE ABOVE WORKS IF BUTTON IS PLACED ON MAIN MOVIE CLIP.
NOTE: The main movie loads, there is a button that loads the external movie clip on LEVEL 1 which has a button that unloads itself to go back to the main movie but play a different FRAME LABEL.
I just wrote the extra note just in case i confused anyone lol
I tried some _root scripts, but since i am pretty new i get a bit lost
please help,
Thanks in advance.
Loo
Loaded Movie Extends Outside Movie Clip
The main movie is 750px x 400px with a movie clip named holder_mc. This mc is placed in the center of the main movie and measures 250px x 150px. The secondary movie is 250px x 150px. This second movie contains graphics that are larger than 250px x 150px that have been converted to movie clips. I use motion tweens to scroll these images from top to bottom and side to side and they work fine. The problem comes when I load this secondary movie into the holder_mc of the main movie using loadMovie and then play it.
The images play outside the boundaries of the movie clip. So instead of an image looking like it is scrolling, the whole image is displayed at one time and moves up & down and side to side. I have masked the images and then the movie displays the way I intended it to. The thing is I don't want to have to use masks all the time. This didn't start happening until I downloaded flash player 9. If it happens on my computer will happen on other computers? How can I fix this problem?
I am using Flash MX 2004 professional on a windows xp professional computer,
Can anyone tell me what is happening here and how I can fix this problem?
Thanx...Mark.
Control Movie Clip In Movie Loaded
hi guys...
quick and simple...
i loaded swf in movie clip ... no problem
in the swf there are 10 keyframes and every one take a lable frame... i can control this lables from the main swf but i need to control a movie clip in the SWF and it's own a lable inside it.
ActionScript Code:
loadMovie("bgDataHolder.swf", "_root.mc_holder")
load bgDataHolder.swf in mc_holder..it's ok
ActionScript Code:
_root.mc_holder.gotoAndPlay("label1")
it's working
but in bgDataHolder.swf there is a movie clip calls mc_lighting and it's own lables in it... how can i control mc_lighting which in bgDataHolder.swf
Control Movie Clip In Movie Loaded
hi guys...
quick and simple...
i loaded swf in movie clip ... no problem
in the swf there are 10 keyframes and every one take a lable frame... i can control this lables from the main swf but i need to control a movie clip in the SWF and it's own a lable inside it.
ActionScript Code:
loadMovie("bgDataHolder.swf", "_root.mc_holder")
load bgDataHolder.swf in mc_holder..it's ok
ActionScript Code:
_root.mc_holder.gotoAndPlay("label1")
it's working
but in bgDataHolder.swf there is a movie clip calls mc_lighting and it's own lables in it... how can i control mc_lighting which in bgDataHolder.swf
Stopping Loaded Movie Clip
HI,
could anybody explain me how to control a loaded movieclip.
1) I have loaded a moviclip in a target using command
loadMovie ("images\module07\anim_01.swf", "movie");
where imagesmodule07 is directory name & anim_01.swf is loaded file, & "movie" is the target in which I have loaded the movieclip
2) Now if on click of a button I want to stop the anim_01.swf at a particular frame say _currentframe . what is the best to control it & what command should I use.
please help me. i'm stuck up
Why Loaded Swf Into Movie Clip Never Works?
I have two major issues.
1. I am trying to load an external .swf into _level3, at 100 on the x-axis and 150 on the y-axis. I try using set property, but the movie is always loading into the 0, 0 location (the upper left-hand corner).
Even though I use the set property action to control the location of the loaded movie, it is not working and I can't figure out why.
Please help.
2. When I load swf into an empty movie clip, the swf never works. It would not play. Actually it only works if there are no action or scripting on the timeline of the swf. Why wouldn't loaded movies play, when loaded into an empty movie clip?
Please help.
Thanks very much.
Variables In Loaded Movie Clip
Is there a way to access the variables defined in a loaded, duplicated, or attached moive from the timeline that contains it? If so how?
Thanks.
Preload Swf Loaded In Movie Clip
I am trying to determine if I can preload an swf file in a movie clip. The main swf (_level0) contains no content other than the preloader and empty movie clips that use the loadMovie function to load the content. There is only one scene in the main swf. It has five frames: the first three is for the preloader, the next is section one of the presentation, and the last one is section two of the presentation. So frame four contains the empty movie clip that loads section one (sectionone.swf). Frame five contains the empty movie clip that loads section two (sectiontwo.swf). When someone views main.swf on the Internet, can I preload sectionone.swf and sectiontwo.swf from within main.swf?
Perhaps I will only preload sectionone.swf and then begin the presentation. If this is the case, will sectiontwo.swf load in the background while sectionone.swf is playing? I will have a _root.gotoAndStop(5) action when sectionone.swf is finished playing. Any help,in this matter is greatly appreciated. Thanks.
Controling An Swf That Is Loaded Into A Movie Clip
Hello
How do I control an instance in an SWF that is loading in a movie clip. Here is my action script so far.
the button:
on (press) {
control = "home";
top.play();
}
this is inside the .top movie clip on the last frame
if (_root.control=="home") {
loadMovie("home.swf", "_root.content");
}
how do I tell the home.swf that is loaded into the content movie clip to go to play a movieclip within home.swf.
thanks in advance
Attaching Clip From A Loaded Movie .... (?)
Hay guys,
I'm using the boards for over a year now. every time I had an ActionScript problem I just used the "search" button and got my answer. so first of all, I'd like you say Thanx to all of you for your great help.
now, I have a question I just didn't know how to search, so here I'm, finally posting.
This is my question:
Is it possible to attach an mc that is linked (exported for Actionscript) in a loaded Movie ?
that is, I have two SWFs; Loader.swf and Loadee.swf
in Loadee.swf I have an mc in the library exported to ActionScript by the name "loadeeMC".
I load Loadee.swf into Loader.swf with the loadMovie method,
in Loader.swf first frame -->
someMC.loadMovie("loadee.swf",5);
now I want to attach "loadeeMC" using the attachMovie (or some other method... ).
Is this possible ?
How do I do it ?
Thanx in advance ,
Le-Fay
Pause Loaded Movie Clip
There is a lot of posting about pause (or stop) movie clip.. but I have searched and can't seem to find anything to help me in my specific need.
Basically I have a main movie with a button that loads an external movie (Introduction.swf) into a blank MC (instance name - mc-holder). Now within Introduction.swf is a movie clip named pause-play that is home to the actual pause/play button.
in the pause-play movie clip is two frames:
the first frames has a stop() and the pause-play button. Attached to the button is AS -
on(release) {
_root.stop();
gotoAndStop(stopper); //stopper is name of 2nd frame
}
The 2nd frame has a stop() and the pause-play button. Attached to the button is AS -
on (release) {
mc-holder.play();
this.gotoAndStop(play); //play is name of 1st frame
}
I show this code but really it is not working at all. I really would liek to pause-play button to stop the loaded Introduction.swf and then start it back up again at the same frame it was stopped. I don't want this pause-play button to effect the timeline of the main movie.
Any thoughts?
Thanks,
Matt
|