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




Controlling External Swfs Loaded Into An MC



Hi, quick question. what actionscript could i use to make an movies loaded into a movieclip play. tried _root.holderMC.play(); holderMC being the movieclip the external swf is loaded into, doesn't seem to work! searched the internet too but no lucky, so any suggestions would be awesome.Thanks alot TOM



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 03-23-2005, 02:57 PM


View Complete Forum Thread with Replies

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

Controlling External Swfs Loaded Into An MC
Hi, quick question.
what actionscript could i use to make an movies loaded into a movieclip play. tried _root.holderMC.play(); holderMC being the movieclip the external swf is loaded into, doesn't seem to work! searched the internet too but no lucky, so any suggestions would be awesome.

Thanks alot
TOM

Controlling Loaded Swfs, From Other Swfs....
alright on my site, i have a loaded movie clip with sound, which is the main bg music, and i have a samples page, and i want each sample to load up on press or whatever. now i need to know how to not just unload the mian bg music swf, but make that swf go to and stop on frame 3 (1 is loader, 2 is play, and 3 is stop) thanks alot!!

Controlling Loaded SWFs
Is it possible to control SWFs that you have loaded into your main movie? Like tell it to change frames for example?

Controlling Loaded SWFs
Can anyone help?

I'm new to actionscripting.

I am loading several SWFs into a target successively, each one calling the next. Call them MC1-MC4. Each has several scenes.

Here is my challenge:

I need to program a Rewind, Stop, Play, and Foward button on the host movie that control whatever movie is currently loaded in the target.

NOTE: The Rewind and Foward button only need to take the user to the begining of the previous/next scene.

Like I said I'm very new to ActionScripting. Does anyone have an example script I can look at? Can this be done simply?

Thanks!

Help With Controlling Loaded Swfs
Hey guys,

I'm making a site in mx, and I have got it set up so it loads and external swf when you click on each section. I have an animation coming into each section and going out aswell. I have each swf with a stop at about frame 10, where the page stays for viewing. I want it so that when you are viewing a section, lets say the "about me" section, and you click on say "links", it will play the rest of the about me.swf, when it gets to the end, load links.swf in its place.

Controlling Loaded Swfs
I have a main clip, and inside of it I'm loading movies externally (into an empty clip called "host".)

I have frames labeled "01", "02" and "03". After I've loaded externalMovieA into the host clip in frame "01", I want externalMovieA to play to its end. When externalMovieA is ended, I want the main clip's root timeline to go to lable "02" and load externalMovieB.

I can't seem to control an externally loaded clips.

Any help? I'll include the main FLA.

Thanks.

Controlling Loaded Swfs
Hi,

Complete noobie here and just getting to grips with AS 3.0 so apologise if this is a dumb question.. Anyway, trying to load and then control an external swf with this code:

var myrequest:URLRequest = new URLRequest("Left.swf");
var myloader:Loader = new Loader();

myloader.load(myrequest);

//check loads completed
function swfLoaded(e:Event):void{
stage.addChild(myloader);
var mycontent:MovieClip = e.target.content;
trace(mycontent);
mycontent.x = 100;
mycontent.y = 100;
mycontent.gotoAndStop(10);

}

//add event to loader class
myloader.contentLoaderInfo.addEventListener(Event. COMPLETE, swfLoaded);

evrything works - x and y of movieclip get set but problem is that the movie doesn't stop at frame 10 - it just keeps playing through?!

Anyone any idea why this could be so??

Controlling Loaded Swfs
Hi All,

I tried yesterday to sort this out, but didn't explain it very well and I think everyone lost interest. So I'll try once more.

What I'm trying to do is create buttons in one swf that load another swf and also give instructions to begin playing from a certain frame in that swf. The target swf has a preloader on frame 1 and then a movie clip that contains a video in frame 2. Depending on which button the user presses the video will be cued up ready to play at different frames.

I think it may need an if statement ie if x=34 then goto frame 34, but I can't seem to pass the variables to the loaded swf.

