Click to See Complete Forum and Search --> : Flash 5 and ip addresses
crypto
09-13-2004, 11:39 AM
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.
Thank you.
Crypto.
AdamGundry
09-13-2004, 01:30 PM
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 (http://www.flashkit.com/tutorials/Actionscripting/Custom_D-Chris_Ir-521/index.php) explains how you can do dates and times.
Adam
crypto
09-13-2004, 02:13 PM
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)).
Crypto
AdamGundry
09-13-2004, 02:47 PM
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
crypto
09-13-2004, 02:56 PM
Ok, Sorry I'm getting tirred I didn't see the link.
And do you know what language flash uses is it VB?
Crypto.
crypto
09-13-2004, 04:58 PM
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.
Crypto
AdamGundry
09-14-2004, 11:45 AM
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
schizo
10-04-2004, 03:58 PM
Below is a method that illustrates how to communicate from ASP to Flash. The theory would be the exact same in PHP, with just a little syntax change.
http://www.mikeweiner.com/trials.asp?trialType_id=1