A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: dynamic text

  1. #1
    Junior Member
    Join Date
    Mar 2002
    Posts
    18

    dynamic text

    I am trying to use the dynamic text but when I use the variable in my main movie it doesn't change the text. the dynamic text is even named. this is what I have

    the dynamic text instance is named "words"

    this is the script that I have on my button

    on (rollOver) {
    setProperty("_root.label", _visible, "1");
    _root.label.words = "yes there is good fun.";
    startDrag("_root.label", true, 1, 1, 440, 150);
    }

  2. #2
    Senior Kid
    Join Date
    Jan 2002
    Location
    I am right behind ya
    Posts
    274
    on (rollOver) {
    _root.label. _visible = true;
    _root.words.text = "yes there is good fun.";
    startDrag("_root.label", true, 1, 1, 440, 150);
    }
    Last edited by dancinkid6; 09-17-2004 at 06:54 PM.
    -The Dancin kidd

  3. #3
    Registered User
    Join Date
    Feb 2003
    Location
    Istanbul ,Turkey
    Posts
    59
    Set the variable of the dynamic textfield in the properties inspector...

    var x=0

    x should be the variable in there...

    instance name is for referencing not for the variable

    I assume that label is a movieclip ur trying to reach?

    Hope it helps

    And yeah the text property is also a way...

  4. #4
    ___________________
    Join Date
    May 2004
    Posts
    3,174
    Originally posted by dancinkid6
    on (rollOver) {
    _root.label. _visible = true;
    _root.words.text = "yes there is good fun.";
    startDrag("_root.label", true, 1, 1, 440, 150);
    }

  5. #5
    Junior Member
    Join Date
    Mar 2002
    Posts
    18
    I changed the script to this and it still won't change the text

    on (rollOver) {
    _root.label. _visible = true;
    _root.words.text = "yes there is good fun.";
    startDrag("_root.label", true, 1, 1, 440, 150);
    }

  6. #6
    Junior Member
    Join Date
    Mar 2002
    Posts
    18
    this is what I am trying to do.

    I am making a floating box with text in it that pops up when you rollover a button, if anyone has like a tutorial or anything on it that would be great. I have to box working and everything just not the text.

    thank you

  7. #7

  8. #8
    Junior Member
    Join Date
    Mar 2002
    Posts
    18
    THANKS!!!

    one other thing, I am trying to make the movie clip fad in, but when I put a stop at the end of it it won't work when I rollover it, but when I take the action out it works fine. why is that and how do I fix that?

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