How To Load An External Movie Using A Link Within An External Swf - Urgent
Hi allFlash 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 advanceTheo
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 05-04-2007, 10:30 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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
Load An External Swf Into A Movie Clip With An HTML Link
Hi Guys,
Real basic question, I've already scanned the forums/google but couldn't quickly find what I was looking for.
Here's the breakdown, I have an swf file that basically consists of a mc to be used as a holder. I want to externally load an swf into that mc. Easy enough, problem is, I want to do this from a standard html link on the same page (but obviously, outside of the flash file).
Will this require XML? Or is there a simple command string that will talk to the actionscript within the flash file?
Load External Text Inside An Already Loaded External Movie
here's the problem as simply as I can explain it.
there's a main.swf, a news.swf and a text.txt
the news.swf is loaded into the main.swf and I want to load the text.txt into the news.swf
everything works when I just load the text into the news.swf without loading it into the main.swf, so I know the text.txt part is loading.
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!
Load External Pic And Link
is there a way to load an eternal picture and an attached link into mx?
i am trying to make a scrolling slideshow that can be changed/updated outside of flash (for someone that doesn't have it or know how to use it).
the end goal is to have a txt file where you can change the picture name (loads a new picture) and the link address (specifies where clicking on the picture takes you).
can this be done? and if it can....HOW please
Tania
Load External Link
Hi!
This might sound really basic but I forgot how to do it on Flash. I want a button to load up a shockwave file or a word file. Not just a web url to pop up in another box. If anyone can help I would really appriciate it.
Load External Image With Url Link
Hi
Not played with flash for a long while can anybody tell me why the following does not work.
The image loads but the url does not function.
Code:
createEmptyMovieClip("my_mc", this.getNextHighestDepth());
my_mc.loadMovie("http://www.mysite/pic1.gif");
my_mc.onRelease = function(){
getURL("http://bbc.co.uk");
};
This is all I have in my code at present.
Re Dave
Load Link From An External File
Hello!
I made a flash menu for a client and he wants to be able to modify the links from the menu from an external file. He hasn't specified what kind of file it should be. I suppose txt, php, html or xml.
So, I am asking for a script that can load the links from such a file and put them into the menu items.
Let's say I have a file named links.txt and it looks like this:
*******************
Performance: http://www.mysite.com/performance.html
Career: http://www.mysite.com/career.html
Contact Us: http://www.mysite.com/contactus.html
*******************
When I click on Performance in my flash menu, it must go to http://www.mysite.com/performance.html; when I click on Career, it should go to http://www.mysite.com/career.html and so on.
I am running out of time. Please help me!
Thank you!
Load An External MC From A Dynamic Text Link? - Possible?
Ok i have a dymanic text box that scrolls. There are some words that the client would like to be links to the other sections in the site much like what you would do in HTML. Is it possible to attach action script to a link in a dymanic text box that scrolls? The load script it self would be
ActionScript Code:
on(release){ loadMovie("home.swf",_root.content);}
Can i get a dynamic text link to do this?
Load An External MC From A Dynamic Text Link? - Possible?
Ok i have a dymanic text box that scrolls. There are some words that the client would like to be links to the other sections in the site much like what you would do in HTML. Is it possible to attach action script to a link in a dymanic text box that scrolls? The load script it self would be
ActionScript Code:
on(release){ loadMovie("home.swf",_root.content);}
Can i get a dynamic text link to do this?
Load An External MC In A Contenitor Mc From A Dynamic Text Link?
Hy guys,
i've a similar problem of sintax321 that i'm not able to solve...
I need to create a dynamic portfolio.
I have an external text file that contains links to the sites. I want to load an external image (or swf) in a contenitor mc anytime someone clicks (or even better on rollover) on a site name.
I make it simple (sorry for my english):
How can i target "site1.jpeg" (or swf) to "cont_mc" by clicking (or rollover) on a external text link?
I'm in trouble...
Thanks in advance for you help.
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?
External Variables Through Email Link Into A Movie
Is it possible to send an external variable into a movie using for example an email link to the particular movie ?
What I want to achieve is the following :
Propose to our customers, through a newsletter sent by email, a number of products. Depending on the product link clicked, this link will send a variable to the main movie indicating which external movie corresponding to the selected product link to be loaded into the main movie.
Cheers,
Smalco
How Can I Link A Value/Variable To An External Movie Clip?
Hi anyone who can help,
I am currently using a heirarchal menu system that I got from here and it is great - I changed all the text and stuff fine - but I need to link my buttons to movie clips from outside (or could be inside - doesn't really matter) instead of just linking to URLs which bring up a new box each time a link is clicked.
If anyone has any idea what I'm talking about can you look into the attached fla. and look at the 'custom' action script and you will see what I mean. Any help is much appreciated and I will admire you for years to come :-)
Russ
How Can I Link A Value/Variable To An External Movie Clip?
Hi anyone who can help,
I am currently using a heirarchal menu system that I got from here and it is great - I changed all the text and stuff fine - but I need to link my buttons to movie clips from outside (or could be inside - doesn't really matter) instead of just linking to URLs which bring up a new box each time a link is clicked.
If anyone has any idea what I'm talking about can you look into the attached fla. and look at the 'custom' action script and you will see what I mean. Any help is much appreciated and I will admire you for years to come :-)
Russ
Link To External Movie, And Goto A Certain Frame?
I want the button to take the useer back to final.swf, and I want final.swf to stop at frame label three. This is what I tried...
on (release) {
if(this._parent == Number(this._parent)){
loadMovieNum("final.swf",this._parent);
gotoAndStop("three");
} else {
this._parent.loadMovie("final.swf");
}
}
Why doesnt it work? Thanks guys!!!!
External Link To Specific Frame In Movie
Hey there. I'm building a web site using Flash MX. Is it possible to have a link on an external button directed to a specific frame label in the SWF? So that when the button is clicked, it will not play the entire movie, but just go to the particular frame label or scene?
Any help would be greatly appreciated. Slowly catching up ... I'd forgotten how much fun this is!
How Do I Set My Movie To Link To Another External Flash File?
I have made a flash website and it works perfect but the loading time is bad sometimes upto 30 seconds which puts people off, So i wanted to make a loading page. I made one and i want my website to play it and then i want the end action to link back to my old flash website, is there some action script for a movie to link to another flash project?
or is there an easier way of making a loading page to make your website seem faster?
Please help i'm desperate!!!!!!!
cheers, jamerz.
External Link To Specific Frame Of Movie
is there any way to have an external html file with a link on it go to a page with a flash movie on it and go to a specific frame lable or movie?
Thanks,
Aaron
External Link To Specific Frame Of Movie
is there any way to have an external html file with a link on it go to a page with a flash movie on it and go to a specific frame lable or movie?
Thanks,
Aaron
[F8] External Movie W/ Buttons Need To Link To Another Loaded Movie
Hello fellow Flashers.
I have a file "index.swf" that is my main flash file. I have loaded another flash file "summercamp.swf" into a empty movie clip titled "scEmptyclip" that is located on "index.swf".
On the external loaded "summercamp.swf" I have another external loaded file that is a scroll down menu "scScrollMenu.swf" with buttons that need to link to labeled frames on "summercamp.swf". The empty movie clip that loads the scroll down menu is "sdmEmptyclip".
So the question is how do you code a button in a loaded movie inside an empty movie clip that on release it will unload the movie clip, go back to the "summercamp.swf" loaded movie and play the labeled scene?
If you need to see the site it it:
http://www.chucktropolis.com/alina/
index.swf is the initial animated page with the buttons
summercamp.swf is where the summer theatre camp button takes you
scScrollMenu.swf is the green scroll down menu on the summer camp page.
Any info is greatly appreciated.
Anyone Know How To Link External Image Files To A Flash Movie?
I need to load images dynamically into a Flash movie. That would mean that the image files would be at a seperate location from the Flash movie, but would be imported at runtime, and play in the SWF file.
Does anyone know how to do this?
MultimediaBoy
Load External Movie From Another External Movie
Hi ,
I load external movies into a main movie using the class MovieClipLoader. I wanna use some transition between the loaded movies so I follow a tutorial that show that.
The idea is the make an intro and outro animation to each external movie , when button 1 is pressed , the attached movie is loaded into the main movie , when button 2 is pressed , button 1 is ordered to play its outro and than loading the button 2 attached movie.
In the script the movie that plays the outro has a frame in the end that load the original movie the to main movie container , since in using the class MovieClipLoader I have some scope or syntax issue to load other external movie from external movie
the is the frame in the end of the external file that should load another external file to the main movie , mcl is the instance of the MovieClipLoader that i define in the main movie , holder is a movie clip that exist in the main movie as well.
Code:
_root.mcl.loadClip("contact.swf",holder);
and this is a simple of the code i use in my main movie (it has no relevant functionality)
Code:
var mcl:MovieClipLoader = new MovieClipLoader();
var mclL:Object = new Object();
mclL.onLoadProgress = function(target,loaded,total){
loader.percent.text = Math.round((loaded/total) * 100) + "%";
}
mclL.onLoadInit = function(){
loader._visible = false;
loader.percent.text = "";
}
mcl.addListener(mclL);
mcl.loadClip("ext1.swf",holder);
bn1.onRelease = function(){
loader._visible = true;
mcl.loadClip("ext1.swf",holder);
}
bn2.onRelease = function(){
loader._visible = true;
mcl.loadClip("ext2.swf",holder);
}
so i need to have external file loading another external file to main movie, how?
Thanks in advance
Shay
[F8] External Text Files Wont Load Into External Swf File...
Hi,
I'm making a Flash website in Flash 8 (mac).
Structure: There is 1 main file that loads external SWF files depending on what is clicked on.
One of the external SWF files loads its text from external text files. This works fine when viewing the SWF applet on its own. But when viewing as a whole site, the text doesnt appear. Very annoying.
I made that particular SWF on my mums computer running Flash MX 2004. The flash file itself uses the Scrollbar component from MX.
Could someone tell me why the text doesnt load in this scenario? It runs fine on its own, just not as an external SWF.
I've attached the files in question. Its a 200kb ZIP download. Do tell me if you need to know more.
Thanks
Dynamic Html Link Tags To Control Loading Of External Swf Into Main Movie.
Sorry about the long, long title but I thought I better put it all there just in case some can solve this problem and other can dfind it easier.
Ok... Here we go:
1.- First :: I have a main movie which dinamicaly loads external swf files.
2.- second :: some of those external files contain dynamic html with css formating.
3.- third :: my problem comes here where I want a <a> tag to load a new external swf into the main movie.
Any ideas... have been seaching for days and canīt seem to find any info!!!
Please help,
acegogo
Dynamic Html Link Tags To Control Loading Of External Swf Into Main Movie
Sorry about the long title but I thought I better put it all there just in case some can solve this problem and other can find it easier.
1.- First :: I have a main movie which dinamicaly loads external swf files.
2.- second :: some of those external files contain dynamic html (.txt-files)
3.- third :: my problem comes here where I want a <a> tag to load a new external swf into the main movie.
Any ideas?
Please help,
Kejsaren
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.
How Can I Load An External QT Movie
How can i load an external QT movie,
I want to load a Quiktime in a new window with controllers :-)
almost the same way as when i load an external SWF file in a new window :-)
how can i do that :-)
Mirrorman
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
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
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.
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
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
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???
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.
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
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("
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.
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!
How To Load External Movie?
I need to load an external movie and set it as a background! Whenever I try that the external movie is placed on the originall movie!
How can I set the loaded movie to be as background so that I can have multible moives set to use one background?
I will be greatful if someone can help . .
Load External Movie
Is there a way to play an external swf outside the current movie? I tried getUrl but that is communication to a browser? I tried loadMovie but that replaces my current movie in Flash player.
Any suggestions?
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!
Load External Swf From Html Formatted External Text?
Hi to all,
new to this forum, not so new to flash, but deeper AS...
I searched a while before asking now but didn#t found a solution for what i want to do.
may be someone can give me a hint to this:
I have a html formatted external text file and i want to call from this a external swf movie like
Code:
<a href="loadMovieNum("products.swf",10)">products</a>
I guess i need a asfunction for this?
So i read this:
http://www.macromedia.com/cfusion/kn...fm?id=tn_15639
But still get not the trick how to..?
I tried this:
in 1. Frame of movie i placed:
Code:
function myFunction () {
loadMovieNum("products.swf",10);
}
and changed html text in:
Code:
<a href="asfunction:myFunction">products</a>
when i publish and add a trace function is still got the comment i gave in trace but external swf is not loaded.
I get no error in output window, but not loaded.
Any ideas or hints?
Would be great.
Thank you for a hint.
all best
cyrano
Trigger External Swf To Load Into Main Swf From Button In Another External Swf
I'm really stuck with this and it seems like such a simple problem to solve.
I am trying to get a nav button in one movie (main_nav.swf) to target a my main movie (index.swf) and load a sub nav movie (metals_subnav_infinite.swf) into it. The sub nav movie will do a similar task - loading a portfolio swf into main movie (index.swf).
Here is the file breakdown of my working files:
index.swf - main final movie which loads "main_nav_infinite3.swf" on start
main_nav_infinite3.swf - loads main nav "main_nav.swf" and scrolls it infinitely (infinite menu)
main_nav.swf - main nav with buttons that trigger sub nav "metals_subnav_infinite.swf" to load into index.swf
metals_subnav_infinite.swf - loads sub nav "metals_subnav.swf" and scrolls it infinitely
metals_subnav.swf - sub nav with buttons that trigger "folio.swf" (have not created this file yet!) to load into "index.swf"
The script I was focusing on is in main_nav.fla and it is:
metals_mc_bn.onRelease = function() {
reActivateMenu();
this.gotoAndStop(3);
this.enabled = false;
_level1.sub_nav_content_mc.loadMovie("metals_subna v_infinite.swf");
};
I haven't yet activated all the buttons yet just the "Metals" button as the first to get working.
I have attached the FLAs.
exxie!
|