horiz scroll .GetValue

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  02 February 2003
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

  02 February 2003
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 ).
character WIP: c&c please ;)
  02 February 2003
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.

  01 January 2006
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
  share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 05:26 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.