?
Solved

Scrolling picture code help

Posted on 2006-04-04
4
Medium Priority
?
202 Views
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 www.snowarab.com/testing/test.html .  I have the fla file there too.    Code:  

 onClipEvent (load) {
      accel =0.1;
      rate = 0.1;
      trace(_x)
      _root.xkoord=55;
}

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

on(release) {
      if(_root.xkoord<20) {
      _root.xkoord+=155;
      }
}

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

Thank you....
0
Comment
Question by:solsticeint
4 Comments
 
LVL 49

Expert Comment

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

-r-
0
 

Author Comment

by:solsticeint
ID: 16377866
Any ideas to accomplish this principle would be greatly appreciated.
0
 
LVL 19

Accepted Solution

by:
Montoya earned 2000 total points
ID: 16380859
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
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…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
Suggested Courses

615 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