In the zip file is an example of what I'm trying to do. I would really appreciate any help on this.

Controlling Loaded Swfs
Hi All,

I tried yesterday to sort this out, but didn't explain it very well and I think everyone lost interest. So I'll try once more.

What I'm trying to do is create buttons in one swf that load another swf and also give instructions to begin playing from a certain frame in that swf. The target swf has a preloader on frame 1 and then a movie clip that contains a video in frame 2. Depending on which button the user presses the video will be cued up ready to play at different frames.

I think it may need an if statement ie if x=34 then goto frame 34, but I can't seem to pass the variables to the loaded swf.

In the zip file is an example of what I'm trying to do. I would really appreciate any help on this.

Controlling Swfs Loaded Into An Empty Mc
Can anyone help me out with a script that i can put in a single key frame of my index.swf that can pause / play the swfs that are loaded into an empty mc <eg. movies_mc>.

Thanks.

Controlling Externally Loaded Swfs
Hello-

I am using AS 2.0 and MX 2004. I have a movie that loads in external swfs and images using the MovieClipLoader to load the element in to a clip called "container".

Now I've been testing within flash with test movie and it works great. as soon as I export my commands that toggle within different frames of the external swf fail.

what I have is:

container.gotoAndStop(frameLabel);

is there an obvious reason why this would stop working on export? or things I could try to figure this out.

I tried loading on to levels instead so I would have:

_level25.gotoAndStop(frameLabel);

and I still have the problem.

I am exporting as Flash 8 and testing in Flash Player 8.

ideas?

Controlling Loaded Swfs From Main Swf?
If I'm loading a swf into a movieclip with loadMovie, is it possible to control the loaded swf from outside it? In other words can I create actions in the main swf (or a movieclip within it) that can control the timeline of the swf that I'm loading into it?

Controlling Three Loaded Swfs With One Keypress
G'day

I hope someone has an idea.

I have a function that controlls zooming and pan of the stage using keys (space bar, backspace and arrow keys). It works fine. I made a swf with some objects on the stage.

I load the swf with the zoom into a base movie thats ok, works fine.

I thought that I could get a better 3d effect with the zooming if I had three of these zooming swfs loaded on top of each other with different objects on them, at different scales, zooming at different rates (the top one faster the next one slower etc.).

The problem is that once all three swfs have loaded, the keypresses only respond to the first swf that flash loads the others are static.

Is there a way around this problem?

Any help would be greatly appreciated.
easy

Loading External Swfs Into Externally Loaded Swfs.
ive got some buttons on my main timeline that im using to load external swfs into an empty mc. the buttons are coded with the following:

