Re: [Flashcoders] Call method by name: A few questions...

2011-01-18 Thread Micky Hulse
Here is my latest solution: Document class: === import com.foo.util.GoogleMaps; ... _map.controls = ['PositionControl', 'ZoomControl', 'MapTypeControl', 'ScaleControl', 'OverviewMapControl']; === Here's com.foo.util.GoogleMaps: === import

Re: [Flashcoders] Call method by name: A few questions...

2011-01-15 Thread Henrik Andersson
You want the getDefinitionByName function, not the dynamic property access syntax. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Call method by name: A few questions...

2011-01-15 Thread Leandro Ferreira
You must declare each class or they are not gonna be compiled. Just put all the class names you need separated by comma: ZoomControl, PositionControl, ScaleControl; * * * @leandroferreira* * 55 61 91151257* On Sat, Jan 15, 2011 at 07:31, Henrik Andersson he...@henke37.cjb.netwrote: You

Re: [Flashcoders] Call method by name: A few questions...

2011-01-15 Thread Micky Hulse
Hi All! Many thanks for the replies, I really appreciate the pro help. :) See inline replies below: On Fri, Jan 14, 2011 at 8:48 PM, Dave Watts dwa...@figleaf.com wrote: I'm not sure if this is what you're asking for. Doh, sorry if my question was a little convoluted and ambiguous. :( new

Re: [Flashcoders] Call method by name: A few questions...

2011-01-14 Thread Dave Watts
I'm not sure if this is what you're asking for. 1. How to call com.google.maps.controls.* methods by name? new com.google.maps.controls.ZoomControl(); 2. Is it bad practice to pass an array to a setter? Not if you have a property of the object that is an array. Dave Watts, CTO, Fig Leaf