Hi I've noticed a weird situation with Flash Lite 2.1 in regards to loading images. The application I'm developing needs to load from both the local file storage system as well as via the data connection to a webserver.
What is strange is that when the code below is run, the local file loading buttons work fine until the user clicks the other "remote asset loading buttons" , which call to the ones on the webserver. After that local file loading does not work at all, even though it did before!
My guess is that perhaps I should add something like "file:\\" onto the local one, but haven't a clue what the path might be on the PocketPC to local areas (e.g. storage card etc), hence the local asset is currently in the same folder as the flash lite .swf file.
createEmptyMovieClip("image1",1)
buttonLocal1.onPress=function(){
trace("loading from local");
image1.loadMovie("localimage1.swf");
}
buttonLocal2.onPress=function(){
trace("loading from local");
image1.loadMovie("localimage2.swf");
}
buttonServer1.onPress=function(){
trace("loading from server");
image1.loadMovie("http://www.domain.com/assets/serverimage1.swf");
}
buttonServer2.onPress=function(){
trace("loading from server");
image1.loadMovie("http://www.domain.com/assets/serverimage2.swf");
}
Anyone got any ideas on this?




Reply With Quote