Copy link to clipboard
Copied
Hey Guys i have a problem :'c it seems like external swf's don't Load when i export the movie .swf (it's working fine on debug) . If i create a Program to Load the Swf.. i'm currently using app.path to load the swf soo the swf is loaded in the same folder as the program. It Loads the Main Swf if i load external swf it doesn't Loaad :cthe problem isn't the syntax i checked and it does trace
Code:
var isSet3:Boolean = false
var Sentinelurl:URLRequest = new URLRequest("sentinels.swf");
var sentinel:Loader = new Loader();
menu.s_btn.addEventListener(MouseEvent.CLICK, l_sentinel);
function l_sentinel(e:Event) {
if (isSet3 == false)
{
Security.allowDomain("*")
sentinel.load(Sentinelurl);
addChild(sentinel);
sentinel.x = 0;
sentinel.y = 0
setChildIndex(sentinel, 2);
isSet3 = true
}else{
removeChild(sentinel);
isSet3 = false
}
}
I repeat the process 5x times to load other things.. and stuff, also it loads only one the others don't what is 100% Weird
I know, I know the name is horrible - Any Help.. Please?
By the Way i'm sorry about my enlish thought i'm not naturatly english.
Copy link to clipboard
Copied
It is not clear under what conditions the file does not load. When does it load properly and when does it fail?
Copy link to clipboard
Copied
It does load properly in the Flash Debug ( i'm currently using Flash CS5 ) it does not load Properly when i load the .swf in the program with the same directory.
@Edit Pleeeaase Help me :3
Copy link to clipboard
Copied
What is the difference between the Flash Debug and "in the program"?
Copy link to clipboard
Copied
Is the main swf on a web page. If so - most probably the reason is that flash attempt to load other swf from the same directory AS THE PAGE. Are these swfs in the same directory as the page?
You should use absolute - not relative path.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now