class ACZConversationUI extends GFxMoviePlayer; var GFxClikWidget Button1; // Represents a CLIK button in a flash file // The first function GFX calls function bool Start(optional bool StartPaused = false) { super.Start(); Advance(0); // Begin playing from frame 0 Button1.SetString("label", "Set button text here."); return true; } /** Callback when a CLIK widget with enableInitiCallBack set to True is initialized. */ event bool WidgetInitialized(name WidgetName, name WidgetPath, GFXObject Widget) { switch(WidgetName) { case ('Button1'): Button1 = GFXClikWidget(Widget); Button1.AddEventListener('CLIK_press', OnButtonPress); break; default: break; } return true; } // Receives event listener data function OnButtonPress(GFXClikWidget.EventData ev) { if (GetPC() != none) { GetPC().ConsoleCommand("open DM-Example"); } } DefaultProperties { // Preffered method of typcasting a GFXClikWidget WidgetBindings.Add((WidgetName="Button", WidgetClass=class'GFXClikWidget')) bDisplayWithHudOff=FALSE MovieInfo=SwfMovie'YourPackage.YourSWFFile' }