[flexcoders] Re: create a thumbnail dynamically from large image using flex
--- In flexcoders@yahoogroups.com, stinasius stinas...@... wrote: any help guys? http://www.brooksandrus.com/blog/2009/03/11/bilinear-resampling-with-flash-player-and-pixel-bender/
[flexcoders] Re: InteractiveObject Problem
Thank Amy I have found about evt.mouseTarget as ... and now no error appear. Hai Anh --- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote: --- In flexcoders@yahoogroups.com, lehaianh1986 lehaianh1986@ wrote: I know it, but I can't choice another Class because evt.mouseTarget is InteractiveObject I write code if (evt.mouseTarget.hasOwnProperty(data)) var inObj:AdvancedDataGridItemRenderer = evt.mouseTarget; The error message 1118: Implicit coercion of a value with static type flash.display:InteractiveObject to a possibly unrelated type mx.controls.advancedDataGridClasses:AdvancedDataGridItemRenderer. var inObj:AdvancedDataGridItemRenderer = evt.mouseTarget as AdvancedDataGridItemRenderer;
[flexcoders] Re: Need Suggestions for database application.
Thanks JC for ur response, PHP is good for server-side and there are frameworks that will help you encapsulate database layer so you can easily switch from one db engine to another e.g. MySQL to PGSQL,etc. May I request u to name good ones so that our study minimizes to few ones for suitability. I Guess these will be Hibernate equivalent, are they ? Built in PHP is PHP Data objects library that can help you with this problem as well if you need a thin layer for your database layer. True we searched the links for PDO Steve has given and going to study them in detail for judging its suitability in our project. if u know some more good alternatives plz go ahead and suggest us since we are starting a fresh we dont have constraints. However we will give enough time to finalize the data access layer since that will be a strategic decision for our all future web applications. So we will evaluate thoroughly every short listed framework and technology for suitability in our most of the existing projects which probably might need to be converted into web application. Thanks and best regards. Raja
RE: [flexcoders] Re: Need Suggestions for database application.
There might be a few others in PEAR, but start with PEAR::DB http://pear.php.net/package/DB --Tim From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of raja_s_patil Sent: Friday, 17 April 2009 4:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Need Suggestions for database application. Thanks JC for ur response, PHP is good for server-side and there are frameworks that will help you encapsulate database layer so you can easily switch from one db engine to another e.g. MySQL to PGSQL,etc. May I request u to name good ones so that our study minimizes to few ones for suitability. I Guess these will be Hibernate equivalent, are they ? Built in PHP is PHP Data objects library that can help you with this problem as well if you need a thin layer for your database layer. True we searched the links for PDO Steve has given and going to study them in detail for judging its suitability in our project. if u know some more good alternatives plz go ahead and suggest us since we are starting a fresh we dont have constraints. However we will give enough time to finalize the data access layer since that will be a strategic decision for our all future web applications. So we will evaluate thoroughly every short listed framework and technology for suitability in our most of the existing projects which probably might need to be converted into web application. Thanks and best regards. Raja
[flexcoders] Re: Need Suggestions for database application.
Thanks Tim Rowe There might be a few others in PEAR, but start with PEAR::DB http://pear.php.net/package/DB We will search there as quick as possible. Can u tell us more about security and performance issues if there are any, in adopting PHP as server side technology ? Thanks once again and best regards Raja
[flexcoders] Tooltip in advanced datagrid
hi all, I need to create tooltip for advanced datagrid's data by custom itemrenderer
RE: [flexcoders] Tooltip in advanced datagrid
Just have your renderer create a tool tip however it needs. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of senthilkumarirtt Sent: Friday, April 17, 2009 3:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tooltip in advanced datagrid hi all, I need to create tooltip for advanced datagrid's data by custom itemrenderer
Re: [flexcoders] Re: crossdomain proxy
On Thursday 16 Apr 2009, Baz wrote: Could the redirect script be done with a simple web server, including the fact that I need to append the secret key to the request, or do I need an app server (java, coldfusion, asp, php, etc.)? mod_rewrite and/or mod_proxy in Apache would certainly allow it. -- Helping to elementarily fashion market-driven holistic communities as part of the IT team of the year, '09 and '08 Tom Chiverton Developer Tel: +44 0161 618 5032 Fax: +44 0161 618 5099 tom.chiver...@halliwells.com 3 Hardman Square, Manchester, M3 3EB www.Halliwells.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.Halliwells.com.
[flexcoders] Sending a HEAD request
Hi, The server side dev team have asked if I can send a HEAD request to their home page in order to 'keep my flex app logged in' What is the best way of going about this. URLRequest will not allow the method as a HEAD as far as I can see. And URLLoader returns the html data, I basically need to send only Any ideas much appreciated thanks Steve
[flexcoders] Re: Need Suggestions for database application.
Just remove the dot from the end of the link and it will work. The IDE I like is from Zend (The makers of the PHP engine). Funnily enough it's the previous version (5.5). I tried the latest version and don't really like it as much. I know some people who swear by PhpED (http://www.nusphere.com/) and others who swear by Komodo (http://www.activestate.com/komodo/). There are others out there as well including the PHP project for Eclipse. The PHP book I like the best (And the one that I learned a lot from is PHP and MySQL Web Development (http://www.amazon.com/PHP-MySQL-Development-Developers-Library/dp/0672329166/ref=pd_lpo_k2_dp_k2a_2_txt?pf_rd_p=304485601pf_rd_s=lpo-top-stripe-2pf_rd_t=201pf_rd_i=067232525Xpf_rd_m=ATVPDKIKX0DERpf_rd_r=18CXNPJKPD3QQ9YEZM5F) --- In flexcoders@yahoogroups.com, raja_s_patil kpr.rspa...@... wrote: Thanks Steve, PHP 6 is not out yet and won't be for a while. The latest Release Candidate is 5.3 and latest stable is 5.2.9. I am using 5.2.3 on Red Hat Linux. For PDO, check out http://us.php.net/manual/en/book.pdo.php. This Link dont work, I think its not complete since ends with a . (dot) For WebORB check out http://www.themidnightcoders.com/products.html I have downloaded and I think I with a new Ball and Chain which will keep me tied to a place for a while. Well I will be back after few days since Flex data connectivity is a altogether new to us so we try to develop a pilot application and come back again with some issues if any. We have to learn PHP also. I found some good PHP books in local store here which we will buy today. BTW can u suggest some good PHP IDE, if there is any ? Thanks once again and Best Regards Raja
[flexcoders] Re: Sending a HEAD request
You could include a javascript function in the wrapper and call it from externalInterface.call. Something like... function UrlExists(url) { var http = new XMLHttpRequest(); http.open('HEAD', url, false); http.send(); return http.status!=404; } HTH Steve --- In flexcoders@yahoogroups.com, stephen_anson s...@... wrote: Hi, The server side dev team have asked if I can send a HEAD request to their home page in order to 'keep my flex app logged in' What is the best way of going about this. URLRequest will not allow the method as a HEAD as far as I can see. And URLLoader returns the html data, I basically need to send only Any ideas much appreciated thanks Steve
[flexcoders] dynamic GUI
Hi All, I am wondering that is there a way to make a dynamic GUI which means that every time loaded, the GUI might be changed according to the modification in the server side? Btw, my intention is to create an other class to manage this, but I am not sure is it feasible in Flex?
[flexcoders] Being able to recognize when mouse is hovering over a line
Hi everyone, I am trying to be able to detect a mouseover event whenever a user hovers over a line drawn using the graphics.drawLine call. Is this possible at all? I am using the springgraph component that is out there but want to be able to display a tooltip explaining the connecting line between nodes. Thanks!
[flexcoders] Re: Making ComboBox stay open after item select?
Still not too much to do on that. All the functionality appears to be in the close function. I've kludged up this to do what you want. There's a _calling variable in there as the close function gets called twice on every change (for reasons I don't care to examine) that'll allow it to dispatch the change event once per frame. package { import flash.events.Event; import mx.controls.ComboBox; import mx.events.ListEvent; public class ComboBoxNoClose extends ComboBox { private var _calling:Boolean = false; public function ComboBoxNoClose() { super(); } public override function close(trigger:Event = null):void { if (trigger != null) super.close(); else if (dropdown != null !_calling) { _calling = true; dispatchEvent(new ListEvent(change)); callLater(function():void { _calling = false} ); } } } } --- In flexcoders@yahoogroups.com, Sascha sbal...@... wrote: My problem is that writing a whole custom component is too involved for the few time I have and your method seems to work quite well. The only trouble I have (as described in my previous reply) is that the ComboBox should fire a change event everytime an item is selected while it stays opened. By default the ComboBox is only firing this event after it closes. However listening to the dropdown (the List component in the ComboBox) property's ListEvent.CHANGE seems not to cut it. It would be great if you would have a workaorund for this! Best, Sascha From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Ben Reynolds Sent: Thursday, April 16, 2009 14:23 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Making ComboBox stay open after item select? I'm by no means on Alex's level of Flex knowledge, but a Button combined with a Menu component would work too. You wouldn't get into resizing issues and you'd still be able to do styling without resorting to UIComponent first principles. :) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Sascha sbalkau@ wrote: I've made a short test and that seems to work so far. Thanks for the hint Ben! I almost started to try writing a custom component from a Button and a List wrapped into a UIComponent as Alex Harui suggested in a message I've found but seems that that's not necessary. Sascha From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Ben Reynolds Sent: Thursday, April 16, 2009 10:34 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Making ComboBox stay open after item select? Something like: package { import flash.events.Event; import mx.controls.ComboBox; public class ComboBoxNoClose extends ComboBox { public function ComboBoxNoClose() { super(); } public override function close(trigger:Event = null):void { if (trigger != null) super.close(); } } } --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Sascha sbalkau@ wrote: Does anyone know how to modify the ComboBox so that it stays open after selecting an item? I need such a ComboBox for a client that opens/closes only if the user clicks on the 'header area' of the ComboBox or that closes only if clicked outside the ComboBox. The use case for this is that the ComboBox will have custom item renderers that contain (for example) a CheckBox and a Label and the user should be able to make several selections without the ComboBox closing inbetween. I've made this before by wrapping all the stuff into a Panel and changing the Panels height on close so that only the header is visible but that method is rather suboptimal, especially for skinning. Would be great if somebody has a workaround for this! Thanks in advance! Sascha
[flexcoders] Need Help
Hello friends, I am developing web based flex application , which contains a menubar and few textinput controls.In the menu bar i have edit menu which includes cut,copy,paste,find,replace.The keyboard shortcut and context menu item for cut,copy,paste of the textinput are working fine.But i need to implement this funtionalties(cut,copy, paste,find,replace)in my custom menubar.How can i do this?. Also hw to send email with attachment in flex. i need the excel file generated from the datagrid to be attached as an attachment in the email?.Please suggest me some good ideas and examples. RegardsHeman
[flexcoders] Adobe Air and SharedObject in app-storage
Hi there, I'm developing an air application that loads external swf files from the app-storage folder. In my external swf file I have to store a local object, but every time I try to flush (write) my object I get an error that the SharedObject can't be flushed. I assume that the Sandbox don't allow this? I searched the whole web but I don't found a solution. Is it possible to start (or install) the air application from the app-storage folder, too? many many thanks bye ray
[flexcoders] Re: DateFormatter and dynamic resource management errror
Okay, I have what I suppose is a solution to this, but I'm still short a coupla answers. 1) I ran the resource-bundle-list option again on my application mxmlc -locale= -resource-bundle-list=myresources.txt -include-libraries+=..\libs\CairngormWithExtensions.swc app.mxml which came up with: CairngormMessages LanguageResource SharedResources collections containers controls core effects formatters logging messaging rpc skins styles utils The difference is the SharedResources and formatters, which wasn't in the original. 2) I recompiled the resource bundles (skipping CairngormMessages, which I'm not using) over the 15 languages. ie. mxmlc -locale=da -source-path=locale/{locale} -include-resource-bundles=LanguageResource,SharedResources,collections,containers,controls,core,effects,logging,messaging,rpc,skins,styles,utils -output=src/Resources_da.swf So now it doesn't fall over on MMM or . However, I have but face. Also, I'm about to make some assumptions... The copylocale that I used earlier to create the resources seems to do exactly that: copies. It doesn't actually create a proper locale for all those places. So January in en_US is still January in it_IT when, according to Babelfish, it should be Gennaio etc. etc. What can I do about this? Where can I get proper versions of these locales? Is there a way to get the names from the operating system and apply them to DateBase or is this already happening and I just can't see it because I'm running an English machine? Danke for any light you can shed on this. --- In flexcoders@yahoogroups.com, Ben Reynolds mrb...@... wrote: Hey guys, I have a Flex 3 app that employs dynamic resource management - pretty much a cut-n-paste job from the Adobe sample - with the ComboBox to switch languages. I did all the copylocale rigmarole and it's all working perfectly with the languages I've set up. However, when I try to call a DateFormatter with a full month (MMM or ) in the formatString it crashes and burns with the following error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.formatters::DateBase$/http://www.adobe.com/2006/flex/mx/internal::ext\ ractTokenDate() This is probably referring to the DateBase.monthNamesLong array; formatting is not an issue with M or MM. Am I perhaps missing something in the creation of my resource files? This is a sample of the command I used: mxmlc -locale=es_ES -source-path=locale/{locale} -include-resource-bundles=LanguageResource,collections,containers,contro\ ls,core,effects,logging,messaging,rpc,skins,styles,utils -output=src/Resources_es_ES.swf But it even dies when the locale is set to en_US. Help? :)
[flexcoders] Need help- cannot insert multiple statements in one SQL transaction.
Air and Flex experts- I am having a heck of a time getting multiple insert and update statements to run within one transaction against my Air applications SQLite db. Only the first INSERT, UPDATE, or DELETE makes it in. I am not seeing errors, but it seems like it is failing. If I run the same SQL in another SQL editor, my SQL works fine. Example code is: Var myInsert: String = Insert into EMPLOYEES ( NAME ) VALUES (Bob); ; myInsert += Insert into EMPLOYEES ( NAME ) VALUES (John); ; myInsert += Insert into EMPLOYEES ( NAME ) VALUES (Fred); ; var localConnection : SQLConnection = new SQLConnection(); localConnection.open(myDatabase); localConnection.begin(); var statement: SQLStatement = new SQLStatement(); statement.sqlConnection = localConnection; statement.text = myInsert; statement.execute(); localConnection.commit(); I have tried in synchronous and async mode with the same results. Please tell me what I am doing wrong! :) Thanks! Dustin
[flexcoders] BlazeDS messaging over SSL
Hi, I have an application that uses the data push technology of blazeDS to send data to a Flex Client event 5 seconds. The application works fine when I run it via HTTP with or without a proxy. When I run it via https the data push doesn't work anymore. I get the following error rootCause [IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2 text=Error #2032: Stream Error. URL: https://localhost/admin/messagebroker/streamingamfsecure?command=openversion=1 Has anyone successfully got streaming to work over SSL? Thanks, Pratima
[flexcoders] Re: dynamic GUI
I would say yes. You can build the entire display list from Actionscript based on the data in a database. I do this in one part of my application to build forms dependent on the results of database calls. HTH Steve --- In flexcoders@yahoogroups.com, freeman_vu freeman...@... wrote: Hi All, I am wondering that is there a way to make a dynamic GUI which means that every time loaded, the GUI might be changed according to the modification in the server side? Btw, my intention is to create an other class to manage this, but I am not sure is it feasible in Flex?
Re: [flexcoders] dynamic GUI
- Original Message - From: freeman_vu freeman...@yahoo.com To: flexcoders@yahoogroups.com Sent: Thursday, April 16, 2009 11:17 PM Subject: [flexcoders] dynamic GUI Hi All, I am wondering that is there a way to make a dynamic GUI which means that every time loaded, the GUI might be changed according to the modification in the server side? Btw, my intention is to create an other class to manage this, but I am not sure is it feasible in Flex? Depends in what sense that you mean. Many people (myself included) drive UI construction dynamically by pulling XML from the server side to control structure and content. Others use CMS systems etc. What exactly are you thinking?
[flexcoders] Download *.docx from server
Hi all I have a weard issue, if I upload a foo.docx to server and want to download it later using Flex and the FileReference class I got this 17/04 15:13:28 error Requested resource '/**/1.3.11 Gjennomf?ringer.docx' (%2flcds%2flic%2f5%2f1%2f2%2f1.3.1 1%20Gjennomf%ef%bf%bdringer.docx) not found It works fine when I downloade a foo.doc
[flexcoders] Re: Download *.docx from server
Sorry duds, I have to configer my JRun and IIS6 to handle the MIME Type ;) --- In flexcoders@yahoogroups.com, Cato Paus ca...@... wrote: Hi all I have a weard issue, if I upload a foo.docx to server and want to download it later using Flex and the FileReference class I got this 17/04 15:13:28 error Requested resource '/**/1.3.11 Gjennomf?ringer.docx' (%2flcds%2flic%2f5%2f1%2f2%2f1.3.1 1%20Gjennomf%ef%bf%bdringer.docx) not found It works fine when I downloade a foo.doc
Re: [flexcoders] flex component - option to convert to popup
I'm unclear what your question is. Are you having problems getting this to work? cvsikh wrote: Hi, I want to have a button which can open an existing component as a popup through Flex' popupmanager. Basically, the popup will be opened from main.mxml and the popup will have a component already being shown on main.mxml, it won't come from a seperate mxml file. Thanks for the help. -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
[flexcoders] Re: DataGridColumn itemRenderers interfere with DataGrid row rollover
Hi, I've got an update to my issue below: If I set the backgroundColor of the DataGridColumn and the itemRenderer extends any container, the highlighting of that column doesn't work correctly. If I remove the backgroundColor then all is well. ...all other columns rollover correctly except the one with the item renderer. I've tried implementing the IDropInListItemRenderer interface and overriding the validateNow() method but that still doesn't fix that rollover being a single strip over that column. Does anyone have an idea what might be going on? Thanks in advance for any helpful tips. --- In flexcoders@yahoogroups.com, fumeng5 fume...@... wrote: Hi, It seems that whenever I have an HBox itemRenderer for a DataGridColumn, and I place an image in that itemRenderer, that DataGrid column doesn't highglight correctly. For instance, there's only a thin line that covers that column. However, the rest of the rollovers for all other columns work correctly. What about the HBox/Image itemRenderer could be interfering with this? Here's my itemRenderer: package pb.renderers { import flash.display.DisplayObject; import flash.text.TextField; import mx.containers.HBox; import mx.controls.Image; public class IconRenderer extends HBox { private var iconImg:Image; [Embed(assets/settings/icon.jpg)] private var favIcon:Class; public function IconRenderer() { super(); } override public function set data(value:Object):void { super.data = value; if(data.favorite == 'true') iconImg.visible = true; else iconImg.visible = false; invalidateProperties(); } // set the styles for the buttons override protected function createChildren():void{ super.createChildren(); iconImg = new Image(); iconImg.source = favIcon; iconImg.scaleContent = false; iconImg.visible = false; this.addChild(iconImg); } /* center the checkbox if we're in a datagrid */ override protected function updateDisplayList(w:Number, h:Number):void { super.updateDisplayList(w,h); var n:int = numChildren; for (var i:int = 0; i n; i++) { var c:DisplayObject = getChildAt(i); if (!(c is TextField)) { c.x = (w - c.width) / 2; c.y = 0; } } } } } Thank you for any helpful tips.
[flexcoders] ChartBase --- dataTipCalloutStroke
Can anyone tell me why when I set the dataTipCalloutStroke the stroke doesn't actually change? None of these works (callouts are still grey lines): mylinechart.setStyle('dataTipCalloutStroke', null); mylineseries.setStyle('dataTipCalloutStroke', null); mylinechart.setStyle('dataTipCalloutStroke', 0xff); mylineseries.setStyle('dataTipCalloutStroke', 0xff);
[flexcoders] Re: Custom DataTip function and mouse cursor. Little gray forking lines.
Found the problem: You need to do the following: mylinechart.setStyle('calloutStroke', null); Eli, I guess didn't fix this for Gumbo either. Documentation for Flex 3 and Gumbo, as well as the code says it should be chart.setStyle('dataTipCalloutStroke', null); which is not correct (see link below) http://www.mail-archive.com/flexcoders@yahoogroups.com/msg64697.html --- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote: I was wondering if anyone has seen an example or can tell me if I am on the correct track regarding datatips. What I am trying to achieve is create a line chart with two data series, thus two lines. The chart height will be low, like Edward Tuft's sparklines (google it if you aren't familiar). When the user mouses over the chart I want to send both data point of data for both the series to a datatip function. I then want nothing to show up for the datatip (blank and no gray lines forking out), as I am sending that hitData info to a function that displays the data series points on another panel. So far I have created a custom dataTipRenderer, that is empty, but I still get the gray lines forking out point to my empty/blank renderer. So it looks like a gray line sticking out to nothing. Second issue is that I always want both series to send their data to my datatip function. Sometimes it sends both if the mouse pointer happens to touch both lines. I was thinking if I make a custom mouse pointer for just the chart that is a long vertical line it will always touch both data points, which solves that problem. Unless anyone has another idea? The second issue with the gray forking lines I can't seem to get rid of those little suckers. Any ideas?
[flexcoders] Re: showDataTipsTargets without showing datatips?
Found the problem: You need to do the following: mylinechart.setStyle('calloutStroke', null); or mylinechart.setStyle('calloutStroke', colorofchoice); -- if you want a different color Eli, I guess didn't fix this for Gumbo either. Documentation for Flex 3 and Gumbo, as well as the code says it should be chart.setStyle('dataTipCalloutStroke', null); which is not correct (see link below) http://www.mail-archive.com/flexcoders@yahoogroups.com/msg64697.html
[flexcoders] Need Guidance From CrossDomain Secuirty Expert. Please Reply
Dudes , I m trying to build a maps application which is calling webservices from http://kimon.techways.gr:7762/services/testuser/MashupApi?wsdl; (ws02 mashup server ) everythign is working fine on local machine when I uploaded my maps application on server http://dacoders.com/mashupmaps/; where I m loading cross domain policy file from dacoders servers www.dacoders.com/crossdomain.xml which is like like ?xml version=1.0? cross-domain-policy site-control permitted-cross-domain-policies=master-only/ allow-access-from domain=kimon.techways.gr to-ports=*/ allow-access-from domain=*.techways.gr to-ports=*/ allow-access-from domain=91.194.90.136 to-ports=*/ allow-http-request-headers-from domain=91.194.90.136 to-ports=* headers=SOAPAction/ { even try to changed the headers to * } /cross-domain-policy but still getttign secuirty error like faultCode:Channel.Security.Error faultString:'Security error accessing url' faultDetail:'Destination: DefaultHTTP' remeber I autogenerated xml methods from Data WEb Services wizard Please help me to get rid of this error -Sajid dacoders.com
RE: [flexcoders] Need Guidance From CrossDomain Secuirty Expert. Please Reply
The crossdomain file must go on the server serving the data. That would be the kimon.techways.gr:7762 server. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Sajid Hussain Sent: Friday, April 17, 2009 11:00 AM To: Code Subject: [flexcoders] Need Guidance From CrossDomain Secuirty Expert. Please Reply Dudes , I m trying to build a maps application which is calling webservices from http://kimon. http://kimon.techways.gr:7762/services/testuser/MashupApi?wsdl techways.gr:7762/services/testuser/MashupApi?wsdl (ws02 mashup server ) everythign is working fine on local machine when I uploaded my maps application on server http://dacoders. http://dacoders.com/mashupmaps/ com/mashupmaps/ where I m loading cross domain policy file from dacoders servers www.dacoders. http://www.dacoders.com/crossdomain.xml com/crossdomain.xml which is like like ?xml version=1.0? cross-domain-policy site-control permitted-cross-domain-policies=master-only/ allow-access-from domain=kimon.techways.gr to-ports=*/ allow-access-from domain=*.techways.gr to-ports=*/ allow-access-from domain=91.194.90.136 to-ports=*/ allow-http-request-headers-from domain=91.194.90.136 to-ports=* headers=SOAPAction/ { even try to changed the headers to * } /cross-domain-policy but still getttign secuirty error like faultCode:Channel.Security.Error faultString:'Security error accessing url' faultDetail:'Destination: DefaultHTTP' remeber I autogenerated xml methods from Data WEb Services wizard Please help me to get rid of this error -Sajid dacoders.com
Re: [flexcoders] Re: RSS Feeds
I happen to have done a really cool picture browser that took the pics and data from picasa googles website RSS data, when i completely finished it, DANG, stops working on my server cause of security reasons. 1st i agree it should not work on local as well, i threw months of work!!! :O 2nd, i cannot read an RSS cause of security reasons?? wait...RSS were not intended for being used in our apps? those RSS icons there, are not there for us to work with them??? Finally, if i ever have to get data from outside, and i'm considering doing a RSS reader, and other stuff...i will just get the data to flash though a small PHP script. but that security thing really sucks...(T__T) En/na Baz ha escrit: I know this is an old thread but you can't just browse to it - a browser only displays html, but that html comes from a server at some point - i.e. a proxy. The same goes for ajax. The reason that they don't post a crossdomain.xml is because that would make developers put their secret key inside the flex app which can easily be decompiled and compromised. Still it would be nice to have a solution, without having to spin up your own servers. Baz On Mon, Jul 28, 2008 at 1:01 PM, George george_sm...@tksoftware.com mailto:george_sm...@tksoftware.com wrote: --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, nathanpdaniel ndan...@... wrote: In my experience, Flex Builder Debug swfs have the same are subject to the same crossdomain access restrictions that production swfs have. I'm a bit suspicious of the claim that this is not the case. I think what is being said (if I'm understanding correctly) - running FB3 to load external XML (RSS, APIs, etc) - the security does not exist - crossdomain policy files are not required when running a SWF through FB3. However, when you deploy to production, crossdomain policy files ARE required. That being said - I think the issue lies with - why when we run test in development no security is required, but then to run the same application from a production site (running the swf in anything other than FB3 test). I (or anyone) may develope a fully functional site in FB3, thinking every thing is hunky dory, then move the SWF to production and crash - no crossdomain.xml file... then, as a developer I have to either 1) contact the publisher of the RSS, API, etc I'm trying to load, and ask them to kindly put up a crossdomain.xml policy file - which isn't likely to happen... or 2) Redevelop how my application loads data (no small thing). It kinda sucks I have to develop around an issue that doesn't exist in development but does in production. I understand the security concerns, but I think it's more on the side of - if I can do it in dev, why can't I do it in production? It'd be nice to at least be able to tell FB3 the app I'm developing will be loading from a site I have no control over which may or maynot have a crossdomain policy file... (ching, ching - my 2 cents)... This is exactly right. I would take it a step further though. If I can get to it with just a browser, then why is it that security is such that I cannot get to it without a crossdomain.xml file that authorizes it. Where is the security hole, if I can just browse to it with Firefox, I.E, Safari, or Opera?
Re: [flexcoders] how to avoid cacheing XML
Thnx, I was wondering if there was a not so ugly technic for do that...reminds me my old times with AS...seems nothing changed...wonder why there is a tool for do so in AIR while there is not in FLEX En/na Maciek Sakrejda ha escrit: The foolproof (albeit ugly) way of doing this is to append a dummy variable, e.g., the current time, to your request: http://localhost/myapp/my.xml?time=128478334 http://localhost/myapp/my.xml?time=128478334 You can do this by adding a Date().getTime() parameter to your URLVariables. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com http://www.truviso.com -Original Message- From: David Pariente xxmapach...@yahoo.es mailto:xxmapachexx%40yahoo.es Reply-to: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] how to avoid cacheing XML Date: Thu, 16 Apr 2009 22:16:14 +0700 Hi all, I have a Flex3 app where i load an XML using URLRequest object. When i makechanges to the XML and upload it to the server, Flex still loads the old cached XML file. I saw there are options for specify not to cache content, but, seems they are only available to Air apps. How could i set it up for NEVER cache my XML file?? Thanx in advance :)
Re: [flexcoders] how to avoid cacheing XML
Flex is at the mercy of the browser when it comes to things like HTTP request caching. -Original Message- From: David Pariente xxmapach...@yahoo.es Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] how to avoid cacheing XML Date: Fri, 17 Apr 2009 22:46:39 +0700 Thnx, I was wondering if there was a not so ugly technic for do that...reminds me my old times with AS...seems nothing changed...wonder why there is a tool for do so in AIR while there is not in FLEX En/na Maciek Sakrejda ha escrit: The foolproof (albeit ugly) way of doing this is to append a dummy variable, e.g., the current time, to your request: http://localhost/myapp/my.xml?time=128478334 http://localhost/myapp/my.xml?time=128478334 You can do this by adding a Date().getTime() parameter to your URLVariables. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com http://www.truviso.com -Original Message- From: David Pariente xxmapach...@yahoo.es mailto:xxmapachexx%40yahoo.es Reply-to: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] how to avoid cacheing XML Date: Thu, 16 Apr 2009 22:16:14 +0700 Hi all, I have a Flex3 app where i load an XML using URLRequest object. When i makechanges to the XML and upload it to the server, Flex still loads the old cached XML file. I saw there are options for specify not to cache content, but, seems they are only available to Air apps. How could i set it up for NEVER cache my XML file?? Thanx in advance :)
Re: [flexcoders] Being able to recognize when mouse is hovering over a line
You would have to listen for mouse events on the container where the line is drawn, and calculate to see if you're actually on (or near) the line. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: manorite04 bdins...@gmail.com Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Being able to recognize when mouse is hovering over a line Date: Thu, 16 Apr 2009 20:43:00 - Hi everyone, I am trying to be able to detect a mouseover event whenever a user hovers over a line drawn using the graphics.drawLine call. Is this possible at all? I am using the springgraph component that is out there but want to be able to display a tooltip explaining the connecting line between nodes. Thanks!
Re: [flexcoders] Re: Need Suggestions for database application.
I actually use PDT: http://www.eclipse.org/pdt/ Now the great thing about this is that I use it as my base and use Flex Builder Eclipse plugin. So you're doing PHP and Flex in 1 place. I'm not sure how you want to communicate with the PHP. Personally I like using URLLoader. There are many other ways to consume data (AMF, WebServices). I personally prefer to use XML because E4X gives you so much power on filtering and manipulating data on the client end. Here is the function I use for retrieving XML: import flash.errors.IOError; import flash.net.URLLoader; import flash.net.URLVariables; public function loadXML(url:String, vars:URLVariables, completeFunction:Function):void { var loader:URLLoader = new URLLoader(); var req:URLRequest = new URLRequest(url); if (vars != null) { req.data = vars; } req.method = URLRequestMethod.POST; loader.addEventListener(complete, completeFunction); loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); loader.load(req); } public function ioErrorHandler(event:IOError):void { trace(event.message); } It just cuts down the rest of my code in other places. All you have to do then is have your result function specified for example: public function gotData(event:Event):void { var xmlResult:XML = XML(event.target.data); }
Re: [flexcoders] Re: create a thumbnail dynamically from large image using flex
On 16-Apr-09, at 10:59 PM, Bjorn Schultheiss wrote: --- In flexcoders@yahoogroups.com, stinasius stinas...@... wrote: any help guys? http://www.brooksandrus.com/blog/2009/03/11/bilinear-resampling-with-flash-player-and-pixel-bender/ Just curious, but would the above way be better than say just creating a thumbnail with a server side language when you upload or add the photo? I guess in the big picture it really depends on what you are trying to accomplish. d
RE: [flexcoders] how to avoid cacheing XML
If you have control over the server, you are supposed t be able to set html headers that prevent caching, but there are so many server and browser combinations, well, good luck. Note, if you use POST to fetch your data, it should not cache. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Maciek Sakrejda Sent: Friday, April 17, 2009 12:00 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] how to avoid cacheing XML Flex is at the mercy of the browser when it comes to things like HTTP request caching. -Original Message- From: David Pariente xxmapachexx@ mailto:xxmapachexx%40yahoo.es yahoo.es Reply-to: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com Subject: Re: [flexcoders] how to avoid cacheing XML Date: Fri, 17 Apr 2009 22:46:39 +0700 Thnx, I was wondering if there was a not so ugly technic for do that...reminds me my old times with AS...seems nothing changed...wonder why there is a tool for do so in AIR while there is not in FLEX En/na Maciek Sakrejda ha escrit: The foolproof (albeit ugly) way of doing this is to append a dummy variable, e.g., the current time, to your request: http://localhost/ http://localhost/myapp/my.xml?time=128478334 myapp/my.xml?time=128478334 http://localhost/ http://localhost/myapp/my.xml?time=128478334 myapp/my.xml?time=128478334 You can do this by adding a Date().getTime() parameter to your URLVariables. -- Maciek Sakrejda Truviso, Inc. http://www.truviso. http://www.truviso.com com http://www.truviso. http://www.truviso.com com -Original Message- From: David Pariente xxmapachexx@ mailto:xxmapachexx%40yahoo.es yahoo.es mailto:xxmapachexx%40yahoo.es Reply-to: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com mailto:flexcoders% 40yahoogroups.com To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] how to avoid cacheing XML Date: Thu, 16 Apr 2009 22:16:14 +0700 Hi all, I have a Flex3 app where i load an XML using URLRequest object. When i makechanges to the XML and upload it to the server, Flex still loads the old cached XML file. I saw there are options for specify not to cache content, but, seems they are only available to Air apps. How could i set it up for NEVER cache my XML file?? Thanx in advance :)
[flexcoders] Re: ChartBase --- dataTipCalloutStroke
Found the problem: Found it!!! You need to do the following: mylinechart.setStyle('calloutStroke', null); or mylinechart.setStyle('calloutStroke', colorofchoice); -- if you want a different color Ely, I guess didn't fix this for Gumbo either. Documentation for Flex 3 and Gumbo, as well as the code says it should be chart.setStyle('dataTipCalloutStroke', null); which is not correct (see link below) http://www.mail-archive.com/flexcoders@yahoogroups.com/msg64697.html
RE: [flexcoders] how to avoid cacheing XML
That's a good point--POSTs won't get cached unless something is seriously borked. See also this note from URLRequest docs: === Note: If running in Flash Player and the referenced form has no body, Flash Player automatically uses a GET operation, even if the method is set to URLRequestMethod.POST. For this reason, it is recommended to always include a dummy body to ensure that the correct method is used. The default value is URLRequestMethod.GET. === In my opinion, using a POST for something that's really a GET that you do not want cached is a little more bogus than appending a dummy parameter, but whatever floats your boat. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Tracy Spratt tspr...@lariatinc.com Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] how to avoid cacheing XML Date: Fri, 17 Apr 2009 12:21:21 -0400 If you have control over the server, you are supposed t be able to set html headers that prevent caching, but there are so many server and browser combinations, well, good luck. Note, if you use POST to fetch your data, it should not cache. Tracy Spratt, Lariat Services, development services available From:flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Maciek Sakrejda Sent: Friday, April 17, 2009 12:00 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] how to avoid cacheing XML Flex is at the mercy of the browser when it comes to things like HTTP request caching. -Original Message- From: David Pariente xxmapach...@yahoo.es Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] how to avoid cacheing XML Date: Fri, 17 Apr 2009 22:46:39 +0700 Thnx, I was wondering if there was a not so ugly technic for do that...reminds me my old times with AS...seems nothing changed...wonder why there is a tool for do so in AIR while there is not in FLEX En/na Maciek Sakrejda ha escrit: The foolproof (albeit ugly) way of doing this is to append a dummy variable, e.g., the current time, to your request: http://localhost/myapp/my.xml?time=128478334 http://localhost/myapp/my.xml?time=128478334 You can do this by adding a Date().getTime() parameter to your URLVariables. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com http://www.truviso.com -Original Message- From: David Pariente xxmapach...@yahoo.es mailto:xxmapachexx%40yahoo.es Reply-to: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] how to avoid cacheing XML Date: Thu, 16 Apr 2009 22:16:14 +0700 Hi all, I have a Flex3 app where i load an XML using URLRequest object. When i makechanges to the XML and upload it to the server, Flex still loads the old cached XML file. I saw there are options for specify not to cache content, but, seems they are only available to Air apps. How could i set it up for NEVER cache my XML file?? Thanx in advance :)
[flexcoders] Re: BlazeDS messaging over SSL
I was able to get it push working, via secure long poll, not streaming. Mike --- In flexcoders@yahoogroups.com, Pratima Rao pratima_j...@... wrote: Hi, I have an application that uses the data push technology of blazeDS to send data to a Flex Client event 5 seconds. The application works fine when I run it via HTTP with or without a proxy. When I run it via https the data push doesn't work anymore. I get the following error rootCause [IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2 text=Error #2032: Stream Error. URL: https://localhost/admin/messagebroker/streamingamfsecure?command=openversion=1 Has anyone successfully got streaming to work over SSL? Thanks, Pratima
[flexcoders] Mousewheel scrolling entire html page not swf.
Wondering if anyone knows how to make the mousewheel just work on the swf not on the entire html page. My swf is embedded in a long html page 1500 pixels in height so when my swf has focus and I use the mousewheel the html page scrolls rather than the swf hearing the mousewheel. Well actually the swf doesn't respond to the mousewheel until the html page has scrolled all the way to the top or bottom. So say I mousewheel down. The html page scrolls until it hits the bottom. Then my swf finally will respond to the mousewheel. The same is true in reverse if you mousewheel up. Any suggestions?
[flexcoders] Re: Sending a HEAD request
Thank you, Is there a way to do the same thing directly in actionscript? thanks Steve --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: You could include a javascript function in the wrapper and call it from externalInterface.call. Something like... function UrlExists(url) { var http = new XMLHttpRequest(); http.open('HEAD', url, false); http.send(); return http.status!=404; } HTH Steve --- In flexcoders@yahoogroups.com, stephen_anson s...@... wrote: Hi, The server side dev team have asked if I can send a HEAD request to their home page in order to 'keep my flex app logged in' What is the best way of going about this. URLRequest will not allow the method as a HEAD as far as I can see. And URLLoader returns the html data, I basically need to send only Any ideas much appreciated thanks Steve
[flexcoders] Re: flex component - option to convert to popup
Hi, Let me try to explain more. Basically, in my Flex application I have an iframe which loads Google Earth. There is no problem with iframe or the google earth showing. What I want to do is, there is an expand button (maximize). On click of this button, I want to open the iframe component in a popup without reloading Google earth. It takes too long to load it. Thanks! --- In flexcoders@yahoogroups.com, Jeffry Houser j...@... wrote: I'm unclear what your question is. Are you having problems getting this to work? cvsikh wrote: Hi, I want to have a button which can open an existing component as a popup through Flex' popupmanager. Basically, the popup will be opened from main.mxml and the popup will have a component already being shown on main.mxml, it won't come from a seperate mxml file. Thanks for the help. -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
[flexcoders] Re: Need Suggestions for database application.
Thanks Deane Venske and steve for ur valuable guidance, Now the data access ideas are taking some shape. now we have to study PHP first then the PDOs and finally the webORB. As far as PHP IDE is concerned we have to use Some open source solution initially till budget gets approved then we can think of commercial product.But by that time to develop pilot project I think its OK. I also read few threads about PHP vs JAVA as middle tier and found that PHP is not altogether rejected but almost everybody has agreed that its easy to learn, code and development is much faster compared to Java. Exactly this is what is expected from a developer, a fast response. We have decided that initially we will develop our first project with PHP as middleware and if we face some serious probles regarding security, scalability and performance we will think of Java middleware and have taken our client also in confidence he too have indicated consent to this idea. So this is the story at this moment and we are starting to read PHP from tomorrow may a week or two will be required to get things atleast going in PDO and webORB way meanwhile I have question about the third aspect of application i.e. Reporting for that I will open up a fresh thread Hope u ppl also contribute to that also. Thanks once again for sharing experience and taking us in right direction. I would like to express a sincere gratitude to all of you on behalf of our team. Raja
[flexcoders] Need Suggestions for Reporting In Flex Applications.
Hello Friends, We are in process of evaluating Flex for Converting a Delphi-Firebird Desktop C/S application to a web application. Till date this list has helped us in two aspects of Application UI and Data access. Now we need help on Third aspect of Application REPORTING. The application under consideration has many reports. All report generating forms accept information from user and that is passed as parameters to Stored Procedure in Firebird and the it passes report data in table format and being printed or saved to disk file. The general features of existing reporting solution we have provided are all reports can be printed in Std Windows Printing mode and fast Dot Matrix Printing mode. Similarly base data for that report can be exported to almost 13 different formats like, doc, XLS, PDF, XML, latex, CSV, Text, ODT, ODS, dbf etc. etc but most popular are xls, pdf, ods and dbf. we would like to have similar functionality in flex also. Can somebody tell us about how reporting is done in flex and mention whether above functionality is achievable in Flex. Thanks and Best regrds. Raja
Re: [flexcoders] Re: Custom DataTip function and mouse cursor. Little gray forking lines.
To get data from both series you can use Series.localToData( mousePos:Point ) to get an array of coordinates x,y (in data units), then from both series with a loop on series.items get the chartItem matching the x you got from localToData. There doesnt seem to be any direct method to get whole set of datapoints from a given abscisse (in screen or data coordinates). Thank you for the setStyle tip. thomas 2009/4/17 flexaustin flexaus...@yahoo.com Found the problem: You need to do the following: mylinechart.setStyle('calloutStroke', null); Eli, I guess didn't fix this for Gumbo either. Documentation for Flex 3 and Gumbo, as well as the code says it should be chart.setStyle('dataTipCalloutStroke', null); which is not correct (see link below) http://www.mail-archive.com/flexcoders@yahoogroups.com/msg64697.html --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, flexaustin flexaus...@... wrote: I was wondering if anyone has seen an example or can tell me if I am on the correct track regarding datatips. What I am trying to achieve is create a line chart with two data series, thus two lines. The chart height will be low, like Edward Tuft's sparklines (google it if you aren't familiar). When the user mouses over the chart I want to send both data point of data for both the series to a datatip function. I then want nothing to show up for the datatip (blank and no gray lines forking out), as I am sending that hitData info to a function that displays the data series points on another panel. So far I have created a custom dataTipRenderer, that is empty, but I still get the gray lines forking out point to my empty/blank renderer. So it looks like a gray line sticking out to nothing. Second issue is that I always want both series to send their data to my datatip function. Sometimes it sends both if the mouse pointer happens to touch both lines. I was thinking if I make a custom mouse pointer for just the chart that is a long vertical line it will always touch both data points, which solves that problem. Unless anyone has another idea? The second issue with the gray forking lines I can't seem to get rid of those little suckers. Any ideas? -- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net téléphone portable : +33601 822 056
[flexcoders] Re: Sending a HEAD request
You could probably use the URLLoader class (http://livedocs.adobe.com/flex/3/langref/flash/net/URLLoader.html) but then you would have to worry about the security sandbox. I have not done it but it looks doable. --- In flexcoders@yahoogroups.com, stephen_anson s...@... wrote: Thank you, Is there a way to do the same thing directly in actionscript? thanks Steve --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: You could include a javascript function in the wrapper and call it from externalInterface.call. Something like... function UrlExists(url) { var http = new XMLHttpRequest(); http.open('HEAD', url, false); http.send(); return http.status!=404; } HTH Steve --- In flexcoders@yahoogroups.com, stephen_anson s...@... wrote: Hi, The server side dev team have asked if I can send a HEAD request to their home page in order to 'keep my flex app logged in' What is the best way of going about this. URLRequest will not allow the method as a HEAD as far as I can see. And URLLoader returns the html data, I basically need to send only Any ideas much appreciated thanks Steve
[flexcoders] Alive PDF bytearray.org links all failing?
I want to use AlivePDF in an AIR app but am having trouble finding documentation because most all of the links to the bytearray.org sites fail. Can anyone confirm this or suggest what my problem is? I am also having difficulty unzipping the docs in the download because of duplicate, empty files. This is probably some source control system. I'll probably be able to figure this one out myself. Tracy Spratt, Lariat Services, development services available
[flexcoders] Re: Cairngorm sub-applications Remoting
Thanks for the link... I've seen that PDF before but hadn't read up to page 40. It's first suggestion recommended loading the sub-application as a sandboxed application by calling Security.allowDomain() in the main application and calling it also on the sub-application's pre-initialization event. Unfortunately there's no difference. --- In flexcoders@yahoogroups.com, Gordon Hirsch gordon.hir...@... wrote: Have you seen the section titled Using RPC and DataServices classes with multi-versioned applications (~p. 40) in this document? http://livedocs.adobe.com/flex/3/loading_applications.pdf If I understand correctly, you are hitting this issue and will need either to use sandboxing or a bootstrap loader. Like you, we have been struggling with sub-applications. For example, it's not clear from the documentation exactly which classes are safe to use in a bootstrap loader. Does anyone have details on what's legal and what's not? --- In flexcoders@yahoogroups.com, Erich Cervantez flex@ wrote: The key thing to note: both applications are able to dispatch service calls on their own when called separately through a browser. Both applications work great on their own. Currently, I'm pointing the source attribute on SWFLoader to the swf location of the sub-application. I'm loading the app into a peer Application Domain (I believe, on the same level as the parent application - both children of the System Domain): _loaderContext.applicationDomain = new ApplicationDomain(); mySubApplication.loaderContext = m_loaderContext; mySubApplication.source = http://xyz:8080/xyz/MySubApp.swf;; I've tried loading the sub-swf into the same App domain, but since they're both Cairngorm apps and use the Cairngorm ServiceLocator singleton, I get the typical singleton error (only one servicelocator can be instantiated). My next option might be to assemble most of the logic in the sub-app into a module. My primary app can load the module and use it's own service framework for remoting (assuming I can get this to work). I can create a separate, light-weight shell container with its own service framework that can also load the same module whenever I want to use the sub-application by itself. Googling this issue isn't working...I have to assume someone out there is creating portal applications that load small sub-apps (in Cairngorm). I have to figure out how they solved this problem... --- In flexcoders@yahoogroups.com, Maciek Sakrejda msakrejda@ wrote: The 'destination null' seems to imply that your Flex-side remoting metadata is fubared. It's trying to contact a destination that was not configured--or somehow got unconfigured through the peer-appdomain swf loading. I've asked about doing something similar with Modules, and was told by Adobe folks on the list that this would be a Bad Idea. However, I believe they suggested separate apps--just as you are doing. Have you tried loading the .swfs into the same appdomain? -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Erich Cervantez flex@ Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairngorm sub-applications Remoting Date: Thu, 16 Apr 2009 17:01:51 - Has anyone written two distinct Cairngorm-based applications, each capable of dispatching service calls (via RemoteObject) and tried loading one inside of the other? Essentially I have a parent application that uses SWFLoader to load a sub-application (in a peer Application Domain). The sub-application loads visually within the parent application but service calls from the sub-application result in a runtime error: TypeError: Error #1034: Type Coercion failed: cannot convert obj...@x to mx.messaging.messages.ErrorMessage. JBOSS logs show this: No destination with id 'null' is registered with any service. The first error appears to be a class-aliasing problem, but both of these apps are Cairngorm-based Flex applications...the registerClassAlias method shouldn't be required (besides, I tried that tactic already to no avail). This is the only Flex-equivalent of a bat-signal I can think of ;) Erich
Re: [flexcoders] Re: Sending a HEAD request
Today on Twitter I heard about this library as3httpclient. Appears to support doing HEAD requests. See: http://code.google.com/p/as3httpclient/
[flexcoders] Re: relationship of mxml child tags and actionscript
Aaron, Thanks much for the lead. I was digging into the Flex 3 doc pdf and it seems it was a little harder to get around;) Maybe just for me... Have a great weekend! -geng --- In flexcoders@yahoogroups.com, Aaron Hardy aaronius...@... wrote: Geng, Use the DefaultProperty metadata tag in your AS class. Whatever property you specify will be the property to which your MXML children will be set. Here's a start: http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=metadata_141_07.html Aaron gwangdesign wrote: Hi, I am still looking for some general documentations about the guidelines as to how to write ActionScript custom components. It's clear that you can expose public properties, styles and event listeners of your custom components as MXML properties. But what are the general rules if I want to allow my client developers to define a property in my custom component using a MXML child tag (as opposed to a property)? Like this: my:MyComp my:myChild color=0xFF width=300 mx:Label text={data}/ /my:myChild /my:MyComp Again, I am looking for _general_ guidelines. Thanks much. -geng
RE: [flexcoders] Alive PDF bytearray.org links all failing?
I am also having difficulty unzipping the docs in the download because of duplicate, empty files. I ran into this the other day, on windows with the built in zip decompressor. Solved it by using 7zip instead (why I wasn't in the first place eludes me, it's what I normally use and would recommend) __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __winmail.dat
[flexcoders] Re: Need help- cannot insert multiple statements in one SQL transaction.
Okay... 1) use a synchronous connection as async won't work for transactions. 2) yep, use transactions 3) put your statements in an array, not a semi-colon separated string 4) here's the key part of the code I use connection.begin(); for each (var sqlString:String in sqlArray) { statement.text = sqlString; try { statement.execute(-1); } catch(error:SQLError) { connection.rollback(responder); } } connection.commit(responder); connection.close(); --- In flexcoders@yahoogroups.com, icodeflex icodef...@... wrote: Air and Flex experts- I am having a heck of a time getting multiple insert and update statements to run within one transaction against my Air applications SQLite db. Only the first INSERT, UPDATE, or DELETE makes it in. I am not seeing errors, but it seems like it is failing. If I run the same SQL in another SQL editor, my SQL works fine. Example code is: Var myInsert: String = Insert into EMPLOYEES ( NAME ) VALUES (Bob); ; myInsert += Insert into EMPLOYEES ( NAME ) VALUES (John); ; myInsert += Insert into EMPLOYEES ( NAME ) VALUES (Fred); ; var localConnection : SQLConnection = new SQLConnection(); localConnection.open(myDatabase); localConnection.begin(); var statement: SQLStatement = new SQLStatement(); statement.sqlConnection = localConnection; statement.text = myInsert; statement.execute(); localConnection.commit(); I have tried in synchronous and async mode with the same results. Please tell me what I am doing wrong! :) Thanks! Dustin
[flexcoders] merapi to os bridge application for flex developers
Is there someone out there who has the motive and the time to develop a standalone Merapi-enabled Java application with a documented api for flex developers using the Merapi bridge to perform a basic library of functions that one can't do in AIR?
[flexcoders] Namespaces/packages problem
I'm trying to create a cairngorm version of my application, as such I've used the namespace: com.myproject.cairngorm.* However as far as I can tell it seems using the name 'cairngorm' in my project namespace is causing problems with the actual cairngorm swc. I've tried the below test and found it isn't a cairngorm specific issue... In a library project I have an interface (or what is IModelLocator in cairngorm package): package com.someframework { public interface ITestClass{} } in my actual flex project I have a class that implements this interface (or my modellocator in my real project): package com.myproject.someframework { public class TestClass implements com.someframework.ITestClass { public function TestClass(){} } } now in my main.mxml file i try: var test:com.someframework.ITestClass = new com.myproject.someframework.TestClass(); which gives me the following errors: 1046: Type was not found or was not a compile-time constant: ITestClass. Main.mxmlNamespaceBugTest/srcline 6Flex Problem 1120: Access of undefined property com.Main.mxml NamespaceBugTest/srcline 6Flex Problem Is this expected behaviour and I'm missing something obvious or a flex problem?
[flexcoders] Re: Namespaces/packages problem
Hi, Usually you would import the class: import com.someframework.ITestClass; and then implement like: public class TestClass implements ITestClass HTH -TH --- In flexcoders@yahoogroups.com, DannyT danmo...@... wrote: I'm trying to create a cairngorm version of my application, as such I've used the namespace: com.myproject.cairngorm.* However as far as I can tell it seems using the name 'cairngorm' in my project namespace is causing problems with the actual cairngorm swc. I've tried the below test and found it isn't a cairngorm specific issue... In a library project I have an interface (or what is IModelLocator in cairngorm package): package com.someframework { public interface ITestClass { } } in my actual flex project I have a class that implements this interface (or my modellocator in my real project): package com.myproject.someframework { public class TestClass implements com.someframework.ITestClass { public function TestClass() {} } } now in my main.mxml file i try: var test:com.someframework.ITestClass = new com.myproject.someframework.TestClass(); which gives me the following errors: 1046: Type was not found or was not a compile-time constant: ITestClass. Main.mxml NamespaceBugTest/src line 6 Flex Problem 1120: Access of undefined property com. Main.mxml NamespaceBugTest/src line 6 Flex Problem Is this expected behaviour and I'm missing something obvious or a flex problem?
Re: [flexcoders] Re: Namespaces/packages problem
Thanks tim but unfortunately that doesnt help in this instance 2009/4/18 Tim Hoff timh...@aol.com Hi, Usually you would import the class: * import * com.someframework.ITestClass; and then implement like: * public * *class* TestClass *implements* ITestClass HTH -TH --- In flexcoders@yahoogroups.com, DannyT danmo...@... wrote: I'm trying to create a cairngorm version of my application, as such I've used the namespace: com.myproject.cairngorm.* However as far as I can tell it seems using the name 'cairngorm' in my project namespace is causing problems with the actual cairngorm swc. I've tried the below test and found it isn't a cairngorm specific issue... In a library project I have an interface (or what is IModelLocator in cairngorm package): package com.someframework { public interface ITestClass { } } in my actual flex project I have a class that implements this interface (or my modellocator in my real project): package com.myproject.someframework { public class TestClass implements com.someframework.ITestClass { public function TestClass() {} } } now in my main.mxml file i try: var test:com.someframework.ITestClass = new com.myproject.someframework.TestClass(); which gives me the following errors: 1046: Type was not found or was not a compile-time constant: ITestClass. Main.mxml NamespaceBugTest/src line 6 Flex Problem 1120: Access of undefined property com. Main.mxml NamespaceBugTest/src line 6 Flex Problem Is this expected behaviour and I'm missing something obvious or a flex problem? -- http://danny-t.co.uk
Re: [flexcoders] Re: Namespaces/packages problem
Actually Tim, that approach did make a difference in my main.mxml so this works: import com.someframework.ITestClass; import com.myproject.someframework.TestClass; var test:ITestClass = new TestClass(); whereas this doesn't: var test:com.someframework.ITestClass = new com.myproject.someframework.TestClass(); Is that really expected behaviour? I've always believed the above two implementations to be pretty much the same as far as the compiler was concerned?? Anyway I'm happy to have it figured out so thanks for responding. Dan 2009/4/18 DannyT danmo...@googlemail.com Thanks tim but unfortunately that doesnt help in this instance 2009/4/18 Tim Hoff timh...@aol.com Hi, Usually you would import the class: * import * com.someframework.ITestClass; and then implement like: * public * *class* TestClass *implements* ITestClass HTH -TH --- In flexcoders@yahoogroups.com, DannyT danmo...@... wrote: I'm trying to create a cairngorm version of my application, as such I've used the namespace: com.myproject.cairngorm.* However as far as I can tell it seems using the name 'cairngorm' in my project namespace is causing problems with the actual cairngorm swc. I've tried the below test and found it isn't a cairngorm specific issue... In a library project I have an interface (or what is IModelLocator in cairngorm package): package com.someframework { public interface ITestClass { } } in my actual flex project I have a class that implements this interface (or my modellocator in my real project): package com.myproject.someframework { public class TestClass implements com.someframework.ITestClass { public function TestClass() {} } } now in my main.mxml file i try: var test:com.someframework.ITestClass = new com.myproject.someframework.TestClass(); which gives me the following errors: 1046: Type was not found or was not a compile-time constant: ITestClass. Main.mxml NamespaceBugTest/src line 6 Flex Problem 1120: Access of undefined property com. Main.mxml NamespaceBugTest/src line 6 Flex Problem Is this expected behaviour and I'm missing something obvious or a flex problem? -- http://danny-t.co.uk -- http://danny-t.co.uk
[flexcoders] AUTO: Christophe Jolif is out of the office (returning 04/25/2009)
I am out of the office until 04/25/2009. Note: This is an automated response to your message [flexcoders] merapi to os bridge application for flex developers sent on 18/4/09 0:14:40. This is the only notification you will receive while this person is away.
[flexcoders] Re: create a thumbnail dynamically from large image using flex
i just need a way to create a thumbnail from a larger image dynamically in flex so that i dont have to store both a thumb and large image of the same image. trying to save on storage and load time of application. can some one please help out. thanks
[flexcoders] Custom List ItemRenderer / Recycling troubles
I'm attempting to create a very simple item renderer for mx:List. I've found that when the dataProvider is static, there are no problems with the custom item renderer. However, when the dataProvider is dynamic, the height of the item renderer is not correct. I've set variableRowHeight=true for the List. I've also tried overriding the measure function and invaliding the size when a dataChange event is dispatched. So far, I have a multi-line Text component with word wrap, but the height (determined by textHeight in the overriden measure) is way to large. CommentRenderer.mxml: ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100% mx:Script ![CDATA[ override protected function measure():void { super.measure(); measuredHeight = comment.textHeight; } ]] /mx:Script mx:LinkButton label={data.commenter.name}/ mx:Text id=comment width=100% text={data.comment} dataChange=invalidateSize()/ /mx:VBox The mx:List definition: mx:List id=comments itemRenderer=com.test.CommentRenderer width=100% height=100%/ I've looked over the ListItemRenderer, but have so far been unable to glean the magic sauce that makes the item renderer function correctly when the control recycles. Can someone explain why my item renderer height is determined to be 294 pixels, when the Text has only 3 lines (standard font)? What am I missing here?