Hello … I can’t get this to work.
Assuming, all is installed etc (I am not getting any errors)
Each time I click my button, the SWFAddress.onChange = function() doesn’t activate which is where the problem lies…
Can someone look at my simple code, and maybe help me out!?
import com.asual.swfaddress.SWFAddress.*;
var posnum:Number = 0;
var loc_ary:Array = new Array("one","two","three");
SWFAddress.onChange = function()
{
//var address_value = SWFAddress.getValue();
trace(SWFAddress.getValue())
switch (loc_ary[posnum])
{
case "one":
s_mc._x = 100;
break;
case "two":
s_mc._x = 300;
break;
case "three":
s_mc._x = 500;
break;
}
}
nxt_mc.onRelease = function()
{
posnum++;trace(posnum);
if(posnum >= loc_ary.length)
{
posnum = 0;
}
SWFAddress.setValue("address /" + loc_ary[posnum]);
}
much appreciated - for something making me very worried why I can’t get working!