Skip to main content
Milind_b
Known Participant
November 5, 2009
Answered

Dynamic text is inside movieClip

  • November 5, 2009
  • 1 reply
  • 2378 views

I am working on flash & AS file, in flash file (main.fla) dynamic text is inside that movieClip (myButton) .I will like to send some text to that particular dynamic text field inside the movieClip (myButton) from AS file

as file code is

var myButton:Button;
var myText:text;
myButton.myText.text="Custom Msg";

I import .as file in flash but it is not showing can anybody help me?

This topic has been closed for replies.
Correct answer Kalisto

thanks

I send the mail on your mail ID , can you pl check, it contains fla and as file i am using CS4 version of flash


Hi,

please check your mail for my respons with the solution.

1 reply

November 5, 2009

instead of using

var myButton:Button;
var myText:text;
myButton.myText.text="Custom Msg";

use

myButton.myText.text="Custom Msg";

you don't have to declare the items present on stage

Milind_b
Milind_bAuthor
Known Participant
November 5, 2009

Hi

put the code

myButton.myText.text = "Custom Msg";

in .as file

On the main time line of fla, MovieClip (myButton) is on the first frame

and in the fla file btn.as file is import

still it is not working

Inspiring
November 5, 2009

Embed used chars