Condition-when 2 movie clips touch

hi everyone
i want to make a condition which happend if one movie clip
touches another one.
i meen specific movie clips.
if (a touches b)
i thought of (when a passes the _x fo b, and the same for the
_y, but that would wwork only if its a squar or a rectangle
where the _y and _x are the objects limits, but otherwise, it
won't work
don't hurry to answer and if you have something more fun or
important to do, do it.
i can wait

that will work for mine too! mine are only circles that I
wanted to make touch.

Similar Messages

  • Check when movie clip has finsihed and then gotoFrame

    Can anyone help me I’m sure that this is possible but
    I’m not sure how to do it. I have a movie clip placed in one
    frame and when that movie clip is completely finished I want to go
    to a different frame. The problem I’m having is that I have
    to put a stop in the frame with the movie clip to make sure it
    plays all the way through. Any suggestions?

    In the movie clip (on it's last frame) add the following
    code:

  • IMovie cropping is ignored when move clip to iDVD

    I'm having an annoying problem. I have an existing iDVD project that I want to add some clips to. I have edited some new clips in iMovie and I want to send them to iDVD. I can't share or export them to iDVD because it creates a new iDVD project. I can drag my cropped clip from the clips windows in iMovie directly to a submenu in iDVD but when I do this it puts the entire original clip in, not the cropped one. I have tried importing an iMovie project within iDVD but it only imports whatever is in the timeline. This is a problem because I need each clip on the DVD to play and then return to the main menu so I have not put any of my clips into the timeline. I know I can export my cropped clip into a quicktime file and then import it into iDVD but I have over 40 clips! There has got to be an easier way to get cropped clips into iDVD. Help!

    Well the solution would be to export each clip out as a "Full Quality DV file" (from the timeline) then drag all of the DV files to iDVD. This would provide you "return to main menu" functionality.
    Daniel C. Slagle
    Keeper of the "Unofficial" iMovie FAQ
    http://iMovie.danslagle.com

  • How can you make movie clips partially visible?

    Okay, so this sounds simple, but I'm tottally lost... I'm a thirteen year old boy that has been using Flash for a little over 3 years. I program video games. I recently embarked on a game where one of the modes is to be split screen, player one gets the top half, player 2 the bottom. The promblem with this is that my game is based off of a moving background, where inorder to keep the main character centered the background moves instead of them. Becsause of this,when setting up split screen, the screen on the upper layer takes over the bottom because there would be more showing then there would be in the game: Parts would be off screen. I was wondering if there was anyway that using hitTest(s) (or some other method) you could make a movie clip partially visible/ invisible. I know the code for making something invisible when touching something else. But I was wondering if there was a way to make only the part of the movie clip touching another movie (it would have its alpha turned off... let's say it's a hitBox) or only the part of the movie clip touching the hitBox visible, invisible. Another way of looking at this is that I want a movie clip to be a small box, but inside I want their to be a huge picture. I want to make it so that when you move the picture different parts are viewable in this little box. And to make this as clear as I can... : I want to make a circle that I'll call the magnifying glass. I want to make an invisible picture that can be moved using code (I know that part). I want it so that when part of the picture is under the magnifying glass it's visible, not the hole thing, jus that circular area. Another reason I'd like to have this promblem solved is for a moving water effect. I want to make a movie clip and tween showing a square of rushing water, but without putting anything over parts of it (other than a hitBox) I want to make only a squiggly line of that water box visible. Thank you so much! =D I really hope you guys know! =D P.S. I also am currently using the trial of CS4, if that helps anything. But if it's only possible in AS3, then it's impossible to me because I use AS2 conservatively.

    Thanks... but I think you've misunderstood my question. I suppose magnifying glass wouldn't be the right word... I just wanted to explain that I want only the part of one mc touching another mc to be visible. I hope this isn't confusing. I have no need to enlarge an image. I want to make a movie clip only partially visible. Check out the fla.

  • When i now go on virgin media movie clips they will no longer play

    i have virgin media home page selected for my home page when i select to look at latest movie clips it go to page but clip does not play.if i do the same useing internet explorer it plays so it must be something to do with firefox browser it did used to play but has not worked for last couple of weeks.

    Some problem here. I bought my iPad 2 in June, and it has never been able to play a TV show purchased from iTunes. Shows I bought many months ago and synced to my Touch worked fine but can't be resynced to the very same Touch today.
    Both the desktop iTunes and the iPad iTunes are registered in my one and only Apple ID, so copy-protection should not be the problem. Of course they are and always have been updated to the very latest OS/version.
    Don't get your hopes up that Apple has a solution. They give us the runaround about updating the software and the same darn link to a help page about supported video formats ("Uh, I told you the video is from your own store!").  I have tried reauthorizing in both places. I have tried thoroughly un- and re-installing iTunes+Quicktime. No TV show is worth this hassle. It has soured me on the whole Apple iTunes ecosystem.

  • Flash html5 - How can i make an internal movie clip slow down and stop when it get to a certain frame?

    I am creating an automotive braking system using flash and have a wheel turning. I want the wheel to slow down and stop after the brake pedal is pushed at a certain frame. I know I could do this with frame by frame animation but was hoping there was a short cut - javascript?? If not the slowing down portion then is there code for just making the internal movie clip (wheel turning) to stop when it gets to a frame.? Thanks

    you can use the ticker class to create a loop that you use to control the wheel's rotation or frame, TweenJS v0.6.0 API Documentation : Ticker

  • How do I assign a mouseclick event Listener to a simplebutton already nested in a movie clip when it's dropped on stage?

    I'm trying to assign a mouseclick event listener to a simplebutton nested within a movie clip's later frames, starting at frame 2 and up. This card, however, is not added to my game until later, and when the player clicks on it/turns it over.
    There are four files involved in this program:
    #1 The main actionscript file, which corresponds to
    #2 my dreamQuester .fla file.
    #3 my artifactCard file movieClip's corresponding .as file,
    #4 my combo1.as file corresponding to a an instance of a simpleButton named combo1 that is already
    nested --and this instance is already named-- inside/as a child of said artifactCard movieclip.
    What I've done so far isn't working:
    In my main dreamQuester.as file, when a player clicks on an artifactCard, its MOUSE_DOWN event
    listener takes them to this function (clickArtCard), where the trouble is at:
    // player clicked on the artC card--which is a child of posArt1 on stage--to turn card over:
            function clickArtCard(a_event:MouseEvent) {
                var thisArtCard:artifactCard = (a_event.target as artifactCard);
                thisArtCard.gotoAndStop(unclickedArt1);  // go to frame number of artifact
                                    // card where combo1 button is.
                thisArtCard.removeEventListener(MouseEvent.CLICK,clickArtCard);
                thisArtCard.buttonMode = false;
                trace("combo1.combo is:" + combo1.combo);
                trace("posArt1.artC.combo1 is:" + posArt1.artC.combo1);
                posArt1.artC.combo1.addEventListener(MouseEvent.MOUSE_DOWN, comboClickedWHO);
    when the artC card--the static public instance of artifactCard--is clicked, it only gets to the
    trace("posArt1.artC.combo1 is:" + posArt1.artC.combo1); which returns this error message:  
    TypeError: Error #1010: A term is undefined and has no properties.
        at MethodInfo-61()
    So do how would I declare a static public variable of this simpleButton at the start of my main .as
    file to make it defined to get a mouseDown actionListener into my pre-existing-and-named-instance
    combo1 simpleButton?
    perhaps there is a way, while the debug movie program is running, to click on the simpleButton and see exactly
    what it's parent heirarchy is, to see the name of all parents above the simpleButton incase they are
    different then what I think?
    (just in case, I was hoping to squeeze a zip file containing these files to be less than 9MB incase someone was willing to look at my files to see what I've done so far, but 9 megs is just too big! even though all graphics I've imported where turned into vector graphics with trace bitmap. I wish there was a way to check the file size of each symbol in Flash CS4, here...)
    Thank you so much for any help!
    ~Ethan

    Just use a
    stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
    function keyPressed(event:KeyboardEvent):void {
         //trace(event.keyCode);
         if(event.keyCode == ???){
              // play the sound
    Where I show the "???" you would replace with the keyCode for the key you want pressed for that sound.  To determine the keyCode you can use the trace line that I have commented out.
    Note that when testing in Flash you often need to disable the keyboard shortcuts in the Flash Player in order to be able to use alot of the keys.  You will find this option in the Control menu options in the player.

  • Button no longer works when inside a Movie Clip?

    Again I turn to the almighty Adobe forums for help...
    So basically, I've had this problem for over a day now, and I've posted on Experts-Exchange.com... to no avail really.
    So here we go:
    I have a button in a Flash project I've made. It's used to jump to another place on the root timeline, labelled "Why". It used to work perfectly.
    I have now placed the button inside a movie clip (it has to be in an animated sequence), but now it no longer works. It appears to work fine, the rollover state works and all. But when clicked it does nothing.
    The code I use to work the buttons goes on the main timeline, the code for this button is:
    mc_anim_backdrops_menu.btn_subsection1.onRelease = function() {
    gotoAndStop("Why");
    _global.swfloaded = "";
    Why does it no longer work? and what can I do to fix it?
    The question is posted here over at Experts Exchange - http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Macromedia_Flash/Act ionScript/Q_24888850.html
    what we've tried there is tracing the problem. The code seems to be pointing to the right place, but none of the actual function works.. as you'll be able to see if you open up the attached file (and change it's extension from .txt to .fla to get it working)
    So would someone be able to open it up, have a look and tell me what's wrong? Because I'm stumped. And frustrated.

    My guess is that you have a scope problem. By putting the button inside a movieclip you have made the buttons scope the same as that clip.
    So if you add a trace inside the release event handler, what do you get?
    trace("My current scope is: "+this);
    I'm guessing it is "_level0.mc_anim_backdrops_menu," right?
    So since you are using the global function of gotoAndPlay() it is looking for that label in the current timeline and not finding it.
    You should probably use the MovieClip method and specifiy which timeline it should look in.
    _root.gotoAndPlay("Why");
    _level0.gotoAndPlay("Why")
    _parent.gotoAndPlay("Why");
    both would probably work. I would never use the first two, other than to make sure that there wasn't something else going on...

  • My current os x is 10.9.5, using final cut express vers. 4.0.1.  I have imported .mov clips created with a older mac os x (lion) and converted them to import into fce. after doing this as well as putting clips on the fce timeline when playing back t.h

    My current os x is 10.9.5, using final cut express vers. 4.0.1.  I have imported .mov clips created on a older mac os x (lion) and when I wanted to import them into fce, a quicktime conversion window opened up and converted them (I haven't experienced this in the past). I then imported the converted quicktime clips into my fce project.  After doing this I took selected clips and put those edited clips on the fce timeline.  When playing the video back in the fce timeline,I noticed
    1) the video wasn't playing back smoothly like the original content
    2) when looking at the timecode reading of the timeline, the timecode was sputtering as well as the video and audio.  I exported to quicktime just to see if that was consistent, it was.
    When I play the converted quicktime content independently of fce,  it plays normally (no sputtering of timecode, video and audio.  Need help to resolve the sputtering playback of converted video content in the fce timeline.  I've never experienced this before.  Any suggestions?

    When you say you converted the clips before importing them into FCE, did you convert to AIC or DV and do the converted clips match your FCE Sequence settings exactly?  If not, go back and convert the original files again, using the intended Sequence settings as a guide.
    -DH

  • I have FCE 4.0.1 and running OS x 10.7.5  when i burn my movie the audio from my movie clips don't come through .  My Sound effects and music can be heard.  I export to Quicktime movie, make it self contained then open IDVD for an intro and burn it.

    I have FCE 4.0.1 and running OS x 10.7.5  when i burn my movie the audio from my movie clips don't come through .  My Sound effects and music can be heard.  First I export to Quicktime movie, make it self contained then open IDVD for an intro and burn it.  everything sounds great in preview but then ( once again)I lose my audio from my movie clips.

    Try Mixing Down the audio before export.
    This info may help;
    https://discussions.apple.com/message/1060680?messageID=1060680&amp%3b#1060680
    Also serch this forum for Mix Down you should find lots of info.
    Al

  • HT4623 I have an iPad but can't download movie clips when received in either email or iPhoto. What do I have to do?

    I have a new Ipad but cant download movie clips when received on eihter email or from Iphoto.  My friend sent me a small holiday movie clip taken on Iphoto but I cant download it.  What do I have to do?

    The Settings > General > Software Update option only appears when you have iOS 5+ installed, as your tagline says that you have iOS 4 then you can only update via your computer's iTunes, as described half-way down the page that you posted from.
    Connect the iPad to your computer's iTunes and copy any purchases off the iPad to your computer via File > Devices > Transfer Purchases. You may also want to copy photos and any important documents off the iPad as well e.g. via the file sharing section at the bottom of the device's apps tab when connected to iTunes, via wifi, email, dropbox etc - they should be included in the backup, but it's best to have a copy of them outside of the backup just in case. You can then force a backup of the iPad by right-clicking the iPad 'Device' on the left-hand sidebar of iTunes and selecting 'Backup' (on iTunes 11 you can enable the left-hand sidebar via option-command-S on a Mac, control-S on a PC)
    Then start the update by selecting the iPad on the left-hand sidebar, and on the Summary tab on the right-hand side clicking the Check For Updates button
    Updating to iOS 5+ : http://support.apple.com/kb/HT4972
    You can only update a device to the highest iOS version that it supports, which for a first gen iPad is is iOS 5.1.1, and for other iPads is iOS 6.1.3

  • Sound in a movie clip malfunctions when play head is moved backward

    Problem summary:
    A sound (stream) placed inside a movie clip that is within another movie clip will start playing continuously when I use the play control to jump around on the main timeline.
    Details:
    I am using Flash CS3 but the same issue occurs with CS6. I've spent quite a bit time to search/research for the issue but didn't find a solution. To demonstrate the problem, I've reduced the flash movie to a very simple structure.
    One the main timeline:
    The first frame has a movie clip (Game MC) and a stop action.
    Following the first frame, there are several frames, mostly empty except some text.
    The last frame has a stop action.
    On the Game MC timeline:
    There is only one frame. On that frame, there is a movie clip (Card MC), and the stop action.
    On the Card MC timeline:
    It starts with 3 blank frames and a stop action.
    Starting at frame 4, a sound (.wav format) is placed and is set to be "stream."
    At the end of this timeline, there is a stop action.
    From Flash CS3, I press Ctrl+Enter to test the movie. The movie stops on frame 1 of the main timeline with the card showing, no sound, as expected. Now I use "." to move the play head forward one frame at a time. No problem. I see the frames after the first frame. Still no sound, as expected. So far so good.
    The problem starts when I use "," to move the play head backward, the sound in the Card MC starts to play, regardless where the play head is, even when the Game MC (thence the Card MC) is not on the stage. Worse, each press of "," will trigger another start of the same sound overlapping with the previous one. And the sound would continue in loops until I close the swf.
    However, the problem will not occur if I place the Card MC directly on the main timeline. It only occurs when it is inside another movie clip (Game MC).
    I need to solve this problem because the full version of the flash card game is to be placed in an HTML page with a javascript based play control, which allows the viewer to jump around in the swf timeline.  
    The fla file is at: https://docs.google.com/file/d/0B_5mgotjr4l5RDZaOGxFeFFWN1U/edit?pli=1
    Am I doing something wrong? Is this a bug in Flash? Any insight will be greatly appreciated.
    Keith

    Thanks. But the problem is that the timeline for the movie clip (Card MC) where the sound is should not have been run because the play head is not on the frame where the Game MC is at (Game MC contains Card MC.) I also put trace actions on various frames on that timeline (for Card MC) and none was invoked. I have also tried to set the sound to "event" or "start". It made no difference.

  • Add a second chapter menu page when using individual movie clips

    Hello!
    I have imported about 20 short movie clips in iDVD and want them to be displayed in a chapter menu. But if I create a submenu as a chapter menu, I can't find a way to add a second page to this particular chapter menu. Of course I can add a new submenu with chapter menu styles, but then I get an ugly folder button (i'm using the white reflection style) and not a rightwards arrow on the submenu page that links to the second submenu page. If I add a Movie with 20 chapters, I get several submenu pages with left and rightwards arrows to navigate through them. Is there a way to get this effect with seperate clips? I don't want to join the 20 clips to one with chapters, because I want iDVD to return to the menu after playing each clip.
    Thanks in advance!
    Florian
      Mac OS X (10.4.8)  

    How long is your longest of the 20 or so movies you want to put in? One trick you might be able to use is to add a lot of chapters to that one movie to create a couple/few "scene selection" pages in iDVD. Add that movie to iDVD and the pages will be created.
    Now add your other shorts. You can cut and paste between menus, so cut them from the main menu and drop them into the scene selection menus.
    The chapters from your long movie can be selected and deleted, leaving only the short movies on those pages. Keep in mind that you are only removing the chapters from the menus. Those chapters will still exist in the movie itself so when someone is playing the movie and hit the chapter forward or back button on the remote, it will jump to the next chapter. But that might be fine.
    Patrick

  • Using Flach CS4 and action script 2.0 how do I advance to a specific frame of the main timeline when a movie clip instance come to the end of its timeline?

    Using Flach CS4 and action script 2.0 how do I advance to a specific frame of the main timeline when a movie clip instance come to the end of its timeline?

    code on the last frame of your movieclip instance:
    _root.gotoAndStop('whatever_frame');  // will work unless this swf is loaded into another swf.  in that situation, you should use a relative path to the main timeline (eg,  _parent or _parent._parent etc).

  • Premiere CS6 crashing when I move clips in the timeline

    This error box appears when I try to move things around in the timeline. I'm not exactly sure where to start so I don't know what to troubleshoot.
    Anyone ever get this before?

    Yes!  I too keep trying to move clips and get relentless crashing.  My clips are all named.  I also tried to rename a clip and when I moved it, CS6 crashed just like before.  Is there another clip name you are referring to?

Maybe you are looking for

  • Material Cost estimate realted issue and question

    Hello,     we have a multi level BOM, I have makre and released for one sub level material in the BOM, there are few other sub- materils which need to be costed, can i do the cost estimate for the highest level of BOM or do i need to do first for eac

  • I need a PPT for user how to run reports with perfomance

    Hai BW guys... For our end-users we need one slide that gives them some hints/tips on how they should run the reports for best performance (e.g. extract as few records as possible). I know there is some SAP material in relation to this on sdn.sap.com

  • Confusion About Utilization Rate

    Hey Guys, I am completely new to credit, as I am a college student. I am trying to build a strong credit score, so I want to make sure I take all the right steps. As of right now I only have one credit card. I got approved for Capital One Journey, wi

  • Transaction :XSLT_TOOL

    Hi, I have a question. I want to to test the XSLT-Mappings with transaction "XSLT_TOOL". Also, I want to integrate a JAVA-Funktion into the xslt-mapping. XSLT-Source: <xsl:param name="SAPDate">    <xsl:value-of select="/sender/SAPDate"/> </xsl:param>

  • Is there a Polarizing Filter Available as a Plug-In?

    Is there a polarizing filter available as a plug-in? I have some footage that in hindsight I wish I had shot with a polarizing filter on the lens. John