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;
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
[Flashcoders] passing variables to a popup using javascript instead of php/asp
hi, just found a way to send variables to a pop up (or similar) without having to use a server side language like php or asp. it's a java script property called document.location.search and is The sub string that follows the question mark is the query string or form data. example: example getURL in the mother swf: getURL('javascript:OpenWin(popup.html?someVar=' + someVar + ', 700, 400);') and the code inside popup.html var fo = new FlashObject(main.swf + document.location.search, fotester, 700, 400, 7); as i have been using php like a sucker all these years, this can make it simpler for me to work. perhaps it can help someone else. kalle -- www.inlovewith.com inlovewith ltd. kalle thyselius linnégatan 76, stockholm, sweden + 46 707 602 600 inlovewith you ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ConvolutionFilter performance
powerbook 15, 1.25 GHz, 1GB RAM: blur filter: 13 745 convolution 3x3: 44 437 convolution 5x5 : 119 497 no filter : 7 216 kalle On 1/31/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Blur: 5944 convolution 3x3: 5641 convolution 5x5: 29932 no filter: 5646 also Win XP, 3GHz (northwood), 512MB RAM - intel 915 GAV motherboard w/built in crap vga -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Ian Thomas Verzonden: dinsdag 31 januari 2006 14:48 Aan: Flashcoders mailing list Onderwerp: Re: [Flashcoders] ConvolutionFilter performance Hrm. I get: blur filter time : 11032 convolution 3x3: 10144 convolution 5x5: 37781 no filter : 7510 Win XP, 3GHz, 512MB RAM I wonder if it's a graphics card/hardware acceleration thing. (I have a rubbish graphics card.) Ian On 1/31/06, Mike Mountain [EMAIL PROTECTED] wrote: so, please wrote the times, its really strange Blur: 5622 Conv 3x3: 5625 Conv 5x5: 14453 None: 5640 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- inlovewith.com inlovewith ltd. kalle thyselius linnégatan 76, stockholm, sweden + 46 707 602 600 inlovewith you ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Caret position coords
i remember doing this a few years ago, using — a loop (filling the textfield) and autoSize=true to determine if there was a line break (you could determine this in other ways) — and if _height old_height in the loop, do — letterCurrentY += LINE_HEIGHT then use getTextExtent() to get _x. i remember there was some margins and stuff inside the text field to take into account, but it worked. the problem is it can be hard to find out the constant LINE_HEIGHT. good luck, kalle On 1/2/06, Michael Bedar [EMAIL PROTECTED] wrote: To answer the original question - there is no direct way to do this, although you can use the text-extent to get the x offset of the caret fairly easily in a single line textfield. On Jan 2, 2006, at 9:47 AM, Andreas Rønning wrote: Is there a decent way of getting the _x / _y position of a caret in a text box? Somehow compare the x/y of the textfield with the caret index..? Have a hard time getting an exact value from this. - Andreas ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- inlovewith.com inlovewith ltd. kalle thyselius linnégatan 76, stockholm, sweden + 46 707 602 600 inlovewith you ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] detecting when mouse goes outside of the flash
i did something in javascript that sent the data into flash onMouseMove, which worked very well. especially if the flash movie is on a fixed position. i can't seem to find the code now though. kalle On 11/23/05, Marc Hoffman [EMAIL PROTECTED] wrote: A 1-pixel wide area is not likely to capture a rollOver. Here's a .swf to test how wide a button needs to be to capture a rollOver: http://www.dartfrogmedia.com/buttonTest - Marc At 10:42 AM 11/23/2005, you wrote: I'd suggest to use 1-pixel frame (maybe invisible) movieclip. Even better - 2 such frames,- say, 1 and 2 px from the edge of the stage. Then it can work as follows: 1) If mouse crosses one of frames, check (setInterval or onEnterFrame) if it'll cross other right after this. Then: 2) If inner-then-outer = likely it goes outside; if outer-then-inner = likely it came back. 3) You can use vars (boolean) like hasCrossedInner etc. Hope this can help. -- Best regards, Gregory_GOusable http://GOusable.com Flash components development. Usability services. At 10:10 AM 11/23/2005, Martin Klasson wrote: Hi coders. This has been up before, and I have done some own tests and searched the archives as well. But I can't find the solution, if there is any. I want a certain thing to happen in my flash when the mouse moves outside flash. Since the _xmouse/_ymouse stops updating when dragged outside you cant rely on them (they do work WHEN mouse is pressed and dragged out from the swf, but that is of course not a solution) I have also tried to add a big 'button' which has onRollOut/onDragOut attached to it, but the problem is that button-events above it will disable the underlying one. So what I know of there is no solution to this problem, but probably some decent hacks? I am not interested in a solution which requires code in the html-page or so, but if you have such one I would like to know about it as well. But mainly I wish to know a solution in which flash internally can say if the mouse-cursor is outside the flash in the html-page. Thanks Coders / martin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- inlovewith.com inlovewith ltd. kalle thyselius linnégatan 76, stockholm, sweden + 46 707 602 600 inlovewith you ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders