Duckdoom5
Duckdoom5

Reputation: 764

Flash builder 4.6 Fake flex error

I have a problem with flash builder 4.6

Its giving me a fake error and I don't know how to fix it. Its telling me this:

1067: Implicit coercion of a value of type GuisP:OptionsMenu to an unrelated type GUIs:GUI.

Given this method:

public function setCurrentGUI(gui:Gui):void

Using this class:

public class OptionsMenu extends Gui

And I know its a fake error because if I restart Flash Builder it will just run and throw no errors at all.

I should probably add that I'm using the Appache 4.10.0 Flex SDK

Is there any way to fix this Without having to restart flash builder every 5 minutes?

Upvotes: 0

Views: 284

Answers (1)

Zoron19
Zoron19

Reputation: 664

If you to Project > Clean... that usually fixes the errors for me.
If that doesn't work you can try creating a new file with the same name and moving over the code. I've had to do that before.

Upvotes: 1

Related Questions