0 Replies Latest reply on Jul 25, 2010 10:59 AM by Scalopus

    Dummy mx:Window file show Error 1136.




      I have a problem with mxml file show 1136: Incorrect number of arguments. Expected 1. Show Error line which not existed in the file.


      URL below is simple project create to reproduce that error





      I try to make Twitter Client which use Actionscript as start-up script. this actionscript is check if setting file exists.

      In condition of no setting file, it show Login window, otherwise, it show Twitter feed window.


      As I see in Adobe AIR Reference below,

      http://help.adobe.com/en_US/AIR/1.5/devappsflex/WS5b3ccc516d4fbf351e63e3d118666ade46-7e0a. html


      what I understand is that I cannot create 2 WindowedApplication because WindowedApplication does not design to communicate each other.

      The reference suggust to use Window class instead of that.


      So, I change WindowedApplication to mx:Window and make ActionScript to run that Window.

      However, it show Error 1136 on the line which not existed.


      So, below is a simple application project screenshot that reproduce this topic problem



      1136: Incorrect number of arguments.  Expected 1.   TestError      line 28   Flex Problem


      How can i fix this problem?



      This is my short list may make more understand

      * Adobe AIR - Desktop Application

      * Want to open more than 1 window

      * Window show up is condition of startup script




      My System

      * Adobe Flash Builder 4

      * Flex 4

      * AIR 1.5