on(release){
if(_root.currMovie == undefined){
_root.currMovie = "1";
emptyMC1.loadMovie("1.swf);
} else if (_root.currMovie != "1") {
if (emptyMC1._currentframe >=
emptyMC1.midframe) {
_root.currMovie = "1";
emptyMC1.play();
}
}
}


1.swf also has some buttons that load external swfs into a second empty mc. those buttons are coded with the following:

on(release){
if(this.currMovie == undefined){
this.currMovie = "2";
emptyMC2.loadMovie("2.swf");
} else if (this.currMovie != "2") {
if (emptyMC2._currentframe >=
emptyMC2.midframe) {
this.currMovie = "2";
emptyMC2.play();
}
}
}


1.swf loads into emptyMC1 ok, and 2.swf loads into emptyMC2 ok.

when i press any of the buttons on the main timeline, the outro animation of 1.swf plays correctly, but the outro animation of 2.swf does not. is there a way to the buttons so that the emptyMC's unload sequentially?

Controlling MCs Inside Externally Loaded SWFs
I am loading a SWF file on layer1 of my project, and I'm attempting to position it from my _level0 "root" timeline with:

_level1.pledge._x = 256;
_level1.pledge._y = 144;

Alas, I can't make it work. The only MC inside the loaded SWF file has the instance name "pledge", so I figure this should work. What am I doing wrong?

Controlling Loaded Swfs With Action Scrip?
Ok, so I have a master Swf that loads a top menu swf and an animated background swf. On the menu I have a navigation button that once clicked SHOULD play the background.swf and once it is finished, Load another swf on top of it. I am tottaly stumped on how to do this.

this is what the button looks like so far


MM_news.onRelease = function () {
reActivateBtns();
changeOptionColor(this, overColor);
this.enabled = false;
_level2.gotoAndPlay(1);
if (backMorph._currentframe(42)) {
myMCL.loadClip("news.swf", 5);
}
};

Controlling External Swfs
Hi all:

I have an external swf loaded into a movie using the LoadMovie function. When the external swf finishes playing, I need to direct my main movie to go to a specific frame in the scene.

Any help would be appreciated.

Thanks

Controlling External .SWFs
hey guys..

if I have

_root.content.loadMovie("services.swf");

and inside services i have a movie clip called mc_split that does something at keyframe 20 how would i go about writing this in actionscript to make mc_split go to the frame from my main movie where i make the call to load the services.swf

i cant think if a single way to do it.. lol

any help would be greatly appreciated

thanks in advance

Controlling External .swfs
Hi there,
I have a bit of a problem with a flash webzine that I'm building. In it I have a flash movieclip. This movieclip is contained in an external swf and the movieclip plays using loadMovieNum. However I am having trouble controlling the movieclip. I want to be able to stop, fast forward and rewind. I have tried heaps of different things and nothing seems to work. I know I could use unloadMovieNum but I don't want to get rid of it. I just want to be able to control it.
Any ideas?

Controlling External Swfs
I have a web page with a flash nav menu bar and a flash header. when you click on the contact us button in the nav bar I would like the header to gotoAndPlay ("Contact") which is the contact us header. the problem is i dont know how to do this. The page is html using tables not frames
Please Help.

Brandin

My passion as a designer is not to impress the world, but to give my clients the confindence to present my work to the world.
-Me-

Controlling External SWFs
Hello,

I am having some issues working with external SWF. When the external SWF is finished playing, I want it to remove it from the stage and play the next one, similar to a slide show, but the time the slide is on screen is determined by the length of the SWF.

I have absolutely no idea how to set it up to a.) unload the external SWF or b.) How I would go about loading the next SWF.

Here is my code:


ActionScript Code:
var request:URLRequest = new URLRequest("content.swf"); 
var loader:Loader = new Loader(); 
   
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress); 
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completed)

function loadProgress(event:ProgressEvent):void { 
    var percentLoaded:Number = event.bytesLoaded/event.bytesTotal; 
    percentLoaded = Math.round(percentLoaded * 100); 


function completed(event:Event):void{
    trace("I AM COMPLETE");
}
   

loader.load(request); 
addChild(loader);

Any help would be greatly appreciated.

Thanks!

dougt

[AS] Controlling External .SWFs
hey guys..

if I have

_root.content.loadMovie("services.swf");

and inside services i have a movie clip called mc_split that does something at keyframe 20 how would i go about writing this in actionscript to make mc_split go to the frame from my main movie where i make the call to load the services.swf

i cant think if a single way to do it.. lol

any help would be greatly appreciated

thanks in advance

Controlling External Sound SWFs
I've got a site in which I'm calling external swfs to load into the main movie as new movies into the next layer. In other words :: main movie=layer 1 & sound swf = layer 2. When I load a new movie, I need for the external sound swf to fade out. I've looked on Flashkit for a tutorial, but the search engine's not working right for me.

How do i make the external sound SWF fade out with a button in my main movie??

Any advise would be MUCH appreciated!!!

Thanks - Gary

Controlling The Placment Of External Swfs
I'm having trouble controlling the placement of swf files when I load them externally. When they load, they end up in the upper left corner. I'm not sure if I'm being clear, but is there a way to control where they end up?

Controlling External SWFs' Variables Via XML
'Ello, world. I'm a long time Flash designer but am pretty new to the programming side of things. I'm starting to get the hang of things thanks to my job.

That is, until this problem comes along.

The situation: Our software has a lot of Flash involved with it. Menus, layout, etc. Many, many text feilds for $$ values and labels will be controlled via XML. My job is to set that all up...

So I have the master SWF file which just has the background image in it. At least 3 external SWFs, independant of each other, need to be loaded, and I -think- I have that part down. But of course, all the dynamic text areas of each of these loaded SWFs need to be controlled from the MAIN file. My dumb luck seems to have run out here.

After browsing here for a while I learned that external SWFs won't take any input until they have had a chance to load. So I have a few questions..

1) How would I go about "giving each external file time to load" while keeping all of them independant of each other? They could be loaded at any time, in any order, depending on when the user needs each one. Naturally once they are loaded, if the user wants to hide one I would just use the _visible = false gag.

