[flexcoders] Casting not working to avoid Changes to property, length...will not be detected warning

2005-06-21 Thread Tracy Spratt
Title: Casting not working to avoid Changes to property, length...will not be detected warning I have a custom object, and in the example line below, an instance is returned by a function. The object has a property, valuesarray, which is typed as an Array. This is a case where I would

Re: [flexcoders] Casting not working to avoid Changes to property, length...will not be detected warning

2005-06-21 Thread Thijs Triemstra | Collab
i usually make a var in actionscript and bind this to mxml..// actionscriptvar binding = (Number(app.p('DrawingData').valuesarray.length) == 0);// in mxmlmx:ComboBox visible = {binding}/i also would like to know if that is the best/only way to do it..ThijsOp 22-jun-2005, om 2:41 heeft Tracy

RE: [flexcoders] Casting not working to avoid Changes to property, length...will not be detected warning

2005-06-21 Thread Tracy Spratt
Yes, that will work, plus one should always type their variables. But I would rather not have to create this extra var if I dont have to. The Casting trick usually works, but not in this situation. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On