There are many ways to do it. I'd script the tween and use a callback like this...
Press > tween close> load movie > tween up You can find docs on the tween engine here... http://laco.wz.cz/tween/ http://www.mosessupposes.com/Fuse/ #include "lmc_tween.as" // var container:MovieClip = createEmptyMovieClip("container", getNextHighestDepth()); var mcLoader:MovieClipLoader = new MovieClipLoader(); mcLoader.addListener(this); // _btn.onPress = function() { animateScreen("close", "file.jpg"); }; // function animateScreen(pos, clp) { // var dur = .5; var closeY = 500; var openTopY = 450; var openBottomY = 550; var ease = "easeInOutExpo"; // if (pos == "close") { var callback = {func:loadImg, args:[clp]}; topBar_mc.tween("_y", closeY, dur, ease); bottomBar_mc.tween("_y", closeY, dur, ease, 0, callback); } else { topBar_mc.tween("_y", openTopY, dur, ease); bottomBar_mc.tween("_y", openBottomY, dur, ease); } } function loadImg(clp) { mcLoader.loadClip(clp, container); } function onLoadInit(mc:MovieClip) { animateScreen("open"); } Good luck -Andy Stone -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marcelo de Moraes Serpa Sent: Friday, January 12, 2007 8:18 PM To: Flashcoders mailing list Subject: [Flashcoders] How to achieve this line "open/close" effect? Hello! I'd like to achieve a masking effect similar to the one present on this template: http://www.templatehelp.com/preset/pr_preview.php?i=10712&pr_code=3Q2P7g93F4 eju93em4J52LUq1hYM59 The two horizontal lines that move vertically to show up the initial background, then they "get together" and start moving in reverse to show the picture gallery. But I'm confused on how to do it... firstly, do you think that it is scripted or it is a timeline-only animation? If it is to be scripted, I think that a mask MovieClip would have to stretch its height to the current line _x position... What do you think? Thanks, Marcelo. _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

