Oh dear... I've been messing around with preloading and netdone, castlib.filename etc. to dynamically load casts in a shockwave environment.
As posted in my previous message(s) it is exhibiting some strange behaviour. Basically, the preload works and pulls down the file into the users cache, netDone is reporting true, I am then issuing castlib.filename = the url used in the preload. Users on a fast machine... no problem. The castlib is updated - therefore the images on screen change. Users on a slow/normal modem... problem. Even though the castlib is updated, setting the filename of the castlib does not result in the images being changed. I got around this by issuing the preload/netdone/.filename commands twice (essentially looping through the same set of frames) and forcing the app to wait for a mouseclick between each command. That way, the castlib change works with users on a slower modem. 1. preloadnetthing - wait for mouseup - check netdone - wait for mouseup - set filename of castlib - wait for mouseup - 2. preloadnetthing - wait for mouseup - check netdone - wait for mouseup - set filename of castlib... However, if I take out the mouseclicks so the commands run back to back: 1. preloadnetthing - check netdone - set filename of castlib... 2. preloadnetthing - check netdone - set filename of castlib... It doesn't work again. Looks like netdone is telling lies... I've spoken to macromedia UK about this, they have looked at a sample file (http://www.ianmmj.plus.com/) and it does the same for them. They said they've heard of this type of problem but not in Director. The way they got around it was using a loop to issue the commands twice. However it doesn't work unless I put the wait for mouseup between each command, something I cannot realistically expect the user to do? Any help would be **VASTLY** appreciated. Regards, IanMJ [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]) Lingo-L is for learning and helping with programming Lingo. Thanks!]
