Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Help With Loading External Movie Clip(beating A Dead Horse)



Hello folks, I seem to have run into some problem with a project of mine. I have a Main movie which loads multiple external movies. I am using an empty movie clip called contents to load them into.one of my external movies has a button in it that launches a centered pop up window(kirupa tutorial). This external movie named site works perfectly by itself, but when loaded into the main movie, the button does not work. I'm using:on (release) { _root.contents.loadMovie("site.swf");}any input would be greatly appreciated.



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 03-07-2005, 03:58 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Help With Loading External Movie Clip(beating A Dead Horse)
Hello folks, I seem to have run into some problem with a project of mine. I have a Main movie which loads multiple external movies. I am using an empty movie clip called contents to load them into.

one of my external movies has a button in it that launches a centered pop up window(kirupa tutorial). This external movie named site works perfectly by itself, but when loaded into the main movie, the button does not work. I'm using:

on (release) {
_root.contents.loadMovie("site.swf");
}

any input would be greatly appreciated.

I Know Im Beating A Dead Horse.....
But someone has to have an idea

Here we go

Ok, I have a flash movie, this flash movie is a map with 52 movie clips, they all have an instance name of "section" with a number after it IE: section0 section1 and so on. Ok, In the main coding of my movie I have XML that passes thru ASP that changes the color of the movie clips depending on the variable that is in my database. I use SQL. Here is the coding in my movie

"



/* function sectorArray(){
var msectors, varColor, sid, ftxt
for(i=0;i<=rcrXML.childNodes.length;i++){
if(this.childNodes[i].nodeValue == null && this.childNodes[i].nodeName =="sectors"){
msectors=this.childNodes[i];
}
}
var msector
for (q=0;q<=msectors.childNodes.length;q++){
if(msectors.childNodes[q].nodeName=="sector"){
msector=msectors.childNodes[q];
sid=msector.attributes["id"];
for(j=0;j<=msector.childNodes.length;j++){
if(msector.childNodes[j].nodeName=="color"){
varColor=msector.childNodes[j].firstChild.nodeValue;}


}

changecolors(varColor,sid)


}
}

}
function changecolors(varColor,sid){
ftxt=new Color("section"+sid)
ftxt.setRGB("0x"+varColor)
}
rcrXML = new XML();
rcrXML.ignoreWhite = true;
rcrXML.onLoad = sectorArray;
rcrXML.load("zRcrXml.asp?mdsid=2")
stop ();
||||||

That is the code INSIDE the movie. My actual xml/asp file has this

"
<%option explicit
dim cn, rs, sql
Set cn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")
Response.Buffer = true
sql="SELECT * FROM vw_RCR_Mapdata WHERE mdsid = " & request.QueryString("mdsid") & "; "
'Response.Write sql
'Response.End
cn.Open "provider = SQLOLEDB.1;Initial Catalog = OGToolsDb; Data source = Webapps; user id=fsfxsb07; password = "
rs.Open sql,cn
%><?xml version="1.0" encoding="iso-8859-1"?>
<sectors>

<%
do until rs.EOF%>
<sector id="<%=rs("secid")%>">
<rcr>"<%=rs("Rcr_Value")%>"</rcr>
<secname>"<%=rs("Name")%>"</secname>

<%'Check for runway surface conditions for this secid
'Response.Write rs("secid") & ", "
'Response.Write rs("Rcr_Value") & ", "
'Response.Write rs("Takeoff_Landing") & ", "
'Response.Write rs("WaiverThreshold") & ", "
'Response.Write rs("TaxiThreshold") & ", "


if rs("secid") = 0 or rs("secid") = 5 then
'Comparison between takeoff threshold for the runway and rcr

if rs("Rcr_Value") < rs("Takeoff_Landingcaution") then
if rs("Rcr_Value") >= rs("Takeoff_LandingRed") then
'Assign yellow as the color
%><color>ffff00</color><%
else
'Assign red as the color
%><color>ff0000</color><%
end if
else
'Assign green as the color
%><color>00ff00</color><%
end if
else
'Comparison between taxi threshold for the rest of the airfield
if rs("Rcr_Value") < rs("Taxicaution") then
if rs("Rcr_Value") >= rs("TaxiRed") then
'Assign yellow as the color
%><color>ffff00</color><%
else
'Assign red as the color
%><color>ff0000</color><%
end if
else
'Assign green as the color
%><color>00ff00</color><%
end if
end if
rs.Movenext
%></sector><%
loop
%></sectors><%
rs.Close
cn.Close
set cn = nothing
set rs = nothing
*/
||||||||

