This is the part AS I am using but it just won't work. In the first place I
used ._width and _ height in stead of _xscale and _yscale, I prefer this to
use the _width but that just don't work. I use in combination with the
nummerstepper component.
 
var nstepListener:Object = new Object();
nstepListener.change = function(evt_obj:Object) {
 _level0.letterTypeWeergave_txt.autoSize = true;
 _level0.letterTypeWeergave_txt.multiline = false;
 var newTextSize:TextFormat = new TextFormat();
 currentX = _level0.letterTypeWeergave_txt._x;
 currentY = _level0.letterTypeWeergave_txt._y;
 currentWidth = _level0.letterTypeWeergave_txt._width;
 currentHeight = _level0.letterTypeWeergave_txt._height;
 currentScale = currentWidth/currentHeight;
 trace(currentScale);
 //newTextSize.size = letterGrootte_nstep.value;
 letterBreedte_nstep.value = letterGrootte_nstep.value*currentScale;
 _level0.letterTypeWeergave_txt._yscale = letterGrootte_nstep.value;
 _level0.letterTypeWeergave_txt._xscale = letterBreedte_nstep.value;
 _level0.letterTypeWeergave_txt.setTextFormat(newTextSize);
 _level0.letterTypeWeergave_txt.grootte = letterGrootte_nstep.value;
 _level0.letterTypeWeergave_txt.breedte = letterBreedte_nstep.value;
 _level0.holder.menu_acc.resultaten.spContentHolder.resultGrootte_txt.text =
_level0.letterTypeWeergave_txt.grootte;
 _level0.holder.menu_acc.resultaten.spContentHolder.resultBreedte_txt.text =
_level0.letterTypeWeergave_txt.breedte;
 _level0.letterTypeWeergave_txt._x=currentX;
 _level0.letterTypeWeergave_txt._y=currentY;
 updateAfterEvent();
};
letterGrootte_nstep.addEventListener("change", nstepListener);
var nstepListenerB:Object = new Object();
nstepListenerB.change = function(evt_obj:Object) {
 _level0.letterTypeWeergave_txt.autoSize = true;
 _level0.letterTypeWeergave_txt.multiline = false;
 var newTextSize:TextFormat = new TextFormat();
 currentX = _level0.letterTypeWeergave_txt._x;
 currentY = _level0.letterTypeWeergave_txt._y;
 currentWidth = _level0.letterTypeWeergave_txt._width;
 currentHeight = _level0.letterTypeWeergave_txt._height;
 currentScale = currentWidth/currentHeight;
 trace(currentScale);
 //newTextSize.size = letterBreedte_nstep.value;
 letterGrootte_nstep.value = letterBreedte_nstep.value/currentScale;
 _level0.letterTypeWeergave_txt._xscale = letterBreedte_nstep.value;
 _level0.letterTypeWeergave_txt._yscale = letterGrootte_nstep.value;
 _level0.letterTypeWeergave_txt.setTextFormat(newTextSize);
 _level0.letterTypeWeergave_txt.breedte = letterBreedte_nstep.value;
 _level0.letterTypeWeergave_txt.grootte = letterGrootte_nstep.value;
 _level0.holder.menu_acc.resultaten.spContentHolder.resultGrootte_txt.text =
_level0.letterTypeWeergave_txt.grootte;
 _level0.holder.menu_acc.resultaten.spContentHolder.resultBreedte_txt.text =
_level0.letterTypeWeergave_txt.breedte;
 _level0.letterTypeWeergave_txt._x=currentX;
 _level0.letterTypeWeergave_txt._y=currentY;
 trace(_level0.letterTypeWeergave_txt._x);
 updateAfterEvent();
};
letterBreedte_nstep.addEventListener("change", nstepListenerB);
 
 
 
met vriendelijke groeten,
 
 
T. van Zantvoort
MonTay WebArchitects
 
T: +31 (0)40-2300898
F: +31 (0)40-2954071
E: [EMAIL PROTECTED]
W: www.montay.nl <http://www.montay.nl/> 
----------------------------
Hardware: www.mlife.nl <http://www.mlife.nl/> 
E-shop:   www.vsnet.nl <http://www.vsnet.nl/> 
Own Site: www.1site2start.nl <http://www.1site2start.nl/> 
Supplies: www.inktsuper.nl <http://www.inktsuper.nl/> 
============================
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to