Hello!
Using an xml file is a handy thing in Flash, quitte new in using it I encountered a problem:
Note: people_array[i].item is read from xml file.
This is the part where a link with arguments is created:
Reading out the variables of 'myFunction' at this time will display its full contentCode:about.people_txt.htmlText += "<text><a HREF=\"asfunction:_root.myFunction,"+people_array[i].item.titel+"_"+people_array[i].item.full_content+"_"+people_array[i].item.picture+"_"+people_array[i].item.picture+"\">Lees verder >></a><br>";
At this time the function reads all characters. using trace.
The XML file:
[XML]
<titel>KIPPENSOEP</titel>
<content>item 1.</content>
<full_content>his online training series introduces the student to the ActionScript programming language and its capabilities, covering basic programming concepts such ... his online training series introduces the student to the ActionScript programming language and its capabilities, covering basic programming concepts such ...</full_content>
<picurl>potpan</picurl>
[/XML]
When you click the URL that activates the asfunction it reads out these variables.
Code:function myFunction (data) { _root.about.section1_text.htmlText= ""; argumentArray = new Array; argumentArray = data.split("_"); trace(data.length); for (u=0; u< argumentArray.length; ++u){ trace("Function argument " + u + " = " + argumentArray[u]); } _root.about.section1_title.htmlText = "<b>"+argumentArray[0]+"</b>"; _root.about.section1_text.htmlText += "<text>"+argumentArray[1]+"</text>"; //_root.about.section1_text.htmlText += argumentArray[2]; loadMovie("images/"+argumentArray[3]+".jpg","_root.about.current_image"); trace("images/"+argumentArray[3]+".jpg"); }
At this time the function only reads 100 characters and cuts off after. using trace.
Could anybody explain me what is happening and how can I solve it?
Thank you!


Reply With Quote
Bookmarks