PDA

Click to See Complete Forum and Search --> : simple in menu



jaidi
12-06-2000, 11:08 AM
Does anybody know how a button that's placed in a movie can target an other movie/button outside it's own movie, using the Flash SDK??

thanks

DJSole
12-08-2000, 07:40 AM
Originally posted by jaidi
Does anybody know how a button that's placed in a movie can target an other movie/button outside it's own movie, using the Flash SDK??

thanks

If that's the player SDK, then try using FindTarget().
Its a function of the SPlayer class. (or NativePlayerWnd as well).

It returns the thread of a movie or object, so that you can tell the movie / object what to do.

An example would be :

NativePlayerWnd *FlashWin;

ScriptThread *target = flashWin->FindTarget(flashWin->player.rootObject, "mybutton");

target->Seek(framenum);
target->Play(false);