i'm trying to build a webmap application in flex. for ths, 've got a fxg-file which represents the maps. it's in a also there are some elements, like POIs, text et cetera in this group. i zoom the with scaleX and scaleY, this works just fine for the map.
but the problem is: ALL childen zoom also. i don't want this. they should stay the same place on the map and the same size.
heres some code the as function
<fx:Script>
<![CDATA[
import mx.skins.Border;
[Bindable]
public var hoehe:Number = 1;
[Bindable]
public var breite:Number = 1;
protected function zoom_changeHandler(event:Event):void
{
hoehe = zoom.value;
breite = zoom.value;
}
]]>
</fx:Script>
and the
<s:Scroller width="100%" height="100%" baseline="10">
<s:Group scaleX="{breite}" scaleY="{hoehe}" id="mapView" > <!-- zum zoomen -->
<s:Group horizontalCenter="0" > <!-- Enthält alle Objekte -->
<images:karte id="kartePanel" height="630" width="430" />
<images:akw id="akw1" scaleX="0.2" scaleY="0.2" top="158" left="190" />
<components:akwView x="154" y="131" resizeMode="scale">
</components:akwView>
</s:Group>
</s:Group>
</s:Scroller>
componentsLakwView contains some labels etc. this should not be resized?