A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: dragging multiple movie clips using begindrag senocular class

  1. #1
    Junior Member
    Join Date
    Jul 2009
    Posts
    2

    dragging multiple movie clips using begindrag senocular class

    Hi

    I need to have a custom mouse cursor and also have dragable object on my page. im using flash 8.

    I came across this site called senocular which had a list of .as files

    http://www.senocular.com/flash/actio...p/beginDrag.as

    and some simple useage such as:

    on(press){
    this.beginDrag(true,0,0,300,300); // constrained to 300x300 square
    }
    on(release, releaseOutside){
    this.endDrag();
    }


    I would love to get this to work, however I dont know how to import this into flash 8. I thought classes only worked for flash 9 and actionscript 2.

    Can anyone help me to get this script working using flash 8 actionscript 2.

    Any help appreciated

  2. #2
    Flash/Flex Developer samac1068's Avatar
    Join Date
    Apr 2007
    Location
    Here, no there
    Posts
    1,813
    What you are using is not a true class, but rather a Prototype which is more of a mimic of a class. It can be used in Flash 8. You can either place the prototype of a separate .as file and use the include function to pull it into your current page, or you can copy and paste the content onto your working page, either way will work, but I prefer the include version so I can reuse the prototype elsewhere.
    Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.

Tags for this Thread

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