MAKE A MOVIE CLIP UNDETECTABLE TO CURSOR IN ACTIONSCRIPT.

Simple problem.
On layer1 we have a button.
On layer2 we have a symbol_MC (which is a movie clip with animation embedded inside) overlapping the button.
Result.
The button cannot be rolled-over or clicked due to symbol_MC overlapping it.
Solution.
Obviously I need to make the symbol_MC on layer2 which is overlapping the button undetectable to the cursor,
so that when the cursor rolled over symbol_MC, it detects the button instead.
I don't have any code to make symbol_MC undetectable to the cursor!

Excellent the code works as expected, this thread is solved.

Similar Messages

  • How do you make a movie clip face the mouse

    How to you make a movie clip rotate so it's always facing the
    mouse?

    thanks a lot! I got the code to work, I just modified it a
    bit.

  • How to make my movie clip move slowly towards right after a few seconds?

    Hi,
    I have the following code which will bring my Banner_mc onto the middle of my Introduction page with some effects. Now, I want this movie clip to wait for a while and then move to right until it disappear with the same effects. How can I do that?
    var BannerFadeTween:Tween=new Tween(Banner_mc, "alpha", Strong.easeOut, 0 , 1, 6, true);
    var BannerRotateTween:Tween=new Tween(Banner_mc, "rotation", Strong.easeOut, 360 , 0, 6, true);
    var BannerXTween:Tween=new Tween(Banner_mc, "x", Strong.easeOut, -300 , 500, 6, true);
    var BannerYTween:Tween=new Tween(Banner_mc, "y", Strong.easeOut, -125 , 300, 6, true);
    Thanks in advance for any help in this regard.

    Hi,
    Thanks for the reply. I wnat to make one thing clear that I am using my project SWF file on computer which doesn't have any internet connection. The other thing I can't find link for downloading the plug-ins.
    When I tried to download the file from the below link, I saw the following page:
    http://www.greensock.com/club/
    Please provide the download link for greensock TweenLite & TweenMax. Thanks.

  • How to make a movie clip button into a url link?

    Hello,
    I'm kinda new to using Flash and am trying to edit a template for a friend of mine, the problem is I'm trying to add a url link to the buttons. I tried adding this action to the button
    on(release){
    getURL(http://www.yoururl.com.);
    I saved as swf & got this error msg in the compiler errors: Symbol=but1,layer 4, frame=1 Mouse events are only for button instances
    In the library I checked the properties of the button and its a movies clip, I'm not sure if it will make any difference if I change to button or graphic?
    I would like to upload the fla and swf files but this forum doesn't seem to allow me to attach files to messages.
    Does anyone know how to do this? Any help is greatly appreciated.
    http://jaedenyoo.com

    Unfortunately that doesn't seem to be the problem, I checked and
    in my flash file its typed correctly.

  • How do you make a movie clip play in CS4

    Hello, I used Flash MX a long time ago (beginner level) then
    left it for years. I'm now using CS4 and am stuck. I have a stage
    with a movie clip placed onto it. I want to create a simple 'click
    to play' button so that the movie clip only plays on click of this
    button. Can someone please give me a step by step (idiot-proof)
    guide on how to do this please

    Cases that use to be _property in AS2 are now just property
    in AS3. So _x is x, _y is y, and _visible is visible. This should
    work:
    function showPlay(event:MouseEvent):void
    play_text.visible = true;
    pause_text.visible = false;

  • How do I make a movie clip play between scenes?

    I am VERYnew to flash so please bear with me. I am having a
    problem with a movie clip playing between scenes. As scene 1 plays,
    the movie works correctly. When I click on my button to go to scene
    2 the movie clip starts over. I would like it to continue from
    scene 1 seamlessly. Is this possible? How do I do it?

    avoid scenes - they are only for timeline management inside
    flash only - upon export it all becomes
    one long timeline - using them can be useful but in many
    instances it can cause navigational issues
    such as yours. Many developers avoid scenes - the ones who
    use them are mostly animators who have
    longer timelines with different scenes (actual settings, like
    backgrounds and characters).
    --> Adobe Certified Expert (ACE)
    --> www.mudbubble.com :: www.keyframer.com
    -->
    http://flashmx2004.com/forums/index.php?
    -->
    http://www.macromedia.com/devnet/flash/articles/animation_guide.html
    -->
    http://groups.google.com/advanced_group_search?q=group:*flash*&hl=en&lr=&ie=UTF-8&oe=UTF-8
    Maureen Getchell wrote:
    > I am VERYnew to flash so please bear with me. I am
    having a problem with a
    > movie clip playing between scenes. As scene 1 plays, the
    movie works correctly.
    > When I click on my button to go to scene 2 the movie
    clip starts over. I would
    > like it to continue from scene 1 seamlessly. Is this
    possible? How do I do it?
    >

  • Make my movie clip move from left to right with arrow buttons.

    Hi hope this is a quick one..
    I have all the elements set up already so just need the
    logistics of how i can acheive the following:
    I have an arrow at the furthest left and furthest right of my
    main flash movie. I then have a movie clip in the middle which has
    indidivual images on a kind of long strip. When i click the left
    arrow i want the movie to begin to move from the right to the left
    and visa versa. I have achieved this with the keyboard left and
    right keys so what i really need is to convert this theory for the
    left and right arrow buttons?
    var speed:Number = 4;
    object_mc.onEnterFrame = function() {
    if (Key.isDown(Key.RIGHT)) {
    this._x = this._x+speed;
    } else if (Key.isDown(Key.LEFT)) {
    this._x = this._x-speed;
    Any help will be greatly appreciated??
    Thanks
    Ben

    use the getAscii() or getCode() methods of the key class. and
    you can always use the trace function to check the values to be
    used in your if-statement.

  • How to make a movie clip invisible depending on a value in another layer?

    I am trying to make an "achievements" page for my game, where if the user has a high score greater than 100, then the achievement can be unlocked. I tried using a code like this, but it didn't seem to work!
    function Check();
    if(endscreen_mc.highscore_txt > 100)
    medals.roachLock.visible = false;
    else if(endscreen_mc.highscore_txt < 100)
    medals.roachLock.visible = true;
    else if(endscreen_mc.visible == 100)
    medals.roachLock.visible = true;
    The high score value is saved inside a shared object. What's wrong with my code, and what can I do to fix it?

    I tried doing this, but it's still not working.. 
    function Check():void
    if(Number(endscreen_mc.highscore_txt.text) > 100)
    medals_mc.roachLock.visible = false;
    medals_mc.medal_mc.visible = true;
    else if(Number(endscreen_mc.highscore_txt.text) <= 100)
        medals.roachLock.visible = true;
    This is what's inside my endscreen layer
    function showresults():void
              Rchannel.stop();
       // display current score
       endscreen_mc.scoreR_txt.text = String(score);
       // calculate, display and save (if necessary) a new highscore
       var so:SharedObject = SharedObject.getLocal("alltimeHighScore");
       if (!so.data.score || score > so.data.score)
           endscreen_mc.highscore_txt.text = String(score);
           so.data.score = score;
           so.flush();
                 Check();
       else
           endscreen_mc.highscore_txt.text = String(so.data.score);
       if(so.data.score==score)
                        endscreen_mc.score_txt.text = String(score);
                        endscreen_mc.highscore_txt.text = String(score);

  • How to make a movie clip follow the player

    Ok I want to make spawn able enemies and when they get in like 5 pixles in range they start to follow the player they are moving and if they switch directions it will go to another frame that will make it look like they are running in that direction. How can this be acheived?

    use Math.atan2() to find the angle between the player and enemy.

  • How to make a movie clip scroll with mouse position

    Hello again.  I asked a question about parallax scrolling and I think it was the wrong question.  I am looking to control a website with similar controls as this example:
    http://www.sectionseven.com/index2.html
    I want to use this but also with both  x and y axis.  Any ideas as to where to find a tutorial as to where to do this?  It should be fairly simple, but I am having trouble.  Any help or code is greatly appreciated.  Thanks!

    Yeah, I figured it out.  simply change 0.04 to -0.04
    addEventListener(Event.ENTER_FRAME,scrollmc1 );
    function scrollmc1(event:Event):void
         if(mc.x < 911  && (mouseX > 369)) {
            mc.x += (mouseX - mc.x) * -0.04;
         if(mc.x > 369  && (mouseX < 911)) {
            mc.x += (mouseX - mc.x) * -0.04
    Here is the actual code I used on my site:
    stage.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
    stage.align = StageAlign.TOP_LEFT;
    function enterFrameHandler(e:Event):void
              if((sliderWorkspace.x < 911 && (mouseX > 1100)) || (sliderWorkspace.x > 369 && (mouseX < 90))) {
                  var newLocation:Number = sliderWorkspace.x + ((mouseX - sliderWorkspace.x) * -0.04);
                        newLocation = Math.min(910, newLocation);
            newLocation = Math.max(370, newLocation);
            sliderWorkspace.x = newLocation;
    Let me know if this works for you

  • How can you make a movie clip zoom in on play?

    I simply have a rectangle vector image of a landscape and I want it to zoom in when I play it...and I guess stop at a certain point. Not a clicking function or roll over, just when I start up my swf file or go to that specific scene I want it start zooming (gradually, not fast either). Please help me. Thank you!

    Convert the image into a movieclip, give it an instance name, and look into using the Tween class to provide the gradually changes of the scaleX and scaleY values of whatever object you wish to zoom.
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    var twX:Tween = new Tween(instanceName, "scaleX", Regular.easeIn, startValue, endValue, zoomSecs, true);
    var twY:Tween = new Tween(instanceName, "scaleY", Regular.easeIn, startValue, endValue, zoomSecs, true);
    The code above is written instructively more than literally.  Anything I've bolded you can/need to define.
    Many people will recommend using third party tweening classes due to better performance and other reasons.  So you may want to look into them after you get this working.

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

  • How can I make the Instance name the same as the name of the Movie clip in an animation.

    Hi, I am an animator for a small game project and I have this really big problem. Even though I used flash for animation for a long time I am a newbie when it comes to something technical. I just received a request to make every movie clip that I use  to have a consistent <Instance name> in every frame of the animation. Only if they told me this earlier... Is there an easier way to make the <Instance name> the same as the name of the Movie clip used other than manually entering it. I have 16 characters with 12 body parts with 20 animations each with about 6-7 frames for each body part it will take me months and nightmares evey night to enter everything by hand. Please help me keep my sanity!
    I'm not sure if I explain correctly, so here is a picture:
    Thank you!

    Thank you for the fast answer! I found this video on jsfl functionality that deals with a similar problem, I am not a coder so it will take me some time to figure it out, but when I do I will probably post the answer here. Here is the video:

  • Error 1034: Converting movie clip to instance of a custom object?

    I have several movie clips on the stage that each have unique instance names.
    I need to instantiate them as instances of a custom class I have created. This is giving me an error, and I know I'm probably missing some simple concept somewhere, doing something wrong, but I don't know what it is.
    Here is my code:
    In the main timeline, I have (simplified):
    var puzzleAL:GeoGroup = new GeoGroup ("AL", "Alabama", 1, false);
    puzzleAL.addEventListener(TouchEvent.TOUCH_BEGIN, geoTouchBeginHandler);
    function geoTouchBeginHandler (e:TouchEvent): void {
        e.target.gotoAndStop("Over");
        nameDisplay.gotoAndStop(e.target.abbrev);
        e.target.addEventListener(TouchEvent.TOUCH_END, geoTouchEndHandler);
    function geoTouchEndHandler (e:TouchEvent): void {
        if (e.target.lock == false) {
            e.target.gotoAndStop("Off");
        else if (e.target.lock == true) {
            e.target.gotoAndStop("Lock");
        nameDisplay.gotoAndStop("USA");
        e.target.removeEventListener(TouchEvent.TOUCH_END, geoTouchEndHandler);
    It throws an error before the object is ever instantiated. It compiles, but at runtime I get:
    TypeError: Error #1034: Type Coercion failed: cannot convert Puzzleography_fla::Alaska_2@da0a0f9 to GeoGroup.
         at flash.display::MovieClip/gotoAndStop()
         at Puzzleography_fla::MainTimeline/goToFrame()
    My class code looks like this, if it matters:
    package  {
        import flash.display.MovieClip;
        public class GeoGroup extends MovieClip {
            public var abbrev:String;
            public var fullName:String;
            public var assignedOrder:Number;
            public var lock:Boolean;
            public function GeoGroup(abbrev:String, fullName:String, assignedOrder:Number, lock:Boolean) {
                this.abbrev = abbrev;
                this.fullName = fullName;
                this.assignedOrder = assignedOrder;
                this.lock = lock;
    I'm missing something obvious, I know it, but I'm new to OOP, switching from procedural, so I'm sure I'm getting a concept wrong somewhere.
    Thanks so much!
    Amber

    yes, it makes sense and yes, you'll need to learn a little.
    I have 50 movie clips not linked to any actionscript in the movie.
    that's incorrect.  those movieclips are linked to all the actionscript that applies to their class.  so, even if those movieclips weren't part of the GeoClass, they still have all the properties, methods and events of the movieclip class (created by adobe developers).
    The fact these movieclips are actually GeoGroup objects extending the movieclip class, adds even more code to them.  and, so far that's all good and exactly what you should do.
    They are all on the stage. They are all named with their instance names "puzzleAZ" "puzzleTX" etc.
    no problem, usually.  (but in your case, a problem explained below.)
    I want to be able to add variables to them, such as strings and numbers, so that I can call puzzleAZ.size or puzzleAZ.fullName to get "XX Acres" or "Arizona" returned.
    so, in programming lingo you want your objects to be members of a dynamic (ie, you can add properties) class.  the movieclip class is just such a class.
    I created a separate class (GeoGroup) that extends MovieClip that has in it all the variables I need and tried to assign each movie clip to that class.
    here's the problem.  when you created your GeoGroup class you mandated that certain parameters be passed to the constructor.  when you add a class member (like each of those puzzle pieces) to the stage, the class constructor is invoked (along with everything else in that class).  However, no parameters are passed to your constructor so the flash compiler points out the issue and refuses to run your code.
    there are two ways you could proceed:
    1.  remove the parameters from the constructor
    2.  don't add any class members to the stage in the authoring environment.
    p.s.  this is your GeoGroup constructor:
          public function GeoGroup(abbrev:String, fullName:String, assignedOrder:Number, lock:Boolean) {
                this.abbrev = abbrev;
                this.fullName = fullName;
                this.assignedOrder = assignedOrder;
                this.lock = lock;
    the paramters that contructor requires are 2 strings, one number and one boolean.

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

Maybe you are looking for

  • How can i built a java application using java debug class on Log4J

    Hi, As java API support the MethodEntryEvent, using which I can get the automatic logging statements when the method is entered or exited as HelloExample.main(with argument type). Where HelloExample is the class name. Main is the method entered with

  • Adobe RoboHelp 7 does not recognize FrameMaker 6

    I am trying to create webhelp. It's my intention to use webhelp generated by RH7 as my single source output to webhelp, Word, PDFs, and my company's wiki. I tried to import FrameMaker 6 files into RH7 for HTML and saw the message that FrameMaker is n

  • When we should go for implicit fact column

    hi all, In which scenario we have to go for implicit fact column.... let say we are having dimensions D1 and D2 and D3.. and two Facts F1and F2 all dimensions are connected to both facts F1 and F2, once you drag the columns from D1 and D2... the repo

  • CC 2014.2 crashes when trying to print

    I had this issue a while back when CC 2014 was first released. Now the demon is back! Every time I try to print to my laser from InDesign, the programs crashes. I run Win 8.1 x64. The issue, back then was that my laser print driver, while fine for al

  • Verify membership

    Hi, I get this message every day: "We are sorry - we can't connect to the Adobe Server right now. 07 days remaining. Just a reminder that we need to verify your membership is current. You can keep accessing Creative Cloud offline, but if you don't co