
I have an swf movie which contains a UILoader (which should load an external swf (star.swf) on click of a button). My problem is that the swf movie will only load the external swf when it is played on the pc on which it was created(with the original flash cs4 files). When the main movie is played on a remote pc, the external swf does not load. Why can that be?
my code is:
invBtn01.addEventListener(MouseEvent.CLICK, showStar1);
function showStar1(e:Event):void{
introLoader01.load(new URLRequest("star.swf"));
ding.play();
}
I’ve also tried:
introLoader01.source = "star.swf";
I’ve also tried:
import fl.containers.UILoader;on the first frame of the main timeline, and then:
invBtn01.addEventListener(MouseEvent.CLICK, showStar1)
function showStar1(e:Event) {
var introLoader01:Loader = new Loader ()
var req:URLRequest = new URLRequest("star.swf")
ding.play();
addChild(introLoader01);
ldr.load(req);
}in the frame where I want the swf to display. It still doesn’t work on the remote pc - it only works on the pc with the original flash Cs4 files.
I would be really grateful if someone could give me a pointer. Is it something I’m not doing on publish maybe? (the star.swf is in the same folder as the main swf movie).
Or could it be some issue with Vista (remote pc has Vista - the pc the swf file was created on is windowsXP)? I’m using Adobe Flash Player to play the movie and I copied the published html file to the remote pc aswell…I just don’t know what else to try….
Any help greatly appreciated.
If you would like to make a comment, please fill out the form below.
Recent Comments