Nani Cheri 0 Report post Posted February 9, 2006 I have made a couple of buttons in Flash, but not with the button symbols, but as a movieclip. b1.onRollOver = over;b1.onRollOut = out;b1.buttText.buttonText.text = "HOME"b2.onRollOver = over;b2.onRollOut = out;b2.buttText.buttonText.text = "ABOUT ME"b3.onRollOver = over;b3.onRollOut = out;b3.buttText.buttonText.text = "PORTFOLIO"b4.onRollOver = over;b4.onRollOut = out;b4.buttText.buttonText.text = "NAIL-ART GALLERY"b5.onRollOver = over;b5.onRollOut = out;b5.buttText.buttonText.text = "LINKS"b6.onRollOver = over;b6.onRollOut = out;b6.buttText.buttonText.text = "CONTACT ME"function over() { this.gotoAndPlay(2);}function out() { this.gotoAndPlay(7);} But the problem is that I can't seem to find a way to put this code to those (movieclip)buttons!This code links to external text that will load after clicking on the buttons. on(release) { unloadMovie(_root.content); loadMovie("home.swf",_root.content);} I made those buttons with a tutorial from gotoandlearn.com, but it is not explained how to put a function like above to them. So what I'd like to do, is when I click on one of those buttons I made, I want the movieclip 'content' to go away and replaced by another (swf)movie!Does anyone understand what I mean, and if you do can you help me? Please reply. Thank youYou can see the buttons on my site! http://forums.xisto.com/no_longer_exists/ Share this post Link to post Share on other sites
spy_charly 0 Report post Posted February 12, 2006 hi buddy! well your code:on(release) {unloadMovie(_root.content);loadMovie("home.swf",_root.content);}tells to flash to load the "home.swf" INSIDE the MC so what you need to do is to write either _parent or _root so you can load, make or move OUTSIDE the MC you are actually pressing....if you have still doubts visit my board http://ww1.asb-labs.com/?pid=9POC6B661&bkt=12455 board and post your questions I guarantee to answer :-) Share this post Link to post Share on other sites
Nani Cheri 0 Report post Posted February 13, 2006 HI!I found out what to do to get the result what I wanted with this: b1.onRollOver = over;b1.onRollOut = out;b1.onRelease = home1;b1.buttText.buttonText.text = "HOME"function home1() { unloadMovie(_parent.content); loadMovie("home1.swf",_parent.content);}b2.onRollOver = over;b2.onRollOut = out;b2.onRelease = about;b2.buttText.buttonText.text = "ABOUT ME"function about() { unloadMovie(_parent.content); loadMovie("about.swf",_parent.content);}b3.onRollOver = over;b3.onRollOut = out;b3.onRelease = portfolio;b3.buttText.buttonText.text = "PORTFOLIO"function portfolio() { unloadMovie(_parent.content); loadMovie("portfolio.swf",_parent.content);}b4.onRollOver = over;b4.onRollOut = out;b4.onRelease = nail;b4.buttText.buttonText.text = "NAIL-ART GALLERY"function nail() { unloadMovie(_parent.content); loadMovie("nail.swf",_parent.content);}b5.onRollOver = over;b5.onRollOut = out;b5.onRelease = links;b5.buttText.buttonText.text = "LINKS"function links() { unloadMovie(_parent.content); loadMovie("links.swf",_parent.content);}b6.onRollOver = over;b6.onRollOut = out;b6.onRelease = contact;b6.buttText.buttonText.text = "CONTACT ME"function contact() { unloadMovie(_parent.content); loadMovie("contact.swf",_parent.content);}function over() { this.gotoAndPlay(2);}function out() { this.gotoAndPlay(7);} I just tried something, and then it worked! But I did something different what you said earlier,spy_charly, about _parent!! that was necesary 2! in stead of _root.content, I put _parent.contentBut I have another problem with the content! The dynamic text shows, but the buttons to scroll I made are not. And when Im in the movie where I put the dyynamic content, it does show! you can see it at the site:CLICK HERE for my site hahahaha or maybe I can send my fla file to you? Only if you got time ofcourse, and if other people think they can help me, please reply.. Share this post Link to post Share on other sites