Re: [Flashcoders] ALT+GR in FireFox 4.0
Surely someone has a fix ? On Thu, Apr 28, 2011 at 4:14 PM, Elia Morlin elia.li...@gmail.com wrote: I know, but I can't remove opaque. It must be opaque. On Thu, Apr 28, 2011 at 3:47 PM, kris range krisra...@gmail.com wrote: If I remember correctly, this has popped up a few times and I think it's related to the wmode property being set to transparent or opaque. If you can remove that, it should go away. On Thu, Apr 28, 2011 at 8:47 AM, Elia Morlin elia.li...@gmail.com wrote: Does anyone have an AS3 solution for the ALT+GR problem in FireFox 4.0? It will not accept ALT+GR in combination with any character. So it's impossible to enter a @, [ or ]. Thanks Elia Morling ___ 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] XMLList Namespace Madness
Start by throwing away the XMLList wrapper, what you really have is a single XML element, stop trying to pretend otherwise. Once you have the XML instance, just call the namespace method with the prefix to get the correct Namespace instance to use. Or even simpler, create the Namespace object directly from the used url. With that done it is a simple matter of using the namespace qualifier operator http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/operators.html#name_qualifier. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] XMLList Namespace Madness
Once you have the XML instance, just call the namespace method with the prefix to get the correct Namespace instance to use. Or even simpler, create the Namespace object directly from the used url. If you followed the thread, that's what I was doing and it wasn't working. Jason Merrill Instructional Technology Architect Bank of America Global Learning -- This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses. References to Sender are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link: http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you consent to the foregoing. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] XMLList Namespace Madness
Here is my final utility function to disable XML namespaces if anyone finds this useful: /** * This method will disable, but not remove namespace declarations in an XML document. Namespace declarations * are altered from using a color designator (:) to a replacement character. Default namespaces * can be kept if desired, and the replacement character can also be customized. * @param xml The XML document to be processed. * @param replacementCharacter The character to substitute for the colon (:) in the XML document. * @param disableDefaultNamespaces When false, this keeps the default namespace declarations in the document (any xmlns= attribute declaration). * @return The modified XML document. */ public static function disableNamespaces(xml:XML, replacementCharacter:String=_, disableDefaultNamespaces:Boolean=true):XML { var xmlString:String = xml.toXMLString(); xmlString = xmlString.replace(new RegExp('*:','gi'),replacementCharacter); if(disableDefaultNamespaces) xmlString = xmlString.replace(new RegExp('xmlns=','gi'),'xmlns'+replacementCharacter+'='); return XML(xmlString); } Jason Merrill Instructional Technology Architect Bank of America Global Learning -- This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses. References to Sender are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link: http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you consent to the foregoing. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] XMLList Namespace Madness
typo On Apr 29, 2011, at 2:54 PM, Merrill, Jason wrote: color designator (:) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] XMLList Namespace Madness
You've never heard of the color (:)? Kinda inbetween fuschia and midnight blue. ;) Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ross Sclafani Sent: Friday, April 29, 2011 3:18 PM To: Flash Coders List Subject: Re: [Flashcoders] XMLList Namespace Madness typo On Apr 29, 2011, at 2:54 PM, Merrill, Jason wrote: color designator (:) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses. References to Sender are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link: http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you consent to the foregoing. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] ALT+GR in FireFox 4.0
Hi Elia, Are you on a non-english keyboard? I never heard of that combination but that may have to do with you using a Spanish or Portuguese keyboard? I am only asking this because it will help understand your issue better. I read somewhere in line that ALT+GR is the @ symbol? In English Keyboards it is just SHIFT+2 which is not an issue at all. -h On Fri, Apr 29, 2011 at 1:41 AM, Elia Morlin elia.li...@gmail.com wrote: Surely someone has a fix ? On Thu, Apr 28, 2011 at 4:14 PM, Elia Morlin elia.li...@gmail.com wrote: I know, but I can't remove opaque. It must be opaque. On Thu, Apr 28, 2011 at 3:47 PM, kris range krisra...@gmail.com wrote: If I remember correctly, this has popped up a few times and I think it's related to the wmode property being set to transparent or opaque. If you can remove that, it should go away. On Thu, Apr 28, 2011 at 8:47 AM, Elia Morlin elia.li...@gmail.com wrote: Does anyone have an AS3 solution for the ALT+GR problem in FireFox 4.0? It will not accept ALT+GR in combination with any character. So it's impossible to enter a @, [ or ]. Thanks Elia Morling ___ 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] XMLList Namespace Madness
The following works for me: === var myXMLList:XMLList = XMLList(GetUserProfileByNameResponse xmlns=http://microsoft.com/webservices/SharePointPortalServer/UserProfileService; xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; GetUserProfileByNameResult PropertyData ValueHelloWorld 1/Value /PropertyData PropertyData ValueHelloWorld 2/Value /PropertyData /GetUserProfileByNameResult /GetUserProfileByNameResponse); var pnNs:Namespace=new Namespace(http://microsoft.com/webservices/SharePointPortalServer/UserProfileService;); var myXMLList2:XMLList = myXMLList.pnNs::GetUserProfileByNameResult; for each (var node:XML in myXMLList2.pnNs::PropertyData) { trace(- PropertyData: , node.toXMLString()); } === regards, Muzak - Original Message - From: Merrill, Jason jason.merr...@bankofamerica.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Friday, April 29, 2011 4:32 AM Subject: [Flashcoders] XMLList Namespace Madness I'm going crazy trying to drill down into a XMLList which has namespaces declared. I have been able to go into a few layers of the original XML with namespaces using namespace definitions in AS3, but now I am stuck at the last level. The XMLList I have pared it down to has a length of 1 and has namespaces declared, which is throwing things off. How can I get to the PropertyData / nodes given that namespaces are involved? The following code can be copied and pasted into a fresh .fla as a test case: /*TEST CASE-*/ var myXMLList:XMLList = XMLList(GetUserProfileByNameResponse xmlns=http://microsoft.com/webservices/SharePointPortalServer/UserProfileService; xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; GetUserProfileByNameResult PropertyData ValueHelloWorld 1/Value /PropertyData PropertyData ValueHelloWorld 1/Value /PropertyData /GetUserProfileByNameResult /GetUserProfileByNameResponse); var pnNs:Namespace = new Namespace(http://microsoft.com/webservices/SharePointPortalServer/UserProfileService;); var myXMLList2:XMLList = myXMLList.pnNs::GetUserProfileByNameResult; trace(myXMLList2: +myXMLList2)//Traces fine, except more namespaces (xmlns) appear as attributes in first node. for each (var propertyDataXML:XML in myXMLList2..PropertyData) { //WHY DOES THIS NOT TRACE? trace(propertyDataXML: +propertyDataXML); } /*--*/ I also tried this for the loop as well: /*--*/ for each (var propertyDataXML2:XML in myXMLList2.pnNs::GetUserProfileByNameResult..PropertyData) { //WHY DOES THIS NOT TRACE? trace(propertyDataXML: +propertyDataXML2); } /*--*/ And why does the trace on myXMLList2 show an XML list where there is more namespace applied: GetUserProfileByNameResponse xmlns=http://microsoft.com/webservices/SharePointPortalServer/UserProfileService...; ?? Any help is MUCH appreciated. Jason Merrill ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] XMLList Namespace Madness
Cool - thanks Peter. Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Peter Ginneberge Sent: Friday, April 29, 2011 4:14 PM To: Flash Coders List Subject: Re: [Flashcoders] XMLList Namespace Madness The following works for me: === var myXMLList:XMLList = XMLList(GetUserProfileByNameResponse xmlns=http://microsoft.com/webservices/SharePointPortalServer/UserProfileService; xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; GetUserProfileByNameResult PropertyData ValueHelloWorld 1/Value /PropertyData PropertyData ValueHelloWorld 2/Value /PropertyData /GetUserProfileByNameResult /GetUserProfileByNameResponse); var pnNs:Namespace=new Namespace(http://microsoft.com/webservices/SharePointPortalServer/UserProfileService;); var myXMLList2:XMLList = myXMLList.pnNs::GetUserProfileByNameResult; for each (var node:XML in myXMLList2.pnNs::PropertyData) { trace(- PropertyData: , node.toXMLString()); } === regards, Muzak - Original Message - From: Merrill, Jason jason.merr...@bankofamerica.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Friday, April 29, 2011 4:32 AM Subject: [Flashcoders] XMLList Namespace Madness I'm going crazy trying to drill down into a XMLList which has namespaces declared. I have been able to go into a few layers of the original XML with namespaces using namespace definitions in AS3, but now I am stuck at the last level. The XMLList I have pared it down to has a length of 1 and has namespaces declared, which is throwing things off. How can I get to the PropertyData / nodes given that namespaces are involved? The following code can be copied and pasted into a fresh .fla as a test case: /*TEST CASE-*/ var myXMLList:XMLList = XMLList(GetUserProfileByNameResponse xmlns=http://microsoft.com/webservices/SharePointPortalServer/UserProfileService; xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; GetUserProfileByNameResult PropertyData ValueHelloWorld 1/Value /PropertyData PropertyData ValueHelloWorld 1/Value /PropertyData /GetUserProfileByNameResult /GetUserProfileByNameResponse); var pnNs:Namespace = new Namespace(http://microsoft.com/webservices/SharePointPortalServer/UserProfileService;); var myXMLList2:XMLList = myXMLList.pnNs::GetUserProfileByNameResult; trace(myXMLList2: +myXMLList2)//Traces fine, except more namespaces (xmlns) appear as attributes in first node. for each (var propertyDataXML:XML in myXMLList2..PropertyData) { //WHY DOES THIS NOT TRACE? trace(propertyDataXML: +propertyDataXML); } /*--*/ I also tried this for the loop as well: /*--*/ for each (var propertyDataXML2:XML in myXMLList2.pnNs::GetUserProfileByNameResult..PropertyData) { //WHY DOES THIS NOT TRACE? trace(propertyDataXML: +propertyDataXML2); } /*--*/ And why does the trace on myXMLList2 show an XML list where there is more namespace applied: GetUserProfileByNameResponse xmlns=http://microsoft.com/webservices/SharePointPortalServer/UserProfileService...; ?? Any help is MUCH appreciated. Jason Merrill ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may
[Flashcoders] Indesign generated swfs: IDSWFFile.as messes with my clicks!
I built a simple pre-loader that loads swfs generated by Adobe Indesign CS4. Long story short, these Indesign swfs were not clicking when clicked! Here's my click code (the Indesign swf loads into swfContainer sprite): [/code] // Setup linking with inline handler: swfContainer.addEventListener(MouseEvent.MOUSE_UP, function():void { // Using class for going to URL: URLUtils.openWindow(pLink, pWin); // http://apdevblog.com/problems-using-navigatetourl/ //navigateToURL(new URLRequest(pLink), pWin); // -- Was not working on Mac via Firefox 4x or Safari 5x. }, false, 0, true); // Mouse: swfContainer.buttonMode = true; swfContainer.useHandCursor = true; // The layer blendMode makes the alpha fades cleaner (overlapping objects don't add alpha levels): swfContainer.blendMode = 'layer'; swfContainer.mouseChildren = false; [/code] Nothing I tried worked! I think I narrowed the problem down to the Indesign swf's document class: IDSWFFile.as (I admit that I used a decompiler to investigate.) The above document class if FULL of AS3 bits and pieces. I would post the code as a gist on github, but I don't want to get in trouble for any sort of copyright or something. Anyway, there are a few spots where the ID code sets listeners for MOUSE_UP (among many other mouse events). Here's the kicker: When I deleted the document class and published the Indesign FLA and loaded it in my loader swf... I was able to click and navigate to URL! Question(s): 1. Is there any way to turn off, replace or ignore the document class of a loaded swf? 2. Any tips on how to trump the code from IDSWFFile.as? 3. I am wondering if I should just setup Indesign to publish as AS2 (not sure if possible)... It seems like that might be one way to trump the loades swfs AS? Any tips you could provide would be great! Thanks so much. Have a nice day! Cheers, Micky ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: Indesign generated swfs: IDSWFFile.as messes with my clicks!
On Fri, Apr 29, 2011 at 1:59 PM, Micky Hulse mickyhulse.li...@gmail.com wrote: 2. Any tips on how to trump the code from IDSWFFile.as? I think I found a solution. When generating an output profile or swft file from Indesign, there are these options (selected by default): Include Buttons Include Hyperlinks Include Page Transitions Include Interactive Page Curl We turned all those options off and re-generated a new profile/swft and then generated a new SWF. This fixed the click problem I was having. I am still kinda wondering if there is a way to avoid this type of thing when loading external SWFs into a parent class that needs clicks... Does that make sense? Is there a good way to trump child swf's click listeners from a parent swf? Anyway, things are fixed for now. Sorry to bug ya'll. Thanks! Have a great day all. Cheers, Micky ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders