[Flashcoders] Firefox 3 and adblock problems
came across this on digg and thought you guys might be interested http://www.asfusion.com/blog/entry/firefox-3-adblock-disaster ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] avoid red-eye effect library in photographs made in actionscript - possible?
Hi, is possible the subject? Is there any library/algorithm to avoid the red eye effect in a photograph made in actionscript? I'm working on AIR, so access to file system is covered. If not, has any of you tried some library/solution? Any help/link/idea is welcome. I'm making my research on this but can't find anything.. Regards _ Claudio M. E. Bastos Iorio http://www.blumer.com.ar ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] removeChild madness
I know there's a lot written about the Garbage Collection, and removing assets in AS3... I'm trying to get my hands around it, but I'm still strugling ;) A simple example: I'm adding a MovieClip from the library, and I'm removing it as well, like a toggle. The MovieClip contains the System.totalMemory property. If I keep toggling the MC on and of... the memory keeps going up... I'm destroying the MC and removing it from the displayList... But it's not cleared from the memory. What Am I missing? ToggleCode: private function toggleDebug() :void { var dw:debugWindow_lib = getChildByName('debugWindow') as debugWindow_lib; if (dw == null ) { var debugWindow:MovieClip = new debugWindow_lib(); debugWindow.name = debugWindow; addChild(debugWindow); } else { dw.destroy(); removeChild(dw); } } Class public class debugWindow_lib extends MovieClip { public function debugWindow_lib() { addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true); } private function onEnterFrame( e :Event ) :void { var tM:Number = System.totalMemory / 1024; totalMemory.text = tM.toString(); } public function destroy() { removeEventListener(Event.ENTER_FRAME, onEnterFrame); } } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] FLA/SWF TO FLV
I have a flash animation that I need to convert to FLV. How should I proceed for best results? Should I convert SWF to FLV? I tried the MagicSwf2AVI, but the cropping was weird and the FLV quality was poor. Maybe because they are using poor encoder... Perhaps another approach... Should I export from Flash? Picture sequence? AVI with what codec? What should I use to import sequence or AVI to and export to FLV? Sorenson squeeze seemed to be a bad choice for working with picture sequences... Thanks, Elia ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] removeChild madness
I'm not sure but I think you don't correctly remove the onEnterFrame Event. As you use the weakReference you miss the false in the remove method, you should remove it that way: removeEventListener(Event.ENTER_FRAME, onEnterFrame, false); If this doesn't solve your problem, I usually set the instance to null after a remove: removeChild(dw); dw = null; I hope it helps. Romu www.soundstep.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sander Schuurman Sent: 09 September 2008 12:18 To: Flash Coders List Subject: [Flashcoders] removeChild madness I know there's a lot written about the Garbage Collection, and removing assets in AS3... I'm trying to get my hands around it, but I'm still strugling ;) A simple example: I'm adding a MovieClip from the library, and I'm removing it as well, like a toggle. The MovieClip contains the System.totalMemory property. If I keep toggling the MC on and of... the memory keeps going up... I'm destroying the MC and removing it from the displayList... But it's not cleared from the memory. What Am I missing? ToggleCode: private function toggleDebug() :void { var dw:debugWindow_lib = getChildByName('debugWindow') as debugWindow_lib; if (dw == null ) { var debugWindow:MovieClip = new debugWindow_lib(); debugWindow.name = debugWindow; addChild(debugWindow); } else { dw.destroy(); removeChild(dw); } } Class public class debugWindow_lib extends MovieClip { public function debugWindow_lib() { addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true); } private function onEnterFrame( e :Event ) :void { var tM:Number = System.totalMemory / 1024; totalMemory.text = tM.toString(); } public function destroy() { removeEventListener(Event.ENTER_FRAME, onEnterFrame); } } ___ 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] TextArea class properties
I have a TexrArea I am creating via: mx.controls.TextArea I am trying to find a way to make it so the text is not selectable - when I select some text I get a green border around the textarea - I would like to get that to not show up and I am thinking that if they can not select the text it will not show up... any ideas? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] TextArea class properties
Have you tried selectable = false? Jason Merrill Bank of America Enterprise Technology Global Risk LLD Instructional Technology Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog subscribe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] TextArea class properties
Yeah - didn't seem to affect anything -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, September 09, 2008 12:06 PM To: Flash Coders List Subject: RE: [Flashcoders] TextArea class properties Have you tried selectable = false? Jason Merrill Bank of America Enterprise Technology Global Risk LLD Instructional Technology Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog subscribe. ___ 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
Re: [Flashcoders] TextArea class properties
Sounds like its a focus UI thing. You may need to turn that bit off. Eric On Tue, Sep 9, 2008 at 12:09 PM, Lehr, Theodore M (N-SGIS) [EMAIL PROTECTED] wrote: Yeah - didn't seem to affect anything -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, September 09, 2008 12:06 PM To: Flash Coders List Subject: RE: [Flashcoders] TextArea class properties Have you tried selectable = false? Jason Merrill Bank of America Enterprise Technology Global Risk LLD Instructional Technology Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog subscribe. ___ 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
Re: [Flashcoders] TextArea class properties
On Sep 9, 2008, at 12:05 PM, Merrill, Jason wrote: Have you tried selectable = false? I think it might be: textAreaInstance.enabled = false; Getting rid of the focus rect is generally a separate issue though, but when the component 'enabled' property is set to false, the focus rect shouldn't show. - jon ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] TextArea class properties
Beauty - this works - but it is graying out my text - how can I maintain the same text color when it is disabled... is there a style that is applicable? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jon Bradley Sent: Tuesday, September 09, 2008 12:35 PM To: Flash Coders List Subject: Re: [Flashcoders] TextArea class properties On Sep 9, 2008, at 12:05 PM, Merrill, Jason wrote: Have you tried selectable = false? I think it might be: textAreaInstance.enabled = false; Getting rid of the focus rect is generally a separate issue though, but when the component 'enabled' property is set to false, the focus rect shouldn't show. - jon ___ 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] AS3 dynamic text fields and img
I have an AS3 project where an icon is supposed to follow the text in a dynamic, multi-line text field. Right now, I'm appending it as an img tag at the end of the text. My problem is that it seems AS3 is always bumping the img down to a new line unless it's the first item in the string. No amount of css or parameter settings seem to have any effect. Does anyone know any way around this other than calculating the text length and appending the icon clip afterwards? Am I just missing something obvious? Any help would be greatly appreciated. Jessica ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] TextArea class properties
Try the style 'disabledColor'. The docs are here: http://livedocs.adobe.com/flex/3/langref/mx/controls/TextArea.html Ian On Tue, Sep 9, 2008 at 5:41 PM, Lehr, Theodore M (N-SGIS) [EMAIL PROTECTED] wrote: Beauty - this works - but it is graying out my text - how can I maintain the same text color when it is disabled... is there a style that is applicable? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jon Bradley Sent: Tuesday, September 09, 2008 12:35 PM To: Flash Coders List Subject: Re: [Flashcoders] TextArea class properties On Sep 9, 2008, at 12:05 PM, Merrill, Jason wrote: Have you tried selectable = false? I think it might be: textAreaInstance.enabled = false; Getting rid of the focus rect is generally a separate issue though, but when the component 'enabled' property is set to false, the focus rect shouldn't show. - jon ___ 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
Re: [Flashcoders] TextArea class properties
Sounds like you need to disable the focusRect thing in addition to .selectable = false; On Tue, Sep 9, 2008 at 12:41 PM, Lehr, Theodore M (N-SGIS) [EMAIL PROTECTED] wrote: Beauty - this works - but it is graying out my text - how can I maintain the same text color when it is disabled... is there a style that is applicable? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jon Bradley Sent: Tuesday, September 09, 2008 12:35 PM To: Flash Coders List Subject: Re: [Flashcoders] TextArea class properties On Sep 9, 2008, at 12:05 PM, Merrill, Jason wrote: Have you tried selectable = false? I think it might be: textAreaInstance.enabled = false; Getting rid of the focus rect is generally a separate issue though, but when the component 'enabled' property is set to false, the focus rect shouldn't show. - jon ___ 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
RE: [Flashcoders] TextArea class properties
Beauty - thanks all -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Tuesday, September 09, 2008 12:48 PM To: Flash Coders List Subject: Re: [Flashcoders] TextArea class properties Try the style 'disabledColor'. The docs are here: http://livedocs.adobe.com/flex/3/langref/mx/controls/TextArea.html Ian On Tue, Sep 9, 2008 at 5:41 PM, Lehr, Theodore M (N-SGIS) [EMAIL PROTECTED] wrote: Beauty - this works - but it is graying out my text - how can I maintain the same text color when it is disabled... is there a style that is applicable? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jon Bradley Sent: Tuesday, September 09, 2008 12:35 PM To: Flash Coders List Subject: Re: [Flashcoders] TextArea class properties On Sep 9, 2008, at 12:05 PM, Merrill, Jason wrote: Have you tried selectable = false? I think it might be: textAreaInstance.enabled = false; Getting rid of the focus rect is generally a separate issue though, but when the component 'enabled' property is set to false, the focus rect shouldn't show. - jon ___ 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 dynamic text fields and img
hmmm, have you tried: textFieldName.text += img... if that is not working, then try building it all in one sentence: imgAtEnd = img... segment1 = some value + imgAtEnd; //segment2 = same as segment 1 and 3 and 4 only with new different values textFieldName.text = segment1 + segment2 + segment3 + segment4; Maybe I'm over simplifying though... :P Jessica Criscione wrote: I have an AS3 project where an icon is supposed to follow the text in a dynamic, multi-line text field. Right now, I'm appending it as an img tag at the end of the text. My problem is that it seems AS3 is always bumping the img down to a new line unless it's the first item in the string. No amount of css or parameter settings seem to have any effect. Does anyone know any way around this other than calculating the text length and appending the icon clip afterwards? Am I just missing something obvious? Any help would be greatly appreciated. Jessica ___ 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] getting loader to work with security policy...
I'm having some diffuculty getting a loader object to call a php script that puts some data into the database (mysql) and returns a string. I placed a crossdomain.xml doc on the website at the level of the .swf. but can't seem to verify whether the policy doc is loaded or not. In AS3 do I have to do something like: import flash.security.* to enable the code: var loader:URLLoader = new URLLoader(); loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR,securityErrorListener); Security.loadPolicyFile(http://www.boyd-speer.com/autoinfo/Irish/src/crossdomain.xml;); loader.addEventListener(Event.COMPLETE,loadcomplete); loader.load(request); function loadcomplete(evt:Event):void { fscommand(loadcompleted...); ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] getting loader to work with security policy...
Hi Boyd, Yes, you'll need to do import flash.system.Security; to use the loadPolicyFile method. Also, in your crossdomain.xml, you'll need to include allow-access-from domain=www.boyd-speer.com/, or allow-access-from domain=*.boyd-speer.com/ The way it is coded now will only allow the specific domain, http://boyd-speer.com. Any differences to that (www, dev, etc.) will cause a mismatch and the domain will not be allowed. Hth, Bob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of BOYD SPEER Sent: Tuesday, September 09, 2008 11:24 AM To: Flash Coders List Subject: [Flashcoders] getting loader to work with security policy... I'm having some diffuculty getting a loader object to call a php script that puts some data into the database (mysql) and returns a string. I placed a crossdomain.xml doc on the website at the level of the .swf. but can't seem to verify whether the policy doc is loaded or not. In AS3 do I have to do something like: import flash.security.* to enable the code: var loader:URLLoader = new URLLoader(); loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR,securityErrorListe ner); Security.loadPolicyFile(http://www.boyd-speer.com/autoinfo/Irish/src/crossd omain.xml); loader.addEventListener(Event.COMPLETE,loadcomplete); loader.load(request); function loadcomplete(evt:Event):void { fscommand(loadcompleted...); ___ 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
Re: [Flashcoders] getting loader to work with security policy...
Maybe I'm misreading something, but placing a crossdomain policy file in boyd-speer.com to allow access from boyd-speer.com makes not much sense to me... The crossdomain file has to be placed in the target host, i.e. the server that holds the php file. It says, let any swf server from this domain access this host. So, if you have your swf in, say, www.swfdomain.com and want to access www.phpdomain.com/script.php, you have to place your crossdomain.xml in phpdomain.com, granting access to, at least, www.swfdomain.com. By the way, if you can put the file crossdomain file at the public root level of the target host, you don't need to explicitly load the policy file (the player will look up for it there if you make a crossdomain call and don't specify a policy file). Cheers Juan Pablo Califano 2008/9/9, Robert Leisle [EMAIL PROTECTED]: Hi Boyd, Yes, you'll need to do import flash.system.Security; to use the loadPolicyFile method. Also, in your crossdomain.xml, you'll need to include allow-access-from domain=www.boyd-speer.com/, or allow-access-from domain=*.boyd-speer.com/ The way it is coded now will only allow the specific domain, http://boyd-speer.com. Any differences to that (www, dev, etc.) will cause a mismatch and the domain will not be allowed. Hth, Bob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of BOYD SPEER Sent: Tuesday, September 09, 2008 11:24 AM To: Flash Coders List Subject: [Flashcoders] getting loader to work with security policy... I'm having some diffuculty getting a loader object to call a php script that puts some data into the database (mysql) and returns a string. I placed a crossdomain.xml doc on the website at the level of the .swf. but can't seem to verify whether the policy doc is loaded or not. In AS3 do I have to do something like: import flash.security.* to enable the code: var loader:URLLoader = new URLLoader(); loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR,securityErrorListe ner); Security.loadPolicyFile( http://www.boyd-speer.com/autoinfo/Irish/src/crossd omain.xml); loader.addEventListener(Event.COMPLETE,loadcomplete); loader.load(request); function loadcomplete(evt:Event):void { fscommand(loadcompleted...); ___ 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
[Flashcoders] Component Issue
Ok - so I have a movie that serves something like a template. Content is populated via creating text fields... removing movies and creating them again It all worked fine until I started using a textarea component... It seems like the inclusion of components is screwing something up where the textfields are not getting removed and content is getting piled on top of each other I know thiis is not much info and I do not have much to go on right now - does this sound familiar with anyone - it only happended sense I started including a component ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Component Issue
Good old Google - it seems that getNextHighestDepth sets things out of reach for removeMovieClip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lehr, Theodore M (N-SGIS) Sent: Tuesday, September 09, 2008 3:24 PM To: Flash Coders List Subject: [Flashcoders] Component Issue Ok - so I have a movie that serves something like a template. Content is populated via creating text fields... removing movies and creating them again It all worked fine until I started using a textarea component... It seems like the inclusion of components is screwing something up where the textfields are not getting removed and content is getting piled on top of each other I know thiis is not much info and I do not have much to go on right now - does this sound familiar with anyone - it only happended sense I started including a component ___ 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
RE: [Flashcoders] Component Issue
Sounds like you're using AS2. When you put the textarea on the stage, try doing it with movieclip.createclassobject() and when you want to get rid of it, use destroyObject(). I just went through some difficulties with the same issue. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] AS3 dynamic text fields and img
Jessica, My problem is that it seems AS3 is always bumping the img down to a new line unless it's the first item in the string. This behavior hasn't changed from earlier versions of AS. Does anyone know any way around this other than calculating the text length and appending the icon clip afterwards? I don't believe there is any way to automate the placement of the image tag without iterating over the textfield for character widths and line counts. You didn't say where your text is coming from (or how much there is) so it is hard to know how practical a manual trial-and-error solution would be for you. One possibility would be to manually place the image tag in the block of text such that it is within the second to last line as it is displayed in the textfield. Your image will still be right aligned. Or I am guessing from your use of the phrase icon clip that the images you want to use are in the .fla library rather than external. That being the case, what you can do is create a parent clip with the desired linkage name that has a child clip with the actual image and an instance name 'icon'. The idea here is to use the child clip's _x and _y properties to position the actual icon image wherever you like. You will need to set the image tag's id attribute (for the parent clip) in order to target the child clip's properties. For example: textFieldName.someImageID.icon._x = -10; textFieldName.someImageID.icon._y = -10; The exact details regarding how this could be set-up depend on how you are loading your text. Regards, -Keith http://keithreinfeld.home.comcast.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Tween multiple rotations
Hi, I am trying to rotate an object through 1080 (3 * 360) degrees with TweenLite. Does anyone know if I have to join a sequence of 360 tweens together to do this, or is there a way of cheating so it just does as you would hope? Thanks Glen -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders