Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7855305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:20:38+00:00 2026-06-02T20:20:38+00:00

I am having a consistent problem with Flash Builder 4 in a very specific

  • 0

I am having a consistent problem with Flash Builder 4 in a very specific case where the intellisense auto-complete stops working.

It happens when I use inline components in a DataGroup.
I have one Script tag for the component class, and then, in the DataGroup I have a Component tag under itemRenderer and a Script tag under that component’s class tag. At this point intellisense stops working. Has anyone encountered this and found a work-around?

Here is a source code example.
Load it in Flash Builder and if you have the same problem I do, auto-complete will not work in first Script tag. This is annoying since I like to use inline components.

<?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" 
 xmlns:s="library://ns.adobe.com/flex/spark" 
 xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300">
  <fx:Script>
    <![CDATA[
      //Try to use auto-complete
      //It doesn't work
      var p:Object;
    ]]>
  </fx:Script>
  <s:DataGroup>
    <s:itemRenderer>
      <fx:Component className="MyItemRenderer">
        <s:Group implements="mx.core.IDataRenderer">
          <fx:Script>
            <![CDATA[
              //auto-complete is ok here...
              private var _data:Object;

              public function get data():Object {
                return _data;
              }

              public function set data(value:Object):void {
                _data = value;
                invalidateProperties();
              }
            ]]>
          </fx:Script>
        </s:Group>
      </fx:Component>
    </s:itemRenderer>
  </s:DataGroup>
</s:Group>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T20:20:40+00:00Added an answer on June 2, 2026 at 8:20 pm

    Ok, here is another work-around which works better since it lets me keep the item renderer code in the same mxml file with minimal change. I found it quite by chance. What you do is instead of defining the item renderer’s <fx:Component> tag inline as a child element of the <s:itemRenderer> tag, you move it to the <fx:Declarations> tag and give it a class name. Then, put that class name inside the <s:itemRenderer> tag. This is slightly better for me than externalizing the item renderer component.

    Here is a bare-bones example:

    <?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/mx">
      <fx:Declarations>
        <fx:Component className="PrintLine" id="printLineFactory">
          <s:Label implements="mx.core.IDataRenderer" width="100%">
            <fx:Script>
              <![CDATA[
                private var _data:Object;
    
                public function get data():Object {
                  return _data;
                }
    
                public function set data(value:Object):void {
                  _data = value;
                  invalidateProperties();
                }
    
                override protected function commitProperties():void {
                  super.commitProperties();
                  if (_data) {
                    text = String(_data);
                  }
                }
              ]]>
            </fx:Script>
          </s:Label>
        </fx:Component>
      </fx:Declarations>
      <fx:Script>
        <![CDATA[
          //auto-complete works here now!
        ]]>
      </fx:Script>
      <s:layout>
        <s:VerticalLayout />
      </s:layout>
      <s:Scroller height="100">
        <s:viewport>
          <s:DataGroup width="100%">
            <s:layout>
              <s:VerticalLayout />
            </s:layout>
            <s:itemRenderer>
              PrintLine
            </s:itemRenderer>
          </s:DataGroup>
        </s:viewport>
      </s:Scroller>
    </s:Application>
    

    That I have to do this is still stupid and I still hate Adobe. 🙁

    UPDATE:
    Using the class name “PrintLine” only works in the above code because the root tag is an Application tag. In custom sub-components, you need to bind to the factory reference instead:

    <s:itemRenderer>{printLineFactory}</s:itemRenderer>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having a bit of a problem, Due to the source-control set-up we use, each
So I'm learning python, and I seem to be having a consistent problem with
I'm having a very strange problem. I'm running a loop in a detached thread,
I am having a strange problem with IntelliSense in Visual Studio 2010 C# Express
I'm having the following problem with grails' 1.2.1 domain classes: When I set a
I'm having real headaches trying to work out a problem I have at the
Problem Statement: Currently, there are two requirements namely having the correctly populated element in
having spent hours on this problem i need to throw it out to the
I'm having a problem getting the root URL with this PHP function I composed.
I'm wondering if this is something somewhat simple, but I'm having a problem ONLY

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.