impossible to use Set in a onLoad function with flash 8

Ask a Question related to Macromedia Flash Data Integration, Design and Development.

  1. #1

    Default impossible to use Set in a onLoad function with flash 8

    One could explain why this script works well with flash MX but not with Flash 8?
    Thre trace command give me "bague" as expected with flash MX but "undefined"
    with Flash 8 !!?

    =====================================
    tout= new LoadVars();


    tout.onLoad = function () {
    for (i in tout){ set(i,tout); }

    trace (produit);
    }

    tout.load("vars.txt");
    =====================================
    vars.txt contains : produit="bague"&produit2="bracelet"
    :confused;

    vorpal Guest

  2. Similar Questions and Discussions

    1. installation de MAcromedia Flash impossible
      Bonjour, je n'arrive pas ? installer correctement Macromedia Flash Player... Je suis toutes les indications et... rien!! Y a-t-il quelqu'un pour...
    2. Frameset Preview in Browsers Impossible, floating menus,search function
      Hi All, I posted a query over the weekend that Murray was good enough to reply to, but I haven't been able to make replies for some reason. ...
    3. Accessing Variables from within a onLoad Function
      Hello, I cant seem to access parent variables from within a onLoad function for example. this.s_method = "test val 1" this.a_array = "test...
    4. When using LoadVars in a class the scope changes in onLoad function
      Hi, I have created a class for a component I created using Flash 2004 MX Pro 7.0.1. Within this I set an onload function for LoadVars and perform a...
    5. is it impossible to insert flash animation into oe
      Hi I want to email an animated invitation using outlook express. However it seems to me that this is impossible. The people i will be sending to...
  3. #2

    Default Re: impossible to use Set in a onLoad function with flash 8

    Running your script I get using Flash 8 publishing to Flash 8 format with AS
    2.0

    produit2=%22bracelet%22&produit=%22bague%22&onLoad =%5Btype%20Function%5D

    with your script but not undefined unless I place the trace before the loop.


    However why not just use the variables without the loop as follows:

    trace(tout.produit);
    trace(tout.produit2);



    --
    Lon Hosford
    [url]www.lonhosford.com[/url]
    May many happy bits flow your way!
    "vorpal" <ademus@free.fr> wrote in message
    news:duhqv2$i0g$1@forums.macromedia.com...
    One could explain why this script works well with flash MX but not with
    Flash 8?
    Thre trace command give me "bague" as expected with flash MX but
    "undefined"
    with Flash 8 !!?

    =====================================
    tout= new LoadVars();


    tout.onLoad = function () {
    for (i in tout){ set(i,tout); }

    trace (produit);
    }

    tout.load("vars.txt");
    =====================================
    vars.txt contains : produit="bague"&produit2="bracelet"
    :confused;


    Motion Maker Guest

  4. #3

    Default Re: impossible to use Set in a onLoad function withflash 8

    However why not just use the variables without the loop as follows:

    trace(tout.produit);
    trace(tout.produit2);

    cause this script was only a limited example of what I intend to do (wich
    should be more complex).

    vorpal Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139