Question on the IFlashPlayer_LoadURL & IFlashPlayer_LoadURL | developer.brewmp.com Question on the IFlashPlayer_LoadURL & IFlashPlayer_LoadURL | developer.brewmp.com

Developer

Question on the IFlashPlayer_LoadURL & IFlashPlayer_LoadURL

I use the IFlashPlayer_LoadURL to load a flash in my app when the point is down, just like:

case EVT_POINTER_DOWN:

if ( pMe->bIsFlashShowing == FALSE)
{
(void)IFlashPlayer_LoadURL(pMe->piFlashPlayer, SWF_MOVIE_FILE);

}

return TRUE;

fscommand("ExitFlashCast" is used in last frame of the flash to indicate the flash is finishing.

when the flash finishes , I use IFlashPlayer_UnLoad to unload this flash :

if (IFlashPlayer_Event_Exit == (IFlashPlayer_Event_Exit & event))
{
pMe->bIsFlashShowing =FALSE;
IFlashPlayer_Unload(pMe->piFlashPlayer);

}

the code makes flash playback again when your mouse is pressed, however, the simulator crashes after you have about 20-30 point -down continuously.

Do you know why this happen?