Skip to main content
Participant
November 10, 2008
Question

Cannot find fl.events.Event

  • November 10, 2008
  • 3 replies
  • 920 views
I just installed the Flex 4.0.0.4055 SDK and tried to compile a project. When I want to create an Event, Flex throws the following error:
1046: Type was not found or was not a compile-time constant: Event.

When I check the fl or flash package through code hinting I can see some classes but not the Event class.

I am targeting Flash Player 10 from Flex 3 and do not have CS4 installed yet.
This topic has been closed for replies.

3 replies

matt_chotin
Inspiring
November 10, 2008
Could be caching, maybe clean your workspace according to the FB release note instructions.<br /><br /><br />On 11/10/08 7:56 AM, "FlexFlip" <member@adobeforums.com> wrote:<br /><br />A new message was posted by FlexFlip in<br /><br />Developers --<br /> Cannot find fl.events.Event<br /><br />I had not tried to just add the import manually and instead relied on code hinting and Flex to place that into the script.<br /><br />When I add the import by hand and create a var e:Event = new Event("hello world");,<br />Flex does not throw any errors.<br /><br />A strange thing now happened: I added the import in project B, and suddenly code-hinting works again in project A (same workspace).<br /><br />Could this be some kind of caching issue?<br /><br />________________________________<br />View/reply at Cannot find fl.events.Event <a href=http://www.adobeforums.com/webx?13@@.59b6fd61/1><br />Replies by email are OK.<br />Use the unsubscribe <a href=http://www.adobeforums.com/webx?280@@.59b6fd61!folder=.3c060fa3> form to cancel your email subscription.
Participant
November 10, 2008
I had not tried to just add the import manually and instead relied on code hinting and Flex to place that into the script.

When I add the import by hand and create a var e:Event = new Event("hello world");,
Flex does not throw any errors.

A strange thing now happened: I added the import in project B, and suddenly code-hinting works again in project A (same workspace).

Could this be some kind of caching issue?
Participating Frequently
November 10, 2008
<div class=Section1><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Did you import flash.events.Event (not fl.events.Event)<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><br /><br /><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span<br />style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> FlexFlip<br />[mailto:member@adobeforums.com] <br><br /><b>Sent:</b> Monday, November 10, 2008 6:00 AM<br><br /><b>To:</b> flexsdk-dev@adobeforums.com<br><br /><b>Subject:</b> Cannot find fl.events.Event<o:p></o:p></span></p><br /><br /></div><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>A new discussion was started by<br />FlexFlip in <br><br /><br><br /><b>Developers</b> --<br><br />  Cannot find fl.events.Event<br><br /><br><br />I just installed the Flex 4.0.0.4055 SDK and tried to compile a project. When I<br />want to create an Event, Flex throws the following error: <br><br />1046: Type was not found or was not a compile-time constant: Event. <br><br /><br><br />When I check the fl or flash package through code hinting I can see some<br />classes but not the Event class. <br><br /><br><br />I am targeting Flash Player 10 from Flex 3 and do not have CS4 installed yet. <o:p></o:p></p><br /><br /><div class=MsoNormal><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b6fd61">Cannot find<br />fl.events.Event</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b6fd61!folder=.3c060fa3">unsubscribe</a><br />form to cancel your email subscription.<o:p></o:p></p><br /><br /></div>