The Daily Click ::. Forums ::. Klik Coding Help ::. Condition that activates when user loads from file selector
 

Post Reply  Post Oekaki 
 

Posted By Message

:JULI@N:



Registered
  14/07/2002
Points
  641
13th July, 2005 at 19:55:08 -

I want to load an array. This can be done with the load array action directly, or with the file object that lets you use a file selector. My problem is not selecting the file, but telling the computer that the user just selected a file. What condition should I use?

 
n/a

Crystal Clear (H.E.S)

Possibly Insane

Registered
  06/10/2002
Points
  2548
13th July, 2005 at 21:30:25 -

I'm not sure about the File objects "File Selector", i use the "Common Dialog" Object for file selectors and never have problems with it, all you need to do is the condition "Open File Selector OK".

I just checked out the File object then, id guess "Last Action OK" or "File is Readable" would be the conditions your looking for, but i'm not exactly sure thats just a guess. if it gives you trouble just go with the "Common Dialog" object.

 
HES homepage:
http://www.distinctiv-efair.com/heretic/studios
Crystal Clear Productions: http://www.distinctiv-efair.com/heretic/crystalclear

:JULI@N:



Registered
  14/07/2002
Points
  641
13th July, 2005 at 23:08:00 -

The problem with Last Action OK is that after selecting the file, it works like an "always", therefore the array loads all the time, making it impossible to save any further changes to the level (I´m making a level editor) and if you insert an only one action when event loops, it doesn't works at all, as it seems that the event activates since the beginning of the level, and the same happens with File is readable, Name exists, etc
But I'll download the Common Dialog Object you speak of and see how it works, thanks

 
n/a

:JULI@N:



Registered
  14/07/2002
Points
  641
13th July, 2005 at 23:22:54 -

Thanks! It was exactly a "Open Dialog OK" condition what I needed!

 
n/a
   

Post Reply



 



Advertisement

Worth A Click