| User | Post | 
                  
                    | 
                        
                          | 11:51 amApril 29, 2009
 |  
                          | astute
 Member |  
                          |  |  
                          |  |  
                          |  |  
                          |  |  
                          | posts 9 |  | 
                        
                          |  |  
                          | 
                              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);
 }
 |  | 
                  
                    | 
                        
                          | 12:44 pmApril 29, 2009
 |  
                          | smonte
 Admin |  
                          |  |  
                          |  |  
                          |  |  
                          |  |  
                          | posts 27 |  | 
                        
                          |  |  
                          | 
                              Post edited 7:45 pm – April 29, 2009 by smonte
 
 Hey, I don't completely understand your problem. I tried your movie and the buttons seem to tween fine without any “locking”. By the way, nice idea with the menu  Regards, smonte ps. Pls highlight your code next time (the “hightlight your code” button is enabled when you have your code selected). 
                                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);
 }
 |  
                          |  |  | 
                  
                    | 
                        
                          | 2:26 pmApril 30, 2009
 |  
                          | astute
 Member |  
                          |  |  
                          |  |  
                          |  |  
                          |  |  
                          | posts 9 |  | 
                        
                          |  |  
                          | 
                              thanks for your liking my menu style (my english not very well) The problem is when I click any button Bounce tween stops working It stops when external movie then moving buttons stops on the center of stage or on the its way My computer or browser can cause this? I have tried another browser or computer but again it stops |  | 
                  
                    | 
                        
                          | 12:48 amMay 1, 2009
 |  
                          | smonte
 Admin |  
                          |  |  
                          |  |  
                          |  |  
                          |  |  
                          | posts 27 |  | 
                        
                          |  |  
                          | 
                              Post edited 7:48 am – May 1, 2009 by smontePost edited 7:49 am – May 1, 2009 by smonte
 
 
 It sounds like your tweens are carbage collected by flash. You could try to add all your tweens to an array and see if that works. So create an array (not inside any function) and then add your tweens in that array. Like this: 
                                var tweens:Array = new Array(); function about_olayFNC(e:Event) { var tween1 = new Tween(about_olay, “y”, Bounce.easeOut, about_olay.y, 31, 2, true);var tween2 = new Tween(works_olay, “y”, Bounce.easeOut, works_olay.y, 501.5, 2, true);
 var tween3 = new Tween(contact_olay, “y”, Bounce.easeOut, contact_olay.y, 501.5, 2, true);
 tweens.push(tween1); tweens.push(tween1); tweens.push(tween1); } And so on.. Regards, smonte ps. You could also use tweenmax  |  
                          |  |  | 
                  
                    | 
                        
                          | 11:49 amMay 2, 2009
 |  
                          | astute
 Member |  
                          |  |  
                          |  |  
                          |  |  
                          |  |  
                          | posts 9 |  | 
                        
                          |  |  
                          | 
                              thanks for that its working now without any problem  thank you |  | 
                  
                    | 
                        
                          | 9:38 pmJune 6, 2009
 |  
                          | ujaraju
 New Member |  
                          |  |  
                          |  |  
                          |  |  
                          |  |  
                          | posts 2 |  | 
                        
                          |  |  
                          | 
                              
                                astute said: thanks for that its working now without any problem  
 thank you 
 I am also stucked with the same problem but I did not get it how to impliment the array could you please shed some more light.. sorry i am very new in as3. |  |