delete the video clip with clip

I want a clip to remove a clip when we rollsover the other.

you have not learn from the mistakes of the past.  the code to check the hittests must be in your listener key function:

var tl:MovieClip =;
Stop ();
var distance: Number = 10;
var keyListener:Object = new Object ();
keyListener.onKeyDown = function)
{
If (Key.isDown (Key.LEFT))
{
sun_mc._x = Math.max (sun_mc._x - distance, 0);
trace ('move left');
}
else if (Key.isDown (Key.RIGHT))
{
sun_mc._x = Math.min (sun_mc._x + distance, 575);
trace ("forehand");
}
else if (Key.isDown (Key.UP))
{
sun_mc._y = Math.max (sun_mc._y - distance, 0);
trace ("move up");
}
else if (Key.isDown (Key.DOWN))
{
sun_mc._y = Math.min (sun_mc._y + distance, 570);
trace ('move down');
}
remove the Sun with clouds
for (var i = 1; i)<= 6;="" i++)="">
{
If (sun_mc.hitTest (tl ["cloud_mc" + i]))
{
trace ("the Sun hit the cloud");
is depth of sun_mc is less than 0, exchanging its
depth in unoccupied removable depth
sun_mc.swapDepths (1000000);
1000000 is probably good.
sun_mc.removeMovieClip ();
}
}

remove an instance of the star with the Sun
for (var i = 1; i)<= 6;="" i++)="">
{
If (sun_mc.hitTest (tl ['star_mc' + i]))
{
trace ('the Sun struck the movieClip star_mc');
TL ['star_mc' + i] .removeMovieClip ();
}

}
}
Key.addListener (keyListener);
Copy the following code duplicates and positioned randomly new instances
of the movieClip star_mc
for (var i = 1; i)<= 6;="" i++)="">
{
duplicateMovieClip ('cloud_mc', 'cloud_mc' I, I + 6);
_root ["cloud_mc" + i] ._x = 600 * Math.random ();
_root ["cloud_mc" + i] ._y = 200 * Math.random ();
}
for (var i = 1; i)<= 6;="" i++)="">
{
duplicateMovieClip ('star_mc', 'star_mc' + I, i);
_root ['star_mc' + i] ._x = 600 * Math.random ();
_root ['star_mc' + i] ._y = 200 * Math.random ();
}

Tags: Adobe Animate

