How do I get a movie clip to follow the cursor?

Hi guys,
What I want:
Is a simple action where I have my company logo in the middle of the screen and it follows the cursor (not over the whole screen but within invisible borders).
What I use:
I have Flash Pro CS5, code is Actionscript 3.0 and my company logo has been converted to a movie clip.
What didn't work:
So I watched 2 different tutorials on how to do this and both didn't work.
With the first one I used this code:
function gradientOver(event:MouseEvent):void{
          logomc.visible=true;
          function reportStageMouse(event:MouseEvent):void{
                    var myStageX:Number=Math.round(event.stageX);
                    var myStageY:Number=Math.round(event.stageY);
                    var xTween:Tween=new Tween(logomc,"x", Strong.easeOut, logomc.x, myStageX, 1, true);
                    var yTween:Tween=new Tween(logomc,"y", Strong.easeOut, logomc.y, myStageY, 1, true);
          stage.addEventListener(MouseEvent.MOUSE_MOVE,reportStageMouse);
function gradientOut(event:MouseEvent):void{
          logomc.visible=false;
function gradientClick(event:MouseEvent):void{
          logomc.visible=false;
gradient.addEventListener(MouseEvent.ROLL_OVER,gradientOver);
gradient.addEventListener(MouseEvent.ROLL_OUT,gradientOut);
gradient.addEventListener(MouseEvent.CLICK,gradientClick);
And with the second one I had to make a border by drawing an oval shape, turn it into a movie clip and put my logo inside of it. Then I used this code:
stage.addEventListener("mouseMove", arjun);
function arjun(e:MouseEvent):void
          var var1 = mouseY - followins.y;
          var var2 = mouseX - followins.x;
          var radiusR = Math.atan2(var1,var2);
          var degreeR = radiusR / (Math.PI / 180);
          followins.rotation = degreeR;

Thanks
stage.addEventListener(MouseEvent.MOUSE_MOVE, hideCursor);
function hideCursor(e:MouseEvent):void{
logomc.startDrag(true);
Mouse.hide(true);
so I used this code and it didn't work. I first try'd it on the main timeline and then inside the logo's own timeline and even inside the backgrounds own timeline.
no luck so far..

Similar Messages

  • How do I get a movie clip to play fully in an iphoto slide show.

    How do I get a movie clip to play fully in an iphoto slideshow.  Right now it only plays for a few seconds, while the complete clip is 22 seconds.

    Bring up the Settings pane for the slideshow and click on the movie clip in the tray at the top.  Then in the Settings pane click on This Slide button and set the play time to the actual length of the movie clip. 
    OT

  • How do i get a movie to play on the internet on my tablet

    How do I get a movie to play in the internet on my tablet

    http://web.mac.com/kcarter10/iWeb/Site/Movie_files/Podcast-1.mov
    Works just fine for me (Safari 3.1 and 10.5.2).
    If you're using Safari you may need to use the keyboard shortcut Command-R to "refresh" the download.

  • How can I get my movie clip to resize according to screen size?

    I have a movie clip (startMenu); inside it there are buttons, text, and graphics. This is a game I am making, and it will be played on different screen sizes of Android. This is the code I have so far:
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT
    startMenu.addEventListener(Event.RESIZE, resizeLayout);
    function resizeLayout(e:Event):void
        setPosition();
    function setPosition():void
         startMenu.x = (stage.stageWidth - startMenu.width) / 2;
            startMenu.y = (stage.stageHeight - startMenu.height) /2;
    When I run it on different phones using debugging, it locks on the left hand corner, but does stretch out to fit the whole screen. What should I do?

    try changing
    stage.scaleMode = StageScaleMode.NO_SCALE;
    to
    stage.scaleMode = StageScaleMode.EXACT_FIT;
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/StageScal eMode.html

  • How do I get iTunes movies to play on the Nook Tablet?

    How do you down load iTunes movies to the Nook Tablet?

    Already answered in your duplicate thread:
    https://discussions.apple.com/message/19877613#19877613

  • How do I get Vertical Move to operate in the conventional direction?

    Ever since CS5, the move function has operated normally in the horizontal direction but backwards in the vertical direction. In other words, entering a positive value moves objects down, entering a negative value moves them up.
    At first I thought this was a bug, but it has continued in CS6 and CC on every computer we have. Yes I'm getting used to it but it's opposite of every other software package we have or have ever had, including Illustrator up to CS5.
    I can't find a user control to correct this. Is there a way to do it?

    zebra,
    They have reversed the Y axis in CS5 onwards. But you can unreverse it and get back to what you are used to.
    To change the ruler origin (and direction of the Y axis) to be the same as in CS4 and earlier, you may:
    A) Install and run the script in the OP of this thread,http://forums.adobe.com/thread/890507?tstart=30
    or
    B) Manually change the relevant preference settings as follows:
    0) Close down Illy (you can only change the preference file with Illy closed);
    1) Find and open the AIPrefs (Win speak) or Adobe Illustrator Prefs (Mac speak) file withe a text editor like Notepad or TextEdit; the preference file is a (hidden) file in the (hidden) folder Adobe Illustrator CS5 Settings
    2): Find and change the following two bits of code:
    /isRulerOriginTopLeft 1 >>> /isRulerOriginTopLeft 0 (change 1 to 0)
    /isRulerIn4thQuad 1 >>> /isRulerIn4thQuad 0 (change 1 to 0)
    This is a global change so you only have to do it once (just as you can undo it once).
    You may find the folder as described in Move the folder.
    Was this helpful?  Yes    No  

  • How do I get a movie to work on the web?

    I got it all worked out on iweb, but when I published my movie to the web all I see is the Q with a question mark in the middle of it. Help, please.

    http://web.mac.com/kcarter10/iWeb/Site/Movie_files/Podcast-1.mov
    Works just fine for me (Safari 3.1 and 10.5.2).
    If you're using Safari you may need to use the keyboard shortcut Command-R to "refresh" the download.

  • 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 does one get i movie to open . . . the "pinwheel" just keeps spinning

    How does one get i movie to open? The pinwheel is in a perpetual state of spinning.

    Hi,
      mFulErr                       = -41,  /*memory full (open) or file won't fit (load)*/
    At the Apple Icon at top left>About this Mac.
    Then click on More Info>Hardware and report this upto but not including the Serial#...
    Hardware Overview:
    Model Name: iMac
    Model Identifier: iMac7,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.4 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache: 4 MB
    Memory: 6 GB
    Bus Speed: 800 MHz
    Boot ROM Version: IM71.007A.B03
    SMC Version (system): 1.21f4

  • How do I get home video clips from iMovie Mac to iMovie iPad?  Surely there is some degree of cross-compatibility?  I have a load of clips in iMovie on my MBP that I wanna download to my iPad2 so that I can edit movies on the move.  Any ideas?

    How do I get home video clips from iMovie Mac to iMovie iPad?  Surely there is some degree of cross-compatibility?  I have a load of clips in iMovie on my MBP that I wanna download to my iPad2 so that I can edit movies on the move.  Any ideas?  (The clips are in a .mov format, they have been imported / converted into this format in iMovie, original files were from a JVC camcorder in some other strange format.)

    I copied the iTunes file from the external drive and it's in both places.  I thought all I would need is the iTunes program (which I downloaded to new computer) and my iTunes library file.  There must be something else that's missing.  My iTunes library looks the same on the new computer as it does when I open it on the external drive.  If I click on an iTunes library song from my new computer, it will only play if I have the external drive plugged in.
    My back-up drive is a mess.  I have multiple copies of music, video, photo, and document files and I don't know how that happened. ={  Obviously, I don't know how to back up stuff properly and there are back-up files extending over a 6- to 8-year period.  I think all I did was just drag and drop the main folders from the back-up drive to the same main folders on the C: drive.  Also (and I'm kind of fuzzy on this) Windows used to automatically save music files in a folder within my document files (which makes no sense to me).  As my Jewish friends would say, "Oy Vey!" 

  • HT6196 how do I edit  a movie clip to get rid of unwanted parts of a clip

    how do I edit a movie clip in thelatest version of I movie to get rid of unwanted parts of a clip

    You can split a clip into pieces using Quicktime Player.  See:
    http://support.apple.com/kb/PH5879?viewlocale=en_US&locale=en_US
    for details.
    Second question:
    I don't know what you want to acheive but yhe only way I can think of to move a precise time into a clip is to select it and trim it - whilst trimming the time amount trimmed is displayed.  Stop when you have the right amount then position the playhead there.  You can then 'untrim it' and he playhead will be at the desired spot.
    Geoff.

  • 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 rented a movie on my iPad that stopped downloading in the videos app and when I tried to download it again it said I had to go to the iTunes Store but there were no downloads there. How do I get my movie to work!

    I rented a movie on my iPad that stopped downloading and when I tried to download it again it said I had to go to the iTunes Store but there were no downloads there. How do I get my movie to work!

    What is your current connection via speedtest.net
    Make sure DNS is set to auto (settings - general - network)
    If on wifi try ethernet

  • How can I get a movie that I created in IDVD to load in ITunes and stream to Apple TV?

    How can I get a movie that I created in IDVD to load in ITunes and stream to Apple TV?

    Welcome to the Apple Community.
    You can't, but you have a few alternatives.
    Best option: If you made the movie on the DVD in iMovie (or even another editing application) and still have the project, go back to the project and export it for Apple TV (using the Apple TV preset)
    Next best option: If you still have the original movie that you put on the DVD, open it in QuickTime and export it for Apple TV (using the Apple TV preset)
    Worst option: Use something like Mpegstreamclip (Quicktime Mpeg2 playback component required) to convert the DVD to h264.

  • How can i get my movies back on a new computer

    how can i get my movies back on a new computer

    See Recover your iTunes library from your iPod or iOS device.
    tt2

Maybe you are looking for

  • Ipod not recognized and Restore doesn't work

    i have an ipod classic 160 GB, with disk mode enabled. When i connect it to the mac mini, it calls up iTunes. but then the message comes up that ipod can't be recognized. So i have restored it (using the latest updates, by connecting to the net) and

  • Cant upload new songs in iTunes from new computer onto iPhone 3gs

    How do I upload new songs in my new iTunes from my mac to my iphone 3gs WITHOUT deleting or replacing all the old songs? My old computer crashed and I have no way of accessing those old songs but I dont want to loose all 509 songs. some were burnt fr

  • Is it possible to compile & run other java files from one file

    hi friends, i need to run 2,3 java sourse files(first.java,second.java etc) from one file.i tried the Runtime.getRunTime().exec( cmd) but here cmd must be a executable file what is need is to compile and run the files (first.java,second.java) from on

  • Slide Oddity

    Hi, I'm brand new to Spry and am trying to add a simple slide effect to a short view / detail list page. The detail div is empty and set to display: none in the stylesheet. display: hidden still shows the top border and about a line break worth of sp

  • How can I bring the recordset count inside the same recordset?

    I have a query inside a procedure where I'm paging the results. I dont know how to bring the total results inside the recordset. How can I bring the recordset count inside the same recordset? SELECT * FROM ( select a.*, rownum rnum      FROM (SELECT