1 Reply Latest reply on Apr 12, 2007 10:16 PM by ssalba

    passinf information using <mx:module>

    Dr Khaled
      Hi,

      How to pass some attribute information from the main application to an MXML module?

      Best regards

        • 1. passinf information using <mx:module>
          ssalba
          You can use as below~

          var child:* = mod.child;
          child.function(parameter);

          <mx:ModuleLoader id="mod" url="Module1.swf"/>

          It's really starange that if you debugging with Flex builder , you can see the 'child' type is "Module1" but tring type Casting like
          "var child:Module1 = Module1(mod.child) or var child:Module1 = mod.child as Module1" will meet error