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




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?



Tek-Tips > Adobe(Macromedia): Flash Forum
Posted on: 22 Feb 05 19:40


View Complete Forum Thread with Replies

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

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 A Loaded Mc From Main Mc
ok, after browsing this forum for a bit, I can't seem to find how to control a loaded mc from a 'main' mc when one uses loadMovie with a target/dummy and not loadMovieNum. My situation is that I have loaded an external .swf into a 'main' .swf and I want a button in the 'main' .swf to control the playback of the loaded .swf. I've tried using dummy_mc.play(), where dummy_mc is the instance name of the target/dummy but it doesn't want to work (it doesn't seem like it would anyways). do I have to use the name of the loaded mc, i.e. ext_mc.swf, instead of the instance name of the target/dummy or am i completely lost here?

ps. if at all possible, i would like NOT to use loadMovieNum, just a personal preference, that's all.

Controlling The Main.swf From A Loaded Sub.swf
Hi All

Hope you can help me. I am loading a subMovie in to a mainMovie onto level 2 using the loadMovie command, I am trying to control the mainMovie from within the subMovie. ie When I click a button in the subMovie I want it to unload the subMovie and go to a specific frame lable in the mainMovie this is what I am doing but it aint working pls help

on (release) {
_root.gotoAndPlay("welcome"); ('welcome' is in mainMovie)
}
on (release) {
unloadMovieNum(2);
}




d

Loaded Swf Controlling Main Swf
is it possible for a loaded swf to control the timeline of the main swf or even to tell the main swf to unload the loaded swf just by pressing a button in the loaded swf.

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 Main .swf With An Externally Loaded .swf
Does any body know if it is possible to contorl the main timeline of a movie with a externally loaded .swf? And if so, will this work if the main movie is exported as a projector? Thanks for any help

Controlling Main Timeline From Loaded Swf.
I have a index.swf loaded into a level on my main timeline.

loadMovieNum (index.swf, 2)

This loades fine. I need the index.swf to stop the main timeline it is loaded in. this is the code i have used before and it worked, this time it does not.

on (release) {
_root.level0.stop();
}

Please help. thanks

Dawn

Controlling The Main Timeline From A Loaded MC
Hi guys... im back i asked this question the other day and the solution i got didnt quite work so i decided to repost and be as descriptive as possible -my problem is i have my main movie "TuffSite" and in it i have various scenes... into which i have empty movie clips that will hold various parts of my design in movie clips on my stage, in this case, i have my "menu_clip" loading into "menu_holdr" and in "menu_clip" i have my buttons -id like them to effect "TuffSite" lets say i want a button to go to and play frame 1 of a scene called Design in the main movie "TuffSite" i'll paste the code bellow but i owondering if the fact that im loading a movie clip into a movie clip and tryin to effect a movie a couple of layers up? i used to the following code which seemingly should work:


on (release) {
_root.TuffSite.gotoAndPlay("Designs")
}


as i understand it the root is refering to my main movie... so the only reason i can think of is that i've missed a "level" or something -any ideas, im gettin pretty Freaked out man!!!

Loaded Movie Controlling Main?
Im making a wee tutorial as part of a computing project and i wanted to know if a movie loaded into either an MC or _root can control the main movie, i.e. a button in the loaded movie that will advance the main movie one frame.

anyone know if this is possible?

Controlling Main Timeline With Loaded Swf
I am loading an external swf into an empty mc on the main timeline. When the animation in the loaded swf finishes, I want to move to a different frame on the main timeline. Somehow I need to use the loaded swf to tell the main timeline to go to a new frame.

Putting a "gotoandPlay" and pointing at _root from the loaded swf doesn't seem to do the job. any ideas?

Swfs Lose Functionality When Loaded Into Main Swf
Hi All,

I've been looking around the boards and can't seem to find the solution to the problem i'm having...

I have a main swf file that has my navigation and onRelease of each button I have an external swf loaded into a container on the main swf. They load up and you can see them however my motion tweens don't work as well as my links to other websites...

Below is my code:

var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();

myMCL.addListener(myListener);

myListener.onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number) {
var loaded:Number = Math.round((bytesLoaded/bytesTotal) * 100);
progressBar.gotoAndStop(loaded);
};

myListener.onLoadInit = function (target_mc:MovieClip) {
progressBar._visible = false;
};

myListener.onLoadStart = function (target_mc:MovieClip) {
progressBar._visible = true;
};

muPlay.onRelease = function():Void{
myMCL.loadClip("k_02.swf", "container");
};

mcArt.onRelease = function():Void{
myMCL.loadClip("art.swf", "container");
};

