horiz scroll .GetValue

Become a member of the CGSociety

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

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 02 February 2003   #1
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
 
Old 02 February 2003   #2
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 ;)
 
Old 02 February 2003   #3
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
 
Old 01 January 2006   #4
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 12:33 AM.


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