2) What is the correct way to point at and manipulate a dynamic text feild buried inside an external SWF? Is it even possible?
My first thought was something like this (in this made-up example, defining what one of the labels on an image object reads as)


Code:
MC_with_loaded_SWF.object1_mc.label="INSURANCE"

Controlling External SWFs Using A Telltarget?
Anyone know how to directly control an external swf using a telltarget? I've got a button in the main swf that onRelease I want to tell to level1 movie to gotoAndPlay, just don't remember what path to asign. Thanks for any help.

: blake

Controlling Sound(s) Within External SWFS
so i have a bunch of extrernal swfs that have background music playing in them.

i was wondering is there a way to control the sound (turning it on and off, basically) when loading between the swfs.

for instance, i turn the sound off on one swf, and then i load up another.
will the sound start up again?

Controlling Sound(s) Within External SWFS
so i have a bunch of extrernal swfs that have background music playing in them.

i was wondering is there a way to control the sound (turning it on and off, basically) when loading between the swfs.

for instance, i turn the sound off on one swf, and then i load up another.
will the sound start up again?

Controlling A Movieclip That Loads External Swfs...
I have a button that stops a movie clip, the only thing is when I load an external SWF and use that movieclip as the container, it stops working.

I gave the movieclip an instance name "trans" and when i use
[as]
trans.loadMovie("trans.swf")
[as]

To load an external SWF called trans the following AS

[as]
on (release) {
_root.trans.stop()
}
[as]

stops working... ANy suggestions

Mike

Controlling The Order Of Loading External Swfs
Hi All,

I have searched the site with no luck for finding out about this. It could be that using loops is the only way to do what we want, however ever the optimist I'll ask the question anyways.

Is it possible without looping to control which of 12 or so external swfs loads first when they all have to load on the same frame of the main movie?

For example, we have a main movie which creates classes where the class is itself in an external movie. When we load locally, the movies all load fast enough that the classes are created correctly, however when we move to loading from the server some of the class movies are not loaded into their levels before the main movie tries to create the class with of course the result being the class is not generated and the movies do not function correctly.

Any help would be greatly appreciated.

Liz

Controlling A Movieclip That Loads External Swfs...
I have a button that stops a movie clip, the only thing is when I load an external SWF and use that movieclip as the container, it stops working.

I gave the movieclip an instance name "trans" and when i use
[as]
trans.loadMovie("trans.swf")
[as]

To load an external SWF called trans the following AS

[as]
on (release) {
_root.trans.stop()
}
[as]

stops working... ANy suggestions

Mike

Controlling The Order Of Loading External Swfs
Hi All,

I have searched the site with no luck for finding out about this. It could be that using loops is the only way to do what we want, however ever the optimist I'll ask the question anyways.

Is it possible without looping to control which of 12 or so external swfs loads first when they all have to load on the same frame of the main movie?

