Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK 4.0 (Release)
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Browser: Other (specify version)
Language Found: English
Description
Found in Beta 2:
Steps to reproduce:
run the code:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"
minWidth="1024" minHeight="768"
>
<fx:Script><![CDATA[
import mx.controls.Alert;
import mx.rpc.events.ResultEvent
private function onFileSelect(e:Event):void
{ Alert.show("aaa") } //note the extra "}" This causes autocomplete to mess things up+FB doesnt detects the error
}
private function onMessageSave(e:ResultEvent):void
{ var ab:Sprite//try to press CTRL+space here to import Sprite automatically. //this will remove the import for ResultEvent and wont import Sprite. } ]]
>
</fx:Script>
</s:Application>
Actual Results:
-FB shows no error at this line:
Alert.show("aaa") }
-FB should removes imports when i press CTRL+space
Expected Results:
-FB should show an error at this line:
Alert.show("aaa") }
-FB should not remove imports
Workaround (if any):