Can I have a single function and variable with createjs names when publsihing of Flash?

Hey everybody!

I recently started to use the Toolbox for exporting CreateJS to turn the little button icon animations, done in Flash, content for HTML5. I created 3 files of ".fla" separate icon that animate when spilled.

With that tag added in my html5 document example, animation works very well:

< canvas id = "about_btn" width = "85" height = "70" style = "background-color: #FFF" > < / canvas >

However, once I added several canvas tags, only one icon would be on screen:

< canvas id = "about_btn" width = "85" height = "70" style = "background-color: #FFF" > < / canvas >

< canvas id = "news_btn" width = "85" height = "70" style = "background-color: #FFF" > < / canvas >

< canvas id = "contact_btn" width = "85" height = "70" style = "background-color: #FFF" > < / canvas >

I discovered that the JavaScript files generated with each 'FLA' file were opposed because they were all using the same variable and function names (Stadium of the exodus, canvas, init(), etc.). Is it possible for me to publish the JavaScript of Flash code with variable and function names specific document? (e.g. about_stage, about_canvas, about_init())

A work around methood I currently using puts each < canvas > tag in its own iFrame.

Thanks again for the help!

-DJ

Asset JS libraries shouldn't conflict between them, unless there are symbols with the same name. Even in this case, you can change the names of symbols for each FLA avoid collisions.

Looks like you are trying to copy and paste the code on the HTML preview. It is not really designed for it, and this will lead to collisions of names. You want to rewrite this logic in your own HTML code (code overview using as reference), or rename the variables as appropriate, after you copy and paste.

Best,

Concession.

Tags: Adobe Animate

Similar Questions

Maybe you are looking for

  • I can't use my gift voucher

    When I click to use the voucher that the site was moved to the software update page. I updated my software, but it keeps jumping to this page!

  • Click here for flash

    I recently got a new iMac.Previously on my old Mac that I used the extension developer and click to Flash to download videos of the Internet.I read somewhere that Apple have done away with the click to flash. Please can anyone suggest how now to down

  • 10 blackBerry OS update

    Guyzz help me I have BlackBerry z30 and I don't get my update of the operating system to 10.3.1... ive tried so many times in the settings, blackberry link but no r updates that lies on it... so tell me another way to update my os...

  • BlackBerry Smartphones 2f

    Hi can someone tell me what this means. Under the day and date "2f" appeared and the 'f' is highlighted in blue. I have never seen it before.

  • If the Windows 8 Media Center key expires, or you can install it later on 31 January?

    I got the Windows 8 Pro upgrade for several systems, but I only installed Win 8 on 1 System.  I do not plan on installing Windows 8 Pro on other systems for several months or more. I got the keys to win 8 Media Center for all systems for which I boug