My problem is rather simple. I have a site built totally in flash that I need a couple other people to be able to log into, but I don't want them to know the password.
Does anyone 开发者_开发知识库know if there a way that I can load the flash site in an iframe, and then use some javascript to fill the flash username and password with the correct text so that they can just click the login button without knowing the username and password?
If not, can anyone think of any other ways to accomplish this?
Thanks!
I'm sure there are many ways to accomplish this but using an IFrame is one of them. I don't know your setup so I will be rather broad.
You'll want to use JavaScript to set FlashVars in the HTML or JavaScript where your Flash Object is loading the SWF.
Once you've done this, you can then take the value from those FlashVars and set the textfields' value as the value of the FlashVars.
精彩评论