LoadMovie/loadMovie From Loaded Movie?
I know I know .. messed up heading .. but ..
I have a button that loads a swf into an empty mc (sliderContainerMC)
(release) { _root.sliderContainerMC.loadMovie("http://www.justinsteiger.com/flash/anims/sliderOpen.swf"); }
That works as advertised. The difficulty comes when I tell the button on that swf to load a new swf into the same MC (sliderClose.swf). Since the swf in the MC (sliderOpen.swf) isn't the same swf (loading into a MC in justinsflashsite.swf) do I need to change the path? Say to include something telling it to load the swf into the parent swf?
Eventually the swf that's called into the empty MC is going to have buttons that are supposed to call up other swf's that load in other empty MC's around the site. HELP?!
Thanks, Justin http://www.justinsteiger.com/flash/justinsflashsite.fla (Is the parent swf)
FlashKit > Flash Help > Flash Newbies
Posted on: 07-22-2003, 04:26 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Checking If A Movie Loaded With LoadMovie Loaded Succesfuly
Hi,
I have a movie called main. I want to load into a movieClip that sits in main an .swf.
To do it i use a
pictureClip.loadMovie("PR001.swf");
My question is: is there a way that the main movie can know that PR001.swf was not loaded?
Thanks fo the help.
LoadMovie From Loaded Movie
Is this possible in any way? I've been trying and trying but can't get anything to work!
main.swf
menu.swf
content.swf
Those are my three movies...when you open Main it automatically loads Menu into level 10. Here's what I can't get to work, I want a button in Menu to load Content into...saaaay...level 5 and then tell it to go to a certain frame. I can't get this to work, why? I don't know. So please help me.
Thanks in advance.
Loadmovie From Within Loaded Movie
Hi,
I have my main swf called all.swf which contains nav buttons which load an external swf into an empty movie clip:
on (release) {
_root.mtClip.loadMovie("productstoc.swf");
}
This works fine, but in productstoc.swf I have 6 buttons that need to load external swfs into an empty movie clip mtclip2 in productstoc.swf. But this is not positioning to mtclip2 since its replacing productstoc.swf with the newly loaded clip access.swf, so it aligns to the top left of mtclip. This is the code I was using in productstoc.swf:
on (release) {
loadMovie("access.swf", mtclip2);
}
How can I load access.swf in the loaded movie or place in the right position in the main movie relative to mtclip?
Can I load the access.swf in another scene or frame of the productstoc.swf (alreay loaded movie)?
Your help is desperately needed.
Thanks
LoadMovie For Loaded Movie
Hi.
Confusing title, I know. So here is my explanation:
I use loadMovie() to load a few external swf files.
Later I want them to appear in a nested masked MC.
I had a function using loadMovie() in that nested MC,
but the external swf already has to be loaded
(for design reasons).
I wish I could continue using the loadMovie()-function
to load a MC from outside of the stage, but I know
it's only for external files.
How can I solve this problem? I tried to duplicate the
loaded swf into the MC, but I haven't managed it to work.
If you have any idea or hint, please tell me.
Thank you alot!
Best regards from Hamburg, Germany!
Fox
Remove Loaded Movie After New LoadMovie Has Been Loaded
i need to unload a movie once the new loadMovie is fully loaded because once i click on my button to do so, my current loaded movie goes away & the screen is white until the new loaded movie is loaded. (i hope that made sense)
LoadMovie And Scroll This Loaded Movie
I load a swf into another swf with loadmovie in a rectangle(for the position ). I would like to know, if it's possible
, if you have a swf(width 200 px, height 800 px), and than you load this movie in a rectangle (width 200 px, height 300 px!!!!), can you scroll this loaded movie with scrollbar?!?!
Loadmovie-action Within A Loaded Movie
Hi,
with a button action I load an external movie into a mc on my stage of my main-mc. The external movie is now on my stage in the target-mc called loader, let us name the external-mc "aboutme.swf". I do have some buttons in the aboutme-mc which do have also a loadmovie-action: They load an external movie into the level 0 of the aboutme-mc. I want to replace the aboutme-mc with some other mc's.
Everything works fine if i open the aboutme-mc and than load with the included buttonn an external movie into level 0, but the problem is, that if I open my main-mc, click the aboutme-button on my main-movie, click also the button in the aboutme-mc everything gets replaced with the external-movie.
Sorry about my english-problems, I hope that you have understand it though.
Omitofo
Attila
Why Does Loadmovie Slows Down The Loaded Movie
why does loadmovie slows down the loaded movie?
I have a lil problem here. Whenever i load external swf movie into my placeholder1 and placeholder2 at main.swf, the movie that i've loaded seems to slow down quite a bit.
But if those swf file is playing standalone, it runs smoothly.
Anyone knows why this is happening?
Is it because i've put too many soundobjects or is it the animation?
Any tips for optimisation?
your feedbacks will be greatly appreciated
Dragging A Movie Loaded With LoadMovie
Hi
I've got a button in my main timeline that loads a movie over the main one like a pop-up in html. What i'd like to do is to make it draggable, but i don't know how - or where i have to put the code (in the loaded movie or in the main movie but referring to the loaded movie) ...
Could you help ?
thank you :-))
[Help]:Loadmovie Inside A Loaded Movie?
Is it not possible to load a movie inside a loaded movie?
In a movie lets call it "1.swf" there is a empty MC where the movie "2.swf" is loaded.
The movie 2 got a photo-gallery where each pic is loaded in a new empty MC......
Possible yes/no? and what could I have done wrong?
Resizing A Movie Loaded With LoadMovie()
I'm looking to resize a movie that was loaded with loadMovie() into a movie clip. Once it's finished playing I want it to reduce down in size. Any ideas?
loadMovie("test.swf",main_Movie);
main_Movie is the empty movie clip, its a simple rectangle that is 550 x 400 so it fills the whole stage.
Any ideas, or if you need more info please let me know.
Rob
LoadMovie Squishing Loaded Movie
Hi,
Another problem I am having; when I load movie b.swf into movie a.swf, it squishes movie b.swf by 20 pixels vertically.
both movie a.swf and b.swf have a size of 760x480.
so when movie b.swf is loaded there's 20 pixels at the bottom where movie a.swf shows through.
Any ideas why this is happening?
Thanks!
Why Does Loadmovie Slows Down The Loaded Movie?
I have a lil problem here. Whenever i load external swf movie into my placeholder1 and placeholder2 at main.swf, the movie that i've loaded seems to slow down quite a bit.
But if those swf file is playing standalone, it runs smoothly.
Anyone knows why this is happening?
Is it because i've put too many soundobjects or is it the animation?
Any tips for optimisation?
your feedbacks will be greatly appreciated
GotoAndPlay To A Movie Loaded With LoadMovie
I have a movie which loads a swf file onto _root.mClip1.mClip2.mClip3 .... easy enough. but then I have a button on mClip1.mClip4 that I want to tell the loaded movie to go play frame 2.
I'm trying to do all this from the maintimeline so all my targets are absolute.
Can anyone help me out??
LoadMovie: Control Movie Loaded In
Hi,
I have a main movie that loads in a movie into an empty movie clip. the movie loaded in has a motion tween but is set to stop in frame 1
how can i get the root movie to tell the movie loaded in to play the motion tween ?
thanks in advance
Controlling A Movie Loaded With LoadMovie()
Hey, guys! Stumped again. I am trying to load an external .swf file into a clip instance, so that I can move/resize/etc. with AS. First, I make a new movie symbol called "logo" in my main timeline. Then, I use:
logo.loadMovie("myfile.swf");
That doesn't seem to work. I guess my REAL question is: how do you load an external .swf so that you can tweak it with AS?
THANKS!!!!!!!
Shannon
LoadMovie To Be Loaded In Movie Clip
good day members
i have a question
i want to loadmovie using targets
exactly i want as follow
in the main scene i will drag a blank movie clip
this movie clip will loadmovie a movie with defferent width and hight
for examble
the index movie 800*600
the movie to be loaded is 500*300
is that possible
if it is can you please add the code
thanks for help
Resizing A Swf Movie Loaded With LoadMovie
hi,
the following gives some funny behaviour:
loadMovie("li.swf","rect_mc");
rect_mc._width = 50;
rect_mc._height = 50;
button_mc.onRelease = function() {
rect_mc._width = 50;
rect_mc._height = 50;
}
the first alteration to _width and _height make the movie a particular size, then when the button is pressed, the movie is made even smaller, but it should be the same (always 50pixels x 50pixels)
any idea why it happens? i have a bigger project where this behaviour is causing some issues.
thanks.
How To Unload A Movie Not Loaded In By LoadMovie() ?
I have a movie clip in my file I do not want anymore after 100 loops.
When I go into the reference, it is said I only can unload movies that were loaded with loadMovie() function.
So what should I do?
It is not sufficient to just put the visibilty to 0.
This movie do some actions I really admire to kick.
btw: onClipEvent( enterFrame ) <- I thought this event cannot be provoked when I stop the animation within the movie
Check To See If LoadMovie Movie Is Loaded
I want to check if a movie has been loaded by loadMovie.
ie. I want to know if movie.swf has been loaded in content_mc.
Code:
loadMovie ("movie.swf", "content_mc");
thanks!
Loadmovie - Telling Movie Loaded To Go To A Frame?
Hi!
Here's my dilemma:
I have a button that loads a movie. I want to be able to tell the movie loaded to goto frame 2. I'm sure there is a simple solution. Any help would be appreciated ...thanks!
-drew
LoadMovie - Accessing Variables Of Loaded Movie
I am trying to access variables of a mc loaded via loadMovie.
movie1 loadMovies movie2. Then from movie1 I want to get a variable value stored in movie2.
I'm setup like this:
1. movie2 has the following code on frame 1:
var foo='bar';
2. From movie1 I do the following in frame 1:
mcHolder.loadMovie(movie2);
3. From movie1 I do the following in mcHolder's object actions:
onClipEvent(data) {
trace(foo); <-- blank
}
What am I doing wrong?
TIA
Smapdi
Using LoadMovieNum Or LoadMovie & Positioning The Loaded Movie?
I'm trying to load a .swf into another flash file I am creating and have a couple questions.
Should I be using LoadMovieNum or LoadMovie?
Also, I am able to get the movie to load, but I want to position it so it is at _y=100. Can someone tell me how to do this?
Thank you!
LoadMovie() Make Loaded Movie Invisible
I have a mc called loader which loads "1.swf"
I want 1.swf to be invisible so I made "loader" not visible
PHP Code:
this.onLoad = function() {
loader.loadMovie("1.swf");
loader._visible = 0;
};
Anyway, 1.swf is visible. What should I do to make it invisible.
Thanks in advance
Controlling Movie Clip Loaded With LoadMovie
Hi everybody,
I have some problems controlling a movie clip loaded with loadMovie. When I do the following:
Code:
var mc;
mc = createEmptyMovieClip("someinstance_mc", 0);
mc.loadMovie("someclip.swf");
mc.stop();
Nothing happens, the loaded movie keeps playing (while I want it to stop).
So basicly, how do I control a movie clip loaded with loadMovie?
- Pan
LoadMovie Loaded Movie Wont Play
Hey.
Im loading in a movie from some external source, which works fine...
If i play the movieclip i load in by itself it works fine and plays its animation.
However the movie does not play once its been loaded...
even when i try to make it play by
movicelipcontainer.gotoAndPlay(1);
any suggestions?
LoadMovie(); ...having The Loaded Movie Not Play The Sound?
is just so strange.
the .swf with sound plays fine alone... but when i load it into an empty movie clip with loadMovie("filename.swf")
...no sound!
here is the .swf with sound...
http://www.camthomas.com/process/con...preService.swf
click the grey square to loadMovie(); in another movie...
http://www.camthomas.com/process/context/loadTest.swf
Loaded Swf Movie Wont Play (loadMovie)
I modified Scotty's Finite Menu...
http://www.kirupa.com/forum/showthre...ht=finite+menu
and now I'm trying to load it into a movieclip using this code:
loadMovie("tweety.swf", _root.contents.container);
It loads but won't play. I even tried loading it directly in the main movie and it still won't play.
It plays fine by itself.
I have another swf loading into a MC that plays fine.
Is it a preloading issue?
Can anyone shed some light? I would be very grateful...
Addressing The Main Movie Timeline From A Movie Loaded Via LoadMovie.
I have a clip on the main time line of a host movie that I would like to make visible when the second frame of the swf to be loaded, containing an embedded video movie clip loads.
I have this code on the video clip in the movie to be loaded:
code: onClipEvent (load) {
_root.witch_mc._visible=true;
}
Which I had hoped would have addressed the main timeline of the host movie where the targeted clip was but no joy.
Any help please?
Going To Specific Scene In A Movie, That's Loaded By LoadMovie(...) Won't Work..?
Hi,
I've loaded a movie into another via the 'loadMovie'-Command:
loadMovie ( "test.swf", "aha");
I've got a button in the movie that calls the loaded movie:
on (release) {
aha.gotoAndStop("three", 2);
}
means, I wan to go to scene "three" framenumber 2 in my loaded movie, but it won't work...
Is it impossible to go to a specific scene in a loaded movie..?
(By the way: aha.gotoAndStop(12); works...)
Thanks for fast answers...
TOBI
OnLoad Event For Movie Clip Loaded With LoadMovie
Here is a basic one (I think).
I load a movie to a pre-existing clip like this.
<i>loadMovie("redcircle.swf",_root.myClip);</i>
..And it works very well. No prob there.
but when I call
<i>_root.myClip.gotoAndPlay(2);</i>
then myClip wont play frame 2.
If put the gotoAndPlay action under a button and wait
just a little while before pushing it then
it plays as it should. So I think there is a delay
while it is loading that makes it impossible to play
a frame in myClip right after I call loadMovie.
<b>My question is</b>: How do I tell my movie to wait until
redcircle.swf has been fully loaded into myClip and
then try to call gotoAndPlay?
LoadMovie : Loaded Movie Contains Scrollpane That Doesn't Work :(
I have a photo gallery which is divided into different sections chosen from a menu. The menu consists of several movieclips within a scrollpane. Each movieclip contains a button which will load a different gallery section into an empty movieclip (empty_clip) on the main stage. This works fine, I pasted the code below:
on (release) {
_root.empty_clip.loadMovie("g_030214.swf");
_root.empty_clip._x=207;
_root.empty_clip._y=112;
}
However, the loaded movieclip ("g_030214.swf") also contains a scrollpane with several thumbnails (buttons). Clicking the thumbnails will display larger versions of the images (each image is located in a different frame within the loaded movie). This is where I have a problem as I can't get this to work.
This is the code for one of the buttons:
on (release) {
_parent.gotoAndStop("feb03_11");
}
When I click the button, nothing happens. "feb03_11" is the frame label containing img11 from this section.
I am quite new to Flash and I suppose I'm just mixing up the terms here, but I really don't know how to sort this out. Can anyone please help me out?
Thanks
tori03
LoadMovie And Nested MC's In The Loaded Movie With Timeline Calls To Itself?
i'm sure that title sounds very confusing...
well i'm very confused
so i'm creating a portfolio flash movie. in this movie there is an empty movie clip i use for loading the main sections called content_clip.mc
now at some point content.mc is filled with a portfolio section(portfolio_mc) which has a empty movie clip called holder_big
so bascially WE ARE HERE
_root.content_clip_mc.portfolio_mc.holder_big
now i'm doing a loadMovie call to replace holder_big with an external swf.
holder_big.loadMovie("samples/sample_ten.swf");
this swf (sample_ten.swf)has a bunch of nested movie clips just like the portfolio swf and it's buttons make calls to it's timeline from inside these nested movie clips
ie:
on(press){
_root.nexusClip_mc.sectionSwitch ("sec2");
_root.sectionChoice = "menu";
}
now if i load this movie clip up in a level in portfolio_mc...these calls all seem to work. BUT I need to load it into holder_big because holder_big is in the right position and it is being masked and i'm also scaling the loaded movie down to fit via some script that is dependant on the holder_big MC.
the problem is when i load it up into the holder(holder_big) none of the button calls work.
Do I have to change the dot.path of the button calls in the loaded swf, if so any ideas as to what?
Or is there something else i'm missing.
hope this is explained well enough
thanks for any help
::shrugboi::
[MX04] Loadmovie-- Actionscript Goes Wacky On Loaded Movie If User Reloads
I'm having an issue with loading a .swf into an empty movieclip. It loads when a button is pushed, however the problem occurs if the user hits the load button again. This sends the actionscript on the movie being loaded to act really weird and do some odd things.
simple actionscript for the button:
on (release) {
_root.holder.loadMovie("newimages/swing/swing1.swf");
}
Should I maybe do a loadMovieNum? and resort to levels? Or is there some script that will unload the movie and then reload it when pressed to get a "clean" version?
(I'm unsure if it makes any difference, but the actionscript on the movie being loaded is all on the first frame and uses mx.transitions.)
When Are LoadMovie()s Loaded?
Hello all. I've created a preloader in a seperate swf movie. In scene 1, frame 1 of my main movie I have the preloader swf playing using loadMovie().
What I'm wondering is: Will the preloader be the 1st thing loaded because it's on frame1,scene1, or does that not apply to externally loaded movies?
Thanks for any help!
Loadmovie Only If It Is Not Currently Loaded
I need help telling an external SWF to load into a mc loader only if it is not currently loaded...using a button. I was thinking something along the lines of
on(release){
........if.........
loadMovie(movietoload,_root.loadmoviehere)
}
need help with the middle lol...anyone? I'm kind of low on time so anyone that can help would be greatly appreciated.
-Tony
LoadMovie Only If It Is Not Currently Loaded
I have a problem with my "buttons" as the load an external swf. If the button is pressed many times in a row, the movie starts to continually load over and over again like it is stuck in a loop (yes there is a stop command inside of the swf). It only does this when the buttons are pressed too fast.
I have a scripted mc to act like a button, here is it's action:
mind.onPress = function() {
activitybutton("mind", mindtxt)
activitiestxt ()
bringIn();
}
The functions are loaded in from an as file here:
function activitybutton (swfname, txt) {
imageLoader.Alpha = 100
patio.easeX(925, 1.09);
VIP.fadeOut(5);
maui.easeX(-100, 1.09);
con.easeX(925, 1.09);
bar.easeX(1000, 1.09);
discover.easeX(975, 1.09);
//Fade text boxes out
valettxt.fadeOut(5);
itinerarytxt.fadeOut(5);
groundtxt.fadeOut(5);
diningtxt.fadeOut(5);
mindtxt.fadeOut(5)
nauticaltxt.fadeOut(5)
scenictxt.fadeOut(5)
terrtxt.fadeOut(5)
function Pause() {
infoField._visible = true;
//load swf
imageLoader.loadMovie(swfname+".swf");
//Bring text box in
(txt).fadeIn(5);
clearInterval(PauseInterval);
}
PauseInterval = setInterval(Pause,1000);
};
function activitiestxt (){
mind.easeY(500, 1.09);
scenic.easeY(500, 1.09);
nautical.easeY(525, 1.09);
terr.easeY(525, 1.09);
};
function bringIn(){
imageLoader._alpha = 100;
infoField._alpha = 100;
logo.easeX(700, 1.09);
logo.fadeIn(5);
};
LoadMovie From One Into Another Already Loaded
I'm being redundant here, posted this question in this thread as well:
http://www.actionscript.org/forums/s...d.php3?t=64971
but here's my issue again:
I am attempting to load a movie clip (or jpg) into a separately loaded movie clip, into another already separately loaded movie clip. I am unsure of what or how I should have the target written, or if its even possible.
I have two clips I have loaded with:
ActionScript Code:
on (release) {
loadMovie("Sep1.swf", 1);
loadMovie("Sep2.swf", 2);
gotoAndStop("showing");
}
this works well, but i want to have a button in the one movie (Sep1.swf) that will load another movie (or jpg) into the other loaded movie (Sep2.swf). Is this possible? Appreciate any assistance with this, thanks,
LoadMovie, If Not Already Loaded
I'm trying to make a navigation, where it will only load the page if it is not already on the screen. Here is the code I have for a button, but I can't find the property I need to address the loaded movie's name.
Code:
on (release) {
if (_root.content.PROPERTY != "body.swf") {
_root.content.loadMovie("body.swf");
}
}
Any help is appreciated,
PXC
LoadMovie, If Not Already Loaded
I'm trying to make a navigation, where it will only load the page if it is not already on the screen. Here is the code I have for a button, but I can't find the property I need to address the loaded movie's name.
Code:
on (release) {
if (_root.content.PROPERTY != "body.swf") {
_root.content.loadMovie("body.swf");
}
}
Any help is appreciated,
PXC
LoadMovie - Any Way To 'wait' Until .swf Is Loaded?
Hi,
I have a flash movie that allows users to upload images (1-3) in a square format and then the server converts them to .swf files.
Once the images are uploaded, the main Flash movie loads them into (1-3) thumbnail mc's.
I'm having trouble because the thumbnails are 130 x 130 pixels, and the .swf files I'm uploading could be much larger. When I upload a .swf file, the size takes on the new .swf file's size, and doesn't keep the size of the original mc.
I can resize them, but I need to wait until the new mc has completely loaded. I tried the onClipEvent(data) event, but that fires when a portion of the new .swf file begins to upload, it doesn't behave like loadVariables().
Is there any way to wait until the mc is completely loaded before firing off an event or function?
Thanks,
LoadMovie- How Do You Detect If Its Loaded
Please Help!
I am loading a movie into a level and when it's loaded in, I want it to go to a certain frame.
I used
loadMovieNum ("green.swf", 1);
tellTarget (_level1.gotoAndStop(2))
It seems to load the movie but not go to the frame 2.
Should I try to detect to see if the movie is loaded then tell it to go to frame 2? If so, what would be the code?
Thanks
Bytes Loaded From Loadmovie 2
This is the pre-loader routine:
if (_root.holder.getBytesLoaded()<_root.holder.getByt esTotal()) {
_root.progress = Math.round ( ((_root.holder.getBytesLoaded()/_root.holder.getBytesTotal())*100));
if (_root.progress >= 100) {
_root.progress = "00";
}
gotoAndPlay (_currentframe -1);
} else {
gotoAndStop ("idle");
}
When I place this in a movieclip that is loaded by another movieclip, it works fine and the variable 'progress' advances normally. However, when I place this EXACT routine in a loop on the _root timeline, the progress variable remains at 0 until the clip is completely loaded, then it returns 100. It appears to be a limitation within Flash 5. Does anyone know of a solution that will allow this routine to reside in the _root movieclip and retrieve the bytesloaded properly from a loading movieclip?
Loadmovie - Center The Loaded .swf
if i load a .swf in an empty mc the left uppercorner of the swf is placed at the center of the empty mc - but i need to load various mc on verious buttons in the the mc and so i need them to be centered ( center of the .swf right on the center of the empty mc)
what am I missing -> it΄s probably pretty easy
thanks for yoor effortin advance
LoadMovie / Loaded Percent Of
I'm making a graphics section for my web page and I don't want people to wait around for the graphics to load to see the whole section so I figured that I could make little mcs that load in a specified swf with the picture in it. i want to put a little loading bar below where each picture will be displayed but im not sure how to use the getBytesLoaded in accordance with loadMovieClip to get the right data to display in the loading bar. thanks for your help.
LoadMovie And Variables In The Loaded Swf?
i use a control.exe to load 2 external swf files depending on what time of day it is, but when i load them, the loadvars and external text files dont load into the swf files. is this a targeting problem, do i have to rewrite the code in the 2 swf files to use the parent targets?
any ideas will help, Jeff
How To Re-size An Swf Loaded With Loadmovie()
hi
I'm loading an swf into an mc called "pictureClip1" and the name of the swf to be loaded is a variable "arrPicture[0]" which comes from an array made from external data.
The swf to be loaded is too small and, as there are 200 of them, i'm trying to find a way of making the swf bigger when it's loaded.
The loading code is in a frame in the main timeline - so i need to be able to target the swf from the main timeline (and not from within pictureClip1). This is my code so far
loadMovie("swf/"+arrPicture[0], _root.middleMenu.pictureClip1);
could you help me out please :-))
|