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
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
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
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
Abbreviated AS3:
==
import com.google.maps.controls.*;
// Setter:
public function set controls($a:Array):void {
_controls = $a; // Array of string method names.
};
private function onMapReady($e:Event):void {
// This works:
_map.addControl(new ZoomControl());
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
6 matches
Mail list logo