Master taught you to completely solve the HTML to flash parameters garbled problem "rookie collection"

Source: Internet
Author: User

I want to use HTML to pass two parameters to flash this afternoon, and I've been encountering an error. Here's a summary:

Error One:

The code is as follows Copy Code
<param name= "flashvars" value= ' &SYMC=UNIT1.MP3&LRCMC=UNIT1.LRC '/>


In this way, the results are 1.3 and 1.

Error Two:

The code is as follows Copy Code
<param name= "Flashvars" value=encodeuricomponent (' &SYMC=UNIT1.MP3&LRCMC=UNIT1.LRC ')/>


The results are the same as above.

Later, the high man taught both English and Chinese to support the method, recorded here:

Method One: (note is &amp;)

The code is as follows Copy Code
<param name= "flashvars" value= ' &AMP;SYMC=UNIT1.MP3&AMP;LRCMC=UNIT1.LRC '/>
<param name= "flashvars" value= ' &amp;symc= Chinese. mp3&amp;lrcmc= the Chinese. LRC '/>


The results obtained are:

Unit1.mp3 and UNIT1.LRC

Chinese, MP3 and Chinese. LRC


Method Two:

The code is as follows Copy Code
Http://www.111cn.net/mp3/SimpleMP3Reader.swf?&symc=unit1.mp3&lrcmc=unit1.lrc
http://www.111cn.net/mp3/SimpleMP3Reader.swf?&symc= Chinese. mp3&lrcmc= Chinese. LRC


The result is Unit1.mp3 and UNIT1.LRC.


The results obtained are:

Unit1.mp3 and UNIT1.LRC
Chinese, MP3 and Chinese. LRC

In addition, the receiving data program in AS3 is written in this way:

var flashvars:object = root.loaderInfo.parameters;
symc_txt.text=flashvars["SYMC"];
rjmc_txt.text=flashvars["LRCMC"];

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.