Technologies
Tag Cloud
9slice   access   acrobat   actionscript   alignment   and   builder   buttons   catalyst   code   coding   color   compatibility   component   components   copying   custom   customize   data   design   drag   drop   embed   export   extensibility   field   fireworks   flash   flashcatalyst   flex   form   gallery   gradient   gui   html   id   illustrator   image   import   indesign   integration   interactions   javascript   jquery   layers   library   links   name   pdf   photoshop   player   ppt   preloader   properties   psd   resize   reuse   same   saturation   scroll   share   skin   skinning   state   states   store   swap   swf   tabbing   template   text   timeline   tools   touch   txt   usability   view   wireframe   workflow   workspace  
Community Statistics
262 Submissions
164 Comments
1,954 Votes
556 Users
Invite A Friend
This Idea is hidden. Change Visibility
Custom Components' instance names should be unique and should use camel case
(D2203)
6
Vote Score
Submitted:
08/28/2010
Status: 
New Submission

When you add multiple instances of the same Custom Component to the stage:-

 

a) the "instance" name is automatically set as the same as the class name (MidLevelComponent in my example). This can be confusing since you can't easily tell the difference between a reference to the class and a reference to the instance in Catalyst.

 

b) all the automatically generated "instance" names are identical!!! This can be confusing when you come to add an interaction. The "Choose State" dropdown shows an unhelpful list of instance names, all of which are identical making it difficult to choose the correct instance. To confuse further they all look like class names since the first letter is in upper case.

 

Neither of these issues is a problem in a trivial demo type applicaiton but in any serious application this could be confusing. it would be better if the generated instance name began with a lower case letter. Also the code generation engine appears to assign an explicit id property for the component. That's the good news. The bad news is that the code generation engine appears to be using different rules again for generating the ids. The generated ids don't follow ActionScript naming conventions either. Instead they're all lower case (e.g. id="customcomponet112", id="customcomponent113"). Doh!

 

As a tool whose vision is to improve the designer-develop workflow, encouraging designers to use the same naming conventions as developers (instance names that begin with a lowercase letter and class names that begin with a uppercase letter) might help realize the vision.

 

(Example screen shot attached).

Promotes

Demotes

No evaluations ready
Recorded Outcomes
Record an Outcome