FLASH—communication between seperate swf's
- Started
- Last post
- 5 Responses
- steadyvibe
Hey, i was wondering if it is possible to communicate from one swf to another that are loaded into the same root level through different empty movie clips placed on the stage?
Let me explain better...
I have an index flash file and have placed 4 movie clips on the stage that are empty. I used loadMovie to load each seperate swf into one of the movie clips on the stage. (the 4 seperate swf's are just my navigation, main content, bottom content, and logo box). In my actions on the index file i am trying to path to a movie clip that is inside the navigation swf, but i cant seem to get past the movie clip that i have loaded the navigation into... Does that make sence?
Is it possible to do this? Or is there a better way. The whole point of my pathing is so i can have my nav communicate with the main content swf with each button click.
Thanks!
- Mimio0
Just target the levels the swf's are loaded into.
- steadyvibe0
They arent loaded into levels. They are loaded into movie clips on the stage.
- tactikal20
give each one of those movie clips an instance name and then you will be ablt to communicate directly with the content that is loaded in.
- steadyvibe0
Don't hate me but how do i do that again?
- steadyvibe0
Here is my code. they all have instance names!
//Load IBC logo
this.ibcstub_mc.loadMovie("ibc.s...
this.ibcstub_mc._x = 25;
this.ibcstub_mc._y = 15;//Load Navigation
this.navstub_mc.loadMovie("navig...
this.navstub_mc._x = 25;
this.navstub_mc._y = 137;//Load Main Window
this.mainstub_mc.loadMovie("main...
this.mainstub_mc._x = 261;
this.mainstub_mc._y = 28;//Load Main Bottom Window
this.bottomstub_mc.loadMovie("bo...
this.bottomstub_mc._x = 261;
this.bottomstub_mc._y = 408;trace(this.navstub_mc.menu_mc.);