A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: dragclips not working on ie on the mac

  1. #1
    Junior Member
    Join Date
    May 2001
    Posts
    7
    Hi
    I have a draggable movie clip that when released (if it is not over the target called box is returned to its original position.If it is released over box then it stays there.
    Trouble is although it works fine in the Flash Player and on
    a p.c using ie5 it doesn't work on a mac which also uses ie5

    any help gratefully appreciated - I'm probably doing something dumb (I'm a bit new to this) but at least I'm trying.

    This is the script I'm using on my button


    on (press) {
    startDrag ("");
    }
    on (release) {
    stopDrag ();
    }
    on (release) {
    /:amb1 = getProperty ( "", _droptarget );
    if (/:amb1=="/box") {
    setProperty ("", _x, "250");
    setProperty ("", _y, "175");
    } else if (/:amb1<>"/box") {
    setProperty ("", _x, "5");
    setProperty ("", _y, "5");
    }
    }



  2. #2
    juggernart me2222's Avatar
    Join Date
    Jun 2000
    Posts
    1,322
    Hi trev,
    your code works fine for me on Mac IE.
    I think the Mac u tried it has only the Flash4 plugin.
    Install the Flash5 plugin and it works.

  3. #3
    juggernart me2222's Avatar
    Join Date
    Jun 2000
    Posts
    1,322
    Sorry, I forgot to say that your script is a Flash4/Flash5 mixture.
    To make it work with the Flash4 plugin you have to change it to this:

    on (press) {
    startDrag ("");
    }
    on (release) {
    stopDrag ();
    /:amb1 = getProperty("", _droptarget);
    if (/:amb1 eq "/box") {
    setProperty ("", _x, "250");
    setProperty ("", _y, "175");
    } else if (/:amb1 ne "/box") {
    setProperty ("", _x, "5");
    setProperty ("", _y, "5");
    }
    }

    Change "==" which is Flash5 syntax to "eq" and "<>" which is Flash4 syntax, but used for numbers, to "ne" which is used for string comparision.

  4. #4
    Junior Member
    Join Date
    May 2001
    Posts
    7
    Thanks I'll go and try that now

    much appreciated.


    Trev

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