A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Dress up script - mac to swish

  1. #1
    Junior Member
    Join Date
    Aug 2005
    Posts
    4

    Dress up script - mac to swish

    i have the script

    on (press) {
    startDrag ("");
    }
    on (release) {
    stopDrag ();
    }

    but i dont know what it is in swish

    it has this unlock and lock but each time it just seems to grab the whole page and move it

  2. #2
    Senior Member Lys12's Avatar
    Join Date
    Feb 2001
    Location
    Munich, Germany
    Posts
    5,237
    change it to

    onselfevent (press) {
    startDrag ();
    }
    onselfevent (release) {
    stopDrag ();
    }

  3. #3
    Junior Member
    Join Date
    Aug 2005
    Posts
    4
    i got the error:

    startDrag is not supported by SWiSHmax as the syntax is confusing.
    Use one of startDragLocked, startDragUnlocked, startDragOptionalLock in statement:


    startDrag ();


    after trying *bites lip*

  4. #4
    Senior Member Lys12's Avatar
    Join Date
    Feb 2001
    Location
    Munich, Germany
    Posts
    5,237
    so did you get it to work?

  5. #5
    Junior Member
    Join Date
    Aug 2005
    Posts
    4
    nope, thats the error after trying, when i typed the script in it went blue, when i ran it i got the error straight away

    would it make a difference if i was stupid enough not to mention that im using swishmax?

  6. #6
    Carpe Diem - Moderator wolfgross's Avatar
    Join Date
    Apr 2001
    Location
    SWiSHzone
    Posts
    1,700
    ...this always works fine with me..
    Code:
    onSelfEvent (press) {
        startDragLocked();
    }
    onSelfEvent (release) {
        stopDrag();
    }
    ...using SWiSHmax built 2004.09.10


    wolf

  7. #7
    Junior Member
    Join Date
    Aug 2005
    Posts
    4
    the cursor comes up but it doesnt do anything when i click

    Thanks, all i had to do was make it a button!

    your both champs!

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