mcMusic.onRelease = function():Void{
sndAudio.stop();
myMCL.loadClip("k_music.swf", "container");
};

mcAbout.onRelease = function():Void{
myMCL.loadClip("about_us_01.swf", "container");
};

mcLinks.onRelease = function():Void{
myMCL.loadClip("k_links.swf", "container");

};


Any help on this would be GREATLY appreciated I've been trying to figure this out for a looooong time with no luck.

Thanks.

Load Into Main Stage Via Pre-loaded Swfs
Hey gals/guys


sorry about the bad title for this post, at the moment i'm so confused i don't even know what to call my problem!

So here's the deal...

I've set up a main stage right! within this stage I want to populate some null mc's with swfs [these will act as as a menu system].

EG. once i have, say "menu_1.swf" loaded into "option1null"
Code:
loadMovie("menu_1.swf", "option1null");
like so.

i want to be able to click on a button within the loaded "menu_1.swf" and load another [different] swf into another null mc on the mainstage.

So far I have tried:


Code:
loadMovie("menu_2.swf", "_parent.option2null");

loadMovie("menu_2.swf", "_parent._parent.option2null");

loadMovie("menu_2.swf", "_root.option2null");

loadMovie("menu_2.swf", "/option2null");
[I figured i didn't need any root reference etc. on the menu_2.swf cause all my swf's are in the same dir. is that right?]

I'm positive the answer is somewhere in these forums but I did not know what to search for so... here i am.

cheers to all who take time out to lay eyes upon this.

-Demian

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 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 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 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

Controlling Main Timeline With A Loaded Movieclip [swf]
I have been racking my brains out on this one.

My main file is called "main.swf" and I am loading an SWF called "control.swf".

I need control.swf to tell main.swf to goto and play a certain frame when control reaches a frame marker called loaded.

I have tried level, _root, _parent and nothing...

HELP!!!

Thanks,

Controlling Main Movie From A Loaded Clip
here's my problem: i've loaded a movie clip into my main movie, and when it finishes playing, it needs to tell the main movie to gotoAndPlay. what am i missing? right now, my script is this: "_parent.gotoAndPlay("stopped");" i've tried plenty of different combinations of _parent, _root, etc.

any help would be appreciated.

Controlling Main Timeline Through Externally Loaded Swf
I'm missing something...here's the setup:

navbar.swf (a navigation window) loads into the main timeline, placed into a container called navguide. There are buttons in navbar.swf that I want to control the main timeline, moving it from section to section of the main site (button called "newsbutton" should move the playhead to a News section this time, which is placed on frame 5). The code I have in the main timeline so far is this (on frame 1, _root timeline):


Code:
stop();
loadMovie("scoreboard.swf", scoreboard);
loadMovie("navbar.swf", navguide);

navguide.newsbutton.onPress = function(){
_root.gotoAndStop(5);
}

No blatant typos, as far as I can find, because the effects on the newsbutton (loaded from navbar.swf) work fine. But when I click the newsbutton, nothing happens. What am I missing?

Controlling Main Timeline From Loaded Movie
I have loaded an external movie onto the main movie in a movie clip called "mainholder" - In the main timeline on the main movie there is a "stop" command on frame 1. From the loaded movie, I want to control the main timeline and tell it to go to frame 2. Can someone tell me the actionscripting to do this, I have tried several commands and getting frustrated. ;-)

Thanks

Controlling Loaded Movies From Main Timeline
I'm using loadMovie to load SWF movies into levels and movie clip "markers".

How can I control the loaded movie from a button on the timeline?

For example, when my users click a main timeline button, I'd like the loaded movie to jump to a frame, fade out, and unload itself...

Thanks!

Loaded Clip Controlling Main Timeline...
I am having a strange little glitch which I can't seem to makse sense of:

