|
|
Search Tutorials
Scripting (cont) In frame 3 on the "action" layer I placed a simple stop action to stop the movie from looping. I also created a button I called "again" and placed it in frame 3 on the "Refresh Button" layer. When an On Click event occurs, it will simply goto and play frame 1. Thats it! You can modify this .fla to read the bar1 to bar28 values from a text file. All you have to do is simply use a loadmovie script with a load variables. This will load the text file into your variables. When doing this keep in mind that 'with Load Variables, the text at the URL must be in the standard MIME format application/x-www-urlformencoded (a standard format used by CGI scripts). Any number of variables can be specified. For example, bar1=56&bar2=83&bar3=4&bar4=72 etc... Here is the end result!!
|
||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||
|