This content has been marked as final. Show 4 replies
well, judging the code that u send, there's some point im not sure..
u mention of Main.swf actually do load Product.swf but none of those lines in Main.swf that load this flash..
anyway, assuming that u changed the name, i need to know whether u put a path when u are calling Product.swf... like : "SWF/Product.swf"
I noticed calls to _root in the AS you included for product.swf. If so, that could very well be the problem. Your main.swf is going to be _root after you make the loadMovie("products.swf") call. If possible, change your _root calls in product.swf. I would define a variable in the products.swf timeline that stores the products _root timeline name. Then make the call to that variable in product.swf in place of _root. I've seen colin moock do this in numerous scripts he's written. I've used them before in the past but without samples available (on a separate hdd) at the moment, I can't remember the exact way to do this.
I'll try that out. I made it work but is not the cleanest solution.
I used "this" in all situations except for the setInterval within my Boolean function. For that I used "_root.container" to get back to the _root of product.swf. The variable sounds better though since my way will break if I reuse the code in other projects.
Check out any of Colin Moock's examples from Essential Actionscript 2.0. I believe this is where I first saw this technique when I was learning AS 2.0. It works very well.