Re: [flexcoders] Re: With the latest eula agreement from Apple
http://www.pocketgamer.biz/r/PG.Biz/Unity3D+iPhone/news.asp?c=19851 http://www.pocketgamer.biz/r/PG.Biz/Unity3D+iPhone/news.asp?c=19851The CEO is unconcerned. No word of Unity being excluded. Cheers, Claus. On Fri, Apr 9, 2010 at 5:01 PM, Jeffry Houser j...@dot-com-it.com wrote: I'd love to see a source other than something that someone said in a comment on a blog post; about Unity3D being excluded. --- In flexcoders@yahoogroups.com, Battershall, Jeff jeff.battersh...@... wrote: The source may be hearsay, but is referenced in this blog post: http://whydoeseverythingsuck.com/2010/04/steve-jobs-has-just-gone-mad.html Reportedly Unity 3D was told that this new EULA would not apply to them, yet on the face of it, it should. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jeffry Houser Sent: Friday, April 09, 2010 1:53 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: With the latest eula agreement from Apple Can you provide a source for the restrictions not being applied evenhandedly? As far as I know, Apple has changed their developer agreement for iPhone / iPad / iPod Touch. They have not attempted to enforce the new restriction on anyone, Adobe or otherwise. --- In flexcoders@yahoogroups.com, Battershall, Jeff jeff.battershall@ wrote: I love my MacBook Pro, and related Apple products, but Steve Jobs is really starting to piss me off. Apparently this 'restriction' is not being applied evenhandedly across the boards with other similar packaging tools. I am sure that Flash being integrated with Chrome isn't helping things either. But in Steve's world, it's his way or the highway. And then to invoke the Open Standards criticism of Flash becomes even more disingenuous that before. Open standards my a**, this is just plain and simple cutthroat competition. And the timing - the timing of this given the imminent release of CS5 - you'd think that if he was going to do this he should have done it a year or more ago. It's not like he didn't know that this capability was being developed. This smacks of anti-competitive practices and I for one hope something can (and will) be done about it. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Patrick Sent: Friday, April 09, 2010 10:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] With the latest eula agreement from Apple Will adobe punch back and file a law suit against apple? This is total crap. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Flex 4: List with itemRendererFunction
Hi list, im using a Spark List with an itemRendererFunction to have it display different item renderers for different types of items, more or less like this: private function selectRenderer(item:Object):ClassFactory { var classFactory:ClassFactory = new ClassFactory(DefaultItemRenderer); if (item is OneVO) { classFactory = new ClassFactory(OneRenderer); } else if (item is TwoVO) { classFactory = new ClassFactory(TwoRenderer); } else if (item is ThreeVO) { classFactory = new ClassFactory(ThreeRenderer); } return classFactory; } s:List id=searchResults itemRendererFunction=selectRenderer/ This works fine the first time i assign an ArrayCollection to the dataprovider. However if i then assign a different ArrayCollection (containing a different set of One/Two/ThreeVO's) to the dataprovider, the itemRendererFunction is not called again. How do i get the List to call itemRendererFunction again after the dataprovider changes? Thanks, Claus.
Re: [flexcoders] Flex 4: List with itemRendererFunction
It appears to be a Flex SDK bug: http://stackoverflow.com/questions/2231036/spark-list-reusing-the-wrong-item-renderers (Solution: reassign itemRendererFunction after changing the dp) http://stackoverflow.com/questions/2231036/spark-list-reusing-the-wrong-item-renderers Cheers, Claus. On Wed, Apr 7, 2010 at 4:18 PM, Oleg Sivokon olegsivo...@gmail.com wrote: Try dispatching update collection event from the collection assigned? I don't think it is a good workaround, because dispatching events from outside the dispatcher is a bad practice, but just for the experiment, I'd try. Best. Oleg
Re: [flexcoders] Re: The end of ActionScript 3 as an EcmaScript 4 implementation
Yes, as i just commented at [1], i don't see much significance in ECMAScript going whatever direction. For me the ultimate solution is having cross compilers that compile *whatever* to ABC/SWF. Adobe is working on that, it's public info [2]. Experimental C, Python and PHP compilers are already working as it seems. [1] http://tinyurl.com/6awfad [2] http://llvm.org/devmtg/2008-08/ (last presentation in list) Cheers, Claus. Ralf Bokelberg wrote: Why does everybody need their own language? Why not implementing a language or multiple languages, which are well known and successful already? We could have C#, JavaScript, Lisp, Scala, whatever running side by side on the same virtual machine. Cheers Ralf.
Re: [flexcoders] Re: Handling html formatted tables in Flex
Battershall, Jeff wrote: Too difficult Having a feed that has UI embedded in it, is 'less than optimum'. Ideally the data you'd be receiving would be in a UI aqgnostic format. An HTML table is UI agnostic. How it's presented to the user completely depends on the styling that is applied to it (e.g. CSS). Cheers, Claus.
Re: [flexcoders] Re: Handling html formatted tables in Flex
I think you don't get my point. Maybe i should have written An XHTML table is UI agnostic - if it's valid XHTML, it's by definition wellformed XML, and parsing that is almost trivial, no matter how the individual elements are named. I only wanted to clarify that (X)HTML is sematic and not presentational as you suggested. If i display a table in a browser with all CSS turned off (including default styles), i get a long line of text with no UI at all. Battershall, Jeff wrote: Claus, I think you get my point. XML would be the preferred format for DATA whereas the ability to render HTML depends on the rendering engine. In this case, he needs to get the data into a form that his application can consume. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claus Wahlers Sent: Tuesday, May 20, 2008 3:52 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Handling html formatted tables in Flex Battershall, Jeff wrote: Too difficult Having a feed that has UI embedded in it, is 'less than optimum'. Ideally the data you'd be receiving would be in a UI aqgnostic format. An HTML table is UI agnostic. How it's presented to the user completely depends on the styling that is applied to it (e.g. CSS). Cheers, Claus.
Re: [flexcoders] Re: i18n and embedded fonts
In an application i'm currently working on (which is not done in Flex though - i'm using Flash CS3 and the CS3 UI Components), i subclass the components and add an alternativeTextFormat style. This way i can set it to display an embedded font that only contains latin glyphs, and let it automatically switch to an alternative font (usually unembedded _sans) when one of the characters can't be displayed due to missing embedded glyphs. I have this implemented for buttons, labels and cell renderers and it works like a charm (i'll opensource these soon btw). In addition i added a new InvalidationType.LOCALE and implemented a simple AS3 version of gettext, to make switching languages at runtime almost trivial. Flash CS3 though as i said, but this should also be doable in Flex i guess. Flex 3 also comes with improvements in I18N land - i'm not too much into that but you may want to look into ResourceManager there. Cheers, Claus. deepak_michael wrote: Hi Tom, Thanks for the reply. No, the font doesn't contain the glyphs... but if I had set the same as a device font instead of embedding it, the characters for the Japanese/Chinese/non-latin characters appear. So, if the font's not embedded and if characters are encountered that is not in the glyph set of the font assigned, the player looks for a font on the client machine that does support those characters... but this beautiful mechanism seems to go away once we use an embedded font - that's the problem I want to work around. Please let me know if there's something I have missed out. Deepak --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 09 May 2008, deepak_michael wrote: I'm using an embedded font (Trebuchet MS) in the application and because of this strings which are in Japanese/Chinese/non-latin characters do not appear. Does that font have glyphs for those locales ? -- Tom Chiverton
[flexcoders] AIR Remote Updater for AIR 1.0 released
Hello, i just released an updated version of my AIR Remote Updater class which works with the AIR 1.0 runtime. http://codeazur.com.br/lab/airremoteupdater/ Enjoy, Claus.
Re: [flexcoders] No Serial Numbers for Flex Builder 3?
FWIW, i just purchased Flex Builder 3 Standard Upgrade and got my serial instantly. Cheers, Claus. Paul Whitelock wrote: I purchased the upgrade to Flex Builder 3 Professional and after the order went through instead of a serial number all that I got was a message that said Contact Customer Service. I just got off of a 15 minute phone call with Customer Service and was told that it will take 24 to 48 hours before serial numbers are available. Supposedly I will receive an email with the serial number, but after many bad experiences with Adobe Customer Service, let's just say I'll believe it when I see it ;-) Anyway, just wanted to get the word out in case you buy Flex Builder 3 and expect to receive a serial number for the product at the time you make the purchase.
Re: [flexcoders] Re: Access TWAIN scanners from Air
Lukas Ruebbelke wrote: First of all, you have entirely missed the initial directive of AIR in the first place which is to extend the browser to the desktop. I cannot think of any web pages that access a command line prompt or the TWAIN API directly so I am not surprised AIR cannot do these things. Web pages also can't run in the Windows task tray, or access the local file system.. Cheers, Claus.
Re: [flexcoders] Re: Access TWAIN scanners from Air
Lukas Ruebbelke wrote: See! Already they are over delivering! =) Command line access and direct print manipulation are valid requests but that does not nullify the laundry list of really cool things that AIR can already do. I didn't say that. He did! (pointing at Shaun) ;) Cheers, Claus.
[flexcoders] FZip: New build released: Read, create and modify ZIP archives
Hi all, FYI, i released a new build of FZip (1.0.055) http://codeazur.com.br/lab/fzip/ This new build fixes compiler errors in non-AIR projects and development environments and adds new API functions to create/modify ZIP archives (addFile, addFileAt, addFileFromString, addFileFromStringAt, removeFileAt, serialize). FZip is an AS3 class library to load, modify and create standard ZIP archives. FZip parses ZIP archives progressively, allowing access to contained files while the archive is loading. Cheers, Claus.
Re: [flexcoders] IE6 and Stage.width returning a 0
Patrick Lemiuex wrote: Any suggestions here? Wait 1-3 frames until you query Stage.width/height Cheers, Claus.
[flexcoders] FZip and AIRRemoteUpdater upgrade for AIR Beta 2
Hi, FYI, FZip and the AIRRemoteUpdater have been upgraded for AIR Beta 2. http://codeazur.com.br/lab/fzip/ [1.0.051] http://codeazur.com.br/lab/airremoteupdater/ [1.0.002] Cheers, Claus.
Re: [flexcoders] Re: how to change selection color in textinput?
Alex Harui wrote: They wrote their own text input control Which only seems to support english/american keyboards. I am on a german keyboard and wasn't able to enter the @ which is unfortunate ;) (the @ is AltGr-Q on mine). Cheers, Claus.
Re: [flexcoders] Flex - AIR: local port listener
I am trying to create an AIR application that would listen to a port on the client's machine and print the messages. That's not possible without a (non-Flash) local socket server. AIR applications can only work as socket clients, but not as socket servers (they can connect to sockets but can't accept socket connections). Cheers, Claus.
Re: [flexcoders] Re: Flex - AIR: local port listener
I am just creating a socket client in flex/air that connects to a local port, reads the data and displays it on the screen. I have another application running locally that is writing messages to that port. Ah, ok.. socket= new Socket; socket.connect(localhost, 9930); Error #2044: Unhandled IOErrorEvent:. text=Error #2031: Socket Error. Are you sure that there is a socket server running locally, and that this socket server accepts connections on port 9930? Cheers, Claus.
Re: [flexcoders] Re: AIR vs DLL vs. External code?
hank williams wrote: I think in 2007 we can almost safely say there is no market for *any* non-connected desktop applications, with or without AIR. Bold words... Cheers, Claus.
Re: [flexcoders] Batching PNGs into an SWF
thirtyfivemph wrote: My app is currently loading around a 100-150 PNGs (around 64x64 to 128x128 in size each) from my server. It's obviously taking way longer than it should, not because of the total size of the transfer but rather the overhead of the multiple connections, i.e. 100-150 separate connections to the server, which may or may not utilize keepAlive (depending on browser), which will be pipelined only two-wide (which will probably be a *good* thing once we have thousands of concurrent users!). You should look into the various unZIP classes out there: - http://codeazur.com.br/lab/fzip/ - http://www.vanrijkom.org/archives/2007/02/far_flasharchiv.html - http://nochump.com/blog/?p=15 Cheers, Claus.
Re: [flexcoders] Re: Actionscript SAX Parser ?
Paul DeCoursey wrote: Nobody on this high-volume list wants/needs a SAX parser? Thats just crazy. I'm going back to .NET ;) Actually, this is something that I have been interested in. I did see someone had one written for AS2, I don't recall the link. The code did not translate well to AS3 and was far from complete. I have yet to find it totally necessary to start working on my own solution. Most of the time pagination and xslt on th server has been enough. I could see this being more valuable for Apollo. You're probably refering to the AS2 SAX implementation by Jim Cheng: http://tinyurl.com/yqo87x I myself have been working on porting Xerces-J to AS3 for a while now, although i plan to use the built in parsers of Flash Player with it (i'm primarily interested in a stable and compliant DOM 3 implementation). This doesn't mean having a compliant SAX parser with it would hurt - to the contrary. If anyone would like to help me on this (greatly apprechiated), please feel free to contact me directly. Thanks, Claus.
Re: [flexcoders] [OT] php framework
Ralf Bokelberg wrote: Prado, (www.pradosoft.com http://www.pradosoft.com), a really sweet and rapid component based framework. Symfony is a quite nice one too.. http://www.symfony-project.com/ Cheers, Claus.
Re: [flexcoders] Flash 9 Stage size - 2880 x 2880 limitation
Daniel Wabyick wrote: I have a friend creating a huge wall-display project with a screen resolution of around 3600 x 3600 pixels. So, he should be able to create an app that's 1800x1800, and then simply go fullscreen which will scale Flash to the needed res (what you were saying). Afaik, the max stage size in Flash Player 9 is -8192 - +8192 (ish). Afaik, the max bitmap size is 2880x2880. Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
Re: [flexcoders] Flash 9 Stage size - 2880 x 2880 limitation
Afaik, the max stage size in Flash Player 9 is -8192 - +8192 (ish). Afaik, the max bitmap size is 2880x2880. And, just tested: The max visible stage size in the IDE is -3500 - +3500 (ish). You can enter X/Y values from -5760 - +5760 in the Info Panel. Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
Re: [flexcoders] Will Microsoft's new Silverlight Player Kill our beloved Flex ?
If you read FUD crap, ignore it on both sides and just be opened to the idea that theres yet another channel of delivery in rich interactive applications. Reading through the Silverlight docs, XAML looks to me like some weird kind of microsoftified SVG, spiced up with MP3 and WM codecs. I'm still searching but so far i couldn't find anything close to what Flex offers (what i found are some barely working and butt ugly component experiments). I'd guess that Silverlight will get some video market share, but it has a long way to go to enter the RIA market. My 2 centavos. Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
Re: [flexcoders]Flex got the shaft in CS3
dorkie dork from dorktown wrote: After watching the Adobe CS3 Launch http://www.adobe.com/products/creativesuite/launchevent/webcast/ event I can't help but feel Flex got the shaft. Why was Flex not mentioned? Why is it not mentioned in any of the Adobe CS3 suite? If you notice it is not mentioned as being apart of any of the cs3 suites (in the menu above the video). Wild guesses: - because Flex has already launched some time ago - because Flex is not part of the CS3 suites - because Flex is targeted to developers, where the CS3 suite is mostly targeted to creative folks Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
Re: [flexcoders] E4X: Parsing XML with xml-stylesheet PI
I think in this example the processing instruction is a red herring. You were testing: ?xml-stylesheet href=my.css type=text/css? root xmlns=http://example.com/;; xml:id=wtf / right? But I think that's not well formed. What's up with the semicolon Whoops, that must have been an email typo, sorry for that. There’s no lost semicolon in my original code. and xml: should be xmlns: Nope, see here: http://www.w3.org/TR/xml-id/ var a:XMLList = new XMLList( '?xml-stylesheet href=my.css type=text/css?' + 'root xmlns=http://example.com/; xmlns:id=wtf /'); var b:XML = a[1]; trace(b.namespaceDeclarations()); //wtf trace(b.namespace()); //http://example.com/ namespaceDeclarations() gets the namespaces the node defines, and namespace() gets the namespace the node is in. You can see that the processing instruction has no impact on whether this works. Shouldn't b.namespaceDeclarations() also include the default namespace declaration (xmlns=http://example.com/;), or does that get stripped out because it's already accessible via b.namespace()? HTH! Btw, Claus, I'm a big fan of yours ever since I saw Deng -- that remains amazing to me :) Thanks! I'll try to get my fanclub up and running shortly. ;) Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/ -- READ CAREFULLY. By reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (BOGUS AGREEMENTS) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] E4X: Parsing XML with xml-stylesheet PI
var a:XMLList = new XMLList( '?xml-stylesheet href=my.css type=text/css?' + 'root xmlns=http://example.com/; xmlns:id=wtf /'); var b:XML = a[1]; trace(b.namespaceDeclarations()); //wtf trace(b.namespace()); //http://example.com/ namespaceDeclarations() gets the namespaces the node defines, and namespace() gets the namespace the node is in. You can see that the processing instruction has no impact on whether this works. Shouldn't b.namespaceDeclarations() also include the default namespace declaration (xmlns=http://example.com/;), or does that get stripped out because it's already accessible via b.namespace()? XML.ignoreProcessingInstructions = false; var a:XML = new XML( '?xml-stylesheet href=my.css type=text/css?' + 'root xmlns=http://example.com/; xml:id=wtf /'); trace(a.namespaceDeclarations()); When i use XML, namespaceDeclarations() contains the default declaration. When i use XMLList as in the example above, it doesn't. Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] E4X: Parsing XML with xml-stylesheet PI
It seems like a limitation that toXmlString() can't handle default namespaces or implicitly defined namespaces. For instance, when you use xml:id, you're using a namespace xml that you don't declare, and when you're using the default namespace http://example.com that namespace doesn't have a binding. toXmlString() apparently wants everything to be explicit, so it makes up bindings for the two namespaces — aaa and aab — and uses them to explicitly namespace the id attribute as well as the root node. I think the output XML string is functionally equivalent, but it's clearly not literally equivalent :( What really worries me is that apparently if i use XMLList for parsing the doc (i have to, as i need the PI) i can't access the default namespace via namespaceDeclarations(). XML.ignoreProcessingInstructions = false; var a:XMLList = XMLList( '?xml-stylesheet href=my.css type=text/css?' + 'root xmlns=http://example.com/; /'); trace(a.toXMLString()); // ?xml-stylesheet href=my.css type=text/css? // aaa:root xmlns:aaa=http://example.com// trace(XML(a[1]).namespace()); // http://example.com/ (correct) trace(XML(a[1]).namespaceDeclarations().length); // 0 (wrong. this should be 1) If i explicitly give my root element a prefix, like so: XML.ignoreProcessingInstructions = false; var a:XMLList = XMLList( '?xml-stylesheet href=my.css type=text/css?' + 'xyz:root xmlns:xyz=http://example.com/; /'); Everything is fine: trace(a.toXMLString()); // ?xml-stylesheet href=my.css type=text/css? // xyz:root xmlns:xyz=http://example.com// trace(XML(a[1]).namespace()); // http://example.com/ (correct) trace(XML(a[1]).namespaceDeclarations().length); // 1 (correct) As soon as a default namespace declaration is involved, it is ignored by namespaceDeclarations(). That's also probably why toXMLString() invents a prefix in that case (same for xml:id attributes, because there is no declaration for the xml prefix, as it is implicitly defined). Plus, all of this does not happen when i parse with XML() rather than XMLList(). But then i can't access the PI. Afaik this is a bug. Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: XML Attributes with a period in their name?
Dots are not allowed in attribute names. I'd use underscore or dash. Where in the XML spec does it state periods are not allowed? Sorry, my mistake. Dots are indeed allowed in attributes. In any case, that is completely irrelevant to the problem at hand. The XML configuration files for the phones DO have periods in their attribute names and I have no control over that, they've been deployed in the field by a top manufacturer for a number of years already. I'm just working on an application that needs to be able to read and write their configuration files. In any case i'm not aware of a way to dot down to them with E4X. You can access the values for example like this: var xml:XML = root foo.bar=hello world / trace([EMAIL PROTECTED]foo.bar]); Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
Re: [flexcoders] Re: XML Attributes with a period in their name?
I CAN get to the attributes by doing the following: myAtt:XMLList = xmlData.reg.attribute(reg.1.user); but I would really like to use the E4X capabilities to make this easier. Is there an easy way to set the reg.1.user attribute? var xml:XML = root foo.bar=hello world / trace([EMAIL PROTECTED]foo.bar]); // hello world [EMAIL PROTECTED]all.your.base] = are belong to us; trace(xml.toXMLString()); // root foo.bar=hello world all.your.base=are belong to us/ Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
Re: [flexcoders] Re: XML Attributes with a period in their name?
Perfect! I thought I tried every syntax trick I could think of, maybe just forgot to try square brackets. I couldnt find anything in the documentation about it. It's there, a bit hidden though: http://livedocs.adobe.com/flex/2/langref/operators.html#brackets_(XML) [ ] brackets (XML) operator Accesses a property or attribute of an XML or XMLList object. The brackets operator allows you to access property names that are not accessible with the dot (.) operator. Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
Re: [flexcoders] JAWS read order
So here's what I'm running into: I have an HBox holding two VBoxes. I have a few Text fields inside. I'm thinking JAWS would read the contents of the first VBox in its entirety, then move on to the next VBox, but it is not. JAWS is reading what is displayed, right to left. Try giving your tabIndices consecutive, unique values. I noticed you have eg. multiple tabIndex=1 etc, so most likely the FocusManager internally sorts all elements with tabIndex=1 to the top in document order, which would explain the SR reading the first text blob first. Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
Re: [flexcoders] XML Attributes with a period in their name?
reg.1.user=1234 reg.1.server=192.168.0.1/ Dots are not allowed in attribute names. I'd use underscore or dash. Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
[flexcoders] E4X: Parsing XML with xml-stylesheet PI
Hi list, i was playing around with E4X tonight and got stuck trying to parse a pretty simple, perfectly wellformed XML: ?xml-stylesheet href=my.css type=text/css? root xmlns=http://example.com/; xml:id=wtf / First try: XML.ignoreProcessingInstructions = false; var a:XML = new XML( '?xml-stylesheet href=my.css type=text/css?' + 'root xmlns=http://example.com/; xml:id=wtf /'); trace(a.toXMLString()); Result: root aaa:id=wtf xmlns=http://example.com/; xmlns:aaa=http://www.w3.org/XML/1998/namespace/ Uhm yeah well okay. XML can only handle one root element, so the PI got stripped out. I guess. Don't really know what's the deal with that bogus namespace declaration though, but okay. Next try: XML.ignoreProcessingInstructions = false; var a:XMLList = new XMLList( '?xml-stylesheet href=my.css type=text/css?' + 'root xmlns=http://example.com/; xml:id=wtf /'); trace(a.toXMLString()); Result: ?xml-stylesheet href=my.css type=text/css? aaa:root aab:id=wtf xmlns:aaa=http://example.com/; xmlns:aab=http://www.w3.org/XML/1998/namespace/ Hey there's my PI, sweet. But.. aaa? aab? Let's check the namespaceDeclarations: var b:XML = a[1]; trace(b.namespaceDeclarations().length); Result: 0 Grrr. What's going on there? How do i correctly parse the XML above with E4X, to get my PI, root element and namespace declarations? I must be missing something trivial.. i hope. Thanks, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
Re: [flexcoders] Accessing FLEX data from within a SWF??
When I define a VAR in Flex, I know that the MXML compiler turns that into a FLASH variable in the output SWF… But What DOMAIN is that variable listed in (for example _root in a .FLA)? I need to know this because we're using SWFKit to turn a SWF into an EXE, and I need the domain in order to get/set Flex Variables from with in the SWF wrapper. You need to go the other way round: At startup of your application, grab the LoaderInfo.parameters object which contains the variables passed to your SWF from the outside, something like this: var flashVars:Object = root.loaderInfo.parameters; var myFlashVar:String = flashVars['myFlashVar']; Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/ -- READ CAREFULLY. By reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (BOGUS AGREEMENTS) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/kOt0.A/gOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: zip/unzip xml webservice result
Troy Gilbert wrote: Using server-base gzip compression is probably the best route, but I don't know if Flex's user agent that pulls the data (WebService, I guess) if it supports gzip'd streams. The Flash Player should handle compression over HTTP transparently. If it doesn't, you can do it manually with the ByteArray class. It has a compress and uncompress pair of methods that implement gzip compression. The Flash Player implements DEFLATE compression (which is used by gzip, pkzip and zlib), but can't natively uncompress gzip because it expects an ADLER32 checksum (over the uncompressed data). The gzip format uses a CRC32 checksum though (as does pkzip). So if you want to uncompress gzip or pkzip compressed files you need to find a way to inject ADLER32 checksums. Both FZip [1] and FAR [2] provide simple tools that do that for you, and AS3 classes to uncompress files from pkzipped archives. [1] http://codeazur.com.br/lab/fzip/ [2] http://www.vanrijkom.org/archives/2007/02/far_flasharchiv.html -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/ -- READ CAREFULLY. By reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (BOGUS AGREEMENTS) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.
[flexcoders] FlexBuilder 2.0.1 - Ctrl-Tab broken?
Hi, Is it just me, or is Ctrl-Tab broken in FlexBuilder 2.0.1? In FlexBuilder 2, with the AS3 Editor in focus and multiple source files loaded, i was able to switch tabs with Ctrl-Tab. This stopped working after i upgraded to 2.0.1, and that's kinda driving me nuts. Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
Re: [flexcoders] Re: FlexBuilder 2.0.1 - Ctrl-Tab broken?
Bruce Denham wrote: For some reason, they switched the shortcut to ctrl-q. I switched it back to ctrl-tab using the FB flexbuilder keys settings: Windows Preferences General Keys Ah there we go. Thanks for the hint, Bruce. What i was looking for was Backward History (was mapped to Alt-CursorLeft). Thanks, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
Re: [flexcoders] Re: and I thought Adobe was a professional company. Whats going on with the upgrade
Lastly, if you think there are issues with Flex 2.0.1 documentation, just try using an open source project sometime. After using open source, I now justify all of my licensing costs for Adobe products on the value of their world class documentation alone ;-) Uh-ooh.. Now you're being a bit harsh yourself, aren't you? ;) Open source projects all have poor documentation? While we're at it, where are the SWF9, RTMP and AMF3 specs? I agree with you that the Flex 2 documentation is very good though. Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
Re: [flexcoders] Re: SEO Compatibility
I dont think google needs to do much here. If we can get the server product to easily allow XML to enhance the HTML response then googles indexing will just work. I'd love to see this work in a concrete example. ;-) Again, I am not an HTML expert, (Claus is really the guy that has the expertise to be saying this) but this is really just the kind of stuff that he has been talking about. I am just putting a little more specific meat on the bone. I think Claus pointed to a flash website that does this that he mentioned earlier in this thread. I don't know if i have any more expertise than you ;) But let me just say that XHTML *is* XML, and XHTML is all about semantics, ie. you *could* use XHTML both as the (perfect) format you use to feed to search engine bots *and* as the datasource for your Flash application/site. Of course you don't *need* to do the latter, you can also pipe the (same) data to Flash via remoting or whatever, but for any of your site's URLs the content a search engine bot sees and the content a human with JS/Flash enabled browser sees must be the same. The Flash website was http://guipaganini.com.br/ It supports deep linking, eg. http://guipaganini.com.br/12/75 View source (or switch off JS) to get the idea. The XHTML is loaded as is into Flash. I'm using the Symfony PHP5 framework on the server side. (Disclaimer: don't look too close at the Flash site, it's been a low budget project and i still need to finetune it) Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
Re: [flexcoders] Re: SEO Compatibility
This discussions hits the mailinglists and forums since forever. It seems to me that Adobe still is five or more generations behind their own technology with respect to SEO. A while back i wrote an article about that very topic: http://wahlers.com.br/claus/blog/seffs-to-flash-or-not-to-flash/ You can see this method in action in this (Flash-)website: http://guipaganini.com.br/ Hope this helps a bit. Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
Re: [flexcoders] Re: SEO Compatibility
Hank, disclaimer: I didn't say that method works for everybody everywhere, nor that execution is easy. It's also more targeted towards Flash websites, not Flex. I too think that it's Adobes job to provide a framework to make these things easier for the developer. I don't agree with your UI-design-first approach though. Content should always come first. No content, no UI. At the very least, both should be developed hand in hand. In any case, for an application/website to be truly SEO'ed, you need a HTML site underneath that search engines can spider. This is all about data and nothing else, and it needs a 1:1 relation to the data that the human user is going to get when she clicks on a link presented by search engines (wrapped in a Flex UI or whatever). Cheers, Claus. You are of course right to suggest building an XHTML version first, as a strategy, but there are two problems with this. 1. One of the issues is that good product design usual requires that you develop the interface first. The interface drives the content and data needed. What you are suggesting may help acheive the best underpinnings, but it is very hard to design a good product if you start with the data. The best way to design is really to start with the UI, which flex is very good at. So you end up with Flex code first and you tweak it with real users etc. So you probably use some kind or remoting model. Now you are left trying to figure out a good way to make your remoting based stuff searchable. 2. Even if you decide to do it the way you describe, which is to start out with an XHTML framework, this model really does not fit the remoting model very well because you cant build a pure XHTML site based around remoting. So what you are really suggesting is that you cant use remoting, which is a cornerstone of the Flex development model, and develop a searchable product. But throwing out the whole concept of remoting is really not very appealing from a development model. Now, I am sure that it is possible to build a framework that would help to resolve these issues (and it would be great if adobe would develop such a thing), but certainly just saying use XHTML first would be a very hard task for most people, without such a framework, to do in a clean Flex/remoting friendly way. Regards, Hank -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
Re: [flexcoders] Re: SEO Compatibility
Well of course we agree on most if this. And of course your general thrust that a spiderable HTML underpinning is necessary for search engines is right. But on the UI issue perhaps a slight divergence. Perhaps you can do data and UI hand in hand, but my view is that you dont know what your product should really be until you do some form of UI that you can test against real users who can tell you whether you are on the right track. This typically means building some form of UI, perhaps a wireframe though this will give you less good feedback, perhaps not even tied to a server but with mocked up data, for them to experience. If you go right to a data model, then you dont know if the content that you are trying to present is what the user really needs or wants. So I am always focused on making sure that what I am doing is what the user wants first. Once you know you are on the right track, then you can build a data model to present the user what they need. Of course this does not mean that great code cannot be written lots of other ways! Yup i think we can agree on that :) Btw, this just popped up in MXNA, very relevant to this discussion: http://www.randomusa.com/flash/index.php?entryID=1875 I just wished Adobe would actively approach and discuss the problem we are facing. I don't even ask for solutions. Maybe a technote that addresses this in some way would already be helpful. Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
Re: [flexcoders] Re: SEO Compatibility
I just wished Adobe would actively approach and discuss the problem we are facing. I don't even ask for solutions. Maybe a technote that addresses this in some way would already be helpful. AND, re: the potential problem that Google punishes websites which in whatever way tweak the display of the indexed data (for example by adding a Flex UI layer on top), it would be TREMENDOUSLY helpful if Adobe would approach Google and once and for all clarifies what's allowed and what's not. If that's ever possible, that is. Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
Re: [flexcoders] Re: SEO Compatibility
AND, re: the potential problem that Google punishes websites which in whatever way tweak the display of the indexed data (for example by adding a Flex UI layer on top), it would be TREMENDOUSLY helpful if Adobe would approach Google and once and for all clarifies what's allowed and what's not. If that's ever possible, that is. PLUS.. ;) I'd be interested in how Ajax applications handle SEO, as they likely face the same, or similar problems. Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
Re: [flexcoders] Re: SEO Compatibility
PLUS.. ;) I'd be interested in how Ajax applications handle SEO, as they likely face the same, or similar problems. Ok, Ajax apps probably don't face as much problems as Flex apps as the displayed data is HTML and contains links that spiders can follow, so disregard this. Sorry for talking to myself on a Saturday night. No, i don't have a life. Have a nice weekend, everyone! Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
Re: [flexcoders] html-like form in Flex?
How do I do this in Flex? I can't see how to inline a combo box inside a text element. I don't want to bodge it by manually putting Flex comboboxes over some text with big gaps in it. You just need to stick some Text controls either side of the ComboBox controls, no ? No, what he wants is form controls that flow with the text (all HTML form controls default to inline). This is currently not possible in Flex/Flash. Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Multiple classes per package
I was meaning more whether it is possible to put 2 classes in 1 .as file, within a single package definition. So far, it looks like this is not possible. Yes, you can do that, but then the second class has to be defined outside the package, and is only visible to the first class (and not to other classes in the same package). Afaik. // File mypackage/MainClass.as package mypackage { public class MainClass { // .. } } class HelperClass { // .. } Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Set Focus on TextInput
I'm having a brain f*rt. In 1.5 you could do a Selection.setFous(textInput id) from a show attribute for the container where the TextInput component resided. This would place the cursor inside the TextInput field How is this done in Flex 2.0? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ override protected function childrenCreated():void { input.setFocus(); } ]] /mx:Script mx:TextInput x=27 y=147 id=input/ /mx:Application Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Multiple classes per package
Does anyone know if Actionscript 3 and Flexbuilder2 support multiple classes per package, where only 1 class is declared as public, while the remaining classes are only available inside the package? Eg. package mypackage { public class MainClass { public function MainClass() {} } class HelperClass { public function HelperClass() {} } } Use the 'internal' access modifier: // File mypackage/MainClass.as package mypackage { public class MainClass { // .. } } // File mypackage/HelperClass.as package mypackage { internal class HelperClass { // .. } } Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Introducing FZip... ZIP it up!
Did you ever write an image gallery or a game in Flash? Did it bother you to write rather complicated load queues to load lots of small files such as image thumbnails or game assets like tiles? Are you working with big text files and need a reliable way to compress/uncompress them to save valuable bandwidth? I'm proud to announce FZip, a cute little Actionscript 3 class i've been working on together with Max Herkender [1] that enables you to load standard ZIP archives and extract contained files while the archive is still loading. Check it out: http://codeazur.com.br/lab/fzip/ ASDocs: http://codeazur.com.br/lab/fzip/docs/ FZip is released under OSI approved zlib/libpng license. Sample usage: public function YourApp() { var request:URLRequest = new URLRequest(your.zip); var zip:FZip = new FZip(); zip.addEventListener(FZipEvent.FILE_LOADED, fileCompleteHandler); zip.load(request); } private function fileCompleteHandler(evt:FZipEvent):void { var file:FZipFile = evt.file; trace(File loaded: + file.filename) trace( + file.sizeCompressed); trace( + file.sizeUncompressed); } [1] http://blog.brokenfunction.com/ -- claus wahlers côdeazur brasil http://codeazur.com.br -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
On a high quality machine, WS can take 400ms, but on a slower machine it can take 3-10 seconds for a single call and the larger the data exchanged, the worse it gets. Not good. Aren't you exaggerating a bit here? Can you give a real world example of a SOAP XML that takes 400ms to parse/consume on a high end machine? I mean, we're talking Flash Player 9, aren't we? Cheers, Claus. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
No I am not exaggerating. Run a Web Services call on my mothers old Dell and you can count the seconds. When AMF was first added to Flash Player 6, the primary reason was performance on slow machines. AMF was much faster then and it remains the case. XML parsing performance decays non-linearly on slower machines and with larger xml documents. I fully understand that AMF is faster than XML. I also understand that FDS offers us way more than just AMF. I also understand that FDS in general, and AMF in particular makes things much easier for developers. I just don't want to accept that XML is as slow as you make it appear to be ;) Keep me honest Claus! I try ;) Cheers, Claus. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides
There are many other very smart things you can do like extending existing controls to do streaming rendering of data to provide the perception of speed, server side paging, caching, etc. I fully agree with Dave. In the Flash world, XML has always been ill-reputed as being 'bloated' and 'slow'. This probably originates from Flash Player 5 times where XML parsing was slow and 56k modems were still the norm. Today, if i would have to choose, i would always go for standard and user readable formats, as they are way easier to debug and maintain, and don't lock me in to hard to debug, proprietary binary formats. The small speed advantage you get just doesn't outweigh the disadvantages, imho. Cheers, Claus. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: XML parser chokes on un-typed xmlns
Another idea I had would be to automagically loop through all the nodes in the XML, find all the namespaces, and declare them... But frankly, I don't know enough about the topic to understand the downsides of doing something like that. What do you think of the idea? Class XML: AS3 function XML.namespaceDeclarations():Array Lists namespace declarations associated with the XML object in the context of its parent. Does that help? Cheers, Claus. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] how do I get the type or class of an object in AS3
hank williams wrote: I have an object that is either a TextArea or a TextInput. I want to find out which one it is. How do I do that? if(o is TextArea) { .. } Cheers, Claus. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] how do I get the type or class of an object in AS3
hank williams wrote: So is is a new keyword. Cant find it in the online docs because I guess its to common so it returns nothing found. Does that have any other uses? Not that i know of.. http://livedocs.macromedia.com/flex/2/langref/operators.html#is Although the instanceof operator is available, it only checks the prototype chain, which is not the primary inheritance mechanism in ActionScript 3.0. Use the is operator to check whether an object is a member of a specific data type. Cheers, Claus. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex component that encapsulates DENG?
Flex needs a way to embed html based content in the app. As far as I know, no solution exists except IFRAMES. After trying everything I could think of for a week, I've come to the conclusion what's needed is a scalable component that uses something like DENG ( http://claus.packts.net/ ) to render HTML as a SWF. To be truly useful, the component would have to be able to render any foreign URL on demand, and at least do a decent job with most. It shouldn't be hard to plug DENG 1.0 into Flex 1.5 (it should be possible to even plug it into Flex 2 although you'd have to find a way for Flex 2 to communicate with DENG, or more generally, for AS3 to communicate with AS1/2 - the only way i can think of to do that is using wicked localconnection tricks). However, i don't think DENG 1.0 will be able to render any foreign URL (not 100% sure what you mean with that). Firstly, it expects wellformed XHTML (it won't render HTML), and secondly, the engine does not support the full CSS box and line box models (for example, we use the Flash TextField object to render inline level elements, and we do not support floats, absolute positioning and the likes - most of these limitations will be gone with DENG 2.0 though) Last I heard, Claus Co are ontop of it and have been holding out due to the limitations of pre-8.5 world of luv. We are currently in planning/standby/prototyping mode for DENG 2.0 (written in AS3). The reason we haven't announced anything yet are ongoing negotiations with some entities who are interested in funding DENG 2.0. The final product will be designed to plug seamlessly into Flex 2 (amongst many other things). cheers, claus. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Parsing XML with namespaces in E4X (Flex2)
var res:XML = items xmlns=http://example.com/; itemapple/itemitemorange/item /items; trace(res.item[0]); var res:XML = items xmlns=http://example.com/; itemapple/itemitemorange/item /items; var ns:Namespace = res.namespace(); trace(res.ns::item[0]); cheers, claus. Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex 2 Alpha is here???
Don't worry by this tomorrow you gonna have Alpha-bits with you... define tomorrow... ;) http://labs.macromedia.com cheers, claus. Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/