[flexcoders] Question about flex event flow
Hi, I was reading up the flex event flow and I have a basic question. What was the need to have two different phases called bubbling and capturing. I understand that they traverse the display list from different directions but ultimately they are going to call the event listeners. Can some one please answer this ? Regards, Nirav - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.
[flexcoders] Datatips not working in datagrid??
Hey guys, It seems my dataTips aren't working for some reason :S mx:DataGrid id=dailyPaymentsGrid top=30 left=0 right=0 bottom=0 mx:columns mx:DataGridColumn headerText=Payment Date dataField=datePaid labelFunction={ dateLabeller } width=95/ mx:DataGridColumn headerText=Client Name dataField=clientName dataTipField=clientName/ mx:DataGridColumn headerText=Amount dataField=amount labelFunction={currencyLabeller }/ mx:DataGridColumn headerText=Method dataField=paymentMethod width=60 / mx:DataGridColumn headerText=Identified dataField=breakDownDate labelFunction={ dateLabeller } width=95/ mx:DataGridColumn headerText=By dataField=user dataTipField=user/ mx:DataGridColumn headerText=Applied dataField=applied labelFunction={dateLabeller } width=95/ mx:DataGridColumn headerText=Allocated dataField=amountAllocated labelFunction={ currencyLabeller }/ mx:DataGridColumn headerText=Un-allocated dataField=amountUnallocated labelFunction={ currencyLabeller }/ mx:DataGridColumn headerText=KPI dataField=kpi labelFunction={numberLabeller } width=40/ mx:DataGridColumn headerText=Reason dataField=kpiReason/ mx:DataGridColumn headerText=Invoices dataField=invoices dataTipField= invoices/ /mx:columns /mx:DataGrid My values turn up fine, but I'm not getting tooltips for values... Is there something obvious I've forgotten to do? Cheers, -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] Tricky dataProvider Refresh
When using a filter function on an AdvancedDataGrid whose dp is a HierarchicalData object derived from an XMLCollectionList passed into it, the dataprovider will not refresh by calling dp.refresh directly. So I tried datagrid.dataProvider.refresh() and it works until one of the row's criteria for filtering is changed and a subsequent filter request occurs. It throws 2 consecutive Invalid Bookmark runtime errors (see below). If I press 'Continue' on both errors, the filtering works properly. Error: Bookmark no longer valid. at ListCollectionViewCursor/seek()[E:\dev\3.0.x\frameworks\projects\framewo\ rk\src\mx\collections\ListCollectionView.as:2046] at mx.collections::HierarchicalCollectionViewCursor/get current()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\\ collections\HierarchicalCollectionViewCursor.as:198] at mx.collections::HierarchicalCollectionViewCursor/collectionChangeHandler\ ()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\collect\ ions\HierarchicalCollectionViewCursor.as:1056] mx:HTTPService id=svc url=data/notifications.xml resultFormat=e4x / mx:XMLListCollection id=dp source={svc.lastResult..category} / mx:HierarchicalData id=categories source={dp} / mx:AdvancedDataGrid id=dg dataProvider={categories} ... / public function aFilter():void{ dg.dataProvider.filterFunction = hideViewedNotifsFilterFunc; dg.dataProvider.refresh(); // addressing dataprovider directly below does not work //dp.filterFunction = hideViewedNotifsFilterFunc; //dp.refresh(); } Any ideas how to eliminate the runtime errors? Thanks, Jeff
Re: [flexcoders] Re: Flash Player Debug version
Hi, On Thu, Jun 12, 2008 at 04:41, brucewhealton [EMAIL PROTECTED] wrote: I guess it doesn't hurt to repost a link to get the debug version of Flash Player 9. http://www.adobe.com/support/flashplayer/downloads.html Regards, -- Fiouz
[flexcoders] Difference between Flash/Flex in AS 3
Hello Guys, I wrote some code in flash AS3 (that one that I sended yesterday ) I copied it to flex and even sample codes like for (var i:uint; trow error. do you have any idea why it is happening?
Re: [flexcoders] Difference between Flash/Flex in AS 3
- Original Message - From: Deniz Davutoglu [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, June 12, 2008 9:44 AM Subject: [flexcoders] Difference between Flash/Flex in AS 3 Hello Guys, I wrote some code in flash AS3 (that one that I sended yesterday ) I copied it to flex and even sample codes like for (var i:uint; trow error. do you have any idea why it is happening? Not unless we are mind readers. Show us an example. Paul
[flexcoders] Dynamic DataGrid row height ?
Hi all here's the problem: I want to use a tree as an itemRenderer within a DataGrid (not the advanced one as it causes me other problems). Now I want the grid to dynamically adjust the row's height to show all of the tree as the user opens/closes nodes. I have tried setting the variableRowHeight=true, but to no result: the row height remains unchanged and the tree nodes disappear if opened. Any idea how to do this? Thanks
[flexcoders] DuplicateMovieClip
Hello Guys, I want to load some jpg with loader class and duplicate it (when I create 2 loaders and load data some how it loads data twice and this cause extra traffic and delay, I need something like duplicateMovieClip in AS3. Has any one has similar experiance or have a solution?
Re: [flexcoders] Another Bug? Security? OBject Related.
On Thursday 12 Jun 2008, Josh McDonald wrote: To elaborate a bit: ObjectUtil.toString() has a few things it won't show by default (like anything named password, and a couple of others). It's to help stop you accidentally exposing important stuff in trace() statements that make it into production that anybody with the debug player can see. Might it be a good idea to at least trace() out 'not showing X' when that happens, rather than confusing people ? -- Tom Chiverton 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. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] not sure why COLLECTION_CHANGE listener is not firing.
The kind had nothing to do with our conversation. The thread was about references. Mike On Wed, Jun 11, 2008 at 8:13 PM, Josh McDonald [EMAIL PROTECTED] wrote: Guys, *don't* look at the documentation for CollectionEventKind, it's seriously wrong in a few places. Look at the documentation for CollectionEvent and the source for CollectionView. -Josh On Thu, Jun 12, 2008 at 12:23 AM, Derrick Anderson [EMAIL PROTECTED] wrote: hey mike, i realized i was writing over the original array collection shortly after posting- i am now just overwriting source like you suggested and my listener is back, thanks! d. On Wed, Jun 11, 2008 at 10:07 AM, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, Your wiping the reference to the original collection looks like. When you receive your data, try using removeAll(), addItem() or ICollectionView. OR set the 'source' property on the collection you added the listener to. Mike On Wed, Jun 11, 2008 at 9:56 AM, Derrick Anderson [EMAIL PROTECTED] wrote: Hi, I'm using the Guasax framework in my application- and in my model I am adding a collection change event listener, but it is never getting fired- here is my code (is there something with adding event listeners in a constructor maybe??) *EmployeesModel.as* package com.winn.model { import com.winn.vo.EmployeeVO; import conf.Constants; import es.guasax.container.GuasaxContainer; import es.guasax.view.ViewLocator; import mx.collections.ArrayCollection; import mx.controls.Alert; import mx.events.CollectionEvent; public class EmployeesModel { private static var instance:EmployeesModel; public static function getInstance():EmployeesModel { if( instance==null ) instance = new EmployeesModel(); return instance; } [Bindable] public var selectedEmployee:EmployeeVO; [Bindable] public var employeesList:ArrayCollection; [Bindable] public var employeeStatusList:ArrayCollection; public function EmployeesModel(){ employeesList = new ArrayCollection(); employeeStatusList = new ArrayCollection(); *employeeStatusList.addEventListener ( CollectionEvent.COLLECTION_CHANGE,employeeStatusListChange );* } * public function employeeStatusListChange(event:CollectionEvent):void { Alert.show('firing listener function');//never shows GuasaxContainer.getInstance().executeViewUpdate( [ViewLocator.getInstance().getViewObject(Constants.EMPLOYEES_VIEW)], 'setEmployeeTypes',[]); }* } } now here is where I load content into that arrayCollection and expect to see my listener function fire off *EmployeeBO.as private var employeesModel:EmployeesModel = EmployeesModel.getInstance(); *public function getEmployeesAuxData():void { var params:Array = []; ServiceLocator.getInstance().executeService(employeeCFC,getEmployeesAuxData,params,employeesAuxDataHandler,faultHandler,this); } public function employeesAuxDataHandler(event:* = null ):void { *employeesModel.employeeStatusList = event.result.EMPLOYEESTATUSES;//i assumed this would be enough to trigger the collectionChange*** //employeesModel.employeeStatusList.refresh();*//thought this would make the collectionEvent fire, but didn't* employeesModel.employeeStatusList.dispatchEvent(new CollectionEvent(CollectionEvent.COLLECTION_CHANGE));*//then tried to fire it manually, but my listener is still never registered* } can anybody see why it seems my event listener is never registered? thanks, d. -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'. -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] what RIA-to-PDF conversion means in LCDS?
On Wednesday 11 Jun 2008, markflex2007 wrote: I want to make sure if it mean it can convert the Flex screen to PDF file? Do you know s demo for this. Flex can take the screen shot itself, but you'll have to send the bitmap data back to a server for processing into PDF. -- Tom Chiverton 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. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Sorting behaviour of AdvanceDataGridControl
I have a AdvanceDatagridControl in my application. I click on column header to sort and then edit some cell in same column. The moment i leave the column the ADC sorts it again. Is there any way to stop ADC to sort it again when edit any cell in the sorted column.
[flexcoders] Flex combining Struts, Spring, Hibernate
Hi all, I have an application developed with Struts, Spring, Hibernate I want to integrate Flex and i'm a beginner in RIA programming. It is very urgent can anybody helps me. thanks
[flexcoders] Sorting behaviour of AdvanceDataGridControl
I have a ADC in my application . I click on column header to sort some column and the edit some cell in the same column. The moment i leave the row the ADC is sorts the data again to fit the new value at some sorted position. I want to stop this behavior as it happens in excel. I.e in excel if you sort a column and edit some cell in same column , excel don't re-sort the data. Any suggestions?
[flexcoders] Re: Design view - Embedding vs Runtime loaded
To load an image at runtime using a relative path for the source URL do the following (provided assets folder with your images is in your source folder): mx:Image id=img source=./assets/image.jpg / Note the ./ at the beginning. --- In flexcoders@yahoogroups.com, ben gomez farrell [EMAIL PROTECTED] wrote: Hello - just a quick question. I usually work with the embedded graphics (lots of Image or SWFLoader components) where I set the source attribute to embed. I've never had luck in the design view with layout. It always appears as a broken link, so I have a lot of guesswork when laying out my designs. But, I was just working on a project with a lot of runtime assets. All my SWFs showed up perfectly. Does anybody have any hints to get the same kind of design view support when embedding vs loading at runtime? thanks! ben
[flexcoders] Re: Issue with HTTPService POST XML Data ~ 40K - Resolved
I am able to resolve this issue with a fix on JSP page. Flex HTTPService and ActionScript both solutions works just fine and sends all the data without truncation. I was able to view the entire XML data using Wireshark Network Protocol Analyzer. Below is the code I fixed on the JSP page. Sorry my bad, for some reason the Servlet's BufferedReader was not reading more than 8K of data. I will investigate further on that. -satish PrintWriter outcsXML = new PrintWriter(new FileOutputStream(new File( c:\\temp\\example.xml))); ServletInputStream br = request.getInputStream(); int line = 0; while ((line = br.read()) != -1) { outcsXML.print((char)line); } br.close(); outcsXML.flush(); outcsXML.close(); --- In flexcoders@yahoogroups.com, satish_cattamanchi [EMAIL PROTECTED] wrote: Hi everyone, I am using HTTPService POST method to send around 40K of data to JSP , but the JSP is receiving only 8K of data on the server side. Any ideas what I might be missing. Any ideas is much appreciated. Thanks, Here's the code snippet of MXML and also ActionScript. mx:HTTPService id=deployCSAppXML url=deploy.jsp method=POST contentType=application/xml result=ProcResult(event) showBusyCursor=true useProxy=false / I also tried Action Script: var request:URLRequest = new URLRequest(deploy.jsp); request.data = dataXML.toXMLString(); request.contentType = text/xml; request.method = URLRequestMethod.POST; var loader:URLLoader = new URLLoader(); loader.addEventListener(Event.COMPLETE, ProcResult); loader.load(request); Here's the JSP code on the Server Side: PrintWriter outcsXML = new PrintWriter(new FileOutputStream(new File( c:\\temp\\example.xml))); BufferedReader br = request.getReader(); String line = null; while ((line = br.readLine()) != null) { outcsXML.print(line); } br.close(); outcsXML.flush(); outcsXML.close();
Re: [flexcoders] controlling a swf from SWFLoader
spot on Alex! that did the job! On 12 Jun 2008, at 06:23, Alex Harui wrote: I would try meter.content.meter_mc.gotoAndStop(), but meter.swf must be an ActionScript 3 swf published for player 9. Any player 8 or earlier content cannot be directly talked to. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mario Vieira Sent: Wednesday, June 11, 2008 3:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] controlling a swf from SWFLoader I'm working in a ISP Costumer Service page that allows the users to upgrade/downgrade their bandwidth. I have a swf that is a meter display, and this has a movie clip whose timeline changes this meter pointer (like a speddedometer) in accordance with the bandwidth value I kinda got Flex controlling this loaded swf movie clip, but only if the user clicks on it. Like an event that catches the movie clip. but that still doesn't do the job :o any thoughts would be well appreciated: mx:SWFLoader x=235 y=375 source =@Embed('assets/swf/ meter.swf') id=meter/ //it's called when its respective state is reached private function getMeter():void { meter.addEventListener(MouseEvent.MOUSE_DOWN, updateMeter); } /* it finds the movie clip, and assigns it an object */ private function updateMeter(e:MouseEvent):void { //this works, but I needed it to be reachable without a click! var swfMovieClicked:Object = e.target; swfMovieClicked.gotoAndStop(_meterValue); //the loaded swf movie clip is not found through the SWFLoader object at all: //meter.meter_mc.gotoAndStop(_meterValue); }
[flexcoders] Re: OOP and Work for Hire
You can use it again definitely otherwise no one here would be allowed to do even a sorting algorithm ever again. Come on, some guys even went so far that every single digital line of code is client's. So even the mx:Button / I can't implement ever again, because it belongs to the customer. Algorithm, you can probably use it again. It depends how obvious or unique it is. In theory, algorithms / approaches to solving problems are not patentable. In reality such algorithms may be patentable or considered trade secrets. Depends, but usually there are changes for the better in each iteration. Even if you sit down to implement the algorithm a second time, I bet it will come out quite different than what you did the first tie.
[flexcoders] Re: DataGrid selection to populate another datagrid
This blog post should give you a good start: http://blog.paranoidferret.com/index.php/2007/07/27/flex-friday-feature-datagrid-component/ --- In flexcoders@yahoogroups.com, Just give a guess... [EMAIL PROTECTED] wrote: Has anyone here written code that would update the data in another datagrid based upon the selected value in the first datagrid. I'm new to Flex and just getting my hands around all of this. For example, I have a list of tasks in the first datagrid. When a user selects a task, it populates another datagrid with all of the sub tasks that belong to that task by executing a SQL query. Any help in getting me started. I already have to code for the first datagrid. By the way, I am using Flash Remoting to assign my dynamic data into the datagrid. Thanks... Paul C.
[flexcoders] Re: My Web Service with soap headers code no longer work with Flex 3
Any ideas on this? I'm having a real hard time here. Mark --- In flexcoders@yahoogroups.com, Mark [EMAIL PROTECTED] wrote: In Flex 2 this works like a charm but not in 3, I can't seem to find any info on the changes in the Help. Can someone lend a hand? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=onCreationComplete() mx:Script ![CDATA[ // import mx.rpc.soap.SOAPHeader; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; import mx.utils.ObjectUtil; // /** *** BEGING WEB SERVICE CALL WITH ADDING HEADERS *** */ private function onCreationComplete():void { trace(GETTING); var qName:QName = new QName (http://radar.net/RadarXML.asmx,AuthHeader;); var headerInfo:XML = AuthHeader xmlns=http://tempuri.org/; UserNameadmin/UserName Passwordadmin/Password /AuthHeader; var header:SOAPHeader = new SOAPHeader (qName, headerInfo); ws.addHeader(header); sendData(); } // private function sendData(): void { trace(SENDING); ws.PullXML.send(); } // private function onFault(event:FaultEvent): void { trace( FAULT\n + ObjectUtil.toString( event.fault )); } // private function onResult(event:ResultEvent): void { trace(RESULT\n + event.result); } // ]] /mx:Script !-- web service -- mx:WebService id=ws wsdl=http://radar.net/RadarXML.asmx?WSDL; showBusyCursor=true mx:operation name=PullXML result=onResult(event) fault=onFault(event)/ /mx:WebService /mx:Application
Re: [flexcoders] Re: My Web Service with soap headers code no longer work with Flex 3
I don't know much about funky soap headers, but what kind of error are you getting? Or is it just dropping the headers? On Thu, Jun 12, 2008 at 11:02 PM, Mark [EMAIL PROTECTED] wrote: Any ideas on this? I'm having a real hard time here. Mark --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Mark [EMAIL PROTECTED] wrote: In Flex 2 this works like a charm but not in 3, I can't seem to find any info on the changes in the Help. Can someone lend a hand? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=onCreationComplete() mx:Script ![CDATA[ // import mx.rpc.soap.SOAPHeader; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; import mx.utils.ObjectUtil; // /** *** BEGING WEB SERVICE CALL WITH ADDING HEADERS *** */ private function onCreationComplete():void { trace(GETTING); var qName:QName = new QName (http://radar.net/RadarXML.asmx,AuthHeader;); var headerInfo:XML = AuthHeader xmlns=http://tempuri.org/; UserNameadmin/UserName Passwordadmin/Password /AuthHeader; var header:SOAPHeader = new SOAPHeader (qName, headerInfo); ws.addHeader(header); sendData(); } // private function sendData(): void { trace(SENDING); ws.PullXML.send(); } // private function onFault(event:FaultEvent): void { trace( FAULT\n + ObjectUtil.toString( event.fault )); } // private function onResult(event:ResultEvent): void { trace(RESULT\n + event.result); } // ]] /mx:Script !-- web service -- mx:WebService id=ws wsdl=http://radar.net/RadarXML.asmx?WSDL; showBusyCursor=true mx:operation name=PullXML result=onResult(event) fault=onFault(event)/ /mx:WebService /mx:Application -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] Need some assistance with insert, update done in a loop
In the part of my application that I'm currently working on I'm trying to dynamically update a local database every time a change is made to the dataProvider(ArrayCollection) when a dragDrop action is done. Here's my code so far: --- private function dragToOrders(event:DragEvent):void { var draggedItems:Object = new Object(); draggedItems = event.dragSource.dataForFormat(items); var n:int = orderDetailArray.length; for (var i:int = 0; i n; i++)//Looping through to check for duplicate entries { if (orderDetailArray[i].UniqueID == draggedItems[0].UniqueID) { orderDetailArray[i].Qty ++; event.preventDefault(); adgOrders.dataProvider.dispatchEvent(new CollectionEvent(CollectionEvent.COLLECTION_CHANGE)); trace(Update fired);//Placeholder foractual update function return; } adgOrders.dataProvider.dispatchEvent(new CollectionEvent(CollectionEvent.COLLECTION_CHANGE)); trace(Insert fired); //Placeholder for actual insert function } } --- The problem is that both the insert and update functions are firing once the second item is put into the dropTarget's dataProvider which would cause many duplicate entries into the database. What I need help with is making sure that only an insert or an update is fired when needed. I suspect this may have something to do with the for loop everything is in but outside input would be appreciated. Thanks in advance, Brian Ross Edwards Tech-Connect LLC
[flexcoders] LCDS gets Killed !!!
Hi, I am trying to run a Java code from LCDS and I am facing the following problem.. LCDS process gets killed... In the Java function I am trying to invoke an exe using runtime.exec(); The Java code is working fine when tested separately. Please... Help me.. Chitra
[flexcoders] Understanding Custom Event Creation
The LiveDocs page that is supposed to explain how to create a custom event is: http://livedocs.adobe.com/flex/3/html/ascomponents_7.html#170959 I get it that what I choose for the name parameter is what listeners will have to register against. I don't get the 'type' param. Am I needing to make that package of the current class? [Event(name=itsGreaterThanZero, type=com.foo.bar.whatHere)] Also, the sample doesn't make clear how to pass custom (runtime) data. I'm working with code that needs to dispatch a custom event when a given value is found to be 0. The method in question is in a class that extends UIComponent. Any help much appreciated. --steve...
[flexcoders] How to set up a LCDS Development enviroment?
Hi, I just install LCDS 2.6 and I can see the test sample here. http://localhost:8400/lcds-samples/ I have question here: 1. How to change port 8400 to port 80. 2. How to set a development environment for LCDS applications. Thanks a lot Mark
[flexcoders] Re: Datatips not working in datagrid??
Hey Josh, mx:DataGridColumn headerText=Client Name dataField=clientName dataTipField=clientName showDataTips=true/ -TH --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: Hey guys, It seems my dataTips aren't working for some reason :S mx:DataGrid id=dailyPaymentsGrid top=30 left=0 right=0 bottom=0 mx:columns mx:DataGridColumn headerText=Payment Date dataField=datePaid labelFunction={ dateLabeller } width=95/ mx:DataGridColumn headerText=Client Name dataField=clientName dataTipField=clientName/ mx:DataGridColumn headerText=Amount dataField=amount labelFunction={currencyLabeller }/ mx:DataGridColumn headerText=Method dataField=paymentMethod width=60 / mx:DataGridColumn headerText=Identified dataField=breakDownDate labelFunction={ dateLabeller } width=95/ mx:DataGridColumn headerText=By dataField=user dataTipField=user/ mx:DataGridColumn headerText=Applied dataField=applied labelFunction={dateLabeller } width=95/ mx:DataGridColumn headerText=Allocated dataField=amountAllocated labelFunction={ currencyLabeller }/ mx:DataGridColumn headerText=Un-allocated dataField=amountUnallocated labelFunction={ currencyLabeller }/ mx:DataGridColumn headerText=KPI dataField=kpi labelFunction={numberLabeller } width=40/ mx:DataGridColumn headerText=Reason dataField=kpiReason/ mx:DataGridColumn headerText=Invoices dataField=invoices dataTipField= invoices/ /mx:columns /mx:DataGrid My values turn up fine, but I'm not getting tooltips for values... Is there something obvious I've forgotten to do? Cheers, -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] Understanding Custom Event Creation
Hi package my.event.package { public class MyEvent extends Event { public static const IS_GREATER_CHANGED:String = isGreaterChanged; public var isGreater:Boolean; public function MyEvent(type:String, isGreater:Boolean) { super(type); this.isGreater = isGreater; } } } // app as file [Event(type=isGreaterChanged, type=my.event.package.MyEvent)] ... var e:MyEvent = new MyEvent(MyEvent.IS_GREATER_CHANGED, true); dispatchEvent(e); ... event handler private function isGreaterHandler(event:MyEvent):void { trace(event.isGreater); } Mike -- Forwarded message -- From: justSteve [EMAIL PROTECTED] Date: Thu, Jun 12, 2008 at 9:51 AM Subject: [flexcoders] Understanding Custom Event Creation To: flexcoders flexcoders@yahoogroups.com The LiveDocs page that is supposed to explain how to create a custom event is: http://livedocs.adobe.com/flex/3/html/ascomponents_7.html#170959 I get it that what I choose for the name parameter is what listeners will have to register against. I don't get the 'type' param. Am I needing to make that package of the current class? [Event(name=itsGreaterThanZero, type=com.foo.bar.whatHere)] Also, the sample doesn't make clear how to pass custom (runtime) data. I'm working with code that needs to dispatch a custom event when a given value is found to be 0. The method in question is in a class that extends UIComponent. Any help much appreciated. --steve... -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] Re: Need some assistance with dynamic updates done through a loop
Okay, after doing some more research I found that the update function(my trace placeholder) is fine where it is, the problem is that it is firing the insert function for each and every row every time something is dragged onto the datagrid essentially cloning all the entries in the database while updating the original items. So I've narrowed down my problem to figuring out how to get the insert function to fire only once for new items and skipped when updating items. I keep thinking that perhaps I might be using the wrong kind of loop, but other options I can think of amount to the same thing. I've tried using an else and else if block to enclose the insert placeholder but it is still doing the same thing. Again, any advice and help would be greatly appreciated. --- In flexcoders@yahoogroups.com, bredwards358 [EMAIL PROTECTED] wrote: In the part of my application that I'm currently working on I'm trying to dynamically update a local database every time a change is made to the dataProvider(ArrayCollection) when a dragDrop action is done. Here's my code so far: --- private function dragToOrders(event:DragEvent):void { var draggedItems:Object = new Object(); draggedItems = event.dragSource.dataForFormat(items); var n:int = orderDetailArray.length; for (var i:int = 0; i n; i++)//Looping through to check for duplicate entries { if (orderDetailArray[i].UniqueID == draggedItems[0].UniqueID) { orderDetailArray[i].Qty ++; event.preventDefault(); adgOrders.dataProvider.dispatchEvent(new CollectionEvent(CollectionEvent.COLLECTION_CHANGE)); trace(Update fired);//Placeholder foractual update function return; } adgOrders.dataProvider.dispatchEvent(new CollectionEvent(CollectionEvent.COLLECTION_CHANGE)); trace(Insert fired); //Placeholder for actual insert function } } --- The problem is that both the insert and update functions are firing once the second item is put into the dropTarget's dataProvider which would cause many duplicate entries into the database. What I need help with is making sure that only an insert or an update is fired when needed. I suspect this may have something to do with the for loop everything is in but outside input would be appreciated. Thanks in advance, Brian Ross Edwards Tech-Connect LLC
[flexcoders] initialization behaviors
Hello I have - one Class that extends Canvas and contains a Label - a private property named _message - get/set public functions to get/set _message - the set function --- sets the value of the private property _message --- sets the same value to the text property of the Label --- calling the class from mxml I obtain two different behaviors: 1) comps:ExtendedCanvas message=text text text just text / All works fine... Text is visible in the Label inside the ExtendedCanvas 2) comps:ExtendedCanvas message={resourceManager.getString('localizedContent', 'messageString01')} / Text is not visible in the Label inside the ExtendedCanvas... I've tried: Tracing the value in the container/parent of the ExtendedCanvas I can see it's there... Tracing the value in the createChildren function that creates the Label and assigns the text I've already lost the value... Sorry to ask... maybe it's too much a newbie question for all of you But I was wondering... If the tracing 'before' the mxml tag that creates the ExtendedCanvas returns the right text, why shouldn't the text be there when I'm already filling the ExtendedCanvas with childrens? Am I getting something wrong? Any suggestion is really appreciated... Obviously is really appreciated also any hint on where to look for better understanding on the matter... Already had a look to the commitProperties method and it seems that I could obtain the localized string if I trigger it just in the moment when the 'message' property is assigned a value... so I can visualize the text I need... BUT still I'd like to uderstand why... why the different behavior? Thanks in advance Jo
Re: [flexcoders] Re: OOP and Work for Hire
I'm bowing out of this discussion. Things have gotten far too polarized and nit-picky. However, I still feel it is worthwhile to at least chime in one more time because I think some of the points raised here leave developers with wrong and dangerous information. The overall opinion that you don't need to worry about re-using your source code from other clients' projects is simply false, and has the potential to get you into a lot of legal trouble. If you find yourself copying code from work you did for a previous client, please please go back and re-read the contract you signed, and be sure that you properly understand what you're doing and the legal implications. When it comes to these issues it is always better to err on the side of caution. I'll stop giving my opinion on what's right or wrong, and just say that as a developer, you need to have a thorough understanding of IP law before you go down that road, so read up and please don't rely on mailing lists for legal advice :) Doug On Thu, Jun 12, 2008 at 5:44 AM, b_alen [EMAIL PROTECTED] wrote: You can use it again definitely otherwise no one here would be allowed to do even a sorting algorithm ever again. Come on, some guys even went so far that every single digital line of code is client's. So even the mx:Button / I can't implement ever again, because it belongs to the customer. Algorithm, you can probably use it again. It depends how obvious or unique it is. In theory, algorithms / approaches to solving problems are not patentable. In reality such algorithms may be patentable or considered trade secrets. Depends, but usually there are changes for the better in each iteration. Even if you sit down to implement the algorithm a second time, I bet it will come out quite different than what you did the first tie.
[flexcoders] Flex Builder Profile Problems
I tried the Flex Builder Profiler for the first time. It works great after disabling the firewall on my machine. But now when I go start my application in debug mode, it seems to be running the profiler. This is what the console window shows me after I start the project in debug mode: [SWF] C:/Documents and Settings/LiechtyPO/My Documents/Flex Builder 3/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf - 17,476 bytes after decompression [SWF] /recordsearch/RecordSearch.swf - 1,492,130 bytes after decompression I can't get it to stop profiling.
RE: [flexcoders] Flex Builder Profile Problems
Can you try editing the mm.cfg under C:/Documents and Settings/LiechtyPO and see if removing the PreloadSwf entry resolves this? Thanks, Gaurav -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wwwpl Sent: Thursday, June 12, 2008 11:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Builder Profile Problems I tried the Flex Builder Profiler for the first time. It works great after disabling the firewall on my machine. But now when I go start my application in debug mode, it seems to be running the profiler. This is what the console window shows me after I start the project in debug mode: [SWF] C:/Documents and Settings/LiechtyPO/My Documents/Flex Builder 3/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf - 17,476 bytes after decompression [SWF] /recordsearch/RecordSearch.swf - 1,492,130 bytes after decompression I can't get it to stop profiling. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Re: OOP and Work for Hire
One thing I'm gonna add. A contractor we once hired submitted code with a copyright notice on it, to a 3rd party developer. That contractor's contract was terminated immediately. Doug McCune wrote: I'm bowing out of this discussion. Things have gotten far too polarized and nit-picky. However, I still feel it is worthwhile to at least chime in one more time because I think some of the points raised here leave developers with wrong and dangerous information. The overall opinion that you don't need to worry about re-using your source code from other clients' projects is simply false, and has the potential to get you into a lot of legal trouble. If you find yourself copying code from work you did for a previous client, please please go back and re-read the contract you signed, and be sure that you properly understand what you're doing and the legal implications. When it comes to these issues it is always better to err on the side of caution. I'll stop giving my opinion on what's right or wrong, and just say that as a developer, you need to have a thorough understanding of IP law before you go down that road, so read up and please don't rely on mailing lists for legal advice :) Doug On Thu, Jun 12, 2008 at 5:44 AM, b_alen [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: You can use it again definitely otherwise no one here would be allowed to do even a sorting algorithm ever again. Come on, some guys even went so far that every single digital line of code is client's. So even the mx:Button / I can't implement ever again, because it belongs to the customer. Algorithm, you can probably use it again. It depends how obvious or unique it is. In theory, algorithms / approaches to solving problems are not patentable. In reality such algorithms may be patentable or considered trade secrets. Depends, but usually there are changes for the better in each iteration. Even if you sit down to implement the algorithm a second time, I bet it will come out quite different than what you did the first tie. -- Jeffry Houser Flex, ColdFusion, AIR AIM: Reboog711 | Phone: 1-203-379-0773 -- Adobe Community Expert http://www.adobe.com/communities/experts/members/JeffryHouser.html My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
[flexcoders] Looping through datagrid rows
Hi All, I have a datagrid being populated by an arraycollection. The data grid has 3 columns, 2 populated by values in the arraycollection and one with a combobox as an itemrenderer which is not in the dataprovider. How do look through the entire grid getting the combobox value which the user has chosen for each row? thanks in advance. /Eric
[flexcoders] Modules not loading in some browsers! Why?
Hello, My problem has to do with modules showing up in some browsers sometimes... and not showing up other times in other browsers. To fix the problem I have to refresh the page so the Flex application will reload. I always make sure the empty my cache before trying... There are some times when the modules load fine what could be the problem??
[flexcoders] how do you guys manage your CFC's?
hi, currently, i have a coldfusion backend and I put my CFC's in the bin folder of the project as it seems natural and I can call them with their path from BIN and not have to setup a CF mapping to those CFC's. however, everytime I edit a CFC- FB prompts me because it thinks it is a derived file. i think i should put the CFC's somewhere else, but I'd like to know how you guys that use CF handle it. do you create a separate eclipse project for the CFC's? where do you store them by default? thanks, d.
[flexcoders] Re: Flex combining Struts, Spring, Hibernate
--- In flexcoders@yahoogroups.com, kamel [EMAIL PROTECTED] wrote: Hi all, I have an application developed with Struts, Spring, Hibernate I want to integrate Flex and i'm a beginner in RIA programming. It is very urgent can anybody helps me. thanks So you dao are all in the spring context files you can use the blazeds with the spring factory available then develop the UI using flex with remote objects
[flexcoders] Re: Flex combining Struts, Spring, Hibernate
--- In flexcoders@yahoogroups.com, stephen.smithstone [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, kamel kamel_wafi@ wrote: Hi all, I have an application developed with Struts, Spring, Hibernate I want to integrate Flex and i'm a beginner in RIA programming. It is very urgent can anybody helps me. thanks So you dao are all in the spring context files you can use the blazeds with the spring factory available then develop the UI using flex with remote objects Thanks for your help, can you please give me more details.
Re: [flexcoders] Flex combining Struts, Spring, Hibernate
http://www.brightworks.com/technology/adobe_flex/with_java.html http://www.brightworks.com/technology/adobe_flex/blazeds.html On Thu, Jun 12, 2008 at 5:52 AM, kamel [EMAIL PROTECTED] wrote: Hi all, I have an application developed with Struts, Spring, Hibernate I want to integrate Flex and i'm a beginner in RIA programming. It is very urgent can anybody helps me. thanks
RE: [flexcoders] Re: My Web Service with soap headers code no longer work with Flex 3
There were some security changes in the Flash Player that can affect webservice access. Search for my post: FYI: WebService, FP version 9.0.124.0, Security error accessing URL crossdomain.xml fix Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Thursday, June 12, 2008 9:14 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: My Web Service with soap headers code no longer work with Flex 3 I don't know much about funky soap headers, but what kind of error are you getting? Or is it just dropping the headers? On Thu, Jun 12, 2008 at 11:02 PM, Mark [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Any ideas on this? I'm having a real hard time here. Mark --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Mark [EMAIL PROTECTED] wrote: In Flex 2 this works like a charm but not in 3, I can't seem to find any info on the changes in the Help. Can someone lend a hand? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute creationComplete=onCreationComplete() mx:Script ![CDATA[ // import mx.rpc.soap.SOAPHeader; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; import mx.utils.ObjectUtil; // /** *** BEGING WEB SERVICE CALL WITH ADDING HEADERS *** */ private function onCreationComplete():void { trace(GETTING); var qName:QName = new QName (http://radar.net/RadarXML.asmx http://radar.net/RadarXML.asmx ,AuthHeader); var headerInfo:XML = AuthHeader xmlns=http://tempuri.org/ http://tempuri.org/ UserNameadmin/UserName Passwordadmin/Password /AuthHeader; var header:SOAPHeader = new SOAPHeader (qName, headerInfo); ws.addHeader(header); sendData(); } // private function sendData(): void { trace(SENDING); ws.PullXML.send(); } // private function onFault(event:FaultEvent): void { trace( FAULT\n + ObjectUtil.toString( event.fault )); } // private function onResult(event:ResultEvent): void { trace(RESULT\n + event.result); } // ]] /mx:Script !-- web service -- mx:WebService id=ws wsdl=http://radar.net/RadarXML.asmx?WSDL http://radar.net/RadarXML.asmx?WSDL showBusyCursor=true mx:operation name=PullXML result=onResult(event) fault=onFault(event)/ /mx:WebService /mx:Application -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
RE: [flexcoders] Looping through datagrid rows
You do not. Item renderers are recycled, and only the visible ones even exist. Renerers cannot be relied on to retain any stae Your itemRenderer must set it state (selectedIndex of the ComboBox) based on the value of a property on the dataProvider item. When a user makes a selection in the Combo box, it must update that property. You can then loop over the dataProvider to access the current values. Making this happen is a bit complex. Take a look at the example here: http://www.cflex.net/showFileDetails.cfm?ObjectID=767 I do not provide it as a production-level component, just as an example or starting point, but it does address the necessary issues. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ericbichara Sent: Thursday, June 12, 2008 11:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Looping through datagrid rows Hi All, I have a datagrid being populated by an arraycollection. The data grid has 3 columns, 2 populated by values in the arraycollection and one with a combobox as an itemrenderer which is not in the dataprovider. How do look through the entire grid getting the combobox value which the user has chosen for each row? thanks in advance. /Eric
RE: [flexcoders] Modules not loading in some browsers! Why?
Most common issue has been multiple open requests for the same module From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mellomike07 Sent: Thursday, June 12, 2008 8:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Modules not loading in some browsers! Why? Hello, My problem has to do with modules showing up in some browsers sometimes... and not showing up other times in other browsers. To fix the problem I have to refresh the page so the Flex application will reload. I always make sure the empty my cache before trying... There are some times when the modules load fine what could be the problem??
RE: [flexcoders] DuplicateMovieClip
2 loaders will each load the jpg, although the 2nd should come from the browser cache. You can make a copy of the bitmap and use that instead of the 2nd loader. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Deniz Davutoglu Sent: Thursday, June 12, 2008 2:26 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DuplicateMovieClip Hello Guys, I want to load some jpg with loader class and duplicate it (when I create 2 loaders and load data some how it loads data twice and this cause extra traffic and delay, I need something like duplicateMovieClip in AS3. Has any one has similar experiance or have a solution?
RE: [flexcoders] Dynamic DataGrid row height ?
Subclass Tree and change its measure() method to report a measuredHeight that contains the current number of rows * rowHeight From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tvikatos Sent: Thursday, June 12, 2008 1:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Dynamic DataGrid row height ? Hi all here's the problem: I want to use a tree as an itemRenderer within a DataGrid (not the advanced one as it causes me other problems). Now I want the grid to dynamically adjust the row's height to show all of the tree as the user opens/closes nodes. I have tried setting the variableRowHeight=true, but to no result: the row height remains unchanged and the tree nodes disappear if opened. Any idea how to do this? Thanks
RE: [flexcoders] Question about flex event flow
Capture allows the parent to see an event before the child gets it and potentially block it. Bubble allows the parent to see an event after the child has got it and decided whether to allow the parents to see it. Sometimes your parents read your mail and never let you see it, sometime you want to get the mail first and not let them see what you got. BTW, we didn't invent this. It is a standard: http://www.w3.org/TR/DOM-Level-3-Events/events.html From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gosalia, Nirav Sent: Thursday, June 12, 2008 12:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Question about flex event flow Hi, I was reading up the flex event flow and I have a basic question. What was the need to have two different phases called bubbling and capturing. I understand that they traverse the display list from different directions but ultimately they are going to call the event listeners. Can some one please answer this ? Regards, Nirav - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.
RE: [flexcoders] Re: My Web Service with soap headers code no longer work with Flex 3
I see that your header is an authorization header. That is not good news for you, and your problem cannot be fixed by the crossdomain file. You can no longer set Authorization headers. Below is copied from an earlier post to flexcoders. I think you will find more info if yo search. Tracy Use the proxy service that ships in BlazeDS and LCDS for your Http requests. There are a variety of browser hacks related to Http headers (which in some cases also impact SOAP web services), and the player is likely to get more restrictive in this area rather than less. This generally has more to do with lax or faulty APIs in routers, etc., but we as Flash users end up suffering. To side-step the header restrictions, as well as the limited set of Http methods supported by the Player and browser plugin APIs, if you use HTTPService or WebService with useProxy=true, and route those requests through BlazeDS or LCDS, your desired request is wrapped and sent in a compliant fashion from the Player to the proxy service, and it is then unwrapped and the actual proxied request can be made successfully. This service also handles getting Http error responses (say, in the 500 status code range) back into the Player usefully. Best, Seth From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of gli1_2000 Sent: Thursday, February 07, 2008 9:14 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: HTTPService or URLRequest Request header Question Then what is a possible alternative to get around this? Anyone has suggestions? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , João Fernandes [EMAIL PROTECTED] wrote: this is true, you can't use authorization token in headers anymore within Flash Player. This is big step backwards in my opinion -- João Fernandes From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Thursday, June 12, 2008 12:15 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: My Web Service with soap headers code no longer work with Flex 3 There were some security changes in the Flash Player that can affect webservice access. Search for my post: FYI: WebService, FP version 9.0.124.0, Security error accessing URL crossdomain.xml fix Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Thursday, June 12, 2008 9:14 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: My Web Service with soap headers code no longer work with Flex 3 I don't know much about funky soap headers, but what kind of error are you getting? Or is it just dropping the headers? On Thu, Jun 12, 2008 at 11:02 PM, Mark [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Any ideas on this? I'm having a real hard time here. Mark --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Mark [EMAIL PROTECTED] wrote: In Flex 2 this works like a charm but not in 3, I can't seem to find any info on the changes in the Help. Can someone lend a hand? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute creationComplete=onCreationComplete() mx:Script ![CDATA[ // import mx.rpc.soap.SOAPHeader; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; import mx.utils.ObjectUtil; // /** *** BEGING WEB SERVICE CALL WITH ADDING HEADERS *** */ private function onCreationComplete():void { trace(GETTING); var qName:QName = new QName (http://radar.net/RadarXML.asmx http://radar.net/RadarXML.asmx ,AuthHeader); var headerInfo:XML = AuthHeader xmlns=http://tempuri.org/ http://tempuri.org/ UserNameadmin/UserName Passwordadmin/Password /AuthHeader; var header:SOAPHeader = new SOAPHeader (qName, headerInfo); ws.addHeader(header); sendData(); } // private function sendData(): void { trace(SENDING); ws.PullXML.send(); } // private function onFault(event:FaultEvent): void { trace( FAULT\n + ObjectUtil.toString( event.fault )); } // private function onResult(event:ResultEvent): void { trace(RESULT\n + event.result); } // ]] /mx:Script !-- web service -- mx:WebService id=ws wsdl=http://radar.net/RadarXML.asmx?WSDL http://radar.net/RadarXML.asmx?WSDL showBusyCursor=true mx:operation name=PullXML result=onResult(event) fault=onFault(event)/ /mx:WebService /mx:Application -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
[flexcoders] Re: Socket HTTP/1.1 connection not closed even after Response is sent
After thoroughly reading the Adobe socket policy docs, it looks like I'm going to have to open up port 843 and serve the new crossdomain.xml that way. Even though I have it on my root and call Security.loadPolicy() on it (and I see in the logger that it accepts it), it still calls 843, hangs, (b/c it doesn't exist there), than the Flash player throws a security error. Rather frustrating. So it goes. I'm on the debug FP version: WIN 9,0,124,0 This crossdomain below is on my root webserver and my app is on port 9080. Even if I move my html and swf to the main root (port 80)..it still fails. ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.adobe.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy site-control permitted-cross-domain-policies=master-only/ allow-access-from domain=* to-ports=8080-9080/ /cross-domain-policy --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: You can set any headers you like so long as they're specified in your crossdomain.xml, and they're not on the banned list. Details: http://www.adobe.com/devnet/flashplayer/articles/flash_player9_security_update.html#policy_file Baninanted headers: http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403030sliceId=1 AFAIK jsessionid is a cookie and the browser should be putting it in to any request made from Flex via HttpService. You may have the one Flash Player version (apparently 9.0.115.0) that blocks Authorization header info. -Josh On Thu, Jun 12, 2008 at 2:20 PM, e_baggg [EMAIL PROTECTED] wrote: I am doing hand-rolled GETs because Flex (HttpService) cannot pass headers (ie jessionid). Thus, I need to open my own flash.net.Socket and write/read the request/response manually. It works great with Digest authorization except for this policy issue. I suppose I can get around this making the login page a JSP and make the redirect go to the swf html page...and from there use HttpServicebut still I hate hacks. Such a shame this policy stuff is such a nightmare. I followed the Adobe docs exactly and I still have issues. I'll work on this more and report back anything I find. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh McDonald dznuts@ wrote: Also, maybe we should look at the root of the problem - what is it you're actually trying to do via sockets and hand-rolled GETs that you can't do with httpService? -Josh On Thu, Jun 12, 2008 at 9:51 AM, Josh McDonald josh@ wrote: You'll have to use something like Charles to listen to what Flash player is doing behind your back for the policy file to be sure, but if you try and open a socket to somedomain.com:9080, I believe Flash is going to look for somedomain.com:80/crossdomain.xml - Flash doesn't know that the socket you're connecting to is a http server, so it only knows to look in the default location, and it's not going to get your crossdomain file if it's on the server listening on 9080. Like I said, check with Charles to be sure, but it would make sense to me at least. -Josh On Thu, Jun 12, 2008 at 8:35 AM, e_baggg e_baggg@ wrote: I spoke too soon. The 3 second delay still exists and when I set up the Swf policy file debugger for Windows...the Flash player outputs this. My concern is that first warning. According to the docs, calling Security.loadPolicyFile() to the domain and port (which line 2 says happened ok) should fix everything. I just updated my Windows XP, which I read somewhere upgrades the flash player. I still have the debug version though. This is all a mess to me. OK: Root-level SWF loaded: http://my.domain.com:9080/xms-app/xms.swf OK: Policy file accepted: http://my.domain.com:9080/crossdomain.xml Warning: Timeout on xmlsocket://my.domain.com:843 (at 3 seconds) while waiting for socket policy file. This should not cause any problems, but see http://www.adobe.com/go/strict_policy_files for an explanation. Warning: [strict] Requesting socket policy file from xmlsocket://my.domain.com:9080 due to socket connection request from SWF at http://my.domain.com:9080/xms-app/xms.swf. See http://www.adobe.com/go/strict_policy_files if this causes problems. Warning: Timeout on xmlsocket://my.domain.com:9080 (at 3 seconds) while waiting for socket policy file. This should not cause any problems, but see http://www.adobe.com/go/strict_policy_files for an explanation. Warning: SWF from http://my.domain.com:9080/xms-app/xms.swf will be permitted to connect to a socket in its own domain without a policy file. This configuration is deprecated. See http://www.adobe.com/go/strict_policy_files to fix this problem. Warning: SWF from http://my.domain.com:9080/xms-app/xms.swf will be permitted to connect to a socket in its own domain without a
[flexcoders] Re: Working with Start Up companies...
No one is in this position or no one wants to share/say ? :) --- In flexcoders@yahoogroups.com, erik.lockel [EMAIL PROTECTED] wrote: When working with a start up, what % of stock/options would you expect to get for joining the company? The company is delivering flex/air based products and you are the only flex developer and the company size is 6 people. Perhaps a touchy subject but I've never gone down this route before and don't know what I'm getting into Thanks
[flexcoders] Re: Modules not loading in some browsers! Why?
Thanks for the response Alex! How can I test if multiple request are being made? Because in my code I'm only calling the module to load once. But one thing I should mention is that the module is being loaded inside a creationComplete event handler of a view component. Could it be that this creationComplete event is being fired more than once? if so, how can I prevent this? Thanks!!! --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Most common issue has been multiple open requests for the same module From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mellomike07 Sent: Thursday, June 12, 2008 8:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Modules not loading in some browsers! Why? Hello, My problem has to do with modules showing up in some browsers sometimes... and not showing up other times in other browsers. To fix the problem I have to refresh the page so the Flex application will reload. I always make sure the empty my cache before trying... There are some times when the modules load fine what could be the problem??
[flexcoders] Re: Adding event to an image set as titleIcon property
I do this all the time. I have two embedded images that are set as bindable (openNav and closeNav). The image source is dependent on a property named isOpen. I have attached a click handler to the image: mx:Image source={isOpen == false?(openNav):closeNav} useHandCursor=true buttonMode=true mouseChildren=false id=thisToggleImage click=toggleAccordionItem() right=5 top=5 / The toggleAccordionItem function just runs an effect to open or close my panel. private var shrinkBox:Resize = new Resize(); private var growBox:Resize = new Resize(); private function toggleAccordionItem():void { if(isOpen) { shrinkBox.duration = 500; shrinkBox.target = thisAccordionItem; shrinkBox.end(); shrinkBox.heightTo = 21; shrinkBox.play(); } else { growBox.target = thisAccordionItem; growBox.end(); growBox.heightTo = 300; growBox.play(); } isOpen = !isOpen; } --- In flexcoders@yahoogroups.com, pratikshah83 [EMAIL PROTECTED] wrote: Hi , I am currently using a collapsible panel. It expands or collapse when we click the panel header. Currently I have an event on the titleBar. I have an open and close arrow image set as titleIcon property, I would like to add a click event on that arrow image property instead of the titleBar. Any help in this regards is appreciated. Thanks Pratik
[flexcoders] Re: Adding event to an image set as titleIcon property
I do this all the time. I have two embedded images that are set as bindable (openNav and closeNav). The image source is dependent on a property named isOpen. I have attached a click handler to the image: mx:Image source={isOpen == false?(openNav):closeNav} useHandCursor=true buttonMode=true mouseChildren=false id=thisToggleImage click=toggleAccordionItem() right=5 top=5 / The toggleAccordionItem function just runs an effect to open or close my panel. private var shrinkBox:Resize = new Resize(); private var growBox:Resize = new Resize(); private function toggleAccordionItem():void { if(isOpen) { shrinkBox.duration = 500; shrinkBox.target = thisAccordionItem; shrinkBox.end(); shrinkBox.heightTo = 21; shrinkBox.play(); } else { growBox.target = thisAccordionItem; growBox.end(); growBox.heightTo = 300; growBox.play(); } isOpen = !isOpen; } --- In flexcoders@yahoogroups.com, pratikshah83 [EMAIL PROTECTED] wrote: Hi , I am currently using a collapsible panel. It expands or collapse when we click the panel header. Currently I have an event on the titleBar. I have an open and close arrow image set as titleIcon property, I would like to add a click event on that arrow image property instead of the titleBar. Any help in this regards is appreciated. Thanks Pratik
[flexcoders] Flex Credit Card Processing
Hi, Can anyone point me in the direction on how to process Credit Card payments with Flex, Im I right in thinking that it will use an API, HTTPS and a Merchant Account with a bank? Would it be possible to create a custom script to post variables to a WorldPay or similar vendor. Cheers, David
Re: [flexcoders] Re: Modules not loading in some browsers! Why?
It also may be that you're not making a hard link to the module and it's getting garbage collected before you're doing anything with it. I don't remember exactly the details, but I had an issue with modules sometimes loading and sometimes not loading between compiles of my app. Once I added a hard reference to the module once it was loaded, that went away. The garbage collection could play differently between browsers which is why the modules get garbage collected in some browsers and not others. There could be a better way of saying that. It's not that the garbage collector behaves differently, but some browsers might have a larger overhead than others and so the GC may get rid of stuff differently. Mark On Thu, Jun 12, 2008 at 12:46 PM, mellomike07 [EMAIL PROTECTED] wrote: Thanks for the response Alex! How can I test if multiple request are being made? Because in my code I'm only calling the module to load once. But one thing I should mention is that the module is being loaded inside a creationComplete event handler of a view component. Could it be that this creationComplete event is being fired more than once? if so, how can I prevent this? Thanks!!! --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Most common issue has been multiple open requests for the same module From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of mellomike07 Sent: Thursday, June 12, 2008 8:36 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Modules not loading in some browsers! Why? Hello, My problem has to do with modules showing up in some browsers sometimes... and not showing up other times in other browsers. To fix the problem I have to refresh the page so the Flex application will reload. I always make sure the empty my cache before trying... There are some times when the modules load fine what could be the problem??
[flexcoders] BitmapAsset apparent erratic behaviour
I am loading the same bitmap asset using two methods, they should work the same but they don't. Method 1: Statically link to swc file that contains embedded images. Method 2: Dynamically load swf content that contains embedded images. The actual embedding code for both methods is as follows: [Embed(source=res/test.png)] [Bindable] public var test:Class; Here is the problematic code snippet: -- // event handler for when external swf finishes to load public function OnExternalSwfLoadComplete(event:Event):void { // InternalResource was the name of the class compiled in the swc var internalResource:Object = new InternalResource(); var externalResource:Object = event.target.content; // get the classes and instantiate var internalClass:Class = internalResource[test]; var externalClass:Class = externalResource[test]; var internalAsset:* = new internalClass(); var externalAsset:* = new externalClass(); // Here I test 2 things, what are the super class names, and // whether the instances are of type IFlexDisplayObject var internalIsDisp:Boolean = internalAsset is IFlexDisplayObject; var externalIsDisp:Boolean = externalAsset is IFlexDisplayObject; var internalSuperClass:String = getQualifiedSuperclassName (internalAsset); var externalSuperClass:String = getQualifiedSuperclassName (externalAsset ); -- The results are that both assets have type mx.core::BitmapAsset. However internalIsDisp is true while externalIsDisp is false!! Questions: 1) Shouldn't this be impossible according to as3 language? 2) What can I do to change the externally loaded resource to behave like the statically linked one. Currently if I use the externally loaded resource I crash in the flex framework in places such as setStyle for example where it is expecting a IFlexDisplayObject. 3) Am I going about the wrong way externally loading resources? To generate the external swf I am using mxmlc compiler on an .as file that contains a bunch of embedded images. Any help would be greatly appreciated.
RE: [flexcoders] Re: Modules not loading in some browsers! Why?
That's possible too. A request to load a module and get events from the module do not constitute a hard-reference to the module, making it eligible for GC. If you use ModuleLoader, it will keep a hard reference, otherwise, put an instance variable in the class that loads it (and don't forget to null it when you no longer need the module). creationComplete only fires once, but if you instantiate the view twice, that can cause problems. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Doberenz Sent: Thursday, June 12, 2008 11:04 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Modules not loading in some browsers! Why? It also may be that you're not making a hard link to the module and it's getting garbage collected before you're doing anything with it. I don't remember exactly the details, but I had an issue with modules sometimes loading and sometimes not loading between compiles of my app. Once I added a hard reference to the module once it was loaded, that went away. The garbage collection could play differently between browsers which is why the modules get garbage collected in some browsers and not others. There could be a better way of saying that. It's not that the garbage collector behaves differently, but some browsers might have a larger overhead than others and so the GC may get rid of stuff differently. Mark On Thu, Jun 12, 2008 at 12:46 PM, mellomike07 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Thanks for the response Alex! How can I test if multiple request are being made? Because in my code I'm only calling the module to load once. But one thing I should mention is that the module is being loaded inside a creationComplete event handler of a view component. Could it be that this creationComplete event is being fired more than once? if so, how can I prevent this? Thanks!!! --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Most common issue has been multiple open requests for the same module From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of mellomike07 Sent: Thursday, June 12, 2008 8:36 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Modules not loading in some browsers! Why? Hello, My problem has to do with modules showing up in some browsers sometimes... and not showing up other times in other browsers. To fix the problem I have to refresh the page so the Flex application will reload. I always make sure the empty my cache before trying... There are some times when the modules load fine what could be the problem??
RE: [flexcoders] Re: Working with Start Up companies...
I expect a percentage of your gross salary is pretty well the norm. In my experience, 10 to 20 percent of your gross is a nice bonus, but there are no hard and fast rules about this. !k _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of erik.lockel Sent: Thursday, June 12, 2008 10:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Working with Start Up companies... No one is in this position or no one wants to share/say ? :) --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, erik.lockel [EMAIL PROTECTED] wrote: When working with a start up, what % of stock/options would you expect to get for joining the company? The company is delivering flex/air based products and you are the only flex developer and the company size is 6 people. Perhaps a touchy subject but I've never gone down this route before and don't know what I'm getting into Thanks
[flexcoders] Re: Flex combining Struts, Spring, Hibernate
Take a look at the following article: The Flex, Spring, and BlazeDS full stack Part 1: Creating a Flex module http://www.adobe.com/devnet/flex/articles/fullstack_pt1.html
Re: [flexcoders] Working with Start Up companies...
I would say it depends on the overall package--there is no simple formula. If you believe in the product/company and are taking on the position at a reduced salary/benefits and have are receiving a stake in the company as compensation, then be sure the percentage you're getting is worth the reduced salary. If your salary is competitive then I don't see a whole lot of justification for stock/options beyond what you would get at any other company that offers options as a benefit. Sam - We're Hiring! Seeking passionate Flex, C#, or C++ (RTSP, H264) developer in the Washington D.C. Contact [EMAIL PROTECTED] On Wed, Jun 11, 2008 at 10:19 PM, erik.lockel [EMAIL PROTECTED] wrote: When working with a start up, what % of stock/options would you expect to get for joining the company? The company is delivering flex/air based products and you are the only flex developer and the company size is 6 people. Perhaps a touchy subject but I've never gone down this route before and don't know what I'm getting into Thanks
[flexcoders] Assigning ItemRenderers in AS vs MXML
Greetings - The following mxml works fine: mx:DataGridColumn id=peopleColumn headerText={AdvisorModel.getInstance().selectedQuestionList.getItemAt(0).Label} itemRenderer=Apps.Advisor.Shared.IR_People/ However this AS (part of a dynamic dataGrid creation) which attempts to do the same as the mxml above fails reporting that it annot coerce IR_People to mx.Core.IFactory: dgc = new DataGridColumn(); dgc.headerText = oColumnDef.headerText var ir:IR_People = new IR_People); dgc.itemRenderer = ir; (the above is part of a function the rest of which is working fine). Something special about creating itemRenderers in AS? cheers, ethan
RE: [flexcoders] Assigning ItemRenderers in AS vs MXML
Yes, you need to use ClassFactory. Search the archives for examples. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ethan Miller Sent: Thursday, June 12, 2008 2:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Assigning ItemRenderers in AS vs MXML Greetings - The following mxml works fine: mx:DataGridColumn id=peopleColumn headerText={AdvisorModel.getInstance().selectedQuestionList.getItemAt(0 ).Label} itemRenderer=Apps.Advisor.Shared.IR_People/ However this AS (part of a dynamic dataGrid creation) which attempts to do the same as the mxml above fails reporting that it annot coerce IR_People to mx.Core.IFactory: dgc = new DataGridColumn(); dgc.headerText = oColumnDef.headerText var ir:IR_People = new IR_People); dgc.itemRenderer = ir; (the above is part of a function the rest of which is working fine). Something special about creating itemRenderers in AS? cheers, ethan
RE: [flexcoders] LCDS gets Killed !!!
What do you mean by killed? Is your call to exec() throwing an Exception, and if so is it showing up in your server logs? Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chitra S.Pai Sent: Thursday, June 12, 2008 6:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] LCDS gets Killed !!! Hi, I am trying to run a Java code from LCDS and I am facing the following problem.. LCDS process gets killed... In the Java function I am trying to invoke an exe using runtime.exec(); The Java code is working fine when tested separately. Please... Help me.. Chitra
RE: [flexcoders] How to set up a LCDS Development enviroment?
This port depends on the way your servlet container is configured. Configuring this depends on the server you're using (Tomcat, WebSphere, etc.). Once you reconfigure your app server to bind to a different port for HTTP (and for HTTPS as well?), you'd need to update any hardcoded port values in your config files (although if you're using {server.port} in your URLs you'll be fine with no changes). Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markflex2007 Sent: Thursday, June 12, 2008 6:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to set up a LCDS Development enviroment? Hi, I just install LCDS 2.6 and I can see the test sample here. http://localhost:8400/lcds-samples/ I have question here: 1. How to change port 8400 to port 80. 2. How to set a development environment for LCDS applications. Thanks a lot Mark
[flexcoders] Setting Menu backgroundAlpha changes shade of bgColor not transparency
Hi All, Not sure what I am doing wrong. I am styling a menu and have set the following styles: backgroundColor: #00; backgroundAlpha: 0.5; Unfortunately, instead of having a semi transparent menu it is just a lighter shade of my bgColor... Are transparent menus supported, am I doing something wrong? Any help much appreciated. -Greg
[flexcoders] PopUpButton custom component with styles
Got a bit of an issue here I can't seem to resolve. I've got a PopUpButton that opens up a custom component (mxml VBox and mxml Canvas). These both use a styleName tag on them. Unfortunately, the PopUpButton doesn't inherit any styles into the popup that is created and I can't get the styles to display for the life of me. I've tried regenerating style cache, tried hacking the PopUpButton class itself to force the owner to be the parent application ... nothing will take. So, how can I force any and all custom styles to be applied to any component or control that is used as a popup for the PopUpButton? Seems pretty lame that the custom styles won't display, when they do in every other context. thanks, jon
[flexcoders] Escaping HTML markup in strings?
What's the best way to escape HTML markup in strings? My data tips are partially constructed from user input, and when that user input is something like foo, I would like them encoded to lt;foogt;. Thanks, -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com
[flexcoders] Using Flex as a Flash IDE
So, I've been doing some contract work lately that requires that I use Flash instead of Flex (the deliverables have to be FLAs that they can hand off the designers to re-skin, publish, etc.). Surprise, surprise, I'm finding the Flash IDE to be a little less than ideal. Does anyone have any recommendations (or any blog posts to point me at) that may describe a pretty functional setup where building/publishing is done and Flash but editing of AS3 is done in Flex? I wish Adobe would just do a clean integration between the two (you know, something like a preference in Flash to designate Flex as the IDE instead of its built-in IDE) -- it'd certainly sell more copies of the two! Troy.
Re: [flexcoders] Using Flex as a Flash IDE
Hey Troy, Using FlexBuilder 3 to debug edit Flash CS3 projects Check out this link http://hemadri.info/tutorials/FlashCS3FlexBuilder3Demo.htm -- Hemadri http://hemadri.info/ On Fri, Jun 13, 2008 at 1:07 AM, thirtyfivemph [EMAIL PROTECTED] wrote: So, I've been doing some contract work lately that requires that I use Flash instead of Flex (the deliverables have to be FLAs that they can hand off the designers to re-skin, publish, etc.). Surprise, surprise, I'm finding the Flash IDE to be a little less than ideal. Does anyone have any recommendations (or any blog posts to point me at) that may describe a pretty functional setup where building/publishing is done and Flash but editing of AS3 is done in Flex? I wish Adobe would just do a clean integration between the two (you know, something like a preference in Flash to designate Flex as the IDE instead of its built-in IDE) -- it'd certainly sell more copies of the two! Troy.
[flexcoders] How to support both PERCENT and ABSOLUTE values in one attribute?
Hi, A really convenient feature of flex is how you can provide either a PERCENT or ABSOLUTE measurement for WIDTH or HEIGHT of containers, and the compiler figures out which is which for you. I have a component called Content which is composed of two other components called LeftColumn and RightColumn. I would like for whoever is using the Content component to be able to supply a leftColumnWidth in either PERCENT or ABSOLUTE. The value would then get passed directly into the WIDTH attribute of the internal sub-component LeftColumn. Basically, I just need to pass-through a value from one component to another. The problem is what data type to make the leftColumnWidth property? A STRING does not accept the absolute values, and a NUMBER does not accept percentages. The framework itself uses a compiler directive called PERCENTPROXY to solve this issue before it even gets to the data type, but is that what I should do too just to pass a value from one component to another? Thanks for reading this, Baz
[flexcoders] Extra pixels on right side of TileList.
Hi, all; I have the following MXML code mx:HBox horizontalGap=0 width=100% backgroundColor=#00 mx:VBox verticalGap=4 id=calendarBox backgroundColor=#FF borderStyle=solid borderColor=#00 borderThickness=2 horizontalGap=0 mx:TabBar id=calendarTabs labelFunction=tabLabel width=100% itemClick=handleTabChange(event) / mx:TileList id=calendarDays backgroundColor=#FF00FF width=100% paddingBottom=0 paddingTop=0 borderStyle=none columnCount=7 rowCount={int(Math.ceil (calendarDays.dataProvider.length/7))} itemRenderer={_calendarDay} variableRowHeight=true/ /mx:VBox mx:VBox width=100% backgroundColor=#00 mx:Repeater id=weekRepeater mmv:WeekRenderer data={weekRepeater.currentItem} childObj={testCanvas} / /mx:Repeater /mx:VBox /mx:HBox For some reason, the TileList has about 5 pixels on the right hand side of the last column of item renderers. I've uploaded a picture of the result here http://www.magnoliamultimedia.com/flexissue/TileListCapture.jpg. Note that I gave everything a garish color so it was clear what container was where. If anyone has any ideas of how to get rid of those pixels, I'd be grateful. TIA; Amy
[flexcoders] Re: DuplicateMovieClip
I try to load 2nd again and create preloader for second as well and weard thing is that it takes same time with first ( tried a lot but it doesnt change). It needs to be some way to duplicate object. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: 2 loaders will each load the jpg, although the 2nd should come from the browser cache. You can make a copy of the bitmap and use that instead of the 2nd loader. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Deniz Davutoglu Sent: Thursday, June 12, 2008 2:26 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DuplicateMovieClip Hello Guys, I want to load some jpg with loader class and duplicate it (when I create 2 loaders and load data some how it loads data twice and this cause extra traffic and delay, I need something like duplicateMovieClip in AS3. Has any one has similar experiance or have a solution?
Re: [flexcoders] Re: OOP and Work for Hire
Alen, You are either being intentionally obtuse or being incredibly wittyI'm just not seeing the humor or the usefulness of your comments GB, Bubba From: b_alen Sent: Thursday, June 12, 2008 7:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: OOP and Work for Hire You can use it again definitely otherwise no one here would be allowed to do even a sorting algorithm ever again. Come on, some guys even went so far that every single digital line of code is client's. So even the mx:Button / I can't implement ever again, because it belongs to the customer. Algorithm, you can probably use it again. It depends how obvious or unique it is. In theory, algorithms / approaches to solving problems are not patentable. In reality such algorithms may be patentable or considered trade secrets. Depends, but usually there are changes for the better in each iteration. Even if you sit down to implement the algorithm a second time, I bet it will come out quite different than what you did the first tie.
Re: [flexcoders] Using Flex as a Flash IDE
Try FlashDevelop. Great open source IDE for both Flash and Flex. http://www.flashdevelop.org weird website, it's just a forum, no real website, look in the Releases forum for downloads. Other good commercial products for Flash development are: http://www.primalscript.com/ http://fdt.powerflasher.com/ I don't know if either supports AS3 though. HTH, Sam - We're Hiring! Seeking passionate Flex, C#, or C++ (RTSP, H264) developer in the Washington D.C. Contact [EMAIL PROTECTED] On Thu, Jun 12, 2008 at 3:37 PM, thirtyfivemph [EMAIL PROTECTED] wrote: So, I've been doing some contract work lately that requires that I use Flash instead of Flex (the deliverables have to be FLAs that they can hand off the designers to re-skin, publish, etc.). Surprise, surprise, I'm finding the Flash IDE to be a little less than ideal. Does anyone have any recommendations (or any blog posts to point me at) that may describe a pretty functional setup where building/publishing is done and Flash but editing of AS3 is done in Flex? I wish Adobe would just do a clean integration between the two (you know, something like a preference in Flash to designate Flex as the IDE instead of its built-in IDE) -- it'd certainly sell more copies of the two! Troy.
RE: [flexcoders] Difference between Flash/Flex in AS 3
I'll try reading his mind. Did you simply paste your code into an mx:Script block? You don't want to put loose statements like 'for' loops there. A Flex script block should have declarations of vars and functions... things that go into the body of a class, because in Flex every MXML document actually defines a class. Your 'for' loop belongs inside some method, such as a handler for the 'initialize' event. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Andrews Sent: Thursday, June 12, 2008 1:45 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Difference between Flash/Flex in AS 3 - Original Message - From: Deniz Davutoglu [EMAIL PROTECTED] mailto:denizdavutoglu%40bannerborsasi.com To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Thursday, June 12, 2008 9:44 AM Subject: [flexcoders] Difference between Flash/Flex in AS 3 Hello Guys, I wrote some code in flash AS3 (that one that I sended yesterday ) I copied it to flex and even sample codes like for (var i:uint; trow error. do you have any idea why it is happening? Not unless we are mind readers. Show us an example. Paul
[flexcoders] SECURITY ERROR ACCESING URL calling a web service
Hello! The situation is as follows: ** Project in Flex Builder 3 -- Compiled and uploaded to http://www.domain.com/index.html (INDEX.SWF) ** Web Service created in ASP.NET that works perfectly if you test it in Web browsers -- Compiled and uploaded to http://subdomain.domain.com/webservice.asmx (and its methods) - crossdomain.xml (Ive tried everything, finally let it open): ? xml version = 1.0 cross-domain-policy allow-access-from domain=* / / allow / Cross Does not wor!! And I have sought information here and on the Internet in general but can not find a solution!! If anyone can help me. Thanks in advance, Luis
[flexcoders] Importing lots of symbols from swf for TileList
Hi All, I have a swf file that has 150+ symbols defined in it that i need to use in various TileLists in flex 3, so far all of the intro samples suggest that i use something like the following: [Embed(source='../swf/my.swf#mysymbol')] private var icon0:Class; Obviously there has to be a better way to import them all without declaring each separate symbol as a var in my mxml file. All of the symbols follow a naming convention so if someone could show me how i can embed the swf file once and then how i could build the symbols from that swf into an array, I should then be able to apply those arrays as dataproviders to my tileLists. Thanks in advance, Nik
[flexcoders] how to know if the hsider value change or not
Hi, I try to use follow code to catch if the hsilider value change but it doen't work .Please help me to know how to fix it.Thanks. --Mark mx:HSlider width=600 id=h1 minimum=0 maximum=120 value={_model._te} enabled=false x=0 y=0/ public function init():void{ h1.addEventListener(SliderEvent.CHANGE,updateDB); } public function updateDB():void{ Alert.show(change); }
RE: [flexcoders] SECURITY ERROR ACCESING URL calling a web service
From an earlier post: The latest version of the Flash Player, 9.0.124.0, contains security changes that will break your WebService calls. There is a lot of info available about this, but here is a quick fix. NOTE: This example is insecure. Consult with a security expert, or become one yourself, before working with a production environment. Add this to your crossdomain.xml file: allow-http-request-headers-from domain=* headers=* / Again, the wildcards are not good for a production environment. But if you just need to get coding again, this will work. An additional FYI: this change happened earlier than the current version, don't know exactly when, but you will also need this (or a more secure version) in your crossdomain.xml file: site-control permitted-cross-domain-policies=master-only/ I do not know really what it means, but it lets me work. If you need to understand this stuff, the information is available. Here is a summary link: http://www.adobe.com/devnet/flashplayer/articles/flash_player9_security_ update.html http://www.adobe.com/devnet/flashplayer/articles/flash_player9_security _update.html And here is a link to the big whitepaper. It was way over my head. http://www.adobe.com/devnet/flashplayer/articles/flash_player_9_security .pdf http://www.adobe.com/devnet/flashplayer/articles/flash_player_9_securit y.pdf I wish we could just execute the jerks that make this crap necessary. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of luis_roman_am Sent: Thursday, June 12, 2008 4:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] SECURITY ERROR ACCESING URL calling a web service Hello! The situation is as follows: ** Project in Flex Builder 3 -- Compiled and uploaded to http://www.domain.com/index.html http://www.domain.com/index.html (INDEX.SWF) ** Web Service created in ASP.NET that works perfectly if you test it in Web browsers -- Compiled and uploaded to http://subdomain.domain.com/webservice.asmx http://subdomain.domain.com/webservice.asmx (and its methods) - crossdomain.xml (Ive tried everything, finally let it open): ? xml version = 1.0 cross-domain-policy allow-access-from domain=* / / allow / Cross Does not wor!! And I have sought information here and on the Internet in general but can not find a solution!! If anyone can help me. Thanks in advance, Luis
[flexcoders] Re: Object name from a mouse click
The reason I am trying to access another sibling is because that specific sibling cares some data that is to be used by other children. I can move it to parent's level of course but it was convinient to get right from the sibling. --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: You can call getChildAt(i) on a container to get its ith child (where the first child is i = 0, not i = 1), regardless of whether the children were declared at compile time or added at run time. So one way to access the first child in the scripts of any child is as parent.getChildAt (0). It's unusual for one of an arbitrary number of children to need to access a single sibling. Are you sure you don't want to be doing something like dispatching an event from one child that all the children listen for? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Wednesday, June 11, 2008 6:41 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Object name from a mouse click Ok, let's say I have a container (VBox) that adds some children to itself at the run-time. These children are: child1, child2, child3. How can I refer to child1 from the inside of child3? Is there something like child3.parent.child1 avaialble? --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Gordon Smith gosmith@ wrote: I want to know objDG Sorry, that doesn't make sense. objDG isn't the name of the DataGrid, it's the name of a variable that points to a DataGrid instance. You could lots of variables pointing to the same DataGrid instance. Instances don't keep track of the names of variables that point to them. Can you clarify what you're really trying to do from a user's point of view rather than from a programming point of view? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com ] On Behalf Of markgoldin_2000 Sent: Friday, June 06, 2008 11:52 AM To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] Re: Object name from a mouse click objDG = new myDG(); I want to know objDG. I have a number of GDs based on the same class. Based on objDG I need to run different parts of my code. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Gordon Smith gosmith@ wrote: What do you mean by the actual object name? The 'id' that you specified in MXML? And what object are you talking about? A component inside your item renderer? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com ] On Behalf Of markgoldin_2000 Sent: Friday, June 06, 2008 7:12 AM To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] Object name from a mouse click I am overriding mouseDoubleClickHandler event for a custom dataGrid. How can I get the actual object name (not a class name) when I dblclick? Thanks
[flexcoders] Re: what RIA-to-PDF conversion means in LCDS?
Be sure to click the Generate PDF button for a demo. http://www.bytearray.org/?p=101 -Shannon --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 11 Jun 2008, markflex2007 wrote: I want to make sure if it mean it can convert the Flex screen to PDF file? Do you know s demo for this. Flex can take the screen shot itself, but you'll have to send the bitmap data back to a server for processing into PDF. -- Tom Chiverton 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. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. 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] Re: DuplicateMovieClip
You can make a copy of the bitmap. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Deniz Davutoglu Sent: Thursday, June 12, 2008 12:57 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DuplicateMovieClip I try to load 2nd again and create preloader for second as well and weard thing is that it takes same time with first ( tried a lot but it doesnt change). It needs to be some way to duplicate object. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: 2 loaders will each load the jpg, although the 2nd should come from the browser cache. You can make a copy of the bitmap and use that instead of the 2nd loader. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Deniz Davutoglu Sent: Thursday, June 12, 2008 2:26 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] DuplicateMovieClip Hello Guys, I want to load some jpg with loader class and duplicate it (when I create 2 loaders and load data some how it loads data twice and this cause extra traffic and delay, I need something like duplicateMovieClip in AS3. Has any one has similar experiance or have a solution?
RE: [flexcoders] Importing lots of symbols from swf for TileList
If the SWF symbols are published for player 9, then I think you can embed the entire swf. If it is Flash 8 content or earlier, you'll have to embed individually From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nik Derewianka Sent: Thursday, June 12, 2008 1:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Importing lots of symbols from swf for TileList Hi All, I have a swf file that has 150+ symbols defined in it that i need to use in various TileLists in flex 3, so far all of the intro samples suggest that i use something like the following: [Embed(source='../swf/my.swf#mysymbol')] private var icon0:Class; Obviously there has to be a better way to import them all without declaring each separate symbol as a var in my mxml file. All of the symbols follow a naming convention so if someone could show me how i can embed the swf file once and then how i could build the symbols from that swf into an array, I should then be able to apply those arrays as dataproviders to my tileLists. Thanks in advance, Nik
RE: [flexcoders] Extra pixels on right side of TileList.
How are you trying to get the size to be an integer number of tiles? You might need paddingRight=0 on VBox or HBox? If you break in SystemManager.mouseDownHandler, the event.target should be the container or control that owns the pixels you clicked on. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Thursday, June 12, 2008 12:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Extra pixels on right side of TileList. Hi, all; I have the following MXML code mx:HBox horizontalGap=0 width=100% backgroundColor=#00 mx:VBox verticalGap=4 id=calendarBox backgroundColor=#FF borderStyle=solid borderColor=#00 borderThickness=2 horizontalGap=0 mx:TabBar id=calendarTabs labelFunction=tabLabel width=100% itemClick=handleTabChange(event) / mx:TileList id=calendarDays backgroundColor=#FF00FF width=100% paddingBottom=0 paddingTop=0 borderStyle=none columnCount=7 rowCount={int(Math.ceil (calendarDays.dataProvider.length/7))} itemRenderer={_calendarDay} variableRowHeight=true/ /mx:VBox mx:VBox width=100% backgroundColor=#00 mx:Repeater id=weekRepeater mmv:WeekRenderer data={weekRepeater.currentItem} childObj={testCanvas} / /mx:Repeater /mx:VBox /mx:HBox For some reason, the TileList has about 5 pixels on the right hand side of the last column of item renderers. I've uploaded a picture of the result here http://www.magnoliamultimedia.com/flexissue/TileListCapture.jpg. http://www.magnoliamultimedia.com/flexissue/TileListCapture.jpg. Note that I gave everything a garish color so it was clear what container was where. If anyone has any ideas of how to get rid of those pixels, I'd be grateful. TIA; Amy
RE: [flexcoders] PopUpButton custom component with styles
PopUpStyleName? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jon Bradley Sent: Thursday, June 12, 2008 12:20 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] PopUpButton custom component with styles Got a bit of an issue here I can't seem to resolve. I've got a PopUpButton that opens up a custom component (mxml VBox and mxml Canvas). These both use a styleName tag on them. Unfortunately, the PopUpButton doesn't inherit any styles into the popup that is created and I can't get the styles to display for the life of me. I've tried regenerating style cache, tried hacking the PopUpButton class itself to force the owner to be the parent application ... nothing will take. So, how can I force any and all custom styles to be applied to any component or control that is used as a popup for the PopUpButton? Seems pretty lame that the custom styles won't display, when they do in every other context. thanks, jon
Re: [flexcoders] Re: Datatips not working in datagrid??
Dammit I knew it! Cheers mate :) *kicks self* -Josh On Fri, Jun 13, 2008 at 12:14 AM, Tim Hoff [EMAIL PROTECTED] wrote: Hey Josh, mx:DataGridColumn headerText=Client Name dataField=clientName dataTipField=clientName showDataTips=true/ -TH --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: Hey guys, It seems my dataTips aren't working for some reason :S mx:DataGrid id=dailyPaymentsGrid top=30 left=0 right=0 bottom=0 mx:columns mx:DataGridColumn headerText=Payment Date dataField=datePaid labelFunction={ dateLabeller } width=95/ mx:DataGridColumn headerText=Client Name dataField=clientName dataTipField=clientName/ mx:DataGridColumn headerText=Amount dataField=amount labelFunction={currencyLabeller }/ mx:DataGridColumn headerText=Method dataField=paymentMethod width=60 / mx:DataGridColumn headerText=Identified dataField=breakDownDate labelFunction={ dateLabeller } width=95/ mx:DataGridColumn headerText=By dataField=user dataTipField=user/ mx:DataGridColumn headerText=Applied dataField=applied labelFunction={dateLabeller } width=95/ mx:DataGridColumn headerText=Allocated dataField=amountAllocated labelFunction={ currencyLabeller }/ mx:DataGridColumn headerText=Un-allocated dataField=amountUnallocated labelFunction={ currencyLabeller }/ mx:DataGridColumn headerText=KPI dataField=kpi labelFunction={numberLabeller } width=40/ mx:DataGridColumn headerText=Reason dataField=kpiReason/ mx:DataGridColumn headerText=Invoices dataField=invoices dataTipField= invoices/ /mx:columns /mx:DataGrid My values turn up fine, but I'm not getting tooltips for values... Is there something obvious I've forgotten to do? Cheers, -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] Re: My Web Service with soap headers code no longer work with Flex 3
I was under the impression Auth headers were allowed again? http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403030sliceId=1 But, being a SOAP header I think it's part of the POST request and the flash HTTP header blocking stuff wouldn't apply anyway? -Josh On Fri, Jun 13, 2008 at 2:56 AM, Tracy Spratt [EMAIL PROTECTED] wrote: I see that your header is an authorization header. That is not good news for you, and your problem cannot be fixed by the crossdomain file. You can no longer set Authorization headers. Below is copied from an earlier post to flexcoders. I think you will find more info if yo search. Tracy Use the proxy service that ships in BlazeDS and LCDS for your Http requests. There are a variety of browser hacks related to Http headers (which in some cases also impact SOAP web services), and the player is likely to get more restrictive in this area rather than less. This generally has more to do with lax or faulty APIs in routers, etc., but we as Flash users end up suffering. To side-step the header restrictions, as well as the limited set of Http methods supported by the Player and browser plugin APIs, if you use HTTPService or WebService with useProxy=true, and route those requests through BlazeDS or LCDS, your desired request is wrapped and sent in a compliant fashion from the Player to the proxy service, and it is then unwrapped and the actual proxied request can be made successfully. This service also handles getting Http error responses (say, in the 500 status code range) back into the Player usefully. Best, Seth From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of gli1_2000 Sent: Thursday, February 07, 2008 9:14 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Re: HTTPService or URLRequest Request header Question Then what is a possible alternative to get around this? Anyone has suggestions? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com mailto: flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com , João Fernandes [EMAIL PROTECTED] wrote: this is true, you can't use authorization token in headers anymore within Flash Player. This is big step backwards in my opinion -- João Fernandes -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Tracy Spratt *Sent:* Thursday, June 12, 2008 12:15 PM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] Re: My Web Service with soap headers code no longer work with Flex 3 There were some security changes in the Flash Player that can affect webservice access. Search for my post: FYI: WebService, FP version 9.0.124.0, Security error accessing URL crossdomain.xml fix Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Josh McDonald *Sent:* Thursday, June 12, 2008 9:14 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: My Web Service with soap headers code no longer work with Flex 3 I don't know much about funky soap headers, but what kind of error are you getting? Or is it just dropping the headers? On Thu, Jun 12, 2008 at 11:02 PM, Mark [EMAIL PROTECTED] wrote: Any ideas on this? I'm having a real hard time here. Mark --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Mark [EMAIL PROTECTED] wrote: In Flex 2 this works like a charm but not in 3, I can't seem to find any info on the changes in the Help. Can someone lend a hand? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=onCreationComplete() mx:Script ![CDATA[ // import mx.rpc.soap.SOAPHeader; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; import mx.utils.ObjectUtil; // /** *** BEGING WEB SERVICE CALL WITH ADDING HEADERS *** */ private function onCreationComplete():void { trace(GETTING); var qName:QName = new QName (http://radar.net/RadarXML.asmx,AuthHeader;); var headerInfo:XML = AuthHeader xmlns=http://tempuri.org/; UserNameadmin/UserName Passwordadmin/Password /AuthHeader; var header:SOAPHeader = new SOAPHeader (qName, headerInfo); ws.addHeader(header); sendData(); } // private function sendData(): void { trace(SENDING); ws.PullXML.send(); } // private function onFault(event:FaultEvent): void { trace( FAULT\n + ObjectUtil.toString( event.fault )); } // private function onResult(event:ResultEvent): void { trace(RESULT\n + event.result); } // ]] /mx:Script !-- web service -- mx:WebService id=ws wsdl=http://radar.net/RadarXML.asmx?WSDL; showBusyCursor=true mx:operation name=PullXML result=onResult(event) fault=onFault(event)/
Re: [flexcoders] Re: Socket HTTP/1.1 connection not closed even after Response is sent
Let us know how it works. It's really a painful process really, there's got to be a better way to secure the player against attacks without requiring funky custom sockets needing being opened :( -Josh On Fri, Jun 13, 2008 at 3:08 AM, e_baggg [EMAIL PROTECTED] wrote: After thoroughly reading the Adobe socket policy docs, it looks like I'm going to have to open up port 843 and serve the new crossdomain.xml that way. Even though I have it on my root and call Security.loadPolicy() on it (and I see in the logger that it accepts it), it still calls 843, hangs, (b/c it doesn't exist there), than the Flash player throws a security error. Rather frustrating. So it goes. I'm on the debug FP version: WIN 9,0,124,0 This crossdomain below is on my root webserver and my app is on port 9080. Even if I move my html and swf to the main root (port 80)..it still fails. ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.adobe.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy site-control permitted-cross-domain-policies=master-only/ allow-access-from domain=* to-ports=8080-9080/ /cross-domain-policy --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: You can set any headers you like so long as they're specified in your crossdomain.xml, and they're not on the banned list. Details: http://www.adobe.com/devnet/flashplayer/articles/flash_player9_security_update.html#policy_file Baninanted headers: http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403030sliceId=1 AFAIK jsessionid is a cookie and the browser should be putting it in to any request made from Flex via HttpService. You may have the one Flash Player version (apparently 9.0.115.0) that blocks Authorization header info. -Josh On Thu, Jun 12, 2008 at 2:20 PM, e_baggg [EMAIL PROTECTED] wrote: I am doing hand-rolled GETs because Flex (HttpService) cannot pass headers (ie jessionid). Thus, I need to open my own flash.net.Socket and write/read the request/response manually. It works great with Digest authorization except for this policy issue. I suppose I can get around this making the login page a JSP and make the redirect go to the swf html page...and from there use HttpServicebut still I hate hacks. Such a shame this policy stuff is such a nightmare. I followed the Adobe docs exactly and I still have issues. I'll work on this more and report back anything I find. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Josh McDonald dznuts@ wrote: Also, maybe we should look at the root of the problem - what is it you're actually trying to do via sockets and hand-rolled GETs that you can't do with httpService? -Josh On Thu, Jun 12, 2008 at 9:51 AM, Josh McDonald josh@ wrote: You'll have to use something like Charles to listen to what Flash player is doing behind your back for the policy file to be sure, but if you try and open a socket to somedomain.com:9080, I believe Flash is going to look for somedomain.com:80/crossdomain.xml - Flash doesn't know that the socket you're connecting to is a http server, so it only knows to look in the default location, and it's not going to get your crossdomain file if it's on the server listening on 9080. Like I said, check with Charles to be sure, but it would make sense to me at least. -Josh On Thu, Jun 12, 2008 at 8:35 AM, e_baggg e_baggg@ wrote: I spoke too soon. The 3 second delay still exists and when I set up the Swf policy file debugger for Windows...the Flash player outputs this. My concern is that first warning. According to the docs, calling Security.loadPolicyFile() to the domain and port (which line 2 says happened ok) should fix everything. I just updated my Windows XP, which I read somewhere upgrades the flash player. I still have the debug version though. This is all a mess to me. OK: Root-level SWF loaded: http://my.domain.com:9080/xms-app/xms.swf OK: Policy file accepted: http://my.domain.com:9080/crossdomain.xml Warning: Timeout on xmlsocket://my.domain.com:843 (at 3 seconds) while waiting for socket policy file. This should not cause any problems, but see http://www.adobe.com/go/strict_policy_files for an explanation. Warning: [strict] Requesting socket policy file from xmlsocket://my.domain.com:9080 due to socket connection request from SWF at http://my.domain.com:9080/xms-app/xms.swf. See http://www.adobe.com/go/strict_policy_files if this causes problems. Warning: Timeout on xmlsocket://my.domain.com:9080 (at 3 seconds) while waiting for socket policy file. This should not cause any problems, but see
Re: [flexcoders] Understanding Custom Event Creation
Got it...thx Mike. Forgive the subject-line creep but now I need to add a listener in a parent of the class dispatching the event. The subcomponent is derieved from UIComponent...shouldn't it's events bubble by default? Or perhaps my listener syntax is off: addEventListener(isGreaterChanged, isGreaterChangedHandler) Am getting no errors just no hits at the parent's event handler method. thx again On Thu, Jun 12, 2008 at 9:17 AM, Michael Schmalle [EMAIL PROTECTED] wrote: Hi package my.event.package { public class MyEvent extends Event { public static const IS_GREATER_CHANGED:String = isGreaterChanged; public var isGreater:Boolean; public function MyEvent(type:String, isGreater:Boolean) { super(type); this.isGreater = isGreater; } } } // app as file [Event(type=isGreaterChanged, type=my.event.package.MyEvent)] ... var e:MyEvent = new MyEvent(MyEvent.IS_GREATER_CHANGED, true); dispatchEvent(e); ... event handler private function isGreaterHandler(event:MyEvent):void { trace(event.isGreater); } Mike -- Forwarded message -- From: justSteve [EMAIL PROTECTED] Date: Thu, Jun 12, 2008 at 9:51 AM Subject: [flexcoders] Understanding Custom Event Creation To: flexcoders flexcoders@yahoogroups.com The LiveDocs page that is supposed to explain how to create a custom event is: http://livedocs.adobe.com/flex/3/html/ascomponents_7.html#170959 I get it that what I choose for the name parameter is what listeners will have to register against. I don't get the 'type' param. Am I needing to make that package of the current class? [Event(name=itsGreaterThanZero, type=com.foo.bar.whatHere)] Also, the sample doesn't make clear how to pass custom (runtime) data. I'm working with code that needs to dispatch a custom event when a given value is found to be 0. The method in question is in a class that extends UIComponent. Any help much appreciated. --steve... -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] Need array example
I need an example of copying fields in an array to another array, but I don't want the fields to be pass-by-reference. I'm trying to create a holdingarray for input in a datagrid. This is code I have used. holdData[6] = quickEntryGrid.dataProvider[i].timerecordTrcPayRateAmount; holdData[7] = quickEntryGrid.dataProvider[i].timerecordTrcSickLeaveHours; holdData[8] = quickEntryGrid.dataProvider[i].timerecordTrcVacationHours; holdData[9] = quickEntryGrid.dataProvider[i].timerecordTrcRegularHours; holdData[10] = quickEntryGrid.dataProvider[i].timerecordTrcStraightOvertmHours; holdData[11] = quickEntryGrid.dataProvider[i].timerecordTrcPremiumOvertmHours; holdData[12] = quickEntryGrid.dataProvider[i].timerecordTrcOtherHours; holdData[13] = quickEntryGrid.dataProvider[i].timerecordTrcOtherHoursCode; holdRowData[i] = holdData; The problem is that whenever a user inputs data into the quickEntryGrid, it is reflected in the holdRowData, which I need to contain the original values before the user enters any data. If I can't use a holding array, do I have other options? Dee A. Chilcoat Enterprise Web Application Development University of California San Diego [EMAIL PROTECTED] (858) 534-0719
Re: [flexcoders] how do you guys manage your CFC's?
I do it like FlexBuilderProject--Src--CFC--(split into more folders)--mycom.cfc - Original Message From: Derrick Anderson [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, June 12, 2008 10:40:02 AM Subject: [flexcoders] how do you guys manage your CFC's? hi, currently, i have a coldfusion backend and I put my CFC's in the bin folder of the project as it seems natural and I can call them with their path from BIN and not have to setup a CF mapping to those CFC's. however, everytime I edit a CFC- FB prompts me because it thinks it is a derived file. i think i should put the CFC's somewhere else, but I'd like to know how you guys that use CF handle it. do you create a separate eclipse project for the CFC's? where do you store them by default? thanks, d.
Re: [flexcoders] Understanding Custom Event Creation
Events default to not bubbling. -Josh On Fri, Jun 13, 2008 at 8:41 AM, justSteve [EMAIL PROTECTED] wrote: Got it...thx Mike. Forgive the subject-line creep but now I need to add a listener in a parent of the class dispatching the event. The subcomponent is derieved from UIComponent...shouldn't it's events bubble by default? Or perhaps my listener syntax is off: addEventListener(isGreaterChanged, isGreaterChangedHandler) Am getting no errors just no hits at the parent's event handler method. thx again On Thu, Jun 12, 2008 at 9:17 AM, Michael Schmalle [EMAIL PROTECTED] teoti.graphix%40gmail.com wrote: Hi package my.event.package { public class MyEvent extends Event { public static const IS_GREATER_CHANGED:String = isGreaterChanged; public var isGreater:Boolean; public function MyEvent(type:String, isGreater:Boolean) { super(type); this.isGreater = isGreater; } } } // app as file [Event(type=isGreaterChanged, type=my.event.package.MyEvent)] ... var e:MyEvent = new MyEvent(MyEvent.IS_GREATER_CHANGED, true); dispatchEvent(e); ... event handler private function isGreaterHandler(event:MyEvent):void { trace(event.isGreater); } Mike -- Forwarded message -- From: justSteve [EMAIL PROTECTED] steve%40stevelearnsflex.com Date: Thu, Jun 12, 2008 at 9:51 AM Subject: [flexcoders] Understanding Custom Event Creation To: flexcoders flexcoders@yahoogroups.comflexcoders%40yahoogroups.com The LiveDocs page that is supposed to explain how to create a custom event is: http://livedocs.adobe.com/flex/3/html/ascomponents_7.html#170959 I get it that what I choose for the name parameter is what listeners will have to register against. I don't get the 'type' param. Am I needing to make that package of the current class? [Event(name=itsGreaterThanZero, type=com.foo.bar.whatHere)] Also, the sample doesn't make clear how to pass custom (runtime) data. I'm working with code that needs to dispatch a custom event when a given value is found to be 0. The method in question is in a class that extends UIComponent. Any help much appreciated. --steve... -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'. -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] Working with Flex3/Eclipse/Maven2 projects.
All, If i am developing/building Flex 3 code by using Eclipse(Europa), then can i build everything with Maven 2 on command line as is? How? This is assuming that I have installed the Flex 3 eclipse plug-in. Thanks. A.
[flexcoders] Re: Extra pixels on right side of TileList.
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: How are you trying to get the size to be an integer number of tiles? I'm letting Flex handle that, just as I would if I were working in HTML and using a table. It's sizing the TileList, and my expectation was that it would size it snugly around the content. You might need paddingRight=0 on VBox or HBox? I tried that already. The padding is inside the TileList. The TileList is the only thing that is that purple color. If I add padding to the vbox, you can see that there are empty pixels to the right of the TileList AND the TabBar. If you break in SystemManager.mouseDownHandler, the event.target should be the container or control that owns the pixels you clicked on. I added a click handler on the TileList as a shortcut to this. The target is the ListBaseContentHolder with the parent id = calendarDays.
Re: [flexcoders] How would i layout different objects in grid form
Hi Tom Thanks for reply. I am kind of new to FLEX world. Can we put already existed videos in Grid And if we can the grid has to be dynamic depending upon the number of videos in the container. For example for 1 1x1 , for 2-4 it has to be 2x2, for 5-9 it has to be 3x3. Can you help in giving me information about how would i achieve this. Thanks a lot Anuj On Wed, Jun 11, 2008 at 6:34 AM, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 11 Jun 2008, anuj181 wrote: user selects that button then depending on the number of objects, the grid layout will be generated in HBOX (to arrange those objects). For Sounds like you could put your current HBox along with a Grid into a ViewStack, binding them both to the same data provider. Then change viewStack.selectedIndex from the click event of your radio button. -- Tom Chiverton 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. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] How to support both PERCENT and ABSOLUTE values in one attribute?
I wrote up a description of the PercentProxy metadata tag a long time ago. It was for Flex 2, but I think it still applies to Flex 3 as well. Also, see the docs. http://nondocs.blogspot.com/2007/04/metadatapercentproxy.html - Daniel Freiman On Thu, Jun 12, 2008 at 3:49 PM, Baz [EMAIL PROTECTED] wrote: Hi, A really convenient feature of flex is how you can provide either a PERCENT or ABSOLUTE measurement for WIDTH or HEIGHT of containers, and the compiler figures out which is which for you. I have a component called Content which is composed of two other components called LeftColumn and RightColumn. I would like for whoever is using the Content component to be able to supply a leftColumnWidth in either PERCENT or ABSOLUTE. The value would then get passed directly into the WIDTH attribute of the internal sub-component LeftColumn. Basically, I just need to pass-through a value from one component to another. The problem is what data type to make the leftColumnWidth property? A STRING does not accept the absolute values, and a NUMBER does not accept percentages. The framework itself uses a compiler directive called PERCENTPROXY to solve this issue before it even gets to the data type, but is that what I should do too just to pass a value from one component to another? Thanks for reading this, Baz
Re: [flexcoders] Understanding Custom Event Creation
Yeah you need; super(type, true); Mike On Thu, Jun 12, 2008 at 7:00 PM, Josh McDonald [EMAIL PROTECTED] wrote: Events default to not bubbling. -Josh On Fri, Jun 13, 2008 at 8:41 AM, justSteve [EMAIL PROTECTED] wrote: Got it...thx Mike. Forgive the subject-line creep but now I need to add a listener in a parent of the class dispatching the event. The subcomponent is derieved from UIComponent...shouldn't it's events bubble by default? Or perhaps my listener syntax is off: addEventListener(isGreaterChanged, isGreaterChangedHandler) Am getting no errors just no hits at the parent's event handler method. thx again On Thu, Jun 12, 2008 at 9:17 AM, Michael Schmalle [EMAIL PROTECTED] teoti.graphix%40gmail.com wrote: Hi package my.event.package { public class MyEvent extends Event { public static const IS_GREATER_CHANGED:String = isGreaterChanged; public var isGreater:Boolean; public function MyEvent(type:String, isGreater:Boolean) { super(type); this.isGreater = isGreater; } } } // app as file [Event(type=isGreaterChanged, type=my.event.package.MyEvent)] ... var e:MyEvent = new MyEvent(MyEvent.IS_GREATER_CHANGED, true); dispatchEvent(e); ... event handler private function isGreaterHandler(event:MyEvent):void { trace(event.isGreater); } Mike -- Forwarded message -- From: justSteve [EMAIL PROTECTED]steve%40stevelearnsflex.com Date: Thu, Jun 12, 2008 at 9:51 AM Subject: [flexcoders] Understanding Custom Event Creation To: flexcoders flexcoders@yahoogroups.comflexcoders%40yahoogroups.com The LiveDocs page that is supposed to explain how to create a custom event is: http://livedocs.adobe.com/flex/3/html/ascomponents_7.html#170959 I get it that what I choose for the name parameter is what listeners will have to register against. I don't get the 'type' param. Am I needing to make that package of the current class? [Event(name=itsGreaterThanZero, type=com.foo.bar.whatHere)] Also, the sample doesn't make clear how to pass custom (runtime) data. I'm working with code that needs to dispatch a custom event when a given value is found to be 0. The method in question is in a class that extends UIComponent. Any help much appreciated. --steve... -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'. -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] Understanding Custom Event Creation
Another tip is to listen to system-wide bubbling events on systemManager rather than Applicaion.application, as anything in a popup is not actually parented by your Application and you'll miss the events. That one bit me hard before I learned :) -Josh On Fri, Jun 13, 2008 at 9:49 AM, Michael Schmalle [EMAIL PROTECTED] wrote: Yeah you need; super(type, true); Mike On Thu, Jun 12, 2008 at 7:00 PM, Josh McDonald [EMAIL PROTECTED] wrote: Events default to not bubbling. -Josh On Fri, Jun 13, 2008 at 8:41 AM, justSteve [EMAIL PROTECTED] wrote: Got it...thx Mike. Forgive the subject-line creep but now I need to add a listener in a parent of the class dispatching the event. The subcomponent is derieved from UIComponent...shouldn't it's events bubble by default? Or perhaps my listener syntax is off: addEventListener(isGreaterChanged, isGreaterChangedHandler) Am getting no errors just no hits at the parent's event handler method. thx again On Thu, Jun 12, 2008 at 9:17 AM, Michael Schmalle [EMAIL PROTECTED] teoti.graphix%40gmail.com wrote: Hi package my.event.package { public class MyEvent extends Event { public static const IS_GREATER_CHANGED:String = isGreaterChanged; public var isGreater:Boolean; public function MyEvent(type:String, isGreater:Boolean) { super(type); this.isGreater = isGreater; } } } // app as file [Event(type=isGreaterChanged, type=my.event.package.MyEvent)] ... var e:MyEvent = new MyEvent(MyEvent.IS_GREATER_CHANGED, true); dispatchEvent(e); ... event handler private function isGreaterHandler(event:MyEvent):void { trace(event.isGreater); } Mike -- Forwarded message -- From: justSteve [EMAIL PROTECTED]steve%40stevelearnsflex.com Date: Thu, Jun 12, 2008 at 9:51 AM Subject: [flexcoders] Understanding Custom Event Creation To: flexcoders flexcoders@yahoogroups.comflexcoders%40yahoogroups.com The LiveDocs page that is supposed to explain how to create a custom event is: http://livedocs.adobe.com/flex/3/html/ascomponents_7.html#170959 I get it that what I choose for the name parameter is what listeners will have to register against. I don't get the 'type' param. Am I needing to make that package of the current class? [Event(name=itsGreaterThanZero, type=com.foo.bar.whatHere)] Also, the sample doesn't make clear how to pass custom (runtime) data. I'm working with code that needs to dispatch a custom event when a given value is found to be 0. The method in question is in a class that extends UIComponent. Any help much appreciated. --steve... -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'. -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'. -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] Flex Credit Card Processing
I wouldn't use Flex to process credit card - I would use your backend server like ColdFusion or PHP. You send the CC info to the server over SSL/Encrypted and then the server will post to the processor. I use authorize.net and I have never had a problem. There are CF tags out there for doing it, and all you do is fill in the blanks. Some of the things you pass are the login and password, hence you don't want that stored in the Flex app that can be decompiled. When it comes to peoples money, you need to be as careful as possible. There are other solutions, where you can pop open up a webpage and pass info to it (like your account # and the amount to charge, etc) and the end user is filling out the CC info on a different site - then you get an email that it happened and you ship the product. However, this makes your company feel small and you lose orders because people get scared off. Anyway, use the server technology to do the processing, and never leave anything dangerous in your Flex app. Just my 2 cents. Thanks -Pat www.datanotion.com On Thu, Jun 12, 2008 at 12:00 PM, tspyro2002 [EMAIL PROTECTED] wrote: Hi, Can anyone point me in the direction on how to process Credit Card payments with Flex, Im I right in thinking that it will use an API, HTTPS and a Merchant Account with a bank? Would it be possible to create a custom script to post variables to a WorldPay or similar vendor. Cheers, David
Re: [flexcoders] Re: Socket HTTP/1.1 connection not closed even after Response is sent
Is it possible to config the apache server like this? Let it return the policy-file if the received-request is not http protocol? So we can load the socket policy via port 80 Security.loadPolicyFile(*xmlsocket*://foo.com:80); Josh McDonald wrote: Let us know how it works. It's really a painful process really, there's got to be a better way to secure the player against attacks without requiring funky custom sockets needing being opened :( -Josh On Fri, Jun 13, 2008 at 3:08 AM, e_baggg [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: After thoroughly reading the Adobe socket policy docs, it looks like I'm going to have to open up port 843 and serve the new crossdomain.xml that way. Even though I have it on my root and call Security.loadPolicy() on it (and I see in the logger that it accepts it), it still calls 843, hangs, (b/c it doesn't exist there), than the Flash player throws a security error. Rather frustrating. So it goes. I'm on the debug FP version: WIN 9,0,124,0 This crossdomain below is on my root webserver and my app is on port 9080. Even if I move my html and swf to the main root (port 80)..it still fails. ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.adobe.com/xml/dtds/cross-domain-policy.dtd http://www.adobe.com/xml/dtds/cross-domain-policy.dtd cross-domain-policy site-control permitted-cross-domain-policies=master-only/ allow-access-from domain=* to-ports=8080-9080/ /cross-domain-policy --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: You can set any headers you like so long as they're specified in your crossdomain.xml, and they're not on the banned list. Details: http://www.adobe.com/devnet/flashplayer/articles/flash_player9_security_update.html#policy_file http://www.adobe.com/devnet/flashplayer/articles/flash_player9_security_update.html#policy_file Baninanted headers: http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403030sliceId=1 http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403030sliceId=1 AFAIK jsessionid is a cookie and the browser should be putting it in to any request made from Flex via HttpService. You may have the one Flash Player version (apparently 9.0.115.0 http://9.0.115.0) that blocks Authorization header info. -Josh On Thu, Jun 12, 2008 at 2:20 PM, e_baggg [EMAIL PROTECTED] wrote: I am doing hand-rolled GETs because Flex (HttpService) cannot pass headers (ie jessionid). Thus, I need to open my own flash.net.Socket and write/read the request/response manually. It works great with Digest authorization except for this policy issue. I suppose I can get around this making the login page a JSP and make the redirect go to the swf html page...and from there use HttpServicebut still I hate hacks. Such a shame this policy stuff is such a nightmare. I followed the Adobe docs exactly and I still have issues. I'll work on this more and report back anything I find. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com http://40yahoogroups.com, Josh McDonald dznuts@ wrote: Also, maybe we should look at the root of the problem - what is it you're actually trying to do via sockets and hand-rolled GETs that you can't do with httpService? -Josh On Thu, Jun 12, 2008 at 9:51 AM, Josh McDonald josh@ wrote: You'll have to use something like Charles to listen to what Flash player is doing behind your back for the policy file to be sure, but if you try and open a socket to somedomain.com:9080 http://somedomain.com:9080, I believe Flash is going to look for somedomain.com:80/crossdomain.xml http://somedomain.com:80/crossdomain.xml - Flash doesn't know that the socket you're connecting to is a http server, so it only knows to look in the default location, and it's not going to get your crossdomain file if it's on the server listening on 9080. Like I said, check with Charles to be sure, but it would make sense to me at least. -Josh On Thu, Jun 12, 2008 at 8:35 AM, e_baggg e_baggg@ wrote: I spoke too soon. The 3 second delay still exists and when I set up the Swf policy file debugger for Windows...the Flash player outputs this. My concern is that first warning. According to the docs, calling Security.loadPolicyFile() to the domain and port (which line 2 says happened ok) should fix everything. I
Re: [flexcoders] Re: OOP and Work for Hire
I've stayed away from this conversation because I agree with Doug that this conversation has been kind of intense and in some cases borderline ridiculous. But if he's bowing out I have to speak up and say he has been correct on almost everything. To OVERSIMPLIFY: Copyright protects code. Patents protect algorithms. If they patent it, you can't use the algorithm again, and thus not the code that implements that algorithm either. If they copyright it (which in the U.S. happens automatically), then you can't use the code. Generally, (although not universally) you can use algorithm unencumbered. That being said, you may be able to use small pieces of the code if they are not specific to the project. (an example from other industries: a specific line of a movie script maybe be protected by copyright, but the line I'm tired. definitely can't be protected by copyright because it's already ubiquitous and the concept behind it is universal, also I so far have ignored fair use). To be safe, don't copy and paste code because that it may be infringement no matter what. These distinctions are admittedly HIGHLY subjective (as noted by all of my equivocating phrases). Lastly, we seem to be ignoring (or conflating) the definition of work for hire which is different from both of the above. Honestly, I don't know the legal definition of work for hire, so I'm not going to try to define it legally. Based on what I've read, work for hire (the legal definition) may not even cover software code in which case the contract would be the only thing that matters. I'm not sure of that one. Many contracts sign over the rights to the copyright to the company. Patents are a more thorny issue in this case so I'm going to ignore them, but note that they are an issue. Most importantly, I have seen work for hire contracts that sign over to the company any rights to your own ideas (code or otherwise) which are derived from the project. (You're going to need a lawyer to interpret the previous sentence properly.) Also, I've seen some contracts that sign over your code, even if you've previously used that code before (so you'd loose control of parts of your code library) so watch out for that. Also, a disclaimer. We're on the internet. Laws differ from country to country. So it's possible people (including me) have been giving you advice on the incorrect set of law (I'm in the U.S.), and so far, I don't think anyone has claimed to be a lawyer. To get back to your original question, you make them sound reasonable, so I think you just need to tell them why you want to keep non-exclusive rights to your code. They're probably know how to deal with that. I would make sure to explicitly include previously written code in an the exempted list as well as implementations, algorithms and UI that can deal with data in a manner not specific to the project (and get a lawyer to translate what I just said, because I'm not even sure I know). I sit here in the t-shirt I got for getting into law school and am thinking that I'm glad I didn't go because our job is so much more fun. Two, or three cents from a non-lawyer. - Daniel Freiman On Thu, Jun 12, 2008 at 11:16 AM, Doug McCune [EMAIL PROTECTED] wrote: I'm bowing out of this discussion. Things have gotten far too polarized and nit-picky. However, I still feel it is worthwhile to at least chime in one more time because I think some of the points raised here leave developers with wrong and dangerous information. The overall opinion that you don't need to worry about re-using your source code from other clients' projects is simply false, and has the potential to get you into a lot of legal trouble. If you find yourself copying code from work you did for a previous client, please please go back and re-read the contract you signed, and be sure that you properly understand what you're doing and the legal implications. When it comes to these issues it is always better to err on the side of caution. I'll stop giving my opinion on what's right or wrong, and just say that as a developer, you need to have a thorough understanding of IP law before you go down that road, so read up and please don't rely on mailing lists for legal advice :) Doug On Thu, Jun 12, 2008 at 5:44 AM, b_alen [EMAIL PROTECTED] wrote: You can use it again definitely otherwise no one here would be allowed to do even a sorting algorithm ever again. Come on, some guys even went so far that every single digital line of code is client's. So even the mx:Button / I can't implement ever again, because it belongs to the customer. Algorithm, you can probably use it again. It depends how obvious or unique it is. In theory, algorithms / approaches to solving problems are not patentable. In reality such algorithms may be patentable or considered trade secrets. Depends, but usually there are changes for the better in each iteration. Even if you sit down to implement the algorithm a second
[flexcoders] Quick Start - Newbie help with Flex
Hello all, I'm rather new to Flex but I see some exciting things that can be accomplished with Flex. In the past, I would try to get Flash to do everything that Flex can do now, with less work and effort. Anyway, I am using self-paced methods to learn Flex CS3 and be able to use it in my work with my clients/customers. I have the text: Flex Builder CS3 Training from the Source, which is a great text. I also use the training videos on Lynda.com for learning Flex. I'd like to see if there are some quick start texts or information on the web that someone knows about. While it won't replace learning and putting time into doing a lot of Flex Development, there are some tools and applications that I see that could be put into place on some of my sites and etc. Both training tools that I have, present a single project that is developed over the course of the training. This is good, except when you just need a few Flex components, menus, etc, etc. If I wasn't looking to have the entire site done entirely in Flex but wanted to use some Flex tools/components/applications, things would be different than if I were creating an entire web application within Flex, with XML or a database. The training I mentioned does not get into deploying the content and the Flex Designs until one is far into the text or training. I won't always need that much knowledge each time I create something using Flex CS3. So, if anyone could recommend additional training material, online or texts, please let me know, Thanks, Bruce