View Full Version : horiz scroll .GetValue

02 February 2003, 05:26 PM
hey everyone,

if you had a simple horizontal scroller that loaded an swf at a certain coordinate, what would the code be?

ive tried

on (release) {
/:xpos = 250;
loadMovieNum("video.swf", 1);

but would i need to use .GetValue or something as it doesnt work?

any ideas?thanks


02 February 2003, 10:03 PM
i don't really understand what you want.
what is a horizontal scroller (i don't have flash MX)?
if it's just something you can drag around and you want to load a .swf if it is at a certain coordinate you could do it like this:

on(release) {

if( Math.abs(250 - _x) <= 4) {
loadMovieNum("video.swf", 1);


if you use if(_x == 250) it wouldn't work very well because the user would have to drag it to exactly _x = 250 (and not 250.05 or 249.9... you get the point ;) ).

02 February 2003, 09:30 AM
yea, a horizontal image scroller. but you shouldnt concentate that its an image scroller cause it wouldnt necessarily mean that its gonna be used for the same output every time.

ill give that code some spinning :) see what happens, thanks-will let ya know. your right about the exact coordinate by the way, thanks again.


CGTalk Moderation
01 January 2006, 11:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.