My question being, there has to be some way possible, to make a code that allows me to mouseover any of the movie clips, and they display the variable in the database that corresponds to their individual section number


Or am I just not going to get it cuz its not possible????

XML Resize Thumbs (hope I'm Not Beating A Dead Horse)
Hello everyone! I've been all through these 60 some pages on this subject and didn't find what totally what I was looking for... of course eye strain might be a problem so if there is a thread to something I ask please tell me. I apologize in advance if I do. This is my first ever thread also.

Here is a zip of all my files so far. http://marazita.com/funstuff/gallery.zip First here is the link to Scotty's thumb resize that I've put into my .fla. V3_with_thumbs zip Mine doesn't work because what I'm trying to do is make the thumbs replace the mc's that I've added (each with an instance name thumb1, thumb2, etc.). As an artist I like to group images that belong in a group. Sometimes a group can have 3 sometimes 4, etc.. This is what's been wrong with what I've found in the threads so far. They've just been lumped into a certain amount to columns and rows. If you look at my files you'll understand better. I was also hoping that the thumbs would load like this zipped file http://marazita.com/funstuff/gallery_preloadthumbs.zip (which is another nice dynamic loaded one that you don't have control over either). Any help will be greatly appreciated and at the end I'll post my finished file to share with everyone since I've gained so much from this site I would like to also give back. This will help a lot of artists out there I'm sure. Thanks to all that help in advance. I have other questions... but lets do baby steps at first.

-Justin-

www.marazita.com

Creating Text File - Or - "Beating A Dead Horse"
Hey Folks,

Please forgive me for revisiting this often-asked question, but...

I just installed Flash MX 2004, and was wondering if there was
any new functionality that allows the developer to create and
write to an external text file.

From what I've read, this is possible using PHP, ASP, etc... Though,
that requires access ta a PHP or ASP web server - something I don't
want to set up at this time. So, I guess I'm asking if there is any
way to create/write a text file without the help of PHP, ASP, or
a web server?

I'm inserting the movie in VB and using FSCommand to communicate
between the two - Flash input, VB create the file. This works, but
is not very elegant, not efficient, can't run it in IE, etc...

Can you do it using XML? Any other suggestions?

Thanks A Lot,

[Dead Horse Ver 2.0] I Need Your Help Once More Scotty [Or Anyone]
This is for Scotty or anyone who can help. I've had this photogallery done for quite some time now. You can see it live here: www.marazita.com/art.html

I'm just starting to feel bad for people that have dial-up because they have to wait for every image to load to see the last ones.

I would just like to add another preloader for the main image in the center. The thumbs can still keep the semi-transparent loader to show the thumbs loaded but I would like a dynamic loader for the main image. I have all the files attached in the zip for one gallery including the xml file, thumbs, images, and pre-loader I would like to use. I just don't know how to change the actionscript in .fla... I've been pretty rusty lately since I've been doing mostly print work instead of web work.

One last thing is there a way that if the image has already been loaded before that the loader won't show up again?

Thanks a million,
-Justin-

*EDIT since the file size is larger then you can attach here you can upload it from my server here:
http://www.marazita.com/web/all_gallery.zip

Dead Simple (if You Know) Rotating Movie Clip By Mouse
Hi there

Help me please!! I know there must be a dead simple answser to this question, but I am having great trouble finding a tutorial on this, so please help!!

All I need to do is rotate a movie clip depending on mouse position, the movie clip is called 'sqaresmov'. If anyone could give me a simple and concise answer to this, I (and the loader that Im working on for my site!) would be very greatful!!

Loading External Movie Clip With A Button Inside Another Movie Clip Help
Hi,

I am working on a scrolling thumbnail movie clip, that when you click on the thumbnail button inside the movie clip it will load an external movie clip. I have an empty movie clip on the main stage, and have been trying all sorts of code, but for some reason it doesn't like that I am inside a movie clip using buttons. It can't seem to find the external swf.

I have tried:

on (release) {
loadMovie (ithink.swf, "loader");

and

on (release) }
if (firstTime == true) {
loadMovie("ithink.swf", _root.loader);
firstTime = false;
} else {
_root.clicked = "ithink.swf";
_root.loader.gotoAndPlay("goback");
}
}

