开发者

Is there any way to know where is used a movieclip?

开发者 https://www.devze.com 2023-03-27 16:51 出处:网络
I have a huge library in Flash CS5. Sometimes, I need to know in which place is used a movieclip (scene, inside another movieclip..). 开发者_运维问答

I have a huge library in Flash CS5. Sometimes, I need to know in which place is used a movieclip (scene, inside another movieclip..).

开发者_运维问答

Has Flash any options to know that?

Txs!


Every displayobject has a parent property that stores exactly what you need to know. Just chack the object against the types you need to handle and away you go. The code you're looking for is something like:

if (parent is MovieClip) {...something...}
0

精彩评论

暂无评论...
验证码 换一张
取 消