I want to generate openurl dynamically. As below.
for(set(i,0), i LT gallery[%1].img.count, inc(i),
txtadd(hname, get(gallery[%1].img[get(i)].name),'_home');
txtadd(ihome, get(gallery[%1].img[get(i)].home),'');
addlayer(get(hname));
set(layer[get(hname)].url,'img/bt_link.png');
set(layer[get(hname)].parent, gallery_scrollarea);
set(layer[get(hname)].edge, center);
set(layer[get(hname)].align, left);
set(layer[get(hname)].crop, '0|0|90|30');
set(layer[get(hname)].onovercrop, '90|0|90|30');
set(layer[get(hname)].ondowncrop, '90|0|90|30');
mul(layer[get(hname)].x, stagewidth, i);
add(layer[get(hname)].x, 245);
set(layer[get(hname)].y, -280);
set(layer[get(hname)].onclick, openurl('get(ihome)',_blank));
div(layer[get(hname)].ox, stagewidth, 2);
trace('home=',get(ihome));
);
as above openurl('get(ihome)',_blank)); Can't use it dynamically?
someone please help