and so far nothing, for some reaosn when I click on a button outside of the movie clip with the above code it loads... and than the other works too, but if I click on the buttons inside the scolling movie clip first they won't work.

Any suggests or ideas!!?

I would really appreciate it... I am beyond frusterated!!

Loading External Images Loading Bar (Movie Clip)
I have managed to have external images loaded with the progress bar. However, when I place these items into a movie clip the preloader no longer works. can someone please take a look at the flash file for me.

http://www.bloggot.co.uk/file.zip

Having Problems Loading An External File Into A Blank Movie Clip In The Parent Movie.
alright I have a main swf. and there is an empty movie clip called window1.

I have an external swf that is loaded that contains the menu. i have the clip loaded into level 14.

i am having problems having the menu load an swf into the empty movie clip.


Code:
on (release) {
loadMovie("about.swf", _parent.window1, "GET");
}
in firefox, the code above loads the swf, but it replaces the menu. it does the same thing in ie.


Code:
on (release) {
loadMovieNum("contact.swf", _parent.window7, "POST");
}
and this bit of code makes the swf open in another browser tab in firefox, and in ie it replaces the whole parent movie.

I need the menu and the parent movie to stay intact.

i really need help with this asap.

Having Problems Loading An External File Into A Blank Movie Clip In The Parent Movie.
alright I have a main swf. and there is an empty movie clip called window1.

I have an external swf that is loaded that contains the menu. i have the clip loaded into level 14.

i am having problems having the menu load an swf into the empty movie clip.


Code:
on (release) {
loadMovie("about.swf", _parent.window1, "GET");
}
in firefox, the code above loads the swf, but it replaces the menu. it does the same thing in ie.


Code:
on (release) {
loadMovieNum("contact.swf", _parent.window7, "POST");
}
and this bit of code makes the swf open in another browser tab in firefox, and in ie it replaces the whole parent movie.

I need the menu and the parent movie to stay intact.

i really need help with this asap.

Problem Loading External Movie Clips Into Target Movie Clip
Hello,

I've been desperately trying to figure how to get this function to work. I created a target movie clip, then assigned an external one to it, but I can't seem to get it to work. Can anyone help me with this and fully explain it so I don't miss anything? I'm using flash professional 8.

Thanks so much!

Rob

HELP - Loading An External .swf Into A Movie Clip
Hi Guys

Could some one please tell me how I load an external .swf into a movie clip.

Basically I have a movie clip which is a pop up window, so a button opens the pop up window movie clip, but I then need an external swf to load into the pop up window. The external file is called audio.swf and is in the same directory path

Any help would be more than appreciated.

I have tried putting the following code into the 1st frame of the movie clip (custom pop up window): loadMovieNum("audio.swf", 1);

But its not working. Can someone put me out of my misery

Cheers Peeps

Loading External *.swf Into A Movie Clip
I have a pacman game I downloaded from flashkit and wanted to add it to the junk section of my page.
It loads and everything now after i pulled all my hair out, but that's a whole other story...anyway, my question is: How do I keep the frame properties of the game to remain the same? As of now it plays real slow because the frames in my movie are 12 per second and game is 24 per second. I realize that the loaded movie takes on the properties of the one it is loaded into. Is there a way I can fix this?

Loading External Swf Into A Movie Clip
does anyone know how to load an external swf into a movie clip? not into a level but movie clip on?
thanks
najib

Loading External SWF's Into A Movie Clip?
I have a flash movie that has one scene and one frame with 6 layers. One of the layers has buttons that pop up small windows where I want my information to appear (movie clips). Here's the code of the button that makes a mc called video appear and which is supposed to be a container for an external swf (video file).

on (press) {
this.attachMovie("video", "window", 0);
window._x = 200;
window._y = 100;
}

The window appears but I don't know how to make my external video (swf) play in the container. The reason I want to load the video seperatly is because it takes to long to load it when the site loads.

Here's the code I've been trying???

loadMovie("video1.swf", "_root.video");
}

Please help I'm going nuts!

Loading External Movie Clip
Hi, i've been working on a small application for school, and need a bit of help with something

