because you nowhere setting a new width/high? you are just assigning
it to wid1 and hei1 but not the the imagePane object.
Am 27.03.2007 um 16:33 schrieb Laurent CUCHET:
I try to resize image when it is loaded, and it doesnt work
Do you ssee why ?
Thaank you
//var height and width and scale of image
var wid1;
var hei1;
var wid1hei1;
var siw = 300;
//combobox load an image and resize
imagesCb.addEventListener("change", montreImage);
//
function montreImage(event:Object):Void {
imagePane.contentPath = "images_vis/"+imagesCb.value;
_root.text_mc._visible = 0;
wid1 = imagePane._width;
wid1_txt.text = wid1;
hei1 = imagePane._height;
hei1_txt.text = hei1;
wid1hei1 = wid1/hei1;
wid1hei1_txt.text = wid1hei1;
}
_______________________________________________
[email protected]
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
bitrocker & typographique
Lars Schwarz
Gottorpstrasse 20
26122 Oldenburg
T +49(0)441 2171 354 0
F +49(0)441 2171 354 2
M [EMAIL PROTECTED]
W www.bitrocker.com
W www.typographique.de
_______________________________________________
[email protected]
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