PDA

View Full Version : swf file with Quiz-component doesn't work out when loaded into a movie!


icechen_bin
09-02-2005, 02:30 AM
hey experts! please help me out of this: i made a series of Quiz swf files with the MX Quiz template, and made an index film, which use "loadmovie" to load these Quiz file into it. BUT, those Quiz files that runing pretty well on their own, when loded in the index file, the results in the results page just won't show up! the numbers stay 0, i have no ideal, can any one help me? thanks


bing

oldnewbie
09-02-2005, 04:16 AM
Most probably references to _root in the loaded movies, which when these movies are loaded into another main movie's container clip, now wrongly point to the root level of the main movie, rather than the root level of the loaded movies themselves...

If on MX only, you have two options...

Use loadMovieNum, and load the movies on another level rather than in a container clip, thus eliminating most script changes within the loaded movies...
Or change all those references to _root, to the appropriate this and/or 1 or more _parent's...

If you happen to be on MX2004, you can look into _lockroot...

http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00001522.html

icechen_bin
09-02-2005, 07:29 PM
thanks, it relly helps! i loaded the files into the index file using loadmovieNum, the result counting works! but it works only when loaded to _level0, it also doesn't work in any other levels....which means my stuff in the index file won't show up then!
do you have some ideals on that? pleaszzzzzz

oldnewbie
09-03-2005, 05:04 AM
When loading on _level0, you're actually replacing your index movie with the loaded one... Thus your main movie is gone, that's why you ain't seeing it anymore, and your loaded movie does now work, because it's like playing on it's own...

You have to load on another level than 0...

Attach (or post a link...) to your .flas, zipped up and in a MX only format, not MX2004.

icechen_bin
09-03-2005, 11:53 PM
hey wan, thanks, here are a link where i wrote down all sorts of problem in each situation and the source files, thanks for taking a look(I've made the file very simple without any unnecessary codes)

http://www.bingbangbong.net/test/problem.htm

best regardes and lots of thanks
bing