Communication Between Flash Movies Across Html Frames
Hi all, I am having a problem getting Flash to consistently communicate across html frames between movies. I have 2 html frames that I am dealing with(cstLeft.htm and cstTop.htm) that need to have their flash movies communicate with each other . Each of these html frames has a flash movie embedded inside of them (studentcenterLeft.swf and studentcenterTop.swf respectively). What I want to happen is for top to send a function call and parameters to left, and then have left execute that function.
I have tried using ExternalInterface with no success (by placing function calls within Javascript and calling those), and have also tried using localConnection with very inconsistent results.
With localConnection, I had gotten it to work once, however I cannot pin down why it stopped. Basically, I had this code for localConnection: in the sending swf (studentcenterTop.swf)
Code: var sending_lc:LocalConnection = new LocalConnection(); sending_lc.send("lcOverFrames", "changeDisplay"); in the receiving swf (studentcenterLeft.swf) I have a dynamic textfield (with fonts embedded) on the stage with the name display_txt and the following code:
Code: var receiving_lc:LocalConnection = new LocalConnection(); receiving_lc.changeDisplay = function() { display_txt.text = "changed"; }; receiving_lc.connect("lcOverFrames"); This worked a couple of times, but recently stopped, plus when the page gets refreshed (this is part of an LMS UI that controls content in the main frame) it will no longer work, and I have to clear the cache to 'reset' it.
I am not picky about how I communicate between the frames, I simply need a way to do so reliably, if this involves javascript, cool, if it involves only localConnection, cool, but I cannot get anything to work consistently, and my deadline is fast approaching. I have searched quite a bit around the web and these forums, but I can't seem to make any of the suggestions that I have seen work for me.
I appreciate any help.
Elf2112
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 12-08-2006, 04:45 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Communication Between Two Flash Movies On A Html Document.
Hello everyone!
My little question of the day:
I want to put two movies on a html document. In the first one I want to put a button that makes the second movie do something.
How can I do this?
I read a couple of things about the fs command and I believe this would be the way to go. But my problem is that I work on a mac and I read that it doesn´t work on this platform.
So... is there a solution? Because my web site is getting very "pretty" but I need this to work to finish it.
Thanks a lot for your help!
Agur.
Communication Between 2 Flash Movies On The Same HTML Page
Hi All,
I have 2 flash movies on the same HTML page, that are actually in different frames. I have a flash movie at the top of my page which is a navigation bar (navbar.swf) and I have a flash movie on the left of my page that displays sub menu's (subnav.swf).
Now, what I would like to do is when a user clicks on a link in the main nav bar (navbar.swf) it tells the other movie (subnav.swf) to goto and play xxx frame (this will more likely be a frame label).
Can this be done ??????? And can anyone help me with this ????
Thanks for your time
All the best
Anadi (London)
Communication Between Html Frames-old Newbie
I am trying to create a button action that will simply show a graphic (upon rollOver)in a separate html frame that has flash content as well. I've been searching all day and all I've been able to come find in different forums or tutorials is to use LocalConnection or getURL. Although I understand how in different instances from a layman's p.o.v., I don't know which is correct or where to start or if either will help solve my problem.
PLease Help! Thanks!
Flash Movies And Html Frames
Hy everybody,
i have i problem like this:
the scenary is an html page with both html text (big justified blocks of text are not good performed in flash) and flash contents, when i want to change pages (by clicking a menu button) i also launch some commands to change permanently the state of my master menu. That's clear.
My new page is now on (with or without htmlframes) and now i would like to control the navigtion - yes by the master menu (thats ok), but also by some added standalone buttons not in the master menu (like back and next links in a corner for example); well, if i press one standalone button i navigate correctly but the state of master menu movie doesn't change.
So, some questions about:
1) could i send a command out of my movie (not in a layer of the same movie)? and over differents htmlframes?
2) other ways using html layers or something else?
Thanks a lot.
Selecom
Communication Between Two SWF Movies In The Same Html Page
How can I make a communication between 2 SWF movies in the same html page? Lets say I have 2 SWFs in a html page. In SWF1 I have a button. When the user clicks on this button, some animation plays in SWF2 in the same page but in a different place.
Controling Movies Is Different .html Frames
I have a site that Im working on. The site has about 5 frames built into it. One is the main navigational frame with a flash nav-pad in it. When you click on a link the desired content popsup in the body frame. Now There is a subnavigator made in flash that is in the submenu frame. I want, when clicking on the nav-pad button, the submenu movie to go to and play a specific frame. Seems easy but isn't working. Any suggestions?
Controlling Movies Across HTML Frames?
I have been trying to figure this out for a while and would love some help.
I am designing a site that must incorporate a main HTML page - so that the flash is only being used as navigation. However, for my design to work, I have to create 3 frames - 2 with flash, and 1 with HTML. The problem is that I need the flash movie in Frame 1 to be able to communicate with the movie in Frame 2, and the movie in Frame 2 to be able to change the page in Frame 3. Changing the page I can do, but how do I get a movie in one HTML based frame to be able to control a movie in another frame?
Thanks
Vintage
Loading Movies Between HTML Frames
Hey, all!
I'm needing a little help with this. Like many people, I've got my HTML page split into a couple of HTML frames. One HTML frame has a flash navbar that will load a movie into an adjacent HTML frame. Easy enough, with the get URL and defining which HTML frame to load into in the window section. But I basically want each button on the navbar to load a different frame or scene in the same flash movie. What I'm trying to do is avoid too many HTML pages piling up in my browsers history when navigating across HTML frames.
I'm sure that the solution is going to be a loadVariables scenario, but I'm fairly new to the world of variables and could use some coaching.
By the way, this is all on Flash 5. (will be getting Flash 8, but not soon enough to solve this problem.)
Thanks,
Connor
Signaling Between Movies In Different Html Frames?
I'm stuck on a project and need some help... :
Originally we designed our site with multiple frames, chopped up with html, each housing different flash movies. Now this has come back to haunt us.
--What I need is to be able to transfer variable data from one movie to another residing in separate frames--
We have a navigation frame, running a flash movie, which needs to know what's happening in a main display frame, also running a flash movie.
Links in the nav frame move the user from section to section by loading different flash movies into the display frame. But within the flash movies playing in the display frame are links that also change user's current section...
Here is where we want to be able to signal the flash movie in the navigation frame so that the appropriate section button becomes highlighted to reflect the user's new location within the site.
If anyone has any idea how to accomplish this please let me know. Otherwise it looks like a lot of overhaul is in order.
cheers,
dzj @ the madlab-
Communication Between Flash Movies?
Hello,
I would like to have two separate Flash movies on my page but would like them to be able to interact.
For example I press a button on movie1 which causes movie2 to go to a specific frame or play a certain MC.
Can I make my separate .swf files communicate between each other?
thanks,
Goldpan
Communication Between 2 Flash Movies
First of all I want to say Hi to everyone. I’m not new to this site (thank Flash Kit, you have helped me a lot :)), but today I decided to register in the forum. The thing is that I’m trying to make two flash movies communicate with each other (at least so that one of the swf can talk to the other file (1.swf (select something) --> 2.swf (starts the selected frame))). Hope you understand what I’m trying to do (if not, tell me what, and I'll to make it more understanding) :). I can’t find a tutorial/guide on this so that why I have turned to the forum.
Thanks
Per
Communication Between Flash Movies
this is what I want to do: I have a two different swfs, main movie swf and button swf. each time a button in the button swf is pressed, it should control the main movie swf. does anyone know the location of a good tutorial for something like this? thanks
Communication Between Flash Movies
hi,
i have two flash movies on one html site, one is the top banner, the other is the menu at the bottom, in between these movies there's HTML. Now here's what i need: when i push a button in the menu at the bottom, i want something to happen in the top banner (i.e. a dynamic textfield, that changes in the name of the page when a button is clicked). Is this in anyway possible?
Communication Between Flash Movies
hi,
i have two flash movies on one html site, one is the top banner, the other is the menu at the bottom, in between these movies there's HTML. Now here's what i need: when i push a button in the menu at the bottom, i want something to happen in the top banner (i.e. a dynamic textfield, that changes in the name of the page when a button is clicked). Is this in anyway possible?
Communication Between Flash Movies
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?
Communication Between Flash Movies (Two Swf Files)
Friends, I want to make two swf files to be communicated. for example::
I've two files "a.swf" and "b.swf". In "a.swf" i have one varaiable named "myVal" and itz value is "true"... ie (myVal="true").. i want to pass this value from "a.swf" to "b.swf".... I've used LoadMoviennum , but it needs explorer... i want to do it with swf files alone.
Controlling Flash Movies From Within Other Flash Movies, Contained With Frames...
ok, the title was a bit of a mouthful but hey, i was wondering if anyone could shed some light on this problem :
i know how to control content being loaded into frames, from within a flash movie (using get url) but, i'm not sure how to go about calling various parts of a flash movie that is situated within a different frame with the html page, from the one it's being called from.
so, for example, say i have a set of buttons within one flash movie, that when clicked moves the timeline in the other flash movie (within a different frame) to frame 5 or whatever. see what i mean?
would it be something like this?
on (release) {
getURL("name of html page.html", "name of lable/ number of frame within timeline", "name of frame flash movie is contained within");
}
HTML To Flash Communication?
Hi everybody?
Any idea on how to make flash jump to an specific frame in a movie by pressing a HTML button?
Please answer ASAP !!!
Thank you very much !!
Best regards,
Strato
HTML To Flash Communication?
Hi !
Any idea on how to make a HTML button make flash jump to a specific frame by pressing on it?
Pls, write ASAP !!
Thank you very much!!
Best regards,
Strato
Flash Communication With Html?
I would like to pass variables between a flash movie and outside html pages. Here are a couple examples:
1) Read in values of an html table as variables in flash
2) Have a user enter an email address in flash and hit a button that sends the address to an html form field.
...stuff like that. Is it possible and, if so, where can I learn how. I don't even know where to start so any pointers would be greatly appreciated! Thanks a lot.
Html To Flash Communication
i'm building a site that utilizes a flash menu but the rest of the page will be straight html. i'm trying to find a way to have the flash menu highlight what section you're in but everytime it goes to a new page it re-loads the menu and it starts from the beginning. is there a simple way to pass a variable from the html to the flash player that would tell the movie to highlight the section of the site the user is currently in?
your help is much appreciated.
Flash HTML Communication
www.catherinebellonline.com has flash navigation and HTML content in an HTML page. How? I need some code help please!!!
Communication Between Flash And HTML
Hi,
I'm not sure if this is the right forum to ask this in, but I'll give it a try.
I want to add a preloader for a flash file in HTML. The most obvious way to do this would of course be to add this inside the flash file. However, this is not an option since there are already approx. 200 flash files we need a preloader for.
My next idea is to instead use a gif picture on the HTML page when the flash is loading and then hide it and show the flash file when its loaded. My question is, how can this be done?
Are there any events or properties on the flash file that indicates if the file is done loading? I've added the flash file to the html page like this:
<EMBED id="flashmovie" swLiveConnect="true" src="flashfile.swf" quality="high" bgcolor="#FFFFFF" WIDTH="520" HEIGHT="420" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
Thanks!
/Mats-Lennart
Edit: We're using Flash 5
Flash/HTML Communication
In the past we have used Flash with HTML frames to allow us to have a flash menu and load the html pages into the frame. This way, the only flash we have to create is the menu and all else is static HTML and some PHP. I know that frames are not the most popular and I was wondering if there is another way to do this. What I need is to use a flash menu, click one of the flash buttons and load an HTML page into static HTML. Is frames the only way to do this?
Thanks... Bubba
Flash And Html Communication
I have a site with 2 pages: "page1.html" and "page2.html".
"page1.html" has html content and a menu with 5 buttons.
"page2.html" has a swf file embedded which has 5 pages.
When the user clicks one of the 5 buttons in page1.html the browser has to go to page2.html and the flash there has to go the page corresponding to the selected button.
How can I tell flash which button the user pressed in page1.html ?
Thank you.
Communication Between Flash And HTML
Hi,
I'm not sure if this is the right forum to ask this in, but I'll give it a try.
I want to add a preloader for a flash file in HTML. The most obvious way to do this would of course be to add this inside the flash file. However, this is not an option since there are already approx. 200 flash files we need a preloader for.
My next idea is to instead use a gif picture on the HTML page when the flash is loading and then hide it and show the flash file when its loaded. My question is, how can this be done?
Are there any events or properties on the flash file that indicates if the file is done loading? I've added the flash file to the html page like this:
<EMBED id="flashmovie" swLiveConnect="true" src="flashfile.swf" quality="high" bgcolor="#FFFFFF" WIDTH="520" HEIGHT="420" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
Thanks!
/Mats-Lennart
Flash To HTML Communication
Hi everyone.
Project
I’m helping develop in Flash CS3 an online soft skills training that involves students viewing a short video than answering a multiple choice question. After viewing several videos and answering the related questions the student is given on overview of how they did in a test summary page.
Delivery
Plan is to have each video and questions in a single Flash file embedded in an html file. The end test summary page will be delivered in html.
Question
What I’d like to know is how can I get the flash video/question pages to communicate the test results to the end summary page.
I’m not much good at actionscripting, therefore any help would be much appreciated.
Also, is there anyway of converting a swf file back to a flash file, (fla)?
Thanks.
Michael
Flash And Html Communication?
Hey guys...I am trying to have my flash navigation recognize which html page it is on, and highlight the corresponding button. I think the code in the html will look like this
<param name="movie" value="header.swf?acbtn=advantaget">
where the active button is advantaget.
But I'm not sure about how to script the menu in flash. Any resources, examples, or insight would be greatly appreciated.
regards
Kevin
Flash And Html Communication
I have a site with 2 pages: "page1.html" and "page2.html".
"page1.html" has html content and a menu with 5 buttons.
"page2.html" has a swf file embedded which has 5 pages.
When the user clicks one of the 5 buttons in page1.html the browser has to go to page2.html and the flash there has to go the page corresponding to the selected button.
How can I tell flash which button the user pressed in page1.html ?
Thank you.
Communication Between Flash And A Html Page
The problem is the following:
I´ve got a html page that opens a Flash movie.Then, I want this Flash movie to change the content of the previous window using a button.
How can I do that using ActionScript?
Thanks in advance
External Flash To HTML Communication
Can anyone give me some direction on how I would integrate relavant link options communicated from flash eventually to a page object...I have no idea where to look or what this would officially be called. Can you give me a step in the right direction with a white paper or even what function/technology I should be looking at.
Basically, I would like to set Cue Points in a video that would pass a variable to AMPHP or whatever which would then provide a JS?XML?PHP object to the HTML/PHP page that the video player is on...this link or object would hopefully then display on the page, but be dynamic so if new subject matter were in the video it would provide a unique URL or image.
I am not interested in having this link, image, ad whatever in the flash swf...external communication is what I am hoping can be achieved...any tutorial that you can think of would be greatly appreciated!!!
Communication Betwen Flash And Html Document
I have two frames 1.screen and 2.menu.
menu has the flash menu which contains buttons for which i want to use certain java script from other frame screen.
so what does action look like if i want to activate java script function in another (screen) frame.
ie. i have zoom in and zoom out function in screen frame.
menu buttons must activate one of those functions in other frame.
thank you
Html(java) Communication With Flash Elements
I need to make a simple html button trigger an action in a flash movie on the same page. I pretty sure this would have to involve some java scripting, but anybody know how i would do this? The flash is on a layer over the html and I just need the button to make the flash movie trigger a goto action. Any help is greatly appreciated, thanx.
-Ryan
Newbie Pls Help Reg Flash Listbox-html Textbox Communication
Can any one give me some clues abt doing the following:
Flash Part:
========
I will put a flash listbox in my page
HTML Part:
==========
I will put a HTML textbox and submit button on my page.
When I enter a value in the HTML textbox and click on the submit button, the value should be added to the flash listbox..
Will this be possible?
Thanks for any clues.
Sud.
Communication Within Frames
I have 2 frames. One contains a html file, the other is a flash movie which plays music. Is there a way the frame with the HTML page can send a message to the flash movie in the other frame to tell it to change the music?
How To Control Frames From Different Movies? (FLASH MX)
I placed a movieclip in my ROOT called: TEST
In that movie clip I loaded another movieclip called: FORK
how can I tell a button in FORK to go to frame 10 in TEST???
I hope someone can help me out with this problem.... eeeeuhh challange :-)
BTW it's in FLASH MX
Controling Flash Movies In Different Frames
In a 7 frame site (3 which contain flash nav and the center frame for content)
left = nav
right = nav + displayed vars
banner = well a banner (lol)
All of the above are flash movies set in different frames.
My question is....Is it possible to have the left nav control the time lines of the right nav and the banner which are in different frames. I.e. go to different frame lables depending on what section of the site your in.
I know that just loading different HTML pages into the frames in question with different flash woudl be easier. But i wanted a more seamless look.
Any help would be appreciated. And if anyone knows a recource or tutorial like that would be wonderful
thanks in advance.
Controlling Flash Movies Between Frames, Know How?
I need to conect two flash movies, the footer movie tells the top movie
to action (load a movie in to _level1) the problem is the two movies are in diferent html pages (_top & _bottom).
I think the solution is to use Javascript to do this.
But some one knows the rigth way?
I need help, this is urgent!!!
Communication Between Mc's In Diferent Frames Of Main Timeline
hi there!
it's a really stupid question but i really don't know hot to make it work
in the main timeline i got two movie clips, one in frame 1 (i'll name it mcA) and the other in frame 2 (i'll name it mcB)
i got a button inside mcA, and if i clik that button i wanna go to the frame 2 of mcB
i'm playing with this AS
on(release) {
_root.gotoAndStop(2);
mcB.gotoAndStop(2);
}
but it doesn't work...
goes to the second frame and shows the first frame mcB, not the second
can someone help me?
thanx in advance
cheers!
Communication Between Movies
I got a movie that loads into an empty clip...
whats the best way to change a variable in in the loaded movie from another movie loaded in the same fashion or from the parent movie? (Anny way will do, but from another loaded movie would be best)
Communication Between Two Of The Same Movies
hey,
Im kinda new to flash and i need to send data between two of the same movie running on different computers, as it is a game sending moves between the two players. In it, I would know the ip of the two computers if that would help. I saw something about LocalConnection on the macromedia site but it didnt really help. So, if anyone can help me, it would be greatly appreciated.
Thanks,
Nic
Communication Between Two Swf Movies
Hello,
Can anybody help? I wonder if it is possible for two swf movies to communicate? On the same html page or in different frames?
I would like to have one flash menu in a side frame that could control an animation in a top frame.
Any ideas. Is this impossible?
Thanks
Communication Between Two Swf Movies
Hello,
Can anybody help? I wonder if it is possible for two swf movies to communicate? On the same html page or in different frames?
I would like to have one flash menu in a side frame that could control an animation in a top frame.
Any ideas. Is this impossible?
Thanks
Communication Between Two Movies...?
I have two separate movies, a navigation bar, and an info box. When I rollover a button on the navbar I want to go to a different scene in the info box. I can't for the life of me, figure out how to do this...
PLEASE HELP!?!
Movies Communication
Hi everyone.
I'm building a map movie that opens another movie using the loadMovieNum function
Code:
loadMovieNum("scatola.swf", 1);
The problem is that I'm not able to make the two movies comunicate by themself.
Can someone help with this?
Thanks to all
Raffaele Colleo
|