drag drop- HELP I'm frustrated
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: drag drop- HELP I'm frustrated

  1. #1
    RIDER
    Join Date
    Aug 2000
    Location
    Munich-Sydney
    Posts
    177
    Hi,
    I have a main movie loading an external (djs).
    Once it's embeded,my drag drop script does not function.
    :::::::::::::::::::::::::::::::::::::::::::::::::: :::::
    on (press) {
    startDrag ("/one");
    }
    on (release) {
    stopDrag ();
    if (getProperty("/one", _droptarget) eq "flash/trigger") {
    tellTarget ("/status") {
    gotoAndPlay ("maya");
    }
    setProperty ("/one", _x, "38");
    setProperty ("/one", _y, "162.8");
    } else {
    setProperty ("/one", _x, "38");
    setProperty ("/one", _y, "162.8");
    }
    }
    ------------------------------------------------------------
    All my external swfs. are in a folder called "flash"
    On my main movie I've called it like this:
    on (release) {
    loadMovieNum ("flash/djs.swf", 2);
    gotoAndStop ("clicked");
    }

    Everything seems to be OK except the drag drop trigger doesn't work.

    If I view the swf. on it's own embeded it works fine.

    Any suggestions PLEASE!

    Thanks.

    [Edited by coolmilo on 09-03-2001 at 01:17 AM]

  2. #2
    Senior Member
    Join Date
    Nov 2000
    Location
    Manchester, UK
    Posts
    454
    Embedding external swfs changes the position of the movie clip within the flash hierachy.
    If you are going to keep the loaded movie on level 2 then the path you should use is
    /_level2.01
    if you think you may change the level and don't want to have to rewrite or edit code later use
    /_root.01

    TIP.
    If you're going to use multiple movies and things stop working use the Debugger (Ctrl+Shift+Enter) as this will give you the entire movie tree for all swfs used in a similar way that movie explorer does before export - that way you will be able to see the full path to each movie clip right the way through your presentation
    Jon 8o)

  3. #3
    RIDER
    Join Date
    Aug 2000
    Location
    Munich-Sydney
    Posts
    177

    THXS J67

    Unfortunately I tried to change several things like you suggested but I'm doing something wrong.
    I'm stuck and my hair is falling off!

  4. #4
    Senior Member
    Join Date
    Nov 2000
    Location
    Manchester, UK
    Posts
    454

    Keywords

    if (getProperty("/one", _droptarget) eq "flash/trigger")
    I think your problem could be in the "flash/trigger".
    Is flash a folder on your computer, - and what is trigger?
    is that an MC or an external file?
    Jon 8o)

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