Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: stop scroll image
From: ant
Date: Tue, 10 Oct 2000 10:43:09 +0100

hi stephan,

I am assuming your image that needs to scroll is a movie clip (I've called
the instance 'scrollimage')that you are telling to move a certain amount on
each click of the button. Your code could look like this:

On (Release)
Set Property ("/scrollimage", X Position) = (GetProperty
"/scrollimage", _x ))+20
End On

All you need to do now is add some If clauses:

On (Release)
If (GetProperty ( "/scrollimage", _x ) < 350)
Set Property ("/scrollimage", X Position) = (GetProperty
"/scrollimage", _x ))+20
End If
End On

You need to do some maths though, before you can decide where your
"scrollimage" can move between: choose it on the stage and find out how wide
it is, and where it is on the canvas (using the object inspector - make
sure you have 'use center point' checked - its x position is tracked
according to its center point,) but all this should be fine.

Sorry if you're using flash 5 and have to translate all this!

Good luck,

ant

> Hi all
> I made a scrolling map that the user navigates by using arrows.
> there is just one problem... he can keep scrolling and scrolling and
> screolling
>
> how do i restrain the area that he can scroll in? so that when he reaches
> the edge of the area
> he can press the button but will go no further
> or even better the button diappears.
>
> please help because I'm lost!:)
>
> cheers
> stephan>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: stop scroll image, stephan seifert

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]