Wolf-Design
%Europe/Berlin %942 %2005, 23:37
Beste Flashfocus lezers,
Ik wil een textarea component gaan gebruiken, of de mogelijkheid creëren om een html page in flash te importeren (bijvoorbeeld in een dynamic texfield), als dit een optie is.
Ik kom er alleen niet goed uit en vraag daarom jullie hulp.
Mijn eerste vraag: is het mogelijk om een html page in een dynamic texfield of het component textarea te importeren, of op een andere manier, en heeft iemand hier een goed voorbeeld voor?
Tweede vraag:
Ik heb hieronder een voorbeeld gegeven hoe het component textarea toe te passen, alleen begrijp ik niet waar ik de text kan plaatsen.
To create an application with the TextArea component, do the following:
1 Drag a TextArea component from the Components panel to the Stage.
2 In the Property inspector, enter the instance name comment.
3 In the Property inspector, set parameters as you wish. However, leave the text parameter blank,
the editable parameter set to true, and the password parameter set to false.
4 Select Frame 1 in the Timeline, open the Actions panel, and enter the following code:
textListener = new Object();
textListener.handleEvent = function (evt){
if (comment.length < 1) {
Alert(_root, "Error", "You must enter at least a comment in this field",
mxModal | mxOK);
}
}
comment.addEventListener("focusOut", textListener);
This code sets up a focusOut event handler on the TextArea comment instance that verifies
that the user typed in something in the text field.
5 Once text is entered in the comment instance, you can get its value as follows:
var login = comment.text;
idw
Ik wil een textarea component gaan gebruiken, of de mogelijkheid creëren om een html page in flash te importeren (bijvoorbeeld in een dynamic texfield), als dit een optie is.
Ik kom er alleen niet goed uit en vraag daarom jullie hulp.
Mijn eerste vraag: is het mogelijk om een html page in een dynamic texfield of het component textarea te importeren, of op een andere manier, en heeft iemand hier een goed voorbeeld voor?
Tweede vraag:
Ik heb hieronder een voorbeeld gegeven hoe het component textarea toe te passen, alleen begrijp ik niet waar ik de text kan plaatsen.
To create an application with the TextArea component, do the following:
1 Drag a TextArea component from the Components panel to the Stage.
2 In the Property inspector, enter the instance name comment.
3 In the Property inspector, set parameters as you wish. However, leave the text parameter blank,
the editable parameter set to true, and the password parameter set to false.
4 Select Frame 1 in the Timeline, open the Actions panel, and enter the following code:
textListener = new Object();
textListener.handleEvent = function (evt){
if (comment.length < 1) {
Alert(_root, "Error", "You must enter at least a comment in this field",
mxModal | mxOK);
}
}
comment.addEventListener("focusOut", textListener);
This code sets up a focusOut event handler on the TextArea comment instance that verifies
that the user typed in something in the text field.
5 Once text is entered in the comment instance, you can get its value as follows:
var login = comment.text;
idw