Hi everyone
I have a problem with easing. When I call external swfs moving buttons locks why?
here the example–>
http://www.semihdelil.com/test…..index.html
here the code—>
import fl.transitions.Tween;
import fl.transitions.easing.*;
var imageLoader:Loader = new Loader();
var imageRequestAbout:URLRequest = new URLRequest(“about.swf”);
var imageRequestWorks:URLRequest = new URLRequest(“works.swf”);
var imageRequestContact:URLRequest = new URLRequest(“contact.swf”);
about_olay.addEventListener(MouseEvent.CLICK, about_olayFNC);
about_olay.addEventListener(MouseEvent.CLICK, goAbout);
works_olay.addEventListener(MouseEvent.CLICK, works_olayFNC);
works_olay.addEventListener(MouseEvent.CLICK, goWorks);
contact_olay.addEventListener(MouseEvent.CLICK, contact_olayFNC);
contact_olay.addEventListener(MouseEvent.CLICK, goContact);
function goAbout(e:Event):void {
imageLoader.load(imageRequestAbout);
addChild(imageLoader);
}
function goWorks(e:Event):void {
imageLoader.load(imageRequestWorks);
addChild(imageLoader);
}
function goContact(e:Event):void {
imageLoader.load(imageRequestContact);
addChild(imageLoader);
}
function about_olayFNC(e:Event) {
new Tween(about_olay, “y”, Bounce.easeOut, about_olay.y, 31, 2, true);
new Tween(works_olay, “y”, Bounce.easeOut, works_olay.y, 501.5, 2, true);
new Tween(contact_olay, “y”, Bounce.easeOut, contact_olay.y, 501.5, 2, true);
}
function works_olayFNC(e:Event) {
new Tween(works_olay, “y”, Bounce.easeOut, works_olay.y, 31.5, 2, true);
new Tween(about_olay, “y”, Bounce.easeOut, about_olay.y, 501.5, 2, true);
new Tween(contact_olay, “y”, Bounce.easeOut, contact_olay.y, 501.5, 2, true);
}
function contact_olayFNC(e:Event) {
new Tween(contact_olay, “y”, Bounce.easeOut, contact_olay.y, 31.5, 2, true);
new Tween(about_olay, “y”, Bounce.easeOut, about_olay.y, 501.5, 2, true);
new Tween(works_olay, “y”, Bounce.easeOut, works_olay.y, 501.5, 2, true);
}