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)
FlashKit > Flash Help > Flash MX
Posted on: 08-20-2003, 10:12 AM
View Complete Forum Thread with Replies
Sponsored Links:
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.
View Replies !
View Related
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
View Replies !
View Related
Random FLASH Movies On 1 HTML Page?
Is it possible to have random Flash Movies being loaded on a webpage?
You can already do it for graphics (gif banner) but I do not know how to do this with a flash movie.
Example:
My frontpage has a FLASH movie, each time when a visitor loads my page a different movie should appear.
Anybody got a clue?
View Replies !
View Related
Synchronizing Start Of 2 Flash Movies In A HTML Page
Hi,
I have built an HTML document and inserted 2 seperate flashmovies. My question is, how can I synchronize the start of both movies so that they start at the same time when they are both done loading. They differ in filesize (20kb and 80kb), so right now one movie starts playing slightly earlier than the other. Not good.
I know it can be done with fscommand's and javascript, but unfortunately I don't know how. I'm not very good at scripting. Can someone help me? Or is there a standard script I can download somewhere?
Thx.
Rico
View Replies !
View Related
Swapping Seperate Flash Movies In One Sing Html Page
swap flash movies!
well, can anyone tell me a way to swap seperate flash movies in two different location in a single html file? like, i would like to swap a flash movie on the top of the html page and stay there when i mousover a button the left of the same html page. any help would be highly apperaciated
is it possible?????/
View Replies !
View Related
Preloading An Entire Html Page Composed Of Flash Movies In Tablesets
i am using flash MX and dreamweaver MX
i am having a problem with the webiste i am building...i have one html page consisting of several tables whcih hold their own unique flash movie...the problem is, is that when browsed, the page, naturally, finishes loading the smaller flash movies before the beefier ones and the page loads in chunks and looks sloppy...is there any way to say, have the <b>largest</b> flash movie sdripted to tell the smaller ones when to play; so for instance, aa method where the largest one loads and tells the other movies to wait until he's ready and then says go once they <b>all</b> have pre-loaded.
or is this something i can control through the html code (if so plz speak slowly i am a goof at html)
thx
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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?
View Replies !
View Related
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?
View Replies !
View Related
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.
View Replies !
View Related
Two Movies, One Html Page
Hi all,
I want to display 2 flash movies on one html file. One is a flash 5 movie and the other a flash 6. You can see both movies but the lower one (flash 6 player), a ticker, starts a the normal speed but speeds up over time. When the film plays on it's own html page, this problem doesn't occur. Please take a look here to see what I mean: http://www.hmr.rotterdam.nl/home.html
Is there something wrong with the html code?
Thanks very much in advance for any help, Danielle.
View Replies !
View Related
Linking 2 Movies On One HTML Page
Hi All
I have a HTML page which contains 2 flash movies.
What I need is to control one from the other, when I click on the second movie I need to stop the sound and jump to another frame in movie 1.
Does anybody know if this is possible?
Cheers
YOQONA
View Replies !
View Related
2 Movies, 1 Html Page, Communicate?
Question, can you in one html page have 2 separate embedded movies communicate with on another?
I don’t know where to start, or what to search for if it does. I have a list of links in one flash file and would like to make it load separate movies in the other flash file.
View Replies !
View Related
Linking Seperate Movies On One HTML Page I Just Can't Do It :)
Hi! I have a little problem that I'm sure someone can help me with. I'm building a flash site now for an architectural firm, and there are 3 seperate movies on one HTML page. No problem, but I need to be able to link the main movie to the side movies to display the appropriate movies/pics for the section entered.
I'm sure there are lots of people who have already answered this question here, but I can't seem to pick the right words to search for.
Anyway, take a look, hopefully it's pretty clear what I'm trying to do, and any help would be MEGA-appreciated.
http://anna.chimp.ca/kga/
View Replies !
View Related
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.
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
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!!!
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
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)
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
Communication Between Movies
Hi,
I'm trying to make my site so that when a button is pressed in one section, it tells a seperate movie within the frame which frame to go to.
The section with the buttons in is within a scroll pane component, and an external swf file. The movie I want to control is within the main library.
What actionscript will i need to use on the buttons in the external swf?
I hope that makes sense, sorry if I got any terminology wrong..Hope someone can help!
View Replies !
View Related
Communication Between Movies
Here's what I have:
- intro_begin.swf randomly selects a "section" and loads the swf file for that section.
- section.swf randomly selects a "slide" and loads the swf file
- slide.swf plays
- cycle repeats
Right now the "repeat" part of the process is based purely on the timeline of intro_begin.swf, (after X number of frames which *should* match the timelines of section.swf and slide.swf, then intro_begin selects a new section), but that means that it's possible for things to get out of alignment.
What I would like but haven't figured out how to do is to get slide.swf to call the random-section select function back in intro_begin.swf ... I'm fairly certain this is possible, I'm just not sure how to do it...
any help for this flash novice would be greatly appreciated. thanks.
View Replies !
View Related
Naming Of HTML Entry Page & Flash Intro Page?
Hey Everyone. What is the best way to name the entry non-Flash (HTML) page - the splash or index page, whatever it's called - that is the gateway to the final Flash site, which will open in a new window? When users type in the basic web URL - for example, http://www.mysite.com - I want them to come upon an entry page that states "Click here for Flash Player 6" and "Enter if you have Flash Player 6". When the user types in the basic URL should I have the entry page called http://www.mysite.com/index.htm?
One step further... How do I configure things so that when the user comes to the entry page, Flash 6 is automatically detected on both Mac & PC platforms? Detailed answers will be much appreciated, as well as links to tutorials.
peace out,
*< Scottie
View Replies !
View Related
Naming Of HTML Entry Page & Flash Main Page?
Hey Everyone. What is the best way to name the entry non-Flash (HTML) page - the splash or index page, whatever it's called - that is the gateway to the final Flash site, which will open in a new window? When users type in the basic web URL - for example, http://www.mysite.com - I want them to come upon an entry page that states "Click here for Flash Player 6" and "Enter if you have Flash Player 6". When the user types in the basic URL should I have the entry page called http://www.mysite.com/index.htm?
One step further... How do I configure things so that when the user comes to the entry page, Flash 6 is automatically detected. Detailed answers will be much appreciated, as well as links to tutorials.
peace out,
*< Scottie
View Replies !
View Related
Anyway To Have A Small Html Page Embedded Into A Larger Flash Page?
I've developed a website completely in Flash. Now, I have a space in this Flash page where I would like to have, upon a certain button click, load up an HTML page...within the Flash page itself. So, I have the layout, and all the links and all that in the Flash website. In the content area of that Flash site, I want an html page to appear after clicking a certain button, thus turning the Flash into somewhat of a border. Is there any simple way to do this?
Thanks a lot!
View Replies !
View Related
Loading Movies And Communication
i am trying to create a system where 3 buttons open external loaded movies and when button 1 is pressed, it opens movie 1
and when button 2 is pressed, movie 1 reverses its action and then unloads, and movie 2 loads. my problem is that i have
buttons 1 and 2 work fine with each other, but the third button isn't talking to the other 2 buttons correctly and they are all using the same script. i don't understand how this could go wrong.
script for button 1:
code:
on (release) {
loadMovieNum("movie1a.swf", 2);
if (_level3.line2_mc._currentframe == 5) {
tellTarget (_level3.line2_mc) {
gotoAndPlay(6);
loadMovieNum("movie1a.swf", 2);
}
if (_level4.movie3line_mc._currentframe == 5) {
tellTarget (_level4.movie3line_mc) {
gotoAndPlay(6);
loadMovieNum("movie1a.swf", 2);
}
}
}
}
the script for buttons 2 & 3 are the same but of course button 1 talks to 2&3,
and button 2 talks to 1 & 3 and button 3 talks to 1 & 2 (so the names change)
the movie is attached to this email.
thanks and please help.
jondj24
View Replies !
View Related
Communication Between Movies Within A Frameset
Hi everyone,
I need to create a volume control tool that will exist on a flash movie that works as a menu and it's on one side of the HTML frameset, and will control the volume of the movie playing on the other side of the frameset.
Both menu, and movie, of course, come with their own HTML page that hold them. Both HTMLs live on the frameset.
I don't know how is this possible. Should I use the Local Connection object? Or Javascript to Flash communication??
And regardless of which I'm using, what is the variable/function that should I be passing?
Thanx All for reading this message and sharing with me your happy thoughts around this issue
LoKuraFlash
View Replies !
View Related
|