Reputation: 37
I am trying to edit an already existing Flex project, and I see a warning on the line
"import com.Adobe.utils.StringUtil;
" and the warning it shows is
Multiple markers at this line:
-mx
-The import utils could not be found.
-The import StringUtil could not be found.
so what could be the problem?
Well I was wondering what is the difference between import com.Adobe.utils.StringUtil;
and import mx.utils.StringUtil;
Upvotes: 2
Views: 2724
Reputation: 46027
com.adobe.utils.StringUtil
and mx.utils.StringUtil
are different classes. From the manual of mx.utils.StringUtil
:
The StringUtil utility class is an all-static class with methods for working with String objects within Flex.
Mark that within Flex
part.
And com.adobe.utils.StringUtil is part of Adobe's as3corelib which is a pure AS3 library and offers different methods. You need to add the as3corelib's StringUtil
to remove the warning.
Upvotes: 3
Reputation: 13630
com.adobe.utils.StringUtil
is from the as3corelib -- https://github.com/mikechambers/as3corelib
If this is not included in your project, then flex can't find it. You can either include it or change all imports to use the mx path. However, there might be a specific reason the as3corelib was included in the old project, so be aware of that.
Upvotes: 2