"Memory 1314" lottery flash big Carousel

Source: Internet
Author: User

1. Build the environment of JS and Flash

functionThismovie (moviename) {if(Window.document[moviename]) {returnWindow.document[moviename]; }    if(Navigator.appName.indexOf ("Microsoft Internet") ==-1)    {        if(Document.embeds &&Document.embeds[moviename])returnDocument.embeds[moviename]; }    Else //if (navigator.appName.indexOf ("Microsoft Internet")!=-1)    {        returndocument.getElementById (moviename); }}

2. Provide a JS method to the as call

function Jsmethod (Arg) {    //  This is the method provided to the as execution }

3.AS provides a way for JS to invoke

// if the as left JS call method named Asmethod,flash ID is turnflash function turntablemove (num) {    var timer = setinterval (function() {        if( typeof Thismovie ("Turnflash"). Asmethod = = ' function ') {            Thismovie ("Turnflash"). Asmethod (num);            Clearinterval (timer);        }    ,//  wait for Flash to finish loading to execute as method }

Ps:13 Year Practical Project (http://game.51wan.com/wkll/hd/sx/)

"Memory 1314" lottery flash big Carousel

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.