This content has been marked as final. Show 3 replies
Not really sure how the loader component works, but in general the answer to "It works locally, but not on the web" type of question is that you are not allowing time for the content to load.
Another issue might be that the jpgs are saved as progressive jpegs. I know that under Flash 7 and earlier you cannot dynamically load a progressive jpeg. But under Flash 8 I think you can. (Can anybody confirm this for me?) So it could be possible that in the testing environment you have Flash 8, but only have Flash 7 plug-in installed for your web browser.
Other than that a link to said page would be very helpful. :)
Okay seriously not, it's working. When I was making a link for you to view, I tested it and noticed the link itself wasn't working. I created a new folder on the server, dumped it all in there, and it's working.
http://www.rbcontrolsystems.com/testing/logo/test.htm All that is, is just a masked contentLoader. Thanks anyhow, if it wasn't for you asking for the link, as none of it was available to the WAN before, I'd have never solved this.
The original folder it was in was called "includes" so perhaps that's a reserved server folder with special permissions?
Cool. Glad that worked out. I have no idea about "includes" but it sounds like something that could be special.
You could probably make you swf considerably smaller if you didn't use the loader component. I tend not to use any of the premade components because they generally add a big chunk to your published files. Instead you might want to look into using the MovieClipLoader class for future projects.
Also – not that you asked for it, but you get what you pay for – if you are interested here is how I would conceptualize your project.
Make an array of all the external graphics you want to load.
//and so on.
You can then avoid having all those if statements by just saying:
It would also make it easier if you need to add pictures or have fewer.
var theFlag = Math.floor(Math.random()*myPics.length);
Finally, if you wanted to get really fancy, you could shuffle the array and then just step one-by-one. That way all pictures would be loaded without repeats. If you want to go down that path we can help!