A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: [RESOLVED] [F8] load text

  1. #1
    Vox = Voice Vox98's Avatar
    Join Date
    Mar 2001
    Posts
    879

    [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 Attached Files

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    PHP Code:
    stop ();
    var 
    lv:LoadVars = new LoadVars ();
    lv.onLoad = function ()
    {
        for (
    14i++)
        {
            
    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. -

  3. #3
    Vox = Voice Vox98's Avatar
    Join Date
    Mar 2001
    Posts
    879
    cancerinform, thank you so much for your help. All works great

  4. #4
    Vox = Voice Vox98's Avatar
    Join Date
    Mar 2001
    Posts
    879
    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?

  5. #5
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    PHP Code:
    for (19i++)
        {
            if (
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center