-
gotta bounce
loadMovie works locally, not remotely
I have a 'main.swf' that has an empty movieclip 'loader' with an instance name 'loader'. I have 'main.swf' importing 'title.swf' into 'loader' with the code:code: loader.loadMovie("title.swf");
on the root of frame 1 of 'main.swf'.
When I test 'main.swf' locally it works perfectly. I uploaded 'main.swf' and 'title.swf' to a server (same folder) and ran 'main.swf' but now it doesn't work.
If anyone knows what's going on, or anything I could try to fix it, I would be very appreciative.
-
-
you need the full path to your swf, i.e.
code:
loader.loadMovie("http://www.yoursite.com/flash/title.swf");
-
-
i know its not strictly needed but it seems to be the solution to these kind of loading problems more often than not.
-
gotta bounce
Fully qualifying was a good tip, but unfortunately didn't work. I'd post the link but you wouldn't have enough rights to see anything.
You'd think this sort of thing would have come up before...
-
gotta bounce
Ok... I was trying everything I could think of to simplify and isolate the problem and I got it to work. I make all my code with SciTE and use #include's to load the as files. When I copied all the code back into Flash it worked, but when it's imported it doesn't.
I'm gunna mess with it some more because I would much rather have 1 as file than pasting this code into my other 25 swf's.
Thanks gee and g.
-
err.... like gparis said, its not always the case lol.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|