5 Replies Latest reply on Oct 19, 2006 5:12 AM by Peter Lorent

    custom-class problem with LoadVars

    Bl4deRunner Level 1
      Hi all,

      What I'm trying to create is a "ping server" class, so a local Flash-application can verify if a variable remote server is online.
      As you'll see in the example, I've created a function ping(), which executes pingServer:LoadVars.
      The strange thing for me, is that I can set a variable in a class from a function within that class, but i can't set a variable from pingServer.onLoad which is within that function...
      (It's actually the first time I'm trying to create a class..)

      Any suggestions?