I need to know how to print up someones IP Address in Flash 5.
Can anyone please tell me how to do this I don't want a serverside language to do this cause the server hasn't got the capability to host them so please javascript or sumething please.
And I need to know how to print up the date and time aswell please.
You can't get the local IP address in plain JavaScript, and to the best of my knowledge you can't in ActionScript either. You need a server-side language of some kind.
This tutorial explains how you can do dates and times.
Adam
"If you’re not using valid HTML, then you haven’t created a Web page. You may have created something else, but it isn’t a Web page." - Joe Clark
Sorry I don't think i explained it correctly my flash movie has to be able to run on a web server with no server side languages and print up the users (remote) IP Adress (xxx.xxx.xxx.xxx) aswell as be able to print up the date (mm-dd-yy) and time (hh:mm:ss(24 hour clock)).
You explained correctly, and I answered appropriately. To the best of my knowledge getting the remote IP address with client-side scripting is not possible. The date and time is covered in the tutorial I linked to.
Adam
"If you’re not using valid HTML, then you haven’t created a Web page. You may have created something else, but it isn’t a Web page." - Joe Clark
Ok so how do you print the IP Address up on the screen with php?
I have the Apache web srever and the php server all setup correctley.
I know the php comand is echo $_SERVER['REMOTE_ADDR']; but how do I make flash 5 able to understand it and print it on the screen?
Or can I make flash 5 able to read java script code ie. <script> foobar </script> cause i found some code that is suposed to print the ip address up in that.
Flash uses ActionScript for scripting - it is very similar to JavaScript, but has objects suitable for manipulating Flash files rather than HTML pages. In addition, it is bytecode-compiled when you create a Flash file.
I'm not an expert on Flash, but some of the others may be able to show you how to transfer data between PHP and Flash files.
Adam
"If you’re not using valid HTML, then you haven’t created a Web page. You may have created something else, but it isn’t a Web page." - Joe Clark
Bookmarks