Hello, I have studied your code about modifying the color and face of the two sets of input and output textfields. they work fine. But now, I have problem like this:
Due to I have a set of buttons for moving the two output textfields upward, downward, etc, seperately. I thought if they are within movieclips. Then I can specify one of the output textfield by asking the user to press that one first and give one variable to let the buttons know which one they should move. But now, they are just pure textfield. How can I specify one of them and move it.
So I wonder how about if they are within the movieclip. How should I use that oop way to add the color and font face to the output textfields then?
Could u give some further explanation or any better idea?
left_text= {fontColor:_root.cmbColor.getValue(), fontFace: _root.cmbFont.getValue(), textMsg: _root.inputone}
lscolor=_root.cmbColor.getValue();
lsfont=_root.cmbFont.getValue();
lstext=_root.inputone;
_root.addDetail(left_text, “_root.screenmc.output”,"_root.screenmc.screen"); —output is the var name and screen is the instance name
But you’ve made an error. Or at least it looks like you have.
You’ve said:
_root.addDetail(left_text, “_root.screenmc.output”,"_root.screenmc.screen"); —output is the var name and screen is the instance name
But you need to apply it to the textbox instance name, and not the vairable (var) name of the textbox. So if the instance name was outputText (which i think it was) you need to do:
_root.addDetail(left_text, “_root.screenmc.outputText”,"_root.screenmc.screen"); —output is the var name and screen is the instance name
What is screen an instance of?
I’ve got to go to work now, i finish in 7hours so’ll i’ll be back then to help. Sorry.
Hello, nice to hear from you. And could u give some help with the code to modify about that source so that the page can give the same effect after the ouput textfields are put into two movieclips.
I think u are right that when there is movieclip, that var name seems not able to reach. So how to get the face and color then in this case? Hope u can paste the new code here. I will try and test it tomorrow, ok ?
Do appreciate your help with my problem. Regards!!!:geek:
This is really odd. I’m stumped. I’ve been trying to sort it out for like two hours now.
I’ve been working on the fla file with the 4 silver direction buttons, front, back, left and right, just so you know.
Anyway, I put Output 2 into a MC. I know i can reach the textfield but the font changes are not being applied to the text field.
I know that when you put a dynamic textfield into a movie clip you need to embed the font on it. It is possible to embed one font for the dymanic textbox in the property inspector. But I haven’t been able to embed a font that is chosen from the combo box. I’m not sure if its even possible.
Why do you need the textbox in a MC?? Just wondering,
Sorry i couldnt solve this problem. I really do think this is something that cant be solved, the next version of Flash better make an improvement on that.
Thanks for your hard working on it. If it is not textfield within movieclip, then what should we do to make the two outputs shown and able to be dragged? It is not necessary textfield within movieclip unless it can show the input text, font face and color when any of front,left,right,or back is clicked. And they can be dragged or positioned at the same time.
Due to these effect, I think they are the textfields within movieclips. But maybe in some other way, it can also work. Then do u have some other suggestion or any good idea?
and there is a reference link which do the similiar thing as we discussed http://www.99dogs.com/custom2.html After u proceed to the flash, and modify the text part, you will see.
I am not sure they are using the textfield within movieclip or others, but there is all the function I need. Plz take a look at it and looking forward to hear from you!!! Thanks thanks