I have a site running AS 2.0 and the lmc Tweener, it is a timeline driven site and SWFAddress and the site work fine.
I tried to use SWFAddress with AS 2.0 and the Google Caurina Tweener and SWFAddress doesnt respond. Both with button clicks or as part of the build function.
Below you can see a sample of the code, I cannot for the life of me figure out why it isnt working, it worked fine on my timeline site.
import com.asual.swfaddress.*;
import caurina.transitions.Tweener;
import caurina.transitions.properties.ColorShortcuts;
ColorShortcuts.init();
SWFAddress.onChange = function() {
var address_value = SWFAddress.getValue();
if(address_value == "") {
workTimer = setInterval(work_openStart, 1500);
}
else if(address_value == "/contact") {
workTimer = setInterval(contact_open, 1500);
}
}
function contact_open() {
SWFAddress.setValue('/contact');
count = 2;
work_btn.enabled = true;
contact_btn.enabled = false;
what_btn.enabled = true;
clearInterval(workTimer);
Tweener.addTween(ex_mc, {_x:Stage.width/2, _y:Stage.height/2, time:1, delay:0.2, transition:"easeOutElastic"});
I am drawing blanks if anyone can help me it would be great as I have run out of ideas.