How to make a link to an HTML document? Impossible?

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.
  • Please, I would like to know if it's possible to make a button (in a game exported as SWF) that opens an HTML document (this HTML is located in my PC or DVD - not in internet). The player clicks the button and the browser opens the HTML page. I'll appreciate any help.

  • This seems to be logical, because MMF has different paths than SWF files. Just create an ini file called "test" without any path to see the difference. Run the game in MMF, then search for test.ini. Then run the SWF and search for test.sol - it's "slightly" different. You could try and place your html file there to see if it's found. If it works, you'd have to find a way to extract the html file when the SWF is run the first time to put it in the right location. OR a way (probably a new extension) to access the local file system in case the html file is delivered in any other way.

    Please login to see this link.
    Please login to see this link.
    Please login to see this link.

  • I didn't understand very well: did you really mean search for "test.sol", not "test.ini" while running SWF? And how to "find a way to extract the html file when the SWF is run the first time to put it in the right location"? I can't figure it out.

  • You understood very well what I want you to do, you just don't understand it!?!?!? ;)

    To make this more clear:
    When you run from MMF, it creates a typical text file called "test.ini" in the Windows or application folder.
    But the SWF creates "test.sol", a specific file format in a nested folder structure. Open it with a text editor and you'll see that it contains your ini data and other cryptic stuff. Once you run a SWF, you have to deal with the conventions of Flash. That's why it doesn't make sense to apply any pathnames in a Flash game, they're being ignored. After all Flash is much more limited than MMF itself.

    Please run the SWF and save to the ini called "test". Then search for "test.sol" and you'll see the path where the SWF data is located. This path is your problem, because it's completely different to the path used by MMF. So, how could the SWF find your html file?

    Please login to see this link.
    Please login to see this link.
    Please login to see this link.

    Edited 3 times, last by JoKa (January 17, 2012 at 2:00 PM).

  • Oh, boy, I'm feeling a big dumb! :( Now I'm completely lost. Let's begin again, if you still have patience. This "test.ini": do I create or the MF2 does? How do I create: inside the program or in a text editor? I don't understand (believe me) when you say "run the SWF and save to the ini called "test"". Sorry for my ignorance.

  • Oops, sorry, I didn't realize this object is new to you. I never tried other methods to find the path to the SWF data, because I always needed an ini.
    - put an Ini Object in the frame
    - at start of frame: set current file to "test"
    - write a string or value to the ini

    That's all. The file is automatically created and updated whenever you save something.

    Please login to see this link.
    Please login to see this link.
    Please login to see this link.

    Edited once, last by JoKa (January 17, 2012 at 3:51 PM).

  • In the Event Editor you'll find this under the Ini Object. Sorry for the confusion, can't access MMF right now, guess for this object it's called "Set item value".

    Please login to see this link.
    Please login to see this link.
    Please login to see this link.

  • You have to enter the value and the item name (not sure which one first). Use something like "testvalue" and 123, in the ini this line will be saved:
    testvalue=123

    Please login to see this link.
    Please login to see this link.
    Please login to see this link.

  • Have you named the file at start of frame, or at least before saving your value?
    (Set current file: "test")

    Please login to see this link.
    Please login to see this link.
    Please login to see this link.

Participate now!

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