Re: [Flashcoders] What's different between _alpha=0 and _visible =flase;
The other major difference is easily shown: Place a movieClip on stage. Give it an onRelease handler: clip.onRelease=function(){trace(Release!);} Test your movie - click on it, and Release! is traced. Set clip._alpha to 0 Test the movie - click on where the clip should be, and Release! is traced. Set clip._visible=false Test the movie - click on where the clip should be, and nothing happens. The clip has effectively been removed from the drawing heirarchy completely. Cheers, Ian On 4/6/06, zikey Han [EMAIL PROTECTED] wrote: I kown that one different between _alpha=0 and _visible =flase. when we load a picture or swf ,like this: this.createEmptyMovieClip(container_mc,0); container_mc.loadMovie(test.jpg); container_mc._alpha =0 ; you can see nothing in the scene.because of ._alpha =0; but if you container_mc_visible=false ; you can see the test.jpg on the scene._visible = false do nothing. i want to kown ,what the other different between them. ___ 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
Re: [Flashcoders] What's different between _alpha=0 and _visible =flase;
same with, hitTest MW - Original Message - From: Ian Thomas [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, April 06, 2006 9:10 AM Subject: Re: [Flashcoders] What's different between _alpha=0 and _visible =flase; The other major difference is easily shown: Place a movieClip on stage. Give it an onRelease handler: clip.onRelease=function(){trace(Release!);} Test your movie - click on it, and Release! is traced. Set clip._alpha to 0 Test the movie - click on where the clip should be, and Release! is traced. Set clip._visible=false Test the movie - click on where the clip should be, and nothing happens. The clip has effectively been removed from the drawing heirarchy completely. Cheers, Ian On 4/6/06, zikey Han [EMAIL PROTECTED] wrote: I kown that one different between _alpha=0 and _visible =flase. when we load a picture or swf ,like this: this.createEmptyMovieClip(container_mc,0); container_mc.loadMovie(test.jpg); container_mc._alpha =0 ; you can see nothing in the scene.because of ._alpha =0; but if you container_mc_visible=false ; you can see the test.jpg on the scene._visible = false do nothing. i want to kown ,what the other different between them. ___ 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
Re: [Flashcoders] What's different between _alpha=0 and _visible =flase;
i have a related question what is the difference between - setting _visible = false on a clip and - structuring the flash movie so i go to a frame where that same movieclip is removed. see what i mean? i always have a pretty massice _root.content_mc with, say, intro_mc, section1_mc, section2_mc inside it. i always set _visible = false on all the clips i'm not currently using, but it's sometimes tempting to have multiple frames in _root.content_mc, one frame for intro_mc, one for section1_mc etc. to save cpu. does anyone know the difference between _visible = false and going to a frame that hasn't got the clip. ps. i have noticed how intro_mc._y = - 2000 together with intro_mc._visible = false often gives better performance when showing for instance section1_mc. but probably attachMovie and removeMovieClip is the best way to go at this problem, in order to get the best performance? thanks, kalle On 4/6/06, Ian Thomas [EMAIL PROTECTED] wrote: The other major difference is easily shown: Place a movieClip on stage. Give it an onRelease handler: clip.onRelease=function(){trace(Release!);} Test your movie - click on it, and Release! is traced. Set clip._alpha to 0 Test the movie - click on where the clip should be, and Release! is traced. Set clip._visible=false Test the movie - click on where the clip should be, and nothing happens. The clip has effectively been removed from the drawing heirarchy completely. Cheers, Ian On 4/6/06, zikey Han [EMAIL PROTECTED] wrote: I kown that one different between _alpha=0 and _visible =flase. when we load a picture or swf ,like this: this.createEmptyMovieClip(container_mc,0); container_mc.loadMovie(test.jpg); container_mc._alpha =0 ; you can see nothing in the scene.because of ._alpha =0; but if you container_mc_visible=false ; you can see the test.jpg on the scene._visible = false do nothing. i want to kown ,what the other different between them. ___ 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 -- inlovewith.com inlovewith ltd. kalle thyselius linnégatan 76, stockholm, sweden + 46 707 602 600 inlovewith you ___ 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
Re: [Flashcoders] What's different between _alpha=0 and _visible =flase;
when only setting _visible to flase., all other belongings are accessible, all properties methods if it is forinstance subClass of MovieClip if on frame where the MovieClip is not present, nothing of its property is accessible so big difference, visualy almost none, though MW - Original Message - From: Kalle Thyselius, Inlovewith [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, April 06, 2006 10:20 AM Subject: Re: [Flashcoders] What's different between _alpha=0 and _visible =flase; i have a related question what is the difference between - setting _visible = false on a clip and - structuring the flash movie so i go to a frame where that same movieclip is removed. see what i mean? i always have a pretty massice _root.content_mc with, say, intro_mc, section1_mc, section2_mc inside it. i always set _visible = false on all the clips i'm not currently using, but it's sometimes tempting to have multiple frames in _root.content_mc, one frame for intro_mc, one for section1_mc etc. to save cpu. does anyone know the difference between _visible = false and going to a frame that hasn't got the clip. ps. i have noticed how intro_mc._y = - 2000 together with intro_mc._visible = false often gives better performance when showing for instance section1_mc. but probably attachMovie and removeMovieClip is the best way to go at this problem, in order to get the best performance? thanks, kalle On 4/6/06, Ian Thomas [EMAIL PROTECTED] wrote: The other major difference is easily shown: Place a movieClip on stage. Give it an onRelease handler: clip.onRelease=function(){trace(Release!);} Test your movie - click on it, and Release! is traced. Set clip._alpha to 0 Test the movie - click on where the clip should be, and Release! is traced. Set clip._visible=false Test the movie - click on where the clip should be, and nothing happens. The clip has effectively been removed from the drawing heirarchy completely. Cheers, Ian On 4/6/06, zikey Han [EMAIL PROTECTED] wrote: I kown that one different between _alpha=0 and _visible =flase. when we load a picture or swf ,like this: this.createEmptyMovieClip(container_mc,0); container_mc.loadMovie(test.jpg); container_mc._alpha =0 ; you can see nothing in the scene.because of ._alpha =0; but if you container_mc_visible=false ; you can see the test.jpg on the scene._visible = false do nothing. i want to kown ,what the other different between them. ___ 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 -- inlovewith.com inlovewith ltd. kalle thyselius linnégatan 76, stockholm, sweden + 46 707 602 600 inlovewith you ___ 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
Re: [Flashcoders] What's different between _alpha=0 and _visible =flase;
yeah sure, but performance wise, how much slower could _visible = false be? if on frame where the MovieClip is not present, nothing of its property is accessible yes, but does that mean that everything else can get more attantion from cpu, graphics etc? thanks, kalle On 4/6/06, Martin Weiser [EMAIL PROTECTED] wrote: when only setting _visible to flase., all other belongings are accessible, all properties methods if it is forinstance subClass of MovieClip if on frame where the MovieClip is not present, nothing of its property is accessible so big difference, visualy almost none, though MW - Original Message - From: Kalle Thyselius, Inlovewith [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, April 06, 2006 10:20 AM Subject: Re: [Flashcoders] What's different between _alpha=0 and _visible =flase; i have a related question what is the difference between - setting _visible = false on a clip and - structuring the flash movie so i go to a frame where that same movieclip is removed. see what i mean? i always have a pretty massice _root.content_mc with, say, intro_mc, section1_mc, section2_mc inside it. i always set _visible = false on all the clips i'm not currently using, but it's sometimes tempting to have multiple frames in _root.content_mc, one frame for intro_mc, one for section1_mc etc. to save cpu. does anyone know the difference between _visible = false and going to a frame that hasn't got the clip. ps. i have noticed how intro_mc._y = - 2000 together with intro_mc._visible = false often gives better performance when showing for instance section1_mc. but probably attachMovie and removeMovieClip is the best way to go at this problem, in order to get the best performance? thanks, kalle On 4/6/06, Ian Thomas [EMAIL PROTECTED] wrote: The other major difference is easily shown: Place a movieClip on stage. Give it an onRelease handler: clip.onRelease=function(){trace(Release!);} Test your movie - click on it, and Release! is traced. Set clip._alpha to 0 Test the movie - click on where the clip should be, and Release! is traced. Set clip._visible=false Test the movie - click on where the clip should be, and nothing happens. The clip has effectively been removed from the drawing heirarchy completely. Cheers, Ian On 4/6/06, zikey Han [EMAIL PROTECTED] wrote: I kown that one different between _alpha=0 and _visible =flase. when we load a picture or swf ,like this: this.createEmptyMovieClip(container_mc,0); container_mc.loadMovie(test.jpg); container_mc._alpha =0 ; you can see nothing in the scene.because of ._alpha =0; but if you container_mc_visible=false ; you can see the test.jpg on the scene._visible = false do nothing. i want to kown ,what the other different between them. ___ 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 -- inlovewith.com inlovewith ltd. kalle thyselius linnégatan 76, stockholm, sweden + 46 707 602 600 inlovewith you ___ 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 -- inlovewith.com inlovewith ltd. kalle thyselius linnégatan 76, stockholm, sweden + 46 707 602 600 inlovewith you ___ 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
Re: [Flashcoders] What's different between _alpha=0 and _visible =flase;
I've found that Attach and Removing Movieclips runs slower than hiding things off stage. But the hassle is only worth it when working on performance critical work, such as games. Also, _visible=false still referencing the object more so when on- screen than off. There's a load of information in the mammoth forum post: http://www.flashkit.com/board/showthread.php?t=434875 On 6 Apr 2006, at 09:20, Kalle Thyselius, Inlovewith wrote: but probably attachMovie and removeMovieClip is the best way to go at this problem, in order to get the best performance? Dan Efergan [EMAIL PROTECTED] ___ 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] What's different between _alpha=0 and _visible =flase;
I kown that one different between _alpha=0 and _visible =flase. when we load a picture or swf ,like this: this.createEmptyMovieClip(container_mc,0); container_mc.loadMovie(test.jpg); container_mc._alpha =0 ; you can see nothing in the scene.because of ._alpha =0; but if you container_mc_visible=false ; you can see the test.jpg on the scene._visible = false do nothing. i want to kown ,what the other different between them. -- 亲爱的朋友,祝你天天快了! http://www.flashpixy.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
Re: [Flashcoders] What's different between _alpha=0 and _visible =flase;
MovieClip's have security sandboxes. As such, you are allowed to do certain commands and access on MovieClip's only if that MovieClip's contents reside in your approved security sandbox. SWF's, JPEG's, FLV's, and now PNG's and GIF's all have abide by these rules. My guess is, _alpha actually tells the container MovieClip, in this case _root, or container._parent, to blit the contents on it's display list whereas visible actually tells the MovieClip, container to render it's contents invisible. One deals with the parent, one deals with the movieclip itself. Just guessing; I didn't write the Flash Player, hehe! Additionally, you can only set some properties of MovieClip's until their content has loaded AND taken 1 frame to initialize. Since you are setting the visible property before the content is done, it'll adopt the new security sandbox settings when you load it. If you waited 2 frames after the image is done loading, I bet it'd turn invisible. - Original Message - From: zikey Han [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, April 06, 2006 1:37 AM Subject: [Flashcoders] What's different between _alpha=0 and _visible =flase; I kown that one different between _alpha=0 and _visible =flase. when we load a picture or swf ,like this: this.createEmptyMovieClip(container_mc,0); container_mc.loadMovie(test.jpg); container_mc._alpha =0 ; you can see nothing in the scene.because of ._alpha =0; but if you container_mc_visible=false ; you can see the test.jpg on the scene._visible = false do nothing. i want to kown ,what the other different between them. -- 亲爱的朋友,祝你天天快了! http://www.flashpixy.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 ___ 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