If I'm not mistaken, the component is created and kept in memory once
you call it.
I don't think you can call the "show" the way you are trying to call it
in the constructor.
Instead you would have to do a creationComplete="Alert.show('test')"
The re-calling the function would be dependent on what you are trying to
do. I believe you would have to create a function in your initializer
function based on a timer. Or at least that's what I can think of off
the top of my head...
________________________________
From: [email protected] [mailto:[email protected]] On
Behalf Of markflex2007
Sent: Monday, March 23, 2009 3:12 PM
To: [email protected]
Subject: {Disarmed} [flexcoders] How to make "show" event work?
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
<http://www.adobe.com/2006/mxml> " width="912" height="444"
show="Alert.show('test')" >
...
</mx:Canvas>
--
This message has been scanned for viruses and
dangerous content by MailScanner <http://www.mailscanner.info/> , and is
believed to be clean.