Please see the below haxe code:
import flash.utils.Dictionary;
class HashMap extends Dictionary <String, Dynamic> implements IMap
{
public function new(param1 : Bool = true)
{
super(param1);
return;
}
}
However, it always say “Should extend by using a class”. I think Dictionary is a class. Why openfl doesn’t think it is a class?
Thanks.
obscure
#2
Dictionary ain’t a class it’s an Abstract.
Thank you for your reply! Dictionary is an Abstract type, not a class. I have to change code. Thank you again!
Best,
Peter Zhou