56934

How do I include a SWC in an AS2 Flash project?

In AS3, I know how to accomplish this. One needs only to click "ActionScript Settings", and navigate to the SWC file under "SWC Files or Folders Containing SWC Files".

However, when the project is set to AS2, the "Actionscript 2.0 Settings" is a rather sparse menu, and adding the folder as a classpath doesn't seem to work.

Can this even be accomplished?

Answer1:

Assuming that your SWC was created for AS2 as a compiled component, you have to add it to your Flash components folder. For me, using CS4 on Win7 the path is:

C:\Users\USERNAME\AppData\Local\Adobe\Flash CS4\en\Configuration\Components

Once this is done, restart Flash and the component SWC should be visible in the Components panel of the IDE. Drag it to the stage and then delete it, which will leave a copy of it in your library. You should now be able to access the classes within the SWC in code.

Source (also contains instructions for SWC creation which is beyond the scope of the question)

Recommend

  • How to avoid this Apple Siri https cracking scenario?
  • Scroll to anchor link in a Sammy.js project
  • How can we handle large matrices in matlab(larger than 10000x10000)
  • Multiplying column elements of sparse Matrix
  • Hierarchical Clustering Large Sparse Distance Matrix R
  • getResource() to a file on runtime
  • Do commands run from current directory in a shell script?
  • How do I use SFSafariViewController with a dark theme like this user?
  • Grunt module(s) to upload all static assets to S3 / CloudFront, replace paths, and invalidate old as
  • PHPUnit: Expected status code 200 but received 419 with Laravel
  • record audio in HTML / js without Flash?
  • Disabling sound of embedded flash object with html
  • Spring integration inbound-gateway Fire an event when queue is empty
  • quiver not drawing arrows just lots of blue, matlab
  • Android Studio Can't Find tools.jar
  • SonarQube: Cannot deactivate rule with missing quality profile
  • Android Studio 1.3 RC3. Google Play services out of date. Requires 7571000 but found 6774470
  • How to add a focus style to an editable ComboBox in WPF
  • Bypass multiple inheritance in Java
  • wxPython: displaying multiple widgets in same frame
  • How do I superscript characters in a UIButton?
  • Zurb Foundation _global.scss meta styles for js?
  • Paperclip, set path outside of rails root folder
  • Change JButton Shape while respecting Look And Feel
  • Is my CUDA kernel really runs on device or is being mistekenly executed by host in emulation?
  • Deleting and Updating values from a cusrsor adapter
  • Window Size for Mac application
  • Updating server-side rendering client-side
  • WOWZA + RTMP + HTML5 Playback?
  • R: gsub and capture
  • jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts
  • Comma separated Values
  • Proper folder structure for lots of source files
  • Load html files in TinyMce
  • Angular 2 constructor injection vs direct access
  • Java static initializers and reflection
  • Android Google Maps API OnLocationChanged only called once
  • Append folder name and increment by 1 using batch script
  • UserPrincipal.Current returns apppool on IIS
  • How to load view controller without button in storyboard?