A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: this is driving me crazy

  1. #1
    Senior Member
    Join Date
    Apr 2001
    Posts
    249

    this is driving me crazy

    here a simple problem I have movieClip in the library, with a dynamic text field. I set the linkage of the movie clip and set the character options for fonts. I use this code and I can't get the text field to populate.

    trace("name "+_global.video_array[0]); shows Bob Joyce in out put field which is correct, why doesn't work?

    Code:
    _root.attachMovie("Video_cover", "vCover", getNextHighestDepth());
    _root.vCover._x = 264;
    _root.vCover._y = 378;
    trace("name "+_global.video_array[0]);
    _root.vCover.v_text.text = _global.video_array[0]);
    _root.vCover.v_text.autoSize = true;

  2. #2
    Senior Member
    Join Date
    Oct 2004
    Location
    Rio de Janeiro, Brazil
    Posts
    344
    If you are using MX2004, try to give a name to the var or the dynamic textfield. Then, instead to atribute the content to the text property, do it to the var.

    Some stupid suggestions:

    1) Did you check if your text colour is not the same colour as the background?
    2) Did you check if you added the chars (dynamic textfields do not works if you do not that).

  3. #3
    Bearded (M|G)od MyFriendIsATaco's Avatar
    Join Date
    Dec 2002
    Location
    Awesomeville.
    Posts
    3,045
    at first glance, look at this line of code:

    _root.vCover.v_text.text = _global.video_array[0]);

    you have a ) in there that you dont need...that'd be my first guess..it should read:

    _root.vCover.v_text.text = _global.video_array[0];

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center