|
From: strk <st...@ke...> - 2008-12-19 09:13:37
|
On Mon, Dec 15, 2008 at 11:14:57AM -0500, Jay Koutavas wrote:
> Here's the ming lib C/C++ code:
>
> SWFMovieClip* movieClip = SWFMovieClip();
> ....
> movieClip->add( new SWFAction(
> "myFunc = function() {"
> "trace(\"myFunc was called\");"
> "}"));
> movieClip->addInitAction(new SWFAction("myFunc();"));
Init actions are executed *before* other actions,
so your call to myFunc happens *before* 'myFunc' is
defined. Add the definition with addInitAction and you
should be fine.
--strk;
|