Load An External Swf To A Movie
how i load an external swf to an specific movie???
can some body send me an example
Thanks!!!!!!!!!!!!!!!!!!!!!!!
FlashKit > Flash Help > Flash General Help
Posted on: 04-10-2003, 09:48 PM
View Complete Forum Thread with Replies
Sponsored Links:
Help Trigger External Movie To Load From Button In Another External Movie - Stuck
I really hope someone can help me!!!
I am loading movie C.swf into movie B.swf which gets loaded into movie A.swf the main movie. All loading works except C.swf has buttons that need to trigger another movie E.swf to load into A.swf and that is not working!!!
Here is the structure I am using:
A.swf (main final movie loads B.swf on start)
B.swf (loads main nav C.swf and scrolls it infinitely)
C.swf (main nav with buttons that trigger sub nav E.swf to load into A.swf)
E.swf (sub nav with buttons that trigger F.swf to load into A.swf)
F.swf (scrolling images of portfolio)
The actionscript I am using for the button in C.swf to trigger E.swf to load into the main movie A.swf is:
metals_mc_bn.onRelease = function() {
reActivateMenu();
this.gotoAndStop(3);
this.enabled = false;
loadMovieNum("E.swf", 1); // trigger sub nav E.swf to load into A.swf
};
I am so stuck with this and seems so simple a problem, but I'm just pulling hairs out at this point, can anyone please help me!
View Replies !
View Related
How To Load An External Movie Using A Link Within An External Swf - Urgent
Hi all
Flash CS3 but coding in AS2 - mac.
I believe I have asked this question before but i was using loadMovie() - I am now using loadClip and the MovieClipLoader class and obviously I have managed to break something.
I have a number of external swfs which load fine, with preloaders using MovieClipLoader, into an empty MC on the stage called holder_mc. In one of the external swf's, there are two links to separate external swf's - if you click on either of them, the current swf is unloaded and the new one is loaded. I used:
Code:
myButtonWithinSwf.onRelease = function() {
this._parent.loadMovie("newMovie.swf");
}
However now that I am using a different code (because before, evrything wasnt preloaded, i just had a white space until it appeared) the code within the swf obviously has to change. The only problem is, I cant for the life of me work out what it is, I have tried all sorts of combinations and probably missed the most obvious one. I do not want to create empty movie clips, I want the movie to load into the MC which I have defined - holder_mc - and usually I would tell it to unloadClip() before loading the new one, but it cant load a new one if it has unloaded itself. I hope that makes sense!
This is the code I am using on the main timeline to control the preloading of the external swf's:
Code:
var mcLoader:MovieClipLoader = new MovieClipLoader();
var loadListener:Object = new Object();
loadListener.onLoadStart = function() {
holder_mc.stop();
};
loadListener.onLoadProgress = function(target:MovieClip, loadedBytes:Number, totalBytes:Number) {
pleaseWait._visible = true;
var preloaded:Number = Math.floor(loadedBytes / totalBytes * 100);
preloaderMC._visible = true;
preloaderMC.loadText.text = preloaded.toString() + "%";
preloaderMC.loadBar._yscale = preloaded;
};
loadListener.onLoadInit = function() {
preloaderMC._visible = false;
pleaseWait._visible = false;
holder_mc.play();
};
/**** register listener object with MovieClipLoader object ****/
mcLoader.addListener(loadListener);
anotherButton.onRelease = function() {
mcLoader.unloadClip(holder_mc);
mcLoader.loadClip("anotherMovie.swf", holder_mc);
}
my preloader is called preloaderMC and pleaseWait is just a movie clip that is placed on the other side of the screen for another reason. loadText and loadBar are the dynamic text and loading bar within the preloaderMC.
I really hope someone can help me ASAP as this was all working before with loadMovie() and now suddenly I cant get it working!
Thanks in advance
Theo
View Replies !
View Related
How To Load An External Movie Using A Link Within An External Swf - Urgent
Hi all
Flash CS3 but coding in AS2 - mac.
I have asked this question before but i was using loadMovie() - I am now using loadClip and the MovieClipLoader class and obviously I have managed to break something.
I have a number of external swfs which load fine, with preloaders using MovieClipLoader, into an empty MC on the stage called holder_mc. In one of the external swf's, there are two links to separate external swf's - if you click on either of them, the current swf is unloaded and the new one is loaded. I used:
Code:
myButtonWithinSwf.onRelease = function() {
this._parent.loadMovie("newMovie.swf");
}
However now that I am using a different code (because before, evrything wasnt preloaded, i just had a white space until it appeared) the code within the swf obviously has to change. The only problem is, I cant for the life of me work out what it is, I have tried all sorts of combinations and probably missed the most obvious one. I do not want to create empty movie clips, I want the movie to load into the MC which I have defined - holder_mc - and usually I would tell it to unloadClip() before loading the new one, but it cant load a new one if it has unloaded itself. I hope that makes sense!
This is the code I am using on the main timeline to control the preloading of the external swf's:
Code:
var mcLoader:MovieClipLoader = new MovieClipLoader();
var loadListener:Object = new Object();
loadListener.onLoadStart = function() {
holder_mc.stop();
};
loadListener.onLoadProgress = function(target:MovieClip, loadedBytes:Number, totalBytes:Number) {
pleaseWait._visible = true;
var preloaded:Number = Math.floor(loadedBytes / totalBytes * 100);
preloaderMC._visible = true;
preloaderMC.loadText.text = preloaded.toString() + "%";
preloaderMC.loadBar._yscale = preloaded;
};
loadListener.onLoadInit = function() {
preloaderMC._visible = false;
pleaseWait._visible = false;
holder_mc.play();
};
/**** register listener object with MovieClipLoader object ****/
mcLoader.addListener(loadListener);
anotherButton.onRelease = function() {
mcLoader.unloadClip(holder_mc);
mcLoader.loadClip("anotherMovie.swf", holder_mc);
}
my preloader is called preloaderMC and pleaseWait is just a movie clip that is placed on the other side of the screen for another reason. loadText and loadBar are the dynamic text and loading bar within the preloaderMC.
I really hope someone can help me ASAP as this was all working before with loadMovie() and now suddenly I cant get it working!
Thanks in advance
Theo
View Replies !
View Related
External Movie Will Not Load, But Does Load When I Use 'test Movie'?
I had my external movies loading wonderfully then all of a sudden one of the externals (that I use 'loadmovie' on) will not load? The weird thing is that when I test my movie using 'test movie' in my main movie, it works fine, but when I go to my staging (test) site: www.gbebos.com/Liz/Hit.htm the one movie in 'Earth elements' page will not load, but the other movies i.e. 'Crystal Elegance' and 'Silver Essence' work fine. I made sure that the .swf and .html were transfered to the domain and they are both there.
Any help for this newbie would be greatly appreciated!
Thanks again to ya all at Flashkit!
gbebos
View Replies !
View Related
I Cant Seem To Load An External Movie, Within An External Movie That Has Been Loaded
Ok. I created a button.. and added a behavior that loads an external swf into a movie clip. Now the external swf movie that loads into the mc also has a button that loads a second exteral movie. Nesting several movies swf files in the main movie.
http://www.dondi.biz/newsite06/ (click on portfolio)
When I view the final movie. It only loads the first external movie showing the buttons (web, Print etc.). But when I click on the button it doesnt load the third movie.
but when I view the second movie it loads it just fine when not nested in the first movie. http://www.dondi.biz/newsite06/portfolio.html it loads just fine.
Can I not nest these movies together to work just fine? Why is this so frustrating? Can anyone help me please?
View Replies !
View Related
Load And External Movie From A Base Movie Help...
Hi i have a movie clip called base movie which i want to load up with its content, when its finished playing i want the movie to load an external movie whilst the base movie is still playing. When the base movie is finished i then want to recall the already loaded external swf in to its place. Is this possible and are there any tutorials on this or working examples i can browse?
Thank you
View Replies !
View Related
Load A Particular External .swf Into A Movie
Hi, I seens smth like this in some other tutorials , but it wasn't exactly. What I want is to---
While my main .swf is playing to load other small swf(s) into it in particular places. Let's say it to be content of one of the small "screens".
How to do tht?
Maybe a link or smth.
Thanx.
View Replies !
View Related
Load External Movie...
How do I load external movie to my root movie to a small window some kind of. My friend is making a portfolio and he would like to click on button to load movie in some kind of small window in center of his movie... Please help!
Thx
View Replies !
View Related
Load External Movie...
How do I load external movie to my root movie to a small window some kind of. My friend is making a portfolio and he would like to click on button to load movie in some kind of small window in center of his movie... Please help!
Thx
View Replies !
View Related
That External Movie Would Load Only Once
Situation:
Button has an action - play. It plays until gets to keyframe that asks external clip load into empty clip. Then in the next keyframe it stops. What kind of action tells the keyframe to load that external clip only once, so when playing next time the same keyframe it wouldn't load the same movie again.
View Replies !
View Related
Load External Movie
Hello everybody, I'm doing a portfolio at the moment to be used on the net, it is a main movie and an external movie that loads and appears when a button is pressed but unloaded when the user pressess any othet button.
Everything works perfectly when I do apple (ctrl)+enter but when I load it on the web nothing happens, Im using Flash MX and explorer 5.
Taverymuch
View Replies !
View Related
Load External Movie
Hi,
I'm loading an external swf like that :
onClipEvent (load) {
loadMovieNum("test.swf", 1);
}
But the swf position is not correct.
I tried :
_level1._y = 200;
_level1._x = 200;
It's not working
Please help
View Replies !
View Related
Load External Movie?
I want to load a movie as the playhead enters a frame with a load movie command. I'm using Behaviors and it says "Load External movie clip". I don't understand external..............does that mean in the movie library or in another file somewhere???
View Replies !
View Related
Why Won't Movie Load External SWF?
I'm having trouble getting a movie on an HTML page to load another external SWF movie. I don't think the problem is the actionscript, because it works when I view the movie in only flashplayer. It's only when the movie is on my webpage that it doesnt work. All I get is a blank white space that says "movie not loaded" when right clicked. All the files that I used are in the same folder on the server. The actionscript loads between two movies randomly. Here's the actionscript:
var basename = "TNE";
var totalmovies = 2;
var movietoload = basename+Math.ceil((Math.random()*totalmovies))+". swf";
_root.loadMovie(movietoload);
Please help, because I've been looking for days.
View Replies !
View Related
Load External Movie
hi guys,
i have two flash .swf the first is the intro.swf and the other is the presentation.swf (i made them).
i want to make the intro as autorun once the user click on start(BUTTON) it close the intro.swf and play the presentation.swf movie...
now!! i know how to create a autorun but my problem is running the presentation.swf once the user click on the START(BUTTON).
please i want your help guys
View Replies !
View Related
Load An External Movie
I am not sure if I titled this question right but here goes the question.
I have a slide show of 15 image. All the images preload and play. when the slideshow reaches the last frame I start another swf slide show with the actionscript below.
I also have next and back buttons on my slideshow. When they are being used the slideshow moves 1 image at a time using the buttons. So if I am at the end of the first swf slideshow STOPED, and hit next I need it to load the next swf and stop at a perticular framelabel (gotoANDstop "position1").
How do I load an external movie and have it gotoandstop at a certain framelable I think is what I am asking.
//load Movie Behavior
if(this == Number(this)){
loadMovieNum("
View Replies !
View Related
Load An External SWF Movie From An *.EXE SWF
Thank for your help but the main SWF is in a *.EXE
Do I have to use the same code?
Thanks
Pablo Gill
Pd:
load an external SWF movie in my main SWF ( I use tell a target with an empty movieclick) I need that when this external SWF ends go to a XXXXXX Frame but in the main SWF no in the same external SWF.
View Replies !
View Related
External Movie Load
Hi,
I'm trying to do something that should be really easy... and it seems not to be for me, at least, so i was searching for some help.
I've got a website, with a menu of rollover. When i click in one of the 5 options i made it go to a certain frame labeled by myself.
In this frame i wanted to read an external file with a preload included in it. The real problem is that when i enter that frame, if tries to read the file, but it backs up to the 1st frame on the website (which is an intro).
I would like to ask, if someone could give a hand with this. it's really important to fix this up and finish this work, i should already have ended.
Thanks for any help given!
All the best!
View Replies !
View Related
Is It Possible To Load An External Movie....
Is it possible to load an external swf within the main swf with a html url in flash.
Like this:
myHTML+= "<br><p class = 'content'>Don't forget to check our <a href = 'portfolio_menu.swf'>PORTFOLIO</a> section to see the work we made.</p>."
The point is that the external 'portfolio_menu.swf' must be placed in a _MC in the main SWF. Is this possible? And if this is the case, where should I place the code to direct the 'portfolio_menu.swf' in the MC > 'main_content' in the main swf.
In AS I normally write:
("portfolio_menu.swf", _root.main_content)
Ok I hope I explained this well, if not let me know !!
thanx in advance!
View Replies !
View Related
Load External Swf Into Movie Clip
Is there a good tutorial somewhere for this?
I am apparently doing something wrong.
I get the external swf to load but it takes the size of the main movie when the ext is only 1 inch by 1 inch.
I don't know if I'm making my MC wrong or loading the external swf wrong. A tutorial from creating a movie clip to loading external swf would be great. Have searched for 5 days and needed it it 2 weeks ago, PLEASE HELP
View Replies !
View Related
Load Swf From External Movie Into Base Swf
hello all,
i'd like to find an answer to the following:
i have a base movie in which I load an external movie(portfolio),
into a movietarget.
Now from the loaded portfolio I'd like to load a new swf into the base movietarget.How do I call the base movie from an exernal swf?
Lisa
View Replies !
View Related
Can An External Movie Load A MovieClip?
Flash 5 for PC
I have a MC (TOC) with a number of buttons. On release, an external .swf (slideshow1) is loaded on top of the TOC MC. When slideshow1.swf is done, I would like the TOC to return, so the user can choose another slideshow (e.g., slideshow2.swf).
The external .swf files were made with Swish.
If someone could point me in the right direction, I'd really appreciate it.
Regards,
Cooljazz
View Replies !
View Related
Load XML And External Movie Problem
Hi,
I want to load an XML-file in an external movie.
I'm loading the data from the XML-file in a temporary textfiled on the _level0 movie.
The external movie (_level3) has a dynamic textfield that is equal to the temporary one on the _level0.
Now, when the _level3-movie is loaded it should show the text, but it doesn't (when seen on the web; it works local). I'm quite sure that the XML on the _level0-movie is not loaded in the textfield before _level3 is loaded. (so the script that says: "_level3.TheTextField = _level0.TheTemporaryTextField" comes before any data is in the temporary field.)
My question now:
how can I make my script (in _level3) wait until the temporary _level0 textfield is loaded with XML-data?
I hope this makes sense?
Thankx in advance
kGP
View Replies !
View Related
External .Swf Movie Position On Load
For somereason when i load my .swf into a movie container it only shows the movie and doesnt actually play it.
If i use loadMovieNum("chi-tn.swf", 1) it loads and plays it fine.
But i want to be able to put it where i want, and when i have tried using the _x and _y it moves the main movie as well as the external movie, is there a way to specify the external .swf
Many thanks
Alex
View Replies !
View Related
Load External Jpg Into Duplicated Movie
Hi all I am new to this board and I have a question.
I am trying to add external jpg to my movie, here is what I have and what doesn't work:
main timline has a text box(photo_source) with add photo button there is an action script attached to a button to duplicate mc Container and load an external jpg into mc Photo which is inside mc Container
_root has (text box and button)
mcContainer has mcPhoto inside
I want to be able to type url in a field click add and load external photo, then do it again with another photo(now we have 2 photos) and so on...
my script successfuly duplicates mcContainer but photos are not loaded
here is a script i have attached to a button
on (release) {
attachMovie("IdContainer", "container" + n, n+1);
loadMovie(photo_source.txt, "container"+n + "photo");
n++
I hope I made myself clear any help is appreciated.
View Replies !
View Related
Load External Movie Clip
Using Flash MX when I load external movie clip (.swf) My .swf loads in the lower right of the main movie instead of center. They are the same size and I want one to replace the other but the second keeps loading in the lower right.
Any Ideas?
-M
View Replies !
View Related
Load External Pictures Into A Movie
I´ve a problem with loading external pictures in a movie.
It´s working fine with loadmovie("picture.jpg",1).
Problem is, that the name of the picture is generated from a database.
I´ve tryed it with
picture=id+".jpg"; // Name from Database
loadmovie(picture,1);
var id is coming from an external php script.
Could anyone help me out?
Thanks 7dirk
View Replies !
View Related
Load External Movie And Go To Frame 1
Hi there
I have a movie clip that loads an external movie clip as follows:
on (release) {
loadMovie("xxx.swf","_root.holder_mc");
}
Now what I would like to do is instead of loading frame 1 of that movie clip I would like it to load frame 2... is that possible?
See, what I am trying to do is that I have a menu with three buttons. buttons 1,2 and 3. When you click on button 1, it should load frame 2 of movieclip1.swf and go to frame 10 of movieclip2.swf and movieclip3.swf. That way you can navigate between the three menu options loading the movie clip you clicked on and unloading (by going to an empty frame 10) of the other 2 unclicked movie clips...
View Replies !
View Related
Load External .swf In Parent Movie
I have a main (parent) flash movie and where i want to display my porfolio. I want to load each portfolio piece as a separte movie over the parent movie. This is because i want each part of the folio to load separetly to save loading time. Im sure its a simple enough procedure but i can seem to get it to work. Does anyone have any advice?
Thanks
View Replies !
View Related
External Movie Load Problem
I seem to be having an issue loading external .swf files into movie clips.
The movie works fine until I add the script to load the external files. As soon as it get's to the frame where the script is located the movie just skips back to frame "1" and loops and doesn't load the external files.
There are 4 movie clips which all have a unique instance names(empty1 through empty4)and the action script is as follows
loadMovie("sec_one.swf","empty1");
loadMovie("sec_two.swf","empty2");
loadMovie("sec_three.swf","empty3");
loadMovie("sec_four.swf","empty4");
I've also tried this as well
empty1.loadMovie("sec_one.swf");
empty2.loadMovie("sec_two.swf");
empty3.loadMovie("sec_three.swf");
empty4.loadMovie("sec_four.swf");
I've used both of these scripts before and have never had a problem.
Any suggestions as to what may be the problem?
View Replies !
View Related
How Can I Load External Swf. Into A Movie Clip?
How can I load external swf. into a movie clip?
I realise this is probably basic stuff, but any help would be appreciated.
How do I load an external swf. Into a movie clip? And dose this change if i want to load an external swf. into a clip that’s nested within another movie clip?
Thanks lozza.
View Replies !
View Related
How To Load External Movie Or Swf Files
Hi
Well here goes, just finished designing my first site for work and im pretty happy with it except for one thing...its too large at 1.6mb and taked too long to load up.
The main problem is the portfolio section which has 10 movies with scrolling images and this taked up about 98% of the total file size.
Is there some way that i can get the site to load up and then when u press the button for avionic projects it loads up the avionic movie?
I've managed to get it to load up external text files using the loadvariables command, but I need some help to do this with movies. And will this make the site load quicker and just take a few seconds for the individual files when they are required rather than loading them all up at once?
Hope someone could help me as I'm nearly there with it
Thanks for help on this
View Replies !
View Related
Pause Movie For External JPG Load.... What
I have a series of 11 images that are loading externally.... what I would like to do is for the movie to stop at each individual frame the external image lives on until that image loads, then on to the next, and so on... how can I have a movie pause at a frame until that external resource is loaded in that respective frame? I have tried a few but I am struggling.
Cmon U ASkickers.....
View Replies !
View Related
Load External Swf Into Movie With Scroll Bar
Hi, i'm trying to load an swf with a scroll barinto another movie clip but when i do the scroll bar stops working. This is the error report:
Target not found: Target="_root.controlmove" Base="_level0.general.instance7.holder2.bar"
Target not found: Target="_root.controlmove" Base="_level0.general.instance7.holder2.bar"
Target not found: Target="_root.up" Base="_level0.general.instance7.holder2"
Target not found: Target="_root.up" Base="_level0.general.instance7.holder2"
Does anyone know why?
Thanks, Mark.
View Replies !
View Related
Load External Movie Position
Hi everyone
I need to load an external movie and be placed on a specific location on the main flash movie.
Below is the script for loading the external movie, but I can't get the position script to work.
Any assistance will be appreciated
d30n
on (release) {
loadMovieNum("movie.swf", 1);
this._x = 605;
this._y = 210;
}
View Replies !
View Related
Load External Movie With LoadMovie
I have a movie called slideshow.swf that I am trying to load into my Main.swf (they are both in the same directory). I have created a movie clip called "gallery" in main, so I my script is:
loadMovie("slideshow.swf", "gallery");
The movie loads fine but gets stuck at some point. If I just use:
loadMovieNum("slideshow.swf", 200); for example, it loads perfectly!
Any ideas why, or where I should be looking for the error?
Thanks,
-JS
View Replies !
View Related
How To Control External Load Movie
Hello All
I am calling external swf(Image.swf), it contain images 10 images on different frame and each frame has assign name like Stone Grey, Morning Rose...., in empty movie clip.
i have variable Image in main clip,in which i am passing the name of stone which same as in extrnal movie clip frame names.
Now what i want.
When Image value is Stone Grey, the external movie clip stop on the frame Stone Grey(Frame Name).
I am poor in english, I try my best to explain wat i want.
Thanks
Mohammed Sunely
View Replies !
View Related
Load External Movie On A Frame?
I'm having trouble getting an external swf to load into a movie clip on a certain frame. My syntax is probably way off... I put this on a frame I wanted it to load on:
Code:
_parent.mtClip.loadMovie("page.swf")
Any ideas where I'm going wrong?
View Replies !
View Related
Load External Movie Into Container
I've tried a search and returns an error so I'm hoping someone can show me or lead me in the right direction.
I have created an extensive flash file. Now the customer wants to change the overall size.
I don't want to redo my work so I want to call the original file into a new file at a specific location on the page.
Can I load an external swf into a movie clip container of some kind. I've heard of this but have never done it.
View Replies !
View Related
[CS3] How Can I Load An External Swf Into A Movie Together With Its Variables?
Hi everyone, im having problems loading the variables of an external swf into my swf movie.I can only load an swf into the movie... and how can i load its variables into itself? it is an external swf so i might not be able to modify any variables within it
for example :
http://p.webshots.com/flash/smallslideshow.swf <-- a flash album from webshots
and i need to load the variables into the flash album in my movie:
flashvars="playList=http%3A%2F%dfgdsXXXXXXXXXXXXXX XXXXXXXXX...."
is there a way to do so??..
getting really frustrated...
View Replies !
View Related
|