[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 184
  • Last Modified:

scrolling help

in FLash mx i have this code
[code]
on (release) {
if (Number(getProperty("Scroll/Text",_y)) > (-551)) {

setProperty("Scroll/Text", _y, getProperty("Scroll/Text", _y)-100);

}else{
setProperty("Scroll/Text", _y, getProperty("Scroll/Text", _y)-0);
}
}
[/code]
all it does is relocated the y axis of the masked movie clip..
to see it.. http://members.optusnet.com.au/chizzy/newport2.html then go to portfolio.
i want to make it smoother. i thought by adding a for loop
eg
[code]
curr=(Number(getProperty("Scroll/Text",_y))
for(x=curr;x<curr-100;x--){
setProperty("Scroll/Text", _y, getProperty("Scroll/Text", _y)-x);
}

[/code]
but this doesnt work.. is there any other way
any help would be greatly appreciated
0
chizzy60
Asked:
chizzy60
1 Solution
 
negatyveCommented:
this one should give you something to start from...

sample: http://www.negatyve.com/EE/slideMenu/slideMenu.html
source: http://www.negatyve.com/EE/slideMenu/slideMenu.zip
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now