Similar Questions

  • cannot delete the video clip in the preloader

    For some reason, of the mc is not removed from the scene when my preloader finally load...

    function Preloader(event:ProgressEvent):void {}

    var mc:preloader = new preloader();

    var percent:Number=Math.round(event.bytesLoaded/event.bytesTotal*100);

    addChild (mc);

    If (p == 100) {}

    removeChild (mc);

    xml_loader.removeEventListener (ProgressEvent.PROGRESS, Preloader);

    }

    Am I missing something here?

    Yes.

    Preloader() is called whenever you create a new instance of preloader (all with the same reference, mc).  so, if you call Preloader() 25 times, you add 25 cases of mc and, on the last call to Preloader(), you delete one instance of mc and stop the calls to Preloader().

    to remedy this, use:

    var mc:preloader = new preloader();

    addChild (mc);

    function Preloader(event:ProgressEvent):void {}

    var percent:Number=Math.round(event.bytesLoaded/event.bytesTotal*100);

    do something with mc to reflect percent

    If (p == 100) {}

    removeChild (mc);

    xml_loader. RemoveEventListener (ProgressEvent.PROGRESS, Preloader);

    }

    }

  • Removal of the video clips in arrays

    Hello

    I have this code in my Flash file:

    for(bubble in bubbleArray){
         bubbleArray[bubble]._y -= 3;
         if(bubbleArray[bubble]._y < 370){
              bubbleArray[bubble].removeMovieClip();
         }
    }

    I wonder, when I remove the film clips should I also be burst their table?

    I have an onEnterFrame function that attaches the video clips and the drives in the array, so I'm afraid that if I don't pop the table will continue to increase in size and slow down the film. This is the case, or will they be automatically removed from the table by the above removeMovieClip() method?

    They will not be removed from the table, but the table can now point to an undefined object.  So if the intention is not to try to deal with in this code, then you must delete them from the table.

  • 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.

  • The use of eligible margins in the video Clips, PE11

    1. Is it possible to manually resize a video in first 11 items so that it fits within the margin of safety?  If yes how can I do this?
    2. Also, is it possible to get rid of the side black bars of video clips in PE!  If yes how how to do this?

    Thank you

    Andrew-dd_1937

    What operating system executes your 11 items first?

    1. with the margins of safety on the Edit box monitor and the video clip selected, scaling the image on the screen to fit the area of interest.

    The scale can be done by clicking on the screen to bring up the bounding box of the image, then by dragging on one of the handles of the limit

    box for scale.

    Tip: Depending on the specifications of your TV, you can change the margins of safety to target edit them project Menu/Settings/general

    Title safe area

    Safe action area

    Also, in applied tab/Applied effects Palette/Motion extended effect controls panel, you can uncheck the option constrain Proportion so that

    You can measure the width and height separately.


    The scale is also possible by selecting the clip of chronology and then using the slider scale found applied effects tab/Applied effects Palette/Motion

    Expanded panel and its properties of scale.

    When you see these black border in Premiere Elements...?

    When you first slide your import to workspace Expert chronology or somewhere else. If export, then you (manually) or the project

    (automatically) have not set the correct project preset to match the properties of the source media. Thus, more information about what is

    happening here.

    Please let me know if I interpreted your question correctly. If this isn't the case, please more details.

    Thank you.

    RTA

  • Discoloration video, but not out in the video clip.

    Hello.

    I need to run a video that I can turn over any other flash content.

    Since I also have to add sub titles, I decided to import the video clip into a clip. The clip now has as many frames as the video.

    I added subtitles to keyframing a line of text in the video and synchronized it upward with the film. (it was not really easy...)

    I placed an instance of the clip on my main stage in frame 10. I added an on and and STOP simply would take you to a framework later without the movie clip instance and return to frame 10 once again if you want to see the video again. It worked well.

    To book the elegant transistions I wanted to fade video in and out. So on the main stage in the frame of 10 I placed this action script:

    (+ gave my movieclip the instance name mc)

    Stop();

    Import mx.transitions.Tween;

    Import mx.transitions.easing. *;

    var myTween:Tween = new Tween (mc, "_alpha", Strong.easeIn, 0, 100, 2, true);

    well which mitigates the video when the playback head to frame 10.

    There is another part of the script that should be able to tell the end next to the clip and it melted:

    myTween.onMotionFinished = function () {}

    new Tween (mc, "_alpha", Strong.easeOut, 0, 100, 2, true);

    }

    This however, I can't work:

    (1) if I place this code in the frame of 10, the video goes first but immideately faints again.

    (2) I tried to put 15 images of code at the end of the clip, and that did not work.

    (3) I tried to put 15 images of code at the end of the clip and add _parent.  and who does not.

    It is possible to work and if so, how?

    If this isn't the case, please let me know if you have any other approach proven to suggest.

    ggaarde

    If the first interpolation works in the timeline panel, and then in the same timeline in frame of whattever close to the end you just create another interpolation there.

    myTween = new Tween (mc, "_alpha", Strong.easeOut, 0, 100, 2, true);

  • First pro does not control the properties of the video clip to match the sequence

    Hello

    I have a sequence in my calendar set at 1920 x 1080 and based on my understanding of the video clips, I place in the timeline should automatically be adjusted in cadence, resolution etc. I looked in my settings to see if an option to do this automatically has been disabled, but can not find it and the timeline is always insert Staples into their native format 1280 x 720. can you tell me what I am doing wrong? You can see in the screenshot that the video is narrowed down, thank you!

    22035973929_fc15bf3db3.jpg

    This dialog box appears only when you place a clip in an empty sequence. This is to help you create a sequence quickly that meets (or not) your footage.

    To do what you want, go to your Pro first preferences > general and select the check box for the default scale to the size of the image.

    Click OK.

    MtD

  • How to replace the video clips on a timeline?

    In After Effects I can choose to replace the images in the file menu. How do I do this in yet?  It looks like I could add a new element to the existing scenario, and then delete the old clip. Will there be an another/better way to do this?  CS5 running on a MacPro.

    Haven't you replace images when you right click on a clip?

  • Set the video clip

    Hello I have asked that my topic to another, but this subject was mainly related to another problem.

    My question is;

    I have 3 x 3 squares square ("box_mc" s movie clip duplicated from 1 film clip "box" on stage)

    I want to put a small box (it's the video clip "smallmc") in front of cotyledon (which is one of the other mc "box_mc" already placed on stage). When I click on the big box (I mean "box_mc"), I would like to join an instance of "smallmc" in front of a large.

    I have this code in the 'box' mc;
    on {(press)
    If (this.selected == 0) {}
    trace ("checked");
    selected = 1;
    _root.attachMovie ("smallmc", "smallmc" + count, getNextHighestDepth (), {_x: this ._x, FLF: this ._y});
    _root. Count ++;
    trace (_root. (Count);
    } else {}
    trace ("Unselected");
    selected = 0;
    _root. -Count;
    trace (_root. (Count);
    }
    }

    but this code puts "smallmc" under "boxmc": ((et 1 plus de problème;))

    I have 3 x 3 boxes big; and when I click on a "boxmc" he puts 1 smallmc then I click on another 'boxmc' is 'smallmc' but a previous dissappearing. (but this isn't prior problem I think first I should put small boxes in front of the biggest)

    Thank you for your help tips

    Don't know if this will help but: getNextHighestDepth() is not autonomous
    method - it is a method of a MovieClip. You need something like:
    this.getNextHighestDepth () instead.

    --
    Dave-
    Adobe Community Expert
    www.blurredistinction.com
    http://www.Adobe.com/communities/experts/

  • How can I sync the videos taken with an iPhone to an iPod nano

    I want to sync the videos taken with my iPhone to my children your iPod nano. The videos are stored on my iMac in the Photos app in a specific album.

    I tried using iTunes and synchronization of the picture with this particularly chosen album, but nothing has been synchronized. There is no error messages or warnings, just nothing is synchronized.

    I know I could manually importing the video into iTunes and sync as films, but there should be an easier way to do this, right?

    I think the method you mentioned is how you need to do.  In iTunes to sync iPod movies, you configure settings from iPod movies screen (to select the movies you want to synchronize).  Settings of the iPod screen photos is for photos (image files).  Movies do not appear on the screen of the parameters of the iPod movies , unless they are in your library of movies to iTunes.

  • Explorer keeps restarting when I try to delete the video

    I am trying to remove the videos on my computer I already posted online. When I try windows explore appears says it restarts and restarts do not let to delete anything. How can I delete the videos?

    Hello

    ·        Since when are you facing this problem?

    ·        Remember to make changes to the system?

    ·        Outside these files you are able to remove the other files that are present on the system?

    I suggest you follow the methods mentioned below.

     

    Method 1:

    I suggest you to check in safe mode if you are able to delete the files. Follow the steps mentioned below.

    a. restart the computer and keep tapping F8 until you reach the boot options.

    b. Select safe mode from the menu and press ENTER.

    For more information, see the article mentioned below.

    Startup options (including safe mode)

    http://Windows.Microsoft.com/en-us/Windows-Vista/advanced-startup-options-including-safe-mode

    Thanks and regards.

    Thahaseena M
    Microsoft Answers Support Engineer.
    Visit ourMicrosoft answers feedback Forum and let us know what you think.

  • I deleted the video folder to recycle bin. How to restore the video folder?

    Original title: deleted video folder

    I deleted the videos folder, also from the Recycle Bin. How to restore vista Brown file type record not just thanks kev.

    Hello

    Unfortunately, Windows is unable to recover the deleted data from the Recycle Bin. You have to search the Web and use third-party software that could help you recover your deleted video folder.

    WARNING OF THIRD PARTY
    Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Azeez Nadeem - Microsoft Support [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • When I drag a video in my calendar, that there is no sound the video attached with him that video

    When I drag a video in my calendar, that there is no sound the video attached with him that video

    Thanks for your help!

    Julien.

    Is your Source patch and targeting of the track set correctly?

    MtD

  • Help with blurring/softening of the edges of the video Clip

    Hi all

    I use first items 12 and I'm trying to blur/soften the edges of a video clip. I can't seem to find the right tool, ff, you've been able to do this, what tool or combination of tools did you use?

    Thank you

    Steve

    This is very easily done with cropping effect.

    Do not need to modify the edges (put them all to 0) comes from the pen.

    Set the feather to topic - 100.

  • First Elements 11 - I have a problem with pinning of the video clips in the timeline.

    Hello

    I have a new Prime Minister 11 elements.  I'm working on a video with a narration track project.  Because I have to build animations in photoshop that go with the narration, I'm not editing in a way liner.  When I insert clips earlier on the timeline animations, it tends to move the clips of animation to the top or to the bottom of the timeline and sometimes he's trying to cut my narration.  Is it possible to pin the animations to a specific timecode on the timeline, which then will allow me to insert the live action clips inbetween with out having to sycn are ' animation to the narrative.  In older versions of the first I used years ago (and FCP), it's the titles of easy locking.  I know that you cannot lock a track in PE11, but is it possible to pin the video to the narrative?

    I too if I have to 'resync' animations to the narrative is there a way to select the entire animation (which is located on several tracks) to return it to its place compared to the narrative?

    Thank you.

    Unfortunately, pre has never added the ability to lock a track (something that PrPro and something that I and many others, have asked), so a change in workflow could be the best.

    For what you describe, I would just edit video 1 and Audio 1 (or according to the following you use), and then add your animations on 2 video tracks (or any video track above your edited Clips). All that is on a video track higher, it will be seen, regardless of which is lower than that, except if we adjust the opacity (to see through the Clip on the video track above), or they "drill holes" in this upper Clip, say with Track Matte Keying, or via a channel Alpha, or the Garbage Matte.

    Your animation will be seen and your Clips edited, weaker will not be made, other than that they are not visible.

    Another method would be to make an Insert Edit where your animation replaces a corresponding number of images in the Clip to which you drag, on the same video track. Just hold down the CTRL (Cmd on Mac key) and drag your animation to the place you want to so he can be at the Top of the clip here. Their mounts will be replaced by your animation.

    A third, if you want full "lock" video and Audio, would be to export/Share/publication chronology of the project, and then import the output file (it will no longer Clips, but will be a long Clip), then add animations, or whatever, by using one of the two methods above.

    Good luck

    Hunt

Maybe you are looking for

  • Why is my system hangs for 20 minutes?

    Explore files, IExplorer9, tasks etc. hang with "not responding". When I click or right-click on the icon trash it crashes. Vista Ultimate SP2 observer of events shows many more crashes... Event 10010, the Service Control Manager event log providerA

  • Help! I can't find the scroll bars in Word, Office 2010!

    Shortly after that I installed Office 2010, I was desperately trying to repair one imagine that I had added to my document, but somehow instead, I turned off scrollbars for windows! I tried to retrace my steps, but have no idea of what I did. The scr

  • Music on hold to the IPCC

    Hi Pros, I need to know about the music on hold for IPCC Express. I have a package of Enhanced IPCC Express 4.0. CRS 4.0.2. CCM 4.1.3 I made a script which I enclose & basically when the caller is in the queue I added the call to hold. Now, I need to

  • Qbytearray json analytical problems

    help the analysis of this json: {"coord":{"lon":-97.87,"lat":22.26},"sys":{"country":"MX","sunrise":1383827966,"sunset":1383868260},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01n"}],"base":"cmc stations","main":{"temp":2

  • my laptop can't find a printer wireless hp photosmart all in one c6380

    I recently spent lily to xfinity for internet... they had to swich we wep address and then my wireless printer no longer works... contacted comcast and they tried to switch back to another address, and printer not finding any network... even my neigh