Please help...Need to rotate image/MC by moving mouse

Hi all,
I'm sure a lot of you have seen the tutorials for buttonless
scrolling (where you move your cursor to the right of the screen
and the movieclip scrolls to the left etc). Here is an excellent
example...
http://www.gotoandlearn.com/
(and then scroll down until you get to the title, 'Scrolling
Thumbnail Panel'.
Now, I want to use this principle to rotate a MC of the world
instead of scrolling the MC left and right. So, as your cursor
moves to the right of the screen, the globe rotates in an
anti-clockwise direction and visa versa.
Could anyone help moderate the code below (or provide new
code) to make this work? I've tried a few things but none of them
work. Thanks!! (Really need this for campaign at work!! Panicking a
bit).
FG.
the code...
panel.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
var b = stroke.getBounds(_root);
function scrollPanel() {
if(_xmouse<b.xMin || _xmouse>b.xMax ||
_ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
if(panel._x >= 89) {
panel._x = 89;
if(panel._x <= -751) {
panel._x = -751;
var xdist = _xmouse - 250;
panel._x += Math.round(-xdist / 7);
}

OK, I've got a script that is a lot easier and DOES rotate
the m/c! It's:
var mouseList:Object = {};
Mouse.addListener(mouseList);
mouseList.onMouseMove = function(){
worldMC._rotation = _xmouse;
But it stops when my cursor does. In the scrolling example,
the further right your cursor goes, the more the horizontal MC
scrolls. Only when the cursor is in the centre of the screen does
the globe stop rotating.
So what I really need here is a globe that starts to rotate
anti-clockwise when the cursor is moved to the right...the further
right it goes, the faster it rotates. When the cursor moves to a
central location, the speed of the globe's rotation slows to a stop
(allowing the user to click onto a point on the globe).
If you've given the example I linked to above a go, this
should be a little clearer. It's hard to put into writing, but I
hope you get the idea. Looking forward to hearing from you.
FG.

Similar Messages

  • Help needed placing extra images in my portfolio.

    I like to add some more pictures by my portfoliomap.
    I have now 6 items each page and i like to know if its possible to add some more pictures and how i can do this?
    You can find my site at..
    http://www.dorffdesign.nl/affiches.html

    As you can see on
    http://www.dorffdesign.nl/advertenties.html
    it worked out fine..
    Only the last set off images contait to much space between the set before? Do you know where i can adjust this?
    Regards Brian
    Date: Tue, 17 Apr 2012 09:07:38 -0600
    From: [email protected]
    To: [email protected]
    Subject: Help needed placing extra images in my portfolio.
        Re: Help needed placing extra images in my portfolio.
        created by Altruistic Gramps in Dreamweaver - View the full discussion
    Upload the images to the images folder and use the markup as you have been using in the following, changing the name of the image to suit.
    !images/arcadisch_logo.jpg|alt=|src=images/arcadisch_logo.jpg!
    Gramps
         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: http://forums.adobe.com/message/4340979#4340979
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4340979#4340979. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Please help needed os x lion I wish to transfer photos from the iPhoto library to a album or folder then delete them from the Library but when I do this it also deletes them from the album ? how do I do this please.

    Please help needed os x lion I wish to transfer photos from the iPhoto library to a album or folder then delete them from the Library but when I do this it also deletes them from the album ? how do I do this please.

    Albums are not places to store photos, they're more like "labels" you can apply to photos to better organize them. A single image file can be in multiple albums... they are not copies, it's simply been labelled as being in all those albums. So what you're trying to do doesn't make sense, because it's based on incorrect assumptions.
    The iPhoto library will always show all photos that you have added to iPhoto.

  • Serious help needed fixing an image gallery

    On my page
    http://www.dorff.nl/clients.html
    ive put this very nice gallery..
    The only problem is. I divided the gallery in 6 groups. But in every group you will see the same images. How can i change the images for each group seperately?
    I hope you understand what i ment.
    Regards Brian

    How i can use the four files you have send me?
    In dreamweaver im getting the message...
    lightbox.css is not on the disk
    prototype.css is not on the disk
    scriptaculous.css is not on the disk
    lightbox.js is not on the disk
    Date: Thu, 12 Apr 2012 12:37:39 -0600
    From: [email protected]
    To: [email protected]
    Subject: serious help needed fixing an image gallery
        Re: serious help needed fixing an image gallery
        created by adninjastrator in Dreamweaver - View the full discussion
    Here are 4 files you need:http://www.olympicdiscoverytrail.com/style_sheets/lightbox.csshttp://www.olympicdiscoveryt rail.com/style_sheets/prototype.jshttp://www.olympicdiscoverytrail.com/style_sheets/script aculous.js?loa d=effectshttp://www.olympicdiscoverytrail.com/style_sheets/lightbox.jsHere is an entire web page with working multiple galleries:
    Photo Gallery 1
        !images/125/paw_Carrie-Elwha.jpg|title=Elwha River Valley approaching the bridge|height=93|alt=Elwha River Valley approaching the bridge|width=125|src=images/125/paw_Carrie-Elwha.jpg|border=0!
    Photo Gallery 2
        !images/125/sw_IMG_1115-Downtown-Trail.jpg|title=Trail near High School close to downtown Sequim|height=83|alt=Trail near High School close to downtown Sequim|width=125|src=images/125/sw_IMG_1115-Downtown-Trail.jpg|border=0!
       </div>     <!-- close main_container -->
    </div>
    </body>
    </html>Here is a link to that working page on-line:http://www.olympicdiscoverytrail.com/trail_maps/slideshow.htmlThere is not much more I can do!You'll have to take the bull by the horns and start coding!Copy/Paste this HTML code into a new, blank page and edit the paths to all the .css, .js, and image files.Best of luck!Adninjastrator
         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: http://forums.adobe.com/message/4330648#4330648
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4330648#4330648. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • HT5631 how do I verify my apple id? I can't sign in to it in mail and I can't make a new one because it just will not process I'm trying to set up iCloud between iPad and iPhone and having ALOT of difficulty pleAse help need it done by later on today!!!!!

    how do I verify my apple id? I can't sign in to it in mail and I can't make a new one because it just will not process I'm trying to set up iCloud between iPad and iPhone and having ALOT of difficulty pleAse help need it done by later on today!!!!!

    In order to use your Apple ID to create an iCloud account, the primary email address associated with the ID must first be verified.  To do this, Apple will send a verification email to your account and you must respond to the email by clicking the Verify Now link.  Make sure you are check the spam/junk folder as well as the inbox.  If it isn't there, go to https://appleid.apple.com, click Manage your Apple ID, sign in, click on Name, ID and Email addresses on the left, then to the right click Resend under your Primary Email Address to resend the verification email.

  • Here is the message I got from the red "i" message... please help.The backup disk image "/Volumes/Data/Lisa's MacBook Pro.sparsebundle" is already in use.

    Here is the message I got from the red "i" message... please help.The backup disk image “/Volumes/Data/Lisa’s MacBook Pro.sparsebundle” is already in use.

    http://pondini.org/TM/C12.html

  • Guys i need to get m itunes account unlocked its stopping mefor making in app purchases please help need to make a purchase within 30 minutes

    guys i need to get my itunes account unlocked its stopping mefor making in app purchases please help need to make a purchase within 30 minutes

    If you've tried to buy something and your've been charged for it (and it's not a temporary store holding charge) but haven't received it then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Firefox will not let me use the mouse to click on a product so i am having to use the tab key. Please help me to be able to use my mouse to click the box.

    Firefox will not let me use the mouse to click on a product so i am having to use the tab key. Please help me to be able to use my mouse to click the box.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Please Help Nested Editable Region Image & Spry

    Please Help Me.
    New to Dreamweaver. I've been given a "grandchild" nested temple with only one editable region to alter. I've read and Googled since Saturday. My brain actually hurts.
    Goal
    - Insert my background image into region
    - Add Spry accordion to mid left
    - Add Spry collapsible to bottom right
    How can 3 things be so hard? Please, can someone walk me through this? Thank you

    I've been given a "grandchild" nested template with only one editable region to alter.
    Nested templates.  Aaaaaak! There's no advantage in nested templates, ever.  They're so problematic it makes my head hurt just thinking about them.
    If you have the parent and grandparent template.dwt files to work with, you'll need to insert Editable Regions to hold your scripts and other supporting widget code.
    If you don't have those files and you can't edit the <head>, you can't insert widgets into Template child or grandchild pages.  You'll need to detach the page from Templates.
    Nancy O.

  • Please help, need to import .swf/flash media

    Hi all, have a little issue here. I have some SWF flash media and I want to bring it into imovie so I can edit it more effectivley then with qt. However, I have been haveing alot of trouble, most time I only get the audio part of it and no image. Most of the media is widescreen, I was able to export the media in qt to dv stream and then import it, however, it lost its widescreen look and was kinda squished from the sides if that makes sense, if anybody has expeirence with this type of media, please help.
    Nathan

    Hi Nathan,
    I've never "dared" to convert .swf, but I read a lot about problems doing so... probably the Quicktime section of this forum is better to ask...
    maybe a much easier workaround is using tools as SnapzPro from Ambrosia; this tool claims to "record" any screen content (and audio) and convert it directly into any wanted format (as dv)...
    just a thought.......

  • Please, Help NEED immediately, Radeon 9200 Ati on 23" hd cinema display??

    Hi you all expert, i definitely need some help here after searching through the site , i still couldn't find the solution. Currently i am operating an old G4 Mac 400 mhz , rage 128 pro, the salesman told me it will support the new 23" hd cinema flat panel display, which he fails me, and after checking up the system requirement the minimum should have been radeon 7500. Anyway, i am contemplating on purchasing a new ati 9200 radeon mac edition (within my budget) and would like to ask if it will support the new 23" hd display sitting in my living room. Please help, thanks a million!!!!!

    You should have no problem with this card running the 23'' Cinema. It will indeed

  • Please help! Elements 11 image quality poor compared to LR

    Hello, I just started using elements and am very irritated because the image quality is very poor compared to when i am viewing in LR.  Its not the conversion - i have tried pulling directly from the camear.  It looks great in Camera Raw 7.1 but the second i pull it into editor, it lines get jagged.  Adobe help is telling me this is normal.  Surely not??  Something about a halo around pixels?  Image on left is Elements 11, right is Lightroom and Zoomed in so you can see how sharp it is.  PLEASE help.  im so frustrated!

    In the pse 11 editor are you looking at the image at 100% view (actual pixels)?
    (Other viewing percents can be misleading in the pse 11 editor)
    Double click on the zoom tool in the tol box to get 100% view.
    Also you should be on camera raw 7.4 available from Help>Updates within the pse 11 editor.
    Is that lightroom 4.4?

  • Actionscript 2 help needed on rotating movieclip

    I need help with the "stopping" of a movieclip rotation.  I think this would be easy for you Flash gurus but impossible for me.
    Here is the description.  The code below shows a movieclip rotating after mouse click but i want it to stop in place after 60 degrees.  Basically I need it to rotate 60 degrees after every mouse click and stop.  The "trace" function is there so i know something will happen when it rotates a certain degree.  Right now it rotates continually after the mouse click.
    mc.onRelease=function(){
         mc.onEnterFrame=function(){
              mc._rotation=mc._rotation+=10;
              if(mc._rotation==60){
              trace("HIT");
    As a bonus i would like the rotation of every 60 degrees to ease in and out.  Thank you in advance for any help you can give me.

    When the _rotation value reaches the 60 degree mark, you need to delete the onEnterFrame delete mc.onEnterFrame;.
    There is only one position where the _rotation value will == 60, so if the intention is to stop it at every 60 degrees, then you'll need to change the conditional to be...
    if(mc._rotation%60==0){
    So....
    mc.onRelease = function(){
         mc.onEnterFrame = function(){
              mc._rotation = mc._rotation+=10;
              if(mc._rotation%60==0){
                 trace(mc._rotation);
                 delete mc.onEnterFrame;
    If you want to have easing, I suggest looking into using Actionscript tweening.  With steps of 10 there's little room to ease.

  • Recive deleted pictures with out icloud or any back up from last restore date please help need to find a very important picture

    i have problems with spelling
    There surely has to be a way to recive my pictures from deleted memory on my iphone 4
    i deleted my pictures from this weekend and need to view them but i deleted them with out having icloud or any back up app
    is there ANY one who know's how to get around this there has to be a way like a computer like a restore factor settings that lets you go back to the last time you took a picture
    Please Help Driving me insane

    Richie K wrote:
    im still not conviced i might go to the iphone store tomorrow and see there has to be a way thank you for you help if you come across anything like this please let me know
    Good luck, but they will tell you the same thing that anyone here will tell you.
    Unless the device was backed up (via iTunes or iCloud) after the pictures were taken but prior to deleting them on the device, they are gone.  There is no way to recover them once deleted without a backup.

  • Please help, how to reposition image?

    Hi,
    I am using JWindow instead of JFrame to paint the window border and
    have a problem that I could not paint the image in my designed
    position.
    I have the border from the designer and divided the border in 8 parts,
    4 corners and 4 borders(top, bottom, left, right). Whatever the size
    is, I keep the corner size and using Graphics2D, and AffineTransfrom
    to transfrom the border.
    Here is the code in the paint(g) method.
                   tx = new AffineTransform();
                   scalex = (double)dw/TOP_BORDER.getWidth(this);
                   scaley = (double)TOP_BORDER_HEIGHT/TOP_BORDER.getHeight(this);
                   System.out.println("happy, scalex is " + scalex );
                   System.out.println("happy, scaley is " + scaley );
                   tx.scale(scalex, scaley);
                   tx.translate(VERTICAL_BORDER_WIDTH, 0);
                   g2d.drawImage(TOP_BORDER, tx, this);
    The problem is he TOP_BORDER image always start painted at 0,0 (the
    VERTICAL_BORDER_WIDTH is definitely not 0). I presume the translate is
    the same as setLocation of normal JComponent.
    Please help.
    Thanks in advance for any ideas and input.
    Wing

    hi,
    what about Toolkit.getDefaultToolkit().getImage(String)regards

Maybe you are looking for

  • Internet Explorer 7.0 problems

    Hi, I have a website with a members area and login and had it working perfectly until my friend told me he could not access it from his new Internet Explorer 7.0. When he logs in it just tells him he is not putting in the right password but if he doe

  • Mail won't detect IMAP sub folders

    I have several subfolders in my INBOX (INBOX.read, INBOX.sent, INBOX.todo, ...). Mail.app doesn't detect those sub folderds on startup. Only way to access the sub folders is to create new sub folder for INBOX. When I close the Mail.app or lose networ

  • IPad 2 to TV

    I don't get it. I have an iPad 2 with an Apple VGA connector. I purchased a movie in itunes to watch tonight and connected it to my Samsung TV. No joy. It says something like not authorized. Makes no sense to me. Any ideas? I am not going to buy anot

  • Release Procedure in PR .....

    Hi SAP Gurus, We do release procedure in PR with Account assignment category K.Here ,for collective release in pr (ME55),check box is disabled... Kindly help me how we enable the check box.We use scope of list as "F".All customization for release pro

  • Contents of v$SQLArea.

    Hi, I am looking for a Application that would continously show the contents of v$SQLArea. We need to have a View on what´s going on in the Database. We think a Window that shows the contents running through is OK with a Method to stop and look at the