You are not logged in.

datofz

Beginner

  • "datofz" started this thread

Posts: 19

Location: Lyon, France

  • Send private message

1

Sunday, March 8th 2020, 12:53am

dynamic loadscene from another xml

Hello,

Sorry but i don't understood why my loadscene does'nt work.
all my showlog trace are good...

i call it with a include

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<action  name="myaction" scope="global">

     	for(set(h,0), h LT scene.count, inc(h),
     	addlayer(scene[get(h)].name);

trace('NOM DU LAYER=', get(layer[get(h)].name));

     	set(layer[get(h)].type, image);
     	set(layer[get(h)].url, calc:'%VIEWER%/' + scene[get(h)].thumburl);
     	set(layer[get(h)].width, 200);
     	set(layer[get(h)].height, 100);
     	set(layer[get(h)].align, center);
     	set(layer[get(h)].x, calc(h * 300));
     	set(layer[get(h)].y, 0);
     	set(layer[get(h)].scale, 1);
     	set(layer[get(h)].keep, true);
     	set(layer[get(h)].visible, true);
     	set(layer[get(h)].alpha, 1);
     	set(layer[get(h)].enabled, true);
     	set(layer[get(h)].handcursor, true);
     	set(layer[get(h)].zorder, 3000);

     	txtadd(appelload, 'loadscene(', get(scene[get(h)].name), ',null,MERGE,BLEND(1));');
     	set(layer[get(h)].onclick, loadscene(get(appelload)));

     	);
	</action>

The log say

Source code

1
ERROR: loadscene() - scene "loadscene(entree-canal,null,MERGE,BLEND(1));" not found

have you an idea please ?
thanks a lot,

Damien

2

Sunday, March 8th 2020, 8:41am

copy(layer[get(h)].onclick, appelload);

datofz

Beginner

  • "datofz" started this thread

Posts: 19

Location: Lyon, France

  • Send private message

3

Sunday, March 8th 2020, 8:56am

That's work !
Thanks (very) a lot :)

4

Sunday, March 8th 2020, 1:05pm

you were setting appelload to;

loadscene(loadscene(SCENE,null,MERGE,BLEND(1));)

;-)