A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Sliders problem???

  1. #1
    Senior Member
    Join Date
    Mar 2003
    Posts
    316

    Sliders problem???

    Hi

    I am trying to create two custom sliders that are exlusive. I got stuff in place but since I set value of one slider to opposite value of the other it actually disables the drag option on that slider. So it kinda works like, once first slider moved to the right second moves to the left but then I can't drag second slider?

    //this is in the frame of the main movie
    setProperty("rotate.slider", _x, -trans.slider._x);

    where slider bar one is "rotate" with movie "slider"

    each "slider" movie has this actionscript
    ----------------------------------------------------------
    on (press) {
    startDrag("", false, -145, 0, 145, 0);


    }
    on (release, releaseOutside) {
    stopDrag();
    }
    -----------------------------------------------------------

    Any ideas??? Cheers

  2. #2
    Senior Member
    Join Date
    Sep 2002
    Posts
    398
    Post the fla and I will have a look.

  3. #3
    Senior Member
    Join Date
    Mar 2003
    Posts
    316

    Here is the file

    I included the .fla

  4. #4
    Senior Member
    Join Date
    Sep 2002
    Posts
    398
    Hi,

    I am impressed that you got so far!
    Your code was so different than I would have made it but good effort! Was going to flag it as couldn't find my way round. Luckily my boss told me to surf the net for the arvo!

    I hope I haven't made things harder for you by changing your code too much. You should try using onclipEvent actions rather that looping through frames. If you get too confused throw it away and carry on down the track you where going. I tried to add some comments so you could see what was going on I'm sure you will get there.

    good luck!
    Attached Files Attached Files

  5. #5
    Senior Member
    Join Date
    Mar 2003
    Posts
    316

    invalid file

    Hi,

    hmm there seems to be something wrong with the file u posted, I get invalid file format once I try to open it. Can u check it please.
    Thanks

  6. #6
    Senior Member
    Join Date
    Mar 2003
    Posts
    316

    thanx

    Yeah thanx I noticed hehe silly little mistake =)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center