Try to dispatch event by referencing Stage of flash .
On Thu, Feb 3, 2011 at 3:40 PM, saravana kumar <[email protected]>wrote:
> Hi All
>
>
> *Sample code:*
>
> *Flash Function*
> * filename: Sample.fla *
>
> */*End of the frame in the Flash file*/*
> *EndFrame();*
> *function Endframe():void*
> *{*
>
> *dispatched(new Event('CustomEvent'));*
>
> *}*
> *
> *
> *
> *
>
> *Flash Builder 4 Function
>
> **/*loading SWF*/*
>
> *private function fnLoadswf():void
> {
> *
>
> *var swfLoad:SwfLoader= new SwfLoader();
> swfLoad.source='sample.swf';
> this.addChild(swfLoad);
> swfLoad.content.addEventListener('CustomEvent',fnTest);*
>
> *}
>
> private function fnTest(event:Event):void
> {
> Alert.show('Test');
> }*
>
> *
> *
>
> I have dispatched one event in the end of the frame in the flash CS4 swf
> file.
>
> Am loading this flash CS4 swf into Flash builder SWF Loader. Is there any
> way to get that dispatched Event.
>
> Actually, am used the above code for collecting the event from the flash.
> But it is not work.
>
> Can any one please tell me how to collect the dispatched Event from the
> Flash CS4.
> --
> Rakshu
>
> --
> 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]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
--
Prashant Joshi
RIA Developer
Tekno Point Multimedia
Banglore
<[email protected]>
--
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.