|
|||||||
| Other Discussion and technical support for any other scripting methods. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
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 Do something amazing (USA) | Make Poverty History |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
||||
|
||||
|
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 Do something amazing (USA) | Make Poverty History |
|
#5
|
|||
|
|||
|
Ok, Sorry I'm getting tirred I didn't see the link.
And do you know what language flash uses is it VB? Crypto. |
|
#6
|
|||
|
|||
|
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 Last edited by crypto; 09-13-2004 at 06:02 PM. |
|
#7
|
||||
|
||||
|
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 Do something amazing (USA) | Make Poverty History |
|
#8
|
|||
|
|||
|
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 |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|