[英]Flex, ActionScript - StringUtil
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 我正在尝试编辑一个已经存在的Flex项目,并且在“
import com.Adobe.utils.StringUtil;
”行上看到警告,并且显示的警告是
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;
好吧,我想知道
import com.Adobe.utils.StringUtil;
什么区别import com.Adobe.utils.StringUtil;
and import mx.utils.StringUtil;
并
import mx.utils.StringUtil;
com.adobe.utils.StringUtil
and mx.utils.StringUtil
are different classes. com.adobe.utils.StringUtil
和mx.utils.StringUtil
是不同的类。 From the manual of mx.utils.StringUtil
: 从
mx.utils.StringUtil
的手册中:
The StringUtil utility class is an all-static class with methods for working with String objects within Flex.
StringUtil实用程序类是一个全静态类,其中包含在Flex中使用String对象的方法。
Mark that within Flex
part. within Flex
零件中进行标记。
And com.adobe.utils.StringUtil is part of Adobe's as3corelib which is a pure AS3 library and offers different methods. com.adobe.utils.StringUtil是Adobe as3corelib的一部分,它是一个纯AS3库,并提供不同的方法。 You need to add the as3corelib's
StringUtil
to remove the warning. 您需要添加as3corelib的
StringUtil
以删除警告。
com.adobe.utils.StringUtil
is from the as3corelib -- https://github.com/mikechambers/as3corelib com.adobe.utils.StringUtil
来自as3corelib- https://github.com/mikechambers/as3corelib
If this is not included in your project, then flex can't find it. 如果您的项目中未包含此内容,则flex找不到它。 You can either include it or change all imports to use the mx path.
您可以包括它,也可以更改所有导入以使用mx路径。 However, there might be a specific reason the as3corelib was included in the old project, so be aware of that.
但是,可能有特定的原因将as3corelib包含在旧项目中,因此请注意这一点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.