Vox = Voice
[RESOLVED] [F8] load text
Hey everyone, I have a problem with getting my text to show. Im wondering if someone can help me out and take a look at the code I have. Its the attached movieClip songSamples. A fellow FK member pellepiano had helped me with this code a while back, and just recently dicovered that I can put it to use again.
Attached Files
Senior Member
PHP Code:
stop ();
var lv : LoadVars = new LoadVars ();
lv . onLoad = function ()
{
for ( i = 1 ; i < 4 ; i ++)
{
listBox . htmlText += "<font color='#333333'>" + this [ "artist" + i ] + "</font>" + newline + this [ "item" + i ] + newline + ".............................." + newline ;
trace ( this [ "artist" + i ]);
}
};
lv . load ( "songList.txt" );
Eliminate loadVariables in the beginning. Also change song1 to item1 and change song to item as I did here.
EDITED: forgot onething, set the publish settings to Flash 8.
Last edited by cancerinform; 10-08-2006 at 10:15 AM .
- The right of the People to create Flash movies shall not be infringed. -
Vox = Voice
cancerinform, thank you so much for your help. All works great
Vox = Voice
One question regarding the actionscript. If I have a total of 8 items in the list, how do I not show the dotted line after the last item in the list?
Senior Member
PHP Code:
for ( i = 1 ; i < 9 ; i ++)
{
if ( i < 8 )
{
listBox . htmlText += "<font color='#333333'>" + this [ "artist" + i ] + "</font>" + newline + this [ "item" + i ] + newline + ".............................." + newline ;
}
else
{
listBox . htmlText += "<font color='#333333'>" + this [ "artist" + i ] + "</font>" + newline + this [ "item" + i ];
}
}
- The right of the People to create Flash movies shall not be infringed. -
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width