How to make auto-complete work in custom components in Flash MX 2004

I just finished the custom actiosn portion of our BLDoc project and ran across Gregg Wygonik’s blog entry asking about code hints for custom components.

When you create your custom actions file as long as you use the form id="[com.blinex.charts.AreaChart]“ for your classes then you’ll get code hints on strongly typed variables. The id must be the fully qualified class name and must be enclosed inside square brackets. This provide code hints both for variables declared using the fully qualified name and when the class is imported.

To get the code-hinting on the colon, the list of classes, you need to add a new folder to you custom actions that lists types. Here’s an example from our B-Line Charting Components 3.0, which will be released any day now.

<folder
   name="Types"
   id="Types"
   index="true"
   tiptext="Types that can be used for strong typing"
   helpid="0">

   <string
      name="AreaChart"
      tiptext="AreaChart type"
      text="AreaChart"
      helpurl="Help/BLineCharting30/content_72c6061a.htm" />

   <string
      name="BoxChart"
      tiptext="BoxChart type"
      text="BoxChart"
      helpurl="Help/BLineCharting30/content_23f3e2f8.htm" />

   <string
      name="BubbleChart"
      tiptext="BubbleChart type"
      text="BubbleChart"
      helpurl="Help/BLineCharting30/content_8497b033.htm" />
   .
   .
   .
</folder>

There is a big catch though, the suffix style code hints don’t support id’s that have a period in them. If you’re going to set up suffixes you have to use an id such as id="comblinexchartsAreaChart" which of course breaks the typed hints.

So, component developers have to choose–do they want to support typed hints or suffixed hints?

9 Responses to “How to make auto-complete work in custom components in Flash MX 2004”

  1. g.wygonik says:

    somehow i knew you or Chafic would be the ones to know. :-D
    thanks much!

    personally, i perfer typed hints, so i think my components will go that route. makes it easier then trying to remember all the necessary suffixes and gets the user into the habit of using typed variables.

    thanks again! you rule! :-) g.

  2. g.wygonik says:

    somehow i knew you or Chafic would be the ones to know. :-D
    thanks much!

    personally, i prefer typed hints, so i think my components will go that route. makes it easier then trying to remember all the necessary suffixes and gets the user into the habit of using typed variables.

    thanks again! you rule! :-) g.

  3. Thank you for the coments on your website. Can you recomend a good location for me to find cheap medicines? My mama is not well right now. Can you advice? Thank you.

    Pablo Villarino

  4. Hi - I was looking for some information on weight loss. Do you know a good site to visit?

    Thanks for your help
    Martin Brown

  5. buy Soma says:

    Hey, interesting site, perhaps youd like to check out mine: buy Soma

  6. ambien says:

    Hey, interesting site, perhaps youd like to check out mine: ambien

  7. Hi Guys

    Thanks for taking the time posting. MSN have finally launch blogs, what was with the delay?
    Call Centres Initiative

    Cya
    Bruce

  8. Caiek says:

    So much spam (

  9. Edasi says:

    Spam really sucks( delete it