Re: [flexcoders] Re: NEED more than 15 menu item in Context Menu ????
We grab the right click in our .NET app and display that. I belive we capture the event from the control so the native Flash menu isn't shown. This works really well. On Mon, May 25, 2009 at 12:35 PM, Dharmendra Chauhan chauhan_i...@yahoo.com wrote: Hi Samuel, Thanks for the reply. Its running inside Flash Player ActiveX control.so no java script heck can be applied..I completely stuck at this point..Need some ideas around it. Any other UI components can be used to get similar functionality. Regards, Dharmendra --- In flexcoders@yahoogroups.com, Sam Lai samuel@... wrote: Is the Flex app loaded in the IE ActiveX control, or the Flash Player ActiveX control? If it is IE, any of the tricks to hide the context menu in the normal IE browser should work. Never tried doing this myself though. On 5/23/09, Dharmendra Chauhan chauhan_i...@... wrote: Thanks Lot for the Reply. My FLex Application is not running inside browser , It is running inside DOt Net container as a Active X control. the idea you suggested required default context menu to be hidden ..is it possible to hide it ? If yes then I Can open some custom window on right click and design. I am not sure how concrete this idea is.. --- In flexcoders@yahoogroups.com, Yves Riel riel@ wrote: What about intercepting the right-click at the browser level and displaying your own contextual menu? However, you might have some browser incompatibility to look at. http://blog.another-d-mention.ro/programming/right-click-and-custom-cont ext-menu-in-flash-flex/ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Dharmendra Chauhan Sent: Friday, May 22, 2009 3:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] NEED more than 15 menu item in Context Menu Hi, I really need to have more than 15 menu item displayed on Context Menu. I desperately need some workaround or ideas to achieve this My client has invested thousands of dollar in Flex Project, he definitely need more than 15 menu item.If this project failed , client will NEVER think to invest in flex. Had I been aware of this limitation before I would have thought some solution by now.This comes as a surprise to me at the last moment ,just fews days before Prod Date. Pls gents help me get rid of this ...PLEASE provide some ideas. Thanks in advance. Thanks, Dharmendra -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Sent from my mobile device -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Flex + Java + Hibernate
madhavaram123 写道: Hi All, I am facing a peculiar problem while saving the data. Below is the detailed explanation what I am doing. I always get the problem as a different object with the same identifier value was already associated with the session But the above error does not come when I try to save the same object from java. Below is the Parent Class in java [code] import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; /** * Employee entity. @author MyEclipse Persistence Tools */ public class Employee implements java.io.Serializable { private Integer employeeId; private String name; private List communicationTypes = new ArrayList(); // getters and setters follows [/code] Below is the Parent class in Flex [code] package manageCustomList.employee { import mx.collections.ArrayCollection; [Bindable] [RemoteClass(alias=com.config.Employee)] public class Employee { public function Employee() { } public var employeeId:int; public var name:String; public var communicationTypes:Array; } } [/code] Below is the Child Class in java [code] public class CommunicationType extends Employee implements java.io.Serializable { private Integer comTypeId; private Integer typeId; private String typeName; // getters and setters follows } [/code] Below is the child Class in Flex [code] package manageCustomList.employee { import mx.controls.List; [Bindable] [RemoteClass(alias=com.config.CommunicationType)] public class CommunicationType extends Employee { public function CommunicationType() { } public var comTypeId:int; public var typeId:int; public var typeName:String; } } [/code] Below is the method to save the object in the database [code] public static Employee create(Employee employee) throws DAOException { Session session = HibernateSessionFactory.getSession(); try { session.beginTransaction(); session.save(employee); session.getTransaction().commit(); session.flush(); session.evict(employee); } catch (HibernateException exp) { exp.printStackTrace(); } finally { session.close(); } return employee; } [/code] Below is my mxml [code] private function save():void { employee = new Employee(); employee.listId = Number(listId.text); employee.name = empName.text; var childList:Array = new Array(); for(var i:int=0;icheckList.selectedIndices.length;i++){ comType = new CommunicationType(); comType.typeId = checkList.selectedIndices[i]; comType.typeName = checkList.dataProvider[checkList.selectedIndices[i]].label; childList.push(comType); } employee.communicationTypes = childList; emp.create(employee); } [/code] when I do the above i get the error as a different object with the same identifier value was already associated with the session But when I try to save the employee from java as below. It gets saved without any problem. [code] public static void main(String[] args) { Employee emp = new Employee(); emp.setName(fresh from java only 2); CommunicationType comType = new CommunicationType(); comType.setTypeId(1); comType.setTypeName(typeName); List comSet = new ArrayList(); comSet.add(comType); emp.setCommunicationTypes(comSet); create(emp); }[/code] below are my hbm files Employee.hbm.xml [code] hibernate-mapping class name=com.config.Employee table=EMPLOYEE schema=DISLIST id name=employeeId type=java.lang.Integer unsaved-value=-1 column name=EMPLOYEE_ID / generator class=identity / /id property name=listId type=java.lang.Integer column name=LIST_ID length=4 / /property property name=name type=java.lang.String column name=EMP_NAME length=50 not-null=true / /property bag name=communicationTypes cascade=all lazy=false key column=EMPLOYEE_ID/ one-to-many class=com.ibm.dlm.config.CommunicationType/ /bag /class /hibernate-mapping [/code] CommunicationType.hbm.xml [code] hibernate-mapping class name=com.config.CommunicationType table=COMMUNICATION_TYPE schema=DISLIST id name=comTypeId type=java.lang.Integer
Re: [flexcoders] Re: VO Issues
On Wednesday 20 May 2009, Jake Churchill wrote: Struct[__TYPE__] = com.rottmanj.model.vo.CompanyVO; Though note this doesn't handle booleans quite right. You need to JavaCast() them. -- Helping to revolutionarily facilitate unique technologies 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.
Re: [flexcoders] Remote Service fails with IE8 - NetConnection.Call.Failed: HTTP: Status 200
On Friday 22 May 2009, t_varada wrote: Once our clients upgrade to IE8 from IE7 the Flex remote service fails with the following exception, Could you sniff the HTTP traffic and see what is actually going back and forth ? -- Helping to vitalistically transition extensible cross-platform materials 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.
Re: [flexcoders] chart labelRotation problem
Thanks Jake Churchill.. From: Jake Churchill j...@cfwebtools.com To: flexcoders@yahoogroups.com Sent: Saturday, 23 May, 2009 9:32:36 PM Subject: RE: [flexcoders] chart labelRotation problem It seems like I’ve gotten this working before. At least on the axis I did but I had to embed the font for it to work. I think by default, Flex can only rotate the system font or one that’s embedded in the app. Here’s a link to the widget I did with this: http://www.sonburst .com/lfg/ LFG401kAssetAccu mulationChart/ LFG401kAssetAccu mulationChart4. html The right vertical axis has rotation applied. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtoo ls.com 402-408-3733 x103 From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Vikram Singh Sent: Saturday, May 23, 2009 5:32 AM To: Flex Coders Subject: [flexcoders] chart labelRotation problem Hello Friends, I am facing problem in labelRotation of ColumnChart. Can we use labelRotation with ColumnChart ?? If no, which one is suitable option? I want to display label (Text type as well as Numbers) of horizontal axis at 45 degree of rotation. any idea please Regards, Vikram Cricket on your mind? Visit the ultimate cricket website. Enter now! Bollywood news, movie reviews, film trailers and more! Go to http://in.movies.yahoo.com/
Re: [flexcoders] chart labelRotation problem
Thanks Vivian Richard.. :) From: Vivian Richard kanps...@gmail.com To: flexcoders@yahoogroups.com Sent: Monday, 25 May, 2009 7:39:10 AM Subject: Re: [flexcoders] chart labelRotation problem Please see this link -- http://demo.quietlyscheming.com/ChartSampler/app.html In the Style folder see the Axis Labels example. You can also see the code. Regards On Sat, May 23, 2009 at 11:02 AM, Jake Churchill j...@cfwebtools.com wrote: It seems like I’ve gotten this working before. At least on the axis I did but I had to embed the font for it to work. I think by default, Flex can only rotate the system font or one that’s embedded in the app. Here’s a link to the widget I did with this: http://www.sonburst.com/lfg/LFG401kAssetAccumulationChart/LFG401kAssetAccumulationChart4.html The right vertical axis has rotation applied. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Vikram Singh Sent: Saturday, May 23, 2009 5:32 AM To: Flex Coders Subject: [flexcoders] chart labelRotation problem Hello Friends, I am facing problem in labelRotation of ColumnChart. Can we use labelRotation with ColumnChart ?? If no, which one is suitable option? I want to display label (Text type as well as Numbers) of horizontal axis at 45 degree of rotation. any idea please Regards, Vikram Cricket on your mind? Visit the ultimate cricket website. Enter now! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links Explore and discover exciting holidays and getaways with Yahoo! India Travel http://in.travel.yahoo.com/
Re: [flexcoders] LCDS async error
No, tis not 1, all our error handeling uses FaultEvent. How I would have approached this with other parts of the framework. Copy the adobe class into my src folder, make the change needed to avoid the error and let my changed class override the adobe implementation at compile time (what are the implications for this with split framework rsl?), obviously this is not an option now. :( On Mon, May 25, 2009 at 7:28 PM, Jeffrey Vroom j...@jvroom.com wrote: I see two possible things that could cause this error: 1) you have a fault handler whose function definition takes a MessageFaultEvent parameter. You need to change that to the common base class which is (I think) a FaultEvent so it can accept both a MessageFaultEvent and a DataServiceFaultEvent. 2) there is a bug in LCDS where it is doing 1). If you check your code and you don't have any event handlers which take a MessageFaultEvent, it is probably 2). I don't have access to the source anymore or I'd check into 2) for you... Jeff On Mon, May 25, 2009 at 5:17 AM, Johannes Nel johannes@gmail.comwrote: Hi All I have a LCDS app which must stay open for ages, deal with dodgy internet connections and all such fun things. Thus far we have managed to get the NetConnection to re-establish itself nicely when the line drops, but here is a wonderful error (which does not actually break the app) that i get after having the app open for a few hours, only on OS X. So, the fact that it does not touch our code anywhere means that I have no way of trapping this. I would really like some advice on how i can suppress or even catch it. TypeError: Error #1034: Type Coercion failed: cannot convert mx.data.events::dataservicefaultev...@2cb864c1 to mx.messaging.events.MessageFaultEvent. at mx.data::ConcreteDataService/sendRefreshFault() at mx.rpc::AsyncResponder/fault() at mx.rpc::AsyncToken/ http://www.adobe.com/2006/flex/mx/internal::applyFault()http://www.adobe.com/2006/flex/mx/internal::applyFault%28%29 at mx.rpc.events::FaultEvent/ http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()http://www.adobe.com/2006/flex/mx/internal::callTokenResponders%28%29 at mx.data::ConcreteDataService/ http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent%28%29 at DataListRequestResponder/fault() at mx.rpc::AsyncRequest/fault() at NetConnectionMessageResponder/channelDisconnectHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.messaging::Channel/disconnectSuccess() at mx.messaging.channels::NetConnectionChannel/internalDisconnect() at mx.messaging.channels::RTMPChannel/internalDisconnect() at mx.messaging.channels::RTMPChannel/statusHandler() regards Johan -- j:pn \\no comment -- j:pn \\no comment
[flexcoders] Audio breaks while streaming
I have an app deveoped for live streaming. I use FMS 3.5 as the streaming server and use flex to code the front end. When i test the app gradually the sound starts breaking. If i restart the app things are okay but again after some time the audio breaks. Any hint in finding out the issue. Thanks for your help. Manoj
[flexcoders] Flex with ZendAMF and sessions/cookies
Hi, it seems impossible to find any information on how to use Flex with ZendAMf with sessions. There is only one tutorial, and this does not work for me. So please, is there anyone who has ever worked with this constellation? Thanks for any advice, Martin
[flexcoders] String To Date Conversion
Dear all , I have a String like Tue May 26 18:12:55 IST 2009. How to convert this string into Date object ? Thanks Regards, Yogesh Patel Own a website.Get an unlimited package.Pay next to nothing.* Click here!. Cricket on your mind? Visit the ultimate cricket website. Enter http://beta.cricket.yahoo.com
RE: [flexcoders] String To Date Conversion
new Date( Date.parse( your_string_variable ) ); Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of yogesh patel Sent: Tuesday, May 26, 2009 7:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] String To Date Conversion Dear all , I have a String like Tue May 26 18:12:55 IST 2009. How to convert this string into Date object ? Thanks Regards, Yogesh Patel _ Own a website.Get an unlimited package.Pay next to nothing.* Click here!. http://in.rd.yahoo.com/tagline_ysb_website/*http:/in.business.yahoo.com/ _ Explore and discover exciting holidays and getaways with Yahoo! India Travel Click http://in.rd.yahoo.com/tagline_Travel_1/*http:/in.travel.yahoo.com/ here! No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.39/2133 - Release Date: 05/25/09 08:16:00
RE: [flexcoders] dnd list items
http://www.axelscript.com/2008/03/26/creating-a-dragimage-from-your-uicomponent/ This is a blog post a friend of mine wrote about this. Specifically you want this method: public function getUIComponentBitmapData( target : UIComponent ) : BitmapData { var bd:BitmapData = new BitmapData( target.width, target.height ); var m:Matrix = new Matrix(); bd.draw( target, m ); return bd; } This gets bitmap data for whatever UIComponent you may be using for the renderer. Then, here’s his function to initiate dragging: private function doDrag(e:MouseEvent):void { //create an aliase for easier coding for the uicomponent var target:UIComponent = e.currentTarget as UIComponent; //http://www.actionscript.org/forums/showthread.php3?t=152558 var lvImageClone:Image = new Image(); lvImageClone.source = new Bitmap(getUIComponentBitmapData(target)); var lvDragSource:DragSource = new DragSource(); lvDragSource.addData( target, items ); // Call the DragManager doDrag() method to start the drag. DragManager.doDrag(target, lvDragSource, e, lvImageClone, 0, 0, dragImageAlpha); } What is important here is the last line. DragManager.doDrag takes the alpha as a parameter so you can have a fully transparent background. You’ll have to add the border yourself. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thomas parquier Sent: Monday, May 25, 2009 5:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] dnd list items Hi, I'm using a list and custom items can be dnd'd. But the proxy has a white background with a grey border (which the itemrenderer doesnt have), and the whole proxy is a bit transparent. How to get a completely transparent background and no border ? thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net mailto:sip%3awebattit...@ekiga.net téléphone portable : +33601 822 056 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.39/2133 - Release Date: 05/25/09 08:16:00
Re: [flexcoders] Flex with ZendAMF and sessions/cookies
I had a problem using ZendAMF and Zend_Session at the same time. Zend_Session was interfering with ZendAMF. I think https had something to do with it as well. I had to use php sessions instead. Otherwise, unless there's another bug somewhere else, it should just be the combination of the ZendAMF and sessions turorials. - Daniel Freiman On Tue, May 26, 2009 at 4:55 AM, martinosaint mar...@moschitz.at wrote: Hi, it seems impossible to find any information on how to use Flex with ZendAMf with sessions. There is only one tutorial, and this does not work for me. So please, is there anyone who has ever worked with this constellation? Thanks for any advice, Martin
RE: [flexcoders] String To Date Conversion
First thing you need to do is to convert the timezone IST into whatever its difference is from GMT. (I have no idea what timezone IST is, so this is not accurate). So your string Tue May 26 18:12:55 IST 2009 would turn into Tue May 26 18:12:55 GMT -0200 2009 once you've done this then you can parse the string. var time : String = 'Tue May 26 18:12:55 GMT -0200 2009'; //Day Mon DD HH:MM:SS TZD var num : Number = Date.parse(time); var date : Date = new Date(num); That's it. Be HTH From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of yogesh patel Sent: 26 May 2009 13:47 To: flexcoders@yahoogroups.com Subject: [flexcoders] String To Date Conversion Dear all , I have a String like Tue May 26 18:12:55 IST 2009. How to convert this string into Date object ? Thanks Regards, Yogesh Patel Own a website.Get an unlimited package.Pay next to nothing.* Click here!. http://in.rd.yahoo.com/tagline_ysb_website/*http:/in.business.yahoo.com / Explore and discover exciting holidays and getaways with Yahoo! India Travel Click here! http://in.rd.yahoo.com/tagline_Travel_1/*http:/in.travel.yahoo.com/ Disclaimer --- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. ---
[flexcoders] itunes clipboard format not understood in AIR
Hi there, I've been trying to drag a song from itunes into my app, but the clipboard (in AIR) doesn't seem to have any format acceptable to AIR. Does anyone have any idea how to overcome this? thanks!
Re: [flexcoders] itunes clipboard format not understood in AIR
4 sure. We had some luck with a javascript window where we would drag the file but the problem was the only real way to know where the file was going to be (if the plan was to keep a reference to it) was to camp on the library xml files and those get rewritten when iTunes closes or music is imported (or cover-art is downloaded, etc,etc). Remember, you can ask iTunes to organize your library into a common tree and that killed our attempts to try to persist our own reference in Air. The Flex XML parser isn¹t completely happy with the iTunes library XML format so we ended up breaking the XML up and creating a track-only document but it was pretty fragile as there were so many ways to blow up the xml. KFB On 5/26/09 8:13 AM, Paul BH eyefod...@gmail.com wrote: Hey Kevin, thanks for this. Its a shame I can't get a reference to the file so I can work with it. cheers Paul On Tue, May 26, 2009 at 11:03 AM, Kevin F. Benz kb...@kbenz.com wrote: The clipboard in AIR is text only. It¹s not going to work for a binary file. I have asked Adobe about binary clipboard support and I don¹t expect it anytime soon. It¹s pretty dicey working with the iTunes library anyway since iTunes will move files around to balance it¹s directory tree (unless you plan on duplicating the file which isn¹t a great idea either). On 5/26/09 7:54 AM, paulbhoston eyefod...@gmail.com http://eyefod...@gmail.com wrote: Hi there, I've been trying to drag a song from itunes into my app, but the clipboard (in AIR) doesn't seem to have any format acceptable to AIR. Does anyone have any idea how to overcome this? thanks! Kevin F. Benz kb...@kbenz.com http://kb...@kbenz.com 425-785-7100 http://www.kbenz.com We can't solve problems by using the same kind of thinking we used when we created them - Albert Einstein Kevin F. Benz kb...@kbenz.com425-785-7100 http://www.kbenz.com We can't solve problems by using the same kind of thinking we used when we created them - Albert Einstein
Re: [flexcoders] itunes clipboard format not understood in AIR
The clipboard in AIR is text only. It¹s not going to work for a binary file. I have asked Adobe about binary clipboard support and I don¹t expect it anytime soon. It¹s pretty dicey working with the iTunes library anyway since iTunes will move files around to balance it¹s directory tree (unless you plan on duplicating the file which isn¹t a great idea either). On 5/26/09 7:54 AM, paulbhoston eyefod...@gmail.com wrote: Hi there, I've been trying to drag a song from itunes into my app, but the clipboard (in AIR) doesn't seem to have any format acceptable to AIR. Does anyone have any idea how to overcome this? thanks! Kevin F. Benz kb...@kbenz.com425-785-7100 http://www.kbenz.com We can't solve problems by using the same kind of thinking we used when we created them - Albert Einstein
[flexcoders] offset in chart with two series
Hi, I think such a behavior has already been posted on the list, but google nor yahoo could get the email back. I wrote an application which can display multiple series on a chart, but when two lineseries are set, one is displaying with an offset though first and last data items have same xfield value, so I think the offset is a ui offset. thomas --- 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: Creating custom component instance all the time when click on the button
Quick and dirty... [ MyApplication.mxml ] ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical xmlns:ns1=* mx:VBox x=10 y=10 ns1:CustomComponent/ /mx:VBox /mx:Application [ CustomComponent.mxml ] ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.core.Application; private function createNewCustomComponent():void { var newCustomComponent:CustomComponent = new CustomComponent(); Application.application.addChild(newCustomComponent); } ]] /mx:Script mx:HBox x=10 y=10 mx:Button id=myButton label=Create New click=createNewCustomComponent()/ mx:Label text=CustomComponent/ /mx:HBox /mx:Canvas HTH Steve --- In flexcoders@yahoogroups.com, gaborpallos gaborpal...@... wrote: I have MyApplication.mxml and a CustomComponent.mxml. [ MyApplication.mxml ] ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:ns1=* mx:VBox x=10 y=10 ns1:CustomComponent/ /mx:VBox /mx:Application [ CustomComponent.mxml ] ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; mx:HBox x=10 y=10 mx:Button id=myButton label=Create New/ mx:Label text=CustomComponent/ /mx:HBox /mx:Canvas Please I need Your help about how to create a new instance of CustomComponent all the time when I clicked on myButton? Any comment and advice are very useful for me. Best Regards, Gabor
[flexcoders] Re: Problem importing classes with D.eval
I don't think you can use D.eval in the way you are trying to. After reading the documentation, there are a few things you need to do... Instantiate an object of the type you are trying to use. You don't need to use this object but it needs to be created so Flex adds the class to the SWC. For example... import mx.controls.Label; var xxx:Label = new Label(); To crate a new Label (I think) you would have to do it this way... var prog:String = 'import mx.controls.Label;\n' + 'new Label()'; var myLabel:Label = D.eval(prog) as Label; You will probably need to contact the developers of D.eval for further support. This API seems very specialized and, it seems, you are the only one using it (Other than the developer). HTH Steve --- In flexcoders@yahoogroups.com, Alexandre Demeure alxd...@... wrote: Hi, I write you again because I haven't manage to use D.importClass(Label); However, by using personnal classes, I was able to indirectly create labels, here is the code: I have try to create a personal class which inerit of Label class or which have a Label property. The two working examples show how I did : Example 1 what it works : ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=init() layout=vertical cornerRadius=0 alpha=1.0 backgroundGradientAlphas=[1.0, 1.0] backgroundGradientColors=[#EF0808, #F6E8E8] color=#22B21B borderColor=#202FC1 mx:Script ![CDATA[ import r1.deval.D; public function init():void { import maClasse; D.importClass(maClasse); D.eval(var M:maClasse = new maClasse(\XXX\) ; C_PM_P_2.addChild(M);, Dyna_context); } ]] /mx:Script /mx:Application maClasse.as : package { import mx.controls.Label; public class maClasse extends Label { public function maClasse(name:String) { super(); super.text = name; } } } Example 2 what it works (just maClasse changed) : maClasse.as : package { import mx.controls.Label; public class maClasse { public var lab:Label; public function maClasse(name:String) { super(); lab = new Label(); super.text = name; } } } _ These examples work pretty fine. No runtime error. However it's still impossible to directly import and use a Label with D.eval, following code fails at runtime: The error message is : Runtime Error: msg.rt.no.class [line:1] at r1.deval.rt::CallExpr/getAny() at r1.deval.rt::ExprStmt/exec() at r1.deval.rt::Block/exec() at r1.deval.rt::Block/run() at r1.deval.rt::Env$/run() at r1.deval::D$/eval() at test/init() at test/___test_Application1_creationComplete() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent() at mx.core::UIComponent/set initialized() at mx.managers::LayoutManager/doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2() at mx.core::UIComponent/callLaterDispatcher() _ We suspect a problem with namespace or something like that (Label is defined under a specific namespace) But we don't know how to import a namespace in D.eval neither how to use the namespaceand neither if it's really the problem ;o) Does anyone have an idea about that problem? Wishes
Re: [flexcoders] itunes clipboard format not understood in AIR
Hey Kevin, thanks for this. Its a shame I can't get a reference to the file so I can work with it. cheers Paul On Tue, May 26, 2009 at 11:03 AM, Kevin F. Benz kb...@kbenz.com wrote: The clipboard in AIR is text only. It’s not going to work for a binary file. I have asked Adobe about binary clipboard support and I don’t expect it anytime soon. It’s pretty dicey working with the iTunes library anyway since iTunes will move files around to balance it’s directory tree (unless you plan on duplicating the file which isn’t a great idea either). On 5/26/09 7:54 AM, paulbhoston eyefod...@gmail.com wrote: Hi there, I've been trying to drag a song from itunes into my app, but the clipboard (in AIR) doesn't seem to have any format acceptable to AIR. Does anyone have any idea how to overcome this? thanks! Kevin F. Benz kb...@kbenz.com425-785-7100 http://www.kbenz.com *We can't solve problems by using the same kind of thinking we used when we created them - Albert Einstein *
Re: [flexcoders] dnd list items
Jake, I cannot use bitmapdata because i'll have to use an instance of itemrenderer which will have some different display behavior when used as proxy. I've managed to get a transparent bg, I had to set explicitly in css class applied to the *list* (because proxied itemrenderer use styleName=List(owner);) : background-color: ''; BTW, selection-color set to empty string draws a black bg... thomas --- 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 2009/5/26 Jake Churchill j...@cfwebtools.com http://www.axelscript.com/2008/03/26/creating-a-dragimage-from-your-uicomponent/ This is a blog post a friend of mine wrote about this. Specifically you want this method: public function getUIComponentBitmapData( target : UIComponent ) : BitmapData { var bd:BitmapData = new BitmapData( target.width, target.height ); var m:Matrix = new Matrix(); bd.draw( target, m ); return bd; } This gets bitmap data for whatever UIComponent you may be using for the renderer. Then, here’s his function to initiate dragging: private function doDrag(e:MouseEvent):void { //create an aliase for easier coding for the uicomponent var target:UIComponent = e.currentTarget as UIComponent; // http://www.actionscript.org/forums/showthread.php3?t=152558 var lvImageClone:Image = new Image(); lvImageClone.source = new Bitmap(getUIComponentBitmapData(target)); var lvDragSource:DragSource = new DragSource(); lvDragSource.addData( target, items ); // Call the DragManager doDrag() method to start the drag. DragManager.doDrag(target, lvDragSource, e, lvImageClone, 0, 0, dragImageAlpha); } What is important here is the last line. DragManager.doDrag takes the alpha as a parameter so you can have a fully transparent background. You’ll have to add the border yourself. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *thomas parquier *Sent:* Monday, May 25, 2009 5:18 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] dnd list items Hi, I'm using a list and custom items can be dnd'd. But the proxy has a white background with a grey border (which the itemrenderer doesnt have), and the whole proxy is a bit transparent. How to get a completely transparent background and no border ? thomas --- 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 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.39/2133 - Release Date: 05/25/09 08:16:00
[flexcoders] Re: httpservice error #2032
What does your services-config.xml file look like. According to the documentation If you specify the url and a non-default destination, your destination in the services-config.xml file must allow the specified URL --- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote: I cannot seem to get my SWF to talk to my rails app. i am getting the following error code: Fault: increment node clicked stat fault[FaultEvent fault=[RPC Fault faultString=HTTP request error faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2 text=Error #2032: Stream Error. URL: http://localhost:3000/ditto/myfunction;]. URL: http://localhost:3000/ditto/myfunction;] messageId=87ECB54A-4BDB-CF5B-41F0-7B2DEF12A2F7 type=fault bubbles=false cancelable=true eventPhase=2] Here is my crossdomain.xml file (not sure I need one as my swf is in the app running on localhost:3000). ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=* / /cross-domain-policy Here is my httservice: _httpservice = new HTTPService(); _httpservice.url = /ditto/myfunction; _httpservice.method = POST; _httpservice.useProxy = false; _httpservice.addEventListener( ResultEvent.RESULT, itemClickedStatsResult ); _httpservice.addEventListener( FaultEvent.FAULT, itemClickedStatsFault ); Always comes back as a FAULT? Anyone have any advice? TIA
[flexcoders] problems embedding symbols from Flash
Frustrated. I've got tried this with an AS3 version and currently with a Flash player 8 version... but am trying to embed a class within a component like so: [Bindable] [Embed(source=buttonStates/multistate8.swf, symbol=amp_ok)]; private var tmp:Class; I get Metadata requires an associated definition The component is on the same level of buttonStates, so it's not a path issue; when I've attempted to test the flash file with a Button and using symbol as skins, it works no problem...\ Thoughts?
[flexcoders] Re: problems embedding symbols from Flash
Is the symbol exported for actionscript in it's properties? And if so is the name amp_ok? or is it something like someclass.amp_ok? I could not ever figure out how to link a symbol to an external as class and use it's extended functionality in Flex. I ended up just creating a component with all the external as within teh script tags. Hopefully it's an easy fix like this for you :) --- In flexcoders@yahoogroups.com, grimmwerks gr...@... wrote: Frustrated. I've got tried this with an AS3 version and currently with a Flash player 8 version... but am trying to embed a class within a component like so: [Bindable] [Embed(source=buttonStates/multistate8.swf, symbol=amp_ok)]; private var tmp:Class; I get Metadata requires an associated definition The component is on the same level of buttonStates, so it's not a path issue; when I've attempted to test the flash file with a Button and using symbol as skins, it works no problem...\ Thoughts?
[flexcoders] Re: httpservice error #2032
I don't have a services-config.xml file. --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: What does your services-config.xml file look like. According to the documentation If you specify the url and a non-default destination, your destination in the services-config.xml file must allow the specified URL --- In flexcoders@yahoogroups.com, flexaustin flexaustin@ wrote: I cannot seem to get my SWF to talk to my rails app. i am getting the following error code: Fault: increment node clicked stat fault[FaultEvent fault=[RPC Fault faultString=HTTP request error faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2 text=Error #2032: Stream Error. URL: http://localhost:3000/ditto/myfunction;]. URL: http://localhost:3000/ditto/myfunction;] messageId=87ECB54A-4BDB-CF5B-41F0-7B2DEF12A2F7 type=fault bubbles=false cancelable=true eventPhase=2] Here is my crossdomain.xml file (not sure I need one as my swf is in the app running on localhost:3000). ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=* / /cross-domain-policy Here is my httservice: _httpservice = new HTTPService(); _httpservice.url = /ditto/myfunction; _httpservice.method = POST; _httpservice.useProxy = false; _httpservice.addEventListener( ResultEvent.RESULT, itemClickedStatsResult ); _httpservice.addEventListener( FaultEvent.FAULT, itemClickedStatsFault ); Always comes back as a FAULT? Anyone have any advice? TIA
[flexcoders] Is there a way to pass a parameter into my preloader?
I've created a preloader class, and is there a way to pass a parameter into my preloader? Here is my application tag: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; applicationComplete=appInit() layout=absolute preloader=com.mysite.preloader.SSProgressBarNoWait thanks,
[flexcoders] Re: NEED more than 15 menu item in Context Menu ????
Thanks a lot for sharing me this idea. It seems to be working for me too except a tiny issue . The issue is when I Right Clk , Flash Player's context Menu appears for a moment then immediately disappears before actual dot net based context menu made available to UI. From users perspective It is not acceptable and as for as I know Flash context menu cant be made hidden. Did you also come across this issue while designing context menu ? Please suggest possible for this ? Regards, Dharmendra --- In flexcoders@yahoogroups.com, Steve Mathews happy...@... wrote: We grab the right click in our .NET app and display that. I belive we capture the event from the control so the native Flash menu isn't shown. This works really well. On Mon, May 25, 2009 at 12:35 PM, Dharmendra Chauhan chauhan_i...@... wrote: Hi Samuel, Thanks for the reply. Its running inside Flash Player ActiveX control.so no java script heck can be applied..I completely stuck at this point..Need some ideas around it. Any other UI components can be used to get similar functionality. Regards, Dharmendra --- In flexcoders@yahoogroups.com, Sam Lai samuel.lai@ wrote: Is the Flex app loaded in the IE ActiveX control, or the Flash Player ActiveX control? If it is IE, any of the tricks to hide the context menu in the normal IE browser should work. Never tried doing this myself though. On 5/23/09, Dharmendra Chauhan chauhan_icse@ wrote: Thanks Lot for the Reply. My FLex Application is not running inside browser , It is running inside DOt Net container as a Active X control. the idea you suggested required default context menu to be hidden ..is it possible to hide it ? If yes then I Can open some custom window on right click and design. I am not sure how concrete this idea is.. --- In flexcoders@yahoogroups.com, Yves Riel riel@ wrote: What about intercepting the right-click at the browser level and displaying your own contextual menu? However, you might have some browser incompatibility to look at. http://blog.another-d-mention.ro/programming/right-click-and-custom-cont ext-menu-in-flash-flex/ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Dharmendra Chauhan Sent: Friday, May 22, 2009 3:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] NEED more than 15 menu item in Context Menu Hi, I really need to have more than 15 menu item displayed on Context Menu. I desperately need some workaround or ideas to achieve this My client has invested thousands of dollar in Flex Project, he definitely need more than 15 menu item.If this project failed , client will NEVER think to invest in flex. Had I been aware of this limitation before I would have thought some solution by now.This comes as a surprise to me at the last moment ,just fews days before Prod Date. Pls gents help me get rid of this ...PLEASE provide some ideas. Thanks in advance. Thanks, Dharmendra -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Sent from my mobile device -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Is it possible to layer div|iframe over flash app without wmode=transparent
Hi Folks, We have built a flash app that currently layers an HTML div over the flash for some key functionality (non h264 video playback). Everything is working fine, our first deployment is in France this summer and we are doing our translations ect... Unfortunately, it seems we are now one of many stuck with this Mozilla bug that does not fully support French keyboard layout with flash apps running in wmode=transparent|opaque Although, I have confirmed the issue is pretty much resolved with FireFox 3.5 beta(with Flash player 10) due to be released early next month, I am exploring all our options and would much prefer not forcing our end users to upgrade to the latest Firefox and flash player(although not a bad thing from my perspective). As far as I have read(and tested) this is not possible with Firefox, and the flash plugin does not respect its assigned z-index and does not allow content to be layered on top without a wmode=transparent|opaque... Does anyone know if it is possible or not to layer html content div|iframe over a flash app without wmode=window? Any help is much appreciated, Greg
[flexcoders] Destroy DataDestination when user Disconnects ?
Hi FlexCoders, In my application a separate DataDestination gets created when user logs in. I want(struggling) to destroy the destination associated with the particular user. For this I have created FlexSesioListner and as soon as DataDestination gets created I immediately put it in FlexSession. FlexContext.getFlexSession().setAttribute(destID desitID); SessionDestroy() method get called when user disconnect from app due to any reason The issue is SessionDestroy() ,flexsession.get( destID) retuning null ??? while debugigng i found that FlexContext.getFlexSession() returns HttpFlexSession ie destID is getting stored in HttpFlexSession where as in SessionDestroy(FLexSession session) session is of type RTMPFlexSession hence I am getting null here. my question is how to put data in RTMPFlexSession so that I can be made available in sesssionDestroy() method when RTMP client disconnect. Just want to destroy the DataDestination when user gets disconnected from RTMP channel based Flex App Regards, Dharmendra
[flexcoders] Re: httpservice error #2032
HIn my testing relative URL's don't appear to work. The only way I can get it to work is if I put a complete URL in the url property of the HTTPService object. eg. _httpservice.url = http://127.0.0.1/ditto/myfunction;; --- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote: I don't have a services-config.xml file. --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: What does your services-config.xml file look like. According to the documentation If you specify the url and a non-default destination, your destination in the services-config.xml file must allow the specified URL --- In flexcoders@yahoogroups.com, flexaustin flexaustin@ wrote: I cannot seem to get my SWF to talk to my rails app. i am getting the following error code: Fault: increment node clicked stat fault[FaultEvent fault=[RPC Fault faultString=HTTP request error faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2 text=Error #2032: Stream Error. URL: http://localhost:3000/ditto/myfunction;]. URL: http://localhost:3000/ditto/myfunction;] messageId=87ECB54A-4BDB-CF5B-41F0-7B2DEF12A2F7 type=fault bubbles=false cancelable=true eventPhase=2] Here is my crossdomain.xml file (not sure I need one as my swf is in the app running on localhost:3000). ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=* / /cross-domain-policy Here is my httservice: _httpservice = new HTTPService(); _httpservice.url = /ditto/myfunction; _httpservice.method = POST; _httpservice.useProxy = false; _httpservice.addEventListener( ResultEvent.RESULT, itemClickedStatsResult ); _httpservice.addEventListener( FaultEvent.FAULT, itemClickedStatsFault ); Always comes back as a FAULT? Anyone have any advice? TIA
[flexcoders] Flex Builder not rebuilding source
I've had this problem in the past and never got an answer. The problem is back. I'll be working on a project and constantly make micro changes and then debug, eventually the changes aren't compiled in anymore. In the small project I'm working on I have removed all Alerts. They don't exist in the source but when I run the debug all the Alerts are still popping up and none of the new code is executed.
[flexcoders] High CPU usage
Hi, Can anyone direct me to resources on how to track/profile/explore CPU usage in a Flex app? I've googled without any real success. In an app I'm developing, the CPU usage seemed to suddenly shoot up to near 100%. Now, I'm sure that it didn't happen suddenly; I'm sure I just wasn't paying attention. But there's nothing apparent going on that should create high usage -- no video, no effects -- just some simple forms. I've spent the day commenting out pieces to boil the app down to its essence, to try to see where this problem is creeping in. But it seems to come from multiple components, all of which are fairly simple forms, with some validations, some bindings to properties on an object being edited -- pretty much, the usual stuff. Yet, I'm sitting here looking at the app, trimmed down to where only one of these form elements exists within a tabNavigator, and I'm seeing almost 40% usage with (apparently) nothing happening. There's no memory problem -- the profiler shows maybe 15Mb going to the application. But the CPU is going crazy. I've tested on several machines, and the high CPU usage is consistent, although, of course, the actual percentage varies. I don't expect an answer (though I'd love one); I'm just hoping for some pointers on how to troubleshoot this. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560
[flexcoders] How release Memory consumed by DataService
Hello All, dataService.release(); dataService.dissconnect() dataService.logout(); I am using above set of codes to release resources consumed by Data Service. but I was surprised to see that even after running above code memory consumption is not coming down. During profiling I found lot of loitering obeject named ManagedObject, ProxyObject , AsynchToken etc .. I belive they are all created by DataService , i am wondering why they are not gettig destroyed when dataService itself is disconnected. Please suggest me the ways to release all resources consumend by DataService I m using LCDS 2.6 with RTMP channel. Regards, Dharmendra
[flexcoders] Re: Flex Builder not rebuilding source
Clean the project and then check for any errors. Flex is running the last completely compiled SWF. --- In flexcoders@yahoogroups.com, Cordova Aaron basic...@... wrote: I've had this problem in the past and never got an answer. The problem is back. I'll be working on a project and constantly make micro changes and then debug, eventually the changes aren't compiled in anymore. In the small project I'm working on I have removed all Alerts. They don't exist in the source but when I run the debug all the Alerts are still popping up and none of the new code is executed.
[flexcoders] URLLoader + Binary != URLStream
I would think that I could load a swf using either URLLoader or URLStream. As it turns out only my URLStream is returning the correct data. Can anyone provide a fix to the following code that makes URLLoader work correctly ? import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.URLRequest; import flash.net.URLStream; private var loader:URLLoader; private var stream:URLStream; private function init():void { loader = new URLLoader(); loader.dataFormat = URLLoaderDataFormat.BINARY; loader.addEventListener(Event.COMPLETE, loaderComplete); loader.load( new URLRequest( Slide1.swf ) ); stream = new URLStream(); stream.addEventListener(Event.COMPLETE, streamComplete); stream.load( new URLRequest( Slide1.swf ) ); } private function streamComplete(event:Event):void { var rawBytes:ByteArray = new ByteArray(); stream.readBytes( rawBytes, rawBytes.length ); trace( Length: + rawBytes.length ); dumpData( rawBytes ); } private function loaderComplete(event:Event):void { var rawBytes:ByteArray = new ByteArray(); rawBytes.writeObject( loader.data ); trace( Length: + rawBytes.length ); dumpData( rawBytes ); } private function dumpData( ba:ByteArray ) { ba.position = 0; var index:int = 0; var tracer:int; while( ba.position 5) { tracer = ba.readByte(); trace( index + : + tracer.toString(16)); index = index + 1; } }
[flexcoders] Re: httpservice error #2032
Do I need a services-config.xml file as well? --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: HIn my testing relative URL's don't appear to work. The only way I can get it to work is if I put a complete URL in the url property of the HTTPService object. eg. _httpservice.url = http://127.0.0.1/ditto/myfunction;; --- In flexcoders@yahoogroups.com, flexaustin flexaustin@ wrote: I don't have a services-config.xml file. --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: What does your services-config.xml file look like. According to the documentation If you specify the url and a non-default destination, your destination in the services-config.xml file must allow the specified URL --- In flexcoders@yahoogroups.com, flexaustin flexaustin@ wrote: I cannot seem to get my SWF to talk to my rails app. i am getting the following error code: Fault: increment node clicked stat fault[FaultEvent fault=[RPC Fault faultString=HTTP request error faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2 text=Error #2032: Stream Error. URL: http://localhost:3000/ditto/myfunction;]. URL: http://localhost:3000/ditto/myfunction;] messageId=87ECB54A-4BDB-CF5B-41F0-7B2DEF12A2F7 type=fault bubbles=false cancelable=true eventPhase=2] Here is my crossdomain.xml file (not sure I need one as my swf is in the app running on localhost:3000). ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=* / /cross-domain-policy Here is my httservice: _httpservice = new HTTPService(); _httpservice.url = /ditto/myfunction; _httpservice.method = POST; _httpservice.useProxy = false; _httpservice.addEventListener( ResultEvent.RESULT, itemClickedStatsResult ); _httpservice.addEventListener( FaultEvent.FAULT, itemClickedStatsFault ); Always comes back as a FAULT? Anyone have any advice? TIA
Re: [flexcoders] Flex Builder not rebuilding source
I find this occurs if I re-compile with an active debug sessions. Close all your browser windows, and then clean your project. This does not appear to work every time, though. Cordova Aaron wrote: I've had this problem in the past and never got an answer. The problem is back. I'll be working on a project and constantly make micro changes and then debug, eventually the changes aren't compiled in anymore. In the small project I'm working on I have removed all Alerts. They don't exist in the source but when I run the debug all the Alerts are still popping up and none of the new code is executed. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- 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
Re: [flexcoders] httpservice error #2032
If you are using a windoze machine you can see the request being handled in the command window..i don't think the url is correct On Mon, May 25, 2009 at 9:35 PM, flexaustin flexaus...@yahoo.com wrote: I cannot seem to get my SWF to talk to my rails app. i am getting the following error code: Fault: increment node clicked stat fault[FaultEvent fault=[RPC Fault faultString=HTTP request error faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2 text=Error #2032: Stream Error. URL: http://localhost:3000/ditto/myfunction;]. URL: http://localhost:3000/ditto/myfunction;] messageId=87ECB54A-4BDB-CF5B-41F0-7B2DEF12A2F7 type=fault bubbles=false cancelable=true eventPhase=2] Here is my crossdomain.xml file (not sure I need one as my swf is in the app running on localhost:3000). ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=* / /cross-domain-policy Here is my httservice: _httpservice = new HTTPService(); _httpservice.url = /ditto/myfunction; _httpservice.method = POST; _httpservice.useProxy = false; _httpservice.addEventListener( ResultEvent.RESULT, itemClickedStatsResult ); _httpservice.addEventListener( FaultEvent.FAULT, itemClickedStatsFault ); Always comes back as a FAULT? Anyone have any advice? TIA
Re: [flexcoders] Value Objects
Hey Mike, You'll see VO and DTO used interchangeably, I believe this is because Cairngorm used to use Data Transfer Object and then switched to Value Objects at some point. That being said... this article gives a very basic example of passing data to and from a server strictly typed, which is what you are trying to accomplish. http://flex.sys-con.com/node/505875 ( ick syscon... anyone know where the real article is? ) The key is the using the [RemoteClass(alias=java.package.Class)], so that when Flex serializes and de-serializes the object, it knows what corresponding class on the server your object represents. I seem to recall that when creating VOs (or DTOs) with a ColdFusion service, you needed to add extra methods to assist in the serialization. Maybe someone else add to this? I've been out of CF for a while now. On Tue, May 26, 2009 at 2:42 PM, mikeashields mikeashie...@hotmail.comwrote: I've come via a MySql to CF to Flex learning path. As such, 1.) my flex app uses mx:RemoteObject with source= pointing at a CFC (in wwwroot/test/cfcs directory). 2.) Said cfc calls a MySql STORED PROCEDURE which returns (say) a list of owners (id, firstname, lastname, etc). 3.) CF passes this back to Flex (apparently in the form of an Object?). 4.) Flex then binds this returned data to a mx:DataGrid. Now I've read extensively on VOs (as well as Cairngorm/MVC) yet don't fully understand either the why or the how. Assuming as basic an example as possible, I need to use AS3 to first define then instantiate an ownerVO, then a function to populate the ownerVO with the results of the RemoteObject then I populate the DataGrid with ownerVOs Comments and/or directions to appropriate learning resources appreciated. -- Cheers, Nate http://blog.natebeck.net
[flexcoders] Re: httpservice error #2032
Do I need a services-config.xml file as well? --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: HIn my testing relative URL's don't appear to work. The only way I can get it to work is if I put a complete URL in the url property of the HTTPService object. eg. _httpservice.url = http://127.0.0.1/ditto/myfunction;; --- In flexcoders@yahoogroups.com, flexaustin flexaustin@ wrote: I don't have a services-config.xml file. --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: What does your services-config.xml file look like. According to the documentation If you specify the url and a non-default destination, your destination in the services-config.xml file must allow the specified URL --- In flexcoders@yahoogroups.com, flexaustin flexaustin@ wrote: I cannot seem to get my SWF to talk to my rails app. i am getting the following error code: Fault: increment node clicked stat fault[FaultEvent fault=[RPC Fault faultString=HTTP request error faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2 text=Error #2032: Stream Error. URL: http://localhost:3000/ditto/myfunction;]. URL: http://localhost:3000/ditto/myfunction;] messageId=87ECB54A-4BDB-CF5B-41F0-7B2DEF12A2F7 type=fault bubbles=false cancelable=true eventPhase=2] Here is my crossdomain.xml file (not sure I need one as my swf is in the app running on localhost:3000). ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=* / /cross-domain-policy Here is my httservice: _httpservice = new HTTPService(); _httpservice.url = /ditto/myfunction; _httpservice.method = POST; _httpservice.useProxy = false; _httpservice.addEventListener( ResultEvent.RESULT, itemClickedStatsResult ); _httpservice.addEventListener( FaultEvent.FAULT, itemClickedStatsFault ); Always comes back as a FAULT? Anyone have any advice? TIA
[flexcoders] Value Objects
I've come via a MySql to CF to Flex learning path. As such, 1.) my flex app uses mx:RemoteObject with source= pointing at a CFC (in wwwroot/test/cfcs directory). 2.) Said cfc calls a MySql STORED PROCEDURE which returns (say) a list of owners (id, firstname, lastname, etc). 3.) CF passes this back to Flex (apparently in the form of an Object?). 4.) Flex then binds this returned data to a mx:DataGrid. Now I've read extensively on VOs (as well as Cairngorm/MVC) yet don't fully understand either the why or the how. Assuming as basic an example as possible, I need to use AS3 to first define then instantiate an ownerVO, then a function to populate the ownerVO with the results of the RemoteObject then I populate the DataGrid with ownerVOs Comments and/or directions to appropriate learning resources appreciated.
[flexcoders] wmode=transparent and accessibility does it work?
Hi Folks, I have been reading many posts on issues with screen readers(JAWS) when using the wmode=transparent|opaque, basically they state accessibility does not work with transparent or opaque flash applications. The posts are all over a year old and I am unable to find an adobe bug on it... as such I am not certain there is an issue or if it has been resolved. Does anyone know if accessibility works with transparent flash apps? Any help much appreciated, Greg
[flexcoders] Re: httpservice error #2032
Not sure if it matters but my app is a rails app and I am doing a POST with the httpservice. I am not returning anything after the call would that appear as a fault to my httpservice? Should I send something back? TIA --- In flexcoders@yahoogroups.com, [p e r c e p t i c o n] percepti...@... wrote: If you are using a windoze machine you can see the request being handled in the command window..i don't think the url is correct On Mon, May 25, 2009 at 9:35 PM, flexaustin flexaus...@... wrote: I cannot seem to get my SWF to talk to my rails app. i am getting the following error code: Fault: increment node clicked stat fault[FaultEvent fault=[RPC Fault faultString=HTTP request error faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2 text=Error #2032: Stream Error. URL: http://localhost:3000/ditto/myfunction;]. URL: http://localhost:3000/ditto/myfunction;] messageId=87ECB54A-4BDB-CF5B-41F0-7B2DEF12A2F7 type=fault bubbles=false cancelable=true eventPhase=2] Here is my crossdomain.xml file (not sure I need one as my swf is in the app running on localhost:3000). ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=* / /cross-domain-policy Here is my httservice: _httpservice = new HTTPService(); _httpservice.url = /ditto/myfunction; _httpservice.method = POST; _httpservice.useProxy = false; _httpservice.addEventListener( ResultEvent.RESULT, itemClickedStatsResult ); _httpservice.addEventListener( FaultEvent.FAULT, itemClickedStatsFault ); Always comes back as a FAULT? Anyone have any advice? TIA
[flexcoders] Setting the width and height of a RichEditableText component based on text
I'm creating a custom item renderer for Spark List. To start, I modified the default renderer skin. The default skin uses SimpleText to display a label. I need to make the text selectable, so it appears that RichEditableText is the appropriate choice for me. I tried to just replace SimpleText with RichEditableText (and set selectable=true), but the auto sizing does not utilize the full width of the list. It actually is consistently 25 characters in width, while the height does vary based on the text. How can I make the RichEditableText component utilize the full width of the Spark List (useVirtualLayout=true), while also varying height based on the multi-line text?
[flexcoders] simultanious Select Query by 2 users throws nullpointer exception in BlazeDS log
Application works perfectly fine if one person use it at a time. I checked the number of connection pool and it has the size of 100. I have spent too much time without any result to figure this out. I am using Tomcat 6, Java for serverside script, MySQL for database, and use BlazeDS with remote Object. I desparately need your help, it is a bug brought up after we implemented the system. Thanks Simon Mathew
Re: [flexcoders] httpservice error #2032
On 26 May 2009, at 05:35, flexaustin wrote: _httpservice.url = /ditto/myfunction; Shouldn't that be _httpservice.url = ditto/myfunction; Cheers Dave Cragg
RE: [flexcoders] Value Objects
The use of 'VO's in Flex has always confused me, largely because as everyone I've spoken to has explained it, all a 'Value' object is is just a Model object - therefore WTF are they being referred to as 'VO's when 'Object' (or Model object) would suffice. My understanding is that the Object representation's deep structure references objects ByRef, but Transfer Objects reference nonserializable/non-native objects by id. That is, if you have Dog { id:int; parent:Dog; } the TO becomes DogTO {id:int; parentID:int;} I'm still yet to have anyone explain it to me in a way which contradicts this way of looking at things. --Tim From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Nate Beck Sent: Wednesday, 27 May 2009 7:53 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Value Objects Hey Mike, You'll see VO and DTO used interchangeably, I believe this is because Cairngorm used to use Data Transfer Object and then switched to Value Objects at some point. That being said... this article gives a very basic example of passing data to and from a server strictly typed, which is what you are trying to accomplish. http://flex.sys-con.com/node/505875 ( ick syscon... anyone know where the real article is? ) The key is the using the [RemoteClass(alias=java.package.Class)], so that when Flex serializes and de-serializes the object, it knows what corresponding class on the server your object represents. I seem to recall that when creating VOs (or DTOs) with a ColdFusion service, you needed to add extra methods to assist in the serialization. Maybe someone else add to this? I've been out of CF for a while now. On Tue, May 26, 2009 at 2:42 PM, mikeashields mikeashie...@hotmail.commailto:mikeashie...@hotmail.com wrote: I've come via a MySql to CF to Flex learning path. As such, 1.) my flex app uses mx:RemoteObject with source= pointing at a CFC (in wwwroot/test/cfcs directory). 2.) Said cfc calls a MySql STORED PROCEDURE which returns (say) a list of owners (id, firstname, lastname, etc). 3.) CF passes this back to Flex (apparently in the form of an Object?). 4.) Flex then binds this returned data to a mx:DataGrid. Now I've read extensively on VOs (as well as Cairngorm/MVC) yet don't fully understand either the why or the how. Assuming as basic an example as possible, I need to use AS3 to first define then instantiate an ownerVO, then a function to populate the ownerVO with the results of the RemoteObject then I populate the DataGrid with ownerVOs Comments and/or directions to appropriate learning resources appreciated. -- Cheers, Nate http://blog.natebeck.net
[flexcoders] Re: Value Objects
Yes, the nomenclature is disconcerting. I reviewed your link however am unfamiliar with java/jsp and thus couldn't necessarily follow. Nonetheless it seemed to say that mapping flex properties to the database properties (returned via jsp/cfusion) offers various advantages -- mostly related to strict typing. Fair enough, but insofar as by using Stored Procedures I (think I) am able to push a great deal of the BizLogic/ControllerLayer right to the database (ie NOT the cfusion or even Flex/ViewLayer), what the hell do I care??? I'm so newbie that I hesitate to presume/assert anything but A.) this VO stuff is really boggling/pissing me off and B.) isn't it an imposition to make the view/Flex process/organize the returned data? Why not just throw results into sharedObjects (aka Flash cookies) on the hard drive? Maybe I'm missing something . . .
Re: [flexcoders] High CPU usage
How often are you calling invalidateDisplayList()? Are you using effects, filters, or skins and if so... to what extent. Is there data involved? What kind and how much? Are the components custom? If so... can you post some code for us to look at? Obviously, all we can do is stab in the dark¹ and hope to hit something that resonates. The best would be to post some code for us to take a look at. Rick Winscot On 5/26/09 4:00 PM, Tom McNeer tmcn...@gmail.com wrote: Hi, Can anyone direct me to resources on how to track/profile/explore CPU usage in a Flex app? I've googled without any real success. In an app I'm developing, the CPU usage seemed to suddenly shoot up to near 100%. Now, I'm sure that it didn't happen suddenly; I'm sure I just wasn't paying attention. But there's nothing apparent going on that should create high usage -- no video, no effects -- just some simple forms. I've spent the day commenting out pieces to boil the app down to its essence, to try to see where this problem is creeping in. But it seems to come from multiple components, all of which are fairly simple forms, with some validations, some bindings to properties on an object being edited -- pretty much, the usual stuff. Yet, I'm sitting here looking at the app, trimmed down to where only one of these form elements exists within a tabNavigator, and I'm seeing almost 40% usage with (apparently) nothing happening. There's no memory problem -- the profiler shows maybe 15Mb going to the application. But the CPU is going crazy. I've tested on several machines, and the high CPU usage is consistent, although, of course, the actual percentage varies. I don't expect an answer (though I'd love one); I'm just hoping for some pointers on how to troubleshoot this.
Re: [flexcoders] Zoom on an Image
There is a really nice implementation over at the Adobe Developer Connection... http://www.adobe.com/devnet/flex/samples/fig_panzoom/ Rick Winscot On 5/25/09 4:19 AM, Kenneth Sutherland kenneth.sutherl...@realise.com wrote: I¹ve done a basic example of zooming. Check out http://kennethsutherland.com/2009/05/01/zooming-example/ It¹s not a component but you can look at the source code and then make your own component to fit your own needs. HTH Kenneth. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of christophe_jacquelin Sent: 25 May 2009 08:37 To: flexcoders@yahoogroups.com Subject: [flexcoders] Zoom on an Image Hello, I want to make a zoom function on an image. I am searching a component of an image with scrolling. What can I use ? Thank you, Christophe, Disclaimer This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast.
Re: [flexcoders] wmode=transparent and accessibility does it work?
It does not work. Without getting into too much detail, transparent Flash objects can't expose accessibility data because they're embedded in the HTML document differently, and they can't express the MSAA data needed. The same is true for wmode=opaque, by the way. The only supported way is wmode=window, which is the default. It's not a bug, per se; it's a fundamental limitation of the mode. However, it is possible to use something like FlashAid to test for the presence of assistive technology before loading the page, and then set wmode=window on subsequent pages if AT is in use. - m On 5/26/09 3:12 PM, Greg Hess flexeff...@gmail.com wrote: Hi Folks, I have been reading many posts on issues with screen readers(JAWS) when using the wmode=transparent|opaque, basically they state accessibility does not work with transparent or opaque flash applications. The posts are all over a year old and I am unable to find an adobe bug on it... as such I am not certain there is an issue or if it has been resolved. Does anyone know if accessibility works with transparent flash apps? Any help much appreciated, Greg
[flexcoders] Flex unloading SFW- memory management
Hi all, I m facing a problem with dynamic loading/unloading of swf. I'm using a class mycustomSWFLoader which extends SWFLoader and which use an instance of Loader class to load swf files (graphics data) from serialized SWF in bytearrays. All seem to be ok, I can display any of my swf, but the flash player does not free memory (the previous loaded swf) when I load a new swf. I have tried this approach : class myCustomSWFLoader extends SWFLoader { public function loadSWF(myByteArray: ByteArray):void { if(_loader != null) { // Call the unload stop on _loader object _loader.unloadAndStop(); // Call the unload stop on THIS unloadAndStop(); } else { _loader = new Loader(); _loader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded); MY_CONTAINER.addChild(this); } if(myByteArray) _loader.loadBytes(myByteArray); else source = null; } ... I'm not sure about how the flash player handdle the unloadAndStop() but what is sure is that each time I call my method memory usage increases by 2Mb Any help would be much appreciated ! Thanks by advance PatriceO -- View this message in context: http://www.nabble.com/Flex-unloading-SFW--memory-management-tp23721843p23721843.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] Print examples?
If you want to print a sub-set of you text... You are going to need to select the appropriate text transfer to a temporary container and use the temporary container as an argument for the PrintJob.addObject(). Remember that in order to print what you see you must see what to print. This is essentially the context of the first paragraph in livedocs... http://livedocs.adobe.com/flex/3/html/help.html?content=printing_3.html Rick Winscot On 5/23/09 4:17 AM, Tony Obermeit t...@tamborine.to wrote: I'm looking for examples of how to print a single paragraph of text in flex where I can chose the font and rely on word wrap on page margins. The few examples I've found show grids, anyone help really appreciated. tony
[flexcoders] Re: httpservice error #2032
--- In flexcoders@yahoogroups.com, Dave Cragg dcr...@... wrote: On 26 May 2009, at 05:35, flexaustin wrote: _httpservice.url = /ditto/myfunction; Shouldn't that be _httpservice.url = ditto/myfunction; Cheers Dave Cragg No its /ditto/myfunction. For kicks I tried your idea, but didnt' work.
RE: [flexcoders] Value Objects
I think it's more for the code hints than anything J Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Rowe Sent: Tuesday, May 26, 2009 5:59 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Value Objects The use of 'VO's in Flex has always confused me, largely because as everyone I've spoken to has explained it, all a 'Value' object is is just a Model object - therefore WTF are they being referred to as 'VO's when 'Object' (or Model object) would suffice. My understanding is that the Object representation's deep structure references objects ByRef, but Transfer Objects reference nonserializable/non-native objects by id. That is, if you have Dog { id:int; parent:Dog; } the TO becomes DogTO {id:int; parentID:int;} I'm still yet to have anyone explain it to me in a way which contradicts this way of looking at things. --Tim _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Nate Beck Sent: Wednesday, 27 May 2009 7:53 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Value Objects Hey Mike, You'll see VO and DTO used interchangeably, I believe this is because Cairngorm used to use Data Transfer Object and then switched to Value Objects at some point. That being said... this article gives a very basic example of passing data to and from a server strictly typed, which is what you are trying to accomplish. http://flex.sys-con.com/node/505875 ( ick syscon... anyone know where the real article is? ) The key is the using the [RemoteClass(alias=java.package.Class)], so that when Flex serializes and de-serializes the object, it knows what corresponding class on the server your object represents. I seem to recall that when creating VOs (or DTOs) with a ColdFusion service, you needed to add extra methods to assist in the serialization. Maybe someone else add to this? I've been out of CF for a while now. On Tue, May 26, 2009 at 2:42 PM, mikeashields mikeashie...@hotmail.com wrote: I've come via a MySql to CF to Flex learning path. As such, 1.) my flex app uses mx:RemoteObject with source= pointing at a CFC (in wwwroot/test/cfcs directory). 2.) Said cfc calls a MySql STORED PROCEDURE which returns (say) a list of owners (id, firstname, lastname, etc). 3.) CF passes this back to Flex (apparently in the form of an Object?). 4.) Flex then binds this returned data to a mx:DataGrid. Now I've read extensively on VOs (as well as Cairngorm/MVC) yet don't fully understand either the why or the how. Assuming as basic an example as possible, I need to use AS3 to first define then instantiate an ownerVO, then a function to populate the ownerVO with the results of the RemoteObject then I populate the DataGrid with ownerVOs Comments and/or directions to appropriate learning resources appreciated. -- Cheers, Nate http://blog.natebeck.net
RE: [flexcoders] Flex DataGrid Filter via Popup Window
var winFilter:FilterDia log = PopUpManager. createPopUp( this, FilterDialog, true) as FilterDialog; winFilter.dg = myDataGrid. In FilterDialog, expose dg as a public property using a setter function. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Angelo Anolin Sent: Monday, May 25, 2009 8:18 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex DataGrid Filter via Popup Window Hi Tracy, Care to show some example codes on how to pass the datagrid reference? Thanks. Kind regards, Angelo _ From: Tracy Spratt tr...@nts3rd.com To: flexcoders@yahoogroups.com Sent: Monday, 25 May, 2009 22:49:54 Subject: RE: [flexcoders] Flex DataGrid Filter via Popup Window Of course, there are many ways to do this, but one simple approach would be to pass a reference to the dataGrid into the pop-up. That would give you access to the DG.columns array to populate your columns ComboBox. Tracy Spratt, Lariat Services, development services available _ From: flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On Behalf Of Angelo Anolin Sent: Monday, May 25, 2009 10:07 AM To: flexcod...@yahoogro ups.com Subject: Re: [flexcoders] Flex DataGrid Filter via Popup Window Some updates on this. Instead of the codes inside a function, what I did was create a custom MXML Component (selecting File | New | MXML Component) and selecting TileWindow on the Based As dropdown list. In the button, I created a function that calls the MXML component via the following codes: private function launchFilterDialog( ) :void { var winFilter:FilterDia log = PopUpManager. createPopUp( this, FilterDialog, true) as FilterDialog; PopUpManager. centerPopUp( winFilter) ; } Next step is to be able to pass the column names as defined in the datagrid and bind those column names into the combo box which I placed in the MXML component. So I am left with the following things to do: 1. Get the column names of the datagrid which is in the calling flex application. 2. Pass those column names into the MXML component and bind them into the combo box. 3. When a selection is made on the filter dialog window and valid filter is specified, clicking on the OK button would filter the datagrid of the calling flex application. 4. A clear button would clear the filter(s) specified on the datagrid. Inputs would be highly appreciated in doing Item no. 1 Thanks. _ From: Angelo Anolin angelo_anolin@ yahoo.com To: flexcod...@yahoogro ups.com Sent: Monday, 25 May, 2009 15:48:25 Subject: [flexcoders] Flex DataGrid Filter via Popup Window Hello FlexCoders, I am trying to implement a datagrid filtering mechanism to datagrids in my application. In this process, I want to show a popup window where it would act like a response window. The popup window will contain three controls, namely, two comboboxes, and a textinput control. One of the combo box would contain the columns currently displayed in the datagrid. The other combo box would contain common comparison operators (i.e. =, !=, , , like, etc.). Of course, there would also be two buttons - OK and Cancel to perform the filter operations. I found a popup panel example here.. http://blog. flexexamples. com/2007/ 08/06/creating- http://blog.flexexamples.com/2007/08/06/creating-custom-pop-up-windows-with -the-popupmanager-class/ custom-pop- up-windows- with-the- popupmanager- class/ But in this example, he is defining the content of the popup panel. Since we know that the controls in the popup panel is fixed, would it be possible to just create another control which contains the controls we have defined? Then, the combobox panel would be populated with the columns in the datagrid where it was called. When the column selection from the combo box is made, the operator also selected and the text input is filled up with the value to filter, clicking on OK button would filter the datagrid. Another reason that I wanted that the filter mechanism reusable because I have a lot of mxml with datagrid that requires the same filter functionality. It would not be too good if I would place all the codes in each mxml, right? I am not sure if this approach would be good. If in case you have other approach on how to filter the datagrid, kindly let me know. Thanks.
RE: [flexcoders] Re: httpservice error #2032
I would suspect the URL as well. Try a full url, I have had a lot of problems using relative urls And I have never used an http service that did not return something. It would concern me. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of flexaustin Sent: Tuesday, May 26, 2009 10:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: httpservice error #2032 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Dave Cragg dcr...@... wrote: On 26 May 2009, at 05:35, flexaustin wrote: _httpservice.url = /ditto/myfunction; Shouldn't that be _httpservice.url = ditto/myfunction; Cheers Dave Cragg No its /ditto/myfunction. For kicks I tried your idea, but didnt' work.
[flexcoders] Cause Label to resize after setting text
I am implementing a Marquee component using a Canvas and a Move effect on a child label. I want the effect to play only when the label is wider than the canvas. When a setter function sets the Label's text property, the label has not been resized to fit the new text yet, so I can't test: if (myLabel.width this.width) in the setter I have not yet found the right invalidation, or event or override to trigger my measure logic. Any suggestions? Tracy Spratt, Lariat Services, development services available
RE: [flexcoders] Flex Builder not rebuilding source
Delete everything in the bin-debug folder, and clear the browser cache. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jeffry Houser Sent: Tuesday, May 26, 2009 5:35 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex Builder not rebuilding source I find this occurs if I re-compile with an active debug sessions. Close all your browser windows, and then clean your project. This does not appear to work every time, though. Cordova Aaron wrote: I've had this problem in the past and never got an answer. The problem is back. I'll be working on a project and constantly make micro changes and then debug, eventually the changes aren't compiled in anymore. In the small project I'm working on I have removed all Alerts. They don't exist in the source but when I run the debug all the Alerts are still popping up and none of the new code is executed. -- Flexcoders Mailing List FAQ: http://groups. http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share. https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e6 2079f6847 acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail- http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl. http://tinyurl.com/684b5h com/684b5h http://www.twitter. http://www.twitter.com/reboog711 com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras http://www.flextras.com?c=104 .com?c=104 -- http://www.theflexs http://www.theflexshow.com how.com http://www.jeffryho http://www.jeffryhouser.com user.com -- Part of the DotComIt Brain Trust
[flexcoders] Re: httpservice error #2032
Not sure what the issue is but if I try POST it always goes across as as a GET. So I went with GET and I return 'true' as render :xml and it comes back with a good result. And I stuck with the relative URL and it works like a champ now. Thanks for everyones help. --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: I would suspect the URL as well. Try a full url, I have had a lot of problems using relative urls And I have never used an http service that did not return something. It would concern me. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of flexaustin Sent: Tuesday, May 26, 2009 10:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: httpservice error #2032 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Dave Cragg dcragg@ wrote: On 26 May 2009, at 05:35, flexaustin wrote: _httpservice.url = /ditto/myfunction; Shouldn't that be _httpservice.url = ditto/myfunction; Cheers Dave Cragg No its /ditto/myfunction. For kicks I tried your idea, but didnt' work.
RE: [flexcoders] Re: httpservice error #2032
If the POST body is empty, Flex switches to a GET. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of flexaustin Sent: Wednesday, May 27, 2009 12:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: httpservice error #2032 Not sure what the issue is but if I try POST it always goes across as as a GET. So I went with GET and I return 'true' as render :xml and it comes back with a good result. And I stuck with the relative URL and it works like a champ now. Thanks for everyones help. --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Tracy Spratt tr...@... wrote: I would suspect the URL as well. Try a full url, I have had a lot of problems using relative urls And I have never used an http service that did not return something. It would concern me. Tracy Spratt, Lariat Services, development services available _ From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com [mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com] On Behalf Of flexaustin Sent: Tuesday, May 26, 2009 10:36 PM To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com Subject: [flexcoders] Re: httpservice error #2032 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Dave Cragg dcragg@ wrote: On 26 May 2009, at 05:35, flexaustin wrote: _httpservice.url = /ditto/myfunction; Shouldn't that be _httpservice.url = ditto/myfunction; Cheers Dave Cragg No its /ditto/myfunction. For kicks I tried your idea, but didnt' work.
[flexcoders] Tree Structure in advanced data grid
hi all,I need to expand the tree structure (in advanced datagrid)automatically when application loaded Give some ideas to implement this... Thanks in advance, S.Senthilkumar
[flexcoders] Re: Flex Builder not rebuilding source
I've had this problem in the past and never got an answer. The problem is back. I'll be working on a project and constantly make micro changes and then debug, eventually the changes aren't compiled in anymore. In the small project I'm working on I have removed all Alerts. They don't exist in the source but when I run the debug all the Alerts are still popping up and none of the new code is executed. I have this happen quite often. Clearing the browser cache after making sure there aren't any browser windows open with the swf loaded always clears it up for me. I'm running Safari on a Mac. Ron
Re: [flexcoders] Re: problems embedding symbols from Flash
Will this help? http://jessewarden.com/2006/08/flash-9-button-in-flex-2.html I use flash movieclip symbols in flex by linking to an external AS class and provide the symbol functionality in that class only. Regards, Rohit On Tue, May 26, 2009 at 11:05 PM, a.scavarelli a.scavare...@yahoo.comwrote: Is the symbol exported for actionscript in it's properties? And if so is the name amp_ok? or is it something like someclass.amp_ok? I could not ever figure out how to link a symbol to an external as class and use it's extended functionality in Flex. I ended up just creating a component with all the external as within teh script tags. Hopefully it's an easy fix like this for you :) --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, grimmwerks gr...@... wrote: Frustrated. I've got tried this with an AS3 version and currently with a Flash player 8 version... but am trying to embed a class within a component like so: [Bindable] [Embed(source=buttonStates/multistate8.swf, symbol=amp_ok)]; private var tmp:Class; I get Metadata requires an associated definition The component is on the same level of buttonStates, so it's not a path issue; when I've attempted to test the flash file with a Button and using symbol as skins, it works no problem...\ Thoughts?
Re: [flexcoders] Value Objects
I never really thought about it, but now that I think about it, I imagine that typing an object will provide tremendous performance gains as Flex works its data binding. If the values are typed then the JIT knows where to look to set the value. Other wise it would be searching it as a generic object. Alan On 5/26/09 10:55 PM, Jake Churchill j...@cfwebtools.com wrote: I think it¹s more for the code hints than anything J Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Rowe Sent: Tuesday, May 26, 2009 5:59 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Value Objects The use of 'VO's in Flex has always confused me, largely because as everyone I've spoken to has explained it, all a 'Value' object is is just a Model object - therefore WTF are they being referred to as 'VO's when 'Object' (or Model object) would suffice. My understanding is that the Object representation's deep structure references objects ByRef, but Transfer Objects reference nonserializable/non-native objects by id. That is, if you have Dog { id:int; parent:Dog; } the TO becomes DogTO {id:int; parentID:int;} I'm still yet to have anyone explain it to me in a way which contradicts this way of looking at things. --Tim From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Nate Beck Sent: Wednesday, 27 May 2009 7:53 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Value Objects Hey Mike, You'll see VO and DTO used interchangeably, I believe this is because Cairngorm used to use Data Transfer Object and then switched to Value Objects at some point. That being said... this article gives a very basic example of passing data to and from a server strictly typed, which is what you are trying to accomplish. http://flex.sys-con.com/node/505875 ( ick syscon... anyone know where the real article is? ) The key is the using the [RemoteClass(alias=java.package.Class)], so that when Flex serializes and de-serializes the object, it knows what corresponding class on the server your object represents. I seem to recall that when creating VOs (or DTOs) with a ColdFusion service, you needed to add extra methods to assist in the serialization. Maybe someone else add to this? I've been out of CF for a while now. On Tue, May 26, 2009 at 2:42 PM, mikeashields mikeashie...@hotmail.com wrote: I've come via a MySql to CF to Flex learning path. As such, 1.) my flex app uses mx:RemoteObject with source= pointing at a CFC (in wwwroot/test/cfcs directory). 2.) Said cfc calls a MySql STORED PROCEDURE which returns (say) a list of owners (id, firstname, lastname, etc). 3.) CF passes this back to Flex (apparently in the form of an Object?). 4.) Flex then binds this returned data to a mx:DataGrid. Now I've read extensively on VOs (as well as Cairngorm/MVC) yet don't fully understand either the why or the how. Assuming as basic an example as possible, I need to use AS3 to first define then instantiate an ownerVO, then a function to populate the ownerVO with the results of the RemoteObject then I populate the DataGrid with ownerVOs Comments and/or directions to appropriate learning resources appreciated.
Re: [flexcoders] Re: Flex Builder not rebuilding source
Do a clean and try again? On 27/05/2009, at 3:34 PM, Ron Wagner wrote: I've had this problem in the past and never got an answer. The problem is back. I'll be working on a project and constantly make micro changes and then debug, eventually the changes aren't compiled in anymore. In the small project I'm working on I have removed all Alerts. They don't exist in the source but when I run the debug all the Alerts are still popping up and none of the new code is executed. I have this happen quite often. Clearing the browser cache after making sure there aren't any browser windows open with the swf loaded always clears it up for me. I'm running Safari on a Mac. Ron