# Convert External AS3 File To Internal Actions

**URL:** <https://forum.kirupa.com/t/convert-external-as3-file-to-internal-actions/299289>\
**Category:** flash\
**Created:** [November 2, 2009, 8:35pm UTC](https://forum.kirupa.com/t/convert-external-as3-file-to-internal-actions/299289 "2009-11-02T20:35:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sloopie](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@sloopie](https://forum.kirupa.com/u/sloopie)\
**Post date:** [November 2, 2009, 8:35pm UTC](https://forum.kirupa.com/t/convert-external-as3-file-to-internal-actions/299289/1 "2009-11-02T20:35:02Z")

</div>

I’m wondering if there’s a “fix” for converting a tutorial that uses an external .as file to using ActionScript internal to the Flash file itself.

For example, the _Colorful Explosion_ tutorial runs all of its ActionScript from a separate file that must be present with the swf file to run the animation.

[http://www.kirupa.com/developer/as3/colorful\_explosion\_page1.htm](http://www.kirupa.com/developer/as3/colorful_explosion_page1.htm)

Is there a way to have all of the animation ActionScript run from within the swf file by, say, pasting the code into the Actions panel or other internal method?

I just don’t want to complicate a project with multiple files and want others to only have convenient access to a single swf file.

Thanks for any help.
