merl0t / flash-videoio

Automatically exported from code.google.com/p/flash-videoio
0 stars 0 forks source link

Dispatching events for Flex 4 #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I found the solution for sending events from library based on Flex 3 to Flex 4 
application:

http://cookbooks.adobe.com/post_Use_SWF_SWC_compiled_in_Flex_3_within_Flex_4_app
li-16404.html

Andrey

Original issue reported on code.google.com by avzakhar...@gmail.com on 10 Apr 2011 at 7:19

GoogleCodeExporter commented 9 years ago
Added this in http://myprojectguide.org/p/flash-videoio/VideoIO-1.7.swf which 
you can download (save as). The only change is that everytime VideoIO is 
dispatching a relevant event in Application, it also dispatches the shared 
event as follows.

if (this.systemManager != null && this.systemManager.loaderInfo != null 
&& this.systemManager.loaderInfo.sharedEvents != null) 
    this.systemManager.loaderInfo.sharedEvents.dispatchEvent(event);

I haven't tested it. So will wait for you to verify that it works for you or 
not.

Original comment by kundan10 on 2 May 2011 at 7:54

GoogleCodeExporter commented 9 years ago
Thank you.

I will test it in next couple days and will write you back.

Original comment by avzakhar...@gmail.com on 2 May 2011 at 11:06

GoogleCodeExporter commented 9 years ago

Original comment by kundan10 on 25 May 2011 at 7:21