but I want to send action msgs to the same widget, then I done this (some friend of mine helps me)
Each "case" are other orders that I send from main widget to the remote widget trough "msgstring".
The default action is below, at bottom, in red.
function widgetOnMsg(MsgString)
{
var posi = 99
var nom = "nameguy"
var subnom = "titlespeech"
switch (MsgString)
{
case "editlower":
layer1.ScaleTo(0.5,0.5,1,0,2,9);
widget.top = 350;
widget.Left = 30;
break;
case "putlower":
layer1.ScaleTo(1,1,1,0,2,9);
widget.top = 1000;
widget.Left = 1800;
break;
case "downname":
text7.Font.Size = text7.Font.Size -2;
break;
case "upname":
text7.Font.Size = text7.Font.Size +2;
break;
case "zoom1":
layer1.ScaleTo(0.5,0.5,1,0,2,9);
break;
case "zoom2":
layer1.ScaleTo(0.7,0.7,1,0,2,9);
break;
case "zoom3":
layer1.ScaleTo(2,2,1,0,2,9);
break;
case "uptitle":
Titulo.Font.Size = Titulo.Font.Size +2;
break;
case "downtitle":
Titulo.Font.Size = Titulo.Font.Size -2;
break;
case "lowerout":
image4.ScaleTo(1,1,1,0,2,9);
image4.MoveTo(20,22,2,1,9);
image1.moveTo(-1280,0,2,0.5,6);
logo.moveTo(-310,0,2,0.5,9);
sleep (500);
break;
case "lowerin":
sleep(500);
logo.moveTo(-60,0,1,1,8);
sleep (400);
image1.moveTo(88,0,1,1,8);
sleep(500);
image4.ScaleTo(1.7,1.7,2,0,1,9);
image4.MoveTo(-140,22,1,1,9);
break;
default:
posi = MsgString.indexOf(";")
nom = MsgString.substring(0,posi) // this "substring" is for send some part of the text to another place (to "title.text")
subnom = MsgString.substring(posi +1,MsgString.length)
text7.text = nom;
title.text = subnom;
break;
}
}Statistics: Posted by Armando — October 10th, 2013, 5:56 am
]]>