[flexcoders] How do you use the img tag with TextLayout.swc
I know it might sound like a dumb question, but I added something like flow:img src='someurl' flow:img in a paragraph. and nothing showed up. Thanks,
[flexcoders] I've run into som real woes with FB4
I've had to re-install the application after my application became unusable. I've run into a handful of show stoppers, and real annoying things. noted on OSX first imports started importing in the middle of my class files with the auto mode instead of at the top 4.00 sdk debugger fails often on my AS project using the the 4.00 sdk my project became unreadable had to check it out again, kept telling me to restart the find replace plugin failed, and made my night a disaster and finally the software had to be reinstalled because my workspace wouldn't reset to FLASH And, last but not least, my software, full release says BETA on the top bar. Hope a patch comes out soon
[flexcoders] Why the color change of the flash program icon from red to white in FB4
Just curious? I liked the red icon, know it's hard to see my .fla icon, amidst all my others, is this icon customizable? Thanks, Patrick
[flexcoders] Wow. Healthcare passed and flashbuilder 4 all in the same day
Hi, Now how much is the upgrade, and how do i buy it? Looks like the upgrade is not available through the on-line adobe store. Cheers engineers, and qa and the whole loop.
[flexcoders] Re: Make a Timer's first timeout event immediate
By the way, here's how i skin this cat: 10ms and 0ms might be the same thing to flashplayer, as people have mentioned before me updateTimer = new Timer(); pollTimer = new Timer(6*60*5,0); updateTimer.addEventListener(TimerEvent.TIMER,onUpdateTimer); updateTimer.start(); onUpdateTimer(null)
[flexcoders] Re: Why most Flex Developer job ads ask now for Knowledge in Java??
Don't you think those requirements are cut and paste? Being a good flex developer with experience in other structured languages is good, but usually isn't a deal-breaker, I mean really, are you going to be crafting a backend unit and doing all the ui too? If you are, well more power to you, I find the flex/air sandbox enough work to keep my nose out of most of the backend, on big projects anyway. Food for thought. --- In flexcoders@yahoogroups.com, fred44455 fred44...@... wrote: Since this year you don't seems to be able to find a Job Offer in Flex without the requirement: Knowledge in Java, JEE2 etc.. required( Most job ads in Dice.com) Is that mean that now not only I need to learn Flex but also Java to be able to find a Flex Developer job??
[flexcoders] LocalConnection onFlexApp from Air - problem, errors
[AsyncErrorEvent type=asyncError bubbles=false cancelable=false eventPhase=2 text=Error #2095: flash.net.LocalConnection was unable to invoke callback passUser. error=ReferenceError: Error #1069: Property passUser not found on flash.net.LocalConnection and there is no default value. errorID=1069] LocalConnectionProxy.tryConnection() LocalConnectionProxy. ArgumentError: Error #2082: Connect failed because the object is already connected. I have allowScriptAccess set to always, and any ideas on the #1069? I definitely have a public method called, passUser, and i have the client property setup = this.
[flexcoders] LocalConnection onFlexApp from Air - problem, errors
[AsyncErrorEvent type=asyncError bubbles=false cancelable=false eventPhase=2 text=Error #2095: flash.net.LocalConnection was unable to invoke callback passUser. error=ReferenceError: Error #1069: Property passUser not found on flash.net.LocalConnection and there is no default value. errorID=1069] LocalConnectionProxy.tryConnection() LocalConnectionProxy. ArgumentError: Error #2082: Connect failed because the object is already connected. I have allowScriptAccess set to always, and any ideas on the #1069? I definitely have a public method called, passUser, and i have the client property setup = this.
[flexcoders] Copy/Paste Camino
Copy and Paste, will this work on Camino in the near future?
[flexcoders] Re: Copy/Paste Camino
This actually works now... nm... Maybe Camino 2.01 fixed this it works now. --- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote: Copy and Paste, will this work on Camino in the near future?
[flexcoders] Copy/Paste Camino Fedora 12 Linux
Fails. anybody? --- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote: This actually works now... nm... Maybe Camino 2.01 fixed this it works now. --- In flexcoders@yahoogroups.com, djhatrick djhatrick@ wrote: Copy and Paste, will this work on Camino in the near future?
[flexcoders] Re: PureMVC Folks...
ew. javascript :( But me loves puremvc --- In flexcoders@yahoogroups.com, jamesfin james.alan.finni...@... wrote: For you PureMVC/AS3 Folks... There's a new PureMVC Port in town...JavaScript. Well sort of. There's really an update using MooTools which will really move JavaScript along in the AS3/PureMVC developers toolbox. Base Project: http://trac.puremvc.org/Demo_JS_BoxSplash Demo: http://puremvc.org/pages/demos/JS/Demo_JS_BoxSplash/ Source: http://puremvc.org/pages/demos/JS/Demo_JS_BoxSplash/js/boxsplash.js If you have ever thought of writing JS, this is a good place to start.
[flexcoders] Keyboard constants gone....
OMG, why were these removed from the flex sdk. why? Annoying.
[flexcoders] FocusManager throws an error once in a while - defaultButton null
TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.managers::FocusManager/focusInHandler()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\managers\FocusManager.as:601] There's nothing in the debugger but this error, happens a lot, // restore the default button to be the original one if (defButton defButton != _defaultButton) { defButton.emphasized = false; defButton = _defaultButton; _defaultButton.emphasized = true; }
[flexcoders] Re: FocusManager throws an error once in a while - defaultButton null
Looks like this has been fixed in the 3.5 sdk, thanks engineers if (_defaultButton) _defaultButton.emphasized = true; --- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote: TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.managers::FocusManager/focusInHandler()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\managers\FocusManager.as:601] There's nothing in the debugger but this error, happens a lot, // restore the default button to be the original one if (defButton defButton != _defaultButton) { defButton.emphasized = false; defButton = _defaultButton; _defaultButton.emphasized = true; }
[flexcoders] Re: LocalConnection has me really confused
Anybody anybody??! I am on mac, and localConnections is not working between flash and air. Connections stay open, and my desktop client doesn't receive a connection from my browser. See, if navigateToURL posted it's params, I wouldn't be here. Any reason why navigateToURL doesn't post variables properly, although the documentation would lead you to believe it does. My use-case requirement is straight forward, you click on a button in my air app, and automatically you are logged into the flash app. Any ideas? What to do? I can't satisfy my requirements until I can get past this hurdle. Thanks, Patrick --- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote: Has anybody successfully got air and a flash app in the browser to working? --- In flexcoders@yahoogroups.com, djhatrick djhatrick@ wrote: Alex, yes, I did, localConnection has some problems in flash 10, connections stay open, and the api is unreliable at best. Unfortunately, I am trying to bridge air-browser app integration --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: Did you use _ as described here? http://livedocs.adobe.com/flex/3/html/help.html?content=17_Networking_and_communications_4.html On 1/15/10 3:51 PM, djhatrick djhatrick@ wrote: I can't get localConnection working with flashplayer and the air app. Is this going to be fixed in 10.1. I'm into about 5 hours of trying to make this to work and getting nowhere. I've read about connections staying open, but have yet to send anything successfully between flash and air. Thanks, please fix tomorrow ;P Patrick -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Flash 10.1 - When???
When are the official releases for Flashbuilder, Flash 10.1 and Air 2.0. I am bragging about some of the new features , and i get asked when? Please don't reply with, when it's ready thanks, Patrick
[flexcoders] Re: HTTPService token: a bug or by design?
This is a bug with the 3.4 sdk, pick up the 3.41 , or 3.5 sdk. P --- In flexcoders@yahoogroups.com, Tim Romano tim.rom...@... wrote: I've run into one bug in the mx.rpc.http.HTTPService class in FB4 beta 2 -- the AsyncResponder's onResult function fires *twice* unless you wire up a dummy eventhandler. And so I am wondering if the following is not also a bug: var myResponder : AsyncResponder= new AsyncResponder(onResult, onFault); var token: AsyncToken; token = send(); token.addResponder(myResponder); function onResult(e:ResultEvent , token:Object=null):void {} The token parameter is always null in the onResult function. Isn't that parameter supposed to contain the token to which the Responder was added? Thanks Tim Romano
[flexcoders] Will there be any changes in the current 3.x SDK to measure text correctly
This is a fundamental thing, right, measuring text? It shouldn't require some hacks, with timeouts to try to measure text after you change it. This is my biggest complaint, please. Fix text. Fix Text. Make it measure, give us internal access to numRows, or something and the internal textField, without having to extend text... please please, I beg of you... We ask that you do this? I just can't figure out for the life of me this is even this way. I have components that need to resize depending on the real-true height of their internal text component. Is there any proven solution to make this work correctly? Why oh why, is this the way it is? Please explain or point blame to another team. Off the soapbox, I apologize if I offended you, but it offends me that I can't with one line of code get the true height of my text. -Sincerely, Disgruntled
[flexcoders] Re: LocalConnection has me really confused
Has anybody successfully got air and a flash app in the browser to working? --- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote: Alex, yes, I did, localConnection has some problems in flash 10, connections stay open, and the api is unreliable at best. Unfortunately, I am trying to bridge air-browser app integration --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: Did you use _ as described here? http://livedocs.adobe.com/flex/3/html/help.html?content=17_Networking_and_communications_4.html On 1/15/10 3:51 PM, djhatrick djhatrick@ wrote: I can't get localConnection working with flashplayer and the air app. Is this going to be fixed in 10.1. I'm into about 5 hours of trying to make this to work and getting nowhere. I've read about connections staying open, but have yet to send anything successfully between flash and air. Thanks, please fix tomorrow ;P Patrick -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Re: LocalConnection has me really confused
Alex, yes, I did, localConnection has some problems in flash 10, connections stay open, and the api is unreliable at best. Unfortunately, I am trying to bridge air-browser app integration --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Did you use _ as described here? http://livedocs.adobe.com/flex/3/html/help.html?content=17_Networking_and_communications_4.html On 1/15/10 3:51 PM, djhatrick djhatr...@... wrote: I can't get localConnection working with flashplayer and the air app. Is this going to be fixed in 10.1. I'm into about 5 hours of trying to make this to work and getting nowhere. I've read about connections staying open, but have yet to send anything successfully between flash and air. Thanks, please fix tomorrow ;P Patrick -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] LocalConnection has me really confused
I can't get localConnection working with flashplayer and the air app. Is this going to be fixed in 10.1. I'm into about 5 hours of trying to make this to work and getting nowhere. I've read about connections staying open, but have yet to send anything successfully between flash and air. Thanks, please fix tomorrow ;P Patrick
[flexcoders] Issue with packages and folders - ui
I have a package 'flexlib.controls.gauge' and there are no class files in controls, just the folder/package gauge The way flashbuilder works with packages, I can't drag/save a file into the flexlib.controls folder...The workaround is to drag and drop outside flex into the my flexlib.controls Is this intended,seems like a ui oversight to me. Also, why can't we drag and drop multiple files into packages from our desktop into flashbuilder. That bug has been really annoying, and affected flex/flashbuilder 4eva. Thanks for helping, Patrick
[flexcoders] Re: how to open pdf, word file using flex
You need to use Live Cycle Data Service, or Air. Unfortunately, PDF support is not baked into Flex. But I wish it was, it would be fantastic if it came bundled, it would make Flex so much more popular. --- In flexcoders@yahoogroups.com, vikranth4u vikrant...@... wrote: Hi can anybody help me regarding how to write a code to open a pdf or doc file using flex
[flexcoders] Re: mx.controls.Text
This is interesting, a hack, I created a uiTextField, on my component, and on an interval, check the height of the uiTextField and use the height of the uiTextField to set my text/componenent's height, and it works. I'm hoping in Flex4, there's a better way to work with Text, although, I'm in a major Flex 3 project, a year long project, so it might be about 6 months before I take that dive. Thanks, Patrick --- In flexcoders@yahoogroups.com, invertedspear invertedsp...@... wrote: Not sure exactly what your trying to but might the getBounds() method help you out? --- In flexcoders@yahoogroups.com, djhatrick djhatrick@ wrote: is there anyway to find the number of textRows in a TEXT. I can't seem to get my text to measure properly, it's anywhere between 5 and 80 pixels off. It's a subject of much frustration, unfortunately, the the Text component has a lot of protected properties. Any suggestions on a free component as a replacement, etc. Thanks, Patrick
[flexcoders] Custom List
I have a custom item renderer, and it's based on textInput. I want the user to use my list control, much like a textArea, where he/she can just, ENTER,TAB,DOWN_CURSOR, through the control. And after, the next item is added and focus is set automatically. I can't seem to manage focus on this control in a list, I have the property renderAsEditor=true, however when I hit enter, focus doesn't take the user automatically to the next item and set focus on my textInput in the list. I tried to add a setFocus on a creationComplete event, to no avail. What are the steps to making this work please? I saw some datagrid exmaple's on Alex Hurai's blog, but I think it's not with a custom Item Renderer. Thanks, Patrick
[flexcoders] mx.controls.Text
is there anyway to find the number of textRows in a TEXT. I can't seem to get my text to measure properly, it's anywhere between 5 and 80 pixels off. It's a subject of much frustration, unfortunately, the the Text component has a lot of protected properties. Any suggestions on a free component as a replacement, etc. Thanks, Patrick
[flexcoders] Flash components in Flex
I built a gauge component all in Actionscript, that I added to a uicomponent. My question is, what's the best way to use fonts from an actionscript based Flash component, in a uiComponent shell. I tried using a UITextField in my component and using the textFormat class to set my fontFamily, which worked, however, when I change the values, the font's would revert to being not embedded, no matter if i set the textFormat on the uiTextField after the change, again. I noticed the Font. top level class is not available to the flex SDK. Any help, would be greatly appreciated. My textfields are all dynamic, that show up around my circle... Thanks community. Using 3.41 SDK. Patrick
[flexcoders] html_template replaces in js folder at random
It's always replacing these files - I don't know where it gets them from, they are not in my project. Is there a way to make the ones I want 'stick', I have my html_template connected with subversion, so I can get my files back. Thanks for your time, patrick
[flexcoders] Re: Changing the background of an AS3 project in Flex
If you don't need it to by dynamic put this at the top of your constructor: [SWF(width=1000, height=1000, frameRate=24, backgroundColor=#00)] P --- In flexcoders@yahoogroups.com, Calbeans jwrigh...@... wrote: --- In flexcoders@yahoogroups.com, Michael mportuesi@ wrote: In your top-level application MXML file, try adding this attribute to your mx:Application tag: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; backgroundColor=#ff --- In flexcoders@yahoogroups.com, Calbeans jwright04@ wrote: Hi All, I'm working on an AS3 project using Flex and I'm trying to figure out how to change the background from that default light off blueish color to something different. I looked at the index.template.html file and figured that I can do it in there, but it appears that I can't. Anyone have an idea on how to do this?? Thanks in advance. Since it's all AS3, i don't have an MXML file =( I guess I can just publish another HTML file and just use that one. It's just one less step I wanted to take, but I guess it's not a huge problem.
[flexcoders] Re: html_template replaces in js folder at random
I misspoke, it's actually my bin_debug js folder that's getting these mysterious js files in there... Does just replacing the folder fix this issue, thx? --- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote: It's always replacing these files - I don't know where it gets them from, they are not in my project. Is there a way to make the ones I want 'stick', I have my html_template connected with subversion, so I can get my files back. Thanks for your time, patrick
[flexcoders] LocalConnection - Meh!
[flexcoders] Anyone having issues with the debugger not working correctly in Flashbuilder
I have lines of code where I can't step through in the debugger, flashbuilder seems to skip them
[flexcoders] Flashbuilder and SnowLeopard ok?
I want to upgrade to Snow Leopard, first things first, do Flasbuilder and SnowLeopard work ok together?
[flexcoders] Suggestion for Adobe Team: Open Browser project
Open Browser project... Since Adobe has done such a masterful job with 'The Open Screen Project'. I think you should follow suit and do an Open Browser Project. I am one of those developers who would like to see the flashplayer get more horsepower to handle the ever-growing scope of our applications. Some of the support I'd like to see: - Full Restful support in all browser, allowing all status code results to get to flashplayer - Ability to set encoding in header to ask for GZIP datasets from the browser - Proper scroll-wheel implementation with Firefox on Mac - Ability to paste into textfields on Camino - Proper Wmode support If you were able to work with the browser community as well as the handset manufacturers Flashplayer would be a lot better. It is time consuming, and your end developer community on the front-line has to make the excuse why things that should work don't. So, it's just a suggestion for the comment box. Thanks, Patrick
[flexcoders] Re: What's up with Flashbuilder beta2 and the export release build
Right. Tanks for remindin me. --- In flexcoders@yahoogroups.com, Nick Collins ndcoll...@... wrote: Um.. that's why it's Beta. On Tue, Nov 3, 2009 at 6:41 PM, djhatrick djhatr...@... wrote: Takes a half hour, then says my project has errors and can't do it -- the compiler can't find em i guess -- what a suck-a-thon!
[flexcoders] Re: Fonts re-vanishing in module - Solved finally
I didn't trace I used the debugger but it doesn't seem to be a problem now. Wow how dumb of me, i had the style sheet embedded to the module and didn't even notice, probably because it was the first one I created. This is fixed and I am doing things properly, this is great read for anybody who is diving into the fantastic land of modules and how style work with them: http://livedocs.adobe.com/flex/3/html/help.html?content=styles_10.html --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: How did you prove it is null? IIRC, it doesn't always trace() very well. From: flexcoders@yahoogroups.com [flexcod...@yahoogroups.com] On Behalf Of djhatrick [djhatr...@...] Sent: Tuesday, November 03, 2009 2:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Fonts re-vanishing in module var myLoaderContext:LoaderContext = new LoaderContext(); myLoaderContext.applicationDomain = ApplicationDomain.currentDomain; why would applicationDomain be null after setting it in a creationComplete? --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, djhatrick djhatrick@ wrote: Only one module gives me this problem, but it went away for an hour and is back. I'm :( Thanks, Patrick
[flexcoders] SwfObject and 3.41 compiler - why not?
I've been using the swfobject compiler for a while now and, it's ease of use and simple api is great. I know on Flashbuilder 4 projects that use the new compiler and actionscript project, the swfOBject template is used Question: How come after the cross-scripting vulnerability in the AC_OETags.js file wasn't the swfObject template replaced? Just curious Here's a good template to use the browserHistoryManager with SWFAddress, another great tool. http://olegflex.blogspot.com/2008/06/swfobject-2-flex-template.html Thanks, Patrick
[flexcoders] Line 717 of ModuleManager
Anybody have a problem with this line moduleEvent.bytesLoaded = loader.contentLoaderInfo.bytesLoaded; sometimes I get a null reference. Thanks, patrick
[flexcoders] What's up with Flashbuilder beta2 and the export release build
Takes a half hour, then says my project has errors and can't do it -- the compiler can't find em i guess -- what a suck-a-thon!
[flexcoders] Fonts re-vanishing in module
Only one module gives me this problem, but it went away for an hour and is back. I'm :( Thanks, Patrick
[flexcoders] Re: Fonts re-vanishing in module
var myLoaderContext:LoaderContext = new LoaderContext(); myLoaderContext.applicationDomain = ApplicationDomain.currentDomain; why would applicationDomain be null after setting it in a creationComplete? --- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote: Only one module gives me this problem, but it went away for an hour and is back. I'm :( Thanks, Patrick
[flexcoders] Mind telling us progress on very annoying bugs in the sdk
The Scrollbug where if you are scrolling through a big page, the flashplayer loses focus IResponder being called twice with http service results in 3.4? Are these bugs going to be fixed in 3.5? They are pretty important to us (speaking on behalf of every developer) Thanks, Parick
[flexcoders] Re: Mind telling us progress on very annoying bugs in the sdk
Sorry these are really important to my dev, maybe not yours... I'm just asking for some light on the picture here. If you haven't been plagued by these issues affecting your application, oh well you are lucky. Losing the focus of the flash player when scrolling a datagrid or having a double event fire with using HTTPService in IResponder is kind of a big deal. Patrick --- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote: speaking on behalf of every developer Since your choice of words and approach is very annoying in itself, please just speak for yourself. -TH --- In flexcoders@yahoogroups.com, djhatrick djhatrick@ wrote: The Scrollbug where if you are scrolling through a big page, the flashplayer loses focus IResponder being called twice with http service results in 3.4? Are these bugs going to be fixed in 3.5? They are pretty important to us (speaking on behalf of every developer) Thanks, Parick
[flexcoders] calling new CSSStyleDeclaration
causes all my components to flash, is there a way to avoid this? Thanks, Patrick
[flexcoders] Re: calling new CSSStyleDeclaration
ok, thanks, Where do I call this, on my module in initialize? --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Try validateNow Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick Sent: Tuesday, October 20, 2009 6:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] calling new CSSStyleDeclaration causes all my components to flash, is there a way to avoid this? Thanks, Patrick
[flexcoders] SSL - POSTS and GETS Stream Errors 2032's/401 errors, confusing...
Anyone, have problems that happen when trying to use SSL, where these errors happen: I get an OS dialog that prompts me for a username/password from my API? Which fails if I enter it... I tried to make my call a POST and it is transformed as a GET somewhere?? I am running Charles, but I don't know if that compounds the problem? I get 2032 errors in Flex... and my header looks like this: GET /version/1.0/?method=voxel.hapi.authkeys.read HTTP/1.1 Content-Type: application/x-www-form-urlencoded Authorization: Basic MzU1NISOSkZTIzZGIx User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/526.9+ (KHTML, like Gecko) AdobeAIR/1.5 Referer: app:/VoxCloud.swf X-Flash-Version: 10,0,12,36 Accept: */* Accept-Language: en-us Accept-Encoding: gzip, deflate Cookie: __utmz=143675698.1243012113.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=143675698.2378374740763779600.1243012113.1243012113.1243012113.1 Connection: keep-alive Proxy-Connection: keep-alive Host: api.voxel.net http://stackoverflow.com/questions/490806/http-basic-authentication-with-httpservice-objects-in-adobe-flex-air I've implemented the above solution. Last time this happened for a few hours then the problem magically fixed itself, and now it comes back again. Please throw me some solutions, as this stops development completely and ruins my Monday. I just don't know what's going on, but it is really troublesome. Thanks, Patrick
[flexcoders] Re: SSL - POSTS and GETS Stream Errors 2032's/401 errors, confusing...
And this problem has magically fixed itself again, after an hour of confusion? I'm wondering if the the cookies that are passed in with the header, because nothing else has changed with my service call. By the way, the name/password in my first message was changed. Didn't want anybody thinking I would have put my header in my message without changing that first. Thanks, Patrick --- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote: Anyone, have problems that happen when trying to use SSL, where these errors happen: I get an OS dialog that prompts me for a username/password from my API? Which fails if I enter it... I tried to make my call a POST and it is transformed as a GET somewhere?? I am running Charles, but I don't know if that compounds the problem? I get 2032 errors in Flex... and my header looks like this: GET /version/1.0/?method=voxel.hapi.authkeys.read HTTP/1.1 Content-Type: application/x-www-form-urlencoded Authorization: Basic MzU1NISOSkZTIzZGIx User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/526.9+ (KHTML, like Gecko) AdobeAIR/1.5 Referer: app:/VoxCloud.swf X-Flash-Version: 10,0,12,36 Accept: */* Accept-Language: en-us Accept-Encoding: gzip, deflate Cookie: __utmz=143675698.1243012113.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=143675698.2378374740763779600.1243012113.1243012113.1243012113.1 Connection: keep-alive Proxy-Connection: keep-alive Host: api.voxel.net http://stackoverflow.com/questions/490806/http-basic-authentication-with-httpservice-objects-in-adobe-flex-air I've implemented the above solution. Last time this happened for a few hours then the problem magically fixed itself, and now it comes back again. Please throw me some solutions, as this stops development completely and ruins my Monday. I just don't know what's going on, but it is really troublesome. Thanks, Patrick
[flexcoders] Copy/Paste from textInput
I am using Camino, and when the user makes a selection over a textinput and copies, all seems to go well, but then it fails to paste... Are there any limitations to this? This is standard requirement for my app. Thanks, Patrick
[flexcoders] Re: variableRowHeight
Got it, so that's the issue then, how do I know if my itemRenderer is off the screen so I can reset it's measuredHeight, is there a way I can find this information out? Thanks, Patrick --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: The list always remeasures the renderers. It assigns the .data property, sets explicitWidth then calls measure(), then checks for explicitHeight then measuredHeight, and that's the height it uses. But if you can only see three renderers, it will probably create a new one for the one just off-screen, but it will re-use the first renderer for the fifth row assuming the first row is now off-screen. If that renderer still thinks it is in the expanded state when it is not representing row 5 which is not expanded, then scrolling will be off. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick Sent: Friday, October 02, 2009 10:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: variableRowHeight OK makes sense, the problem I am having is that if I have 4 item renderers, i expand renderers 1,2,3, and if the 4th one is out of view when I scroll the list it does not work, until I expand the 4th item, then the scroll works correctly? Is there a way to force the list to remeasure the height of all the renderers to determine how scrolling works? Thanks, Patrick --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: Remember that renderers are recycled so the size of the renderer must be determined from the .data property, it can't just be stored in the renderer instance. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of djhatrick Sent: Thursday, October 01, 2009 6:19 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] variableRowHeight I have collapsing/expanding item renderers in a List, all works well, but there is a case where the scrolling doesn't work correctly? Is there a way to force the list to measure all of it's item renderers correctly please? Thanks, Patrick
[flexcoders] Re: variableRowHeight
OK makes sense, the problem I am having is that if I have 4 item renderers, i expand renderers 1,2,3, and if the 4th one is out of view when I scroll the list it does not work, until I expand the 4th item, then the scroll works correctly? Is there a way to force the list to remeasure the height of all the renderers to determine how scrolling works? Thanks, Patrick --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Remember that renderers are recycled so the size of the renderer must be determined from the .data property, it can't just be stored in the renderer instance. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick Sent: Thursday, October 01, 2009 6:19 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] variableRowHeight I have collapsing/expanding item renderers in a List, all works well, but there is a case where the scrolling doesn't work correctly? Is there a way to force the list to measure all of it's item renderers correctly please? Thanks, Patrick
[flexcoders] variableRowHeight
I have collapsing/expanding item renderers in a List, all works well, but there is a case where the scrolling doesn't work correctly? Is there a way to force the list to measure all of it's item renderers correctly please? Thanks, Patrick
[flexcoders] Re: Flash is weak because it can't handle proper status codes in AS
I actually deleted this post, I didn't want a bunch of flex fans to gang up on me. I just hope the powers that be can read through the lines and see how frustrating this issue is. Everyday I defend the virtues of Flash. I have to tell you though, on this point, the naysayers of Flash that mutter bs like 'Flash isn't a proper development framework' score a point one for their side of court on this issue. I'll be a very happy person and do my victory dance when this issue if totally resolved and make sure that I point out to them this issue has been fixed. Danny, Thanks for asking the question, and please continue to ask... I am actually going to start pointing my frustration at the people who develop browsers too.. Thanks, Patrick --- In flexcoders@yahoogroups.com, DannyT danmo...@... wrote: I actually raised this at FOTB, whilst no one had a definitive answer it's possible the cause of this stems from the Browser Plugin APIs available for the Flash Player to leverage. FP relies on the browser for it's REST implmentation (AIR offers full support apparently) and as such can only get at what the plugin api offers. However, this isn't necessarily STILL the case but could have been in older browsers. No one I spoke to had the answer for sure so I'd still be very interested in a more precise explanation. 2009/9/29 djhatrick djhatr...@... Sorry, I am tired to explaining why this doesn't work to our REST api programmers, and it's been years and still no solution It's so annoying, because it makes programming very difficult... Standards are out there for a reason! Will somebody raise their hand ask the teams why this still isn't addressed at adobe max next week for me, please? Maybe somebody at Adobe should get off their ass and prioritize this issue with browser vendors? Pissed and frustrated, again and again Patrick -- http://danny-t.co.uk
[flexcoders] Re: title Window added to the sytemManager breaks tabIndex
--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Try using PopUpManager. It will install a focusManager for the popup for you. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Alex, You put me in the right direction. I made my own pop-up manager to support a 3d transition... i added 1 line of code to handle tabIndexing value being the displayObject that I was displaying... var focusManager:FocusManager = new FocusManager(value as IFocusManagerContainer,value); Thanks, Patrick Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick Sent: Tuesday, September 01, 2009 10:00 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] title Window added to the sytemManager breaks tabIndex I can't seem to tab through my form with Application.application.systemManager.addChild(value) Any suggestions how to re-implement this functionality? Thanks, Patrick
[flexcoders] Flash is weak because it can't handle proper status codes in AS
Sorry, I am tired to explaining why this doesn't work to our REST api programmers, and it's been years and still no solution It's so annoying, because it makes programming very difficult... Standards are out there for a reason! Will somebody raise their hand ask the teams why this still isn't addressed at adobe max next week for me, please? Maybe somebody at Adobe should get off their ass and prioritize this issue with browser vendors? Pissed and frustrated, again and again Patrick
[flexcoders] Crafting a unique solution to handle status codes other than 200
So we're getting ready for our first release of this massive flex app, and we've just switched to SSL for our auth... Since we have this new central auth server, our API developers want to use status codes for results. So, I am at the juncture, again for the 5th time in my dev career how am I going to get around that http status code crap again! --- Is it possible to trap these responses in the browser with a javascript and return them into flashplayer through external interfface? Is that possible, does anybody have any suggestions on how to handle tokens on this one? I am using HTTP delegates for my service calls with IRespnder. How would I return the token? Is that possible? http://code.google.com/p/as3httpclientlib/ Might be a good alternative to http, but can it it be used with delegates and IResponder? If you have had some success with this and don't mind helping another developer, while the blame game happens and nobody can figure out how to fix this paralyzing issue to us flash developers... please advise. Thanks, Patrick (as I delete my hastily terse comment on FlexCoders and try to come up with a workable solution)
[flexcoders] Hiding a specific divider in in dividedbox
Is there a way to do this? Thanks, Patrick
[flexcoders] Re: SDK 3.2 upgrade to 3.4 issue
I use this template here for my html template... under 3.3 sdk is this still affected? SWFObject flex template http://www.robgonda.com/blog/index.cfm/2008/7/15/SWF-Object-21-Flex-Template --- In flexcoders@yahoogroups.com, Jim Cheng li...@... wrote: If you do hang back with 3.3 _AND_ are using Flex Builder's automatically generated HTML wrapper, you should be aware that there was a bug discovered in the express-install template files that can expose you to a cross-site-scripting (XSS) attack. Adobe fixed this in 3.4, but with that revision, also introduced the nasty bug with HTTPService responders getting called twice. If you are using the vanilla express-install templates to generate HTML for you, you might want to patch your 3.3 SDK while you wait for 3.5. Here's the relevant links: http://www.adobe.com/support/security/bulletins/apsb09-13.html http://kb2.adobe.com/cps/495/cpsid_49530.html Hope this helps, Jim Cheng EffectiveUI Jake Churchill wrote: Thanks for the info. I was just upgrading to stay current, no particular reason so I'll hang back on 3.3 for a while until 3.5 is released.
[flexcoders] Re: Flickering in datagrid Header Renderer while loading data
Alex, No, 3.4 didn't solve the problem... I just got upgraded and came across this nasty bug: http://enigmaticthought.com/2009/09/sdk-2233-flex3-4-httpservice-bug/ Maybe in the next release you get that flicker taken care in data grid header renderers (I'm using factories btw) So I am back to 3.3, since i can't have multiple results etc. Thanks, Patrick --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: File a bug with a simple test case. Also make sure you're using Flex 3.4 Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick Sent: Monday, September 21, 2009 10:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flickering in datagrid Header Renderer while loading data I'm having this issue and it sucks. To work around it internally I am adding a bitmap image-copy of the datagrid inside until it renders completely, which I've figured on some arbitrary number... This really sucks for us developers, makes our projects look unstable... Is this going to be addressed? I too am using the prescribed method of factories in the flex cookbook. Thanks, Patrick --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: It depends on what you mean by flickering. It would be unusual for a label to flicker. Images often do, and SuperImage from quietlyscheming.com can help, but if the label if flickering, something else might be the issue. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Dharmendra Chauhan Sent: Monday, March 09, 2009 11:05 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Flickering in datagrid Header Renderer while loading data I m also facing similar issue,Please see my code below:- Custom Header Renderer: [Bindable] private var theImage:Class; override public function set data(value:Object):void { dgColumn = value as DataGridColumn; if(dgColumn.sortDescending) this.theImage = this.downArrow; else this.theImage = this.upArrow; } ]] /mx:Script mx:Image source={this.theImage}/ Image is flicking when data loads in data grid. I also tried Label with some text, that to is flicking. Everything looks good as soon as data loading is over .Is there any ways to avoid this flicker ?? Please throw some light in to it Regards, Dharmendra
[flexcoders] .swc files / base classes and flash-flex playing nicely together
I have a complex project and I have .swc file, I've added classes in flash that have their linkage set up. I compile my .swc add it to my project, and then when I compile in flex I get ambiguous references. What's the sure-fire way to make this work correctly. This is a powerful feature, and I don't want to have to maintain these class for my flash component outside my project structure folder... Thannks, Patrick
[flexcoders] Re: How to dynamically add series to an areaChart/cartesian chart
No, I tried that and it didn't work. Basiially, you create an array then assign the series to that array, then you have the ability to style your series through styles like... metricsChart.series =_seriesArray; metricsChart.series[i] = series; Thanks, Patrick --- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: With actionscript you can add them on the fly with addChild(), I don't think you can add them dynamically with mxml unless they are 'static' options that may or may not appear, then I think you can just have them set to visible=false and includeInLayout=false. From: djhatrick djhatr...@... Sent: Thursday, September 03, 2009 9:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to dynamically add series to an areaChart/cartesian chart Hi, I am working with about 8 charts in my ui, they all share common functionality, how do I dynamically add series to my charts... is it as simple as setting series on my super.chart? Are there any examples out there that show this? Best practices too? Using mxml or actionscript? Thanks, Patrick
[flexcoders] Event.ADDED_TO_STAGE triggering twice twice inside my uiComponent
I made a module, create a flash component added it to my uiComponent, and the result is that objects inside my flash component, movieclip and sprites get the ADDED_TO_STAGE method fired twice. Anyone else notice this? Thanks, Patrick
[flexcoders] Re: Flickering in datagrid Header Renderer while loading data
I'm having this issue and it sucks. To work around it internally I am adding a bitmap image-copy of the datagrid inside until it renders completely, which I've figured on some arbitrary number... This really sucks for us developers, makes our projects look unstable... Is this going to be addressed? I too am using the prescribed method of factories in the flex cookbook. Thanks, Patrick --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: It depends on what you mean by flickering. It would be unusual for a label to flicker. Images often do, and SuperImage from quietlyscheming.com can help, but if the label if flickering, something else might be the issue. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Dharmendra Chauhan Sent: Monday, March 09, 2009 11:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flickering in datagrid Header Renderer while loading data I m also facing similar issue,Please see my code below:- Custom Header Renderer: [Bindable] private var theImage:Class; override public function set data(value:Object):void { dgColumn = value as DataGridColumn; if(dgColumn.sortDescending) this.theImage = this.downArrow; else this.theImage = this.upArrow; } ]] /mx:Script mx:Image source={this.theImage}/ Image is flicking when data loads in data grid. I also tried Label with some text, that to is flicking. Everything looks good as soon as data loading is over .Is there any ways to avoid this flicker ?? Please throw some light in to it Regards, Dharmendra
[flexcoders] using curve, drawPolyLine throws error.. any suggestions
love when classes are sealed, how do i debug? mx.charts.chartClasses::GraphicsUtilities$/drawPolyLine TypeError: Error #1010: A term is undefined and has no properties. at mx.charts.chartClasses::GraphicsUtilities$/drawPolyLine()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\GraphicsUtilities.as:305] at mx.charts.renderers::AreaRenderer/updateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\renderers\AreaRenderer.as:153] at mx.skins::ProgrammaticSkin/validateDisplayList()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:421] at mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:622] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:695] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8633] at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8573]
[flexcoders] How to dynamically add series to an areaChart/cartesian chart
Hi, I am working with about 8 charts in my ui, they all share common functionality, how do I dynamically add series to my charts... is it as simple as setting series on my super.chart? Are there any examples out there that show this? Best practices too? Using mxml or actionscript? Thanks, Patrick
[flexcoders] Re: Modules and fonts vanishing is giving me the cramps
Very doubtful that I did that. To be on the safe side, is having this inside my creationComplete event of every module a good idea? Yes. var myLoaderContext:LoaderContext = new LoaderContext(); myLoaderContext.applicationDomain = ApplicationDomain.currentDomain; I always make sure that my visual components for whatever module I am creating are only inside my module. It was really weird, the puremvc, issue, it was just a reference to my model with with retrieveProxy inside of one of my shell commands. All I did was remove that reference and my fonts reapeared. What I do is put all my commands in my shell, and use the puremvc shellModuleJuction paradigm, which cleanly, decouples any references to the modules directly through a nice event mechanism. This is a pretty intense flex project. Off hand, say you have a module that checks in at 1.2 megs with out doing the link reports. When I do all the link stuff with a build script, what can I expect that to be reduced to? Any ideas, mostly it's datagrids and charts inside. Also, looks like I am not going to make Adobe Max this year, :( I saw you speak last year. Thanks, Patrick --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: The rule for fonts in Flex is that whatever TextField or subclass of TextFIeld (like DataGridItemRenderer) is displaying the font must be created in the module containing the font. I haven't used pureMVC so I don't know how it could break that. Most Flex components use a lookup scheme to figure out which moduleFactory to use. Others like Charts and DataGrid need to use ContextualClassFactory instead of the default ClassFactory. Could you have changed something in there? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick Sent: Monday, August 31, 2009 2:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Modules and fonts vanishing is giving me the cramps Alex, My problem I think is because i accessed my modules model directly from one of my commands in my shell -- on accident... (using puremvc) Is kind of thing normal? Any reason to why this would make one of my fonts disappear. I want to prevent accidents like this in the future, Link reports are next on my hit-list with this project. Thanks for responding, Patrick --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: Most common scenario: you switched to using a bold font, but didn't embed the bold font, just the normal font. Second: The font didn't get embedded. Use -keep-generated-actionscript or -link-report to see if the font is really there Third: If fonts are in modules, make sure they are loaded and didn't get unloaded Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of djhatrick Sent: Monday, August 31, 2009 9:59 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Modules and fonts vanishing is giving me the cramps All of a sudden this happened again, to my modules, all my fonts are missing? I don't know how to restore my previous changes and see what simple change could have caused this. Other than replacing about 5 hours work and trying to re-add each change one at a time. On a scale of 1-10 for annoying problems this off the chart. I am not doing anything unusual here. I just made a few changes to some properties and collections and now I don't see any fonts. Any suggestions here? Thanks, Patrick --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: Not sure I understood the problem, but the first thing to know about sub-modules is that by default they load into sibling applicationdomains. This is due to the way applicationdomains work. You can look at the diagrams in the modules presentation on my blog to help visualize it. The main Flex app almost always has ModuleManager in it to support CSS and Resource Modules. When you load a module, the main app's appDom is the parent and the module gets loaded as a child of that appdom. That's what we want, right? But the problem is that when that module tries to load a sub-module, it is going to use the main apps' ModuleManager and thus the sub-module loads as a child of the main app's appdom and not the module's appdom and then sub-module can't see the module's classes. I'm guessing that's your problem. The solution is to explicitly set
[flexcoders] Sealed Classes and how to debug
I am using the method findDatapoints with some mouse action, and a lot of the time, I get a findDataPoints error. Although, since the class is sealed any suggestions on how to debug this type of thing? Thanks, patrick
[flexcoders] title Window added to the sytemManager breaks tabIndex
I can't seem to tab through my form with Application.application.systemManager.addChild(value) Any suggestions how to re-implement this functionality? Thanks, Patrick
[flexcoders] Re: Modules and fonts vanishing is giving me the cramps
All of a sudden this happened again, to my modules, all my fonts are missing? I don't know how to restore my previous changes and see what simple change could have caused this. Other than replacing about 5 hours work and trying to re-add each change one at a time. On a scale of 1-10 for annoying problems this off the chart. I am not doing anything unusual here. I just made a few changes to some properties and collections and now I don't see any fonts. Any suggestions here? Thanks, Patrick --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Not sure I understood the problem, but the first thing to know about sub-modules is that by default they load into sibling applicationdomains. This is due to the way applicationdomains work. You can look at the diagrams in the modules presentation on my blog to help visualize it. The main Flex app almost always has ModuleManager in it to support CSS and Resource Modules. When you load a module, the main app's appDom is the parent and the module gets loaded as a child of that appdom. That's what we want, right? But the problem is that when that module tries to load a sub-module, it is going to use the main apps' ModuleManager and thus the sub-module loads as a child of the main app's appdom and not the module's appdom and then sub-module can't see the module's classes. I'm guessing that's your problem. The solution is to explicitly set the applicationDomain parameter when loading the sub-module. But even that can be tricky because when you say new ApplicationDomain(ApplicationDomain.currentDomain) if that code is in a class loaded in the main app's appdom, currentDomain is the main app's appdom. So be sure the code that calls load is in the module and nowhere else. Maybe that'll help. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick Sent: Friday, August 07, 2009 10:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Modules and fonts vanishing is giving me the cramps Alex (or/and others) Here's my issue, I have a module that loads another module, a sub module. I am trying to access the loaded module, the problem is that first, if I add it to my shared code file, doesn't it compiled into the shell? or just a reference I can access methods on my module through it's public properties, but I have to assign it as wildcard, *? Which works 90 percent of the time, but once in a while the module's or it's properties come back as undefined. So, I tried the shared code solution again, but then my fonts mysteriously vanish out of my app. Help, I am gonna go smack my head with a hammer a few times, Thanks, Patrick
[flexcoders] Re: Modules and fonts vanishing is giving me the cramps
Alex, My problem I think is because i accessed my modules model directly from one of my commands in my shell -- on accident... (using puremvc) Is kind of thing normal? Any reason to why this would make one of my fonts disappear. I want to prevent accidents like this in the future, Link reports are next on my hit-list with this project. Thanks for responding, Patrick --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Most common scenario: you switched to using a bold font, but didn't embed the bold font, just the normal font. Second: The font didn't get embedded. Use -keep-generated-actionscript or -link-report to see if the font is really there Third: If fonts are in modules, make sure they are loaded and didn't get unloaded Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick Sent: Monday, August 31, 2009 9:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Modules and fonts vanishing is giving me the cramps All of a sudden this happened again, to my modules, all my fonts are missing? I don't know how to restore my previous changes and see what simple change could have caused this. Other than replacing about 5 hours work and trying to re-add each change one at a time. On a scale of 1-10 for annoying problems this off the chart. I am not doing anything unusual here. I just made a few changes to some properties and collections and now I don't see any fonts. Any suggestions here? Thanks, Patrick --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: Not sure I understood the problem, but the first thing to know about sub-modules is that by default they load into sibling applicationdomains. This is due to the way applicationdomains work. You can look at the diagrams in the modules presentation on my blog to help visualize it. The main Flex app almost always has ModuleManager in it to support CSS and Resource Modules. When you load a module, the main app's appDom is the parent and the module gets loaded as a child of that appdom. That's what we want, right? But the problem is that when that module tries to load a sub-module, it is going to use the main apps' ModuleManager and thus the sub-module loads as a child of the main app's appdom and not the module's appdom and then sub-module can't see the module's classes. I'm guessing that's your problem. The solution is to explicitly set the applicationDomain parameter when loading the sub-module. But even that can be tricky because when you say new ApplicationDomain(ApplicationDomain.currentDomain) if that code is in a class loaded in the main app's appdom, currentDomain is the main app's appdom. So be sure the code that calls load is in the module and nowhere else. Maybe that'll help. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of djhatrick Sent: Friday, August 07, 2009 10:13 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Modules and fonts vanishing is giving me the cramps Alex (or/and others) Here's my issue, I have a module that loads another module, a sub module. I am trying to access the loaded module, the problem is that first, if I add it to my shared code file, doesn't it compiled into the shell? or just a reference I can access methods on my module through it's public properties, but I have to assign it as wildcard, *? Which works 90 percent of the time, but once in a while the module's or it's properties come back as undefined. So, I tried the shared code solution again, but then my fonts mysteriously vanish out of my app. Help, I am gonna go smack my head with a hammer a few times, Thanks, Patrick
[flexcoders] BrowserManagerShim, the workaround to fix preloader issues throws error...
Any suggestions how to overcome this error with the BroswerManagerShim: ReferenceError: Error #1065: Variable ContextMenuClipboardItems is not defined. I need a preloader to work with anchor tags... thanks. Software should operate like a German car, not a French car. Thanks, Patrick
[flexcoders] Embedded .swf's as classes with meta-data not always compiling
I have a few uicomponent classes that have movieclips linked up through metadata. It seems every time that I compile, I have to switch up the base-class from sprite to movieclip in my class, or movieclip to sprite, in order for the code to actually compile into the project. Is there a list of best practices, tutorial, or anything specific I can look at so I can make sure that I am not doing something wrong that obvious... Is it true the difference between the plain old actionscript compiler and the flex compiler, when it comes to compiled embedded clips, that the base class is sprite in flex - if the asset has only one frame, and multiple frames are automatically movieclips. Does this also mean in flash, in the properties i should extend the base class as Sprite instead of movieclip? as always, Thanks for your time. Patrick
[flexcoders] Weird issue with movieclip/sprite uiComponent
I have an embedded UIComponent, with a sprite inside, what's weird is that every time I compile I either have to extend Sprite, or MovieClip to make my component work. I understand that Flex automatically uses a movieclip as a sprite if it has one frame in the timeline, like usually all my Flash swf's have. So basically, I need to keep switching my base class on my movieclip to work. Any suggestions why I need to keep changing the base class for my uicomponent to compile in my project. Thanks again community, Patrick
[flexcoders] Re: Flex 3d Tweening and best practice/results for Text
Resetting the 2d matrix works great for me. Thanks, I love simple solutions! Patrick --- In flexcoders@yahoogroups.com, Chet Haase cha...@... wrote: Ah, okay. The yes: resetting the matrix seems to be the way to workaround this problem (which must be what weâre doing internally, as of Flex 4). Thanks, Chet. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thomas parquier Sent: Saturday, August 08, 2009 6:31 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 3d Tweening and best practice/results for Text Chet, The blurry effect doesnt occur any more with sdk4. The component I wrote uses sdk3.3, which leaves blurry the buttons from the example code you sent. thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@...mailto:thomas.parqu...@... softphone : sip:webattit...@...mailto:sip%3awebattit...@... téléphone portable : +33601 822 056 2009/8/8 Chet Haase cha...@...mailto:cha...@... Thatâs not what Iâm seeing: in the code below, the rotator effect rotates the button around the Y axis, ending at rotationY==0, at which point the text in the button is no longer blurry: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:AnimateProperty id=rotator property=rotationY fromValue=360 toValue=0 target={button1}/ mx:Button id=button x=10 label=Move Me click=button.z = (button.z == 100) ? 0 : 100/ mx:Button id=button1 x=10 y=50 label=Rotate Me click=rotator.play()/ /mx:Application Are you doing anything with the 3D properties besides setting rotationY? Post all of the code (if you can boil it down to a simple case) Chet. From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of thomas parquier Sent: Friday, August 07, 2009 3:40 PM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 3d Tweening and best practice/results for Text Chet, Yet in a mxml component I had to do the following : mx:AnimateProperty property=rotationY toValue=0 duration=700 effectEnd=twoSidedDO3D.transform.matrix=new Matrix(1,0,0,1,width/2,0); / thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@...mailto:thomas.parqu...@... softphone : sip:webattit...@...mailto:sip%3awebattit...@... téléphone portable : +33601 822 056 2009/8/7 Chet Haase cha...@...mailto:cha...@... You donât necessarily have to reset the 2d matrix â you just have to make sure that all of your 3d properties are set back to the values they would have if the object were again in 2d. In the original example, if the only thing you did was to change the z location, and then you reset it to 0, then the text should not be blurry any longer (we recognize that the object no longer needs a 3D transform and just do the right 2D thing instead). I suspect that you are setting more 3D properties than simply the z property (like rotationX, rotationY, etc.), so even though youâre zeroing-out the âzâ property, thatâs not enough to take the object out of 3D and put it on the 2D plane again. Figure out the other 3D properties that youâre tweaking (just take a look at the matrix when itâs back in the state where you think it should be 2D) and reset the ones that are still in 3D. Chet. From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of thomas parquier Sent: Friday, August 07, 2009 11:21 AM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 3d Tweening and best practice/results for Text Hi, When objects are back to 2d, you have to reset 2d matrix to get rid of blurry effect. thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@...mailto:thomas.parqu...@... softphone : sip:webattit...@...mailto:sip%3awebattit...@... téléphone portable : +33601 822 056 2009/8/5 djhatrick djhatr...@...mailto:djhatr...@... I have a displayObject, a panel, doing 3d stuff with the panel... However after I tween my object to z=0, the text looks blurry after the animation has stopped. Is there a way to make the text look sharp: fontAntiAliasType=advanced I've tried but that gives not-passable results. Thanks, Patrick
[flexcoders] Charts - how to disable the little arm stroke to the chart dataTip
I want to hide that element, if possible. Thanks, Patrick
[flexcoders] Modules and fonts vanishing is giving me the cramps
Alex (or/and others) Here's my issue, I have a module that loads another module, a sub module. I am trying to access the loaded module, the problem is that first, if I add it to my shared code file, doesn't it compiled into the shell? or just a reference I can access methods on my module through it's public properties, but I have to assign it as wildcard, *? Which works 90 percent of the time, but once in a while the module's or it's properties come back as undefined. So, I tried the shared code solution again, but then my fonts mysteriously vanish out of my app. Help, I am gonna go smack my head with a hammer a few times, Thanks, Patrick
[flexcoders] Flex 3d Tweening and best practice/results for Text
I have a displayObject, a panel, doing 3d stuff with the panel... However after I tween my object to z=0, the text looks blurry after the animation has stopped. Is there a way to make the text look sharp: fontAntiAliasType=advanced I've tried but that gives not-passable results. Thanks, Patrick
[flexcoders] contextMenus and Modules and Tree == Fail
I am having the difficult time, trying to apply a context Menu to a TreeList in module, has anybody had such a difficult time? I've tried this: http://blog.arc90.com/2008/04/adding_a_contextmenu_to_a_flex.php and I've tried this: http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html Seems when I put my contextMenu inside a module, when I right click nothing shows up, although it's created. Also, when I right click on my module and move the mouse off a big ugly white box fills my container, yuck.. Any suggestions, Thanks, Patrick
[flexcoders] Solved with Inredi-Hack - Re: contextMenus and Modules and Tree == Fail
I added the contextMenu to the application and it worked... seems modules need a lot of improvement in the framework. I have had so many problems with them... BTW, will the 3.4 sdk be improved since 4 is already coming out soon. I would hope so, at least for a year or more. We can't all update to flex4 in at Adobe's pace unfortunately, especially for projects we just started a few months ago... my food for thought. Thanks, Patrick (Now if i can get that big white ugly box from showing up!) --- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote: I am having the difficult time, trying to apply a context Menu to a TreeList in module, has anybody had such a difficult time? I've tried this: http://blog.arc90.com/2008/04/adding_a_contextmenu_to_a_flex.php and I've tried this: http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html Seems when I put my contextMenu inside a module, when I right click nothing shows up, although it's created. Also, when I right click on my module and move the mouse off a big ugly white box fills my container, yuck.. Any suggestions, Thanks, Patrick
[flexcoders] Re: Sticky Scroll bars
Too Late. I crafted a javascript work-around solution, similar to the way to get the mouse wheel to work in OSX: http://www.patricklemiuex.com/?p=68 Tho, you know what's weird is that the when Flash misses mouse Up event it is caught by the browser. I should have done your solution with the mouseLeave event. Thanks, Patrick --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: It shouldn't require javascript. If you listen for MOUSE_LEAVE and dispatch a fake MOUSE_UP that should suffice. I think the fix may go into Flex 3.4 as well. In general, you cannot mix module versions. The SWF loading the module and the module must be compiled with the same version of Flex otherwise you risk problems. See the Marshall Plan presentation on my blog. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick Sent: Tuesday, June 23, 2009 7:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Sticky Scroll bars I use Firefox, like most in our office. Is this possible with the the help of a javascript library, similar to the way the mouse scroll wheel library works in javascript? if it's just missing a mouseUp, maybe I can add that event and send it into flex, would that work? By the way, Alex, so I've heard that flex 3 modules will run in Flex4. I am 2 months into a new application on Flex3, but I really want to use Flex4, though I am a little concerned on the learning curve since I've done very little with flex 4.0 sdk. Will Flex4 modules run in flex3, or that does sound like a bad idea.. (seems like?) Thanks, Patrick --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: I hope to fix it in Flex 4. Should work on IE? Some of the other platforms don't send mouseUp from off the stage... Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of djhatrick Sent: Saturday, June 20, 2009 7:46 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Sticky Scroll bars After a mouse up on my flex app the scroll bar still sticks as I move the mouse around, until another click. This is a real annoying bug, anybody know if this is going to be addressed? How did this bug get out in the first place from QA?
[flexcoders] Re: Radio Button in DataGrid urgent Plz
The flex 3 Cookbook covers this pretty well. --- In flexcoders@yahoogroups.com, Harish Sivaramakrishnan hsivaramakrish...@... wrote: Use a boolean property (ex: selected) in the dataProvider Object and bind the CheckBox in the itemRenderer's 'selected' property to {data.selected} Cheers Harish On Sun, Jun 21, 2009 at 12:37 PM, vin.flex vin.f...@... wrote: Thanks for your response Harui. I have tried your checkbox renderer. I want to preselect a checkbox depending on the value of a field in my dataprovider. Can you help me how can I bind the check box to a field in my dataprovider? thanks vin --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, vin.flex vin.flex@ wrote: Hi there, I had requirment for having radio button for one of the column in Datagrid and the user should be able to select only one row radiobutton. I have used item renderer and assigned it to a RadioButton Group. But I got scrolling issues and also I was unable to preselect one row(which is required). Can any body help me and share the code if you have . Thanks in advance vin
[flexcoders] Re: IP Adress
Only with the help of a server telling you it's ip address. --- In flexcoders@yahoogroups.com, christophe_jacquelin christophe_jacque...@... wrote: Hello, Is it possible to get the IP adress or the computer name on the client side from a flex application ? Thank you, Christophe,
[flexcoders] Re: Sticky Scroll bars
I use Firefox, like most in our office. Is this possible with the the help of a javascript library, similar to the way the mouse scroll wheel library works in javascript? if it's just missing a mouseUp, maybe I can add that event and send it into flex, would that work? By the way, Alex, so I've heard that flex 3 modules will run in Flex4. I am 2 months into a new application on Flex3, but I really want to use Flex4, though I am a little concerned on the learning curve since I've done very little with flex 4.0 sdk. Will Flex4 modules run in flex3, or that does sound like a bad idea.. (seems like?) Thanks, Patrick --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: I hope to fix it in Flex 4. Should work on IE? Some of the other platforms don't send mouseUp from off the stage... Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick Sent: Saturday, June 20, 2009 7:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Sticky Scroll bars After a mouse up on my flex app the scroll bar still sticks as I move the mouse around, until another click. This is a real annoying bug, anybody know if this is going to be addressed? How did this bug get out in the first place from QA?
[flexcoders] Module height and width
Modules seem to get their height from the screen rect bounds and not the parent container. What I've done to work around this, is make my container follow my vScroll Position so it won't allow my module to get cut off, since it's a non-modal container... Any ideas is this is going to addressed in the 4.0 sdk? Thanks, Patrick
[flexcoders] Sticky Scroll bars
After a mouse up on my flex app the scroll bar still sticks as I move the mouse around, until another click. This is a real annoying bug, anybody know if this is going to be addressed? How did this bug get out in the first place from QA?
[flexcoders] Modules - Height and width doesn't work correctly
Modules don't get correct width and height from the framework? Are there any plans to get this working in another SDK release for flex 3. This bug will stop my app from going to production, and the thing is, I don't know how to work around to fix it? Thanks, Patrick
[flexcoders] Re: Modules - Height and width doesn't work correctly
The problem I have found is that the module get's it's height from the screenRect, instead of the container that it sits in... SO, I am working with a draggable module, and it has this vanishing point because it is out of the screenRect Bounds... --- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote: Modules don't get correct width and height from the framework? Are there any plans to get this working in another SDK release for flex 3. This bug will stop my app from going to production, and the thing is, I don't know how to work around to fix it? Thanks, Patrick
[flexcoders] Sticky scrollbars
Sticky scrollbars, even with livescrolling set to false.. This is so frustrating, tell me this stuff is fixed in fb4? I wouldn't call developing in flex as RIA, there's just too many things like these bugs that are annoying... I am venting today. But the framework drives me crazy when things like this sticky scrolling happens, scroll wheel not working on mac, module memory leaks... This stuff has to get better.
[flexcoders] Re: Accurate way of measuring a datagrid
Lulz thanks for the that! I must be tired ... but i got this to work, correctly, I have multiple rows that can be longer than others, so this was my error... By the way, is there an event I can subscribe to that will tell me when everything is rendered, or do i have to rely on my trusty timeout? Thanks For your help. Patrick --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: I hate to be picky but my math makes it 52. Anyway, did you count things like padding, vertical gap etc? --- In flexcoders@yahoogroups.com, djhatrick djhatrick@ wrote: Tom: Thanks for that, but unfortunately that method is inaccurate( Maybe it doesn't work for very good for factories... Here's how i am getting my height, i am setting a height on my value object after i add my labels in a vertical column, then i listen for an event on my collection dataProvider, the last item, which I then loop through and calculate the values? See my examples: idSGrid.measureHeightOfItems 612 Measuring each row height 560 idSGrid.measureHeightOfItems 612 Measuring each row height 560 It's off by 72 pixels... that's quite a difference. Patrick --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Hi Patrick, private function resizeDataGrid():void { myDataGrid.height = myDataGrid.measureHeightOfItems(0, myDataGrid.dataProvider.length) + myDataGrid.headerHeight + 2; } mx:DataGrid id=myDataGrid valueCommit=resizeDataGrid() -TH --- In flexcoders@yahoogroups.com, djhatrick djhatrick@ wrote: My datagrid won't measure correctly, i have variable row height, but it can't seem to get it right, I don't want any scroll bars..., is there an easy way to override some function so i can get the actual rowheight of each row and determine my height correctly Thanks,Patrick Wow, i had to rejoing Flexcoders Google Groups are better than yahoogroups, sorry yahoogroups,
[flexcoders] Accurate way of measuring a datagrid
My datagrid won't measure correctly, i have variable row height, but it can't seem to get it right, I don't want any scroll bars..., is there an easy way to override some function so i can get the actual rowheight of each row and determine my height correctly Thanks,Patrick Wow, i had to rejoing Flexcoders Google Groups are better than yahoogroups, sorry yahoogroups,
[flexcoders] Accurate way to measure variable row datagrid
Is there an accurate way to measure a datagrid's height with variable row height? Can I extend datagrid and extend something to find this property? By the way, are other people having issues with posts not showing up on flexcoders? What's the delay before something shows up, I forget who moderates this list, is it because they all need to be approved?
[flexcoders] Re: Accurate way of measuring a datagrid
Tom: Thanks for that, but unfortunately that method is inaccurate( Maybe it doesn't work for very good for factories... Here's how i am getting my height, i am setting a height on my value object after i add my labels in a vertical column, then i listen for an event on my collection dataProvider, the last item, which I then loop through and calculate the values? See my examples: idSGrid.measureHeightOfItems 612 Measuring each row height 560 idSGrid.measureHeightOfItems 612 Measuring each row height 560 It's off by 72 pixels... that's quite a difference. Patrick --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: Hi Patrick, private function resizeDataGrid():void { myDataGrid.height = myDataGrid.measureHeightOfItems(0, myDataGrid.dataProvider.length) + myDataGrid.headerHeight + 2; } mx:DataGrid id=myDataGrid valueCommit=resizeDataGrid() -TH --- In flexcoders@yahoogroups.com, djhatrick djhatrick@ wrote: My datagrid won't measure correctly, i have variable row height, but it can't seem to get it right, I don't want any scroll bars..., is there an easy way to override some function so i can get the actual rowheight of each row and determine my height correctly Thanks,Patrick Wow, i had to rejoing Flexcoders Google Groups are better than yahoogroups, sorry yahoogroups,
[flexcoders] Modules - Just can't get it right when it comes to width and height
I have non-modal module in a layout container... in a canvas, my app is big, it expands vertically, unfortunately, there's this cut off - of invisibility where the module is hidden... and I can't figure out for the life of me make this module box be as big as the stage... Believe me, I've tried everything forcing it's height and width, making it some huge number like 5000 for width and height, and get crappy results, why doens't the module take into account the actual height and width Any suggestions... This is really disappointing...
[flexcoders] Anybody else having issues with the debugger in Flex4?
I get null lang exceptions all the time and variables doens't work, kind of a big bummer. Patrick
[flexcoders] Re: Flash and REST
Hello, we use REST as well, unfortunately, browser limitations prevent the browser from sending anything but a 200 to the flash. The way we work around this issue, is we use our own status codes, that basically wraps normal status codes, so inside your result event handler switch on the status codes that you would. We all wish Adobe could implement REST into Flashplayer, but it requires support from browsers to do so. So don't hold your breath. Hope this helps, Patrick --- In flexcoders@yahoogroups.com, Terry May terry...@... wrote: Hello, I am currently working on integrating our company's soon to be public API with Flash/Flex. Our server side engineers have built a sensible REST based service, after years of working with flash integration using XML-RPC I am very happy with the API they have put together and want to try to maintain the simplicity, Flash/Flex/AIR on the other hand, want nothing to do with it. I was trying to use BlazeDS as a Proxy to get around the Browser's retardation with status codes and headers (I am just going to assume you all know what I mean.) but as it turns out BlazeDS doesn't do the right thing either. So I thought I would get on the list and see what suggestions you guys (and gals) might have. Here are 2 responses from our service, the first is a sucessful registration. In Flex when I get this response it fires a proper result event, and I get the message body just fine. it is the location header that I don't seem to be able to get to. (using HTTPSerivce with or without proxy) POST /v1/eprize/ews01/profiles HTTP/1.1 User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3 Host: foo-.int.eprize.net Accept: */* Content-Length: 84 Content-Type: application/x-www-form-urlencoded HTTP/1.1 201 Created Date: Wed, 20 May 2009 14:12:39 GMT Server: Apache/2.2.4 (Unix) mod_perl/2.0.3 Perl/v5.8.8 location: http://foo-.int.eprize.net/eprize/ews01/profile/7 pragma: no-cache cache-control: no-cache expires: Wed, 20 May 2009 14:12:39 GMT content-length: 201 Content-Type: text/xml; charset=utf-8 ?xml version=1.0 encoding=UTF-8 ? result profile id7/id country/country first_nameterry/first_name locale/locale state/state /profile /result The second response is a fault response. I caused the fault by trying to register the same account information twice. This is really where the biggest problem is, using BlazeDS I can only see the HTTP Status Code in fault event. I really need the message body and in some cases the headers in the fault event. I looked into the BlazeDS source and it is actually throwing the fault exception before it can write the headers and body to the response, frustrating. POST /v1/eprize/ews01/profiles HTTP/1.1 User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3 Host: foo-.int.eprize.net Accept: */* Content-Length: 84 Content-Type: application/x-www-form-urlencoded HTTP/1.1 409 Conflict Date: Wed, 20 May 2009 14:15:05 GMT Server: Apache/2.2.4 (Unix) mod_perl/2.0.3 Perl/v5.8.8 pragma: no-cache cache-control: no-cache expires: Wed, 20 May 2009 14:15:05 GMT content-length: 113 Content-Type: text/xml; charset=utf-8 ?xml version=1.0 encoding=UTF-8 ? result terminal_errorduplicate_account/terminal_error /result so this is my last ditch effort to figure out a solution to this before I tell our server side engineers to make a special method for 'Broken' http clients to always pass status of 200, and include all the http junk in the xml.. this makes me sad, because it means some extra work on the client side and it sure is not as elegant. Perhaps I missed something with BlazeDS, sure would be great to have some second opions. (I have looked the as3HTTPClient listed in the Flex cookbook, and I am not really into using it because it seems like it would cause a customer support nightmare) Thanks, Terry May Flash Platform Software Engineer Detroit Area Abode User Group Manager
[flexcoders] Re: Pure MVC vs Cairgorm
Pure mvc whips the camel's ass! You should use it, I absolutely love the way it just works. P --- In flexcoders@yahoogroups.com, aphexyuri yuriv...@... wrote: So which one is the Ferrari and which the mini ;) One of the biggest advantages of PureMVC has, lies with the multicore build. It allows you to have multiple application cores, and comms between them via a Pipes utility...perfect for working with modules...100%...loosly-coupled. Also, I think it's currently ported to 11 other languages, reducing your learning curve if you are considering adventures in PHP, C#, Objective C, Java, Python, Rudy, etc, etc It really depends of the complexity of your app. The more complex, the bigger the need to use a proven framework. For some time now, I've only been coding with the PureMVC (mostly standard build, except when the project is really big=multicore, or really small=none). It takes a bit longer to set up your project, but once you're there, coding is SUPER FAST, and a lot gets taken care of for you. Some reference to put you on your way: http://trac.puremvc.org/PureMVC_AS3/ http://tinyurl.com/ofgpx8 http://tinyurl.com/o88se6 ...and a great book I would recommend if you are serious about OOP AS3, and considering 'rolling your own': http://tinyurl.com/osr8cl Enjoy! --- In flexcoders@yahoogroups.com, Paul Andrews paul@ wrote: - Original Message - From: mhbmarcos mhbmarcos@ To: flexcoders@yahoogroups.com Sent: Tuesday, May 19, 2009 6:44 PM Subject: [flexcoders] Pure MVC vs Cairgorm Hi!!!, which is the best option? Would you say a Ferrari is best or a Mini? If you want to impress expensive women, then the Ferrari would do well, but if you want to go shopping and be able to negotiate narrow uneven streets, I'd go for the Mini. As it is with cars, the same follows for software. Some people like PureMVC, some people go with the Adobe-approved Cairngorm. Look them both up on google and check them out.
[flexcoders] Re: VO Issues
I think we'd need to see more code to help you more. Usually, something is being casted with as and it doesn't match the data type, it will throw null. I would try removing the class alias, and see what happens. Also, try calling registerClassAlias(com.rottmanj.model.vo.CompanyVO) In your startup, if that doesn't work, try just populating a generic object. --- In flexcoders@yahoogroups.com, Jeremy Rottman rottmanl...@... wrote: I have written a vo that for some odd reason always comes up null when I try to populate it. Everything I have tried comes up with the same results. I could use an extra set of eyes to see if there is something small I am missing. Any help with this is greatly appreciated. CompanyVO: package com.rottmanj.model.vo { import mx.collections.ArrayCollection; [RemoteClass(alias=com.rottmanj.model.vo.CompanyVO)] [Bindable] public class CompanyVO { public var company_uuid:String = ; public var company_indst:String = ; public var company_class:String = ; public var description:String = ; public var isPriv:Boolean = false; public var alt_id:String = ; public var entity_name:String = ; public var create_who:String = ; // address vo public var address_id:String = ; public var address1:String = ; public var unit_type:String = ; public var unit_number:String = ; public var address2:String = ; public var city:String = ; public var state_prov:String = ; public var code_zip:String = ; public var country:String = ; public var type:String = ; public function CompanyVO() { } } } Populating the VO: [Bindable] public var companyVO:CompanyVO; private function sSelectCompany(event:ListEvent):void { companyVO = event.itemRenderer.data as CompanyVO trace(ObjectUtil.toString(companyVO)); } When a user clicks on a row in a datagrid, sSelectCompany is called via itemDoubleClick=sSelectCompany(event). This works perfectly fine. This is the result I get from tracing out the event.itemRenderer.data (Object)#0 address1 = address2 = address_id = alt_id = ALC05042009_0001 city = code_zip = company_class = Schol company_indst = Elect company_uuid = COM05042009_0001 country = create_who = description = This is agreat Company entity_name = Test Company isPriv = 0 mx_internal_uid = F1EC080D-498D-9825-761F-5DF5E33C39DF state_prov = type = unit_number = unit_type = I have tested my coldfusion code and it returns the proper VO. I have verified that case is not the issue. component com.rottmanj.model.vo.CompanyVO ADDRESS1 [empty string] ADDRESS2 [empty string] STATE_PROV[empty string] ALT_IDALC05042009_0001 DESCRIPTION This is agreat Company CODE_ZIP [empty string] ADDRESS_ID[empty string] ISPRIV0 CITY [empty string] COUNTRY [empty string] COMPANY_UUID COM05042009_0001 UNIT_NUMBER [empty string] ENTITY_NAME Test Company TYPE [empty string] COMPANY_INDST Elect UNIT_TYPE [empty string] COMPANY_CLASS Schol CREATE_WHO[empty string]
[flexcoders] Re: How do I do a sort on IHierarchicalCollectionView
I created my sort, applied called my grouping Collection.refresh() and the data duplicates in the advancedDatagrid, any ideas? Thanks, Patrick --- In flexcoders@yahoogroups.com, foobone9 foobo...@... wrote: I don't think that it is different. IHierarchicalCollectionView extends ICollectionView which is where the sort is defined. --- In flexcoders@yahoogroups.com, djhatrick djhatrick@ wrote: By the way, why is the sort different from ICollectionView? This makes this confusing because all my items duplicate... etc. private function sortDataField(value:String):void { //var hd:IHierarchicalCollectionView = IHierarchicalCollectionView(adg.dataProvider); var hd:IHierarchicalCollectionView =adg.dataProvider as IHierarchicalCollectionView; var sort:Sort = new Sort(); sort.fields = [new SortField(id)]; hd.sort = sort; gc.refresh(); } --- In flexcoders@yahoogroups.com, foobone9 foobone9@ wrote: Just sort the collection that the grid is bound to. --- In flexcoders@yahoogroups.com, djhatrick djhatrick@ wrote: How do i duplicate the functionality of of sorting an advancedDatagrid without a header release event. I'd like to sort my IHierarchicalCollectionView recursively. Thanks, Patrick
[flexcoders] Foaming at the mouth for Flex4... or Flashbuilder4
BTW, I am going to keep calling myself a flex developer (pays better)... When's the beta coming out? June when? thanks, Patrick
[flexcoders] LangRef == FAIL
http://livedocs.adobe.com/flex/3/langref/