-
loadMovie in MC
Hi,
I've got 2 swf files.
let's call em: page1.swf & page2.swf
on page1.swf frame 1 there is a button that has a gotoAndPlay(5)
on that frame 5 I've made an empty MC in which I want to load page2.swf, but I can't seem to make it work.
Any ideas on how to make it work?
-
MAke sure you have given the empty movieclip an instancename, I think most people use the instancename container_mc.
On frame 5 add the following Actionscript:
Code:
container_mc.loadMovie("page2.swf");
/Mirandir
-
I did mine like this
Code:
loadMovie("page2.swf", "myMC");
Either one will work
-
Ok, it works! THNX!
next problem..:S
on page2.swf there is a dynamic text part with a loadVariables("info.txt","txtbox") command.
When I test the file (page2.swf) I see the text loaded, but when I test Page1.swf (where page2.swf is now inserted) I don't see the text...
Why?
-
Sounds like it would be some kind of problem with paths. Either to where the variables end up, which seems unlikely, or where the textfield gets the variables from. It could also be so that if page2.swf is in another folder/domain so it looks for the textfile in the wrong place.
/Mirandir
-
Nope, that doesn't seem to be the problem...
Something else is wrong...
dunno what, but if I reconstruct the entire concept, it does work.
But the one I want it to work on doesn't work.
I'll figure it out somehow...
Thanx for the help
-
1 Attachment(s)
Can't get it to work...
I simply can't get it to work...
I've attached the files, maybe someone could find out what the problem is...
I can't...
-
Oh now I see... The movie is loaded into a movieclip that is under a mask so you must embed the font in the textfield in the about movie.
/Mirandir
-
How do I embed it?
(srry, but I'm still a newby... just learned flash 2 days ago)
-
Don't worry about it. Here's the procedure to embed the font:
1. Select the dynamic textfield.
2. Open properties panel. Click the [character] button to the far right inside the panel.
3. Select the characters you need to use. For english I think it's enough with a-z(both upper- and lower case), numerics and "punctuation".
/Mirandir
-