Skip to main content
Known Participant
October 29, 2019
Question

Used Animate to re-purpose a Flash gadget ...

  • October 29, 2019
  • 1 reply
  • 589 views

... why can't I get the Canvas.html5 / Canvas.js combo to appear on the webpage?

 

Here's the page incorporating the .swf:

www.flydutch.net

 

<div id="flash-header">
<object classid= blah, blah, blah</object>
<!--<![endif]-->
</object></div>

 

What's wrong w/this replacement code (instead of a <div>)?

 

<iframe src="FlyDutchPortfolio_Extended_HTML5 Canvas.html" width="465px" height="355px">
<script>
//Canvas JavaScript
var c = document.getElementById("FlyDutchPortfolio_Extended_HTML5 Canvas.js"); var ctx = c.getContext("2d"); </script></iframe>

 

P.S. am expecting it's operator error all the way (it's a given) ...

 

 

    This topic has been closed for replies.

    1 reply

    Nancy OShea
    Community Expert
    Community Expert
    October 29, 2019

    Show us the HTML code that was exported from Animate CC.  That code should work in a browser.  If it doesn't, then something is wrong with the Animate project. 

     

    Nancy O'Shea— Product User & Community Expert
    Known Participant
    October 30, 2019

    I opened a Flash .swf in Animate & asked to convert to an HTML5 Canvas document ...

     

    Three files were created:

    *HTML5 Canvas.fla

    *HTML5 Canvas.html

    *HTML5 Canvas.js

     

    Am unaware of any code separate from these files ...

    The previous post contains what I thought was recomended (iFrame instead of a <div>):

     

    <iframe src="FlyDutchPortfolio_Extended_HTML5 Canvas.html" width="465px" height="355px">
    <script>
    //Canvas JavaScript
    var c = document.getElementById("FlyDutchPortfolio_Extended_HTML5 Canvas.js"); var ctx = c.getContext("2d"); </script></iframe>

     

    That placed a block of nothing at the top of the page (same place as the original .swf) ...

    Instead of the Flash-generated .swf, should I be running the .fla file through Animate?

    Nancy OShea
    Community Expert
    Community Expert
    October 30, 2019
    Nancy O'Shea— Product User & Community Expert