Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Flash export problem

Discussion in 'Flash' started by tet2brick, Jan 3, 2012.

  1. tet2brick

    tet2brick

    Joined:
    Jun 24, 2009
    Posts:
    77
    Hi,

    I'm trying to export an existing project in flash and there's a lot of errors in the log "xxx is not a member of xxx", like this one :

    Code (csharp):
    1. Assets/scripts/SaveGame.js(158,96): BCE0019: 'computers' is not a member of 'UnityEngine.Component'.
    The project is working when I export it for the unity webplayer.

    The scripts linked to these errors are in javascript... I don't know if it's the problem...

    Any help? :)

    Thanks in advance,
     
  2. RalphH

    RalphH

    Administrator

    Joined:
    Dec 22, 2011
    Posts:
    592
    Are all your js scripts set with #pragma strict ? If not, do that, try and compile for webplayer again, resolve errors and when they are gone, you should be able to export to Flash.
     
  3. tet2brick

    tet2brick

    Joined:
    Jun 24, 2009
    Posts:
    77
    Thank you for your answer, it's maybe the problem
    But I have a lot of errors to fix (more than 1000) and the vast majority in a third party script :p

    I suppose there's no way to automaticaly convert a script to be correct with #pragma strict?