Skip to main content
Known Participant
August 20, 2009
Answered

PHP variable loads on _root TEXT , need to put it on a MC

  • August 20, 2009
  • 1 reply
  • 859 views

Hello!

Maybe is a silly question but I cant find the way.. I get a variable from a PHP like: "MyMessage". But I need to put this textfield on an MC, could you tell me what I need to do to lead this variable into the MC ? (In a graphic object works ok but I need MC to control its X,Y)

Thanks!

This topic has been closed for replies.
Correct answer kglad

if your movieclip has instance name mc and the textfield has instance name tf, you can use:

mc.tf.text=yourvariable;

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
August 20, 2009

if your movieclip has instance name mc and the textfield has instance name tf, you can use:

mc.tf.text=yourvariable;

Known Participant
August 20, 2009

(its an html text)

it shows: <p aligh=....> thats all, when I put mc.tf.htmlText= ... doesnt show anything ,,,strange

kglad
Community Expert
Community Expert
August 20, 2009

then you're movieclip's not mc or your textfield's not tf or you assigned that variable before it was defined.  use the trace() function to determine which problem(s) you have.