A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: checking post variables

  1. #1
    Senior Member
    Join Date
    Jun 2001
    Posts
    179
    what's the best way to check if your variables have been posted successfly?
    -Rui

  2. #2
    Hack
    Join Date
    Mar 2000
    Location
    Madison, WI
    Posts
    1,753
    What are you posting variables to?

  3. #3
    Senior Member
    Join Date
    Jun 2001
    Posts
    179

    php..

    i suppose it would be somthing from php?

  4. #4
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    you could add some code to your php that adds a time stamp and all the HTTP_POST_VARS or HTTP_GET_VARS to a log file

    Musicman

  5. #5
    Senior Member
    Join Date
    Jun 2001
    Posts
    179

    hmmm but what's that going to achieve?

    coz like i want to know if the database has been sucessfully updated then reload it..?
    i suppose i could create a variable that holds it's old data then compare the data recieved to see if it's different if not reload it..? seems a little clumsy..
    also just curious if anyone has an example of the onclipevent data?
    because it doesn't seem to work...
    i load a file locally and it loads but the trace i put in the onclipevent doesn't come up.. neither do the actions...
    and i know the file was loaded because i checked the variables..?
    -rui

  6. #6
    Hack
    Join Date
    Mar 2000
    Location
    Madison, WI
    Posts
    1,753
    I don't use PHP I use ASP, but the concept's the same.

    All you have to do is have the PHP page print out a little string for Flash to receive, like:

    "jobDone = true"

    Then, wherever you have the Flash Movie load variables to, put an onClipEvent(Data) action:

    onClipEvent(Data) {
    if (jobDone == "true") {
    [DO WHATEVER YOU WANT TO DO AFTER DATABASE IS UPDATED]
    jobDone = "false";
    }
    }

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