I recently worked on an application in Flash and decided to upgrade to Flash Builder 4 to improve debugging and editing.
The problem is when I can start the application, I get the error message:
1046: Type was not found or was not a compile-time constant:
SliderEvent. SpiroUI.as /SpiroPaint/src/circles line 114 Flex Problem
Violation Function:
public function circOuterRotation(e:SliderEvent):void
{
spiroInstance.setCircOuterRotation(e.target.value);
}
I don’t know how I can recognize SliderEvent. All of this worked fine in Flash.
I have import fl.events.SliderEventfor a class that does not work.
At the moment, this is the only error I get, and the application window opens, but nothing appears in it.
Is there any MXML code for importing a slider? How about the equivalent of importing into a Flash project library?
Rate the help.
source
share