|Apparently it´s either completely impossible or way too complicated to bring focus to a Flash object in Firefox. But I got it all working in IE and it kinda works in Firefox too, you just gotta click the main Flash object on the page and then the "internal" objects are working the way I want them too.|
|Now I have another question... for Mike, of course... how did you make a secure login for GKN? I guess this might be a question that you might wanna answer in private. I know how to make a login but I´ve read that dudes can pull down your SWF file and decompile it to retrieve passwords from it. I´m wondering how it was done for this site. Probably some more advanced stuff was used that I haven´t learned to use yet!|
Sorry I did not notice this post until today.
As to how to do this... I think you might be better off researching the most modern methods for handling the passing of information from Flash to other languages via URLs. I used url vars to pass the information back PHP however the more recent version of Flash and Flex have stepped away from this sort of of thing although it may still be doable. In my more recent projects using this type of technology I have used AFMPHP to pass information from Flash files directly into PHP as arrays, this works great and is pretty easy once you set every thing up, but setting it up is kind of hard to understand in the beginning.
Link I found that might help:
This is some AS3 code I pulled off a site that is somewhat close to the way I handled this situation:
var vars:URLVariables = new URLVariables();
vars.theData = data;
var req:URLRequest = new URLRequest("http://www.url.com/index.php");
req.method = URLRequestMethod.POST;
req.data = vars;
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
The above will send data to your php page from there you can do things like validate the user and log them in using sessions.
This is a pretty big can of worms you are opening because there are a lot of thing you have to learn like: how do you log someone in in php, how do you connect to the database, how do you get your data into the database. But if you take the time you can learn it, there is a lot to learn but really its pretty easy. There are plenty of online resources that will help you but it is not something that I could explain in one post.
I know this was not the answer you were hoping for but I hope it helped a little.
|Yeah. That was a cool response because I´ve actually learned and implemented exactly how you explained to do it between AS and PHP using a MySQL database. I could easily do what I´m trying to do with just HTML, PHP, and MySQL but I wanted to try something different by using Flash to build a whole site (just took a semester class on Flash). I´m not too into working with forms using Flash though. It´s so much easier to do it with HTML and PHP. But I´m gonna keep messing with Flash. Thanks, Mike!|
|Awesome, glad you were able to get this done.|
I agree with you about HTML being better for forms but if you get info PHPAMF a lot of that is worked out and it gets really simple to pass that data. Just something to look into if you get bored.