-
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]
-
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)
-
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!
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|