Errors Loading ad swf in my swf

Discussion in 'The Flash Ad Creator' started by RAGolko, Feb 10, 2007.

  1. RAGolko


    Trophy Points:
    I wrote a flash 8 program that loads an external swf that you specify in a text file. swfs that I make myself in Flash 8 load fine. However when I specify a swf created by FAC, it won't load (I just get the loading... reloader image). In the Trace window I see:

    loadDataFile called...
    Error opening URL "file:///K|/Flash%20Files/Flash%20Puzzle%20Maker/Crifano/GolkoCoAd1_path.txt"
    Error opening URL "http:///crossdomain.xml"
    loading Data File...
    loadData..onData called...
    sort Values called...
    inside Arial
    [type Function]

    There is no file GolkoCoAd1_path.txt; why is it looking for this?
    the messages above have to be coming from the ad swf, not my program swf.

    Also, where is http:///crossdomain.xml and why is it looking for it?

    If I just double click the ad swf directly it plays.
    All I'm doing is loading the ad swf into a movie clip with this code:

    var puzzleContent:String;
    (I load the name of the swf file into puzzleContent; GolkoCoAd1.swf)
    var p:MovieClip = _root.createEmptyMovieClip("picture", 1);
    var loader:MovieClipLoader = new MovieClipLoader()
    loader.loadClip(puzzleContent, p);

    The GolkoCoAd1_assets folder is in the folder with both my swf and the GolkoCoAd1.swf. That folder only has data.txt and three images.

    Why is it looking for files that don't exist,
    and why then does the ad swf file work if I click on it directy in the same folder (below its assets folder) but it won't load in my move?

    Thanks in advance to whoever can help sort this out.

Share This Page