www.webdeveloper.com
Results 1 to 2 of 2

Thread: Max length of passed variable 100 ?

  1. #1
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    259

    Flash mx2004: Max length of passed variable 100 ?

    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:
    Code:
    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>";
    Reading out the variables of 'myFunction' at this time will display its full content
    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!
    Last edited by Shampie; 06-02-2005 at 10:04 PM. Reason: Clearity.

  2. #2
    Join Date
    Jul 2005
    Posts
    1
    i'm having the same problem. i 've already send you an private message please respond. or mail me

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles