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: FourthWorld, heatherlaine, Klaus, kevinmiller

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

Change the behavior

Post by fredigertsch » Sun Feb 06, 2011 10:31 am

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: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Change the behavior

Post by jmburnod » Sun Feb 06, 2011 12:25 pm

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 » Sun Feb 06, 2011 2:58 pm

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: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Change the behavior

Post by Klaus » Sun Feb 06, 2011 4:29 pm

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 » Tue Feb 08, 2011 9:16 am

Thank you Klaus.

Post Reply