Search Unity

Problem with GetComponent

Discussion in 'Flash' started by jstriedinger, Sep 5, 2012.

  1. jstriedinger

    jstriedinger

    Joined:
    Apr 19, 2011
    Posts:
    58
    Hi guys,

    Si I try to compile my project in Flash and it tells me this:
    C:\Users\user\Desktop\SVN\Game2\Temp\StagingArea\Data\ConvertedDotNetCode\global\SSSCameraBase.as(31): col: 103 Warning: Migration issue: * is not a dynamic class. Instances cannot have members added to them dynamically.​
    Is really weird becuase I looked and the code and it seems the next line is making the error:
    Code (csharp):
    1. GetComponent<AudioListener>().enabled = flag;
    2.         camera.enabled = flag;
    Would somebody know WHY this is happening? I mean is there's a bug in the GetComponent method for Flash or something???

    Thanks!