Hi all,
Having a vary strange problem when viewing a flash file on the web.
I have an as3 flash file which loads an external SWF file when a skip video button is clicked, the external SWF is as2. Within the external SWF file there are some onRelease getURL instructions… all works perfectly when played locally, However when published on the web none of the onRelease functions work!!
I have published the as2 file on its own and these onRelease instructions work fine!
Can anyone tell me what is happening here… I would rather not have to recode the as2 file to resolve the issue.
Am I missing something?? why is this only happening when published to the web?
AS code below
Thanks
Terry
AS3 CODE: from main file
// When skip video button pressed play this SWF
skipvid.addEventListener(MouseEvent.CLICK, skipClick);
function skipClick(event:MouseEvent):void
{
//remove video and other objects from stage
ns.seek(-1);
ns.pause();
removeChild(myvid);
myvid=null;
removeChild(replayvid);
replayvid = null;
removeChild(skipvid);
skipvid = null;
var request:URLRequest = new URLRequest("Standard-home-page-v1.swf");
var loader:Loader = new Loader()
loader.load(request);
addChild(loader);
}
AS2 CODE:onRelease snippet from external as2 file
pic1.onPress = function() {
getURL("./private-events","_self");
};
pic2.onPress = function() {
getURL("./","_self");
};
pic3.onPress = function() {
getURL("./corporate-events","_self");
};