Pop-up windows in the HTML page to write the JS code and then call in Flash in the following is a detailed step
1. Assign a "Get URL" directive to a button or keyframe
2. In the "URL" blank column to fill in the opening of a new window URL link, the following information is correctly filled in the blank column
Javascript:opennewwindow (' abc.html ', ' Thewin ', ' Height=400,width=400,toolbar=no,scrollbars=yes ')
4. Select the "Formats" (format) column, the "Flash" and "HTML" two options selected
5. Select "HTML" and select "Flash only (Default)" From the pop-up menu bar of "Templates"
6. Select the "Publish" button. This creates a SWF file for the Flash movie and HTML code that can be embedded in the Web page, saving the SWF file and the HTML code to the same directory as the FLA file.
Step Two: Add JavaScript scripts to HTML Web pages
HTML Web pages must add JavaScript functions to receive "get URL" instruction information. A JavaScript function is a piece of scripting code contained in an HTML Web page that can receive and execute an instruction. The specific ways to modify HTML pages are as follows:
1. Open HTML pages in Dreamweaver or other HTML editors. You can also use a text editor such as Notepad or SimpleText.
2. Copy the following code
<script language= "JavaScript" >
function Opennewwindow (Urltoopen, Windowname, windowfeatures) {Newwindow=window.open (Urltoopen, WindowName, Windowfeatures); }
</script>
Copy the above code completely into the HTML source code between the
3. Add the following parameters to the <EMBED> identifier of the HTML source code
"Swliveconnect=true"
This parameter can be placed anywhere within the <EMBED> marker, but preferably after the width and height parameters.
Note: This step is critical to allow flash movies to interact with JavaScript code.
4. Add the following code under the above parameters:
"Name=yourmovie"
Replace "Yourmovie" with the actual name, which is displayed in the ID parameter of the <object> label. "Name" is consistent with your SWF filename, but do not include the SWF file extension.
5. Save all changes to the HTML document and test in the browser.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.