At 10/16/14 10:00 PM, MintPaw wrote:
That's not really relevant, trace the width before, apply whatever, trace it again. If it's different and not showing visually that's the issue.
Well I did this now as:
// two movieclips called "txtWas" and "strike" like in OP's
// one with width 7, the other with 140.95
trace(strike._width) //output: 7
trace(txtWas._width) //output: 140.95
strike._width = txtWas._width
trace(strike._width) //output: 140.9
trace(txtWas._width) //output: 140.95
And the first time I tried it with getAlphaBounds (not defined AFAIK):
// same arrangement, two mc's with different widths
import flash.geom.Rectangle;
var rectB:Rectangle = getAlphaBounds(txtWas) //txtWas' width is 190, strike's is 100
trace(rectB.width) //undefined
trace(txtWas._width) //190
trace(strike._width) //100
strike._width = rectB.width
trace(rectB.width) //undefined
trace(strike._width) //100
I wouldn't say it's a custom function, it's just a function that's not in the flash package. What would you consider custom?
Yeah that's what I meant, something that's not included by default in the flash package.