Flex chytáky

Poznámka: preložiť

Each tool and framework has some gotchas. It can cause big troubles. Finding out solution could take more than one day. So we decided to gather them.

Unable to export SWC oem

  • during compilation of project you can face strange error message:

Unable to export SWC oem

  • problem is located in wrong configuration of assets
  • probably you've removed asset file, but you did not update asset settings
  • open project properties, Flex Library Build Path, Assets
  • select and deselect file in assets (just to notify window that there was change)
  • press ok and build project

XML - E4X encoding

  • nice feature of Flex
  • you receive XML data and then you can access attributes by dot notation
  • e.g.: myxml.person.name
  • the trouble is if webservice return more than 40 KB response
  • Flex will generate exception
  • in this case you have to use xml encoding

Logout and webservice

  • if you use webservice which has implemented method logout
  • you could not call it directly because it clash with Flex namespace
  • use: service.getOperation("logout").send(arg1, arg2, ...)