This object is in archive! 
JS for loop in array changes every each time.
Answered
Pls see attached and create more points and see why previous objects also changes color along with newly created object. In global JS pls see script, i have tried so many things i don't what am i doing worng.
It should trigger JS for only newly created object not for previous objects which already created.
means why previous objects changes color , i tried with point size with slider as well by all objects affected whenever new object created.
Pls see attached and suggest solution.
Files:
Test3.ggb
I don't know if anyone on this earth (including me and you) knows what you want.
But how do you want know what you want before you see it?
It worked , after the for loop i removed previous items from the list (unsing shift method) so it can not affect the object in the applet.
If there is any other better solution. pls suggest
Is it possible to add element in the array whenever object is created in the applet???
Hi,
see the attached file
to avoid coloring old objects every time:
pre-find the number of objects before changing - > button 0,
add new objects and click -->button 1
I don't know if anyone on this earth (including me and you) knows what you want.
But how do you want know what you want before you see it?
---
The idea is:
Not the original point him self change. It is a representative/actor showing the animation. In this time the original point is hidden. The actor become 2 parameter: Label/adress of original-point and the color.
This will be expanded later so that any actor (from several) can be selected to do the job. Even later, the instantiation of an actor should be integrated into the add-listener and finally the caption should also be animated by the same actor.
wait some hours.
Good morning,
Now your part is comming.
Pleas read (very attentive!) this thread from here until here.
Answer the following questions (about 2 sentences for 1 question) (please, please !! nothing else or more):
1. What is the goal, what do we want to achieve (without those ideas you also have)?
2. What is the primary problem to be solved? (Note: it's not a Bug, it's a (new) possibility/feature)
Hello GooD MorNinG....!
1. What is the goal, what do we want to achieve (without those ideas you also have)?
A. Goal is to explain point, line and primary geometric concepts with this to students. Point size start from zero to bigger , it convert attention of students to the new creating object in the canvas and it is self explanatory.
2. What is the primary problem to be solved? (Note: it's not a Bug, it's a (new) possibility/feature)
A. I have created too many transition effect with the available resources in GGB. But it required too many sliders and i used too many colors in my projects , it consumes a lot of time. Because it is a part of all my projects so it is better to make this easy. Then i realized that if i make JS code it can be possible to achieve the same with few sliders and few line of code. Color with random color. Dynamic Point size change with few or one slider .
Also it is new learning for me and give me new destination/way to create more useful ideas. which may be difficult or not possible with current features of GGB. Because transition effect is mandatory part to explain something to students. Future like the use jQuery and other useful libraries for this effects.
Sorry about that answer is long because i try to explain it is not useless or waste of time. It is very useful and highly required. Hopefully GGB TEAM will think about it to add these features . Which make GGB software more immersive, interactive.
1) OK
2) not OK
---------------------------new question
3) what must be created/exist, when a new object (for example a point) with animation of his size is to be established?
Example: a script or a user create a new point. The point appears very small and becomes larger for about 1 second, then the size remains constant. To do this animation, what are the objects there must exists.
(correct answer less then 10 words)
sorry, wrong. (both: in terms of content and number of words)
Try again.
Note: if the animation run: what objects must exist.
Comments have been locked on this page!