i've been trying to load an external movie so i can access the library

ie.

code:
//loads the movie (just an example i've tried many different methods)
loadMovie("pictures.swf",_level0);
//attach picture1, the linkage name of a movieclip in "pictures.swf"
attachMovie("picture1","p1",0);


Thanks for your help
Phlook

Loading An External Movie Clip?
does anyone have a tutorial for loading external movie clips?
i'm having a hard time with it. thanx.

Loading External Movie Clip?
How do you go about adding external SWF into a movieclip?

I knew how to do this on actionscript 2.0 and 1.0 but looks like it has completely changed when coming to actionscript 3.0 as you can't add script to a movieclip in Flash CS3.

Loading External Swf Into Movie Clip
i'm not sure if this can be done.

i am loading an external swf into my movie.

when the loader.swf is ran, it loads an external swf (test.swf) on to the root timeline of the loader.swf. this is working fine. I am wanting to talk to a movie clip i have already created inside the test.swf from the loader.swf. i just want to chage the properties of a movie clip that is named OH_mc located on the root timeline of the test.swf. just something simple like

<this is the part is dont know>.OH_mc._alpha = 10;

thank to any help

Loading External .avi (or .mov) Into A Movie Clip
Hello all, I am new here and I have a question that I hope can be answered. I have searched this site and many other sites, but I have not been able to figure this out. Here goes:

is it possible to load an external movie (.avi, .mov, etc) into a movie clip? I have both .avi and .mov movies located on a website and I want to load these into a movie clip, but it does not work. I have been able to get this to work with .flv (flash video) but not with other formats. If there is a way to do this please let me know. If it is not possible, I would like to know this as well. Thank you so much for your help

Loading External Txt Into A Movie Clip
I'm trying to load an external txt file into a movieclip. My movieclip is10 frames long with tween; with one layer containing a dynamic text box labeled 'loadInfo'. The movieclip is placed on frame 25 of the root time line.

Here's the code I'm using (frame one of root time line) :

var myLV:LoadVars = new LoadVars ();

myLV.onLoad = function (success) {
if (success) {
_level0.loadedInfo.htmlText = myLV.info;
}else{
level0.loadedInfo.text = "There has been an error loading requested information. Please contact the webmaster and report error.";
}
}

code on frame one in movieclip:

level0.myLV.load("Events.txt");

Right now nothing happen, but if I make a dynamic text box on the root time line using the same code it works. Not sure where to go from here..??...
Thanks for any help,
Dave

Loading External Swf's In A Movie Clip
In my website that I'm attempting to build. I have on the main time line a movie clip for my buttons then movie clips for each section (print design, 3d design, flash animation, etc..) What I want to do in in the flash animation movie clip is add a button that when you click on it it creates a pop up window in flash and then loads the swf that I want to play. Kinda like the website Portablegallery.com I like how all the artwork comes up in a flash pop up window instead of an html window.

Is it possible to load swf's that deep into the flash file? and if it is any suggestions on how to do that, or if you need more info on what I'm trying to say let me know

thanks!

Loading External SWF In A Movie Clip?
I am trying to loadmovie a external swf within a movieclip in the main flash document but nothing shows up, why is that?

Loading An External Swf NOT As A Movie Clip?
Hi everyone,

