creationComplete and show are two separate events. If you need both to work the same, include both event handlers...
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="912" height="444" show="Alert.show('test')" creationComplete="Alert.show('test')"> --- In [email protected], "markflex2007" <markflex2...@...> wrote: > > Hi, > > I have a mxml component and I want it run a function when it is loaded > (not only first time),I did the following test for the component and I do not > know why the show event never work. > > Please help me. > > Thanks > > Mark > > component code: > > <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="912" height="444" > show="Alert.show('test')" > > > ... > > </mx:Canvas> >

