Skip to main content
Known Participant
July 19, 2013
Question

Importing Action Script 3 files

  • July 19, 2013
  • 1 reply
  • 1455 views

Hey guys I wrote a very simple actionscript 3 file outside of a ActionScript 3.0 project in Flash CS5.5, I'm trying to figure out how can I import my as3 file. So how can I do that?

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
July 19, 2013

It depends partly on what you actually wrote and what you really mean when you say you want to import it.

Did you create a class file or is it just a file with alot of AS3 code in it? 

In what way do you mean you want to import it?

Known Participant
July 19, 2013

Well I wanted to import a small as3 file similar to importing art assets .

Ned Murphy
Legend
July 19, 2013

I have never heard of importing AS3 code into the library such as you might do with art assets.  To physically have the AS3 code in the file you would need to copy it from the file it is currently in and paste it into the Actions panel while a frame of the timeline is selected in the Flash file.

There is an import command that you can use but that will not add the code into the file until you publish the file.