tente usar <fx:Script> em vez do <mx:Script>


2009/7/6 Tulio Galli <tulioga...@gmail.com>

> Olá, estou tentando fazer esse pedidos,
>
> Ai gerei pelo *Catalyst* , ele gerou o seguinte
>
> Só que quando vou por o Mx:Script,,,
>
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <s:Application
>         xmlns:fx="http://ns.adobe.com/mxml/2009";
>         xmlns:d="http://ns.adobe.com/fxg/2008/dt";
>         xmlns:s="library://ns.adobe.com/flex/spark"
>         width="200" height="210" backgroundColor="#ffffff" xmlns:th="
> http://ns.adobe.com/thermo/2009";>
>     <fx:DesignLayer d:userLabel="TicketStart">
>         <s:BitmapImage source="@Embed('/assets/stick-new.png')"
> resizeMode="scale" d:userLabel="ticket"/>
>         <s:RichText y="36" color="#000000" x="43" text="#000000"
> fontSize="23"
>             fontFamily="Verdana" fontWeight="bold" width="121" height="23"
> d:userLabel="pid" id="pedido"/>
>         <s:RichText y="58" color="#000000" x="45"  text="00/00/09 às
> 00:00:00" fontSize="12"
>             fontFamily="Arial" d:userLabel="datetime"/>
>         <s:RichText y="80" color="#000000" x="18" text="000000 (1/1)"
> fontSize="17" fontFamily="Verdana"
>             fontWeight="bold" d:userLabel="item" width="172"
> textAlign="center"/>
>         <s:RichText y="99" color="#000000" x="21" text="Produto sem
> descrição" fontSize="15"
>             fontFamily="Arial" width="162" height="50" d:userLabel="desc"
> verticalAlign="top"
>             textAlign="center"/>
>         <s:Button x="23" y="151" label="INICIAR" d:userLabel="start"
> width="159" height="37"/>
>     </fx:DesignLayer>
>     <fx:Private>
>     </fx:Private>
> </s:Application>
>
>
> Legal, só que quando eu quero por um
>
> <mx:Script>
> <![CDATA[
>         import mx.controls.Alert;
> //teste
> ]]>
> </mx:Script>
>
> Tambem adiciono o
> *
>         xmlns:mx="http://www.adobe.com/2006/mxml";
> *
> no application
>
> Erro:
> Only one language namespace must be specified per document. Found '
> http://ns.adobe.com/mxml/2009' and 'http://www.adobe.com/2006/mxml'.
> SuperTicket.mxml    pizza/src    line 8    Flex Problem
>
>
> Então qual seria o problema, de lógica que estou usando?
>
>
> To no inicio, ja dei uma olhada no
>
> http://livedocs.adobe.com/flex/3/createcomps_flex3.pdf
> http://www.vedovelli.com.br/?p=562
> http://blog.mariojunior.com/?p=20
>
> Porém todos estão com a lógica de compoentes bem simples, não igual esse
> meu cheio de "elementos" para serem gerenciados.
>
> Outra pergunta
> Para cada componente ter seu id, etc, necessário bindable?
>
>
>
>
> Obrigado
>
> Tulio
>
>
>
>
> >
>


-- 
Mário Júnior
Programador Java / Adobe Flex
http://blog.mariojunior.com

--~--~---------~--~----~------------~-------~--~----~
Você recebeu esta mensagem porque está inscrito na lista "flexdev"
Para enviar uma mensagem, envie um e-mail para flexdev@googlegroups.com
Para sair da lista, envie um email em branco para 
flexdev-unsubscr...@googlegroups.com
Mais opções estão disponíveis em http://groups.google.com/group/flexdev
-~----------~----~----~----~------~----~------~--~---

Responder a