0
votes

I am making a preloader in a swf like this

stop();
onEnterFrame = function ()
{
  loadPercent = Math.round(_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
  loadBar._xscale = loadPercent;
  loadText.text = loadPercent + "%";
  if (loadPercent == 100)
  {
     play();
  }
};

and i am testing the movie with Simulate Download option to check if it is working.When i test it flash player does not show the preloader . it only shows it for a fraction of second when the content is totally loaded.I want my preloader should show the progress.

1

1 Answers

1
votes

Make sure your non-preloader assets are not exported nor placed on the first frame. Refer to this article and browse to the 'loading complications' section