I have a transparent box which slides along the navigation bar to indicate where you are. When the Contact button is pressed I want the box to slide to it, which works. However the contact button also telling a movieClip to load an external swf. The navigation slider works on its own but as soon as I tell it to load the external swf the box gets stuck half way.
How do I get the box to finish moving to the x co-ordinate and THEN load the swf?
import fl.transitions.Tween;import fl.transitions.easing.*;var boxMovieHome:Point = new Point(); var myTween:Boolean = false;muttonheadContact.addEventListener(MouseEvent.CLICK, slidetoContact);function slidetoContact(mevt:MouseEvent):void{ var myTween:Tween = new Tween(box, "x", Strong.easeOut, box.x, 379.9, .2, true ); loader.gotoAndStop("contact");}
function handleReset(e:TweenEvent):void {
loader.gotoAndStop("contact");
}
but make sure to use the right import for the TweenEvent.
import fl.transitions.TweenEvent;
rp
0
Featured Post
Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.
Sometimes you know that one object has a specific child in it, but you can't find the child.
This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons. My partner had created the toolbar usi…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to select the video input device.
Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.