A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: clearing movie clips...

  1. #1
    Member
    Join Date
    Dec 2005
    Posts
    46

    clearing movie clips...

    Hi, i have made an app in which you can draw, but you cannot clear it afterwards, i got the code from various different websites, it creates movieclips named: canvas_mc, i guess that after that it goes onto canvas_mc1 or something like that, but as there is no way of telling (unless you understand actionscript to the utmost limit.) I cannot work out a way of clearing them all.

    my code is asfollows (skipping out irrelavent parts):

    Code:
    stop() 
    alpha1 = 50; 
    size1 = 3; 
    colour1 = 0x000000; 
    fill = false; 
    
    this.createEmptyMovieClip("canvas_mc", this.getNextHighestDepth()); 
    var mouseListener:Object = new Object(); 
    mouseListener.onMouseDown = function() { 
    this.isDrawing = true; this.orig_x = _xmouse; 
    this.orig_y = _ymouse; 
    this.target_mc = canvas_mc.createEmptyMovieClip("",canvas_mc.getNextHighestDepth());
    please help and solve my problem

    Thanks, Rob

    P.S. is there any way of checking what movie clips have been created in the form of that error box thing that pops up when you test a movie in flash?

  2. #2
    go blues ! audas's Avatar
    Join Date
    Oct 2000
    Location
    london ,piccadily circus!
    Posts
    665
    removeMovieClip("clip_name");

    You can view all objects and varaiables via the drop down menu debug, list objects.
    peace.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center