A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Q: Check for INTERNET CONNECTION (swfStudio)

  1. #1
    Special Member Tea_J's Avatar
    Join Date
    Dec 2000
    Posts
    991

    Q: Check for INTERNET CONNECTION (swfStudio)

    I thought someone would have asked this here already, but i did a search and the closest thing i got was this guy saying SWFStudio doesnt check for internet connection properly, it returns true if you're connected on a LAN, or Hub, which is rather inaccurate.

    So, im wondering if there is a way, now, to check for REAL INTERNET CONNECTION using SWFStudio?

    BTW I couldnt find help in the help file either.


    Tea

  2. #2
    Banned By GMF Wannabe Gambini's Avatar
    Join Date
    Oct 2000
    Posts
    976
    You'll probably get a faster response at the SWF Studio forums at http://www.northcode.com/forums

    Alternatively, download a copy of Flash Studio PRO and you can use the flashstudio.checkconnection command.

    Also, you can check for an internet connection by trying to load variabls from a txt file online... if they load up, then the system is connected! Easy

  3. #3
    Special Member Tea_J's Avatar
    Join Date
    Dec 2000
    Posts
    991
    tnx. i was hoping to get answers here though. but, yeah, fare enough. ill check them out there.

    thanks again

    Tea

  4. #4
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    The SysInfo plugin in SWF Studio has a function called ConnectState that allows you to check for an internet connection, but the main purpose is to look for a modem that is on-hook (not dialed) so you don't accidentally force the modem to dial.

    If ConnectState returns ONLINE then there is another connection (LAN, Cable, DSL, etc) and it's usually safe to do a loadVariables or something to confirm an interbet connection.

    ConnectState has an option that does a ping after verifying the ONLINE status but most servers reject ping packets now to avoid DOS attacks so I've recommended against using that part of the ConnectState functionality.

  5. #5
    Special Member Tea_J's Avatar
    Join Date
    Dec 2000
    Posts
    991
    what does Flashstudio use for the internet connection test?

  6. #6
    Banned By GMF Wannabe Gambini's Avatar
    Join Date
    Oct 2000
    Posts
    976
    Flash Studio PRO has several different commands which cn be used to run a simple check, an advanced check which returns what kind of connection is present and also a ping command for more experienced users.

  7. #7
    You might also want to try JNetCheck for minimum overheads and to keep the orginal projector file. JNetCheck is only 40KB. If writes the results to a text file.

    Download an evaluation copy and check the example files given :

    http://jnetcheck.***********.com

    Good Luck

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center