TwelvestoneFlash

x/y coordinate problems, controlling a clip moving left to right and right to left


Sign in

  • Waiting for Godot ( 720 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 4.8 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.8 k posts )
    general front end design an...
  • Back End ( 9.6 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
derrickito
 
2008-08-15

im hacking apart yet another file that someone else wrote, and having trouble getting my x/y positioning just right... there is a clip down on the bottom of the stage, mouse is supposed to move the clip right if you're on the left side of the clip, and move the clip left if you're on the right side of the clip. currently it just jigs around all fucked up like while you're up in the middle of the stage above the clip. anyone see what im doing wrong here? working file is herehttp://point83.com/junk/navbuildscroll.fla

supposed to be working like the file here: http://www.flashkit.com/tutorials/Interactivity/Navigation/Horizont-Jeremy_B-744/index.php

code on the clip: onClipEvent (mouseMove) { xmousepos1 = _xmouse; ymousepos1 = _ymouse; if (xmousepos1>xmousepos2 && ymousepos1>-98 && ymousepos1<-33) { _root.scrollclip.nextFrame(); } if (xmousepos1-98 && ymousepos1<-33) { _root.scrollclip.prevFrame(); } if (ymousepos1<-98 || ymousepos1>-33) { play (); } xmousepos2 = _xmouse; ymousepos2 = _ymouse; }

it's just the x/y position that i have off, but i cant seem to get it correct. ill have your baby if you can tweek this to work right. several babies.

derrickito
 
2008-08-15

nevermind. i figured this one out. ill have my own babies thanks

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFlash

x/y coordinate problems, controlling a clip moving left to right and right to left