flex - What's wrong with this interface assignment? -
i'm trying build old actionscript code inherited, think written older version of flex, , i'm starting larn language. i'm getting error on next line don't know how fix.
import mx.collections.arraycollection; import mx.collections.sort; // ... public var actualmodellist : arraycollection = new arraycollection(); // ... var actualsort : sort = actualmodellist.sort;
1118: implicit coercion of value static type mx.collections:isort perchance unrelated type mx.collections:sort.
i'mm assuming sort
implements interface, isort
, in other languages i've worked with, assignment seems legit. what's wrong code?
your reply in question itself, lets words -
sort implements interface, isort, in other languages i've worked with, assignment seems legit. what's wrong code?
so know sort implements isort interface or can isort base of operations sort class sort class can cast isort reverse not true.
flex actionscript
No comments:
Post a Comment