A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: execute link from XML problem, please help!

  1. #1
    Senior Member
    Join Date
    Jan 2001
    Location
    Holland - Den Haag
    Posts
    131

    execute link from XML problem, please help!

    hello everyone,

    i hope that someone can help me with this cause i have this problem for a few weeks now.

    the problem:

    i have a link stored in XML

    Code:
     < news > 
                    < myItem name="news title 1" text="test1.html" / >
    		< myItem name="News title 2" text="test2.html" / >
    		< myItem name="news title 3" text="test3.html" / >
    		< myItem name="news title 4" text="test4.html" / >
    		< myItem name="news title 5" text="test5.html" / >
    		< myItem name="news title 6" text="test6.html" / >
    		< myItem name="news title 7" text="test7.html" / >
    		< myItem name="news title 8" text="test8.html" / >
    		< myItem name="news title 9" text="test9.html" / >
    	< /news >
    the XML is all parsed perfect the array that containes the links "test1.html, test2.html........" is called
    Code:
    NewsItem_text[i]
    my problem is that i can't load all the html pages the code that i use only loads 1 html page
    the code (
    Code:
                                NewsContent = new LoadVars();
    			NewsContent.onLoad = function(get_news_html) {
    				html_content = _root.NewsContent.textField;
    				trace (html_content);
    			}
            NewsContent.load(NewsItem_text[i]);
    the question is, how do i load each link from NewsItem_text[i]

    thanx in advance,

    grafx_one [mindustries]

  2. #2
    Senior Member
    Join Date
    Jan 2001
    Location
    Holland - Den Haag
    Posts
    131
    this is the source file!!
    in the drawfunc.fla frame 1 check comment news nodes, news html parse and wk nodes.
    Attached Files Attached Files

  3. #3
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    How do you call your text and what determines which text is called?
    - The right of the People to create Flash movies shall not be infringed. -

  4. #4
    Senior Member
    Join Date
    Jan 2001
    Location
    Holland - Den Haag
    Posts
    131
    i don't understand your (exact) question.

    you can check the drawfunc.fla in comment //wknodes. there is a working sample but it also load 1 link

    thanx for replying to my post "cancerinform",
    grafx

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