Flex newbie: you can create MXML on the fly

Newbie Flex question: can MXML generate it on the fly, for example, HTML is generated by the server?

If so, is this normal, or do I not see the important architectural principle of Flex.

+3
source share
4 answers

Relatively ... but it still needs to be compiled. MXML is not directly displayed; it is first compiled into ActionScript 3.0 and then into typical SWF ... so you cannot serve your users using MXML. However, like almost all programming languages, you can use automatic code generation to facilitate development tasks.

+3
source

IIS/Apache, adobe, mxml → html + swf, , .

, , . .

+3

MXML - . "" ActionScript, SWF Flash.

, , MXML " ", , MXML, mxmlc , ( ) MXML "" , , .

+1
source

It is not officially supported, but there are several similar projects that did similar things.

There should be more, as I recall, but I cannot find it at this moment ... Searching for "dynamic compilation of MXML runtime" or something like that should be useful ...

+1
source

Source: https://habr.com/ru/post/1718623/


All Articles