www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Server-Side Development > Other

    Other Discussion and technical support for any other scripting methods.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 09-13-2004, 12:39 PM
    crypto crypto is offline
    Registered User
     
    Join Date: Oct 2003
    Location: uk
    Posts: 38
    Question Flash 5 and ip addresses

    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.
    Reply With Quote
      #2  
    Old 09-13-2004, 02:30 PM
    AdamGundry's Avatar
    AdamGundry AdamGundry is offline
    Not quite a mathematician
     
    Join Date: Nov 2002
    Location: Dartmoor [Holiday]
    Posts: 2,406
    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
    Reply With Quote
      #3  
    Old 09-13-2004, 03:13 PM
    crypto crypto is offline
    Registered User
     
    Join Date: Oct 2003
    Location: uk
    Posts: 38
    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
    Reply With Quote
      #4  
    Old 09-13-2004, 03:47 PM
    AdamGundry's Avatar
    AdamGundry AdamGundry is offline
    Not quite a mathematician
     
    Join Date: Nov 2002
    Location: Dartmoor [Holiday]
    Posts: 2,406
    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
    Reply With Quote
      #5  
    Old 09-13-2004, 03:56 PM
    crypto crypto is offline
    Registered User
     
    Join Date: Oct 2003
    Location: uk
    Posts: 38
    Ok, Sorry I'm getting tirred I didn't see the link.

    And do you know what language flash uses is it VB?

    Crypto.
    Reply With Quote
      #6  
    Old 09-13-2004, 05:58 PM
    crypto crypto is offline
    Registered User
     
    Join Date: Oct 2003
    Location: uk
    Posts: 38
    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.
    Reply With Quote
      #7  
    Old 09-14-2004, 12:45 PM
    AdamGundry's Avatar
    AdamGundry AdamGundry is offline
    Not quite a mathematician
     
    Join Date: Nov 2002
    Location: Dartmoor [Holiday]
    Posts: 2,406
    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
    Reply With Quote
      #8  
    Old 10-04-2004, 04:58 PM
    schizo schizo is offline
    Code Monkey
     
    Join Date: Jun 2004
    Posts: 388
    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
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 01:59 AM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.