Hi,
TextConverter has a method named /setFormatsToDefault(//)/ and called
while the application is loaded - I guess automatically because I could
not find any reference - in Flex, but never called in Royale.
Source piece Royale :
// register standard importers and exporters
setFormatsToDefault();
/** @private */
static public function setFormatsToDefault():void // No PMD
{
_descriptors = [];
addFormat(TEXT_LAYOUT_FORMAT, TextLayoutImporter,
TextLayoutExporter, TEXT_LAYOUT_FORMAT);
addFormat(TEXT_FIELD_HTML_FORMAT, TextFieldHtmlImporter,
TextFieldHtmlExporter, null);
addFormat(PLAIN_TEXT_FORMAT, PlainTextImporter,
PlainTextExporter, "air:text");
}
Flex :
// register standard importers and exporters
setFormatsToDefault();
/** @private */
static tlf_internal function setFormatsToDefault():void //
No PMD
{
_descriptors = [];
addFormat(TEXT_LAYOUT_FORMAT, TextLayoutImporter,
TextLayoutExporter, TEXT_LAYOUT_FORMAT);
addFormat(TEXT_FIELD_HTML_FORMAT, TextFieldHtmlImporter,
TextFieldHtmlExporter, null);
addFormat(PLAIN_TEXT_FORMAT, PlainTextImporter,
PlainTextExporter, "air:text");
}
How should be the mechanism for the flow in Royale ?
Thanks,
Serkan