Thank you! I will give it a shot!
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Thursday, June 14, 2007 2:41 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Problems with my Resume button Haven't looked at all the code, but it sounds like you're making a movieclip invisible while still loading content into that movieclip. This will make the movieclip visible as soon as the content has loaded. I mentioned this a few days ago. When loading assets into a movieclip, everything inside that movieclip will go *poof*. This includes the movieclips properties being reset. For instance, with the following code you'd expect the loaded image to be invisible, well.. it isn't ;-) this.createEmptyMovieClip("img_mc", this.getNextHighestDepth()); this.img_mc._visible = false; this.img_mc.loadMovie("leaves.jpg"); You should look into using the MovieClipLoader class and listen for events like onLoadInit() The following will work and make the movieclip invisible as soon as the image has loaded: var mcl:MovieClipLoader; function onLoadInit(t:MovieClip){ trace("onLoadInit: "+t); t._visible = false; } this.createEmptyMovieClip("img_mc", this.getNextHighestDepth()); this.mcl = new MovieClipLoader() this.mcl.addListener(this); this.mcl.loadClip("leaves.jpg", this.img_mc) regards, Muzak ----- Original Message ----- From: "Lord, Susan Ms. (CONTR)" <[EMAIL PROTECTED]> To: <flashcoders@chattyfig.figleaf.com> Sent: Thursday, June 14, 2007 7:55 PM Subject: [Flashcoders] Problems with my Resume button Hello, I posted this to newbies yesterday and didn't receive a response. Sorry for the double post, newbies! I have an strange problem. I am developing a WBT where I have a shell that is calling subfiles. On the shell I have pause replay and resume, which generally works fine. The only time it gets confused is when the subfile calls another file (I have a subfile that brings up review pages). The pause and replay work great, but the resume is having problems. If I click replay before going to the review link within the subfile, I have issues with the visibility property of reviewPiece_mc. The issue only happens if I click the replay button before clicking a link within the subfile. For instance, in the main file I click replay to replay the current swf (the subfile). Then I click the link within the subfile, test_btn, to see the review. Test_btn brings up L1T1T140.swf, as it is supposed to. When I click the return_btn, the visibility of the reviewPiece is set to false (reviewPiece_mc._visible = false;). When I trace it, flash says, yes, it is false, but, for some reason, when it is still visible. Now, this ONLY happens when I click replay from my main file before going to the link in the subfile. If I don't click replay, then everything works fine. Here is the code in my replay button: Any ideas on what I could be doing wrong? Let me know if you need more details of if what I wrote is not making sense. Thanks in advance for your help! Susan _______________________________________________ Flashcoders@chattyfig.figleaf.com 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 _______________________________________________ Flashcoders@chattyfig.figleaf.com 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