Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
Adobe Flex SDK 4.5 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Create a Mobile Project with:
<?xml version="1.0" encoding="utf-8"?>
<s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
firstView="views.YourBugzHomeView"
creationComplete="viewnavigatorapplication1_creationCompleteHandler(event)">
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
import spark.components.Label;
protected function viewnavigatorapplication1_creationCompleteHandler(event:FlexEvent):void
{ var l : Label = new Label(); l.text = "done"; navigator.actionBar.addChild(l); } ]]
>
</fx:Script>
</s:ViewNavigatorApplication>
2. Compile
Actual Results:
Error: addChild() is not available in this class. Instead, use addElement() or modify the skin, if you have one.
- this is conflicting with the code hints which hint addChild() but not addElement().
Expected Results:
Compiler errors and code hints should reflect each other
Workaround (if any):