Skip to main content
Inspiring
June 9, 2006
Question

Preloader shows 0% but image loads

  • June 9, 2006
  • 3 replies
  • 299 views
To me, this looks like it should work but the text field either displays "loading... 0%" or if I reload the page it displays "loading...100%" but never steps to "image loaded". Don't know if this matters or not but this is an external .AS file that's included in the first frame of the main movie.

Also, I noticed that, intially, the text field displays the instance target path of itself. This has been the case in other areas of the site I'm working on. What would cause this?

This topic has been closed for replies.

3 replies

kglad
Community Expert
Community Expert
June 11, 2006
you're welcome.
kglad
Community Expert
Community Expert
June 10, 2006
if your textfield displays the target path to itself it's because the textfield instance name and variable name (of the textfield) are the same. there's no need for the variable name so remove it.
aniebelAuthor
Inspiring
June 10, 2006
Thank you kglad, that's the culprit!
kglad
Community Expert
Community Expert
June 9, 2006
you have 2 problems.

1. your else if(per>=100) which will prevent your loop from terminating. to remedy, remove the else part of that statement.

2. bigView_mc is undefined outside imageLoad because you made it a local variable storing the name of this.bigView_mc where this refers to the timeline that contains that code. to remedy, don't make it a local variable or use this.bigView_mc or the full path/instance name in LoadingStatus.
aniebelAuthor
Inspiring
June 9, 2006
Thanks for replying, Kglad. Ok, so I did a few things... none have worked. I don't think I understand completely.

1.) I declared the variable "bigView_mc" outside both functions
2.) I removed the word "else" from the LoadingStatus function to leave it as another if statement.

I still don't understand why my text field initially displays the target path to the text field before it displays the "loading... 100%"