Re: [flexcoders] Button click through
OR! There is always the ever popular mouseChildren = false... Rick Winscot On Fri, Feb 29, 2008 at 4:09 AM, Martijn van Beek <[EMAIL PROTECTED]> wrote: > > > > > > > I feel like a dummy not knowing this or figuring this one out but I just > plain failed > > > xmlns:mx="http://www.adobe.com/2006/mxml"; > layout="absolute" > initialize="init()" > click="trace('application')" > > > > > > > > > I want that the button and the sprite prevent the user from clicking at the > application. In as2 this was simply done by making something clickable but > in as3 the event just keeps on broadcasting. > > How do I prevent the event to bubble to the application? > > > > > > >
Fw: [flexcoders] Button click through
Hello Martijn, try event.stopPropagation(); inside that mouseDown, hope this helps, Fabio - Original Message From: Martijn van Beek <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Friday, February 29, 2008 10:09:00 AM Subject: [flexcoders] Button click through I feel like a dummy not knowing this or figuring this one out but I just plain failed http://www.adobe. com/2006/ mxml" layout="absolute" initialize="init()" click="trace('application')" > I want that the button and the sprite prevent the user from clicking at the application. In as2 this was simply done by making something clickable but in as3 the event just keeps on broadcasting. How do I prevent the event to bubble to the application? Looking for last minute shopping deals? Find them fast with Yahoo! Search. Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
[flexcoders] Button click through
I feel like a dummy not knowing this or figuring this one out but I just plain failed http://www.adobe.com/2006/mxml"; layout="absolute" initialize="init()" click="trace('application')" > I want that the button and the sprite prevent the user from clicking at the application. In as2 this was simply done by making something clickable but in as3 the event just keeps on broadcasting. How do I prevent the event to bubble to the application?
Re: [flexcoders] Button Click
just a thought...maybe wrong though you could call the "click" event handler of that button and pass "null" as the argument private function onCreationComplete(event:FlexEvent):void { myButton.addEventListener(MouseEvent.CLICK, onClick); onClick(null); } private function onClick(event:MouseEvent):void { log.debug("you clicked"); } On 10/19/06, KP <[EMAIL PROTECTED]> wrote: Hi All, Is there any way to click one button automatically on initialize and creationComplete event. Thanks Kumar __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Button Click
Why would you want to call a button click event on initialize? It would be better practice to simply call an initialization function on the creationComplete event. The initialization function should take care of anything you need to do. _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of KP Sent: Thursday, October 19, 2006 3:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Button Click Hi All, Is there any way to click one button automatically on initialize and creationComplete event. Thanks Kumar __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Button Click
Ah, I don't think so. But you can always call whatever function you call on the button's click event, as well in your creationComplete function. Cheers, Thomas Thomas Rühl Design, Programming & Concepts akitogo OHG Hanauer Landstrasse 188 60314 Frankfurt Telefon +49 (0) 69 800 69 445 Fax +49 (0) 69 800 69 449 Mobil +49 (0) 179 750 75 87 E-Mail [EMAIL PROTECTED] Web http://www.akitogo.com KP wrote: > > > Hi All, > > > > Is there any way to click one button automatically on initialize and > creationComplete event. > > > > Thanks > > Kumar > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Button Click
Hi All, Is there any way to click one button automatically on initialize and creationComplete event. Thanks Kumar __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___