I have a main movie timeline which loads in an external clip of a map on frame 10. When you click on a particular area of the map, this external clip sends the main timeline to another frame which loads another clip (using _level0.gotoAndPlay(75)

...at least this is how it works when testing from Flash. However, as soon as I run the movies in my browser (from Safari or Firefox), it stops working. It will not send the main timeline to another frame. I've trid using _root as well as _level0, but no luck.

Any ideas?

Thanks!

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 Navigation Of A Movie Clip Inside A Loaded Swf From Main Timeline
Hi,
I am using the two lines of code below in my main movie to laod another swf into level 50 of the main movie. I then want to control an instance of a movie clip inside the loaded swf called background but the second line (goto) does not work.


Code:
loadMovieNum ("desktops/"+backgroundimage, "50");
_level50.background.gotoAndStop(2);
The first line definately works fine.
Does this mean the hierarchy is such that I should be saying _level50.loadedswf_name.background.gotoAndStop(2)
In which case is there a way of giving the loaded swf an instance name when I load it. Or am I completely wrong?
Thanks again
Robin

Calling A Function In Main Class From A Loaded Swfs Document Class
Hi
I have a main.swf that loads page.swf. They each have a document class called "Main" and "Page".

How can I call a function in Main from Page?

In AS2 this would be somthing like _parent.myFunction();


Cheers

Controlling Externally Loaded Swf Files From "main.swf"
I've looked all over to get the info . . . can't find it anywhere.

I have main.swf which loads 4 other swfs inside of it such as navigation.swf, audioplayer.swf, and purposes.swf.

I want to be able to code from one button in the navigation.swf to move in the timeline of purposes.swf. HOW DO I DO THIS?

I have tried the _root.purposes.swf (but how can i get specific within the external swf file to specify the frame location [ex. gotoAndPlay (4)].

Does this make sense? It may make more sense if you go to the website.

http://www.fusionokc.com

The top buttons and content are "navigation.swf"
The bottom three buttons and content are "purposes.swf"
And "main.swf" is what loads both of them.
I want to be able to close the navigation.swf content when you push the bottom three "purpose" buttons and vice versa - when pushing top navigation, it moves the timeline to close purposes.swf

HELP!?!?!?!

Loaded Movie Controlling Main Movie?
Hey, I was hoping you guys could help me out here. I have a movie that loads another movie into it in _level3. In the movie that loads, theres a button that supposed to make the main movie goto Scene 1. I can't get it to work. I tried this and its not working...

Code:
on (release) {
_level0.gotoAndPlay("Scene 1");
}


I've also tried...

Code:
on (release) {
_root.gotoAndPlay("Scene 1");
}


It doesnt work though... What am I doing wrong?
Thanks...

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?

How To Make Sure Randomly Loaded Externals Swfs Are Fully Loaded [F8]
I am randomly loading external swfs into my main movie. I've got the random part working. However, I don't know how to make sure the random swf is fully loaded before jumping to a specific frame in my main movie.

I have a preloader inside each external swf, but I don't know how to make my main movie understand that the random swf is completely loaded before the main timeline should gotoandPlay("start").

What I Have So Far:

I have a blank MC (named "location") on the main stage, which I am using to hold the random swfs. On the first frame inside this MC, I have the following code:

choice = Math.round(Math.random()*2);
switch (choice) {
case 0 :
location.loadMovie("image0.swf");
break;
case 1 :
location.loadMovie("image1.swf");
break;
case 2 :
location.loadMovie("image2.swf");
break;

}

Loading the random swfs is working perfectly. But after the external swf is fully loaded, I want to move onto a frame labeled "start" on the main stage. I just don't know how to make sure the random swfs are completely loaded before I say gotoandPlay("start").

I've tried piecing together bits from so many tutorials, and I just don't know what I need to do to make it work with my current code.

Thanks so much!

Controlling Swf's From Main Swf
Hi everyone,

Can anyone help me out? I have a main swf file with three buttons. When click on button1, it preloads content1.swf. However, in content1 there is a animation that starts at frame1 and stops at frame 5.

From frame 6 to frame 10 it plays a it's closing sequence and stops at frame 10. Now is there a way that I can control this with a button from the MAIN.swf?

I want content1.swf to play it's closing sequence from button1 that is in MAIN.swf.

The code that I have now is out of wack:
----------

OnRelease
if (_root.nextMovie = content1._visible) {
flash.content1.gotoAndPlay(32);
}

---------

This is meant to show if content1.swf is active or visible, then goto frame32 (which is closing sequence) in content1.swf and play.

Can anyone help me with this?

Thanks for your time!

- Mister Minion

Controlling Main Swf Through Sub Swf
i need to play label on main SWF from sub swf
i did the point
but the out animation fro the sub swf is still there

please see the attachment

Thanks

Controlling Main Swf Through Sub Swf
i have main fla its name "sections.swf"
it loads sub swf files "sec1.swf" that has animation that open window movie clip with instance name "cont" and a close btn inside "cont" with instance name "close"

i want to play a specific frame on "mainSection.swf" when i click the "close" button

my code:

ActionScript Code:
close_btn.addEventListener(MouseEvent.CLICK, closeBox, false, 0, true);function closeBox(evt:MouseEvent):void {        // This tell the window to play its timeline    cont.play();        // This tell the "mainSection.swf" play its timeline, lets say label "sec1"    MovieClip(parent).play("sec1");}


Thanks

Loading Other Swfs From Loaded Swfs
Flash - 8 : Above is an example of what I would like to do/have done. I've gotten as far as loading the "loaded.swf" into the "start.swf" but my problem is I'd love to use that little loading action I made earlier without copying and pasting into the new movie the same actions for a different link. So, how do I load "loaded2.swf" into "loaded.swf" via the link in "loaded.swf"?

If you need anything just ask, also, any help is useful.

Thanks

Incomporating All Swfs Into A Main Swf?
i have my main page and all my flash movies that run off that page in a folder.. how do i make a swf file with everything in it to publish online?

Comunication Between Swfs In Main Swf
Would love to know how people would handle the following situation:

I have a flash site that loads all its content in the form of swfs into two panels.
For example. A menu button is clicked and a swf containing a list of galleries is loaded into the left panel, and a gallery viewer is loaded into the right panel.

When a gallery is chosen in the left panel, I need it to load into the right panel.

My problem is coming up with a clean way of the left panel communicating with the right panel. The listbox class in the left panel has no knowledge of the right panel, so I figure I have to broadcast an event when it loads in and have a manager class pick this up, register it and then listen for other events such as the selection of a new gallery.

The problem is that the path of communication is really messy. Each swf loaded in has to have a var of the same name containing the rellevent class (eg the listbox) and each class must broadcast an identical event.

Trying To Load Different SWFs Into Main SWF.
Was wondering if this is possible.

I've embedded a SWF file in a HTML file. When this SWF file is loaded, clicking on one of the buttons will load another SWF file into the first SWF file's movie clip container.

With the second SWF file running and the first (still running in the background), the user can click a button in the second SWF file and this will load another SWF file into the second's movie clip container.

The problem is, I can't get the third SWF to load. My intention is to create a website fully in Flash. To create multiple SWF files instead of one BIG SWF file.

Summary:
HTML contains SWF1(splash page)
SWF1 runs and calls SWF2(menu)
SWF2 runs and calls SWF3(menu item)
SWF2 runs and calls SWF4(menu item) and ends SWF3(menu item)
etc...

By the way, I've got all the files in the same directory.

Load SWFs Into Main SWF
Hi, first off all, take my apologies if this question has been asked.

So, I got a problem. That's why I post this stupid topic

I have 3 SWFs and I need to load one as the menu, second one as the logo and third one is main content. Each has it's own preloader and everything to be functioning alone. But how to load them and watch them all as one SWF? What to put into main SWF file?

SWFs Controlling Other SWFs?
I am working on a pretty simple menu and have come across a layout issue. As is, I have the buttons display an icon in a "fire circle" at the top of the menu bar when rolled over. It would be great though if I could have 2 SWFs: One which contained all the buttons and another with that "fire circle" (see link). Buttons.swf would of course have to tell FireCircle.swf to "on rollover goto frame x in scene x". Is this possible? So I guess my question is can you have one swf file control another?

Here is an example of the menu bar, as one swf, if you need to visualize it: http://www.blownheadlight.com/menu.swf

Thanks.

Controlling Swfs With Other Swfs
I am trying to make one main SWF movie that calls on other individual SWF movies (one being a "menu" movie). The catch is that I want the main movie to tell the menu movie where it is and have the menu movie button that corresponds to that section of the main movie to show the button in an "over" state.

Urgent Loaded Movie Controlling Other Loaded Movi
I need this one done today!


I have two holder movie clips in my main .swf. One is selectloader, the other is normloader.

So selectloader.loadMov..... that works

In the select I load a selection with three boxes, the user chooses one.

When the user clicks one of the boxes I do
_root.normloader.loadMovie...
and it doesn't work!

So I created a new frame on the holder .swf for each of the three buttons so all the selectino has to to is go to another frame.
That works, but I also want each of the boxes to direct to a certain frame in normloader

so the problem comes back again

I can't get one loaded movie to control another loaded movie

I'm assuming it has to do with levels, and I need to do more then just _root.normloader.gotoAndPlay(3);

what do I have to do?

Controlling SWFs
My Question:

I have a SWF file (called: home.swf) which contains 3 buttons (button 1, button 2, & button 3).

When you click on button 1, I want home.swf to goto frame 15 and stop. At the same time when clicking on button 1, I want a new SWF (portfolio.swf) to load on top of home.swf.

The above is pretty simple and I have no problem doing that, but here comes the problem..

When you push a button (lets call it exit) in portfolio.swf, I want it (portfolio.swf) to send a message which tells home.swf to go and play frame 5 (remember it was parked at frame 15),(and then portfolio.swf will unload it self).

I am not (yet) very good at variables and how to send and recieve these between SWFs, so please be specific.

Thank you, and I really appreciate the help..

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