User Tag List

Results 1 to 10 of 10

Thread: creating MooSock connection statement

  1. #1
    No Products Registered

    Join Date
    Dec 2011
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    creating MooSock connection statement

    As part of an event I am going to connect to my server using MooSock Object. I right click under the space under the moosock object and select connect. I get the calculator window. What do I place here? I try Connect to EditText$(“server”) on port Edit Value(“port”) " and fill in the server name and port number but get invalid statement. Thanks.

  2. #2
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,964
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    DarkSocket is probably a better option for what you are using, but that action should work fine. The port may be text-based as MooSock is rather quirky.

  3. #3
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    I'd really recommend using DarkSocket as it is under active development by SortaCore, or Lacewing Socket when Jamie gets around to making it, as MOO is no longer supported and it is very buggy.

    As for your problem, I tried what you tried and I think the problem is that you are using “angled” quotes while MMF2 expects "straight" quotes. Other than this I have no idea what your problem could be besides a mistyped object name.
    Working as fast as I can on Fusion 3

  4. #4
    No Products Registered

    Join Date
    Dec 2011
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What is the difference between “angled” quotes and "straight" quotes?
    like this? "Connect to EditText$('mywebsite.com') on port Edit Value('80')"

  5. #5
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    No, like this:

    Where "Server IP" and "Port" are the actual names of the edit box objects.
    Working as fast as I can on Fusion 3

  6. #6
    No Products Registered

    Join Date
    Dec 2011
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So I have to make edit boxes and set them to the appropriate values before i can assemble this statement?

  7. #7
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Oh, from your original post I thought you wanted this.

    No, you can simply enter "server.klikfarm.com" (in quotes) and 1203 (not in quotes) for example.
    Working as fast as I can on Fusion 3

  8. #8
    No Products Registered

    Join Date
    Dec 2011
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry for the confusion. I am trying to follow the tutorial on this page: http://www.clickteam.com/eng/resources/online_score/onlinescoreboards.html

    OnlineScoreboardTut.jpg

    -> MooSock object: Connect to "youraddresshere" on port 80

  9. #9
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    The high score tutorial is a bit outdated - you'd probably do better to use the Get object than try to operate HTTP manually.

  10. #10
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Like I mentioned to you over email, definitely use the Get object (you can download it from the extensions forum) - then you can just send a web address and parameters (the part in the 'Send Line' action of the Moosock object) and you don't have to worry about any of the HTTP header stuff at all. It's got a lot easier to do this since I wrote that tutorial...

Similar Threads

  1. MooSock and IRC. Issues with Server Connection.
    By GrimFusion in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 14th June 2012, 11:33 AM
  2. Case Statement equivalent?
    By LeGauche in forum Multimedia Fusion 2 - Technical Support
    Replies: 24
    Last Post: 5th September 2011, 02:43 AM
  3. Can I use an OR operand in a compare statement?
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 25th June 2010, 09:38 PM
  4. Combining or and ands in one statement
    By Kalnar in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 24th November 2007, 03:11 PM
  5. MooSock Connection Problem
    By Hezkore in forum File Archive
    Replies: 5
    Last Post: 5th April 2007, 07:08 PM

Posting Permissions

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