|
Prev: xtrainfo.txt xtra missing???
Next: Shockwave on website
From: SacredK on 22 Jul 2006 16:59 Hello all, Here are simple text lingo questions; What's the difference between: //1 member("text").fontstyle="bold" //and //2 member("text").fontsyle=["bold"] Do I even have them correct? You see, I was trying to add some simple rollover to text. First, I just created text from the Director Tools bar. Then I added both pieces of code, one at a time. The first one gave me the error: Script Error: Value out of Range member("text").fontstyle="bold" (member 3 of castLib 1) The second code gave me the error: Script Error: Script Error member("text").fontstyle=["bold"] (member 3 of castLib 1) Then I tried inserting text from Insert>Media Elements Then I got the same errors for the same lines of code. What am I doing incorrectly? Thanks
From: Sean Wilson on 22 Jul 2006 19:10 #field members take a comma-delimited string as their fontStyle property whereas #text members take a list of symbols: member("field").fontSyle = "bold, italic, undeline" member("text").fontStyle = [#bold, #italic, #underline]
|
Pages: 1 Prev: xtrainfo.txt xtra missing??? Next: Shockwave on website |