hello everyone,
i have a movie clip and when you rollout of this movie clip then you will call a function.
so here is what i have so far, and by the way my movie clip is in the main timeline as eveything else.
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#000000]**function**[/COLOR] rollout[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]if[/COLOR] [COLOR=#000000]([/COLOR]!rolloutMC.[COLOR=#0000FF]hitTest[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000FF]_root[/COLOR].[COLOR=#0000FF]_xmouse[/COLOR], [COLOR=#0000FF]_root[/COLOR].[COLOR=#0000FF]_ymouse[/COLOR], [COLOR=#000000]**true**[/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
endAnimation[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]
rolloutMC.[COLOR=#0000FF]onRollOut[/COLOR] = [COLOR=#000000]function[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#000080]rollout[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR]
[/LEFT]
[/FONT]
:sailor: