Moving the position of box with rollover

I have a flash file that slides the position of a movieclip to 4 different positions with 4 buttons which works great.  I also want to add 2 buttons that when you roll over them, I would like the position of the movie clip to keep sliding to the left and right until you roll off of the button(and stop when it gets to either end of the movieclip.  The code below slides the movie clip when you click them...if that helps.
onClipEvent (load) {
_x = 0;
_y = 0;
spd = 2;
//this is the scrolling speed, the hight the number the faster it scrolls//
onClipEvent (enterFrame) {
_x += (endX-_x)/spd;
_y += (endY-_y)/spd;
_root.page1.onRelease = function() {
  endX = 0;
  endY = 0;
_root.page2.onRelease = function() {
  endX = -220;
  endY = 0;
_root.page3.onRelease = function() {
  endX = -440;
  endY = 0;
_root.page4.onRelease = function() {
  endX = -660;
  endY = 0;
I have a new buttons started called "test"
and here is the function I started:
_root.test.onRollover = function() {
Any help is very very very much appreciated!!!!
Thanks

no worries.....I really like the way my file works now.  i have another file with really nice easing to it that contains the code below. what I'm trying to figure out is if I can add that easing into the file you helped me with or would it be easier to modify the code below into a horizontal scroller like I need.
either way, i'm looking for suggestions on a starting point so I can work on getting this figured out.
I appreciate the help!
fscommand("allowscale", "false");
bar.useHandCursor = dragger.useHandCursor=false;
space = 20;
friction = 0.9;
speed = 4;
y = dragger._y;
top = main._y;
bottom = main._y+mask_mc._height-main._height-space;
///////////no x y values ////////////////////////
up_btn.onPress = function() {
myInterval = setInterval(moveDragger, 18, -1);
down_btn.onPress = function() {
myInterval = setInterval(moveDragger, 18, 1);
up_btn.onMouseUp = down_btn.onMouseUp=function () {
clearInterval(myInterval);
dragger.onMouseUp = function() {
this.stopDrag();
drag = false;
bar.onMouseUp = function() {
drag = false;
///////////no x y values ////////////////////////
dragger.onPress = function() {
drag = true;
this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.bar._height-this._height);
dragger.scrollEase();
bar.onPress = function() {
drag = true;
if (this._parent._ymouse>this._y+this._height-this._parent.dragger._height) {
  this._parent.dragger._y = this._parent._ymouse;
  this._parent.dragger._y = this._y+this._height-this._parent.dragger._height;
} else {
  this._parent.dragger._y = this._parent._ymouse;
dragger.scrollEase();
moveDragger = function (d) {
if ((dragger._y>=y+bar._height-dragger._height && d == 1) || (dragger._y<=y && d == -1)) {
  clearInterval(myInterval);
} else {
  dragger._y += d;
  dragger.scrollEase();
  updateAfterEvent();
MovieClip.prototype.scrollEase = function() {
this.onEnterFrame = function() {
  if (Math.abs(dy) == 0 && drag == false) {
   delete this.onEnterFrame;
  r = (this._y-y)/(bar._height-this._height);
  dy = Math.round((((top-(top-bottom)*r)-main._y)/speed)*friction);
  main._y += dy;

Similar Messages

  • I keep getting the little blue box with the question mark

    Hi
    I have 10.6.7 system software and my safari is 5.0.4
    I have called apple twice with this problem already but nothing has helped except for short times.
    I have reset safari about one dozen times and when I do I reset the top 7 items and I've emptied the cache in addition just in case. I've also taken my safari preference plist out of my library and trashed it.
    And I've run disk utilities many times and restarted my computer. Each thing I do will solve the problem for a short time, even up to a day or more (or less) but then it comes back. For instance on Facebook maybe 1/8th of the thumbnail images have the little blue boxes with the question marks but most don't. I can't figure it out. Sometimes even the iPAD safari gets them too but my firefox doesn't show them and neither does Safari on my eMac.
    Yesterday the question marks even showed up in ONE mailing on all 3 computers with the question marks in the blue boxes (meaning my iMac, my eMac and my iPad) but then it just all resolved after a few hours. This does sound like possibly a server problem except today it's happening (in Safari again) only on this iMac in Safari (not firefox) and not on the other two devices.
    One more thing, since they changed my radio on the roof for my wireless internet, the 5.8 phone cuts out the internet when I use it. The problem has gotten worse since they changed the radio to the same frequency as the phone, it's a much faster service than the 2.4 radio. I don't know if this is related or not.
    Thank you,
    Martha

    <Contact your ISP.
    Is it possible, Carolyn, that this would mainly and almost always be only affecting the iMac and Safari in the iMac if it were a server issue? Right now Safari has more blue boxes with question marks than ever and the eMac and iPad have none. Firefox on the iMac has none also.
    I should try a direct connection and by pass the router and see if that makes a difference.
    I will contact them tomorrow but I want to get clear in my head first all the facts and possibilities.
    Thanks!
    Martha

  • Suddenly I see the usual blue box with question mark inside mail messages instead of pix

    Suddenly I see the usual blue box with question mark inside mail messages instead of pix.
    That did not happen before.
    It happened only on certain pages with Safari, like the google news feed which did not display pix.
    However, this new mail problem is really disturbing.
    I checked Little Snitch and port 80 is open.
    I checked java pref.
    I am at a loss.
    PLEASE HELP!

    Suddenly I see the usual blue box with question mark inside mail messages instead of pix.
    That indicates that your Mail preferences are setup to not display remote images in email messages. You should check Mail->Preferences->Viewing and make surre the box to 'Display remote images in HTML messages' is checked.
    I checked java pref.
    Java has nothing to do with Mail, or displaying images in it or any browser.

  • What is with the little blue box with the question mark.

    what is with the little blue box with the question mark?

    See '''''cor-el's''''' answer to that question here (only the portion down to the line break): http://support.mozilla.com/en-US/questions/781372?s=resend+&as=s
    <br />
    <br />
    '''Other issues needing your attention'''
    The information submitted with your question indicates that you have out of date plugins with known security and stability issues that should be updated. To see the plugins submitted with your question, click "More system details..." to the right of your original question post. You can also see your plugins from the Firefox menu, Tools > Add-ons > Plugins.<br />
    <br />
    *Next Generation Java Plug-in 1.6.0_17 for Mozilla browsers
    **7 updates behind
    **'''''Security update version 1.6.0_24 released 2011-02-10'''''
    #'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)
    #**'''''Be sure to <u>un-check the Yahoo Toolbar</u> option during the install if you do not want it installed.
    #*Also see "Manual Update" in this article to update from the Java Control Panel in Windows Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • On a Mac v10.6.6 Firefox v3.6.13 Right click on Google Map does not bring up the drop down box, with the first item being directions from here, the right click does work on Google map when using Safari

    On a Mac v10.6.6 Firefox v3.6.13 Right click on Google Map does not bring up the drop down box, with the first item being "directions from here", the right click does work on Google map when using Safari

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 9.0 r999
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    In Firefox 3.6 and later versions you need the Next-Generation Java™ Plug-In present in Java 6 U10 and later (Linux: libnpjp2.so; Windows: npjp2.dll).
    http://java.com/en/download/faq/firefox_newplugin.xml
    See also http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html

  • I've tried to troubleshoot downloading Firefox but it won't open on Windows XP. The Firefox Update box with the hour glass symbol runs for hours. Then I have trouble even shutting down. When I click on Firefox, no window, program won't quit, etc....

    Windows XP. I used to use Firefox and it worked okay. I'm not sure why I downloaded a new version but it won't open. The window that says "Firefox Update" continues to try to load. Hour glass symbol, for hours. If I try to click on the Desktop symbol, Nothing. Then when I try to shut down, it's slow, programs won't quit, or it freezes. I've removed Firefox completely and tried downloading again with the same results. Even with the latest version. Shit. Whassup?

    Hi zenithtwc, to test whether this is a settings issue, could you do a three-minute experiment?
    '''Create a new Firefox profile'''
    A new profile will have your system-installed plugins (e.g., Flash) and extensions (e.g., security suite toolbars), but no themes, other extensions, or other customizations. It also should have completely fresh settings databases and a fresh cache folder.
    Exit Firefox and start up in the Profile Manager using Start > search box (or Run):
    firefox.exe -P
    ''Don't delete anything here.'' Any time you want to switch profiles, exit Firefox and return to this dialog.
    Click the Create Profile button, assign a name like Test731, and skip the option to change the folder location. Then start Firefox in the new profile you created.
    Can it reach the internet?
    When returning to the Profile Manager, you might be tempted to use the Delete Profile button. But... it's a bit too easy to accidentally delete your "real" profile, so I recommend resisting the temptation. If you do want to clean up later, I suggest making a backup of all your profiles first in case something were to go wrong.

  • Can I make the little white box with the cross in it disappear?

    Layout mode. There is a tiny little square with cross in it, at bottom of text box. Cool. Sometimes it's there, sometimes it's not.
    Is there a way to make that little box disappear? So I can view the page as it will print out? I'm making graphic images with LOTS of those little text boxes ... it's hard to judge the final layout with all those little squares with crosses in them.
    Ben

    Hi,
    The + is shorthand for "There is extra material contained in this text box that you can't see." To make the cross go away you need to increase the size of the box. Just to make things a bit more confusing, sometimes the "extra" material is the default text that is replaced by text you type into the box. Thus while you "know" that there is no text in the box not currently showing if you take a look you'll find placeholder text put there by Pages.
    Best,
    Win

  • I would like to replace the file dialog box with a programmab​le dialog box, that generates its selections from Database Informatio​n

    Where would be the best place to achieve this?
    I have been thinking about these options:
    - Modification of the Operator Interface.
    - Modification of the Sequence Model.
    - Use callbacks to modify the sequence model.
    - Use callbacks to modify the Engine (ie the Auto.seq example)
    Or combinations of the above.
    The biggest requirement I have in developing this project is in the reuse of code and I believe that callbacks in the seq would be the way to achieve this.
    But I am not familiar with the usage of callbacks in teststand (yet) and I don't know where to look for information/examples on what I can do with them.
    Has anybody done anythin
    g similar?
    Any suggestions would be great!
    Tim

    I am trying to replace the operators interface's sequence file dialog box. I am also trying to hide the standard operators interface.
    What I am after is to replicate a user experience!
    Teststand is being used to replace an ATE written in LV where each of the tests are hardcoded in. The user selected the product and test types from a button based dialog boxes.
    I am using TS to overcome all of the limitations of the original ATE, but one of the requirements is the system has to have the same look and feel of the original.
    I originally though that I would have to modify an operators interface, but I would prefer not too, and would rather change the process models and use engine and station callbacks.
    If I have to change an operatos interface, I would pre
    fer if the changes didn't affect the normal running of standard TS sequences.
    I have attached the process model, i am trying to achieve, (its in Visio).
    Tim
    Attachments:
    ATE_Process_Model.vsd ‏123 KB

  • Moved homes, took X1 box with us X1 WIPED all recordings, scheduled and favorites!

    We have had X1 for about a year, had everything set up the way we wanted, all of our favorite shows scheduled, etc. We signed up to move using the Xfinity mover's edge program, since you don't really have an option. We moved and the technician showed up. He plugged in the X1, it updated the guide and it was fine. He actually had a problem with the internet because we had a modem that they didn't have any record of, so he swapped out the modem for a new one. We (stupidly) didn't think to check for our recordings since we assumed they'd be downloaded via the cloud. 
    Today we went to watch a program we had recorded and it wasn't there. Nothing was. All of our saved shows were gone. We went to scheduled recordings, same deal. Nothing. Same for favorites. It's as if the entire system got wiped. I tried Powercycling, syncing, contacting customer service. They tried rebooting it, powercycling, syncing. Nothing. 
    What the heck is the point of a system with a cloud unless it retains your info? A year's worth of settings, preferences, scheduled shows and favorites is gone. 
    They're calling me tomorrow to try to figure out, but I'm not optimistic....

    Comcast and X1 use the cloud in most cities, but not for back up purposes. However if you kept the same X1 DVR the recordings should still be there. My guess is something is wrong at the account level.
    If it were me, I would call the X1 help line 877-896-8678 and have them do a DVR refresh in my account.
    Have you UNPLUGGED and rebooted ALL of your X1 devices? Plug the DVR back in first.
    metztli13 wrote:
    We have had X1 for about a year, had everything set up the way we wanted, all of our favorite shows scheduled, etc. We signed up to move using the Xfinity mover's edge program, since you don't really have an option. We moved and the technician showed up. He plugged in the X1, it updated the guide and it was fine. He actually had a problem with the internet because we had a modem that they didn't have any record of, so he swapped out the modem for a new one. We (stupidly) didn't think to check for our recordings since we assumed they'd be downloaded via the cloud. 
    Today we went to watch a program we had recorded and it wasn't there. Nothing was. All of our saved shows were gone. We went to scheduled recordings, same deal. Nothing. Same for favorites. It's as if the entire system got wiped. I tried Powercycling, syncing, contacting customer service. They tried rebooting it, powercycling, syncing. Nothing. 
    What the heck is the point of a system with a cloud unless it retains your info? A year's worth of settings, preferences, scheduled shows and favorites is gone. 
    They're calling me tomorrow to try to figure out, but I'm not optimistic.... 

  • Is there a restriction on moving the position of an image on A5 size paper?

    I would like to print an image in the top half of an A5 sized sheet, to fold to print a card. While I seem to be able to do this with A4 paper I cannot do so when A5 is chosen - the image remains in the centre. As I am new to Paintshop Elements and currently taking advantage of the free trial I may have missed something. My OS is Windows 7, the printer is a Canon Pixma MG5350. Thanks for any help.

    Cloning or reversing parts of images is generally not possible in aperture. To do that you need a photo editor such as Photoshop, Photoshop Elements or Gimp.
    Allan

  • Photoshop sliced layout output are table base,  do it can control the position by CSS with div?

    Dear all,
    I have make some image in Photoshop, and sliced it to html
    page, but open it in dreamweaver it show me the table layout that
    Photoshop Sliced maked ..
    I am wonder, now many web site are integration with CSS, and
    I had saw some total using CSS with div maked Web Site, how to
    control the sliced image after that Photoshop sliced it?
    Any simple example for newbie reference?
    And sorry of my poor English.

    It seems you have exported the html from photoshop into
    Dreamweaver.
    This is not the best way to build a page. You should slice up
    your images
    and then export the images only into a folder. You then build
    the page
    using these exported images in your table or css layout. You
    can place the
    images directly into table cells or divs or use them as
    background images
    via css.
    Good CSS tutorials can be found here:
    http://www.adobe.com/devnet/dreamweaver/css.html
    Nadia
    Adobe� Community Expert : Dreamweaver
    http://www.DreamweaverResources.com
    - CSS Templates|Tutorials
    http://www.csstemplates.com.au
    http://www.adobe.com/devnet/dreamweaver/css.html
    CSS Tutorials for Dreamweaver
    > Dear all,
    >
    > I have make some image in Photoshop, and sliced it to
    html page, but open
    > it
    > in dreamweaver it show me the table layout that
    Photoshop Sliced maked ..
    >
    > I am wonder, now many web site are integration with CSS,
    and I had saw
    > some
    > total using CSS with div maked Web Site, how to control
    the sliced image
    > after
    > that Photoshop sliced it?
    >
    > Any simple example for newbie reference?
    >
    > And sorry of my poor English.
    >

  • I phone 4 ..in settings the line with carrier (including the little blue box with the telephone symbol) has disappeared so when i insert a sim card the iphone searches for a network but comes up with no service ! has anybody got any ideas ?

    i was sent a new sim card from orange to change to a new contract . when i changed the sim card i noticed the iphone was looking for a signal but could not find one . when i went into settings i noticed that the line which contains carrier and the blue icon with the telephone symbol had disappeared . any idea how i can get it back ?

    Hello, scooterbenny. 
    Thank you for visiting Apple Support Communities.
    Here are the best troubleshooting articles that I would recommend going through when experiencing this issue.
    iPhone: Troubleshooting No Service
    http://support.apple.com/kb/ts4429
    iPhone: Troubleshooting issues making or receiving calls
    https://support.apple.com/kb/TS3406
    Cheers,
    Jason H.

  • Box with the dot

    What does the box with the dot mean (where Edge or Wifi indicator is on the top)

    Blue box with dot means you have GPRS (old school data, slower than Edge). Happens in some areas or if a tower gets overloaded with too many users in the area. Just means you can still use data services, but will be VERY slow. No box means you only have cell (voice) connection which means only voice and SMS (since SMS goes over voice connection).
    So.
    Bars but no box (voice and sms only)
    Bars with box and dot (voice/sms, very slow data)
    Bars with box and E (voice/sms, Edge speeds for data)
    Bars with box and G (or is it 3G) (voice/sms, 3G speeds for data)
    Nothing...well you know what that means.
    And then there is the WiFi symbol which I am sure you know what that means.
    The box with a dot use to be what was just a blank blue box (they just changed the icon).
    Message was edited by: DaVBMan

  • Photos from the Internet will not load correctly. I get white boxes with blue question marks inside. This has only been happening for the past 3 weeks so I'm not sure why it is happening.

    Photos from the Internet will not load correctly. I get white boxes with blue question marks inside. This has only been happening for the past 3 weeks so I'm not sure why it is happening.

    Yes - email &amp; text work fine but when I use something like Google Images or search a blog with imbedded photos I get the empty white boxes with question marks.  If I click the question mark it opens the photo but I can't possibly do that for EVERY image on EVERY page I search!?!?!  I've rebooted the iPad &amp; my wireless card several times but neither action helped.  Have any clue what I should do now?

  • How do I get rid of the Facebook blue box on my Firefox pages???

    How do I get rid of - and why is - the little blue box with Facebook asking me to go through Facebook instead of directly to where I want to go???
    I do not wish to allow Facebook into my life any more than it is now.
    Thank you

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    *http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

Maybe you are looking for

  • FTP Usernames and Password issues in DW 8 for Macintosh

    Hi, I have an issues in DW8 on Mac OS 10.4.9. Every so often, my FTP usernames and passwords in the Dreamweaver site definitions will swap. That means that the username from one site will now be in the site def for another site. Nothing else ever swa

  • How to embed fonts in PowerPoint?

    Is it possible to embed fonts in a PowerPoint presentation?

  • Files to large to put onto DVD

    This is my first time working with FCP, and I have no training on it at all, so I'm pretty much trying to figure out what I'm doing on the fly. I'm trying make a DVD with movies I exported from FCP. When I tried to burn the disc, though, I got an err

  • System is not picking up approvers from BADI in Item level workflow

    Hi All, My problem is that 1. when I creat the shopping cart the system is picking up the correct approver from BADI and showing it in approval preview. 2. My first level approver is a general task so Workitem going to the correct persons. 3. after f

  • Performance manager collection

    The majority of the host end device data is collected but there are hosts that there is no data just n/a in the following fields: Avg. Rx/sec Avg. Tx/sec (Rx+Tx)/sec Peak Tx/sec Peak Tx/sec Errors Discards all have n/a entries. How do I enable the co