Welcome, Guest
  • Author Topic: Sending a lot of variables at once  (Read 583 times)

    Flashsucker

    • Server what's that
    • *
    • Posts: 48
      • View Profile
      • Email
    Sending a lot of variables at once
    « on: 03/10/03, 17:06 »
    Hi there,

    Let me start by saying that I don't know much about connecting Flash to a database. I've hired someone to do  database and ASP.net programming for me. However, I am doing all of the Flash programming. With that said, I've created a movie that will send a lot of variables to a database through asp.net.

    I plan on using loadVariable to send the variables to the database. The question that I have is, when you send variables to a database, which variables are sent?

    Since there are so many variables, I was wondering if I should create a function that will send each variable specifically? Or will the movie send all of the root variables as default? And if every root variable is sent, does it make a difference whether or not there is a field on the database for each variable? Because there will be some root variables that have no place within the database.

    Thanks for your time.

    ???

    Musicman

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 2685
      • View Profile
      • Email
    Re:Sending a lot of variables at once
    « Reply #1 on: 03/11/03, 02:45 »
    Hi,

    your movie will send all the variables in the current context (the root,  specific level, a movieclip) depending on the details of the loadvariables call.
    The server would just add those variables to a datbase that it is interested in....
    However, some movies have so many useless variables to transmit (e.g. the fact that the preloader arrived at 100%, or all the possible questions for a quiz) that it makes sense to restrict sending. To do so, put an empty clip on stage or use a loadvars object and copy all the data you want to send to that object.

    Musicman

    Flashsucker

    • Server what's that
    • *
    • Posts: 48
      • View Profile
      • Email
    Re:Sending a lot of variables at once
    « Reply #2 on: 03/11/03, 10:37 »
    There are a lot of variables (over 100) that I need to send. That's why I was wondering if they all could be sent at once. It sounds like sending them all will be my best option since there are so many... and considering that the database is only intereseted in the important variables anyway.

    Thanks.