PDA

View Full Version : getting dynamic text?


mike99
04-26-2007, 10:11 AM
hello

i am trying to read the text from a flash document with:


theElement=flash.documents[0].timelines[0].layers[0].frames[0].elements[0];

elementText=theElement.getTextString();


i can successfully read static text this way but not dynamic text, with the text set by actionscript:

dynText.text="some dynamic text";

how can i read the dynamic text?:confused:

khronnuz
04-26-2007, 02:39 PM
Do you need to access it from any frame?

If your code is executed in the same frame, you could put a name into the field 'var' (dynamic text properties).

let's say you name it 'message'. you could then just access it by:

message = "some text";

then retrieve it by:

var foo = message;