08.13.07

Flash CS3 / Flex Error #2136: The SWF file file:///C|/Curtism/Flash/matchWordsGameTest.swf contains invalid data

Posted in Computers, Flash, Flex, errors at 8:37 pm by Curtis J. Morley

#2136: The SWF file file:///C|/Curtism/Flash/myFile.swf contains invalid data.

Fun error that you get when compiling the swf with an external AS file as your 'Document class'. Most Likely you will get this error if you are using a document class and also have code on your timeline.

Fix :

Remove the code from your timeline or remove the Document Class

As Always Happy Flashing

2 Comments »

  1. karthick said,

    February 21, 2008 at 8:45 am

    i get this error please send me the solution

  2. johnny said,

    November 11, 2008 at 4:17 am

    Ok, so I wanted to make a external class that would build a few shapes with different properties. I wanted to create a number of shapes equal to a number that the user inputs on the main stage. Thanks to you I found out that I can’t write var myShape:myCreatedClass=new myCreatedClass(number_of_shapes) on the main time line. Can u tell me how could I use the external class and the user interaction at the same time? :-)
    You can post a comment here. :-)

    P.S. I now that this kind of program doesn’t need external classes but I want to learn object oriented programming in as3.

Leave a Comment