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

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

  • Ap Div - How to make them move in browser with the rest of the page?

    I have designed a site, but have placed an ap div "enrol now" button over an image, and when I view it in my browser, the ap div button does not move with the rest of the page.
    http://www.moreefamilydaycare.com/HOME_02test.html
    The "view our gallery" ap div is working.
    Please help.
    (you can see where the enrol now button should appear as I have put it in the main image pic aswell as a guide.)

    APDivs are very tricky to work with especially if use them inappropriately as a primary layout method.
    Here is why:
    http://apptools.com/examples/pagelayout101.php
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Where can I get information on how to make a movie in FCPX with stills

    I am making a filmclip in FCP to my music, using mainly photos and short clips. Where can I get some information to help me. I am new to FCPX?

    There is lots and lots of information on the web.  I have only been using FCP for just over one year and among the sources I have found  helpful are:
    The Apple FCP X manual/help file is at http://help.apple.com/finalcutpro/mac/10.1/
    Introductory video tour at http://www.izzyvideo.com/final-cut-pro-x-tutorial/3-tour-of-the-interface/
    Articles by key community contributor,  Tom Wolsey at http://www.fcpxbook.com/updates/101/101libraries.html
    There are also lots of videos featuring specific topics at MacBreak Studio at: https://www.youtube.com/playlist?list=PL607BE2B2BFE9BE1A
    Then there is the FCP website at:  http://www.fcp.co/?view=featured
    Geoff

  • How to play a movie clip with a tween animation

    I created a movie clip symbol with a tween animation and created an instance of it on the main stage. The animation is in the movie clip timeline, not on the main timeline. I cannot get the mc to play using mc.play() or mc.gotoAndPlay.  What am I missing??

    Hi Ned, thanks for the response;
    1.Yes I named the instance.
    2.I  don't beleive so. I started from the library creating a new symbol, added the graphics, added the key frames, then created the tween. Then I dragged the symbol onto the main stage and named the instance. So I don't think there is a movie clip inside an mc.
    Here is the main timline:
    Here is the mc timeline:
    Here is what I'm trying to do:
    stop();
    blk1._visible = false;
    blk2._visible = false;
    blk3._visible = false;
    ppk1._visible = false;
    ppk2._visible = false;
    ppk3._visible = false;
    storeCartons = new Array();
    storeCartons = [blk1, blk2, blk3, ppk1, ppk2, ppk3];
    startButton.onRelease = function() {
        myNumber = Math.floor(Math.random()*storeCartons.length);
        trace("myNumber "+myNumber);
        activeCarton = storeCartons[myNumber];
        activeCarton._visible = true;
              activeCarton.play();

  • Can anyone tell me how to make a video clip in color transition?

    Can anyone tell me how to make a video clip in color transition like the opening of "Oh Brother where art though" ?
    You know the scene at the start where it starts off Black and White then as we move down the timeline it transitions to a rusty brown gradually.
    It's on the Apple site for FC Studio as a promo clip.

    how to do a keyframe trasition in the Color FX room
    I realize that you can "add" keyframes to the timeline in COLORFX, but I don't believe they are always observed, and then they usually disappear in retrieved projects, and aren't persistent if you leave the room. To remember where they are... you might mark in a keyframe on those frames in another room as a pathfinder. The behaviour is consistent with a creature of the six-legged variety.
    Method 1. If you are trying to taper the effect (any effect) in COLOR FX, the most linear approach is to render two versions of the clip; one "with", one "without" and do an opacity fade once you have returned them to Final Cut. This gives you the most control, flexibility, repeatability and consistency.
    Method 2. You may attempt to keyframe the bleach bypass settings within the node itself -- the preset that comes with COLOR doesn't have any controls, but the Nattress plugin does.
    Method 3. Set up a "blend" node with your bleach bypass feeding one of the inputs and leave the second input to default to the untreated video... keyframe a transition from "1.00000" to "0.00000" and that should work.
    Note: the keyframe timeline markers will disappear from the timeline if you exit the clip, but the effect is likely to persist. At least that was what was happening a couple of minutes ago... for me, the effect and blend performed the transition just like it was previewing when rendered. This strategy is subject to being created and rendered "on the spot right now", and I advise making sure you have your renderqueue settings ready to go... load the clip from the COLORFX room using the Mac command bar at the top of the screen and render it right away. Don't try to save it for later. Just Do It.
    An announcement went around about two weeks ago that Mr. Deakins' website was back up and running, so give him another try... poor guy has been swamped probably doing Dreamweaver maintenance... yeah, that must be it...
    jPo

  • How to make a short clip out of the original one ?

    Some days ago, I asked a question on editing a clip in this forum. The responder asked me to provide a few seconds of the clip for his examination. But I got stuck. I didn't know how to make a clip of a few seconds out of the original clip and that it had the exact same format and properties as the original clip.
    Neither Premier nor After Effect have an ouput option such as "same as original source" .
    So, my question is how to make a short clip out of the original one with everything the same properties as the original one.
    Thanks in advance.

    May be I haven't made myself clear
    Sorry, but I think that I am still not following you.
    I want to export and render the short clip to a new file which I want to have everything the same as the original clip. Just like I cut off a few seconds off it and that few seconds becomes an independent file.
    OK, you have your original source file. It is complete and is also unaltered. If you want a "Copy" of it, just use Windows Explorer, or similar to make that Copy. If you want a separate file of your edited version of that source file (as it appears in the Timeline), use the WAB (Work Area Bar) to include just that edited instance of the source footage, and Export just the WAB. This will give you a separate file with the edits in it.
    I still feel that neither is what you want. If you can step me through, maybe with screen-caps, what you have and what you wish to end up with, I can see the operation more clearly.
    Good luck,
    Hunt

  • How to make your movie from a template in AE CS6?

    Hello,
    Firstly, I'm new to this forum and Adobe After Effects. Hence, please excuse my beginner's language.
    I recently modified a slideshow template in AE CS6. After doing all the necessary modifications in the template project, I do not know how to make a movie out of it.
    I'll appreciate your help in guiding me by providing the necessary information to create the movie.
    Waiting for a reply.
    Thanks

    JMichael wrote:
    Actually, I have to create the movie urgently and send it to a colleague.
    Ouch. That's rather like saying your thesis committee needs your paper tomorrow and, say, while we're at it, can we help you with your research?
    After Effects is huge, unbelievably deep and stupidly complicated.
    It's not that we don't WANT to help you, it's that we cannot execute the rendering commands for you nor can we make all of the rendering and output decisions for you.

  • How do I transfer movie clips from iPhoto to iPad?

    How do I transfer movie clips from iphoto on my iMac, to my iPad?

    You can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import.
     Cheers, Tom

  • How can I watch movies in germany with native tone, english? Any one knows how to switch the language when renting a movie?

    How can I watch movies in germany with native tone, english? Any one knows how to switch the language when renting a movie?

    I wonder the Format Tables macros on my site could be adapted?
    http://www.grainge.org/pages/authoring/word/word_macros.htm
    If not, I have used Macro Express to format tables in Rh. No reason it could not be used in Word.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How to make an hypertext link workable with adobe reader for IOS ?

    Hello,
    Hypertext links in a PDF file work perfectly well on Mac OS (Yosemite).
    The same document on an IPAD with IOS is not able to open an hypertext link ...
    How could I do to solve this problem ?
    An author who want to publish electronic books with hypertext links on mobile devices

    Hello Steve,
    All my best wishes for the new year.
    To answer your question :
    . I am writing books on my IMAC with Yosemite  (10.10.1) using Word (14.4.7)
    of  OFFICE MAC.
    . I can open Hyperlink connection by clicking on the link
            . I save the document in a .PDF format
    . This document is sent to my IPAD with IOS 8.1.2
    . In this .PDF document I am no more able to open hyperlink connection
    Please see attached an abstract of my book.
    Thanks a lot for your help and advices.
    Michel Poncet
    Tel: +33 4 76 89 50 82
    http://www.amazon.fr/Glariand-Copent/e/B007NXP7FU
    De :  Steve Werner <[email protected]>
    Répondre à : 
    <[email protected]>
    Date :  vendredi 2 janvier 2015 03:34
    À :  Michel Poncet <[email protected]>
    Objet :   How to make an hypertext link workable with
    adobe reader for IOS ?
    How to make an hypertext link workable with adobe reader for IOS ?
    created by Steve Werner <https://forums.adobe.com/people/Steve+Werner>  in
    Adobe Reader for iOS - View the full discussion
    <https://forums.adobe.com/message/7058559#7058559>
    Hyperlinks can be of several types. What are you linking to? Exactly what
    application did you test the hyperlinks with on the Mac? What application
    did you use to create the hyperlinks?
    If the reply above answers your question, please take a moment to mark this
    answer as correct by visiting:
    https://forums.adobe.com/message/7058559#7058559 and clicking ŒCorrect¹
    below the answer Replies to this message go to everyone subscribed to this
    thread, not directly to the person who posted the message. To post a reply,
    either reply to this email or visit the message page:
    Please note that the Adobe
    Forums do not accept email attachments. If you want to embed an image in
    your message please visit the thread in the forum and click the camera icon:
    https://forums.adobe.com/message/7058559#7058559 To unsubscribe from this
    thread, please visit the message page at
    , click "Following" at the
    top right, & "Stop Following" Start a new discussion in Adobe Reader for iOS
    by email
    <mailto:[email protected]eso
    ftware.com>  or at Adobe Community
    <https://forums.adobe.com/choose-container.jspa?contentType=1&containerType=
    14&container=4631>  For more information about maintaining your forum email
    notifications please go to https://forums.adobe.com/thread/1516624.

Maybe you are looking for

  • Error coming while creating STO

    Dear All / MM consultant, while creating stock transfer through tcode ME21N  , we are getting one error message "date 1,245 is not convertible".i checked all the possible way.I could not  found from where this error message is giving. This is happeni

  • Archive Link & Cost Center

    Hi all, I have attached document to cost center through Archive Link tr.code OAWD succesfully. but i can't see any document attach in cost center(Tr. Code KS02).where to find this attach doucment throgh Archive Link with cost center. i allready check

  • 10.4 tiger for mac book

    Hi does any know were I can buy or download 10.4 tiger for mac book? thanks

  • How to influence lead time from vendors

    Hi All, I am trying to figure out how I can consider the impact of the Chinese New Year on the lead times of finished goods manufactured in China and sent to plants in the USA. I set up a special data range to account for this in the Calendar which w

  • Installing older Mac drive in Mac Pro

    I'm desiring to mount a Seagate Barracuda ATA IV drive once housed externally. Can I do this or must I continue to access it via Firewire?