LoadMovie Talks To Other LoadMovie
ok this is baffling me!
i'm using loadmovie (target movieclip) alot
*main.swf contains **buttons.swf
i need button.swf to tell main.swf to loadMovie "contents.swf" into another movieclip.
i thought it would be as easy as:
[this script on button in button.swf]
on(release) { loadmovie("contents.swf", _root.contents) }
but of course this loads "contents.swf" into level0 of the current .swf (buttons.swf)
do i use globals or something?
set up ALL scripts in main.swf...
FlashKit > Flash Help > Flash ActionScript
Posted on: 10-10-2003, 09:21 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Loadmovie The Place Iwant? I Have Loadmovie But It Just Take All The Screen
i load a swf and it just take all the space
and my buttoms and others are all been covered
here is how i do it
onClipEvent (enterFrame) {
ifFrameLoaded (1) {
loadMovieNum ("first.swf", 0);
}
}
i put this in the layer called middle where i have put a instance of a w700 h270 movieclip so i can try to loadmovie the same size of it but it just failed
did i miss anything else? i know i did
please tell me~~~~~~~~~~~~~~~~~~~~~
LoadMovie Target Vs. LoadMovie Level
can someone please explain to me why when I load an external movie as a target, the action scripting in the loadedmovie doesn't work.
But if i load the movie into a level it works fine. I want to load into a target beacuse I want it positioned in a specific co-ordinate.
thanks
LoadMovie Calling MC With LoadMovie Problem
I am loading a movie clip into a target MC on my timeline and it works fine, but the movie clip that I'm loading in is also using loadMovie to load a movie into a MC on it's own timeline. For some reason, the MC that is getting loaded doesn't load the MC it is calling on it's own timeline. It works fine when I test it out on it's own, but as soon as I load it in using the first MC, the loaded MC doesn't call the movie clip it's supposed to load.
Any suggestions?
-k
(I said "load" way too many times!)
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)
Loadmovie Inside Loadmovie Problem?
Hi,
I have a main movie which use's the loadmovie function to load up an external SWF. But then inside that SWF there is another loadmovie function to load another external SWF into that.
But the problem is that when the first movie is loaded all of its loadmovie commands are disabled.
Is there something i could do to rectify this?
Thanks,
T
Local Loadmovie Ok / Online Loadmovie Bad
I'm at my wit's end with this one. I have an swf that's loading fine locally but refuses to be loaded online. Here's the script. It's in the first frame of the root mc ....
code:
_root.createEmptyMovieClip("slideshow", this.getNextHighestDepth());
_root.slideshow.createEmptyMovieClip("container_mc ", 0);
slideshow_btn.onRelease = function() {
this._visible = 0;
this.gotoAndStop(1);
_root.slideshow.container_mc.loadMovie("temp.swf") ;
};
Loads no problem locally. Nothing when I upload it. I have lockroot set to true in the same frame as the above script. I also tried a simple test with ....
code:
_root.slideshow.loadMovie("temp.swf");
.... in a simple mc containing only a 'slideshow' mc. Works if I access the URL directly, doesn't if I put it in an html page. What mistake could I be making?
thanks
mark
[F8] Need To Change A Variable In A LoadMovie Mc While In Another LoadMovie Mc
So I have a shell mc that has 2 mc's loaded into it with loadMovie (let's call them project1 and project2). While I'm in project1...how do I change a variable in project2 to be true instead of false?
I thought I could do it like this (in Project1...):
myBtn.onPress = function()
{
_parent.dropZone_project2.myVar = false;
}
Nothing seems to be working. Any insight would be greatly appreciated.
Resize LoadMovie Container, Not LoadMovie?
I've searched and searched but haven't found what I'm looking for.
I'm wanting to load different sized .swf into the same field and I want the field to adjust (preferably some smooth transitions for the size change) to fit the size of each different .swf loaded. I've seen it done on quite a few sites but I haven't been able to find a tutorial of any kind addressing this specifically. Can anyone help?
I'm keeping it simple, i.e. thumbnails with titles above or off to the side; click one; the field where the .swf will play adjusts itself; .swf loads and plays. When completed, user can click another thumbnail and the previous .swf will "unload" then the field adjusts for the new .swf and the new one loads. Follow me? Just any tutorial you guys may know of would be great.
Here's the closest example I could find... cool site too. http://www.pollenation.org
Loadmovie Over Prev Loadmovie And Positioning Jpg
Hello, a little question and i have the feeling i am very close.
i use loadmovie to load an image into an movieclip.
that movieclip goes to the position x and y of the movieclip - the loaded image width/2
my problem is that when i load a new image the position is not correct.
my code:
--------------------------------------------------------------------------------------------------------------------
function nextImage1()
{
if (p < total - 1)
{
++p;
if (loaded == filesize)
{
trace(p);
trace("x van inst0"+litlimg_instance.ltlimgmc_instance0._x);
trace("y van inst0"+litlimg_instance.ltlimgmc_instance0._y);
litlimg_instance.ltlimgmc_instance0._alpha = 0;
litlimg_instance.ltlimgmc_instance0.holder.loadMovie(image[p], 1);
var maxWidth = 250;
var maxHeight = 200;
var myWidth = litlimg_instance.ltlimgmc_instance0._width;
var myHeight = litlimg_instance.ltlimgmc_instance0._height;
// Calculate percentage by which image will need to change to fit
if (myWidth > maxWidth){
var xscalePercent = (myWidth*100)/maxWidth;
}
if (myHeight > maxHeight){
var yscalePercent = (myHeight*100)/maxHeight;
}
// Multiply both height and width by the bigger percentage
if (xscalePercent>yscalePercent) {
litlimg_instance.ltlimgmc_instance0._width /= (xscalePercent/100);
litlimg_instance.ltlimgmc_instance0._height /= (xscalePercent/100);
} else {
litlimg_instance.ltlimgmc_instance0._width /= (yscalePercent/100);
litlimg_instance.ltlimgmc_instance0._height /= (yscalePercent/100);
}
var test=litlimg_instance._x-(litlimg_instance.ltlimgmc_instance0._width/2);
trace("width img:"+litlimg_instance.ltlimgmc_instance0._width);
trace("width:2 :"+litlimg_instance.ltlimgmc_instance0._width/2);
trace("x position must be:"+test);
trace("x position is:"+litlimg_instance.ltlimgmc_instance0._x);
trace("----------------------------------------------------");
litlimg_instance.ltlimgmc_instance0._x=litlimg_instance._x-(litlimg_instance.ltlimgmc_instance0._width/2);
litlimg_instance.ltlimgmc_instance0._y=litlimg_instance._y-(litlimg_instance.ltlimgmc_instance0._height/2);
slideshow();
} // end if
} // end if
} // End of the function
function slideshow()
{
function pause_slideshow()
{
clearInterval(myInterval);
if (p == total - 1)
{
p = 0;
firstImage1();
}
else
{
nextImage1();
} // end else if
} // End of the function
myInterval = setInterval(pause_slideshow, 4000);
} // End of the function
p = 0;
--------------------------------------------------------------------------------------------------------------------
what i do is i have an array with the image links.
on a interval i load an image. and if p has reached the number of loaded images i start over again.
i traced the following while testing a bunch of images:
-------
1
x van inst0-125
y van inst0-93.55
width img:250
width:2 :125
x position must be:-125
x position is:-125
----------------------------------------------------
2
x van inst0-125
y van inst0-93.55
width img:258.05
width :2 :129.025
x position must be:-129.025
x position is:-125
----------------------------------------------------
3
x van inst0-129
y van inst0-93.55
width img:140.3
width :2 :70.15
x position must be:-70.15
x position is:-129
----------------------------------------------------
4
x van inst0-70.15
y van inst0-93.55
width img:243.2
width :2 :121.6
x position must be:-121.6
x position is:-70.15
----------------------------------------------------
1
x van inst0-125
y van inst0-93.55
width img:250
width :2 :125
x position must be:-125
x position is:-125
----------------------------------------------------
It looks like he takes the position of the prev image or something like that.
Please some help here.
Greetz. Jacob
Ps: this was some code i posted.. i would like to know how you put it into such a nice code block on the forum so it becomes more readable.
Set LoadMovie Time, UnloadMovie, LoadMovie
in that order-
Put simply-
can anyone guide me to any resources that would explain how to do this?
1. Load 2 swf's into empty mc's (this part is already done)
2. Have those 2 swf's be on the stage for 3 seconds.
3. Unload those 2 swf's.
4. Then load a completely new swf once those have been unloaded.
LoadMovie In LoadMovie Won't Work...
So I've been trying to get this loadMovie within an loadMovie to work...with no luck at all...
// This code is in my main 'shell' swf file
myBtn.onPress = function()
{
dropZone.loadMovie("projects/project1.swf");
}
// This code is in the first frame of my project1 swf file in the 'projects' folder
dropZone2.loadMovie("content/contentPage.swf");
Anybody have any insight on this?
LoadMovie Inside LoadMovie
im trying to make a movie clip that loads another swf that in turn loads a movie;
I created A.swf, which contains a movieclip; inside it has a shortshort animation and then loads an image:
loadMovie("image.jpg",_root.Image.PlayerScreen);
//_root.Image is the movieclip
then i created B.swf, wich loads A.swf;
loadMovie("A.swf", _root.PlayerScreen);
the problem is that B.swf loads with no prob, it loads the animation in A.swf, but instead of getting the image, i get a purple square...
any idea what's wrong?
thnx!
Swf Talks To Swf
I know how to "load movie" utilizing the same space on a website.
But how do i tell my top menu (an swf embedded in the top cell of a html table) to talk or call up new swfs in another cell of the same html table?
please reply quickly, I need to resolve this ASAP
thanks
MC Talks To The Main Timeline.
I am using a tutorial .FLA file. It's got a horizontal motion menu. Anyway, the MC's that hold the buttons are so deep in MCs that i can't talk to the main timeline. I can't even move frame to frame from the buttons that are moving. I've tried the thing that people say to go from the MCs to Scenes. but i just want the main timeline. thanks.
Superhue.
Mc Menu That Talks To Level 0
I have a project with a basic loadmovie structure. My main content is on level 0. I have a few other things that load on higher levels, so I need the menu to be able to popup over these things. Right now all my nav buttons, including the menu button are on level 0. The menu button makes the menu movie clip load on level 4.
I can't figure out how to make the menu buttons talk to the main (level 0) timeline. I'm trying to use "_root" but I don't think I'm doing it right. I haven't used it before. What code should I use? Should I make the menu in a different way?
Swf Talks To Other Swf Embedded In Same HTML Page
Hello,
If I have 2 different swfs loaded into different areas of an HTML page, how do I send a variable over to one then back again, when let's say, a button in one is clicked?
Do I have to send the variables up to a script on the server? If I do have to send it up to a script...how do I get it over to the other swf??
thanks,
morgan
How To Make Html Talks To Flash
is there a way to make html send command to a flash animation sitting on it, to play a certain scene?
thanks for your help!
B
[MX] How Can I Add AS To A Radio Button That Talks To A PHP Script?
I want to create a form that uses a flash radio button. Anyone if I can add an AS that will talk to the PHP script on the server? My fla is attached.
If I pasted an text field (filled with yes or no respectively) on the checked and unchecked layers of the radio button and added a var to each text box would this work?
Festival With Animation And Online Talks
Hello, I want invite you to Midsevewebfest.com, an art & technology festival that will be only in Internet, with chat onlines and many prizes!! will be an amazing way of know digital art, new expressions of design and FreeSoftware/OpenSource or Creative Commons license. Some of our speakers are people from Ubuntu (linux distro), Blender (3D software), OpenPuppets (cute illustrations for FreeSoftware), Baquia (new economy website) or The Mixed Project (video illusion software), ... from 24 till 26 june... http://www.midsevewebfest.com Help us to spread midsevewebfest.com around Internet world, invite your friends, share your art, enjoy culture. Live Internet. Midsevewebfest.com is an OrganicaDTM.com's project.
Html Text Talks To Flash Movie?
Hello,
I'm working on an html/flash hybrid site.
questioN;
Can I control my flash movies from an html link on the same page?
IE: a text link in the html page copy will send my flash movie to a specific frame in a MC.
thanx
Nested Movie Talks To The Main Timeline?
I'm very new to actionscript 3.0 (and actionscript in general for that matter) so this may be easily done.
My main timeline has two frames. On the first frame a button is clicked will take the users to frame #2. When frame #2 is played, a movie clip that takes up most of the screen appears. Now, there is a button to return to frame #1 in the main timeline, from within the movieclip on frame #2.
How do I get the "return to frame #1" button to work within the movieclip on frame #2? I assume the button needs to speak to the main timeline (or something like that) but just not really sure.
Thanks in advance!
LoadMovie
Can someone take a look at my post on the 20th. I wrote a pretty lengthy request for the load movie command. i would appreciate it. Having trouble with the loadMovie command and getting it to recognize the targeted level. What is the "Level" in flash 5. I need to know for action scripting.
John
Loadmovie Or NOT To Loadmovie
I was wonder should I keep my flash file on one big (600+kb) swf or should I break down my scenes into movies and then load then load the swf that way.
If I use the loadmovie, way I like that it quickly loads my intro and main interface, but you still have to wait on each scene to load up and each scene is around (150kb -300kb). But once its loaded its loaded.
Should you have your flash site just load once or have mini loaders in it. I'm not quite sure which direction to go.
Help Regarding Loadmovie
hello
i am tushar i am a flash animator .i am have a problem in getting a particular frame in loadmovie.
see i get the other SWf into my mother SWf but i can't get a specific frame
it come on first frame only and i want it could come to any frame i specify.
is there any one out there who can help me out
Thanks
Tushar Garg
gargtushar@hotmail.com
__________________
Loadmovie To Above All Others
Hello,
I am working on an operating system like interface where my navigation buttons load swfs with the apropriate content. These swfs resemble windows and I want them to work like windows as well. Everything is going great except I do not know how to load the move into the front most position. I want there to be multiple windows out at the same time and then I was going to put a swap depths script on each window to make the active window come to the front. Before I get that working though, I need to be able to load the movie into the front most position. Any ideas?
Loadmovie X-Y HELP
Well, I want to load an external *.swf movie called info.swf into my main movie called inside.swf.
Now, I used the following code (its assigned to a button):
-------------------------------------
on (release) {
loadMovie ("info.swf", 1);
setProperty ("1", _x, "260");
setProperty ("1", _y, "30");
}
-------------------------------------
The movie loads but the X and Y position won't work !!
I also tryed the code that is used for flashtyper X-Y positioning, but problem still exists, the movie loads at X-Y cooördinates 0-0 and I want them to load at 260-30. How can I arrange this ?
LoadMovie, Is It Possible?
I have a movie that has a preloader on the interface and also contains a dummy movie clip for loading external .swf's. When the page is opened the interface preloader comes up then after all that is loaded the external .swf is loaded (with another preloader). I was wondering if there is a way to get the first preloader to load the interface and the first external .swf????? Can you help me out?
thanks for the help.
LoadMovie Help
Can you add a variable to the end of the loadMove command?
loadMovie (http://myserver.com/myfile.swf?test=test);
Loadmovie To _x & _y
i have been loading movies into targets so i can place them on the stage
where i want them, but i have found that this sometimes causes action
scripts to not run.
how can i specify the _x and _y co-ordinates to load a movie into a level?
thanx!
Loadmovie (?)
Hi all,
I used loadmovie commands in my site>> http://www.kibbutznetwork.co.il/adam
which doesn't work on MAC platform.
any ideas?
Thanks.
Set _x And _y For LoadMovie Help?
Please If someone can tell me how to precisely pposition a loadedmovie within the main Movie, i'd be very grateful,
note: i don't want to use "target"
Loadmovie Help
Well, to make it short and simple, I have the main site interface and at the press of a button an animation will play then hold to a stop. At the stopped frame the loadmovie loadable.swf (1) is present.
My problem is I figured that if i have a preloader on the loadable.swf it would show and wont play until the loadable.swf is completly loaded. In this case the preloader status will not show, and once loadmovie is hit it starts to play the movie when it is not loaded all the way. Please if you can explian how to properly "totally load an swf file using loadmovie with the preloader status showing it would be greatly appriciated..
n.u.r.v.
Loadmovie() Help?
i am the web interface designer...so, i am not really understand actionscript at all...currentlly i have problem with the load movie script.
loadMovieNum ("project.swf", 10);
the project.swf was show up in my main movie,but how come always on top of main movie graphic.
the graphic of the project.swf alreally block all my main movie...why?....
ever i am try to put the picture frame border in my main movie..the project movie is floatting on top of my frame border...can i control my project.swf graphic all below of my frame border? couse all is on top of my picture frame some 1 pls help me please!
Set A Loadmovie
how do i place a loadmovie in the sene.. it always is centered when i use :
loadMovieNum ("marshal.swf", 1);
anyone got an idea?
LoadMovie()
This is my first post and probablly not my last.
In my root movie I want to load a swf file into a movieclip. I have done this with loadMovie. The only problem is when it loads into the new movie clip it is only oloading into the bottom right quarter of the movie clip. I think that it is taking the (0,0)x,y cords as the middle of the movie clip. Does anyone have a suggestion. I know that editing the center point doesnt do anything.
LoadMovie Into MC.
I was wondering what is the best way to be able to control a external swf file that has been loaded into a MC. I need to be able to use buttons in the root movie to control the loaded movie. The onlly thing is that I will be loading several movies into the root. I think that i would need specific code for specific movies? sorry for the confusing wording? any suggestions?
Loadmovie
when i load an external .swf with loadmovie how i control where in the main movie i want to load it.
how i control the the external .swf
Loadmovie Help
Hey there!
I need help with a loadmovie, when the new swf file is loaded I need to go to a specific label in this movie, I have tryed with this:
on (release) {
unloadMovieNum (4);
loadMovieNum ("index.swf", 3);
tellTarget ("_level3.root") {
gotoAndPlay ("Scene 1", 1);
}
}
but it wont work .. plese help me dudes!!
best regards,
Daniel Lindstedt
Bug After LoadMovie ?
I'm making a flash game that gets loaded into my flash web page with movieClip.loadMovie();
After testing this operation, I went back into my game fla to make some changes and now for some unknown reason none of my changes are getting saved. The are not only not getting saved, but when I test, they are not getting executed either!
I can do a SaveAs, give it a new file name, and when I open the new file all code alterations are gone and it has reverted to the code used in the first test of my web page.
This is the craziest thing I've ever seen flash do and I cant seem to edit my game anymore. Anytime I try, of course, it wont save changes and wont let changes get built. I've rebooted and everything... help plz!
Craig
LoadMovie
I know no one's on Flashkit right now. BUT..here's my question.. LoadMovie, .. how Can you call loadMovie with targeting LoadMovie _root.MC.item, or just tell where to start when the movie is loaded?
Thank's!
-Paradoxz
Loadmovie
I have been searching for a tutorial on this but I'm having no luck.
I am attempting to load seperate movies from an swf by having 2 buttons on an intro screen (each one opening another movie).
I want to do this so I can have a preloader on each scene. Is this the best way to do this or is there an easier way?
With either option I could do with some pointers if anyone has any ideas or code I could poach.
Cheers!
LoadMovie?
Ok, I must be doing something TOTALLY wrong because whatever I do, I can't get it to work. Could somebody PLEASE explain to me what I have to do? What's the difference between Level and Target under location, why does it say 0 next to it, when sould you use the Expression, and what are the parameters when you put in the url for the movie??? I think I've tried just about every combination possible. Thank you VERY MUCH if you help me out.
LoadMovie
I know how to use loadMovie, but how could I work with the loaded movie?
I'd like to have the same properties I have when I attach the movie, like the x and y positons, alpha, size and so one.
Thanks in advance.
Loadmovie
I'm a newbie to actionscripting and hope you can help me with this one
I've got one startermovie (exe file). In that movie the user has to select a language. All french movies are in a subfolder called "french" and all english movie are in a subfolder called "english"
the structure looks like this
start.exe
I
_______________________
I I
French English
I I
I- intro.swf I- intro.swf
I I
I- pag2.swf I- pag2.swf
I I
I- ... I- ...
So I start from start.exe. choose a language and the goes on like a slide show to intro.swf to pag2.swf to ...
I used on the language buttons in the start.exe file
loadmovieNum ("../english/intro.swf", 0);
this works fine
On the end of f.ex intro.swf I used loadmovieNum ("../english/pag2.swf", 0);
and that's where the problem is. He just starts over playing the intro.swf
How can I go to my next movie and the to the next one and so on?
I've already tried loadmovieNum ("pag2.swf", 0); but this doesnn't work either.
Loadmovie
I'm a newbie to actionscripting and hope you can help me with this one
I've got one startermovie (exe file). In that movie the user has to select a language. All french movies are in a subfolder called "french" and all english movie are in a subfolder called "english"
So I start from start.exe. choose a language and the goes on like a slide show to intro.swf to pag2.swf to ...
I used on the language buttons in the start.exe file
loadmovieNum ("../english/intro.swf", 0);
this works fine
On the end of f.ex intro.swf I used loadmovieNum ("../english/pag2.swf", 0);
and that's where the problem is. He just starts over playing the intro.swf
How can I go to my next movie and the to the next one and so on?
I've already tried loadmovieNum ("pag2.swf", 0); but this doesnn't work either.
[ LoadMovie ]
Hi!
I have done a first grid.swf with a DuplicateMovie script. (It helps me to build a grid)...
Now i have a seconde main.Swf file. And you are right, i want to load the first one in the second.
The grid.swf is efficiently loaded in main.swf but the actionScript doesn't seems to work!
Does anybody knows where is my mistake?
[ Voulf ]
LoadMovie Help
Hello,
I have a flash movie and need to use loaedMovie to bring in other .swf files. Is there any way to control where on the screen they appear and at which size? I knoe I can control the level it appears on but they all end up on the top left hand corner.
Thanks.........Rob
?loadmovie¿¿¿¿¿¿¿¿¿¿
como puedo hacer para que luego de cargar a la pelicula principal una movie externa, (ejemplo: nivel1), poder tapar a la movie del nivel 1 sin tener que cargar otra movie externa?
since I can do so that after loading to mainmovie an external movie, (example: nivel1), to be able to cover to the movie of level 1 without having to load another external movie?
LoadMovie
Ok, I have this movie, and what I want to do is to say load this movie into the next highest level. I know how to do levels, but this isnt acheiving what I want. I need it to just load in the NEXT highest level. So if I click on one button it loads into level1 and then the next button no matter which one i click loads to level 2? Is this possible?
Josh Dura
|