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.
FlashKit > Flash Help > Flash Newbies
Posted on: 03-13-2003, 03:30 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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
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 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
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.
How To Target Other Swf Movies In The Same HTML Document?
Anyone know this?
I was wondering what the correct target path would be, if I would like to activate something in movie A, when clicking on a button in movie B within the same HTML document? Is there a simple way?
Also, I have seen how some pros make flash movies that actually have more than one swf movie, using a separate file for the main menu, but laying it over the background movie, with some transparent technique (the one described on FlashKit doesn't work for Netscape, however the movie I saw utilized a technique that did work on Netscape) Any tips?
Thanks Guys
Copperdesign
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.
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!!!
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.
HTML-document In Flash?
ActionScript Code:
ask = question();question = function () { if (possibleToDisplay.HTMLDocument.inFlash == true) { if (method != textBox.htmlText) { trace("Yipeee! How, then?"); mood = "Happy!"; } else if (method == textBox.htmlText) { trace("Why is it not possible? That sucks! Shame on you, Macromedia!"); mood = "Angry!"; } } return mood;};
(sorry for the formulation )
Edit: Yes, I was quite bored when I wrote this...
HTML In A Flash Document?
is it possible to use HTML in a FLA document? for example my whole website is flash but i want to add some html items like a counter and other stuff that are in HTML only. So is it possible to add them to my flash document? if so could someone explain or send me somewhere i would appreciate it. Thanks in advance
HTML-document In Flash?
ActionScript Code:
ask = question();question = function () { if (possibleToDisplay.HTMLDocument.inFlash == true) { if (method != textBox.htmlText) { trace("Yipeee! How, then?"); mood = "Happy!"; } else if (method == textBox.htmlText) { trace("Why is it not possible? That sucks! Shame on you, Macromedia!"); mood = "Angry!"; } } return mood;};
(sorry for the formulation )
Edit: Yes, I was quite bored when I wrote this...
Loading HTML Into A Flash Document... Please Help
thanks in advance for help.
heres my situation. i have a flash movie with a banner at the top, a navbar on the left side, and a blank "main" area with nothing in it. my question is, can i load an html file into that blank space? i cant use the loadMovie action to do it; it wont work. and i cant figure out if i can use the getURL action some way... can anyone tell me how?
Html Document Inside Flash
I think I already know the answer to this one, but I'll double check with all you superbrains!
Is there anyway of loading a html page inside a flash document? The same way iframe does in HTML??
Flash Pop Outs Over An HTML Document
I am currently working on a menu for my website. The menu is going to be done in flash but the rest of the site will be in html. When people roll over certain items on the menu, I want that item to expand over the html to show more options and then collapse on roll off. Can anyone tell me how to do this?
Thanks in advance
Kenny
How To Put Html Code Into A Flash Document?
i want to put in an Counter for my site .
I got the Html Code for a Flash counter.. But dont know how to put that in the Flash document. Can someone help me here.
Thank you in advance
God Bless
Ysman
Is It Possible To Have A Multilayered Html Flash Document?
Hi. i am creating a site, and was wondering if it is possible to have a multilayered html document using flash elements. so in the final html document you would have several swf's. i need it to be inside the html because i want the main swf to stay centered and i want the other swfs to align with the top and bottom corners, so when you drag the browser window larger and smaller the main swf is always in the middle, and the other swfs are round the corners of the browser.
cheers
Linking An Html Document To Flash MX On A CD
Here is the problem. I am creating a CD-ROM that is done in flash MX. Three of the buttons link to seperate html documents. The CD will contain all files and will be an auto run CD. This is the problem I have the html files in there own folders on the CD and have the script on the buttons in Flash as such
getURL "../renier1/launch.htm","_blank");
should it be...
getURL "../renier1/launch.htm","_self");
When I take it out of the folders and leave it on the root of the CD it functions fine but the html document is an audio powerpoint presentation so as you can imagine there are alot of files that would need to be brought out and onto the surface of the CD. Plus the people who created the html files labeled the three seperate html documents by the same name. If I can add a character to each and put all the documents on the root I think that will work but I wanted to stay away from that.
Hope that all makes sense.
Thanks
cs
Loading A Html Document Into Flash
Hello again it you favorate victim. I have been given a project and it involves multiple people.
The breakdown
I am making a website using flash and my boss has another company who's manageing a job list. pretty soon she will have a link to that database and that link will display the web interface for the job listing, kinda like using a iframe on an webpage.
The prob
I know it is imposible to display an entire webpage in flash but can I create a single page with just the html tags that would have loaded this second page and then render that list of html code in flash?
Any help will be greatly appreciated.
Inserting Flash Movie In HTML Document
This seems simple enough, but I am having the darned-est time with making a Flash movie appear when I insert it into my HTML document.
The movie contains 3 simple buttons. I have saved it as a .swf file, published it, and exported it as a movie (though I'm still fuzzy on why I have to save, publish, and export - what's the difference?!)
In DreamWeaver I then insert the movie as a Flash file, but it doesn't appear when I view the doc in my browser. I have made sure that I saved the Flash file in my root folder and that I'm inserting the .swf version, but I've had no luck.
From the description I've given can anyone tell me what I need to do differently? If you need more info, please let me know.
Thanks very much in advance.
By the way, I've also tried breaking the movie up into separate elements - the gradient background (a sidebar), plus 3 buttons that link to URLs. No luck with this either.
Include Outside HTML Page In Flash Document
How can I include an external html document in a flash document? I want it to be sort of like a window to a certain file where that file can interact as a normal webpage with other html files inside of a flash document. Let me know if I make no sense, it happens often!
Thanks
Navigating From Flash Movit To Html Document
OK..now I am just in my second semester using flash so I am rather new to it. I have done well so far but the Instructor threw us a curve with an assignment where we have to create a flash movie and link it to the first html document of what is supposed to me a website without uploading. The flash html version is ready and I have the fla and swf saved saved as well as the published version of the movie.
We are to use just HTML code which I have no problem with. The navigation part from the movie to the document I want to navigate to is the problem. My question is how can I accomplish this under all the aforementioned circumstances.
Displaying Flash Document In HTML Page
I have created a Flash document and am going about displaying it in a HTML page.
I have displayed a background by referencing a .jpg file in the body background tag, and have then used the align tag to center the contents of the page - leaving me with the Flash document centered in the browser, on top of the background.
I would be grateful if someone could explain how I go about adding the following two features:
1. I would like the Flash document to be placed at the very top of the browser window, with no gap or top margin. The current Flash movie is NOT placed inside a table or anything else, and is embedded after the align center tag.
2. I would like to know how to create an effect I've seen on numerous sites (http://www.logoyes.com/index2.html) where a drop shadow or something similar is placed either side of the the embedded Flash document. I'm aware that the effect is usually acheived with a long vertical image, but don't know how to go about positioning the images.
Any help would be appreciated. Thanks in advance.
Loading Flash Data In An HTML Document
Is it possible to load a series of AS variables into a HTML document?
My server will not let me veiw their formmail script and require that I pass the information to their script via HTML. I want a 100% Flash site and need to post variables from a contact form to the html document which will then pass to the server's formmail.
Thanks
Submitting Html Form From Flash Document
Hello,
I have a crazy idea that I'm trying to implement.
I want to pass variables from a flash .exe file to a website where it will insert the variables into a database on a remote server via a php script.
I would love to do this w/out opening the webpage from the flash .exe file.
Any ideers?
Clem C
Loading Existing HTML Document Into Flash
Hi all
I am building a tool for editing xml that configures various sites we have.
The sites are located as follows:
http://www.sitename.com/siteversion/siteconfig.xml
there is an html page at http://www.sitename.com/ with a <base href=""> tag in that points the user's browser at the correct folder for the current version.
I want to load the html page, parse out the base href tag and get the location of the current site version then load the xml file.
Is this possible? loadVars won't do it and an xml object won't load the html in either.
Thanks.
Flash Modal Containing External HTML Document
I have a massive problem. I've been in forums and searching the net for days and can't find anything to help me on this...
I AM VERY NEW TO ACTIONSCRIPTING AND GET LOST EASILY...
I have a site that I developed fully in Flash 8... http://ashevillegolf.net/newsite/
If you visit this URL you will see the "For Sale Sign" at the top. If you visit that page you will see two buttons.
What I need to have happen is to click one of the buttons (probably stripping it down to one button soon... Not your problem), have it open a Modal window and load this page http://www.remax.com/Listings/StateS...O1=1&corp=true in the window with both scrollbars as needed. I do not want it to open up a new window showing in the status bar. I want a true Modal window with no address bar, no menus. Just a title, "X" and scrollbars.
I have no freakin clue how to do this and I am about to jump. LOL.
Please HELP!
G
Commands From A Flash Movie To A DW Html Document
I'm using ajax to load a flash movie when a button is pressed. the movie loads ok and all, but I need to have a button within the flash movie to be able to close both the animation and the layer.
http://amedeldesign.com/interiores2/
I took the idea from those animations that sometimes appear in yahoo, where you click on a corner for example, and a flash animation that cover part of the page appears on top of the other content.
I don't know if what I'm doing is as practical code-wise either.
So also, if anyones has suggestions to do it in a better way, please let me. The least I ask is how to send a command fromt he flash movie that affects the html document.
Thanks!!! Here's what I have so far, Please note thtat the layer witht he aniomation closes with another html on top of the flash movie, that's not how I want it...
http://amedeldesign.com/interiores2/
|