Hello After trying a lot of workarounds i cant overcome this issue thats been getting me crazy for a long time
When i render my flash movie in a surface(BSP,3D Model etc) events like rollOver and rollOut work pretty well but instead oter events like left mouse click,right mouse click Dont work at all
i alredy set my movie to capture input using bCaptureInput,bIgnoreMouseInput to false etc
I noticed someting while trying if i set bCaptureInput to true it doesnt capture any input unless i manually add the keys i want to be controlled by the flash movie using AddCaptureKey
i pretty much tried everything but nothing seems to work as soon i use the left mouse button in the flash movie wich is in the surface it seems to simply ignore it like if i never used the button
i really would love if anyone could help me as i tried every thing that came to my mind but nothing seems to work, Also if i test the movie in fullscreen not being rendered in a surface mouse clicks work but if its rendered in a surface they stop working
Code:class GFxWatch extends GFxMoviePlayer; var GFxClikWidget om; function Init(optional LocalPlayer player) { super.Init(player); Start(); Advance(0); } event bool WidgetInitialized(name WidgetName, name WidgetPath, GFxObject Widget) { switch(WidgetName) { case ('om'): // this assumes your Scrolling List has an instance name of 'sl' in Flash. om = GFxClikWidget(Widget); om.AddEventListener('CLIK_press',OnClickHandler); break; default: break; } return true; } function UpdateWatch() { } function OnClickHandler(GFxClikWidget.EventData ev) { `Log("BUTTON PRESSED"); } exec function LeftBtn_Pressed() { `Log("CLICK CALLED CLICK CALLED CLICK CALLEEEE"); } defaultproperties { bCaptureInput=true bAllowInput = true bAllowFocus = true bIgnoreMouseInput = false bDisplayWithHUDOff = true TimingMode = TM_Real MovieInfo = SwfMovie'SURVIVORFlash.WatchMenu' WidgetBindings.Add((WidgetName="om",WidgetClass=class'GFxClikWidget')) RenderTexture = TextureRenderTarget2D'SV_Watch.Material.Watch_RenderTarget' }



, Also if i test the movie in fullscreen not being rendered in a surface mouse clicks work but if its rendered in a surface they stop working
Reply With Quote

Bookmarks