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.
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.
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.
-
-
Can you use the flash player object to open url, instead of http just use the path to the local file ?
-
You mean that I should use "page.html"? (all the files are in the same directory). If so, I have tried this with unsuccessfully. The browser doesn't find the file. Any other suggestion?
-
Making new threads in different places makes it difficult to keep track of your problem... did the FlashURL extension, mentioned in this one: Please login to see this link. - help?
-
Sorry, David. No, the FlashURL didn't help.
-
Hmm... out of interest, have you tried it in different browsers, to see if one of them gives you any sort of message as to why it was blocked?
-
I tried in Internet Explorer and Google Chrome. Both say that they can't find the file. It seems to me that they don't recognize the path. When I try "inside" the Multimedia Fusion, it works.
-
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.
-
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?
-
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 iniThat's all. The file is automatically created and updated whenever you save something.
-
You are right: I never used the IniObject. I'm gonna try, JoKa. I'll tell you later about my experiency. Thank you VERY much!
-
Hello JoKa, here I am to bother you again. I got stuck in one detail: "write a string or value to the ini". What do I have to do about that?
-
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".
-
You don't have to be sorry, I'm the one who's bothering you, all day long. Yes, there is a "Set value - item", but then I'm asked to write 2 things. Guess if I know...:)
-
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 -
JoKa, I did just the way you told me and I couldn't find the file "test.ini" in my computer. Oh, oh! Should I give up?
-
Have you named the file at start of frame, or at least before saving your value?
(Set current file: "test") -
Yes! I don't see the "test.ini" in the directory of my game when I run the application.
-
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!