Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-27239

Code hints hint navigator.actionBar.addChild() but compiler complains and suggest addElement() which is not hinted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • Adobe Flex SDK 4.5 (Release)
    • None
    • Compiler API
    • 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):

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: