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

Initializer type Vector.<starling.textures.Texture> is not assignable #2

Open
Shaunmax opened this issue Jan 13, 2023 · 2 comments
Open

Comments

@Shaunmax
Copy link

Hello @PrimaryFeather ,

I was trying to run the flappy starling project and I am getting this weird error :
Initializer type Vector.<starling.textures.Texture> is not assignable to variable type Vector.<starling.textures.Texture>

in World.as
image

what could be wrong?

@PrimaryFeather
Copy link
Collaborator

What a strange error – at first glance somehow makes no sense! I'll look into it as soon as I can squeeze it in.

@PrimaryFeather
Copy link
Collaborator

I just tried this with the latest version of IntelliJ IDEA and the latest AIR SDK, and I'm getting the same error. Baffles me!

Especially since it doesn't seem to happen in other projects. These lines of code are part of the MovieScene in the official Starling demo.

var frames:Vector.<Texture> = Game.assets.getTextures("flight");
_movie = new MovieClip(frames, 15);

It doesn't cause any error or warning there. As far as I am concerned, these lines are doing exactly the same thing. WTF?!

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

No branches or pull requests

2 participants