if (match && match.length > 0) { label = new mx.controls.Label(); htmlText = '<a href="' + match[1] + '" target="_blank">' + match[1] + "</a>"; } else if (match2 && match2.length > 0){ label = new mx.controls.Label(); htmlText = '<a href=" http://webistehere/PW/WebForm2.aspx?FirstName={firstName.text}&LastName={lastName.text}&email={email.text}&ConstId=PROJNUM" target="_blank">' + '<b>MP 116-1284</b>' +"</a>"; continued for all project numbers....
Solved! Go to Solution.
import mx.core.FlexGlobals; if (match && match.length > 0) { label = new Label(); htmlText = '<a href="' + match[1] + '" target="_blank">' + match[1] + "</a>"; } else if (fieldInfo.fieldName == "PROJNUM"){ label = new mx.controls.Label(); htmlText = "<a href='http://webistehere/PW/WebForm2.aspx?FirstName=" + FlexGlobals.topLevelApplication.firstName + "&LastName=" + FlexGlobals.topLevelApplication.lastName + "&email=" + FlexGlobals.topLevelApplication.email + "&ConstId=" + htmlText + "' target='_blank'><b>MP 116-1284</b></a>"; } else { label = new PopUpText(); }
<fx:Script> <![CDATA[ public var firstName:String = ""; public var lastName:String = ""; public var email:String = ""; ]]> </fx:Script>
FlexGlobals.topLevelApplication.lastName = lastName.text
import mx.core.FlexGlobals; if (match && match.length > 0) { label = new Label(); htmlText = '<a href="' + match[1] + '" target="_blank">' + match[1] + "</a>"; } else if (fieldInfo.fieldName == "PROJNUM"){ label = new mx.controls.Label(); htmlText = "<a href='http://webistehere/PW/WebForm2.aspx?FirstName=" + FlexGlobals.topLevelApplication.firstName + "&LastName=" + FlexGlobals.topLevelApplication.lastName + "&email=" + FlexGlobals.topLevelApplication.email + "&ConstId=" + htmlText + "' target='_blank'><b>MP 116-1284</b></a>"; } else { label = new PopUpText(); }
<fx:Script> <![CDATA[ public var firstName:String = ""; public var lastName:String = ""; public var email:String = ""; ]]> </fx:Script>
FlexGlobals.topLevelApplication.lastName = lastName.text
import mx.core.FlexGlobals;
if (match && match.length > 0) { label = new Label(); htmlText = '<a href="' + match[1] + '" target="_blank">' + match[1] + "</a>"; } else if (fieldInfo.fieldName == "PROJNUM"){ label = new mx.controls.Label(); htmlText = "<a href='http://webistehere/PW/WebForm2.aspx?FirstName=" + FlexGlobals.topLevelApplication.firstName + "&LastName=" + FlexGlobals.topLevelApplication.lastName + "&email=" + FlexGlobals.topLevelApplication.email + "&ConstId=" + htmlText + "' target='_blank'><b>MP 116-1284</b></a>"; } else { label = new PopUpText(); }
FlexGlobals.topLevelApplication.lastName = lastName.text;[ FlexGlobals.topLevelApplication.firstName = firstName.text; FlexGlobals.topLevelApplication.email = email.text;/CODE] lastName was what I thought the id of your textBox that you added to the splash screen was if that is incorrect than you need to adjust the code to match what you have already done in your code. 3. And as I mentioned earlier you add these lines to the index.mxml:<fx:Script> <![CDATA[ public var firstName:String = ""; public var lastName:String = ""; public var email:String = ""; ]]> </fx:Script>