look at these routines:
void Swf2HtmlConverterCallback::PutString(const char *str)
{
}
void Swf2HtmlConverter::PrintLink(const char* str)
{
if (m_dumpLinks && StringIsLink(str))
{
PutString("...");
PrintString(str);
PutString("\">");
PrintString(str);
PutString("</a>\n");
}
}
void Swf2HtmlConverter::ParseDoAction(bool fPrintTag)
{
for (;;)
{
// Handle the action
......
switch ( actionCode )
{
......
case sactionGetURL:
{
char *url = GetString();
PrintLink(url);
break;
}
}
}
} |