A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: problem displaying variables in parent

  1. #1
    Senior Member ::bluemoth::'s Avatar
    Join Date
    Jun 2001
    Posts
    521
    I've been unsuccessful with my posting in the Flash 5 Actionscript section (http://board.flashkit.com/board/showthread.php?threadid=272104), and wondered if someone here can help me out.

    All I need is to pass .xml variables to a child movie, inside a parent movie, like I can with my .txt variables.

    I'd really appreciate some help,

    ::bluemoth::

  2. #2
    Junior Member
    Join Date
    Feb 2002
    Posts
    23
    should be kind of simple i think...

    there are to posibleities, that vars are global, than its just the same on all levels, or that they are not global, in wich case you can refere them as normo objects

    in your parent
    var e=new xml()//something like this..
    //put some stuff in your xml object..then

    child.a=e;
    now in your child you have

    var a; //just make sure a exist before you try to assing it in the parent...dont know how flash handels that kind of stuff...
    and a should be e, wich is your xml object....

    ghandi

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