Hi, excuse me if this is a very basic error or mistake, but I couldn't find this description in the forum.
My swf contains an option stepper widget I am trying to initialize in uscript
The widget object seems valid, I changed myStepper to GFxObject to test the assignment without errors. But trying to cast to GFxClikWidget fails, it always return none.
Any idea why this can be happening? Perhaps a missing flag from the fla files?
I set up from as3 a data provider, it also looks a correct behavior when importing the swf in UDK.
On the GFx media player I get no warnings or errors.
My swf contains an option stepper widget I am trying to initialize in uscript
Code:
var GFxClikWidget myStepper; event bool WidgetInitialized(name WidgetName, name WidgetPath, GFxObject Widget) { switch(WidgetName) { case 'myStepper': `Log(">>>>>>>>>>>>>>>" @ Widget); myStepper= GFxClikWidget(Widget); ScreenResOption.AddEventListener('CLIK_click', OnMyStepperEvent); break; default: break; } return true; }
Any idea why this can be happening? Perhaps a missing flag from the fla files?
I set up from as3 a data provider, it also looks a correct behavior when importing the swf in UDK.
On the GFx media player I get no warnings or errors.
Comment