For example, we have a main movie which creates classes where the class is itself in an external movie. When we load locally, the movies all load fast enough that the classes are created correctly, however when we move to loading from the server some of the class movies are not loaded into their levels before the main movie tries to create the class with of course the result being the class is not generated and the movies do not function correctly.

Any help would be greatly appreciated.

Liz

Volume Sliders Controlling External SWFs. [includes FLA]
Okay, I'm working in Flash MX and want to control the volume/panning of an externally loaded SWF with the sliders I've built. Just download the FLA below and then publish preview it (be sure to preview in HTML)...then play one of the clips, it'll automatically retrieve the SWF from my webspace. My problem is, I don't know the proper script/target to put on those volume/panning sliders in order to make them control the sounds (which are loading into Level 1, incidentally).

http://www.souldivine.net/version2/soundproblem.fla

If you could take the time to pop this file open, it'd probably be an easy problem to fix, but I just can't seem to get the right script. I'd definitely owe you one if you can help me with this. Thanks a bunch...

Controlling Parent Movie Clips From External Swfs
How is the question when I publish my external swfs obviously I cannot access functions or variables that dont exsist as there is not referance,

so once I load something into a container how to I control the parent and access its functions?

senario = an index - loadeds external content with a sub navigation into a container, I from the externally loaded swf I click something and then something else loads into that container replacing what was initially there.

in as2 this was all very easy but im struggling in as3 can anyone help

Controlling Loaded External Swf's
I'm gettin' really frustrated here. I've been working on this pretty big flash website for months now, and wouldn't you know it, it's too big to load all at once on any connection slower than a DSL (it may work on cable). Even though I shouldn't be letting anyone see it yet, it's here http://www.webxinc.com/new_webx13. Keep in mind, it'll probably never load if you're on a 56k modem, but if you're still interested in seeing it, try putting a number lower than 13 after "new_webx" in the adress (like maybe 8). Anyway, my problem....

I've been trying to split this into separate .swf's that'll load into the main one which contains the intro, main page buttons and backgrounds, and content for the top buttons. The "portfolio" and "about us" sections will each be separate .swf's that load into the main one using the "loadMovie" (or "loadMovieNum") commands and be placed in holding MC (or higher level). So I've tried this by making a separate swf out of the portfolio section and deleting the portfolio part out of the main swf (This is not demonstrated in the currently posted version). I put the "loadMovie" command inside of the fisrt client list button inside of the portfolio section, and in that button's object actions, I also tried controlling movie clips that reside inside of the loaded swf. In the Flash 5 Bible, it says that this can be done by specifying the level of the loaded movie and following it with the instance name and then the command, sort of like how the _root command is used. Here's an example:
_level1.pbg.gotoAndPlay(2);
Here, "pbg" is the instance name.
But this doesn't work. For some reason, the MC's within the loaded swf aren't responding to my commands. I need help!!!!!!!!!!!
please

Controlling A Loaded External Swf
I have a base movie that is a simple container and is mostly in the stop position. This movie has two buttons that load external swf files into a target MC (container1) on the _root of the base movie. the base movie also has an exit button which unloads the movies and returns the playhead to frame 1 and stops.

Both loaded swf files load and play correctly. But....

When unloading one of the movies and returning to frame 1, the base movie which should be stopped, starts playing on its own.

I'm pretty sure that this is because the particular loaded external swf file uses some code to pause the movie in places. the code looks like this:

function pause(){
play();
clearInterval(timer);
};

and this where I want it to pause:

stop();
timer = setInterval(pause, 1000);

Other external swf files that I load which do not have this code, do not have this problem.

I have tried this code on my exit button, but it doesn't help:

on (release){
_root.container1.clearInterval(timer);
container1.unloadMovie();
gotoAndStop("start");

}

Do I have the clearInterval targeted wrong? Could this code be the culprit and if so, why is this code hanging on after the swf is unloaded?

thanks,
Dennis

Controlling External Swf That Was Loaded By Xml
I have a movie that has a stop action on its last frame.
When I load it into my videoplayer movie clip it keeps looping.
How do I get it to stop on the last frame?
I've been trying

