ok here what i wanna do, i have meter like thing in flash that display the value it reads from an external text file. the same value read is use to move the meter hand to an approximate value in the meter
below is the script
var maxvalue:Number = 700;
loadText = new LoadVars();
loadText.load("Text.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
visitors.html = true;
visitors.htmlText = this.myVisitors;
var actualValue:Number = this.myVisitors;
vhand_mc._rotation = (275/maxvalue)*actualValue;
trace (actualValue);
}
}
the problem is the line mark red, now if i were to replace actualValue with a number, the hand does move, which mean the calculation is correct. but if actualValue is use i get 0 in vhand_mc._rotation. but the trace shows that there is value in actualValue
so i am stump on why it doesnt work even though there is number in actualValue. any help would be much appreciated
thanks
actionscript help
May 9 2006, 03:33 PM, updated 20y ago
Quote
0.0180sec
0.74
5 queries
GZIP Disabled