after zoom in/out to open callout is wrong position
dear all
after zoom in/out screen , open callout.
i'm having problems position
code:
<fx:declarations>
<s:callout id="bcallout"
mousedownoutside="bcallout.close()"
mouseup="bcallout.close()"
backgroundcolor="0x999999"
contentbackgroundalpha="0"/>
</fx:declarations>
<fx:script>
private function zoom_action(act:string):void {
var z:number;
if(act=='+'){
z=0.25;
}else{
z=-0.25;
}
var my_matrix:matrix = new matrix();
my_matrix.scale(gr1.scalex+z, gr1.scalex+z);
gr1.transform.matrix=my_matrix;
}
</fx:script>
<s:group id="gr1">
<s:button id="btn1" x="24" y="50" label="btna" click="bcallout.open(btn1)"/>
<s:button id="btn2" x="100" y="100" label="btnb" click="bcallout.open(btn2)"/>
<s:button id="btn3" x="170" y="150" label="btnc" click="bcallout.open(btn3)"/>
</s:group>
<s:button id="zoomin" y="10" right="108" width="44" height="42" label="+" alpha="0.5"
click="zoom_action('+')"/>
<s:button id="zoomout" y="10" right="59" width="44" height="42" label="-" alpha="0.5"
click="zoom_action('-')"/>
any ideas i'm doing wrong?
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment