Be a Supporter!

CS5 dynamic text boxes

  • 853 Views
  • 3 Replies
New Topic Respond to this Topic
wagnerben
wagnerben
  • Member since: May. 27, 2007
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
CS5 dynamic text boxes 2011-01-09 18:31:55 Reply

hey guys...i just got cs5 and apparently they've changed some stuff.
i have this code that i used for cs4 & now i have to go back and edit it, but it's messed up in cs5

basically, i just see what song is playing & change the content of the text box to the song name, but the song "Elemintry" shows up as "lemntry". it's the same way with the other songs. certain letters will not be included...i've changed nothing, i just opened it up & the code will no longer work...anyway, enough explaining, here's the code:

onClipEvent(enterFrame){
if(_root.Song==1){
_root.Title="Elemintry";
}else if(_root.Song==2){
_root.Title="another song";
}

did they change something with strings or dynamic text boxes or something?
if anyone could help, i would greatly appreciate it...i have to re-do this for a client and i'd like to get it done without re-installing cs4

thanks
=D


i like to have fun with the girls.

BBS Signature
SPIRIT6666
SPIRIT6666
  • Member since: Jun. 19, 2004
  • Offline.
Forum Stats
Member
Level 58
Blank Slate
Response to CS5 dynamic text boxes 2011-01-09 19:13:04 Reply

You probably using an instance name "Title" and not a variable for your textbox.
When you are using an instance you must add ".text".

So it should be something like:
_root.Title.text="Elemintry";


BBS Signature
wagnerben
wagnerben
  • Member since: May. 27, 2007
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to CS5 dynamic text boxes 2011-01-09 19:27:45 Reply

is this something that's changed from cs4 to 5? because, like i said, it worked perfectly in cs4


i like to have fun with the girls.

BBS Signature
SPIRIT6666
SPIRIT6666
  • Member since: Jun. 19, 2004
  • Offline.
Forum Stats
Member
Level 58
Blank Slate
Response to CS5 dynamic text boxes 2011-01-09 19:37:11 Reply

I'm not totally positive about that but I think in CS4 a dynamic text could only be referenced as a variable.
In CS5 it is now an instance like any object (but the variable option is still available).


BBS Signature