Communicating Between Separate Flash Movies
hey everyone! i have a html page which has two completely separate flash movies embedded in it and i need them to talk to each other. is there any relatively easy way to target one from the other using actionscript, or is it a matter of javascript functions??
taa muchly jodie.
FlashKit > Flash Help > Flash ActionScript
Posted on: 10-16-2001, 03:51 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Two Separate Swf Communicating?
Errr... I don't really know if this was discussed in the forum, because I didn't find anything related... So sorry if this was solved already.
I have a main swf movie and on a button click I make a new swf load in level one. This is easy.
What I wanted to know is how to pass some data to the loaded swf, like for example colour=red and size=10.
I looked in the tutorials here and didn't found anything related to that...
Can anyone help me?
Separate Swf Files Communicating?
Hi all,
All thoughts are greatly appreciated.
I got two separate swf movies. How to trigger an event to take place in separate swf movie?
To be more clear, i'd like to make it by clicking a link in MOVIE A to trigger an event in MOVIE B.
Is this possible?
I know a little about controlling a flash with JS, but absolutely no idea on how to connect two flash movies...
Thanks all for help!
Peace
nervo
Communicating Between 2MCs In Separate Popups?
hi
basically, just to make things hard for myself i want to have my menu in one popup and the main file in another. i thought it would be simple for me to click on a menu option in the flash movie in the 1st popup and this could control the flash movie in the 2nd popup, e.g. load other swfs, goto other frames etc.
now that i've looked into it, it doesnt seem that easy, am i missing something. its simple enough to do in html.
my only other option appears at this stage seems to be to have a html menu that loads up differrent html pages in the 2nd popup which each contain different swfs - not quite what i was after.
am i missing something or is this actually quite a lot more complex that i thought?
thanks very much
toby
Communicating Between Flash Movies
I'm new to flash.
What i'm trying to do is to get two flash movies on a page to communicate between each other.
Basically what i want is a button to be clicked in one movie that changes the frame in the other movie??? is this possible???
Communicating Between Flash Movies
Hello everybody,
I'm working on a project that requires communication between two distinct movies in a browser window. More specifically, I need [Movie1.swf]'s button to tell [Movie2.swf] to go to a certain frame. Now I've got the basics of fscommand down, and I could maybe do this using variables only (which I know how to do); but is there any simple function I'm overlooking here?
Thanks for your help,
_sub.
Communicating Between Different Flash Movies
If you have a html table set up with a different flash movie in each part, can you put actions in one flash movie to control a different flash movie?
If so, what kind of path would you use?
thanks for the help
later
tony
Communicating Between Flash Movies
I have 2 flash movies on one html page. One is for navigation and one is a text box. I would like the nav movie to control the output of the text box by telling it what frame to goto when the user clicks a link. There seems to several possible ways to do this but I'm having problems getting the two movies to talk to each other. Can anyone help?
Thanks
Communicating Between 2 Flash Movies, Not Embedded.
Hello.
What I would like to do, is have a flash Navigation, send variables to another flash movie which is locating inside a different frame.
How would I accomplish this?
With my knowledge thus far, I have come to the conclusion that I could either:
a) Somehow communicate directly using _global variables.
or
b) Save to a text file, and then load the variables externally.
Now if I did B, how would I save to a text file and then retrieve them?
Or if I did A, how do I get it to do this?
Thanks,
-Kac
Communicating Between 2 Flash Movies On The Same Page
I am sorry if this is somewhere else on the forums, but the search function is not working for me at the moment and I need this code/explination fast.
I have 2 Flash Movies on the same html page in differnt tables and I need them to interact with each other. One is a preloader and I need it to get the info from the other movie and display it's loading progress. Any fast help with this would be greatly appreciated.
Any links to explinations to as how to communicat between 2 mmovies or anything would be great. Thanks.
-Ryan
How To Use Two Separate Flash Movies As One?
I want to know how to use two separate flash movies as one. For example:
I have a menu movie(1) stored as a single flash file and display movie(2) also stored as a single flash file. I'm trying to do something like frames in regular html page. So when I click on a link in movie(1) I want to display certain information in movie(2)
2 Individual Flash Movies Communicating With Each Other In A Web Page?
I have to design a page that will consist of 2 different swf's. The header and content. The head has the navigation and I wanted to know is there any scripting format that would allow me to control the timeline in the content move from the header movie?
Example: When someone click on contact in the header, I want the content movie to gotoAndStop(5);
Is this possible? If so can you provide a quick example script for me?
Once again thanks for your replies in advanced
JF
Variables Between Two Separate Flash Movies?
I have a problem with trying to have a global variable across two separate animations (two different menus on an interface)
I was wondering if it were possible to do this, because I'm setting up CSS on a webpage using a Flash button. (to get the flash background color to change with the buttons, i cheated, and made an MC that has different colored backgrounds. When one of the 3 buttons is clicked, the button changes the style and background color. Here are the actions attached to the buttons.
on (release) {
getURL("javascript: setActiveStyleSheet('blue');")
_root.back.gotoAndStop("blue");
}
It currently works fine, but I need to be able to change the color of the background on a different flash menu on the same page.
}
Loading Flash Movies From Separate Folders
Good morning/afternoon/evening, here is my latest problem:
Normally I have kept my swfs and html's in one folder. But with my latest project, I have the swfs in separate folders.
How does one go about accessing one swf from another? I have tried stuff like:
loadMovie("flash/target_base.swf", 1)
loadMovie("./flash/target_base.swf", 1)
loadMovie("../flash/target_base.swf", 1)
I even tried a real complex one like:
moviePath = _root._url.substring(0, _root._url.lastIndexOf("/"))+"/";
loadMovie(moviePath+"target_base.swf", 1);
Alas, nothing. I am sure it is just something stupid (as it always is with me) but any light on this situation would be much appreciated!
Control 2 Separate Flash Movies In 2 Frames?
Hi guys, I have a set up.
Frames and 2 separate flash movies.
Can I control one flash movie with the other?
What I want to do is basically when loading one movie just hide an aspect of the other movie. I hope this makes sense. Thanks in advance! This forum always provides great help!
Movies Not Communicating Or Something....
Ok, I really don't know what's wrong here. When I preview it in FlashMX and on my HDD it works fine. When I view on host, one of the loadedmovies doesn't get 2 thigns thru to the main one.
here's link to see ( the compass pointer should move and when you click HOME after clicking link, the links SHOULD re-appear but they don't)
here's the .fla's. sbc.fla has the compass and sidelinks on it and loads other movies into it. the other file that may be in question is header.fla.
Oh yeh, here's it on temp host so ya can see problem.
http://webpages.charter.net/uber/sbc/
http://webpages.charter.net/uber/sbc/sbc.fla
http://webpages.charter.net/uber/sbc/header.fla
won't be home all day saturday, so ya know im not being ungrateful n00b , thanks if anyone can remedy this.
Communicating Between Movies?
Hey dudes and dudettes,
I am trying to make a picture load into it's own window but not as a url rather a .swf on it's own when a picture button is released on the main movie.
Anyone know of any tutes that can point me in the right direction?
Cheers
Dapadster
Communicating Between Movies?
Hi, I am wanting to communicate between a movie in my index.php and a movie in my header.php. Is this possible as they are embedded in seperate pages?
Communicating Between Movies
I found this great tutorial and have a question.
I've tried, but i think i'm missing something. How can I load MovieB into MovieA and the communication still work?
in the actions of MovieA, I have:
code: this.onLoad = function(){
loadMovieNum("movieB.swf", 1);
}
It loads the movie in properly, but there is no communication when I roll over each button.
Thanks for any assistance
Communicating Two Movies Through LAN
hi, i have a question
i want to send a message from a flash movie in computer A to another flash movie in computer B, what should i do to make this thing work??
thanks
Communicating Between Movies
I found this great tutorial here and have a question.
I've tried, but i think i'm missing something. How can I load MovieB into MovieA and the communication still work?
in the actions of MovieA, I have:
ActionScript Code:
this.onLoad = function(){
loadMovieNum("movieB.swf", 1);
}
It loads the movie in properly, but there is no communication when I roll over each button.
Thanks for any assistance
Communicating Between .swf Movies
I am loading external .swf files into my main .swf with buttons. No problem.
But what Im trying to do next is when 1 external .swf ends it loads the next external .swf
Got any suggestions???
Thanks,
Eric
Communicating With Movies
A problem that I'm having is that any movie I load into my main swf (regardless if I load it into an empty MC or just a higher level) my mouse still recognizes buttons that are underneath the loaded swf. This can be confusing to the viewer as the pointer turns to essentially an invisible button because you can't see the underlying button. Is there anyway to make the Flash player not recognize buttons underneath loaded SWF's or do I have to turn to invisible upon load?
Also, I'm having trouble getting the loaded swf to communicate with the main movie that loaded it. I think I need to use the parent action but I'm not sure how. I'm trying to use code that is created and contained in the movie that it loaded, is this correct?
Thanks to anyone that helps me in these Flash perils.....
-Brock
Communicating Between Movies
Is there anyway that I can communicate between 2 movies by variables. Such as, let's say I have a movie called movie1.swf and in it is a variable called "volume". I load movie1.swf into movie2.swf, can I control the variable "volume" from a button or actionscript in movie2.swf?
Communicating Between Two Movies
I know that I am having a targeting issue, but I can't seem to resolve the communication between the two movie clips. When I publish two seperate movies one movie had an onRelease event handler that triggers the other to gotoAndStop("dev").
The problem is when I load these two movies into another movie which is my main website. The onRelease event handler will call to the transitions movie clip to do an alpha fade, but it wont communicate with the movie clip with the gotoAndStop("dev") loaded into it. Here is an illustration. Let me know if I need to describe the situation mor clearly.
Seperate Movies Communicating
I would like to make to movies talk to each other: I want "movie A" to tell "Movie B" to go to a particualr frame. These movies are seperate movies on a page, in different cells.
I tried a javascript solution, and it didn't work in I.E. and it crashed Netscape.
Anyone know how to do this and for the largest possible audience. (And easy for me!)
Thanks for any help.
oohah
Communicating Between 2 Loaded Movies.
ok so i've got my main swf, into which i load most of the content via loadmov.
but in my main movie i have 2 sections. a text section, and a photo section. the text and photo sections are both in seperate swfs and load in on a button press.
in the text swf there is are some buttons which swaps between different areas of text.
however i realised i would also like the photos to change corresponding to the text, but they are in a seperate external swf.
so i'm unsure how i would find the path of the other swfs from within an external swf.
or should i include the code for the buttons in the Main swf ?
Communicating Between 3 Movies On 3 Computers
im doing a bit of work for a client that involves creating content for 3 computers that would project onto 3 projector screens. what i need to know is how do i communicate between my 3 flash movies that will be running on 3 different computers? i don't need to do anything majorly complex, just controlling the play, stop, attachMovie, and maybe sending over a few variables to control events. im assuming that the 3 computers need to be connected via a lan, but after that im lost.
on a connected note, is there any way to set up that environment on my own computer for testing? ie: run 3 movies and have them communicate with each other on my computer without having to go in and out to the client to test.
im using mx2004 pro.
[F8] Random Movies Communicating Together?
Hello all,
Is it possible to achieve this:
Have 2 separate .swf embedded in an HTML file, which will be loading the same random image?
Or else, is there a way to go around this and have the images load in a determinate order?
Any tips would really help...
Thanks!!
Communicating Between Loaded Movies
I'd appreciate anyones help...
I've got a main theme to the website I'm developing, I've loaded another movie into the website to save file size etc. If I want to manipulate the main movie from that imported swf how would I achieve this? or vice versa i.e. if I wanted to control an object within the imported swf via the movie that loaded the swf?
I hope I've made myself clear, thank for any help... Rick.
Seperate Movies Communicating?
Hey everyone, I'm new to these forums.
I'm a web designer for a nearby company from where I live, and I'm trying to expand my skills onto flash, so I've bought a book for Adobe Flash CS3 and read that through, now I'm attempting to create my own website.
My problem is, I have a main movie (holder.swf) which loads 2 movies at one time. The first is menu.swf, which doesn't change at all, it just contains my buttons.
My issue is now I need to find a way for my menu.swf to tell a container (empty movie clip) in my holder.swf which page swf to load.
All of my pages will be seperate swf files, which will hopefully have onload and onunload animations.
I've attatched a diagram to better explain what I need.
Thanks
- Stephen
Edit: I've figured out to use local connections to pass data from both scripts, and hook that up to a load movie
Communicating Between 2 Diffrent Movies
hello again I am macking a webpage with two diffrent movies and i was wondering how to send message from one moveie to another. Is there a tutorial or someting, please let me know as soon as possible.
Three Separate Movies
I have created a website consisting of 3 separate flash movies. I have buttons on 2 of the movies that I need to affect the main movie. Is it possible to create an actionscript that can effect an alternative flash file?
Thanks in anticipation
Communicating With 'parent' Movies Using Actionscript - How?
It's easy to send instructions/vars/whatever 'upwards' to a swf that's loaded onto the movie your working on, but how do you send instructions 'downwards' to the original swf, or the swf that loaded the one you're working on?
When I select target, naturally, the lower, 'parent' swf doesn't appear on the target list.
Can't find this in tutorials / elsewhere on the site.
All help much obliged.
W/pic And Example...communicating Between 2 Movies And Loading New Movie On Top?
ok, ive attached a pic that i think explains what i want to do, ive been able to find tutorials on parts but nothing thats exactly right, ok, into my main movie i want to load one swf with the navigation into one empty movie clip, in another empty movie clip load the different "pages", how do i talk between the 2 swf files loaded into my main movie, in other words, how do i make the "about" button load the "about" page, and when the different swf files load for each "page" i want each one to load on top of the current one, not to replace it, i believe the VW link below actually does both of these things (go to the gallery) look at my attached pic and see if it makes sense, i will be grateful for any help someone could provide
thanks for looking,
chris
see pic description at http://www.chriscurl.com/flashmockup1.gif
example: http://www.vw.com/touareg/mini/flash.htm
Huge Problem Communicating Between 3 Movies
Hi. So I'm having a ton of problems with a setup that I am trying to use. I've uploaded the files to:
TheAcropolis.net/Header.fla
TheAcropolis.net/Menu.fla
TheAcropolis.net/BodyMain.fla
The setup that I have used is first as an excercise since I'm new to Actionscript and haven't programmed since the fourth grade, and second as a way to save time uploading and making large changes later.
The header goes up top, with the menu bottom left and body bottom right. The header waits for itself to be done loading, and for a signal from the menu and body that they are done loading. It then does this logo thing, and then sends a signal to the menu and body to start when it starts.
Should I copy the actionscript here?
Help: 2 Separate Movies Communicate
I did this but i forgot!
I did it using flash remoting im pretty sure.
All i want to do is have 2 flash movies totaly separate, and have one tell the other one to do a function when a btn is released.
Its soo simple i forgot it! please help.
Two Separate Movies Interacting?
Hi all
Does Flash MX have any capability to interact or control other swf files on the same page, but which are separate objects and not linked to the movie? So if I had two separate Flash movies on my page and wanted one to acknowledged and send a command to the other, is this possible?
I've searched Flash's help files but didn't turn up anything.
Cheers.
Movies On Separate Layers
are there issues with putting multiple movies on the same layer in MX? i have done that and it seems to be fine but i recall some old issue about that.
How Do I Load 2 Separate Movies?
I'm not sure if this can be done, but i want to be able to make 2 separate movies appear using the change alpha to 100.
Using 2 buttons, one for each movie appearing.
My query is how can i go to a specified frame after both the buttons pushed and only after they are both pushed.
Any help more than appreciated
MB
Loading / Unloading Separate Movies
Hi,
Is there any way in which an action in one .swf file can be used to replace another .swf on the same html page?
I have one .swf in one table which is a series of buttons, and another in a separate table which contains some images. I have a third movie of those images being morphed.
When a user rolls over one of the buttons, I'd like the morph movie to replace the image movie, but I can't find a way to do it.
I know you can replace clips inside the same movie, but is there anyway to replace a separate, independent movie?
Thanks!
Timing 2 Separate Movies In Html
Hi All
I have 2 separate movies on an html page which for the dial-up users I'd like to have them load in sequence instead of loading at the same time.
Is there anyway to have one movie wait to start loading until after the first movie is finished loading?
If not then I am going to have to make them both and every cell inbetween them into a single large movie.
Thanks in advance for any advice.
Splitting Huge SWF Into Separate Movies
Hi, I posted once in this forum a couple weeks ago regarding a slideshow that I am creating in flash mx 2004. I've encountered a new problem with my file size.
The slideshow contains 100 photos, each within their own movie clip. The movie is split into 5 scenes, containing 20 photos each (there is also an intro scene, for a total of 6 scenes). As you can imagine, this makes for quite a large swf file, which does not download quickly.
It seems to me the best way to make it more usable on internet browsers is to make each scene into its own swf file, then re-structure the original flash movie to reference each of those individual swf files using the loadMovie function.
Honestly, I don't have the first clue how to do this. I read a little bit about levels, and it was pretty confusing. How do I get the imported swf's to flow seemlessly into one another? How do I structure my navigation so that I can navigate within the loaded swf's AND simultaneously within the main timeline?
Any help or suggestions would be greatly appreciated. Thanks.
Two Separate Loaded Movies Interacting?
I have three movies. One base, and two which load into separate parts of the base. can i get one of the movies to give a command to the other loaded movie? How?
Two Separate Loaded Movies Interacting?
I have three movies. One base, and two which load into separate parts of the base. can i get one of the movies to give a command to the other loaded movie? How?
Loading Movies At Run Time On Separate Layers
I was wondering if any one knows if it is better to load a complex animation all at once in one movie, or to load lots of separate movies at runtime in to one movie on different layers.
The reason i ask is i am wondering if loading them at run time is more processor intensive, and would cause slow down. A collegue of mine has created a movie that loads all the movies at run time and we are encountering slow down, after removing things such as gradients and excessive animation frames etc, slow down still occurs, could this be the reason why?
Code For Loading Movies In Separate Windows
hi, I need some help here.
I need the action script for a button that, when released, loads another movie in a specific frame. I want to do this because since Im splitting my movie in two, I want a button in the second part that opens the first one in a very specific frame (like a rewind function)
thanks
Preloader For Separate External .swf Movies - Question
Hi, I'm a newbie to this forum (and to any forum), but I'm unable to resolve this preloader question.
I have a flash website for which I need to create a preloader. Each page on the website is represented with a separate, external .swf movie (about 6 in total for "home", "about us", "contact us", etc.). Without a preloader, the buttons so far function (using loadMovie and target as _root), but each page that renders takes a little time and isn't seamless. Lots of blank pauses also as the .swf movies (pages) are rendered.
I simply need a preloader to preload all 6 external .swf movies/pages before users can enter the website.
I've been working on this for a month now. I've checked out books and online sites. I've mostly seen preloaders used in Scene 1, followed by the main movie in Scene 2. Or, I've seen the loading of external .swf's into different levels onto one main movie, so the animations play simultaneously.
There's got to be a way to do this, because I've seen preloaders on other flash sites. What code are they using?
Many, many thanks for your feedback!
Mouse Release Events In Separate Movies Interfere With Each Other
Hello everyone,
I am having a problem with a flash movie:
My movie has a series of movieClips inside of a parent movieClip. onRelease actions are associated with each of the child clips, but none are specified for the parent object (which is an empty movieClip).
The problem is, when other Flash movies are put onto the same HTML page, it sometimes takes two mouse clicks to make a selection -- it's as if my flash movie needs to be focused before the child clips can recieve the onRelease message.
Is there a bug in the Mouse object which would cause multiple flash movies in one html page to interfere with eachother in this manner?
best,
Gregory
gregory@newcloud.com
www.newcloud.com
|