I have seen some sample projects using both . why is this ? its confusing to me why flash things can be used in openfl.
EDIT:
found this:
how to delete my post ?
I have seen some sample projects using both . why is this ? its confusing to me why flash things can be used in openfl.
EDIT:
found this:
how to delete my post ?
I can delete your post if you want, but I think it may still be helpful for others who are curious about the same question
import flash.display.Sprite;
works the same as import openfl.display.Sprite
, but some types (such as openfl.Vector
) do work a bit different than the import flash
counterpart.
We support both, because it doesn’t seem important to break working code, but import openfl.*
is best if it really doesn’t matter