0 Replies Latest reply on Dec 12, 2007 7:49 AM by Duke Boyne

    AS 2.0 object scope/load problem

    Duke Boyne
      I have a AS2.0 file that describes a page in a book (Page.as). The class page contains private variables that define things like the background image and hotspot locations on the page. I have a "pre-processor" that takes the action script file inserts the page specific images and then builds the page using the Motion Twin compiler. The output SWFs all load correctly by themselves. However when I load the page SWFs from my viewer each data has the data from the first page. It appears to be a scoping problem that only the class Page from the first SWF is being loaded. If I change the name of the class/file to something unique and recompile it works.

      Is there a solution to this without renaming each file and class?