Hi All,
I m trying to migrate an application from flex1.5 to lfex2
In few of the fiels we are using a variable text_mc like this:
The problem is that variable /property is not defined anywhere in
the code.
So m not able to decide that variable shud be of which type.
The code is smwt like this:
public function object2Init(initObj:Object):void {
//Utils.debug("in constructObject2, initObj = " +
initObj, initObj, "pba");
//this sets all props, incl. flat
validationErrors = new ArraySet(null,null);
serverValidationErrors = new ArraySet(null,null);
if (flat) {
editable = true;
text_mc.styleName = "flatDTextInput";
text_mc.editable = false;
}
}
OR
public function object2Init(initObj:Object):void {
//Utils.debug("in constructObject2, initObj = " +
initObj, initObj, "pba");
//this sets all props, incl. flat
validationErrors = new ArraySet(null,null);
//Utils.debug("text_mc = " + text_mc,
text_mc, "pba");
_textStyles = new TextStyles(text_mc);
//Utils.debug("_textStyles = " + _textStyles,
_textStyles, "pba");
if (flat) {
_textStyles.hideBorderStuff();
text_mc.styleName = "flatDTextInput";
}
}
private function handleMouseOver(event) {
/*
if (flat) {
_textStyles.showBorderStuff();
text_mc.styleName = "normalDTextInput";
}
*/
}
private function handleMouseOut(event) {
/*
if (flat) {
_textStyles.hideBorderStuff();
text_mc.styleName = "flatDTextInput";
}
*/
}
So ,can anyone plz help me out to tell i shud declare a variable of
which type?
Thanks,
Monika
--
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/