This content has been marked as final. Show 3 replies
using the sendsprite() command you can execute a behavior's mouse
I'm not sure about scripts in a Flashmovie though. Well...
if the Flashmovie has a function defined and that function is made the
onPress eventHandeler like so:
my_btn.onPress = onButtonPress;
You could call that function from Lingo. Not behind Director, but it
should be in the helpfiles how to call a flash function.
PS: Nice, almost oldschool name. MacroMind: Macromedia's predecessor :)
Marco Mind wrote:
> I know the setmouse xtra where you can set the position of the mouse
> cursor but is there a way to simulate a mouseclick? So it would effect
> sprites and flashmovies inside director?
I just thought it might be easier to use a real simulated mouseclick. So
I would not have to translate positions from director into flash. As I
also have a rotated flash inside director. :-|
You can use the call command to invoke a function in a behavior or movie script. You can use sendSprite() or sendAllSprites() to invoke a function in a single sprite's behavior or to all sprites in a particular frame.