Hi
i wanted to get some ideas/answers for the following.
in flex 1.5 i had a extended panel which was based on Christophe 
Coenraets example where he added mulitiple buttons on the header.

He uses the createClassObject() method, and then positions the 
button in the header.

1) will i still have to do it that way?


in flex2, i did the following way

btnAddress = new Button();
btnAddress.toolTip = "Address"; 
btnAddress.setStyle("icon", imgSource);
btnAddress.setStyle("upSkin", buttonEmptySkin);
btnAddress.setStyle("disabledSkin", buttonEmptySkin);
btnAddress.setStyle("overSkin", buttonOverSkin);
btnAddress.setStyle("downSkin", buttonDownSkin);
btnAddress.setStyle("disabledSkin", imgSource);
btnAddress.setStyle("upIcon", imgSource);
btnAddress.setStyle("overIcon", imgSource);
btnAddress.setStyle("downIcon", imgSource);
btnAddress.addEventListener(MouseEvent.CLICK, btnClickEvent);

panel1.addChild(btnAddress);

btnAddress.move(100, 100);

2) the "btnAddress.move(100, 100);" doesnt work. any ideas? (my x, y 
are hardcoded for this example).

3) I prefered the flex 1.5 way of having an 'initObj ' (in 
createClassObject()) because this object also accepted style 
properties. so i wouldn't have to keep calling setStyle().

TIA






--
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/

<*> 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/
 



Reply via email to