[list][*]I have a PHP script searching a directory for how many images are in it and putting the value into a variable.
[*]That variable is imported into flash and is used to make a random number from that variable.
[*]That random number chosen loads a random image from that directory.[/list]
So lets say there are 5 images in that directory. Flash is suppose to get a random number in between 1 and 5. The problem I am having is that the imported variable cannot be traced as an integer. Does anyone know anything about this problem?
Number() is a leftover method from Flash 4 and will most likely be deprecated in later versions of Flash but I am sure that is unimportant to you now.
parseInt() is from ECMA script which is the standard that Macromedia has wisely switched to. It also makes more sense to developers. ECMA script came from JavaScript/Jscript.
This might seem like a dumb question to most of you… but…
Is it possible to pass variables to Flash MX file directly from the page that is called. For example, I currently have an ASP page that pulls an image from a DB and then displays the image http://www.playmoreconsoles.com/pic.asp?ID=2396
That page works fine and will remain intact.
I want to be able to open http://www.playmoreconsoles.com/pic2.asp?=2396 and have it dynamically open that image. All of the supposedly dynamic image tutorials out there rely on hard coded flash.
All I need to do is grab the image number from the ASP page itself.