<mx:SWFLoader id="swfLoad" source="test.swf"
complete="swfLoad_completeHandler(event)"
/>
protected function swfLoad_completeHandler(event:Event):void
{
Object(swfLoad.content).start(); // THIS CALLED
START METHOD OF
FLASH
swfLoad.content.addEventListener("ExecuteQuery",executeQuery);
}
private function executeQuery(event:Event){
Alert.show(' this called after ExecuteQuery
called from flash');
}
See above example working for me where i'm able to call flash methods
from flex and also vice versa.
:)
On Feb 17, 7:55 am, Preetham Hegde <[email protected]> wrote:
> *load the swf using swfloader(say with id="sampark"), then you access
> methods/and or properties *
> *on the content. *
> *
> *
> *You should have a accessible method or property inside flash for this to
> wok.*
> *
> *
> *For example you have a method named setTitle() inside the swf loaded, then
> you can call as following.*
> *
> *
> *
>
> <mx:SWFLoader id="sampark"
> source="
>
> sampark_bottom
>
> .swf" />
>
> // Inside actionscript
>
> loadedSampark = sampark.content;
>
> loadedSampark
>
> .setTitle("Inserted using flex actionscript.");
>
> *
> *Hope this may help you. *
>
> Regards,
> Preetham Hegde
>
> On Wed, Feb 16, 2011 at 11:34 PM, naveen maddala <[email protected]>wrote:
>
>
>
>
>
>
>
> > Here i am attaching that swf file for your reference.
>
> > On Wed, Feb 16, 2011 at 11:20 PM, naveen maddala
> > <[email protected]>wrote:
>
> >> I have one flash swf file in which it contains username and password to
> >> enter. Here i need to capture those username and password from flex.
>
> >> How can we do this?
>
> >> Regards,
> >> Naveen.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/flex_india?hl=en.
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.