I have just looked at a tutorial on transitioning between external swfs for ideas on how I can play a little simulation inside another flash file. I am a beginner and this tutorial was a little more complex than what I need (for example, I don't know if I need "midframe" or anything).

I can't just load the simulation as a movie clip because the drag/rotation functionality is gone, it just plays by itself. I am using Flash 8.

Please help!

Thanks,

Vicky

Loading An External Movie Clip
I am re-creating an instructional movie with images and sound. I have external swfs that i need to play on after the other. i got the first swf to play by using:

loadMovieNum("intro.swf",1);

the first swf plays fine but i need help with adding the additional swf files to play. these are big swfs and i have preloaders attached to the swfs. i am not sure how to code it so that the next swf will play after the one before it is done. if anyone could help it would be much appreciated.

Loading External SWF's Into A Movie Clip
If somebody, could please help me with this - I would appreciate it.

Alright, I'm creating this e-learning site for a project of mine. I am relatively new to Flash, I'm in the process of learning it - therefore the site has been put together in one FLA file, so please be patient while the whole thing loads.

Anyways, there are two things I would like from ya'all. One, I would like comments on what you think of the project so far.

And two, I need some serious help in adding the content to the display box that pops up. What I want to do is this: I want to be able to click on each planet thumbnail on the bottom and have it load information regarding that specific planet into a movie clip ontop of the display box movieclip. I want that one movie clip to load/display every planet's information when you click on one of the planet thumbnails. I don't have experience yet with creating external SWF's and loading in XML. I would appreciate any help and actionscript coding, I will provide your name and website URL in the credits of this project. If you provide me with some code to help me achieve this, I'm a person who wants to learn, not copy and paste.

If there is an easier way to do this, by all means let me know, lol.

Flash 8 plugin required:
http://www.sosquad.com/flash/journey.html

Beating My Head Against A Wall Over Mappings And External Data
Ok, here's what I need to do.

I have a set of options, such as eye color. There are a variety of choices.

The choices are based on a previous variable.

What I would like to do is have an external file contain these choices in a mapping, such as eyecolor = (["blue", "green"])

In flash, I'll have a dynamic text box to display the choices (one at a time), and a left and right arrow to cycle through the various possibilities.

What's driving me crazy is turning those externally defined mappings into something flash can use, probably an array. That way I can have the buttons control a function that cycles through the array's indexes.


Any suggestions are greatly appreciated.

Loading External Movie From A Movie Clip In The Root
Hey, I ran into some problem with the webstie that I'm designing.
Let's say the root movie is main.swf and within the main.swf, there is a movie clip called buttom that controls the buttom animation. when I push that buttom, I want it to load an external movie, say, external1.swf into the main.swf.
I have the empty movie clip on the stage on main.swf . When I try to load external1.swf, it just wouldn't do it? (I'm using the loadMovie("url","target")command)
Is there anything wrong?
Thanks

Loading External Text To A Movie Clip
Hello, I'm having a thick day today.

Basically I have a movieclip on the stage, its instance name is 'panel'. Inside the movie clip i have 26 dynamic text boxes, 1 for every letter of the alphabet.

In the same folder as the swf, I have a text file with a=A etc etc etc (variables for the Alphabet). I need to get the alphabet from the text file, into those dynamic boxes. I have done it before but all I seem to be doing at the moment is getting a blank screen!

heres the code i have to load the text:

loadVariablesNum("glossary.txt", "panel");
stop();

I can't see anything else wrong and its probably glaringly obvious!its just one of those days!

Loading Sounds From External Movie Clip
Hey everyone,

I am trying to make a jukebox kind of thing where users can select between 30 or 40 songs and play that song. Obviously I don't want to load all sound clips into the main library, but when I try and load them in from an external movie clip I get nothing. Here's the basic idea of what I'm trying to do:

the button to select a song just loads the movie clip into a target MC in main:

on (release) {
loadMovie("WalkAway.swf", "loader");
}

the play button is in the main movie:

on (release) {
_root.loader.song.start();
}

In the first frame of WalkAway.swf I have the following code:

song = new Sound();
song.attachSound("WalkAway01");

And finally, in that file I have the song imported into the library and linked to the identifier "WalkAway01"

Any ideas on why this is not working, or suggestions for a better approach? They would be much appreciated!

Thanks,
Brian

Loading External Jpegs Into Movie Clip
Dear Flash community,

I’m using this code

