A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Text Box length??

  1. #1
    Flash Incompetent ChaseNYC's Avatar
    Join Date
    Jun 2002
    Location
    new york city
    Posts
    693

    Text Box length??

    Hi,

    I haven't touched flash in over a year now, I had made a website a ways back that dynamically loaded text files into text boxes... Either something recently happened or there was always this error but it seems that the text box has a max length or something as the two biggest text files it loads it isn't displaying all of it. The text files are not that big... the biggest is 9.2kb. Is there anything I can do to make sure the text box loads and displays all the text?

    Thanks,
    ChaseNYC
    mmm signature

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    do you use "&" in the text file ?
    if so, Flash will cut off at that point ("&" = end of var/value)

    urlencode the char. - %26 = &

    use a LoadVars object to load the text file.
    use its onLoad function to debug.

  3. #3
    Flash Incompetent ChaseNYC's Avatar
    Join Date
    Jun 2002
    Location
    new york city
    Posts
    693
    nope... thats not the problem... here is the text from the text file that gets loaded:

    Code:
    &myText=
    (Non-commercial websites providing free privacy info or resources in English)
    
    
    GOVERNMENT WEBSITES: United States: Federal Trade Commission:
    http://www.ftc.gov FTC resources for employers using consumer reports:
    http://www.ftc.gov/bcp/conline/pubs/buspubs/credempl.htm FTC ID Theft resources:
    http://www.consumer.gov/idtheft/ Dept. of Commerce Safe Harbor website:
    http://www.export.gov/safeharbor/ Dept. of Health and Human Services HIPAA resources:
    http://www.hhs.gov/ocr/hipaa/ California Office of Privacy Protection:
    http://www.privacyprotection.ca.gov/ Privacy Advisory Committee to the Virginia General Assembly:
    http://jcots.state.va.us/AdvisoryCommittees/2004AdvisoryCommittees/Privacy/2004Meetings/070704/Privacy%20Intro.pdf Canada: Federal Privacy Commissioner:
    http://www.privcom.gc.ca/index_e.asp Alberta Freedom of Information and Protection of Privacy:
    http://foip.gov.ab.ca/ British Columbia Office of the Information and Privacy Commissioner:
    http://www.oipc.bc.ca/ Ontario Information and Privacy Commissioner:
    http://www.ipc.on.ca/ Quebec - Commission for Access to Information
    http://www.cai.gouv.qc.ca/index-en.html Europe: European Commission Internal Market Data Protection:
    http://europa.eu.int/comm/internal_market/privacy/index_en.htm Austria - Data Protection Commission:
    http://www.dsk.gv.at/indexe.htm Czech Republic - Office for Personal Data Protection:
    http://www.uoou.cz/index.php Denmark - Data Protection Agency:
    http://www.datatilsynet.dk/eng/index.html Finland - Data Protection Ombudsman:
    http://www.tietosuoja.fi/1560.htm Germany - Federal Data Protection Commissioner:
    http://www.bfdi.bund.de/cln_029/nn_533554/EN/Home/homepage__node.html Greece - Data Protection Authority:
    http://www.dpa.gr/home_eng.htm Hungary - Parliamentary Commissioner for Data Protection and Freedom of Information:
    http://abiweb.obh.hu/adatved/indexek/index.htm Ireland - Data Protection Commissioner:
    http://www.dataprivacy.ie/ Norway - Data Inspectorate:
    http://www.datatilsynet.no/templates/Page____194.aspx Poland - Inspector General for the Protection of Personal Data:
    http://www.giodo.gov.pl/168/j/en/ Spain - Data Protection Authority:
    https://www.agpd.es/index.php?idSeccion=8 Sweden - Data Inspection Board:
    http://www.datainspektionen.se/in_english/start.shtml Switzerland - Federal Data Protection Commissioner:
    http://www.edsb.ch/e/aktuell/index.htm The Netherlands - Data Protection Authority:
    http://www.dutchdpa.nl/ United Kingdom - Information Commissioner:
    http://www.informationcommissioner.gov.uk/ Asia - Pacific: Australia - Federal Privacy Commissioner:
    http://www.privacy.gov.au/ New Zealand - Privacy Commissioner:
    http://www.privacy.org.nz/ Hong Kong - Privacy Commissioner for Personal Data:
    http://www.pco.org.hk/ PROFESSIONAL ASSOCIATIONS: IHRIM (International Association for Human Resources Information Management) Privacy and Security Special Interest Group:
    http://www.privacy-security-sig.org EDUCATION AND ADVOCACY GROUPS: World Privacy Forum:
    http://www.worldprivacyforum.org/ Privacy Exchange:
    http://www.privacyexchange.org Privacy Foundation:
    http://www.privacyfoundation.org/ Electronic Privacy Information Center:
    http://www.epic.org/ Privacy.org:
    http://www.privacy.org/ Privacy International:
    http://www.privacyinternational.org/ Privacy Rights *************:
    http://www.privacyrights.org/ ID Theft Resource Center:
    http://www.idtheftcenter.org/index.shtml QuickLinks - Data protection:
    http://www.qlinks.net/quicklinks/dataprot.htm British Institute of International and Comparative Law:
    http://www.biicl.org/index.asp?contentid=236 Laboratory for International Data Privacy at Carnegie Mellon:
    http://privacy.cs.cmu.edu/ PRIVACY IMPACT ASSESSMENT GUIDES: U.S. Internal Revenue Service:
    http://www.cio.gov/archive/pia_for_it_irs_model.pdf Ontario Government Information and Privacy Office:
    http://www.accessandprivacy.gov.on.ca/index.html Treasury Board of Canada:
    http://www.tbs-sct.gc.ca/pubs_pol/ciopubs/pia-pefr/siglist_e.asp PRIVACY AUDITING AND FRAMEWORK DOCUMENTS: AICPA/CICA Privacy Framework:
    http://www.aicpa.org/download/innovation/baas/ewp/privacy_framework.pdf BITS Framework for Managing Technology Risk for IT Service Provider Relationships:
    http://www.bitsinfo.org/downloads/Publications%20Page/bits2003framework.pdf
    
    &head=
    Links
    And it gets cut off right after
    Code:
    http://www.dsk.gv.at/indexe.htm Czech Republic - Office for Personal Data Protection:
    mmm signature

  4. #4
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    i cannot replicate your problem
    i pasted the above into test.txt

    i opened a Flash 8 file, added a TextArea component
    to stage and named it - ta

    i added a LoadVars object to frame#1 and the entire
    content of the text file shows up -

    lv = new LoadVars();
    lv.load("test.txt");

    lv.onLoad = function(){
    ta.text = this.myText;
    }

  5. #5
    Flash Incompetent ChaseNYC's Avatar
    Join Date
    Jun 2002
    Location
    new york city
    Posts
    693
    this is my code for loading the text...
    Code:
    on (release) {
    	
    	_level0.MainArea.unloadMovie();
    	_level0.MainArea2.attachMovie("txtbox", "txtbox1",1);
    	 loadText = new LoadVars();
            loadText.load("links.txt");//textFile is the .txt file name
            loadText.onLoad = function(success) {
                    if (success) {
    					    _root.MainArea2.txtbox1.textclip.text1.html = true; //textBox is the dynamic text box name
                            _root.MainArea2.txtbox1.textclip.text1.htmlText = this.myText;
    						_root.MainArea2.txtbox1.textclip.txtTitle.html = true; //textBox is the dynamic text box name
                            _root.MainArea2.txtbox1.textclip.txtTitle.htmlText = this.head;
                    }
            };
    		_root.camain.gotoAndStop(1);
    }
    mmm signature

  6. #6
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    add a trace inside of your onLoad function -

    trace(unescape(this.myText));

    is the entire variable diplayed in the output window ?

  7. #7
    Flash Incompetent ChaseNYC's Avatar
    Join Date
    Jun 2002
    Location
    new york city
    Posts
    693
    yes it is...
    mmm signature

  8. #8
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    sorry...don't know
    if you ever get it sorted, post back the fix

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