ActionScript Code:
if(videoplayer.content._currentframe=videoplayer.content._totalframes){
        empty_mc.loader_mc.videoplayer.stop();
as well as taking out "content"
I have it being loaded as

ActionScript Code:
videoplayer.loadMovieClip(xmlData.firstChild.childNodes[0].attributes.url);
if that helps... Any ideas?

Trouble With Loaded External Swfs
I am currently building an all Flash website (my first) using MX2004 Pro, and am having trouble with some loaded swfs. I’ve created a navigation file, mgnav_no.fla. mgnav_no.fla uses 6 movie clips (swfs imported into the library) that play consecutively – home, about, etc. mgnavHome_mc has the following scripts:

Frame 3: _root.mgnavAbout_mc.gotoAndPlay(2)
Frame 10: stop();

This tells the next navigation movie clip to play. Other than the addition of a stop(); in frame 1, mgnavAbout_mc has the same script telling the third navigation movie clip to play, and so on. All 6 of the navigation movie clips have been placed on their own layer in the main timeline (one frame), and have been given invisible buttons on a separate layer. Rolling over the buttons gives you a text description elsewhere on the stage by loading an external swf with the following code:

mgnavHome_btn.onRollOver = function(){
holder_mc.loadMovie("mgnavOverHome_no.swf");
}

mgnavHome_btn.onRollOut = function(){
holder_mc.unloadMovie();
}

I’ve tested this and mgnav_no.swf works perfectly. The navigation elements show up consecutively and the rollovers work.

Now my main movie, client.fla (currently one layer with one frame), loads the external mgnav_no.swf. If I use loadMovieNum("mgnav_no.swf", 2); everything works, but I have been unable to figure out how to position a loaded movie using loadMovieNum(). So...

Question 1: Is it possible to position a loaded movie on the stage using loadMovieNum()?

Unable to find the answer myself, I decided to try something different that I new would allow me to position the movie:

_root.createEmptyMovieClip("mgnav_mc", 2);
mgnav_mc.loadMovie("mgnav_no.swf");
mgnav_mc._x = 0;
mgnav_mc._y = 510;

Problem solved? Not quite. Yes, it loads mgnav_no.swf in the position I want, but only the first navigation element, home, shows up. Obviously the script on mgnavHome_mc telling mgnavAbout_mc to gotoAndPlay(2) is no longer working. I’m guessing the problem is with using _root in the syntax, but I was under the impression that each swf has its own root so I don’t understand why this doesn’t work. Also, the rollovers for all the navigation elements work, so why not everything else?

Question 2-3: What’s wrong here? And, since I’d like to learn, why doesn’t what I have work?


And just in case you’re curious, _no is simply to differentiate between language versions (no being for Norwegian).


Thanks for any help,
Adam

[mx] Getting Loaded External Swfs To Loop
Whats ups,

i still have the same problem, i cant get the swfs that are load to play and then start agian from the begening.
Kortex was kind enough to suggest a few lines of code but it didn't work, i dont know if its cause i f***ed it up, or cause of some other reason.

anyway heres the code'

code: // Create Emptymovieclip.//
_root.createEmptyMovieClip("swfPlayer", 0);
// set movieclip Parameters.//
swfPlayer._x = 31.6;
swfPlayer._y = 189.4;
swfPlayer._width = 312.9;
swfPlayer._height = 230.2;
swfPlayer._xscale = 50;
swfPlayer._yscale = 50;
// in the root movie create a function;
_root.count_num = 1;
movie_1 = "swf/openingShot.swf";
movie_2 = "swf/Pop-upShot.swf";
movie_3 = "swf/dustShot.swf";
movie_4 = "swf/MazeShot.swf";
_root.total = 4;
function LoadNextMovie(which_one) {
swfPlayer.loadMovie(which_one);
}
onEnterFrame = function () {
if ((swfPlayer._currentFrame == swfPlayer._totalframes) and (swfPlayer._totalframes>0) and (_root.count_num<_root.total+1)) {
LoadNextMovie(_root["movie_"+_root.count_num]);

if (_root.count_num == _root.total) {
_root.Count_num = 1;

}else {
_root.count_num += 1;
}
}
// call the function manually//
LoadNextMovie(_root["movie_"+_root.count_num]);
// unload final movie//
LoadNextMovie(_root["movie_"+_root.count_num]);
}



now the code works for loading the swfs, but the problem is when the for swfs play through, the last one(fourth) will keep looping. once the last movie plays i want it to unload and start at the first one again and play through and continue to loop like that indefentialy.

the code that Kortex sugested is this;

onEnterFrame = function () {
if ((swfPlayer._currentFrame == swfPlayer._totalframes) and (swfPlayer._totalframes>0) and (_root.count_num<_root.total+1)) {
LoadNextMovie(_root["movie_"+_root.count_num]);

if (_root.count_num == _root.total) {
_root.Count_num = 1;

}else {
_root.count_num += 1;
}
}
}

-also for some reason the first swf plays twice before it loads the second!
if any one can see why could you please point that out.


again anuy help would be greatly apperciated, and would help me continue on with the project.

Variables Between Loaded External SWFs
Hey guys,
I have a SWF with a preloader to a preloader.
It is a website that has a spinning chalk board effect per page click.
example: Click About Us, chalk board spins, and contents show up.
Obviously this is huge so I have:

1). LOADER.SWF (main swf)
2). MAIN.SWF (intro/holder swf)
3). VARIOUS ANIMATED CHALKBOARD PAGES (home.swf, about.swf, ect ect)

