+ Reply to Thread
Results 1 to 5 of 5

Dynamic field empty....help

This is a discussion on Dynamic field empty....help within the HELP free utilities forums, part of the Flash English category; Hi I have this code in (apart) movie clip, this one belongs to ther one called (pagina): The field is ...

  1. #1
    Junior Member Settled In alphasil is on a distinguished road
    Join Date
    Oct 2008
    Posts
    23
    Rep Power
    0

    Dynamic field empty....help

    Hi

    I have this code in (apart) movie clip, this one belongs to ther one called (pagina): The field is instanced as nome_text and the variable is "nome"

    In the output from flash he loads the text, but the text field is empty
    The AS is the second layer from "apart" mc

    Code:
    var myLoadVars = new LoadVars();
    myLoadVars.onLoad = function() {
    	trace(this.nome);
    	nome_txt.text = this.nome
    }
    myLoadVars.load("text.txt");
    The field has embedd character.

    the txt has ( &nome=your text)

    What's wrong?

    regards
    Last edited by OrientExpress; 02-10-09 at 07:39. Reason: added CODE tags

  2. #2
    Moderator Moving My Stuff To The FlepStudio OrientExpress is on a distinguished road OrientExpress's Avatar
    Join Date
    Aug 2009
    Posts
    1,277
    Rep Power
    5

    Re: Dynamic field empty....help

    Try
    nome=your text
    without &

  3. #3
    Junior Member Settled In alphasil is on a distinguished road
    Join Date
    Oct 2008
    Posts
    23
    Rep Power
    0

    Re: Dynamic field empty....help

    Hi

    the same, in the output ftom flash i receive this:

    myLoadVars load success is true
    your text

    But the field still empty...:(

    what's wrong?

    regards

  4. #4
    Moderator Moving My Stuff To The FlepStudio OrientExpress is on a distinguished road OrientExpress's Avatar
    Join Date
    Aug 2009
    Posts
    1,277
    Rep Power
    5

    Re: Dynamic field empty....help

    You must embed characters in your textfield, have a look:
    Emded fonts into SWF

  5. #5
    Junior Member Settled In alphasil is on a distinguished road
    Join Date
    Oct 2008
    Posts
    23
    Rep Power
    0

    Re: Dynamic field empty....help

    Hi

    Thanks for your help, did it already and nothing:
    My code now:

    Code:
    myLoadVars = new LoadVars();
    myLoadVars.load("text.txt", "apart");
    border = false;         
    multiline = true;         
    wordWrap = true;       
    embedFonts=true         
    variable = nome;         
    myLoadVars.onLoad = function(result){
        trace("myLoadVars load success is " + result);
        trace(this.nome);
    caixa.text = this.nome
    }
    Still don't get what's wrong....:(
    Last edited by OrientExpress; 02-10-09 at 10:17. Reason: added CODE tags

+ Reply to Thread

Similar Threads

  1. Altezza Dynamic Text Field
    By ukraf in forum Actionscript 3.0 base
    Replies: 2
    Last Post: 04-02-10, 14:54
  2. Loading XML file....empty
    By alphasil in forum Actionscript 3.0 newbies
    Replies: 2
    Last Post: 05-10-09, 09:05
  3. Empty shoutbox for comments?
    By jdgrud in forum HELP free utilities
    Replies: 0
    Last Post: 19-12-08, 22:11
  4. accessing dynamic text field inside MC generated by addchild
    By gwulfwud in forum Actionscript 3.0 newbies
    Replies: 13
    Last Post: 01-05-08, 11:07
  5. why is my array empty?
    By malaclypse in forum Actionscript 3.0 newbies
    Replies: 3
    Last Post: 01-04-08, 18:34

Tags for this Thread

Bookmarks

Posting Permissions

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