The Daily Click ::. Forums ::. Klik Coding Help ::. Mouse Object is crap.
 

Post Reply  Post Oekaki 
 

Posted By Message

Cherry Lee



Registered
  21/05/2006
Points
  16
27th May, 2006 at 16:11:54 -

I don't mean to be harsh, but the standard mouse object in multimedia fusion is inadaquate for my needs. I want to be able to detect when the mouse is released, but there is no condition or event that allows this. Does anybody know of a mouse object I can download.

Also, I need an MySQL object for SQL databses. I learned the SQL language and it is very easy. I just need an object to manipulate SQL databases with. Otherwise I will have to learn the SQL Server protocol and use MooSock. That I wish not to do.

 
Invalid Logic:
A is for B.
C has an A.
Therefore C is a B.

Valid Logic:
A is a B.
All B's are C's.
Therefore A is a C.

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
27th May, 2006 at 16:29:42 -

It's too bad they don't (I think) have a MouseUp event like in VB6. Is there a way you could use a flag and the always set flag 1 on while mouse button is clicked? This advice might also be crap, I don't use the mouse object much in MMF.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
27th May, 2006 at 16:58:16 -

Always
---Active: Set flag 0 off

Repeat while left mouse-key is pressed
---Active: Set flag 0 on

[NEGATED] Repeat while left mouse-key is pressed
+Active: Flag 0 is on
---[events for when mouse is released]

 
n/a

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
27th May, 2006 at 17:01:40 -

For the mouse thing just do:

-Only one action when event loops
(negate) Repeat while mouse key is pressed

For the MySQL thing, I think you'll just have to use MooSock... and/or PHP or something?
It's pretty easy to run SQL queries through PHP. Just open notepad, type in:

<?


mysql_connect("localhost", "username", "password");
mysql_select_db(database);

mysql_query("Here you type the query")or die(mysql_error());

?>


And save it as something.php and upload it somewhere, then just use MooSock to call the PHP script. There are plenty of MooSock articles around.

Edit: Hah. Ray-dicks was faster. But I guess mine is better because it only takes one line of code, zomg.

Image Edited by the Author.

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
27th May, 2006 at 17:52:34 -

-Only one action when event loops
(negate) Repeat while mouse key is pressed


How do you stop that triggering the first time?

Edit: By the way, it's a good idea to always put the 'one action when event loops' condition last.

Image Edited by the Author.

 
n/a

Cherry Lee



Registered
  21/05/2006
Points
  16
27th May, 2006 at 19:33:09 -

Thanx radix. Thats a great idea.

Does anyone know of a complete cox list somewhere so I can download extensions?

 
Invalid Logic:
A is for B.
C has an A.
Therefore C is a B.

Valid Logic:
A is a B.
All B's are C's.
Therefore A is a C.

Cocodrilo



Registered
  17/04/2005
Points
  258
27th May, 2006 at 21:01:27 -

Yes...
Here: www.clickteam.info/extensions



(Please Look at my Mooclick example at this forum^^)

 
/Cocodrilo

Werbad



Registered
  18/09/2002
Points
  235
28th May, 2006 at 10:52:01 -

There is an SQL extension called SQLDB or something.
I haven't tried it myself though...

 
n/a

Cherry Lee



Registered
  21/05/2006
Points
  16
29th May, 2006 at 18:28:19 -

Could you provide a link to this SQLDB?

 
Invalid Logic:
A is for B.
C has an A.
Therefore C is a B.

Valid Logic:
A is a B.
All B's are C's.
Therefore A is a C.

Werbad



Registered
  18/09/2002
Points
  235
29th May, 2006 at 19:07:20 -

http://www.clickteam.info/extensions/extview.php?id=354

This is a great extension page btw:
http://www.clickteam.info/extensions/extlist.php?cat=


 
n/a
   

Post Reply



 



Advertisement

Worth A Click