I've recently been working on an app in Flash and have decided to move to Flash Builder 4 for the improved debugging and editing.
Problem is when I get to run the application, I get the error:
1046: Type was not found or was not a compile-time constant:
SliderEvent. SpiroUI.as /SpiroPaint/src/circles line 114 Flex Problem
The offending function is:
public function circOuterRotation(e:SliderEvent):void
{
spiroInstance.setCircOuterRotation(e.target.value);
}
Not sure how I can get the SliderEvent to be recognised as it is. It all worked perfectly in Flash.
I have include import fl.events.SliderEvent
for the class, that didn't work.
At the moment this is the only error I'm getting, and the app window opens but nothing appears in it.
Is there some MXML code I need to import the slider? As in the equivalent to importing into the Flash project Library?
Appreciate the help.
You can manually add the "fl" components to your Flash Builder source path.
C:\Program Files\Adobe\Adobe Flash CS5\Common\Configuration\Component Source\ActionScript 3.0\User Interface
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With