PDA

View Full Version : FMX target path that works both ways



meisje
May 25th, 2003, 10:04 PM
i have a main-movie with a movieclip called "area", into this movieclip is loaded an external movie.swf

a clip inside this movie.swf has the below script

onClipEvent (enterFrame) {
_level0.area.displayfield = "hello"
}

this work fine but when i want to play movie.swf independantly the target-path is not understood. also just

onClipEvent (enterFrame) {
displayfield = "hello"
}

doesn't work in both situations

BTW. displayfield is a dynamic text field, the relative path works well with 'normal' movieclips

question: how do i write down a path that works when movie.swf is independant as well as when loaded into another movie?

tia, meisje

kode
May 25th, 2003, 10:27 PM
_parent.displayfield = "hello";
should do the trick... =)

meisje
May 25th, 2003, 10:30 PM
kgggggggggggggg :) :)


thanks again kax!

kode
May 25th, 2003, 10:31 PM
you're welcome. ;) =)