Cancelled

actionscript debug

i have bug in actionscript and can not find a way to debug.

my .as file content as below:

class time_counter extends MovieClip

{

var total_time_tf, time_txt, total_time_str, __get__total_time,

__get__cur_time, __set__cur_time, __set__total_time;

private function time_counter()

{

super();

total_time_tf = new TextFormat();

[url removed, login to view] = 16763904;

time_txt = time_txt;

} // End of the function

function set total_time(num)

{

trace (num);

num = [url removed, login to view](num % 3600);

total_time_str = this.format_time(num);

[url removed, login to view] = "00:00 / " + total_time_str;

[url removed, login to view](8, 16, total_time_tf);

//return (this.total_time());

null;

} // End of the function

function set cur_time(num)

{

[url removed, login to view] = this.format_time(num) + " / " + total_time_str;

[url removed, login to view](8, 16, total_time_tf);

//return (this.cur_time());

null;

} // End of the function

function format_time(num)

{

var _loc4 = "";

var _loc3 = 1;

while (_loc3 > 0)

{

var _loc1 = [url removed, login to view](num / [url removed, login to view](60, _loc3));

if (_loc1 > 10)

{

_loc4 = _loc4 + ([url removed, login to view]() + ":");

}

else if (_loc1 < 10)

{

_loc4 = _loc4 + ("0" + [url removed, login to view]() + ":");

} // end else if

num = num % [url removed, login to view](60, _loc3--);

} // end while

if (num < 10)

{

return (_loc4 + "0" + [url removed, login to view]());

}

else

{

return (_loc4 + [url removed, login to view]());

} // end else if

} // End of the function

} // End of Class

in my main atcion frame, i have written a function that call time_counter as

below:

function show_progress()

{

var _loc1 = [url removed, login to view] / last_time_num;

if (!isNaN(_loc1))

{

[url removed, login to view] = [url removed, login to view];

time_counter.cur_time = [url removed, login to view]([url removed, login to view]);

if (_loc1 >= 1)

{

clearInterval(playing_interval);

} // end if

} // end if

} // End of the function

function getPlayerVersion()

{

var _loc2 = [url removed, login to view];

if (_loc2)

{

_loc2 = getVersion();

} // end if

var _loc1 = [url removed, login to view](" ");

_loc1 = _loc1[1].split(",");

return (Number(_loc1[0]) + Number(_loc1[1]) / 100 + Number(_loc1[2]) /

10000 + Number(_loc1[3]) / 1000000);

} // End of the function

when i comile the .fla to be .swf, it happen below error:

**Error** Scene=Scene 1, layer=Action Layer, frame=1:Line 16: The property

being referenced does not have the static attribute.

time_counter.cur_time = [url removed, login to view]([url removed, login to view]);

can u tell me what can i do for this bug? i have no idea and search the

answer from google and get no idea....i already 2 days do not sleep, pls

help!

Skills: Adobe Flash

See more: actionscript 2, get math, find math answer, what happen, trace, sleep, pow, null, debug, actionscript, split file, google search frame, google attribute, swf fla help, super attribute, frame color, time swf, split text file content, fla already, actionscript help, flash fla error, trace file, fla static text search, split line, call action

About the Employer:
( 0 reviews ) hk, Hong Kong

Project ID: #223954