11/11/2009 5:11:17 AM
Title:
Problem loading external swf into scrollpane
Hi..
I'm loading external swf into a scrollpane. When i click on the next button, it will load another swf. The loading works fine when i'm in test movie mode. However, when i open the swf itself, only the 1st swf file loads, the subsequent swf does not load at all, it give me a blank page....
Here is my code..
my_sp.contentPath = "file1.swf";
this.nextBtn.onRelease = function() {
my_sp.contentPath = "file2.swf";
}
Why is this happening? Can somebody help me?? Thks...
Inder
Points: 2980
Posts:0
11/11/2009 5:38:13 AM
there should not be any such prob , until there is some prob in accessing file. So check the file name and path . Change the file2 to some other name and then check .
Your code is fine.
11/11/2009 5:47:39 AM
reverse the file names use file2.swf as default and on press set file1.swf then check. Sometimes there is file access prob like locked by some application. I faced this in MAC file uploading in flex .
11/11/2009 7:57:05 PM
I've tried using another file.. however the problem still exist.. i think there is a bug in actionscript 2.0..
i tried using actionscript 3.0 and it works fine...
Inder
Points: 2980
Posts:0
11/12/2009 1:00:40 AM
I tried using your exact code , it works fine on my system , using windows xp , flash player latest Flash CS3, You can try on some other system. May be a system specific problem.
11/12/2009 1:27:42 AM
I found out the problem.. it is the security problem.. for flash player 8 and above..