I've read a few posts on similar topics, and there's gotta be a work around somewhere, but nothing I've found in 12 hours searching has given any hints to a solution to this humdinger :
The App : Is a system to design shop floor layouts by dragging around MC's
The Architecture : php, mySQL + Flash
The Problem : All of the product images are stored on the server and uploaded via the web, when the flash app starts it hits a php script which tells it which images are appropriate for this store. I've got some preloaders and load in all of the images to container objects fine. After the preloading is finshed I then assign the container objects the functionality they need (drag and drop, legal placement, that kind of thing)
So far so good. Then I stash all of these objects off screen to be "minted" - duplicated when a user wants to place a new one in the store.
So, of course when I duplicateMovieClip the container, the innerMC containing the loaded image is not copied.
OK, plan B -
duplicatedMc.innerMc = originalMc.innerMc.duplicateMovie
no play
Plan C -
preload another array full of references just plain image movie clips, and then duplicate these into the innerMc's of the duplicate parents.
again, no joy.
It's starting to look like the only way to do this is to get the image from the server each time a user needs a new object, pause the system while it loads, add the functionality to it, and then resume the system. This can't be done though, as the images are all quite large (zooming plays a large part in this project), and there's 6 of em per product.
There's only way I can think of around this, and it's bad news :
do 50 loads of each product at initialisation phase and hope that the storekeeper doesn't want to only stock cornflakes, which would make for a long wait at initialisation, but no hang ups during run time
So, I'm stuffed...
Anyone know if it's possible to make a library object from one created via AS ? That would solve everything...
Or if anyone has any info about the way Flash caches loaded content this might make the load times bearable.
Any help much apppreciated.. come to think of it - if some one can be charitable here, I'll be charitable too and do a $50 donation to a charity of your choice once this project is put to bed
