Skip to main content
melas076
Known Participant
April 3, 2011
Question

PROBLEM TO LOADMOVIE SWF INTO FLASH

  • April 3, 2011
  • 1 reply
  • 1755 views

      Dear all,

I made a banner swf with another software and in my main flash i put this code :

loadMovie("engine/cu3ox.swf",_root.Headermc);

and it isnot appear at all......

what can i do?

I will appreciate your help!!!!

Regards,

MELAS

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
April 3, 2011

Are you testing locally in Flash or on a server in a web page?

melas076
melas076Author
Known Participant
April 3, 2011

locally

Ned Murphy
Legend
April 4, 2011

it is working this one:

var ldr:Loader = new Loader();
ldr.load(new URLRequest("http://www.nedwebs.com/index.swf"));
addChild(ldr);

i tried again this one :

var ldr:Loader = new Loader();
ldr.load(new URLRequest("engine/cu3ox.swf"));

but error in output:

Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///FLASH%20WEBSITE/engine/cu3oxXML.xml
    at com.modularweb.imageGalleries::Cu3ox/loadXML()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at cu3ox_fla::MainTimeline/frame1()

also there are a file code xml, js and html to run this file swf only. it is working very well without putting in my flash.

so what can i do now?


If your file that you are trying to load uses an xml file, then it is not finding that file.  It does not appear to be an issue of the swf file not being found.  You need to work out your file structure properly.  You may need to read up on whatever software you used to create the swf to determine how you are supposed to configure things folder-wise.

As for whether or not your swf is an AS3 or an AS2 file, first get it loading properly in the AS3 version.  Then try it again using the AS2 version.  If it doesn't load, it is likely an AS3 file (an AS3 file cannot work in an AS2 file).