Percent loader not working

Here is my code, the rest of the loading works, its just no loading screen, can someone help ? Thx
PS : All in Actionscript in frame 1 due to my limitations . Thanx

import mx.transitions.Tween;
import mx.transitions.easing.*;
// PERCENT LOADER

bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total*100;

if (bytes_loaded < bytes_total) {
//

_root.popup._alpha = 100;
_root.loadText = Math.round(getPercent)+"%";
} else
{
// IF FULLY LOADED

_root.popup._alpha = 0;
_root.loadText = ‘’;