How I would go about deleting new video clips.

Hello

So in my example, I created several new instances of clips on the stage, by clicking a button, which are then drag and drop active.
I did so that if you drag one of these new clips on a clip of "trash_mc" it gets rid of this individual clip, but is there a way to erase completely the scene of all the clips from movie created in this way - the only way I have found so far is to stop the first frame of the timeline (the main content is image 3) , but this makes the screen flash as it reloads the content that isn't it is desirable.

var counter = 0;

. MakeMyMovieClip_btn.addEventListener of the object (root) (MouseEvent.MOUSE_DOWN, Object (root) .makeMyMovieClip);

function makeMyMovieClip (e: Event) {}

This ["MyMovieClip" + (counter)] = new MyMovieClip;

This ["MyMovieClip" + (counter)] .x = makeMyMovieClip_btn.x;

This ["MyMovieClip" + (counter)] there = makeMyMovieClip_btn.y;

addChild (this ["MyMovieClip" + (counter)]);

This ["MyMovieClip" + (counter)] .buttonMode = true;

This "MyMovieClip" [+ (counter)] .startDrag ();

This ["MyMovieClip" + (counter)] .addEventListener (MouseEvent.MOUSE_DOWN, fl_ClickToDrag);

This ["MyMovieClip" + (counter)] .addEventListener (MouseEvent.MOUSE_UP, fl_ReleaseToDrop);

counter ++;

}

function fl_ReleaseToDrop(event: MouseEvent): void {}

event.currentTarget.stopDrag ();

If (event.currentTarget.hitTestObject (trash_mc)) { }

event.currentTarget.parent.removeChild (event.currentTarget);

}

}

function fl_ClickToDrag(event: MouseEvent): void {}

this.addChild (event.currentTarget as DisplayObject);

event.currentTarget.startDrag ();

}


If it works for doing an amount any instance MyMovieClip (with the link) on the stage by using the meter, clicking and sliding the makeMyMovieClip_btn but how all to remove or hide all or just reset or something for them do not do more...

Any help on this would be greatly appreciated. Thank you.

There are several ways to remove these movieclips, but among the best would be to store references movieclip created in a table:

var counter = 0;

var mcA:Array = [];

. MakeMyMovieClip_btn.addEventListener of the object (root) (MouseEvent.MOUSE_DOWN, Object (root) .makeMyMovieClip);

function makeMyMovieClip (e: Event) {}

This ["MyMovieClip" + (counter)] = new MyMovieClip;

This ["MyMovieClip" + (counter)] .x = makeMyMovieClip_btn.x;

This ["MyMovieClip" + (counter)] there = makeMyMovieClip_btn.y;

addChild (this ["MyMovieClip" + (counter)]);

This ["MyMovieClip" + (counter)] .buttonMode = true;

This "MyMovieClip" [+ (counter)] .startDrag ();

This ["MyMovieClip" + (counter)] .addEventListener (MouseEvent.MOUSE_DOWN, fl_ClickToDrag);

This ["MyMovieClip" + (counter)] .addEventListener (MouseEvent.MOUSE_UP, fl_ReleaseToDrop);

mcA.push (this ["MyMovieClip" + (counter)]);

counter ++;

}

function fl_ReleaseToDrop(event: MouseEvent): void {}

event.currentTarget.stopDrag ();

If (event.currentTarget.hitTestObject (trash_mc)) {}

mcA.splice (mcA.indexOf (event.currentTarget), 1);

event.currentTarget.parent.removeChild (event.currentTarget);

}

}


function removeAllF (): void {}

for (var i: int = mcA.length - 1; i > = 0; i--) {}

mcA [i].parent.removeChild (mcA [i]);

mcA.splice (i, 1);

}

}

function fl_ClickToDrag(event: MouseEvent): void {}

this.addChild (event.currentTarget as DisplayObject);

event.currentTarget.startDrag ();

}


Tags: Adobe Animate

