Change the behavior

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
fredigertsch
Posts: 38
Joined: Mon Jan 03, 2011 5:42 pm

Change the behavior

Post by fredigertsch »

I plan to change the behavior of an element each time it changes his Type property. Is it correct, that by changing the behavior the custom properties does not change or loose? Thanks.

Best Fredi
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2734
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Change the behavior

Post by jmburnod »

Hi Fredi,

I think the behavior only use the script of the btn you put in reference
I plan to change the behavior of an element each time it changes his Type property
i don't understand the change his Type property

Best

Jean-Marc
https://alternatic.ch
fredigertsch
Posts: 38
Joined: Mon Jan 03, 2011 5:42 pm

Re: Change the behavior

Post by fredigertsch »

Thank you Jean-Marc.

I am programming a game. I have several "objects" who can change her type of object (in the game). And for clearer code I will seperate (in a object oriented manner) the behavior for each type of object. I give it a try ;-)

Best, Fredi
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Change the behavior

Post by Klaus »

Hi Fredi,

you can change the behavior of any objects as often as you like!
And the custom properties are not getting touched by this.


Best

Klaus
fredigertsch
Posts: 38
Joined: Mon Jan 03, 2011 5:42 pm

Re: Change the behavior

Post by fredigertsch »

Thank you Klaus.
Post Reply