Re: [flexcoders] Debug Flash Player 10.0.42.34 ?
On Thu, Dec 10, 2009 at 11:23:38 -0500, Rick Winscot wrote: > Any ETA or information from Adobe-ites when we might expect to see debug > packages? They are available here: http://www.adobe.com/support/flashplayer/downloads.html Look for the "12/8/2009" sections.
[flexcoders] AIR has different behaviour in XML.appendChild() vs Flex for String values?
Hello, has anyone else noticed that AIR's XML.appendChild() implementation differs in behaviour from the regular Flex/Flash Player? In particular, AIR appears to perform XML escaping of strings, while Flex/FP sort of expects already-escaped Strings? The following example yields different results in AIR vs Flex: Output in Flex: hello <&> test Output in AIR: hello <&> test Note the double XML encoding in AIR. The AIR behaviour is of course the most correct; one would really expect "y.appendChild('hello <&> test');" to be proper API usage, but that just breaks the flash player. So, to handle arbitrary user input (including stuff that resembles XML markup) to an XML node value in FP it is necessary to manually apply XMl encoding to the string before passing it into appendChild(), but in AIR this naturally results in doubly-encoded text nodes. This is particularly problematic when working with flex library projects that are shared between flex and air projects. Guess I'll need to add some air detection code, and only do the manual XML encoding on the string if running outside of AIR. (Also, trying to use CDATA notes doesn't work either, especially if the text to escape contains ]]>) Comments?
[flexcoders] E4X normalize() + CDATA = invalid XML, data loss
I'm getting some very strange results from E4X and normalize() when working with CDATA text nodes, especially when those text nodes may contain strings that, unescaped, represent CDATA end tags. Consider the following code: var x:XML = ; x.appendChild(''); x.appendChild(''); trace ('--- before normalize (string value) ---'); trace (x.toString()); trace ('--- before normalize (full xml) ---'); trace (x.toXMLString()); trace ("\n"); x.normalize(); trace ('--- after normalize (string value) ---'); trace (x.toString()); trace ('--- after normalize (full xml) ---'); trace (x.toXMLString()); trace ("\n"); var xAsString:String = x.toXMLString(); x = XML(xAsString); trace ('--- after reparse (string value) ---'); trace (x.toString()); trace ('--- after reparse (full xml) ---'); trace (x.toXMLString()); trace ("\n"); Here's the output when using Flash Player 10.0.12.36 Debug on Linux: --- before normalize (string value) --- test1 ]]> test2 --- before normalize (full xml) --- --- after normalize (string value) --- test1 ]]> test2 --- after normalize (full xml) --- test2 ]]> --- after reparse (string value) --- test1 test2 ]]> --- after reparse (full xml) --- test2 ]]> Note how the call to .normalize() causes the text of to be concatenated to one incorrectly formatted CDATA node, containing an unescaped "]]>" end-of-CDATA marker. The resulting XML is invalid and will not parse with other XML parsers, such as libxml2's xmllint: badxml.xml:1: parser error : Sequence ']]>' not allowed in content test2 ]]> Using Flash's E4X to re-parse this XML does not throw an error, but the resulting XML does not represent the original XML in any way. It appears that the XML parser switches out of "CDATA-mode" when reaching the first end-of-CDATA-marker (between 'test1' and 'test2'), and then enters some sort of "lenient parser mode" where it "helpfully" converts the bare '>' after test2 into >. Of course, the resulting string value for 's text node is very much different from its original contents. (compare 'after normalize (string value)' to 'after reparse (string value)') On the other hand, not calling .normalize() causes the resulting XML to contain a newline "\n" character between the two original CDATA text nodes, which when parsed by other xml readers usually results in "]]\n>", or worse "]]\n >". Anyone have any experience with how to properly embed strings containing "xml-ish" content with E4X?
Re: [flexcoders] Re: Using ampersand character in contextmenuitem label
On Mon, Oct 27, 2008 at 19:05:11 -, diehlryan wrote: > I haven't tried this, but try using the & in place of & like you > would have to do in MXML... > > menu.customItems.push(new ContextMenuItem('1Test & test')); Thanks for the suggestion, but unfortunately that doesn't work either. At least on Windows it renders as "Test amp; test" with the 'a' in 'amp;' underlined. (didn't bother to test the other platforms9.
[flexcoders] Using ampersand character in contextmenuitem label
Does anyone know if it's possible to use the ampersand ("&") character in a contextmenuitem label? (i.e. as an entry in a custom right-click flash menu) It appears that the underlying GUI framework interprets the "&" character in various ways depending on OS, most of the time causing the following character to be underlined, as if it was the hotkey for the menu item in question. These are some results I've observed: Label 'Test & test': * On windowsxp + ff3 + FP 9: "Test test" * On windowsxp + ie7 + FP 10: "Test test" * On linux + ff3 + FP 10: "Test _test" * On mac os x + ff3 + FP 9: "Test test" * On mac os x + safari + FP9: "Test test" Label 'Test && test': * On windowsxp + ff3 + FP 9: "Test & test" * On windowsxp + ie7 + FP 10: "Test & test" * On linux + ff3 + FP 10: "Test & test" with & underlined * On mac os x + ff3 + FP 9: "Test test" * On mac os x + safari + FP9: "Test test" Some sample code: package { import flash.display.Sprite; import flash.ui.ContextMenu; import flash.ui.ContextMenuItem; public class test_as3 extends Sprite { public function test_as3() { var menu:ContextMenu = new ContextMenu; menu.customItems.push(new ContextMenuItem('1Test & test')); menu.customItems.push(new ContextMenuItem('2Test && test')); contextMenu = menu; } } } Should I file this as a bug on the flash player jira tracker?
[flexcoders] Connecting to flexbuilder debugger from flash player without launching a new debug session?
(Resending since the first mail never showed up, sorry for any duplicates that may appear) Hello list, Is there a way to configure Flex Builder 3 to always be listening in the background for debugger connections from the Flash Player? In other words, I'd like to be able to right click in the flash player, choose "Debugger..", click "Connect" and have Flex Builder enter debug mode on a SWF that has already been running for a while in the browser. I've figured out a hack that sort-of gets me there - by configuring a debug profile in flex builder with "about:blank" as the launch URL, I can hit F11 in flexbuilder, click "Debug", close the about:blank window in Firefox, switch back to the running SWF, rightclick, choose "Debugger" and click "Connect". But it would be much better if one could avoid having to do the whole F11-about:blank-closetab dance, and just click "Debugger->Connect" and go. For what it's worth, this is on Linux with Firefox 3. - Frode
[flexcoders] Connecting to flexbuilder debugger from flash player without launching a new debug session?
Hello list, Is there a way to configure Flex Builder 3 to always be listening in the background for debugger connections from the Flash Player? In other words, I'd like to be able to right click in the flash player, choose "Debugger..", click "Connect" and have Flex Builder enter debug mode on a SWF that has already been running for a while in the browser. I've figured out a hack that sort-of gets me there - by configuring a debug profile in flex builder with "about:blank" as the launch URL, I can hit F11 in flexbuilder, click "Debug", close the about:blank window in Firefox, switch back to the running SWF, rightclick, choose "Debugger" and click "Connect". But it would be much better if one could avoid having to do the whole F11-about:blank-closetab dance, and just click "Debugger->Connect" and go. For what it's worth, this is on Linux with Firefox 3. - Frode
Re: [flexcoders] Encoding Problem in linux
On Thu, Jun 19, 2008 at 09:30:01 -, Deniz Davutoglu wrote: > Hello Guys, > Today I switched completely to Ubuntu Linux. Last month I produced > some CMS for our corporate website in FLEX. From Linux I tried to > update some content but I experienced something wear. When I try to > enter new data from keyboard characters which are in Turkish like > "öüşç" become "öüçÅ" but same chars which comes from MYSQl seems ok. > do you have any idea about this problem. Could it be related to this Linux Flash player bug? http://bugs.adobe.com/jira/browse/FP-40
[flexcoders] EventDispatching - need a little help with this one
I'm using bubbling, or at least i think i am to capture an event... I've extended the event class to make my own event mechanism. the events are being dispatched, however the problem is, that I'm adding an event listener to my custom mxml component to receive the events and nothing happens. I've probably got something backwards... Doesn't bubbling set to true allow the event to be captured by any component in the order that they are created? my code is as follows: var evt:MeEvent = new MeEvent(MeEvent.REMOTE,true); dispatchEvent(evt); --- package com.me { import flash.events.Event; public class MeEvent extends Event { public static const REMOTE:String = "remote"; public var realTarget:*; public function MeEvent(type:String, bubbles:Boolean=true, cancelable:Boolean=false) { super(type, bubbles, cancelable); } } } -- And inside my custom component this is the event listener. private function init():void{ this.addEventListener(MeEvent.REMOTE, handleEvent); } Thanks for your time, Patrick
Re: [flexcoders] loading xml
Looks like you need to use the mxmlc compiler argument '-use- network=false' when compiling your application. Flex livedocs entry on this topic: http://livedocs.macromedia.com/ flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm? context=LiveDocs_Parts&file=1500.html You're code also looks a bit odd to me. I don't believe it will compile because the URLLoader constructors requires a URLRequest and won't accept a string value. I'm guessing you meant myLoader = new URLLoader(myXMLURL); HTH Chafic On Aug 12, 2006, at 8:45 PM, aaron smith wrote: > how do I load local XML? > > I was doing this: > > private function loadXML():void > { > myXML = new XML(); > myXMLURL = new URLRequest(XML_URL); > myLoader = new URLLoader(" menu.xml"); > myLoader.addEventListener("complete", xmlLoaded); > } > > private function xmlLoaded():void > { > myXML = XML(myLoader.data); > trace("Data loaded."); > } > > > > but it spits out errors. Is there security issues? > > here are the errors.. > > SWF file file:///C|/Documents%20and%20Settings/aaronsh/Desktop/dev/ > flash/%5F%20AS3%20TESTING/3waylayout/classes/Main.swf cannot access > local resource file:///C|/Documents%20and%20Settings/aaronsh/ > Desktop/dev/flash/%5F%20AS3%20TESTING/3waylayout/classes/menu.xml . > Only local-with-filesystem and trusted local SWF files may access > local resources. > > Do i need to do something different for local files? I would think > it would be the same as how you load from a URL... > > thanks. > > -- 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/
[flexcoders] strange undefined property error
Below is the complete code. I've done a few test 'applications' with flex 2.0 in the last few weeks. When I decided to dig deeper into xml and flex however everything went weird. The following code gives an undefined property error on both 'a' and 'test'. I might be overlooking something obvious here, but as far as I can see the code is correct. What could cause this? Kind regards, Sonja Duijvesteijn http://www.macromedia.com/2005/mxml"; xmlns="*" layout="absolute"> -- 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] Dealing Cards Sequentially
I think you mean something like the setInterval() of as2. That is replaced by the timer class in as3. I haven't used it yet, but when you know what to look for things should be easier already. Good luck. Sonja Duijvesteijn > Hi Folks: > I'm animating the dealing of a deck of cards. The animation is not a > problem thanks to excellent AS3 methods! What the issue is is I'd > like to deal each card individually. What currently happens is I put > everything in a loop and animate the cards moving from point A to > point B. However, the end result is all the cards moving in unison > from point A to point B. Is there a "Yield" facility in AS3 > where I > can yield control to the Flash player while I'm looping through > rendering each card? I know in C++ and VB you can yield control to > the O/S and I realize we're in a different situation here but is > there something like that in AS3 and Flex? The pseudo code might be > as follows: > > Create (Embed) Bitmaps > Create card bitmap classes > While (isPlaying) > { >/* Yield */ >render card(i) >moveTo (positionXY) >i++ > } > > I hope this makes sense...:-) > > Cheers, > Dave > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > > > > SPONSORED LINKS >Web site design development > Computer software development >Software design and development > Macromedia flex >Software development best practice > YAHOO! GROUPS LINKS > Visit your group "flexcoders" on the web. > To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > -- 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/