A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Constrain drag

  1. #1
    Junior Member
    Join Date
    Sep 2001
    Posts
    24

    Smile

    Hi,

    I have created some panoramas in flash with a navigation map linking them.
    Firstly, how can I constrain the drag to only work within the loaded pano swf.

    Secondly, my preloaders in the panorama movies dont seem to work within the main movie but they do using the direct URL.

    http://www.methodmedia.com.au/maritime/main.swf

    thanks in anticipation

  2. #2
    Senior Member
    Join Date
    Jan 2001
    Location
    HK | Toronto
    Posts
    989
    to constrain the drag/scroll, you can add the hitTest
    If (this.hitTest(_root._xmouse,_root._ymouse,true) {...}
    so that only when the mouse is over that area, it scrolls...

    cheers
    MKit

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