How do I remove a movie clip that served as a cursor

I tried stopDrag but this merely leaves the movieclip where I executed this code. I want to remove it or at least adjust its position after it's removed as the cursor. How?

as2 or as3?

Similar Messages

  • How to build a custom movie clip that will be used as a cell renderer for column in a grid ?

    i want to build a datagrid that shows a picture and underneath it a name.
    the problem is i dont want to see all of the pictures, but all the pictures that have certain requirements, so i cant just make one movie clip that includes all the pictures and names.
    so my question is how do i build a movie clip that contains photo and text?.

    You do not create movieclips on the timeline using code, though you can create them and add them as children of something that has been manually placed in the timeline.
    To create a MovieClip using code you use: 
        var mc:MovieClip = new MovieClip();
    If you need to add an image, then however you intend to acquire the image, after it has been acquired, you add it to the MovieClip using:  
        mc.addChild(img); 
    where img is the instance of whatever form of object the image takes (Bitmap, Loader)
    If you need to add a TextField to the MovieClip then you use: 
        var tf:TextField = new TextField();
        mc.addChild(tf);
    and you can set up properties for the textfield such as the font and color and position as well after it has been instantiated (the first line).

  • How can i remove a movie clip container

    Hallo friend,
    I am dealing with this problem.
    In the first frame of my project i am designing a movie clip
    dynamicaly - with action script 2 - which i use as a container in
    order to fill it with attachments to other movie clips and with
    text boxes which i make dynamically too.
    The problem is that i want to delete this container in order
    to have a quickly way to delete the object that contains, but i
    can't find a way to do this.
    I have tried the functions removeMovieClip() and
    unloadMovie(), but there was no result.
    Please, can somebody help me with this ?

    Friends forgive me for my absence but i do had a very
    defficult period, as i wal looking for new job.
    Enyway, now i have time and tommorow i will post the code, in
    order to let you understand the way i build it.
    My friend, uomodicuore2 i use the correct path to the
    function unloadMovie() and removeMovieClip()
    Friend ric5611 i don't use flash components

  • How do I place a movie clip that starts paused?

    I'm using the latest version of Keynote, and I present a lot of movie clips in my presentations. Ordinarily, I've been using Powerpoint, but I want to switch to Keynote. When I place a movie clip on Powerpoint, in presentations the movie begins paused, and I start it playing on the next mouse click. I can't seem to find an analagous control for movies in Keynote- every time I place a video clip, it begins playing immediately in presentation mode. I would really rather not have to take the time each time I introduce another movie to move the mouse, and physically pause the clip while speaking. Can someone please help?

    As far as I know you can't do this.
    The workaround I use is to do a screen capture of the first frame of the movie clip. I then have this on the slide in the position of the movie. The movie is then placed on the slide in the same position with a transition of "appear" with "on mouse click". This will do exactly what you want; the slide appears with the still image and when you mouse click the movie will appear (this will not be perceptible to the audience) and start playing.
    I use lots of movies in my presentations and this works well.
    Use the inspector for accurate sizing and positioning of the image and movie, and once you are happy with these I would suggest "locking" them so they can't get accidentally nudged.
    Hope this helps.
    David

  • How to Remove a Movie Clip

    Hi,
    On the main timeline, I have the following code:
    external_btn.addEventListener(MouseEvent.CLICK, showMenu);
    function showMenu(e:MouseEvent):void
    var myMovieClip:MovieClip = new Member();
    addChild(myMovieClip);
    myMovieClip.x = 597.95;
    myMovieClip.y =359.15;
    in the internal movie clip, that I linked it to Member:
    In the member movie clip, I have the following code to remove the movie clip that was created in the main timeline of the root movie clip.
    release1_btn.addEventListener(MouseEvent.CLICK, goBack1);
    function goBack1(e:MouseEvent):void
    MovieClip(root).removeChild(myMovieClip);
    I received the following compiler error:
    1120: Access of undefined property myMovieClip.
    Please help me know how to resolve this error message.
    Thanks,
    Robert.

    that's (coding on more than one timeline) not good coding style, but this will correct your error and the prevent a few more:
    release1_btn.addEventListener(MouseEvent.CLICK, goBack1);
    function goBack1(e:MouseEvent):void
    MovieClip(this.parent).removeChild(this);

  • Trying to create a movie clip that Bounces off four sides of the stage

    using the syntax below I have created a movie clip called 'BALL' that bounces off from the left "x"  and moves to the right side of the stage 'x.520' and bounces back to the start "x".
    HOW DO I CREATE A MOVIE CLIP THAT BOUNCES FOUR SIDES OF THE STAGE AND STOPS ON THE FOURTH BOUNCE??
    var ballTween:Tween = new Tween(ball, "x", Bounce.easeInOut, ball.x,520, 5, true);
    ballTween.addEventListener(TweenEvent.MOTION_FINISH,tweenFinishedF);
    function tweenFinishedF(e:TweenEvent):void{
    new Tween(ball,"x",Bounce.easeOut,ball.x,0,5,true);

    Here is a simplest way to do that. This code doesn't use your ball but draws it dynamically. If you want to use your ball instance - replace relevant lines.
    import flash.display.Shape;
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.geom.Rectangle;
    var ball:Shape;
    // speed, naturally
    var speed:Number = 7;
    // velocity along x
    var vx:Number = speed;
    // vlocity along y
    var vy:Number = speed;
    // area within which ball may move
    var moveArea:Rectangle;
    // radius of ball circle shape
    var ballRadius:Number = 20;
    init();
    function init():void
        moveArea = new Rectangle(ballRadius, ballRadius, stage.stageWidth - ballRadius, stage.stageHeight - ballRadius);
        drawBall();
        addEventListener(Event.ENTER_FRAME, moveBall);
    function moveBall(e:Event):void
        // change direction if ball moves out of allowed rectangle
        if (ball.x < moveArea.x)
            vx = speed;
        else if (ball.x > moveArea.width)
            vx = -speed;
        if (ball.y < moveArea.y)
            vy = speed;
        else if (ball.y > moveArea.height)
            vy = -speed;
        ball.x += vx;
        ball.y += vy;
    function drawBall():void
        ball = new Shape();
        ball.graphics.beginFill(0xFF0000);
        ball.graphics.drawCircle(0, 0, ballRadius);
        ball.x = moveArea.x + Math.random() * moveArea.width;
        ball.y = moveArea.y + Math.random() * moveArea.height;
        addChild(ball);
    Message was edited by: Andrei1

  • How can I load an external SWF into a movie clip that's inside other movie clip?

    Hi.
    I creating my first flash (actionscript 3.0) website but I'm
    stuck with a visual effect I want to create.
    I have a window on my website called contentWindow. Every
    time you click a button this window is supposed to leave the stage,
    load the requested content and return to the stage.
    The sliding window is a movie clip with 83 frames, 21 to
    enter the stage, 21 to leave the stage again, 20 for nothing (its
    just to simulate the loading time) and 21 to return to the stage.
    Now my goal is, when the user clicks on a navigation button,
    the window exits the stage, loads an external SWF with the content,
    and then returns to the stage.
    I've the "window" movie clip with an instance name of
    "contentWindow". Inside there is another movie clip with an
    instance name of "contentLoader". The content that the user
    requested should appear inside the "contentLoader".
    Now, when the contentWindow leaves the stage, I get this
    error message:
    quote:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at rwd_fla::MainTimeline/trigger()
    If I switch
    "contentWindow.contentLoader.addChild(navLoader);" for
    "contentWindow.addChild(navLoader);" it works fine, but the
    external SWF doesn't move with the window.
    How can I load an external SWF into a movie clip that's
    inside other movie clip?

    Hi,
    Recently, I have been putting together a flash presentation.
    And I am just wondering if the following might help you, in your
    communication with the said swf file:
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    onComplete);
    function onComplete(event:Event):void
    event.target.content.thinggy_mc.y -= 100;
    Not the best example, but this allows you to target a mc
    within an external swf file. I think if you look up this code, you
    will have an answer ;)
    Kind Regards,
    Boxing Boom

  • How do I separate short movie clips loaded from my digital camera to iPhoto 11 at the same time pics are downloaded and how do I get those video clips to a dvd that will play on a dvd player

    When loading pics to iphoto 11 from my camera, occassionaly it will include some video clips with the description of Movxxxx. I wonder if someone could direct me to some straight forward instructions as to how to transfer these video (movie) clips, which now exist in iphoto, to a dvd that will play on a dvd player as one might  expect to see a video play, including the audio that was captured at the time of filming.
    Thanks in advance for any assistance you can offer this novice.

    You need to open iMovie and it will have a event library called iPhoto Videos, click on that and the videos will load in the window next to it, then you make a new project in iMovie.  Then open iDVD and make a new project then import the movies to the program then burn to a DVD..

  • I have 3 consecutive movie clips that I am trying to drop into the drop zone but it only recognizes the first one and only produces the firts one in a DVD. How can I drop all three  movie clips into one drop zone

    On IDVD, I have 3 consecutive movie clips that I am trying to drop into the drop zone to create a DVD but it only recognizes the first one I dropped and only produced the first one in a DVD. How can I drop all three  movie clips into one drop zone.

    I have had some luck doing the following: Export each clip from imovie as a quicktime clip. Open iDVD and create a new project. Import a few stills into iDVD and then click on the button that gets created to get into the screen where the individual slides appear. Drag each quicktime into that screen and arrange in the order you want. You can then delete the stills. The button that appeared when you dropped in the stills will launch a complete show.

  • How do I remove a movie from my Wishlist that I have already bought?

    How do I remove a movie from my Wishlist that I have already bought? If a movie is on the wishlist that I don't own, I can hit remove. If I have bought it, then it has no way of being removed.
    It's a bug that needs fixing.

    Many thanks but that did not help. I have numerous movies in my ITunes account. I have downloaded a previously purchased film from my Icloud account onto my phone. Obviously, this takes up about 3gb of memory. I therefore, need to push this film back into the cloud thereby removing it from my device. The advice from the link you provided is to swipe the film and you will get a delete marker. You don't. When I go on videos and then films all I get is a list of films I have previously purchased on my ITunes account. I have swiped them every which way it is possible to swipe something but I still don't get a delete or remove button.

  • RemoveChild for movie clip that was added in another function?

    Hello everyone.  I have 3 different functions for my preloader.  I have an Event.OPEN, ProgressEvent.PROGRESS, and an Event.COMPLETE.  In the event.OPEN function, I create a new variable that is data typed to the class name of my preloader that I set in it's property dialogue box.  This is just a simple circle animation.  Below is my code for it:
    function addPreloader(event:Event):void
        var myPreloader:mcPreloader = new mcPreloader();
        myPreloader.x = stage.stageWidth / 2;
        myPreloader.y = stage.stageHeight / 2;
        myPreloader.width = 75;
        myPreloader.height = 75;
        addChild(myPreloader);
    My ProgressEvent.PROGRESS function looks like so:
    function preloadImages(event:ProgressEvent):void
        var percent:Number = Math.round(event.bytesLoaded / event.bytesTotal * 100);
        percent_txt.text = percent + "%";
    and my Event.COMPLETE function looks like so:
    function imageLoaded(event:Event):void
        var myLoadedImage:Loader = Loader(event.target.loader);
        addChild(myLoadedImage);
        new Tween(myLoadedImage, "alpha", Strong.easeIn, 0, 1, 0.5, true);
        event.target.loader.removeEventListener(Event.OPEN, addPreloader);
        event.target.loader.removeEventListener(ProgressEvent.PROGRESS, preloadImages);
        event.target.loader.removeEventListener(Event.COMPLETE, imageLoaded);
    The only problem is that when it's done loading, I'd like to remove the myPreloader from the stage.  Since it is declared in the Event.OPEN function, I can't communicate with it via my Event.COMPLETE function.  How can I successfully remove it from the stage after it's done loading?  Thanks!
    Jesse

    Duh, thanks Kglad.  It's been a long week ;).
    Jesse
    Date: Thu, 9 Jun 2011 13:47:57 -0600
    From: [email protected]
    To: [email protected]
    Subject: removeChild for movie clip that was added in another function?
    var myPreloader:mcPreloader
    function addPreloader(event:Event):void
       myPreloader = new mcPreloader();
        myPreloader.x = stage.stageWidth / 2;
        myPreloader.y = stage.stageHeight / 2;
        myPreloader.width = 75;
        myPreloader.height = 75;
        addChild(myPreloader);
    My ProgressEvent.PROGRESS function looks like so:
    function preloadImages(event:ProgressEvent):void
        var percent:Number = Math.round(event.bytesLoaded / event.bytesTotal * 100);
        percent_txt.text = percent + "%";
    and my Event.COMPLETE function looks like so:
    function imageLoaded(event:Event):void
    removeChild(myPreloader);
    myPreloader=null;
        var myLoadedImage:Loader = Loader(event.target.loader);
        addChild(myLoadedImage);
        new Tween(myLoadedImage, "alpha", Strong.easeIn, 0, 1, 0.5, true);
        event.target.loader.removeEventListener(Event.OPEN, addPreloader);
        event.target.loader.removeEventListener(ProgressEvent.PROGRESS, preloadImages);
        event.target.loader.removeEventListener(Event.COMPLETE, imageLoaded);
    >

  • How to stop , play nested movie clips....

    Hi all,
    I'm calling a swf file in a container_mc, which is in
    another swf file(Interface), by loadMovie() method. The Major
    problem I've stucked with is that in the interface I'm having a
    Play/Pause Button, which is not stopping the nested movieclips of
    the external swf file which is loaded in the container_mc
    movieclip.
    The other major issue is that I'm not able to add a
    progressbar(sliderbar) which runs according to the animation, to
    this interface. Please help ASAP

    I have a similiar situation however the container_mc has me
    puzzled, I'm not sure what that is - perhaps you can answer my
    question:
    I have a master swf called index.swf. The index.swf has a
    main tool bar of buttons which load frames; each frame is named to
    coincide with the main bar button (i.e. genInfo, setup,
    mainentance, etc). This works perfectly. My problem is with Movie
    Clips.
    Each frame has a sidebar which loads external swfs (i.e.
    genInfo.swf) - each external swf is made up of a series of Movie
    Clips which run in succession along the timeline; each Movie Clip
    belongs within its own frame (i.e. MCseg1 is in frame seg1; MCseg2
    is in frame seg2, etc).
    I need to pause and play each individual Movie Clip at will;
    I have built two buttons (pauseBtn and playBtn) into a Movie Clip
    called MCpausePlay. The first frame of MCpausePlay contains the
    pauseBtn; this frame is coded with the global "stop();" In order to
    move to frame(2) which contains the playBtn, the pauseBtn is coded
    with -
    on(release) {
    gotoAndPlay(2);
    The playBtn is coded:
    on(release) {
    gotoAndPlay(1);
    When clicked, the MCpausePlay moves from pause to play.
    That's all I have been able to get this to do.
    How do I code MCpausePlay to pause and then play each
    individual Movie Clip? (How do I get a Movie Clip to control other
    Movie Clips?). Should I code the Movie Clip, the frames within the
    Movie Clip, or each individual button within the Movie Clip? And,
    does this MCpausePlay belong on the Index.swf file, or should it be
    on each external swf? Or perhaps built in to every Movie Clip? I
    have tried all and have not had any success.

  • How can i let a move clip complete his motion tween movement after dragging and dropping it

    hi how can i let a move clip complete his motion tween movement after dragging and dropping it
    i am using this code and there is a motion tween applies to the movie clip r_mc
    r_mc.addEventListener(MouseEvent.MOUSE_DOWN,fun); r_mc.addEventListener(MouseEvent.MOUSE_UP,fun2); function fun(event:MouseEvent):void { stop(); r_mc.startDrag();
    function fun2(event:MouseEvent):void {
    play(); r_mc.stopDrag();

    i have a simple .fla file wich contains MC that has
    a motion tween(its moving from the left to the right of the stage)
    this motion tween covers the whole time line (  there is only 50 frames in the time line)
    i mean in the frame 1 the MC appears in the left of the stage
    and in the frame 50 the MC appears in the right of the stage and there is a motion tween between them
    every thing till now working well
    i want to make that MC dragabble
    so when i drag the MC i will use stop()
    and when i drop it i will use play()
    but the problem is that the mc doesnt move and complete
    his motion tween movement when i drop it
    for example the MC will be in the middle of the stage in frame 25
    in this frame (25) i am draging the MC ,stoping the timeline,dropping the MC and resum playing the timeline again
    but the MC freezes in the middle of the stage and doesnt go to the right of the stageo until the flash loops and start from the frame 1 again
    here is the example wich i am worikng on
    http://www.mediafire.com/?ia47r4owha7sz8v
    thank u very much and sorry for my bad English

  • How do I remove a movie from my IPad?  It is not listed in my library so I can't synch it out.

    How do I remove a mover from my IPad. It does not show in my library so I can't synch it out.

    You can delete from ipad and just leave movie un-ticked in iTunes, if it is one you have downloaded from iStore then I believe that you can't delete but you can hide, then it's available to download again, but I only use movies from my PC.

  • How do I reload my video clips that I recorded into iMovie?

    How do I reload my video clips that I recorded into iMovie? My project is there but my original iMovie videos are gone which does not allow my iMovie to play.  The screen is black. I need Help!

    Please have a look at my post at:
    https://discussions.apple.com/thread/5649660?tstart=0
    where I describe what files should be present for iMovie 9 to work for someone else with a similar problem.  They must either be in the users Movies folder on the start up drive or at the root level of any other partition or connected external drive.

Maybe you are looking for

  • Hello friends while doing file to jdbc senario I am getting error

    Hello All, while doing file to jdbc senario in sap xi getting error in the receiver communication channel..error is 2007-07-17 04:11:00 Error SAPEngine_Application_Thread[impl:3]_35 1184625660906 Attempt to establish database connection failed with S

  • API to update mtl_item_sub_inventories table.

    Hi All, Can anyone please let me know if there is any API to update mtl_item_sub_inventories table. Regards, Shruti

  • Version Management for LSMW Objects

    Hi, I want to maintain versions for LSMW objects. How can I do it. Regards, Tuhin

  • Obviously, it is Oracle's misplay

    In Oracle 11g's document Data Guard Concepts and Administration(about how to create a standby database), it mentions:"configure Listener on both side using Oracle Net Manager". But it never mentions installing the Oracle database soft first on the st

  • 5 CDs to 1 DVD

    Is there an easy way to convert .dat files in 5 CDs to one DVD? Thank you