Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi everyone,

    I am currently porting an project to Flash so I can host it on a webpage, and have a query about the GET Object and the Flash Exporter.

    The game is an anti-phishing educational tool, it is for an experiment.

    Previously, a set of example phishing URLs ("game data") was being loaded using an INI file. So, rather than rewriting the game such that it doesn't use an INI file for this purpose, I would like to use the existing INI file by loading it from a web-server. So in the new project, I am using the GET object to grab the existing INI file from my web-server and then using the EditText object to then save it as a local INI file. This works fine inside MMF, as shown below (retrieving the GET data as a string object):

    Please login to see this attachment.

    However, when I export the project to SWF, the GET object only seems to be grabbing the first line of the INI file from the web server, as shown below:

    Please login to see this attachment.

    Is this a limitation of the GET object? Is this a limitation of the String/Edit Text object in Flash? Is the Flash version of the GET object expecting the results in a more specific format? Or is there a better approach you could suggest?

    Thank your for any assistance!

    With Regards,
    Adrir

    Edit: FYI, I modified the first group within the INI file for diagnostic purposes.

    Edited once, last by Adrir (April 14, 2013 at 12:24 AM).

  • GET object should work exactly the same in Flash, and I've done a lot of work using GET object to request rather large sets of data with no problem at all.

    My guess is the problem is in the string/edit object.
    Pay special attention to you string object. As far as I remember - in Flash - it doesn't resize itself to show all the lines, and thus could visually seem to only contain one line, when it actually contains all lines.

  • My guess is the problem is in the string/edit object. Pay special attention to you string object. As far as I remember - in Flash - it doesn't resize itself to show all the lines, and thus could visually seem to only contain one line, when it actually contains all lines.

    So I've enlarged the string/edit object and I can see that the data *is* actually there. Thus, the GET Object is working as intended. However, the data itself does not seem to be making its way into the local .ini file.

    Is there anything particular about the way INI files are handled in Flash? Is there a limitation to the way the Flash handles saving data?

  • Is there anything particular about the way INI files are handled in Flash? Is there a limitation to the way the Flash handles saving data?

    I've had a play and come up with a rather more eccentric solution than I was hoping for. Essentially it seems that the ability to save files using EditText and StringParser are different in the Flash extension, so they were not producing the files that I was expecting them to. However, manipulating the INI file directly did result in a persistent save file. My solution was to reformat the ini file using "|" and "=" as delimiters. Then using a "fast loop" to repopulate the INI file directly using the INI object.

    Ideally, I would like to maintain the structure of the INI file to make them easier to edit, so is there a way to use a line break as a delimiter in the StringParser (as similar to '\n' for Java)?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!