Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capture a loadVariablesNum

Status
Not open for further replies.

Niv3k

Programmer
Jul 11, 2001
350
US
I have a global variable, bReadWrite, that I am trying to read from a simple ASP that has two results: bReadWrite=true and bReadWrite=false. I am loading this variable from the beginning of the movie using loadVariablesNum.

I want to capture when the value changes from blank, so that I can show an additional movie clip that will allow certain users to upload documents to the web server. All visitors will be able to download the documents, but only 5 will have persmission to upload, and I want to use the same movie.

I have it to the point where all users could click a button and then it will tell you if you have permission to upload, but that is not really what I want to do. Any ideas?

Kevin
 
It should update immediately, provided it is being sent to the right place?


If it is to make another action occur though - you will need a small clip - maybe the first portion of the clip yu will show, which loops and checks the value each time.

There is also onClipEvent(data)

P.S. how are you doing file browse [in Flash]?
<bb>
 
I am using a database that keeps track of the filename and location on the server. I have a .dll that receives the upload, and puts the file into the database. Then I use an ASP to retrieve a list in the form of urlformencode, with hyperlinks to download each file, and I use loadVariables to retrieve the data from the ASP and put it in a text box.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top