I have successfully preloaded home.swf, although on the home page, there is a neat lil animation the first 60 frames of MAIN.swf before the first chalkboard movie clip is supposed to load, but my preloader loads EVERYTHING AS A WHOLE and skips right to the chalkboard spining.

I hope this makes sence.

IS there a way to create say, a boolean var on the frame where the first chalkboard clip is supposed to load that only sets true AFTER the MAIN.SWF animation?

Basically, how do I communicate variables between external swfs?
Help.

Fade Out External Loaded Swfs?
I have my buttons inside a mc called nav_mc on the root, each button loads an external swf into content_mc on the root, how can I make the current loaded swf in the content_mc fade out when I click the button for another swf to load? I been having this problem, I tried 2 ways of doing it, and just ran into problem after problem, can anyone shed some light on me?

Controlling Loaded External Movies
Hi guys,

I hope you can help me before I break this wall down with my head.

Working in MX Pro 2004 I've got a site that I'm loading external swf files into a container MC when buttons are clicked. What I can't get my head round is playing those movies backwards when any other button is hit.

I've been toying with the "on (releaseOutside)" handler but it doesn't seem to be doing anything.

Any help greatly appreciated.

Controlling A Movie Which Has Been Loaded From An External Swf
Hi Folks,

I have a Flash page which loads an external movie (swf file) into an object which I have named "body". I then wish to start the movie at a frame other than the first, in this case I have labelled the frame as "history" in the external swf. The swf appears to load fine but it starts from the first frame, not the frame labelled "history". I have placed the following ActionScript on the first frame of an empty layer in the Flash file that contains the "body" object.


Code:
loadMovie("menubot.swf", menuBottom); // Load bottom menu
loadMovie("menutop.swf", menuTop); // Load top menu
_root.section = "thehotel.swf"; // Name of external swf
loadMovie(_root.section, body); // Load swf into "body"
_root.body.gotoAndPlay("history"); // Play loaded swf at "history"
Any idea what might be the problem? Could it be that the swf file is not loaded before the gotoAndPlay function occurs? If so, how can I tell it to wait until the movie is loaded?

I have a similar problem elsewhere but I suspect that if I can get an answer to this problem, I will be able to fix the other problem as well. Thank you in advance.

Glen