t1Bu.onRelease = function() {
_level0.picMC.loadMovieNum("pm1.jpg", 1);
_level0.txtstageMC.gotoAndStop("f2i1");

to try to bring in a external jpeg that is sitting in the same folder as the flash file. I am trying to bring it into a Movie clip (picstageMC). I then want to be able to replace this as other buttons load other clips into the same level. The third line of code which goes to a movie frame works fine. I can’t understand why the jpeg part isn’t working and have exhausted all the alternative ways of going about it that I know. PS 'picMC' is the named instance of a movie clip.
I have put up the unfinished work here:
link to problem page

Problem Loading External SWF Into Movie Clip?
Ok, so far i have a movie clip 4 the SWF to load into, a start button and a stop button! when the user clicks the start button i want the external SWF to load into the movieclip space.

In the time line i have this code:

PlayVideo.onRelease = function() {
loadMovie("Banner.swf", Ve*****Space);
};
StopVideo.onRelease = function() {
unloadMovie("Banner.swf");
};

Wen i click the start button nothin appears to happen? The MC is gray but wen the button is clicked it turns white? buts thats all it does!?

Ive done this exercise b4 and it worked fine? can anyone point out wer i am goin wrong or wat could b the problem? Does it matter if the code above is not in the first frame? Thanx

Loading External XML Images Into A Movie Clip
I'm trying to load an external image thru an XML file, into a empty movie clip, so that I can control it after thru AS

This is the code I'm using, but It dosen't seem to work properly.


Quote:





var imageLoader:Loader;
var boxX:int = 0;
var myXML:XML;
var myXMLList:XMLList;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.load(new URLRequest("assets/xml/bottom.xml"));
xmlLoader.addEventListener(Event.COMPLETE, xmlComplete);

function xmlComplete(evt:Event):void {
myXML = new XML(evt.target.data);
myXML.ignoreWhitespace = true;
myXMLList = myXML.caseStudies.children();

for (var i:int = 1; i <= myXMLList.length(); i++) {
imageLoader = new Loader();
imageLoader.load(new URLRequest(myXML.caseStudies["jpgURL"+i]));
MovieClip["box_"+i] = MovieClip(imageLoader.content);
["box_"+i]x = boxX;
boxX = i * 86;
["box_"+i]addChild(imageLoader);
}
}

Loading External Text Into Movie Clip
Hello everyone,

I have a quick question about trying to load external text into a movie clip.

Here are the files that I have

A flash movie
An external file called "testtext.txt" which contains the text that I want to load

Within the main flash movie, I have a movie clip. Inside of this movie clip is a dynamic text field. The dynamic text field has an instance name of "myText_txt" I have also typed "content" into the "var" box in the properties panel. The variable "content" corresponds to the variable in the "testtext.txt" file.

I am using the following code:


myData = new LoadVars();
myData.onLoad = function() {
myText_txt.text = this.content;
};
myData.load("testtext.txt",);


Basically, this works just fine if I place the code inside of the movie clip that contains the dynamic text box. However, for my purposes, I want to place the code OUTSIDE of the movie clip and in the main timeline. So basically my question is this: How can I use this code in the main timeline to interact with the dynamic text box inside of my movie clip?

Thanks so much for reading my post. I look forward to ANY advice that you could provide me with. Your assistance is greatly appreciated.

A Movie Clip Btn Loading And Controlling An External Swf
Hi there,

I am quite new to flash, so go easy on me, but have been working on a project that involves using movie clips as buttons so i can controll onRollOut.

Basically i need to load in a external .swf when i roll over my movie clip btn but it needs to start at a certain frame label 'overinside'.

I am loading the external .swf into a blank movie clip.

this.testbtn_mc.onRollOver = function() {
testbtn_mc.gotoAndPlay("over");
theLoader_mcl.loadClip("fermac_inside.swf","theIns ide_mc");
}

That is my AS that loads the .swf in but i cant go further than this.

Any help would be great.

Ben

Loading External Animated GIF Into A Movie Clip?
Hey, guys
I was wondering if it is possible to load a looping multi-frame GIF animation into a movie clip and have it actually play during main SWF playback.
I'm aware that you can import a GIF as a sequence of images to stage, or library, but that method won't work with an XML gallery, unless all the GIFs are converted to little SWFs (right?).

Any thoughts on this?

thank you

Loading External Swf Into A Blank Movie Clip
i have my main timeline that has a blank movie clip.

the main timeline loads an external swf that houses the menu.

i want the menu to be able to load external swfs in the blank movie clips in the parent time line.

say the instance title for one of the blank movie clips is window1.

the button that i want to coorespond to that movie clip has the actionscript

ActionScript Code:
on (release) {
loadMovie("about.swf", "_parent.root.window1");
}
ive tried some other variations of that with out luck as well.

help asap would be appreciated.

Loading An External .swf Into A Target Movie Clip
Hello,

I have a .swf called "UEFACup". What it does is by using next and previous component buttons it loops through 4 images inside of a "images" folder. If I run the "UEFACup" movie on its own, it does this perfectly.

However,

when I load it into a target movie clip called "blank_mc" by using loadMovie(), and then use those same next and previous buttons to go through images, they display outside of the target "blank_mc". So really, instead of being towards bottom right, they are in upper left and I have no clue how get them to display in the target.

Thanks

External Movie Clip Loading Question
is there any way to check if you already ahve something loaded into an empty movie clip? i know that when you load something new into movie clip it automatically removes the one currently in it, but i want to just check with AS if something is loaded in it.

Help With Movie Clip Button Loading External SWF
I Have made a movie clip button, But i am try'n to get it to load a external SWF into a MC. Now my AS is, (txt highlight in red is the area i am having a problem with!) It mean alot if some one could help me out!

stop();

this.onEnterFrame = function(){

if(rewind == true){

prevFrame();

}

}

this.onRollOver = function(){

rewind = false;
play();

}

this.onRollOut = function(){

rewind = true;

}

this.onRelease = function(){
if (_root.currMovie == undefined) {

_root.currMovie = "temp3_pageone";
container.loadMovie("temp3_pageone.swf");
} else if (_root.currMovie != "temp3_pageone") {
if (container._currentframe >= container.midframe) {

_root.currMovie = "temp3_pageone";
container.play();

}
}
}

Problem In Loading External Movie Clip
I am developing a full flash site , i had ( Home,Company,Multimedia,Portfolio,Template,Contact us) links and i made separate swf 's. The main movie (Home.swf) Contain the following links , when i load Company movie i get flickerd effecte Then its loaded. i dont want the flicker . i am using this code to load amovie clip

(When i click the Company Link a fraction of second the home page displayed)
loadMovieNum ("Company.swf",2) ex ( "MC Name","Level") .

External Movie Clip Loading Question
is there any way to check if you already ahve something loaded into an empty movie clip? i know that when you load something new into movie clip it automatically removes the one currently in it, but i want to just check with AS if something is loaded in it.

Loading External Swf Into Target Movie Clip
I'm not sure why this isn't working. Here's what I've done:

Start a new flash movie.
Create a box on the stage in it's own layer, convert it to a symbol, select "movie clip".
Give it the instance name myClip.
Apply the actions:
loadMovie("file.swf", myClip);

file.swf loads into the scene, but not at the x/y coordinates occupied by the target movie myClip. Instead, it loads off to the right and down.

I also tried _root.myClip for the target and got the same results.

Loading External Swf If Button Is In Movie Clip - Help
PLEASE HELP.
I've been doing tutorials on how to load external swf's using an empty movie clip on the main stage that is triggered by buttons. Those buttons always seem to be on the main stage.... but what your buttons are located inside another movie clip which is then placed on the main stage....?
I am trying to create a menu which moves on rollover and loads an external swf on click, and i seem to have gotten the menu part animated (i have six buttons which are made into an animated movie clip which is then placed on the stage). but i am wondering how to load external movies on the main stage from those buttons. i am using the "load movie" script and it works when i create a static button on the main timeline, but as soon as i use the same code on the same button which is inside the animated movieclip, it doesn;t work. er, am i making any sense? please help!
thanks!
best, lisa

Loading An External Swf Into An Empty Movie Clip
Im trying to load an external swf ("rollovermovie.swf") into an instance of a movieclip ("moviehandler") when the mouse rollsover a button on the stage

the actions I have attached to the button are:
on (rollover) {
_root.moviehandler.loadmovie("rollovermovie.swf");
}

But it is not working. Can anyone help?

Text Effects And Loading External Swf's Into A Movie Clip
I am having a problem. I downloaded the text effect call rotating explosion. I then put all the script into my movie and saved it as an swf file. The text effect works perfect.
The website I built has a scene where it downloads an seperate swf file into a movie clip on the website. When i make it download the swf with the text effects, the effects don't work write.
Does anyone know what the problem might be. some how the actionscript is not working when it gets loaded into the movieclip on the website. But if i go straight to the swf with the text effect and play it alone it works.

Got any ideas.

Loading External Swfs Into Movie Clip Instances
hey there,
just been searchin thru the actionscript section tryin to find out how you load external swfs into movie clip instances - the search engine was havin a few probs so i had a hard time findin the info - so does anyone know how you go about this. your help would be awesome

cheers
ant

Loading An External Image Into A Linked Movie Clip...
Hi all,

Okay, I've got animated movie clips within my swf, which I call via attachMovie code, and I want to load an external images into them.

I've tried putting a clip within each animation, and putting this code on the first frame of that clip:

this.loadMovie("resources/hotel_image_1_final.jpg",1);

But while this works for the first image, images 2, 3, and 4 return this error:

Target not found: Target="/main/ImagesClip/ImageHolder/instance29/instance30" Base="_level0.main.ImagesClip.ImageHolder.instance 29.instance30"

Can anyone tell me what's going wrong? Or an alternate way to load the images?

Cheers.

Loading External SWF Photo Gallery Into Movie Clip
I purchased a flash photo gallery from a particular website I don't know if I can mention. Unfortunately, they don't provide ANY support which is their prerogative. However, they won't even advise you where you can go to get help.

Anyway, it works great on it's own but, when I import it into the movie clip of another flash file, the photo gallery images don't load. There are four frames with AS in it. I will try to add the most complicated ones here because the other two are basically stop and play.

First one:


Code:
stop();
var totalNum = 0;
var nowImgNum = null;
System.useCodepage = true;
dXML = new XML();
dXML.ignoreWhite = true;
var info = new Array();
var subimg = new Array();
dXML.onLoad = function ()
{
_lv = this.childNodes;
_root.totalNum = Number(_lv.length);
var _l3 = 0;
while (_l3 < _lv.length)
{
_root.subimg[_l3] = [];
imsi = new Object();
imsi.startphoto = _lv[_l3].attributes.startphoto;
imsi.no = _lv[_l3].attributes.no;
info.push(imsi);
var _l4 = 0;
while (_l4 < _lv[_l3].childNodes.length)
{
imsi2 = new Object();
imsi2.sub = _lv[_l3].childNodes[_l4].attributes.value;
subimg[_l3].push(imsi2);
_l4++;
} // end while
_l3++;
} // end while
nextFrame();
};
dXML.load("gallery.xml");


Second one:


Code:
function init()
{
this.attachMovie("bar", "bar", 100000);
this.bar.onEnterFrame = function ()
{
this.sMove(0.340000, this.taregtX, this.taregtY);
};
showNum = 10;
imgStartX = 500;
this.bar._y = spaceY;
var _l3 = subimg[nowImgNum].length;
trace(_l3);
if (_l3 >= showNum)
{
startX = imgStartX;
}
else
{
startX = imgStartX + (showNum - _l3) * 28;
} // end if
startY = 50;
spaceX = 28;
spaceY = 28;
_root.screen.screen.loadMovie(_root.photoUrl + subimg[nowImgNum][0].sub);
} // End of the function
function remove()
{
delete bar;
var _l2 = 0;
while (_l2 < subimg[nowImgNum].length)
{
this["sphoto" + _l2].removeMovieClip();
_l2++;
} // end while
this.bar.removeMovieClip();
} // End of the function
function sphotomake()
{
var _l3 = 0;
while (_l3 < subimg[nowImgNum].length)
{
smc = this.attachMovie("sphoto", "sphoto" + _l3, _l3);
smc._x = startX + Math.floor(_l3 % showNum) * spaceX;
smc._y = startY + Math.floor(_l3 / showNum) * spaceY;
smc.screen.loadMovie(_root.photoUrl + subimg[nowImgNum][_l3].sub);
smc.onRelease = function ()
{
var _l3 = this._name.substring(6);
_root.screen.screen.loadMovie(_root.photoUrl + subimg[nowImgNum][_l3].sub);
_root.bar.taregtX = this._x;
_root.bar.taregtY = this._y;
};
_l3++;
} // end while
} // End of the function
function bargo()
{
this.bar.taregtX = this.sphoto0._x;
this.bar.taregtY = this.sphoto0._y;
} // End of the function
stop();
MovieClip.prototype.sMove = function (speed, mtx, mty)
{
var _l3 = speed * (mtx - this._x);
var _l2 = speed * (mty - this._y);
this._x = this._x + _l3;
this._y = this._y + _l2;
};
back_btn.onRelease = function ()
{
remove();
_root.play();
};
init();
sphotomake();
bargo();


My idea was to just place the instance name of the movie clip after every reference to "_root" other than that, I have no ideas. Would anyone here be familiar with this? I would be happy to upload the files. I am using Flash 8 on a Windows XP system.

Thanks in advance.
Jackie

Copyright © 2005-08 www.BigResource.com, All rights reserved