Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header.rightItems - Error code: 1046: Type was not found or was not a compile-time constant: DisplayObject. #30

Open
teotidev opened this issue Dec 6, 2015 · 4 comments
Labels

Comments

@teotidev
Copy link

teotidev commented Dec 6, 2015

Hey, I have been getting this error which obviously the compiler is not importing DisplayObject behind the scenes, you run into this?

If I add import starling.display.DisplayObject; the error goes away.

capture

@joshtynjala
Copy link
Member

Yes, I've noticed this issue. If I recall correctly, I could also reproduce it in the Flex SDK. For some reason, the compiler doesn't automatically import the type of the Vector if it isn't used elsewhere.

As a workaround, I think you can explicitly declare the Vector, like this:

<fx:Vector type="starling.display.DisplayObject">
    <f:Button/>
</fx:Vector>

@joshtynjala joshtynjala added the bug label Dec 6, 2015
@teotigraphix
Copy link

Ok kewl. I just thought it might be something that could be fixed, if not it really doesn't matter. :)

@joshtynjala
Copy link
Member

I had planned to fix this one, but I decided to wait until after Feathers SDK 2.2 was released. I simply haven't found the time yet.

@teotigraphix
Copy link

It's fine, I just tried the Vector and it compiled fine. Seems like it shouldn't be a priority for you right now IMHO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants