Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

External SWF doesn't Load

New Here ,
Mar 29, 2013 Mar 29, 2013

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.

TOPICS
ActionScript
767
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 29, 2013 Mar 29, 2013

It is not clear under what conditions the file does not load.  When does it load properly and when does it fail?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 29, 2013 Mar 29, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 01, 2013 Apr 01, 2013

What is the difference between the Flash Debug and "in the program"?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 02, 2013 Apr 02, 2013
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines