Pay attention to the details when passing parameter values to the Flash SWF file using javascript _ basic knowledge

Source: Internet
Author: User
How to use javascript to pass parameters to SWF files? I found a complete tutorial on the Internet, which is very enlightening and practical. The following is a complete implementation step. If you need a complete tutorial, refer Q: How to use javascript to pass parameters to SWF files?
I found a complete tutorial on the Internet, which is very enlightening and practical. The following describes the complete implementation steps:
Configure SwfObject:
Swfobject2 is the best method for detecting whether users install Flash. It is considered an 'industry standard', and all new versions of Adobe products (Flex4, Flash CS5) Use SwfObject to detect Flash Player.
Download, decompress the ZIP file, and copy the swfobject. js file to your web server. It is a good idea to create a root folder named 'js' under the root directory. (So the file location should be http://myserver.com/js/swfobject.js ). We will refer to this file in the HTML file created later. If you want to use the expressinstallfunction (for the user to perform a simple upgrade, copy expressinstall.swf to the same folder.
Configure HTML files:
The HTML file contains two Javascript files. A parameter used to capture the source URL. This was created by Matt White, which is simple but effective. The Code is as follows:

The Code is as follows:


Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.