header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
khze86
Points:180
Posts:8

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...



1
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.

2
TerryFlexing
Points: 0
Posts:0
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 .

3
khze86
Points: 180
Posts:8
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...

4
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.

5
khze86
Points: 180
Posts:8
11/12/2009 1:27:42 AM



I found out the problem.. it is the security problem.. for flash player 8 and above..


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 4+7 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions