14
Apr
04

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. 1 g.wygonik Apr 14th, 2004 at 8:11 am

    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. 2 g.wygonik Apr 14th, 2004 at 8:13 am

    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. 3 order Azithromycin online Nov 5th, 2004 at 8:17 am

    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. 4 zone diet customer reviews Nov 5th, 2004 at 4:12 pm

    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. 5 buy Soma Nov 21st, 2004 at 8:23 pm

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

  6. 6 ambien Nov 24th, 2004 at 6:57 am

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

  7. 7 Call Centres Initiative Dec 4th, 2004 at 3:21 am

    Hi Guys

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

    Cya
    Bruce

  8. 8 Caiek Feb 3rd, 2007 at 8:40 am

    So much spam (

  9. 9 Edasi Feb 3rd, 2007 at 11:40 am

    Spam really sucks( delete it

Comments are currently closed.