|
Prev: Streaming Video
Next: hhhelp!
From: OscarSSS on 6 Apr 2006 10:48 I am using Flash 8 Professional,and I am trying to load a swf into a movie clip, I never had a problem with other versions, but I can't make it work with Flash 8. What I did it was to asign a scrip to the first keyframe, which is loadMovie("welcome.swf", "this.container"); -previously I create a mc and I assigned it the intance name of "container", I have done this several time on other versions , so there is any changes on Flash 8 so it is done differently.
From: yuvalz on 6 Apr 2006 11:12 I had similar issues. What worked for me was something like: loadMovie("myMovie.swf","_level1"); Loading into levels appeared to work consistently.
From: pyroman_dk on 6 Apr 2006 11:45 Well simply because your code isn't correct! hehe I suppose the type checking in FP8 is more strict than earlier versions, because you are trying to use the reference to a movieclip as a string. When you use loadMovie(URL, MOVICLIP); - the way you do with two parameters, it requires a direct reference to the movieclip OR the instance name of the movieclip as the second parameter - you are doing a kind of both things - you put the reference in "" - as a string which is wrong... So what you have to do is to use on of the ways - or a third one ;) loadMovie("welcome.swf", "container"); loadMovie("welcome.swf", this.container); this.container.loadMovie("welcome.swf"); // I prefer this one, as it seems more object oriented Hope it solves your problem...
From: OscarSSS on 6 Apr 2006 11:56 No it did not work!, I did exactly what you told me to do, and when I preview everything is gone
From: OscarSSS on 6 Apr 2006 12:05 I am sorry, it was some kind of script in the container instace, thats why it didn't work, but your script works perfectly!, thank you!!
|
Pages: 1 Prev: Streaming Video Next: hhhelp! |