Flashcoders,
I am looking to find x/y values for a single character in a text field.
Anyone know of a solution?

quote_arr = new Array();
quote_arr.push({note:"Flash is fun!"});
var theQuote = quote_arr[0].note;
theText.text = theQuote;
//first 4 lines set the theQuote = "Flash is Fun!"
var index = theQuote.indexOf("F");
trace("index of D: "+index); // output: 0
if(index<=17){
d_drip._x = theText._x + (10*index);
}else{
        d_drip._x = theText._x + (10*index);//position on line 2
d_drip._y = d_drip._y +55;//down a line
}
trace("d_drip._x: "+d_drip._x);
trace("theText._x: "+theText._x);
trace("d_drip._y: "+d_drip._y);
trace("theText._y: "+theText._y);


_______________________________________________
[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

Reply via email to