Scrolling picture code help

Posted on 2006-04-04
Last Modified: 2008-01-09
I am working on disecting and using some scroll code that moves a clip with the press of next, or previous.  I have the pictures loading fine and understand that, but not sure why the scrolling is not working.  I have the page up at .  I have the fla file there too.    Code:  

 onClipEvent (load) {
      accel =0.1;
      rate = 0.1;

onClipEvent(enterFrame) {
            x=x*accel+(_root.xkoord-_x) * rate;
            if(Math.abs(_root.xkoord-_x)<1) { _x=_root.xkoord; }
 then next button:

on(release) {
      if(_root.xkoord<20) {

Any help with explanation and why this is not working would be a big help.

Thank you....
Question by:solsticeint
    LVL 49

    Expert Comment

    Because you initialize _root.xkoord with value = 55, and then check _root.xkoord < 20, this is not going to work, unless I overlook something.


    Author Comment

    Any ideas to accomplish this principle would be greatly appreciated.
    LVL 19

    Accepted Solution

    LVL 17

    Expert Comment


    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
    I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
    The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
    This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now