Is it a bad idea to get rid of mx: in your Flex code?

I'm new to Flex, and I don't like how you should write the mx namespace: for every control entry that you write. This makes a code violation. I would like to write:

<Panel ...

but not

<mx:Panel ...

I tried to write

xmlns="http://www.adobe.com/2006/mxml"

for top level item instead

xmlns:mx="http://www.adobe.com/2006/mxml"

In the top level ad. This work to some extent, but broke some existing code. First, the XML data that is defined in the document is added along with aaa: as a namespace at runtime. I also noticed other problems in my very small sample program.

Is there a way to do this, that works, or is this a lost thing? And some background information on why you should evaluate.

: , -, , , . , , . , . flex. , , , , . , , , HTTPService, :

    <HTTPService id="service" url="http://blah.com"
        method="POST" result="gotResult(event)">
        <request xmlns:p="*">
            <p:param1>p1</p:param1>
            <p:param2>p2</p:param2>
        </request>
    </HTTPService>

, -. , , , html . , mx: , , . , , , , - , - . : , , " ", , ?

+3
6

, mx , .

, mx , , . , mx , , .

( ) , , . , .

+7

mx xmls: [SOMETHING HERE], XML, . .

Panel. , Flex, (http://www.adobe.com/2006/mxml), mx.

Microsoft WPF XAML .

+2

, ...

Ely Greenfields, - , Flex SDK , ... ?

+2

, . , , , . , - .

, - , , - - , , , mx, .

+1

mx: Flex, Panel ( ) Flex, Flex. Flex , , .

local: , . . , , MyPanel. , , Flex, MyPanel - , , - . , , : -)

, mx: , HTML XML, .

0

Keep in mind that if you are developing applications that should run on all platforms, including mobile devices, it’s best to stick with a clean spark as much as possible, as this is supported on most mobile devices these days. There are times when one of them is forced to use mx-control, for example, Accordion. In this case, if you have time to implement it, it is advisable to use tools or basic controls in spark mode to create these more complex or complex controls instead.

0
source

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


All Articles