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
Change the behavior
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Change the behavior
Hi Fredi,
I think the behavior only use the script of the btn you put in reference
Best
Jean-Marc
I think the behavior only use the script of the btn you put in reference
i don't understand the change his Type propertyI plan to change the behavior of an element each time it changes his Type property
Best
Jean-Marc
https://alternatic.ch
-
- Posts: 38
- Joined: Mon Jan 03, 2011 5:42 pm
Re: Change the behavior
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
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
Re: Change the behavior
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
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
-
- Posts: 38
- Joined: Mon Jan 03, 2011 5:42 pm
Re: Change the behavior
Thank you Klaus.