Targeting Mc's In An Externally Loaded Swf
Hi, I'm trying to target MC's in a swf that im loading into my main swf in a holder mc called 'holder' In AS2 I would then target them by writing: holder.myMc etc but I can't seem to target them properly in AS3 - If I 'Debug > List Object' my swf & all it's clips are there but the path is: holder.instance9.myMc Where's does the instance9 Come from? If i try to include instance9 when targeting it flash tells me its an 'undefined property' & doesnt load the swf as normal. Code: function startLoad() { var mLoader:Loader = new Loader(); var mRequest:URLRequest = new URLRequest(sitePlan); mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler); mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler); mLoader.load(mRequest);}function onCompleteHandler(loadEvent:Event) { holder.addChild(loadEvent.currentTarget.content); }function onProgressHandler(mProgress:ProgressEvent) {var percent:Number = Math.round((mProgress.bytesLoaded/mProgress.bytesTotal) * 100); txt.text = percent.toString() + '%'; }startLoad(); holder.p301.addEventListener(MouseEvent.CLICK, showToolTip);function showToolTip() { trace('Plot 301')} Any tips??Thanks in advance! ps. I have just easked a similar question on the end of some one elses post but wanted to start a proper thread on it. Apologies if this is bad form!
KirupaForum > Flash > ActionScript 3.0
Posted on: 07-07-2008, 11:55 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
//targeting.from.externally.loaded .swf >[.x.]<
I have a movie called --frame.swf
in it i have a mc that loads external .swf's into it. called holder mc instance name "holder"
--
a button on the _root timeline of frame.swf tells the movie clip to play the timeline of the ext .swf after it has been rested on a stop action
--
on the end of the time line of the ext loaded .swf there is a line of code that basically asks if the variable
profile = 1 if it does it says load profile.swf into the mc called "holder" of the movie frame .swf
---
now heres where I have a peoblem how do i target the main timeline of frame to target the mc w/ the instance name of holder?
i tried
if (portfolio=1) {
_root.holder.loadMovie("portfolio.swf", "holder");
} else if (vision = 1) {
_root.holder.loadMovie("vision.swf", "holder");
}
if you can be of any help ...thanx!
Targeting _root. Of An Externally Loaded Swf
Hiya people!
I have a small query about accessing MC's from within externally loaded .swf's.
What I've got is an one swf thats hold the navigation and graphical housing of the site (Logo, headers, footers etc); the content sections are external swf's that are loaded in. So it's pretty much a typical setup.
I have commands within Content.swf that involve going to the root time line of Content.swf:
on (release) {
tellTarget ("_root.productRange") {
gotoAndPlay("2seaters");
}
}
This works fine when I am only veiwing Content.swf.
However, once the Content.swf has been loaded into the Main.swf, and I try and send the same command, up to the _root. timeline (of Content.swf) the output box brings up an error.
I'm guessing this is because the command isn't going to the _root. time line of Content.swf, but to the _root. of Main.swf right?
So how do access the _root. of Content.swf?
I've tried using:
on (release) {
tellTarget ("_parent.productRange") {
gotoAndPlay("2seaters");
}
}
but this doesn't seem to work.
I'm being really dumb I know - but I'm drawing a blank
Cheers,
Deadhands
Targeting Externally Loaded Swfs
Ok guys here is my problem
I have an empty Movie which i named main.swf. on the first frame of main.swf i load another movie called shell.swf into _level100 of the main.swf this has stop and play buttons located in it....now on this timeline i load another movie into _level2 which is the animation to be controlled by those stop and play buttons. However i cant seem to target the animation correctly whne the stop button is clicked the animation continues to play...
any ideas guys?
Problems With Targeting Externally Loaded Swf's...
Hi there!
I have a master.swf where I load files into levels. Now I want a file to be loaded at a specific frame of another loaded file. The thing is that the file holding that frame is loaded into a container movieclip (container) into a file that in turn is loaded into master.swf. Here is the code that I thought would work...but it doesn't work. The home.swf loads right away...
if(_level10.container.topAnim._currentframe=32){
myMCL.loadClip("home/home.swf", 5);
}
I know that it works if I put _level0.myMCL.loadClip("home/home.swf", 5); inside the topAnim movieclip but I thought that it would be nice to have all actions on one layer in master.swf.
It would be very interesting to know this. Help would be very appreciated...
Niklas
Targeting MC Inside SWF Externally Loaded.
Ok hi everyone again, I ve been trying to find a solution to this
problem for days now..here it is...
I have a "main" swf that externally loads my "menu" swf. That works fine:)
The "menu" swf has buttons on it (movie clips) that when the user clicks
them they supposed to load the sub-pages on top.
So I did a second holder MC for that the sub pages will load in to.
The problem is that my buttons dont work at all. I tried to trace whats
not working but could do it. So am pretty much with no hope at the moment.
If you have 5 minutes please have a look and give me a tip.
On the zip file there is the "main" , "menu" , "new devel" (first sub page) fla.
http://rapidshare.de/files/21754798/web_page.rar
thanks.
Targeting Properties Of Externally Loaded Jpeg
I need to able to set the width of a movieclip to the width of a jpeg that gets loaded into another movieclip. I thought that the movieclip that loaded the jpeg would take on the jpegs hieght and width properties but I was wrong. Thanks
Targeting A Frame In A Externally Loaded Movie
I'm trying to target a specific frame in an externally loaded movie. Basically, I have a music clip loaded externally, and when I click on a button in my main movie, I want to tell it to go to a frame in the external clip which stops the music from playing. Can't seem to get it to talk to the clip. The music clip is loaded into an empty movie clip. The name of the clip is called emptyclip2. There is no instance name as of yet. the clip is not loaded on the root. It is loaded into another clip called "menu". That is the instance name.
Mike
Targeting Problems With Externally Loaded Movie
Hello all. I hope somone can help me with this. I am loading external swf's into a movieclip in the main movie. The targeting problem occurs when I try to control the loaded movie (photo gallery). Normally just writing the entire path works fine for example:
ActionScript Code:
_root.sectionDrop.gal1.GotoAndPlay ...
_root refers to the main movie timeline, and sectionDrop refers to the MC where the loaded movies are, well...loaded.
This is not working however, and my eyes are bleeding trying to figure out what to do.
Please help!
Thank you all!
-Wil
Targeting Problems With Externally Loaded Movie
Hello all. I hope somone can help me with this. I am loading external swf's into a movieclip in the main movie. The targeting problem occurs when I try to control the loaded movie (photo gallery). Normally just writing the entire path works fine for example:
ActionScript Code:
_root.sectionDrop.gal1.GotoAndPlay ...
_root refers to the main movie timeline, and sectionDrop refers to the MC where the loaded movies are, well...loaded.
This is not working however, and my eyes are bleeding trying to figure out what to do.
Please help!
Thank you all!
-Wil
Targeting Programatically Created Movie From Within Externally Loaded Swf
Hi guys, I am trying to use the dynamic image preloader tutorial that I found here, but I am having the following problem.
I have created a movie programatically that is created when the movie plays.
var empty = this.createEmptyMovieClip("container", "100");
empty._x = 300;
empty._y = 300;
my_mc = new MovieClipLoader();
preload = new Object();
my_mc.addListener(preload);
preload.onLoadStart = function(targetMC) {
trace("started loading "+targetMC);
container._alpha = 0;
bar._visible = true;
border._visible = true;
pText._visible = true;
};
preload.onLoadProgress = function(targetMC, lBytes, tBytes) {
bar._width = (lBytes/tBytes)*100;
pText.text = "% "+Math.round((lBytes/tBytes)*100);
};
preload.onLoadComplete = function(targetMC) {
container.fadeIn();
border._visible = false;
bar._visible = false;
dText._visible = false;
trace(targetMC+" finished");
};
The movie above is created on my main timeline, which also has another movie called 'holder'. I am loading an external swf into the movie called 'holder', which works fine.
The problem comes in when I try to call the dynamically created movie (my_mc) with the following line:
_root.my_mc.loadClip("Designs/Patriot.jpg", "_root.container");
What should happen is the dynamically created movie (my_mc) should load the image as soon as the listener is called, but for some reason it doesn't want to!
The line _root.my_mc.loadClip("Designs/Patriot.jpg", "_root.container"); works fine when it isn't inside of an externally loaded swf, but as soon as it is in the external swf, I get problems. Is there some way to target dynamically created movie's that I am not aware of?
Please help, I am ready to pull my hair out!
Targeting A Frame In The Main Timeline Of The Root From An Externally Loaded Movie
Hi! I'm trying to target a frame called "home_portfolio" on the main timeline from a loaded swf. Here's the code on the portfolio button:
on (release) {
tellTarget ("_root") {
gotoAndPlay("home_portfolio");
}
}
On the "home_portfolio" frame is an action to load the portfolio movie. However, it ignores this.
After reviewing some of the other posts I've changed the code on the portfolio button to be"
_root.gotoAndPlay"home_portfolio"
yet when I publish the swf the output says
Symbol=_bottom nav, Layer=text, Frame=1: Line 1: ';' expected
_root.gotoAndPlay"home_portfolio"
I don't understand why either one of these codes won't work. Can you help? Thanks so much
Externally Loaded Text Prob In Externally Loaded Swf
hi.
so i have a swf that has externally loaded text in it that is being loaded into another swf. the text loads properly when the swf is opened by itself but when the swf is loaded into my main movie the text ceases to appear
my code to load the text is
loadText = new LoadVars();
loadText.load("dates.txt");
loadText.onLoad = function() {
event1.text = this.event1;
date1.text = this.date1;
location1.text = this.location1;
address1.text = this.address1;
cost1.text = this.cost1;
event2.text = this.event2;
date2.text = this.date2;
location2.text = this.location2;
address2.text = this.address2;
cost2.text = this.cost2;
event3.text = this.event3;
date3.text = this.date3;
location3.text = this.location3;
address3.text = this.address3;
cost3.text = this.cost3;
};
any help would be much appreciated
Externally Loaded Text Prob In Externally Loaded Swf
hi.
so i have a swf that has externally loaded text in it that is being loaded into another swf. the text loads properly when the swf is opened by itself but when the swf is loaded into my main movie the text ceases to appear
my code to load the text is
loadText = new LoadVars();
loadText.load("dates.txt");
loadText.onLoad = function() {
event1.text = this.event1;
date1.text = this.date1;
location1.text = this.location1;
address1.text = this.address1;
cost1.text = this.cost1;
event2.text = this.event2;
date2.text = this.date2;
location2.text = this.location2;
address2.text = this.address2;
cost2.text = this.cost2;
event3.text = this.event3;
date3.text = this.date3;
location3.text = this.location3;
address3.text = this.address3;
cost3.text = this.cost3;
};
any help would be much appreciated
Externally Loading Swf Inside An Externally Loaded Swf
Hey,
So basically, I have a main movie, with buttons for each section (such as home, portfolio and so on). Each button externally loads each section swf into a container. That works fine, all the sections load in and out perfectly.
Now, I want to load some more swfs (like projects in the portfolio section) into the swf thats been loaded from the main movie. Becuase I put my buttons inside movie clips (so that when you roll over the button, the animation finishes if you roll over another half way through), I had to use the tellTarget("/") script to bring it back, but it dosent work, it seems to load the movie into the main movie!
How can I fix this? Iv tried loading it into a different container symbol in the main movie but its still dosent work
Thanks alot.
Externally Loading Swf Inside An Externally Loaded Swf
Hey,
So basically, I have a main movie, with buttons for each section (such as home, portfolio and so on). Each button externally loads each section swf into a container. That works fine, all the sections load in and out perfectly.
Now, I want to load some more swfs (like projects in the portfolio section) into the swf thats been loaded from the main movie. Becuase I put my buttons inside movie clips (so that when you roll over the button, the animation finishes if you roll over another half way through), I had to use the tellTarget("/") script to bring it back, but it dosent work, it seems to load the movie into the main movie!
How can I fix this? Iv tried loading it into a different container symbol in the main movie but its still dosent work
Thanks alot.
Preloader In Externally Loaded Swf Stops Working (loaded Into An Empty Movie Clip)
SEE BOTTOM OF THREAD FOR CURRENT PROBLEM
1. I have my navigation buttons in level0
2. When a button is pressed it loads an external .swf into the highest empty level
3. There is an MC in this loaded .swf called loadmovie and inside that another MC called empty.
4. Inside the 'loadmovie' MC, there is a frame action that loads another external .swf file into the 'empty' MC.
The problem I am having is that the preloader that is on the external .swf that is loaded into the 'empty' MC does not work.
It works fine if you test it on its own. But not when loaded into a Movie Clip.
MY SCRIPT:
iBytesTotal = _root.getBytesTotal();
iBytesLoaded = _root.getBytesLoaded();
iBytes = (iBytesLoaded/iBytesTotal)*100;
percentageNumber = Math.round(iBytes)+"%";
setProperty("progressBar", _xscale, iBytes);
Do I have to refrence it differently? Because of where it is situated?
e.g
iBytesTotal = _level32._root.loadmovie.empty.getBytesTotal();
confesed!
Looping A Loaded An Externally Loaded Mp3
I was trying to loop an externally loaded mp3 and suceeded on my machine, but when I upload the swf and mp3, the function will not work in my browser (IE). I tried a relative path, as well as the absolute URL and neither worked. Here is the code I used to loop the externally loaded mp3:
loopSound = function () {
my_sound.loadSound("whisper.mp3", true);
};
my_sound = new Sound();
my_sound.loadSound("whisper.mp3", true);
my_sound.onSoundComplete = loopSound;
my_sound.setVolume(45);
Any help would be most appreciated, I have wasted a lot of time on this already.
Externally Loaded Swf Does Not Stay Loaded
Hello,
I am loading an externally loaded swf that uses a mask to transition in. When the user clicks a different button I am doing a gotoAndPlay that goes to a mask that "unloads" the content (it doesnt actually unload the info is just outside of the mask area. As soon As I jump to that section the movie is no longer loaded and just shows the container clip that I had created for it. The Container Clip is never changed and is the same throughout the whole process. The only thing that changes is the mask animation.
Any input onto why this would happen would be greatly appreciated.
I have tried both loadClip and loadMovie but no luck on keeping the clip loaded.
EDIT
- I have narrowed it down. When I change the mask movieclip the movie unloads for some reason. Is there a way I can keep it loaded?
Pop Up From Externally Loaded Swf
I have the main index .swf and inside that .swf I have another externally loaded .swf. In that swf though I have a link to a 3rd party website that I need to load in a new window. The standard code that i have been using is:
btn_Up.onRelease = function() {
getURL("javascript:Launch('http://www.somewepsite.com, 600,600)");
};
Where btn_Up is the button. But for some reason because the swf is embedded into another swf it doesnt work. Please help!
Externally Loaded FLV
In my SWF fie, I have an externally loaded FLV file.
I now want to add another FLV that will load and play automatically when the first one is finished.
I actually want the SWF to jump to a new scene when the first movie is done.
How can I do that/ what the actionscript?
Steven
Pop Up From Externally Loaded .swf
I have a flash movie, that has a external .swf getting loaded into it, from that .swf I have a button, on that button I would like a script that will have a pop-up without toolbars, and at a certain size. What is the script added to the button for this? Thanks.
Externally Loaded Swf
Hello all,
I just made a flash site with buttons on top and I put a empty movie clip called "container" in the middlle of the site. All animation and buttons will animate and appear and "flash" around until frame 90. The site ends at frame 100. I then included the following code in frame 100:
_root.currMovie = "PEhome";
container.loadMovie(_root.currMovie + ".swf" );
stop();
How come it won't load the external .swf into the container?
Can anyone tell me what am I not doing right and what should be done to fix this problem. Thank you very much.
Ryan
HELP Mii With Externally Loaded SWF
hi there peps i jus need a tiny help with my externally loaded swf file and this so far is the AS am using loadMovieNum("<A href="http://www.geocities.com/krizinxgren/7UP.swf",0">http://www.geocities.com/krizinxgren/7UP.swf",0); please ignore the geocities address OK the code works well well but the situation is that instead of the loaded swf to play/run inside my main movie some how my main movie does not show instead all i can see is the loaded swf only still i learnt that i have to create a container or somthing but i still dono how the container function works please peps any help is a blessing to my work our works everybody
thanks all
K
HELP Mii With Externally Loaded SWF
hi there peps i jus need a tiny help with my externally loaded swf file and this so far is the AS am using loadMovieNum(http://www.geocities.com/krizinxgren/7UP.swf,0); please ignore the geocities address, the code works well well but the situation is that instead of the loaded swf to play/run inside my main movie some how my main movie does not show instead all i can see is the loaded swf only still i learnt that i have to create a container or somthing but i still dono how the container function works please peps any help is a blessing to my work our works everybody
thanks all
K
Pop Up From Externally Loaded .swf
I have a flash movie, that has a external .swf getting loaded into it, from that .swf I have a button, on that button I would like a script that will have a pop-up without toolbars, and at a certain size. What is the script added to the button for this? Thanks.
Externally Loaded Swf
Hello all,
I just made a flash site with buttons on top and I put a empty movie clip called "container" in the middlle of the site. All animation and buttons will animate and appear and "flash" around until frame 90. The site ends at frame 100. I then included the following code in frame 100:
_root.currMovie = "PEhome";
container.loadMovie(_root.currMovie + ".swf" );
stop();
How come it won't load the external .swf into the container?
Can anyone tell me what am I not doing right and what should be done to fix this problem. Thank you very much.
Ryan
Externally Loaded Swf
This is probably covered somewhere, but I am loading an external .swf into my main movie and i am just wondering if the actionscript works in the external swf. I see what i am assuming are pages with an external load and most have a preloader. How does this work.
Using PHP In An Externally Loaded SWF
:?
I've constructed a site in Flash, using an external loader. The tutorials on this site are great, thanks. I've made a contact page that uses php script, which has full functionality when previewed OR viewed as an independent HTMP page. However, when I submit contact info from the live site, I never receive any email. Can anyone tell me why this is??
I've tried everything I can think of, and have allowed every file in site folder access through the Flash Player Control Panel. I followed Lee's tutorials for both external loaders and the php contact page extactly.
Thanks in advance for any help!
http://www.simplypilatesnashville.com
GetBytesLoaded On An Externally Loaded .swf
I can't seem to get the bytes loaded of an external .swf which is being loaded into a movie clip instance.
I have the target, _root.holderMC1.holderMC2 and place the external .swf into holderMC2 via
_root.holderMC1.holderMC2.loadMovie("http://url.com/some.swf", some_level);
I then do
if (_root.holderMC1.holderMC2.getBytesLoaded()==_root .holderMC1.holderMC2.getBytesTotal()){
gotoAndStop("remove_cover");
}else{
//loop
}
However, when the timeline gets to 'remove_cover', the items aren't loaded. They come in quickly, but they're clearly not fully loaded.
I think getBytesLoaded is measuring whether holderMC2 is loaded (it's only about 4 bytes) and moves on when it detects that it has. However, the actual external .swf has not loaded fully.
I've done some testing, trying to use the actual name of the .swf being loaded (eg. ...holderMC2.somename.swf), but it comes up zero as do a few other combinations.
Anyway, that's what I think the problem is, maybe it isn't, but how do I get the bytes loaded of an external swf being loaded into a movie clip instance? Does the level it's loaded make a difference if you're referring to it with _root?
How Do I Position A .swf Loaded Externally
Hi, I'm loading some external .swf movies into my main movie as menu items. It's all working great except that I can't seem to be able to position them without using an empty container. Is there any way of loadin an external .swf movie and giving it it's x y position without using containers?
Loader For Externally Loaded .jpg/.mp3
im loading .jpg and .mp3 files into a flash 'shell' movie.
they load into a movie clip called 'dropzone' and i was wondering if you can have a loader progress bar on .jpgs or .mp3s without them being in a .swf file.
Postioning Externally Loaded Mc's
Hi can anyone tell me how to position an exteranlly loaded swf.
I am using MX and the loadmovienum function what else do I add to position it where ever I want?
Controlling Loaded Swf's Externally
i posted this in scripting - backend, and didn't receive any replies. probably because it seemed to be the wrong forum. here it is again, verbatim. also, i'm using flash mx.
---
ok, this is the deal. i'm designing a site and basically what i want to happen is when a section is clicked, i want the previous section to animate out, and the other to animate in. also, i'm loading the sections into a movie clip, using loadmovie.
what i want to happen, ideally, is when a section is clicked, it changes the value of a variable, and then proceeds to play the swf that has been loaded into the movieclip. when it reaches the end of the timeline, i have an function checking the value of the variable (which is located in the main swf), and loading the appropriate swf file.
so, basically, what i'm having trouble with, is controlling the timeline of the loaded movie clip with a button located in a clip in the main swf. i was wondering if this is possible, and also if the function i created to check the value of the variable (for the sections) and also the variable can be passed into the loaded swf file also.
help would be very appreciated, and keep in mind, i'm fairly new to flash. thanks.
Controlling An Externally Loaded Swf
Can anyone help? I have a swf file that I have brought into my main movie using the loadMovie action (it is targeted to a blank movieClip called 'placeholder')
Does anyone know how I can control this loaded movie clip from a button on the main timeline?
When the button is pressed I want the loaded swf to begin playing at Frame X, and when it reaches frame Y, it tells the main movie to goto Scene2. (I think I know how to do the last bit! I'm just struggling with the first bit!!)
Any help/ideas would be much appreciated!!
Ta! :O)
How To Position Externally Loaded Swf?
I'm putting together a porfolio site of my video and DVD work, and since the images and video clips are pretty big, I am trying to load each one seperately with the loadMovie command.
The only way I can get the images to load in the appropriate place is by making the swf identical dimensions and adjusting the placement within it, so that when it loads into the main site, it is in the proper place.
My questions are: Does this make the exported swf bigger for each image? Is there a way to place it using actionscript so that I can make each image/video swf exaclty the dimansions of the pic/video?
My current script is:
on (press) {
loadMovieNum("IIT.swf",1);
}
Thanks,
Sara
Printing An Externally Loaded Swf.
I have an external swf that is loaded into the main movie. The swf contains a print button to print it's contents. Using this script:
PHP Code:
on (release) {
getURL("print:", "/loader.karta");
}
Where loader is the mc instance name that the swf is loaded into and karta is the instance name of the mc in the swf that i want to print.
When I try to print the dialog shows print all or print pages 1-15. What I want is for it to just make it possible to preint the specific mc...
THANKS!
Stopping An Externally Loaded MP3
Here is my code thus far.
on (rollover) {
myinstance = new Sound();
// load sound, set streaming to true:
myinstance.loadSound("my.mp3", true);
}
how do I make this stop on a rollout?
thanks
Sizing Externally Loaded Swf
(Flash MX)
Hi,
I have following script to load an external swf (or jpg) to the stage. I would like to size that swf ("themovie.swf") to 400 width, 300 height. I tried adding "_width=400, _height=300" after "_x=0, _y=0", but somehow it doesn't work. The swf is still wider than 400.
How can I size it how I want it to be? Thanx for your help!
PHP Code:
function load_jpg_or_swf(targetMC, jpgURL) {
targetMC.loadMovie(jpgURL);
attachMovie("loader", "loadMC", 1000);
loadMC.loadtarget = targetMC;
loadMC.onEnterFrame = is_loaded_results;
}
function is_loaded_results() {
LoadedBytes = this.loadtarget.getBytesLoaded();
TotalBytes = this.loadtarget.getBytesTotal();
Percent = LoadedBytes/TotalBytes*100;
Kb = Math.round(TotalBytes/1024);
if (Percent<9.5) {
this.displaypercentage = Math.round(Percent)+"% van "+kb+" Kb geladen";
} else {
this.displaypercentage = Math.round(Percent)+"% van "+kb+" Kb geladen";
}
if (LoadedBytes == TotalBytes && LoadedBytes>0) {
this.removeMovieClip();
}
}
this.createEmptyMovieClip("picture", 1);
yourJPGurl = "themovie.swf";
load_jpg_or_swf(picture, yourJPGurl, _x=0, _y=0);
stop();
Repositioning An Externally Loaded Swf
When I load an external swf file using the following code....
loadMovie(""blah.swf","_level2");
How do I then target that loaded movie so I can reposition it soemwhere else on the stage ? Does it have a reference name ?
Cheers
Thanks in advance
Remove An Externally Loaded Swf?
i am trying to remove an external swf from my main movie. it doesnt want to go away! does anyone know how to do this? i tried to use:
on (press) {
_root.contents.unloadMovie();
}
but it didnt work. it just made the move get stuck.
here is what it looks like now:
http://www.braddockdesign.com/kirupa...moveMovie.html
i am attaching the file here:
http://www.braddockdesign.com/kirupa...emoveMovie.zip
thanks for any help!
Duplicate Swf Loaded Externally
hello, i'm loading an external swf into mc, with metod:
loadMovie("example.swf", mc1.mc2);
how to copy this swf into another mc? ex. into mc3. I want it copied becouse i'm loading another swf file into mc2. i'dont want to use loadMovie one more time becouse it will be downloaded again,
Staus Bar For Externally Loaded MP3's
using MX 2004,
I'm loading some MP3's that are called from an xml file. Im wondering if there is a way I can show the status of songs loading because they take a good 10 - 15 seconds. Is there some code that I could plug in for this? I have looked at some tutorials and stuff, but didnt see any that fit what I need specifically.
Thanks
Using An Externally Loaded CSS File
I'm trying to use an external CSS file. It's loading fine, but the text shows no signs of being styled.
I read somewhere that if the text is loaded before the CSS file then the CSS file won't affect the text. Is that true? If so, how can I guarantee the CSS file will load before I load the text?
Externally Loaded SWF Not Centering
Hi all,
I'm having yet another problem with an externally loaded movie. The photo scroller movie shows up fine when you get to the Artwork section of my site but it doesn't appear centered like I want to. I tried moving the container clip in the FLA file and that worked out ok. I can see that the external movie is centered fine. However, when I view the updated movie on the internet, the external movie appears way off.
Help!!!!! This is making me mad.
How To Autosize A Externally Loaded Swf
How do you change the size of a externally loaded swf into a container movie clip?
What I have is a swf that i am loading into a container in anohter movie, however the loaded swf is larger than my container. I want to load this into the container but it remains the same as its original size
Is there a way to make it resize?
How To Get A Variable From An Externally Loaded Swf
Quick question guys -
I'm making an archive for a tri-weekly comic strip. I'm loading external swfs (the strips) into a main swf. It's all working pretty well, but I'm trying to get my next and previous comic buttons to work. To do this, I want to get the name of the strip swf and use it as a variable I can add or subtract 1 from so that the next strip loads appropriatly.
For example:
IN "1.swf":
ActionScript:
code: j = _root.loadStrip._url.substr(_url.lastIndexOf("/")+1).split(".")[0];
and in "Comic.swf":
ActionScript:
code: loadMovie("1.swf",_root.loadStrip);
trace(j);
"1.swf" loads fine into "Comic.swf", but the trace comes back as "undefined", telling me that the variable from "1.swf" is not loading into "Comic.swf" appropriately.
Any idea why?
Thanks guys!!!
Instance A Externally Loaded .SWF
I'm creating a site in which my menu items are loaded externally
using loadMovieNum.
Is there anyway I can give an external .swf an instance name
once it is loaded? I need to do this because when the external
.swf is loaded..........it shows up but I cant apply the function
???????.onRelease = function() {
if (nextMovie != "print.swf") {
nextMovie = "print.swf";
_level2.gotoAndPlay("outro");
}
};
??????? would normally be the instance
I tried this since it was loaded on level 3:
_level3.onRelease = function() {
if (nextMovie != "print.swf") {
nextMovie = "print.swf";
_level2.gotoAndPlay("outro");
}
};
Any help would be greatly appreciated and I will submit the
finished site to flashkit. Thanks.
-----joe
|