View Full Version : horiz scroll .GetValue
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
cuse
|
|
knebbes
02-24-2003, 09: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 ;) ).
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.
cuse
CGTalk Moderation
01-14-2006, 10: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.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.