2

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;

2 Answers 2

3

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.

Sign up to request clarification or add additional context in comments.

10 Comments

how and where do i add it?? and where to get it from??
You can download the source from the as3corelib project page (the link I have mentioned). You need to place this package under your src directory.
well i have a question for you....if a mxml file is not set as default application then doesn't it produce the new swf file when we run the project???
Sorry, I am not sure about this. I'm experienced with pure AS3, but not much experienced with Flex.
ohk well do you have an idea what does thi mean "Multiple markers at this line: - Access of undefined property event - Call to a possibly undefined method bindable"
|
2

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.

10 Comments

so where do i get it from?? and how & where do i add it?? is it that i need to add it to the project?? or the flash builder itself???
You can just download it from github.com/mikechambers/as3corelib, and place the files in the src folder in your src folder.
i am new to flex and i am given a project to edit the contents appearance on the user interface....so i did the changes on the mxml code and in some action script too....and do i have to make changes even in the public website php files too?? and i see that one of the actionscript file is missing in it, is there a possibility for me to recover it???
I wouldn't assume you'd have to change any php files, but that depends on if the .swf is talking to php in some way. If you're just changing appearance, then I wouldn't think you would have to. If you're missing an actionscript file, you'll get the error when you build the file and that will give you enough information to determine where that file should be. If it's a custom .as file, I don't know how you'd go about finding it. Better to determine what the file is that is missing, then come back and let us know.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.