Controlling _mc From External Loaded Menu_mc
Hi all! I'm new to actionscripting, so my problem may have a quite common solution to a skilled scripter. I apologize for this.

I have my main_mc that has several external _mc loaded ad parts of the whole site.

one of them is the menu_mc (accordion panel).

each part of the menu_mc is an external loaded submenu_mc contening buttons_mc

each button should load a specific 1_mc, 2_mc etc... to a target position (named "target_1") on main_mc.

I have no success to do so.
I tried several ways but seems impossible to a niubbo like me.
could some (saint!) one write down here necessary script to achieve this?

thanks in advance, Teo

Loading External SWFs Vs. Loaded Movie In Mc's?
I guess what I'm really asking for, is which method is quicker for loading, having a certain degree of control over, and requiring less action scripting?

I understand that there are several factors to consider such as the complexity and size of a SWF. If anyone can either give me a better definitive answer between the 2 methods or send me a link describing such, I would be most appreciative.

Thanks!

How Do You Play And Stop External SWFs Loaded
Hi,

I am seeking advice or help on how to control the Playback, Volume of an externally loaded SWF.


PHP Code:



var slideRequest:URLRequest = new URLRequest("YourMovie.swf");

var slideLoader:Loader = new Loader();

slideLoader.load(slideRequest);

addChild(slideLoader);

slideLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);

function onComplete(event:Event):void{

slideLoader.stop();

}




Can anyone help or point me to a useful tutorial. Basically I want to emulate a FLVPlayback class that only plays SWF movies.

Thanks for your help.

Loaded External Swfs Reload After Tween
Hi, I hope someone can give me a clue about this.

I am trying to make a pageflipping site and have set up all movements in the timeline (nothing fancy just lots of masking) with a movieclip holder for each page. The thing is, that since the movieclip holder has timeline movement (tween that move the element from one place to another), after any movement, when the movieclip holders stop on a frame, it reloads the external swfs.

Is this normal because of the way I am loading them (movieclip.loadMovie("target.swf"); or something else?

How can this be achieved without the external swfs being reloaded all time?
If I go forward to other pages and return, they reload again. As can be noticed, I am not very knowledgeable in ActionScript but trying.

Thanks for any help.

[F8] My Loaded External Swfs Reload After Tween
Hi, I hope someone can give me a clue about this.

Dont know is this belongs here, but I am kind of in a hurry.

I am trying to make a pageflipping site and have set up all movements in the timeline (nothing fancy just lots of masking) with a movieclip holder for each page. The thing is, that since the movieclip holder has timeline movement (tween that move the element from one place to another), after any movement, when the movieclip holders stop on a frame, it reloads the external swfs.

Is this normal because of the way I am loading them (movieclip.loadMovie("target.swf"); or something else?

How can this be achieved without the external swfs being reloaded all time?
If I go forward to other pages and return, they reload again. As can be noticed, I am not very knowledgeable in ActionScript but trying.

Thanks for any help.

Accessing Resources In Loaded/external SWFs
I've been looking around for an effective way of solving this issue, but without much like. What I'm trying to accomplish is creating a container for my newest Flash site in main.swf and loading other swf files that provide resources that modify mcs, functions etc. of the main.swf. I plan to have main.swf hold my background, logo etc. then each subrelated page as contact.swf, index.swf to be placed on top of that swf.

I did find this thread: http://www.kirupa.com/forum/archive/index.php/t-241538.html but all I managed to get from it is how to reference elements in the child from the parent using Loader.content. What I'm trying to figure out is how to reference from the child to the parent. ie. if I want to modify the background of the main.swf which is contained in a function called changeBackground().

To add some more complexity I am trying to keep as much of my code in .as files that are placed in the Document class. So for each main.fla I have a main.as and index.fla is index.as. In my index.as script I need to determine how to access objects/functions contained in main.as.

I HOPE that I've explained that all properly. If I'm being confusing or using inappropriate terms - apologies.

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