Skip navigation
Currently Being Moderated

Need help to find link to external AS2 file

Oct 20, 2010 9:43 AM

I have purchased an image gallery program that works fine but I am struggling to make a very minor modification. I have asked the author for assistance but previous requests have met with no response so I am also asking my question here.

 

This program has most of its logic in an external AS2 file. I have made some small changes to this file and want to save it under a new name. However, that would also require me to change the reference to the external AS2 file from within the fla file. That's where my problem lies. I can't find any code in the fla that contains such a reference.

 

If I try to publish an swf without this file in the required location it causes a compiler error thus proving that there must be a reference somewhere to that file. However, doing a search for this AS2 file in the 'current document' when viewing the fla file in Flash CS4 produces no results. Where else could this reference be hidden?

 

David

 
Replies
  • Currently Being Moderated
    Oct 20, 2010 10:23 AM   in reply to David C Anderson

    When you first open the fla file, look in the properties panel and see if the file appears in the Document Class field.

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 20, 2010 1:39 PM   in reply to David C Anderson

    I don't have CS4, so I can't say for usre, but here's a link to a discussion that has a picture of where you'll find it if it's there.

     

    http://active.tutsplus.com/tutorials/actionscript/quick-tip-how-to-use -a-document-class-in-flash/

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 20, 2010 2:50 PM   in reply to David C Anderson

    What does the .as file code look like?  You don't have to show all of it, maybe just the first so many lines in it.  THat'll indicate whether it is a class file at all or just an actionscript file.

     

    Since it is an AS2 file there are more places you might need to look as compared to an AS3 file.  Where have you looked within the fla to find the code?  Aside from code on a timeline, AS2 allows code to be attached to objects, so have you checked there?  And have you looked inside any movieclips in the file to see if there is code in them?

     

    And the design might use scenes, so have you checked to see if it does?

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 20, 2010 3:17 PM   in reply to David C Anderson

    That .as file is definitely a class file based on what you described, not just an included actionscript file.  You might be able to find it linked via the objects in the library.  Right click each movieclip object in the library and choose the Linkage option in the menu that appears.  You should see an interface that has fields for an Identifier and a Class.  You might find the file tied in that way.

     

    To find code attached to objects you need to have the Actions panel opened and just click on an object on the stage, like a button or whatever.  Whatever code is attached will appear in the Actions window.  The ability to attach code like this was discontinued when AS3 was released.

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 20, 2010 4:59 PM   in reply to David C Anderson

    In the top menu bar under the Window option you should be able to find a Movie Explorer option in the menu.  I think that can take care of collecting all the actionscript in the file if you select the options to show the code and movieclips and stuff.  But I don't know if it does anything to show the classes that are tied in to library objects.  You should look and see and let me know.  I didn't remember to suggest this mainly because I never have had a need to use it... it's more of a hearsay thing to me.

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 21, 2010 5:16 AM   in reply to David C Anderson

    You're welcome

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points