A little help (edit iScoll plugin)

For developers using the Construct 2 Javascript SDK

Post » Mon Aug 15, 2016 5:34 pm

Hello,

With the iScroll Plugin, I try to add the "Truncate." action to remove all lines. To do this I have created an array variable named "All_IDs" in the runtime.js. When I add any line I push the line ID in the "All_IDs" array. Then when I call the function "Truncate" for each item of the array (I use All_IDs.ForEach) to delete line per line.
Like you can see here:
Image
Image

The problem is that when I call the function, the lines of ALL iScroll objects are deleted !

In this capx, when I click on Truncate button, the "iScroll" and "iScorll2" objects are truncated and not only the "iScroll".
Image

Can you help me to solve the problem please ?

Here the capx and the files: https://www.dropbox.com/s/p86wv9gu5oqdc ... e.rar?dl=0
B
17
S
10
G
19
Posts: 140
Reputation: 11,457

Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests