Skip to main content
Inspiring
November 21, 2013
Question

Change Movieclip index problem

  • November 21, 2013
  • 1 reply
  • 539 views

Hi  I am creating an app I wanna remove a movieclip child index

here step 1 and step 2 is working fine but Step3 is not working fine when cut back clipart  to canvas it dosent work.

I have saved all cliparts in clipartsArray()

Here my code for step 3 which is not working fine

var childClipart:MovieClip=MovieClip(clipartsArray[0])

canvas.addChild(childClipart)

      

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
November 21, 2013

why don't you just reparent whatever child is removed from product?

Inspiring
November 21, 2013

I am doing same but it's not working, I m not understanding why it is not working

clipartsArray[0]<<< with this array I got child clipart object  which is placed into product

var childClipart:MovieClip=MovieClip(clipartsArray[0])

canvas.addChild(childClipart)<<< here I am trying to place this clipart to canvas, then it must be remove from product automatically.

kglad
Community Expert
Community Expert
November 21, 2013

what do you see that makes you think it's not working?  an error message?  if so, what is it?