Repeating voice over after unloaded from loader.
Dear Friends,
iam creating an elearning app using AirforIOS. iam loading a file with more subfiles (5 or more swf - directly from internet). its working fine, when I load another lesson off line locally from appstorage location, previous lessons last file vo is still reading. Even I have removed all the files before loading another lesson or logout the previous lesson. In computer its running fine. When I install my app in tab its keep repeating the previously loaded file. Pls help me to solve this issue.
iam using following code pls check:
private function loadLMSFrame() {
var filePath = "assets/frame.swf" + "?tt=" + Math.random();
while (lessonLoader.numChildren > 0) {
lessonLoader.removeChildAt(0);
}
ldr = null;
ldr = new Loader();
ldr.unloadAndStop();
req = new URLRequest(filePath);
req.cacheResponse = false;
req.useCache = false;
ldr.load(req, lc);
ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, lmsframeLoadCompletedIOError);
ldr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, lmsframeLoadCompletedProgress);
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, lmsframeLoadCompleted);
}
----------------------------------------------------------------------------------------------------------------------
public function loadLessonData() {
mainPath = root.loaderInfo.url;
if (LMSMain.onlineMode) {
storagePath = LMSMain.internetlocation;
} else {
storagePath = "app-storage:/";
}
}
Thanks and in advance.
Regards,
Syed Abdul Rahim
