Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Change Movieclip index problem

Explorer ,
Nov 21, 2013 Nov 21, 2013

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)

       steps.jpg

TOPICS
ActionScript
507
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 21, 2013 Nov 21, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 21, 2013 Nov 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 21, 2013 Nov 21, 2013
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines