Strange keywords conflict between flash and IE

Source: Internet
Author: User

I have a small SWF file used to play the sound. After adding it to HTML, it can be played normally in Firefox/chrome, but IE8 only prompts

 
Message: the object does not support this attribute or method line: 48 characters: 3 code: 0uri :....

I checked 48 in the file, which is an HTML Tag and cannot contain any conflict. Then, I checked the JS files one by one and found no problems. Finally, I suspect that the SWF file causes IE to report an error. Therefore, I deleted the SWF embedded in HTML and F5 and IE to run normally. Therefore, it must be as3. Which of the following conflicts between as3 and JS?

 
Flash. External. externalinterface

Method. View the three methods open to JS:

 
Externalinterface. addcallback ('Play', Player. Play); externalinterface. addcallback ('Switch', Con. Change); externalinterface. addcallback ('Close', Player. Stop );

Swtich is indeed a reserved word of JS. If it is changed, an error is still returned.

Where is the problem? Is play or close a reserved word or reserved word? Apparently not. So I checked other codes in as3 and found no problems.

Finally, take a try and change the three open methods one by one.

 
Externalinterface. addcallback ('Vplay', Player. Play); externalinterface. addcallback ('Vswitch', Con. Change); externalinterface. addcallback ('Vclose', Player. Stop );

Flash exports SWF and runs again. The result is that IE is normal. I cannot figure out why.

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.