I have downloaded an AS 3 class file, designed to create an MD5 hash from a string. I have put the class file in my /components directory (with / being the root of my Flex project source).
When I attempt to compile, I get the following error:
1120: Access of undefined property MD5.
The relevant snippets of code follow:
from the class file, named md5.as:
package components {
public class MD5 {
...
public static function encrypt (string:String):String {
return hex_md5 (string);
}
}
}
from the calling mxml file script section:
import components.MD5;
...
var pw:String = MD5.encrypt( password0_text.text );
Flex Builder 3 code assist DOES find components.MD5 when I start typing the import statement…
Any idea why this isn’t working? Others have gotten this to work without problem, so I know the md5.as file works. The ONLY modification I made to the md5.as file was to change the package statement to one that fits its actual location in my project.
Please help…
Eric