flash actionscript:
Context: I have a flash file that uses Actionscript 1.0 and published to Flash player 6. There are 2 symbols in my library(for the sake of this post), 'parent' and 'child'. 'child' symbol has visuals on stage and a class bound to it. 'parent' contains many 'child' symbols on its stage(attached at author time), and no class definition bound to it. Problem: If I dynamically attach a 'parent', 'child' symbols inside lose thier class definition. So a runtime trace of '_root.parentObj.childObj.myfunc' gives nothing. But if I attach a 'parent' symbol at author time, all contained 'child' class definitions exist as expected. Also, if I attach a 'child' symbol to the _root movie, all functions are there as expected. ... I have never seen this before, as symbol/class definitions are a straight forward thing. And this is the first time that runtime attaching of a 'parent' symbol means that child symbols lose their class definitions. Has anyone come across this before? I can't seem to figure out why some of these definitions are disappearing only in a dynamically attached 'parent'. Thanks in advance.
Sorry about the previous post. All the paragraphs got lumped together. Try this <br><br> Context: <br> I have a flash file that uses Actionscript 1.0 and published to Flash player 6. There are 2 symbols in my library(for the sake of this post), 'parent' and 'child'. 'child' symbol has visuals on stage and a class bound to it. 'parent' contains many 'child' symbols on its stage(attached at author time), and no class definition bound to it. <br><br> Problem: <br> If I dynamically attach a 'parent', 'child' symbols inside lose thier class definition. So a runtime trace of '_root.parentObj.childObj.myfunc' gives nothing. But if I attach a 'parent' symbol at author time, all contained 'child' class definitions exist as expected. Also, if I attach a 'child' symbol to the _root movie, all functions are there as expected. <br><br> ... I have never seen this before, as symbol/class definitions are a straight forward thing. And this is the first time that runtime attaching of a 'parent' symbol means that child symbols lose their class definitions. Has anyone come across this before? I can't seem to figure out why some of these definitions are disappearing only in a dynamically attached 'parent'. Thanks in advance.
Don't see what you're looking for? Try a search.
|