Why Resources.LoadAll is not compatible with Flash

In my script I have this code:

tileSprites = Resources.LoadAll<Sprite>("tiles");

When I build for Flash I get this error: “error CS0308: The non-generic method `UnityEngine.Resources.LoadAll(string)’ cannot be used with the type arguments.

It builds fine for every other platform except flash.

Why is Flash throwing this error? and if this can’t be fixed what is the alternatives?

Try to use method “Load” instead of “LoadAll”.