A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: any alternative for flash? It's eating up what's left of my intelligence....

  1. #1

    Thumbs up

    onClipEvent (enterFrame) {
    startDrag ("_root.dragObj", true, 0, 143, 770, 186);
    if (_root.main.hitTest(_root._xmouse, _root._ymouse, true)) {
    Mouse.hide();
    } else {
    Mouse.show();
    }
    }

    so when I add this code to an instance of a movie clip on the main timeline the Mouse.hide works but the drag function cannot be constrained to a rectangle no matter how hard I bash my keyboard... This piece of code used to work... but that is before I totally forgot how to do it while trying to deal with another flash impossibility, in other words, I am in need of everybody else's almighty and infinite knowledge once again, because what little I had is no more...

  2. #2

    Smile Duh...

    duuh, apart from developing acute scriptitis, maybe I should add a stop drag command somewhere in there, making the "constrain to rectangle" completely useless.Unless there is another way... What does everybody think?


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