Using Adobe Animate CC in HTML5 canvas mode with external JavaScript files

Using Adobe Animate CC in HTML5 canvas mode with external JavaScript files

Questions : Using Adobe Animate CC in HTML5 canvas mode with external JavaScript files

741

I’m transitioning a large FLA AS3 project in4codes_animate-cc into Canvas/JS. I have a large external in4codes_animate-cc folder structure of AS files and many in4codes_animate-cc library objects associated with classes.

I’ve converted FLA into a canvas mode but I in4codes_animate-cc can’t find a way to associate JS files to in4codes_animate-cc the objects. I’ve seen online examples about in4codes_animate-cc including JS in frame scripts but I really in4codes_animate-cc hope to find a way to do it with external in4codes_animate-cc files and library objects association.

I’d appreciate any direction or example of in4codes_animate-cc how it can be done.

Thank you

Total Answers 3
25

Answers 1 : of Using Adobe Animate CC in HTML5 canvas mode with external JavaScript files

What I do is adding all my JS utilities in4codes_flash to the html on-the-fly from Animate with in4codes_flash appenChild like this:

frame script:

function loadScript(url) { var body = document.getElementsByTagName('body')[0]; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = url; body.appendChild(script); } loadScript('assets/app/myUtilities.js'); loadScript('assets/libs/coolTool.js'); loadScript('etc..'); s = this; //to have access to the stage 

And access the stage from the external in4codes_flash JS like this:

s.my_movieclip.addEventListener("click", fl_MouseClickHandler.bind(s)); function fl_MouseClickHandler() { console.log('I want banana!'); } 

What I saw is that unfortunately it in4codes_flash seems not possible to instanciate in4codes_flash objects from the library dynamically in in4codes_flash Animate with canvas, I think that the in4codes_flash best solution is to prepare your views in4codes_flash on the timeline.

On the other hand, JS offer lot of in4codes_flash functionalities (for instance calling in4codes_flash Bootstrap Dialog Modals from your code).

0

5

Answers 2 : of Using Adobe Animate CC in HTML5 canvas mode with external JavaScript files

I’ve spent some time and managed to get in4codes_flash a better understanding how it works and in4codes_flash created a simple example of converting in4codes_flash Flash Actionscript project with external in4codes_flash AS files and object-oriented structure in4codes_flash into Animate CC Canvas and Javascript in4codes_flash files project with similar files in4codes_flash structure.

You can view it at in4codes_flash https://github.com/xims/X-simple-flahtml

0

5

Answers 3 : of Using Adobe Animate CC in HTML5 canvas mode with external JavaScript files

CreateJS can do that for you (the in4codes_flash PreloadJS library).

var queue = new createjs.LoadQueue(); queue.loadManifest([ "auxiliary.js", "main.js" ]);

0

Answer Link
jidam
  • Unable to run NoraUI mvn verify goal
  • Unable to run my app on emulator in VS Code
  • Unable to run multiple instances of libVLC(MobileVLCKit) in IOS via flutter framework
  • Unable to run make on griddb source on ubuntu 20.04 (building from source)
  • Unable to run latexindent macOS Monterey 12.0.1
  • Unable to run kotlinc-native command
  • Unable to run JUnit Test… Java.lang.ExceptionInInitializerError (Android Studio)
  • Unable to run java with -Xmx > 966m
  • Unable to run ionic cap run android from wsl2 inorder to start android emulator
  • Unable to run Intel HAXM installer: Cannot start process, the working directory does not exist
  • fs
  • Unable to run Google Analytics sample code
  • unable to run flutter run after upgarding to flutter 2.8.0 from 2.5.3
  • Unable to run Django with PostgreSQL in Docker
  • Unable to Run Container Using testcontainers
  • Unable to run ClojureScript Hello World program, Error building classpath. Error reading edn.
  • unable to run client command for apache karaf 4.3.3 through remote server
  • Unable to run c program 2nd time using eclipse
  • unable to run c++ in visual studio code on m1 chipset
  • Unable to run Android Instrumented Tests
  • Unable to run adb, check your Android SDK installation and ANDROID_SDK_ROOT environment variable: …AndroidSdkplatform-toolsadb.exe
  • Unable to run a singlespecific .spec.ts file through angular cli using ng test –include option
  • Unable to run a Mango query
  • Unable to return response back to view in laravel from package
  • Unable to return object reference in std::optional
  • Unable to return NULL in a function that expects an integer return type
  • Unable to return correct change in JavaScript Cash Register
  • Unable to retrieve version information from Elasticsearch nodes. Request timed out
  • Unable to retrieve values from Axios Response data
  • Unable to retrieve dotenv JWT secret Error: secretOrPrivateKey must have a value
  • Unable to resolve your shell environment
  • Unable to resolve token for FCM while implementing Push notification for Xamarin
  • Unable to resolve the request yii
  • Unable to resolve service for type Swashbuckle.AspNetCore.Swagger.ISwaggerProvider
  • Unable to resolve service for type Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger
  • Unable to resolve service for type ¨Microsoft.entityFrameworkCore.DbContextOptions¨1[LibraryData.LibraryContext] while attempting to activate
  • Unable to resolve service for type AspNetCoreRateLimit.IProcessingStrategy while attempting to activate AspNetCoreRateLimit.IpRateLimitMiddleware