hi… i’m loading some dynamic JPGs into my movie via a blank MC. the first time i load the movie and click the button to load the JPG it comes in fine. if i click another another button the JPG doesn’t load at all. if i click it again (or click another button to load a third image) the JPG will show itself. so basically the JPG doesn’t load on any odd-numbered click. but it all works fine when i preview the SWF locally - when i put a real http URL for the location of the JPGs and try the SWF on my server i get the alternating JPG magic trick. the SWFs and the JPGs are on the same server. my Flash cache is set to 1 MB and my SWF is only 100 KB, so… any suggestions?
the action i’m using to load the JPG is simple. “blank_image” is the instance of the container MC… the rest is getting the JPG’s URL out of an array called content_array… each button calls a different number of course (where [2][0] below is, it’s different for each button)
the whole code is about 60 KB so i won’t post it all in here. the FLA is very large as well. you can download the SWF below and check out what i mean. keep in mind, it works fine when it’s in a browser window. but when you view the SWF locally (via the standalone Flash Player) you have to click twice on a building just to get the JPG to show up. so right-click/control-click and save to your machine…
edit: link removed
@Claudio: you probably thought i was using an array to randomize the loadMovies… but it’s being used to store content for the other dynamic parts of the movie that are not necessarily related to the JPGs (as you can hopefully tell from the SWF).
That’s really weird… there’s no much I can do with the SWF, though. :-\
By the way, I totally misread your post, since the JPEG’s are loaded when viewed in a browser, those images are obviously not saved as progressive JPEG’s.
@kax: i sent you a PM with the URL of the FLA… take a look if you have a few minutes. be forewarned, there’s a lot of code in there that might not make sense! it’s my first go at OOP, hopefully it’s not too sloppy.
by the way, all the code (except a tiny bit for the dropdown menus) is on frame 3 of the layer ACTIONS.