Application of flash and JS interaction in projects

Source: Internet
Author: User

The company wants to use flash to display some things... no one is willing to do it, because the flash script as artist may not be involved... so I am going to do it ....
Key Technical Points

1. How to obtain parameters from flash
I use the label transfer method to transmit parameters in flash.

<Embed width = "108" Height = "84" type = "application/X-Shockwave-flash" src = "pingjianwang.swf" pluginspage = "http://www.adobe.com/go/getflashplayer" flashvars = "vfuwu = 4 & vshouhou = 5 "/>

Where

Flashvars = "vfuwu = 4 & vshouhou = 5"

This line means passing two parameters in.
Position where SRC is flash

2. Read parameters in Flash
You can use this passed parameter directly using the parameter name in flash, but pay attention to it! If you want to use the numeric type of the parameter, you need to use the number (STR) function to convert it into a numeric type before use. Otherwise, some unexpected errors may occur.
 

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.