This content has been marked as final. Show 6 replies
Yup that is how it works, this inside an XML.onLoad event handler will point to the XML instance. And since you can't attach a movie to an XML instance the answer must be, "Yes."
Just reference whatever clip you want to attach the movie to. And don't forget that you have two "thises" (is that the plural of this?) in that statement. Both of them will need to changed...
I will attach a snippet of code that had the two thises, lol. The for loop at the bottom of the onLoad() function is where the problem is. Outside of the onLoad function this(excuse the pun) for loop creates multiple buttons using an array of strings, there are some other properties of the library clip also not in the snippet.
So I'm guessing that you want them on the main timeline? Here is what I do. Dont' know that it is the best, but it seems to work for me. Outside the XML stuff with my other variable declarations I usually add the following:
Then inside the event handler:
I think that should work.
I still cannot grasp the scope of the MovieClip class, I tried several ways to use a container mc but never conceived giving it the value of 'this'. Now that, that problem has been solved I have created two more, I think I will have to visit the Devices forum to find out why my XML is not working on the PSP platform in Flash 7. Cheers for that Rothrock!
Director, what a fantastic application. I learned the fundamentals of multimedia authoring using it.