Hi Eduardo,

Sounds like you are migrating some really old Flex code.  Every place where 
there is mx:Script will have to be changed to be fx:Script.

HTH,
-Alex

On 4/8/20, 9:36 AM, "Eduardo Oficialdegui" <edwar...@gmail.com> wrote:

    Hi,
    
    Im trying to use mxmlcnpm compiler to convert an .mxlm template to html
    
    Im executing this command
    $ mxmlcnpm +configname=flex src/Login.mxml
    
    Extract of template below
    ------------------------------------------------------
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="library://ns.apache.org/royale/mx" width="334"
    height="174" backgroundColor="#FEFDFD" borderStyle="solid"
    creationComplete="init()">
    <mx:Script>
    <![CDATA[
    --------------------------------------------------------
    
    And  I got the following error message
    
    C:\Users\eoou\Documents\Project\HelloWorld\src\Login.mxml(3): col: 2 Error:
    This tag is unexpected. It will be ignored.
    
            <mx:Script>
            ^
    
    C:\Users\eoou\Documents\Project\HelloWorld\src\Login.mxml(70): col: 50
    Error: Call to a possibly undefined method validarUsuario.
    
            <mx:Button x="179" y="142" label="Login"
    click="{validarUsuario();}"/>
                                                            ^
    
    C:\Users\eoou\Documents\Project\HelloWorld\src\Login.mxml(3): col: 2 Error:
    This tag is unexpected. It will be ignored.
    
            <mx:Script>
            ^
    
    C:\Users\eoou\Documents\Project\HelloWorld\src\Login.mxml(70): col: 50
    Error: Call to a possibly undefined method validarUsuario.
    
            <mx:Button x="179" y="142" label="Login"
    click="{validarUsuario();}"/>
                                                            ^
    
    6.5339177 seconds
    
    would you have any idea what it might be or if <mx: Script> is supported?
    
    Thank you so much
    Best regards
    
    ------------------------------------------
    Eduardo Oficialdegui
    Cel +34 644 398 813
    skype: eduardo.oficialdegui
    Barcelona - España
    ------------------------------------------
    

Reply via email to