Hi all, first of all hi to evveryone!

I am working with the SWFLoader and I have some questions that maybe some of
you know it.

Here is my problem I have 2 MXML:

First one: First.mxml

<?xml version="1.0" encoding="utf-8"?>
<mx:Application
        xmlns:mx="http://www.adobe.com/2006/mxml";
        width="768"
        height="432"
        layout="absolute"
        applicationComplete="moveInitial();readXML();"
        backgroundAlpha="0"
        xmlns:controls="com.infuy.*">
<mx:Script>
  <![CDATA[

    public function callFromParent(param1: String): void {
}

    public function callToParent(): void {
}


        ]]>
</mx:Script>
    <mx:Panel id="pnMain" x="23" y="24" width="315" height="362"
layout="absolute">
        <mx:Button id="btFirst" label="Now Playing"/>
    </mx:Panel>
</mx:Application>



And the second: Second.mxml:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application
        xmlns:mx="http://www.adobe.com/2006/mxml";
        width="768"
        height="432"
        layout="absolute"
        applicationComplete="moveInitial();readXML();"
        backgroundAlpha="0"
        xmlns:controls="com.infuy.*">
<mx:Script>
  <![CDATA[

    public function callFromChild(): void {
}


    public function callToChild(): void {
}

        ]]>
</mx:Script>
    <mx:Panel id="pnMain" x="23" y="24" width="315" height="362"
layout="absolute">
        <mx:SWFLoader id="Load" source="@Embed(source='First.swf')"
height="100" width="350"/>
    </mx:Panel>
</mx:Application>



Here are my questions:

1.- Is it possible from First.mxml call to a function in Second.mxml?
2.- Is it possible from Second.mxml call to a function in First.mxml?

Any help will be very useful.

Thanks a lot in advance,
Alejandro

Reply via email to