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.