Similar Questions

  • How to move my music and new video files in iCloud after wrong download first to the iPad? Have no local on iPad now and cannot not even update all apps!

    How to move my music and new video files in iCloud after wrong download first to the iPad? Have no local on iPad now and cannot not even update all apps!

    Thank you

    iCloud is a synchronization system, not a storage system. If you delete photos/videos on your iPad, they are removed to iCloud. To increase the available space, go settings/iCloud/Photos and select optimize iPhone/iPad storage.

  • I want to buy photoshop, however as the long version for functions 3d, how I would go about buying the long version?

    I want to buy photoshop, however as the long version for functions 3d, how I would go about buying the long version?

    The only version you can buy is CS6, who is 3 years old and is no longer being updated - link to buy the CS6 via phone http://www.adobe.com/products/cs6.html

    The current version is by subscription only - Cloud Plans https://creative.adobe.com/plans

    -Special photography Plan includes Photoshop & Lightroom and Bridge & Mobile Lightroom

  • I deleted 2 video clips in my trash and empty, is there a possibility of recovery? Or have I lost this data?...

    I deleted 2 video clips (produced from webcam), trash & emptied the Recycle Bin. can I get back them?

    Note a backup has been performed before the 2 video clips being produced (and combined in 1 clip, using a video editing program) & after trash realization had been emptied

    Hello

    It is very good free program to try to recover these files.

    http://www.Piriform.com/Recuva

    But the more you use this machine, the risk that these files will be overwrittien.

    Whenever a file is deleted from a hard drive, it is not cleared. What is deleted is the little information that points to the location of the file on the hard drive.

    See you soon.

  • How to apply a filter to a video clip? (Without having to do it individually for each image)

    How to apply a filter to a video clip? (Without having to do it individually for each image)

    I think you place the video as a dynamic object.

    Have you tried the help or photoshop_cs4_help.pdf yet?

  • How can I go about sending new e-mail address to all my contacts from Outlook Express?

    New mailing address of email to all my contacts from outlook express

    How can I go on to send new email to all my contacts from outlook express address

    The same way send you a message to all your contacts.

    1. Open a new message window
    2. Click on the button to
    3. Click a contact to highlight
    4. Use the CTRL + A to select all the
    5. Announcement for the To (probably better add the BCC field
    6. Create the message about your new address and include it in the message
    7. Press send

    The only problem you may find is that ISP recipients limit how much you can send at once, so if the message fails, you may need to make in a few groups.

  • How to stop the code that adds video clips

    Hello

    I have a code simply adding video clips. Video clips are on the same time move along the stage.

    The first clip is already on the scene and the code should add three more. Clips of three film set with the instructions if are added correctly (for positions origX and origY).

    But after adding the three, he keeps adding them. And not at all defined first x and y, but x = 0 and y = 0.

    How can I stop it after you add the three?

    The code is in a separate class file.

    Thanks in advance!

    Duck/public class extends MovieClip

    {

    var origX: number;

    var origY: number;

    var i: int;

    var newDuck: party;

    public void Duck()

    {

    origX = this.x;

    origY = this.y;

    this.addEventListener (Event.ENTER_FRAME, moveDuck);

    }

    function moveDuck(event: Event): void

    {

    This.x += 0.25;

    If (this.x is origX + 50)

    {

    addDuck();

    }

    If (this.x is origX + 75)

    {

    addDuck();

    }

    If (this.x is origX + 100)

    {

    addDuck();

    }

    }

    function addDuck(): void

    {

    newDuck = new part();

    parent.addChild (newDuck);

    newDuck.scaleX = 0.55;

    newDuck.scaleY = newDuck.scaleX;

    newDuck.x = origX;

    newDuck.y = origY;

    }

    }

    You operate Duck() instanciates an enterFrame function that actually creates instances the duck on the scene. Once started, there is nothing to say things to stop creating new ducks. You can add a loop for which counts the number of ducks you want and then kills the enterframe function. I don't know why your x and y values are reset to 0.

  • How to adjust the brightness of a video clip?

    Hello

    Using the latest iOS on iPhone6s with the latest version of iMovie.

    I could not find how to adjust the brightness of a video I import to iMovie, it is quite dark and I want to increase the brightness or exposure.

    Thank you

    Greetings aytekdorken,

    Thank you for using communities Support from Apple!

    I understand that you want to adjust the brightness of a clip in iMovie for iOS. You cannot adjust the brightness directly, but you can add a filter to a clip or project that could potentially illuminate it for you.

    Add video filters - using iMovie for iPhone

    Have a great day!

  • How can I list the instances of video clips if the clip that I am referencing is nested?

    Hello world

    It's me again and I am running into a problem. So I have this clip which is nested in several video clips. I mean Flash to perform an action when this clip from movie hits another video clip in the main timeline. It's just a collision for a game detection using the hitTestObject code. I was thinking of using MovieClip (root), but that won't work because it is so nested. Can someone help me? I would like to know if I need to explain more. Thank you!

    -DJ

    I didn't ' think I can help you without having to upload your file to see what you're doing and I don't download and fix the files unless I'm hired.

    Maybe someone else you download your fla and you help.

  • How to export an image from the video clip of the first Pro to Photoshop for corrections and back.

    I want to export a video clip in Premier Pro on Photoshop for minor corrections throughout, then back to the first Pro. Corrections will be the same for each frame in the video. What is the best way to achieve this? If it makes any difference, I work with clips of R3D monochrome 6 K.

    Hi TR.

    Try to import the file directly in Photoshop. If this does not work, report.

    Thank you
    Kevin

  • How to break a bitmap into multiple video clips

    Hello

    I have a bitmap imported into the library and must break with ActionScript2.0 in multiple bitmap images, using a rectangular grid. Small bitmaps must become video clips so they can be driven away.

    The animation that results should be: bitmap image breaks into tiles that soar...

    Possible? Thanks for help

    Hello, I solved by the following code, using the BitmapData. The key point uses copyBitmap() to copy part of the original small bitmaps (the tiles in the grid) to bitmap, then tie each tile to a clip. The FlyingObjects class provides the movement for each tile.

  • How I would go about creating my own font?

    I can't find the 'perfect' for a special logo fonts.  How would I go about creating my own?

    I have Photoshop and Illustrator.

    Assuming that I could create a set of alphabetic characters, I'd be able to use other fonts via the same way Photoshop PS work?

    Thank you

    Paz

    Illustrator and Photoshop are not enough. You need a font editing tool, as FontForge, FontLab Studio, Fontographer, TypeTool, or glyphs. They range in price from open source (free) $ 600 +. They allow you to activate a "game of alphabetic characters" in a font and help with the creation of these glyphs.

    But the software is not the same thing as what to do with it, any more than having Photoshop makes you a photographer. Your question is a bit like saying that you can't find a good piece of music to play at your wedding reception, so, how do you create a Symphony? Or you don't like the President, you've been sitting, so, how do you create a replacement? It is not that these things are impossible to learn, but relevant skills are a substantial investment of time and energy.

    My serious answer would be to study on your own for a year or so and apply to the appropriate master's degree at the University of Reading (UK), or the Royal Academy in the Hague. Or the new program starting in Buenos Aires.

    See you soon,.

    T

  • How to cut animations characters of a video clip?

    Hey guys,.

    I'm working on a new series of videos, but I don't have a major part to do. How would I cut a picture into a movement of a video altogether? Like filtering, but without the green screen. First can do? Any help/advice would be greatly appreciated.

    Here are a bunch of links for rotoscoping techniques:

    Search community help - rotoscoping

  • Unable to see the new video clips

    Told to download Silverlight, I downloaded nothing doesn't. I found that Silverlight does not, been abandoned. How to get the

    videos working again? Will there be a new download program to install?

    TThanks for any help I can get. I have Pavalon HP dm4 laptop 64 bit, windows 7 home preimmun.

    Hi r.Kennedy,.

    Silverlight is a plugin developed by Microsoft.

    I mentioned a link below to the microsoft site that allows you to download the silverlight plugin that allows to see interactive media on the web:

    http://www.Microsoft.com/getSilverlight/get-started/install/default.aspx

    I hope this helps.

    The link also has the system requirements for silverlight.

    Adobe does not develop or distribute the Silverlight plugin.

    If you have problems with the program, I advise you to please get in touch with Microsoft.

    Thank you

  • How do you expect to load some video clips or images?

    I've seen flash sites waiting to load different parts of the flash file until you click on a link, starting as a loading image that then loads the content you're looking for. I can't find all the information on how to do it, and I guess that I just can't find the right terminology.

    Does anyone have the verbiage just for me or can anyone direct me to a Web site that explains the process? Thanks, Dan

    the only thing that will prevent the images and/or videos loading with your swf file is to move these assets outside flash.  That is to say, for the images, they would need to be loaded and for movieclips, they would need to be registered as a responsible and sovereign wealth funds.

Maybe you are looking for

  • Utility disk will not format card Cfast2?

    I have some cards from Cfast2 I need to format it in disk utility, however it can complete the process, showing "invalid name. The operation failed "." The card was written by Arri cameras with their system of file owner. I tried other maps and types

  • Equium L20: line white single fom top to the bottom of the screen

    Hello Any ideas, my Equium L20 put this morning has a fine line on the TFTvisible all the time.It connects the top of the screen down. Anyone seen this before, tried a reboot but no difference.Is this a problem of monitor / probem graphics or somethi

  • Windows XP OEM EULA (Pavilion a400y)

    My father-in-law has a hp Pavilion a400y with Win XP (SP1) OEM which is really slow. If I'm working him up to 2 GB of memory and to change its processor Celeron to a faster processor of the same socket /(bus bandwidth) will disable I its MS Windows O

  • DVD player - "Application not found".

    Original title: dvd player Before I have to clean install windows 7, I backup my files using the creation of a new partition after windows 7 installed, if I double click on the DVD drive icon, it says "Application not found" it was opened by itself w

  • Upgrade T710 SAS 6/iR to PERC H700 problems

    I'm trying to improve and replace a RAID controller Dell SAS 6/iR (Dell PowerEdge T710/Linux Fedora) one with a PERC H700 (SAS6/iR supports only 2 disks to or smaller). The disks on the SAS6/iR are on the H700 and all RAID 0. I did all of the BIOS an