Esempio n. 1
0
void
outputSWF_BUTTONCONDACTION (SWF_BUTTONCONDACTION *bcarec)
{
#if 0
#ifdef NODECOMPILE
  int i;
#endif
#if !defined(ACTIONONLY)
  printf (" BUTTONCONDACTION: ");
  printf ("  CondActionSize: %d\n", bcarec->CondActionSize);
  printf ("  CondIdleToOverDown: %d ", bcarec->CondIdleToOverDown);
  printf ("  CondOutDownToIdle: %d ", bcarec->CondOutDownToIdle);
  printf ("  CondOutDownToOverDown: %d ", bcarec->CondOutDownToOverDown);
  printf ("  CondOverDownToOutDown: %d ", bcarec->CondOverDownToOutDown);
  printf ("  CondOverDownToOverUp: %d ", bcarec->CondOverDownToOverUp);
  printf ("  CondOverUpToOverDown: %d ", bcarec->CondOverUpToOverDown);
  printf ("  CondOverUpToIdle: %d ", bcarec->CondOverUpToIdle);
  printf ("  CondIdleToOverUp: %d ", bcarec->CondIdleToOverUp);
  printf ("  CondKeyPress: %d ", bcarec->CondKeyPress);
  printf ("  CondOverDownToIdle: %d ", bcarec->CondOverDownToIdle);
  printf ("\n");
#endif
#ifdef NODECOMPILE
  printf(" %d Actions\n", bcarec->numActions);
  for(i=0;i<bcarec->numActions;i++)
  outputSWF_ACTION(i,&(bcarec->Actions[i]));
#else
  printf (" %s\n", decompile5Action(bcarec->numActions,bcarec->Actions,0));
#endif
#endif
}
Esempio n. 2
0
void decompileAction(FILE *f, int length, int indent)
{	if(m_version >= 5)
		decompile5Action(f, length, indent);
	else if(m_version > 3)
		decompile4Action(f, length, indent);
	else
		while(--length >= 0)
			readUInt8(f);
}
Esempio n. 3
0
void
outputSWF_DOACTION (SWF_Parserstruct * pblock)
{
#if 0
#ifdef NODECOMPILE
	int i;
#endif
	OUT_BEGIN (SWF_DOACTION);

#ifdef NODECOMPILE
	printf(" %d Actions\n", sblock->numActions);
	for(i=0;i<sblock->numActions;i++)
	outputSWF_ACTION(i,&(sblock->Actions[i]));
#else
	printf ("%s\n", decompile5Action(sblock->numActions,sblock->Actions,0));
#endif
#endif

}
Esempio n. 4
0
void
outputSWF_CLIPACTIONRECORD (SWF_CLIPACTIONRECORD * carec )
{
#if 0
#ifdef NODECOMPILE
  int i;
#endif
#if !defined(ACTIONONLY)
  outputSWF_CLIPEVENTFLAGS (&carec->EventFlag);
  printf(" %ld ActionRecordSize\n", carec->ActionRecordSize);
  printf(" %d KeyCode\n", carec->KeyCode);
#endif
#ifdef NODECOMPILE
  printf(" %d Actions\n", carec->numActions);
  for(i=0;i<carec->numActions;i++)
     outputSWF_ACTION(i,&(carec->Actions[i]));
#else
  printf (" %s\n", decompile5Action(carec->numActions,carec->Actions,0));
#endif
#endif
}
Esempio n. 5
0
void printDecompiledAction(FILE *f, int l, int n)
{
	char *as = decompile5Action(f, l, n);
	puts(as);
}