[flexcoders] Re: Security issue - Opening a new window
--- In flexcoders@yahoogroups.com, flexawesome [EMAIL PROTECTED] wrote: I am sorry I didn't come out very clear. I am interested in an implementation that allows a user to click on say a link button and a new window is opened containing a pdf file. The pdf file has been imported into a directory accessible to the application. Did you put ur Flex on web and tried to open the PDF on ur local laptop or desktop? If so, u can't do that --- In flexcoders@yahoogroups.com, g07m5064 g07m5064@ wrote: I tried using a navigateToURL() method to open a pdf file in a new window. The file is stored in a local directory. I get the file not found message. I am not even sure if this is the method to use. Can someone please assist.
[flexcoders] Security issue - Opening a new window
I tried using a navigateToURL() method to open a pdf file in a new window. The file is stored in a local directory. I get the file not found message. I am not even sure if this is the method to use. Can someone please assist.
[flexcoders] Re: Security issue - Opening a new window
I am sorry good people. I had spelling error in the path of my directory. Problem solved --- In flexcoders@yahoogroups.com, g07m5064 [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, flexawesome flexawesome@ wrote: I am sorry I didn't come out very clear. I am interested in an implementation that allows a user to click on say a link button and a new window is opened containing a pdf file. The pdf file has been imported into a directory accessible to the application. Did you put ur Flex on web and tried to open the PDF on ur local laptop or desktop? If so, u can't do that --- In flexcoders@yahoogroups.com, g07m5064 g07m5064@ wrote: I tried using a navigateToURL() method to open a pdf file in a new window. The file is stored in a local directory. I get the file not found message. I am not even sure if this is the method to use. Can someone please assist.
[flexcoders] Security issue - Opening a new window
Hi, Whenever I try to access another application in domain I get this error: Error #2044: Unhandled SecurityErrorEvent:. text=Error #2047: Security sandbox violation: LocalConnection.send: rucus.net cannot access I tried Security.allowDomain('http://mathe.rucus.net/'); on the application being accessed. However, this didn't do the trick. I also did performed several refreshes on the application being accessed. It seems that randomly after the refreshes I get the same error. Can someone help please.
[flexcoders] Determining the actual footprint of Flex application
I have just read a posting related to application size and it occurred to me that if asked about the footprint of my flex application I wouldn't be certain how to answer the question. would I be right to just give the size of the swf file or I would need to add the size of the html file as well?
[flexcoders] Datagrid and list related issue
Hi, I would like assistance with ideas on how to trigger a selection on datagrid based on a selection on a list. The items on the list have been generated by dragging a row from the datagrid. so without the user dropping items in the list the list is empty. I would be most grateful of your ideas. Thanks.
[flexcoders] Re: Datagrid and list related issue
Opps I almost forgot to mention that data on the grid being filtered. private function gridSelect(event:Event):void{ radAll.selected=true; // change category to all filterGridData(); // reload all the data on a grid ... } mx:List id=liTarget dataProvider={top} dragEnabled=true itemClick=gridSelect(event)/ --- In flexcoders@yahoogroups.com, g07m5064 [EMAIL PROTECTED] wrote: Hi, I would like assistance with ideas on how to trigger a selection on datagrid based on a selection on a list. The items on the list have been generated by dragging a row from the datagrid. so without the user dropping items in the list the list is empty. I would be most grateful of your ideas. Thanks.
[flexcoders] Drag and drop
Hi, I not sure what is missing on my code. In addition to dragging a row from a datagrid to a listgrid I would like to have an image dragged to the listgrid. I am able to drag the image. However my dragEnter function is not working. I would appreciate any help you offer. Thanks in advance. Mathe private function dropHandler(event:DragEvent,format:String):void var targetRow:Object = new Object(); var name:Object = new Object(); if (event.dragSource.dataForFormat(items)) { targetRow = event.dragSource.dataForFormat(items); liTarget.dataProvider.addItem(targetRow[0].name); } else{ name = event.dragSource.hasFormat(format); liTarget.dataProvider.addItem(name); } event.preventDefault(); } private function mouseMoveHandler(initiator:Image, name:String,event:MouseEvent,format:String):void { var ds:DragSource = new DragSource(); ds.addData(name,format); DragManager.doDrag(initiator, ds, event); } private function dragEnterHandler(event:DragEvent, format:String):void { if (event.dragSource.hasFormat(format)) { DragManager.acceptDragDrop(IUIComponent(event.target)); } } mx:List id=liTarget dropEnabled=true dragDrop=dropHandler(event,'stringFormat') dragEnter=dragEnterHandler(event,'stringFormat') dataProvider={top} / mx:Image id=dragImage source=assets/{dg.selectedItem.image} mouseMove=mouseMoveHandler(dragImage,'{dg.selectedItem.name}',event,'stringFormat')/
[flexcoders] Re: Drag and drop
I have made the call in the dropHandler function. At this point, I think the problem lies with the dragEnterHandler function. Thanks --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Usually you have to call preventDefault() so the underlying component does not execute its default behavior. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of g07m5064 Sent: Monday, October 22, 2007 1:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Drag and drop Hi, I not sure what is missing on my code. In addition to dragging a row from a datagrid to a listgrid I would like to have an image dragged to the listgrid. I am able to drag the image. However my dragEnter function is not working. I would appreciate any help you offer. Thanks in advance. Mathe private function dropHandler(event:DragEvent,format:String):void var targetRow:Object = new Object(); var name:Object = new Object(); if (event.dragSource.dataForFormat(items)) { targetRow = event.dragSource.dataForFormat(items); liTarget.dataProvider.addItem(targetRow[0].name); } else{ name = event.dragSource.hasFormat(format); liTarget.dataProvider.addItem(name); } event.preventDefault(); } private function mouseMoveHandler(initiator:Image, name:String,event:MouseEvent,format:String):void { var ds:DragSource = new DragSource(); ds.addData(name,format); DragManager.doDrag(initiator, ds, event); } private function dragEnterHandler(event:DragEvent, format:String):void { if (event.dragSource.hasFormat(format)) { DragManager.acceptDragDrop(IUIComponent(event.target)); } } mx:List id=liTarget dropEnabled=true dragDrop=dropHandler(event,'stringFormat') dragEnter=dragEnterHandler(event,'stringFormat') dataProvider={top} / mx:Image id=dragImage source=assets/{dg.selectedItem.image} mouseMove=mouseMoveHandler(dragImage,'{dg.selectedItem.name}',event,'st ringFormat')/
[flexcoders] Re: Drag and drop
Thanks Alex. I found my problem. Including dropEnabled=true in my list creates a conflict of some sort. I had set the attribute because I also wanted to drag a row from the datagrid. I shall now try to find a workaround. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: You'll probably have to call preventDefault() in each of your handlers. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of g07m5064 Sent: Monday, October 22, 2007 4:16 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Drag and drop I have made the call in the dropHandler function. At this point, I think the problem lies with the dragEnterHandler function. Thanks --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Usually you have to call preventDefault() so the underlying component does not execute its default behavior. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of g07m5064 Sent: Monday, October 22, 2007 1:46 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Drag and drop Hi, I not sure what is missing on my code. In addition to dragging a row from a datagrid to a listgrid I would like to have an image dragged to the listgrid. I am able to drag the image. However my dragEnter function is not working. I would appreciate any help you offer. Thanks in advance. Mathe private function dropHandler(event:DragEvent,format:String):void var targetRow:Object = new Object(); var name:Object = new Object(); if (event.dragSource.dataForFormat(items)) { targetRow = event.dragSource.dataForFormat(items); liTarget.dataProvider.addItem(targetRow[0].name); } else{ name = event.dragSource.hasFormat(format); liTarget.dataProvider.addItem(name); } event.preventDefault(); } private function mouseMoveHandler(initiator:Image, name:String,event:MouseEvent,format:String):void { var ds:DragSource = new DragSource(); ds.addData(name,format); DragManager.doDrag(initiator, ds, event); } private function dragEnterHandler(event:DragEvent, format:String):void { if (event.dragSource.hasFormat(format)) { DragManager.acceptDragDrop(IUIComponent(event.target)); } } mx:List id=liTarget dropEnabled=true dragDrop=dropHandler(event,'stringFormat') dragEnter=dragEnterHandler(event,'stringFormat') dataProvider={top} / mx:Image id=dragImage source=assets/{dg.selectedItem.image} mouseMove=mouseMoveHandler(dragImage,'{dg.selectedItem.name}',event,'st ringFormat')/
[flexcoders] Re: Drag and drop
All is well. Thanks Alex --- In flexcoders@yahoogroups.com, g07m5064 [EMAIL PROTECTED] wrote: Thanks Alex. I found my problem. Including dropEnabled=true in my list creates a conflict of some sort. I had set the attribute because I also wanted to drag a row from the datagrid. I shall now try to find a workaround. --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: You'll probably have to call preventDefault() in each of your handlers. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of g07m5064 Sent: Monday, October 22, 2007 4:16 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Drag and drop I have made the call in the dropHandler function. At this point, I think the problem lies with the dragEnterHandler function. Thanks --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Usually you have to call preventDefault() so the underlying component does not execute its default behavior. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of g07m5064 Sent: Monday, October 22, 2007 1:46 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Drag and drop Hi, I not sure what is missing on my code. In addition to dragging a row from a datagrid to a listgrid I would like to have an image dragged to the listgrid. I am able to drag the image. However my dragEnter function is not working. I would appreciate any help you offer. Thanks in advance. Mathe private function dropHandler(event:DragEvent,format:String):void var targetRow:Object = new Object(); var name:Object = new Object(); if (event.dragSource.dataForFormat(items)) { targetRow = event.dragSource.dataForFormat(items); liTarget.dataProvider.addItem(targetRow[0].name); } else{ name = event.dragSource.hasFormat(format); liTarget.dataProvider.addItem(name); } event.preventDefault(); } private function mouseMoveHandler(initiator:Image, name:String,event:MouseEvent,format:String):void { var ds:DragSource = new DragSource(); ds.addData(name,format); DragManager.doDrag(initiator, ds, event); } private function dragEnterHandler(event:DragEvent, format:String):void { if (event.dragSource.hasFormat(format)) { DragManager.acceptDragDrop(IUIComponent(event.target)); } } mx:List id=liTarget dropEnabled=true dragDrop=dropHandler(event,'stringFormat') dragEnter=dragEnterHandler(event,'stringFormat') dataProvider={top} / mx:Image id=dragImage source=assets/{dg.selectedItem.image} mouseMove=mouseMoveHandler(dragImage,'{dg.selectedItem.name}',event,'st ringFormat')/
[flexcoders] Yahoo Maps
Hi, Let me start by stating that I am a newbie. I have just started read through the tutorial on using Yahoo Astra Map api at: http://www.clockobj.co.uk/2007/10/4/using-yahoo-astra-map-api-with-flex-2 All went good. Hence, I have a map component which I would like to add to an application where based on user selection (from a comboBox) a different city is loaded on a map. I am not really sure what needs to be triggered by the change event. I tried mapping the change event to mapLoad() function: private function mapLoad():void{ cityMap.mapController.setCenterByAddressAndZoom({city.selectedItem.data},14); } This does not yield results. So I suspect I need to dispatch some event that would trigger a load. Can someone point me in the right direction.
[flexcoders] Re: xml data and drag related questions
--- In flexcoders@yahoogroups.com, Mathe Maema [EMAIL PROTECTED] wrote: I think I found the solution to the first question though I can't understand it. I trimmed contents of the node and refreshed the project. The trimming was motivated by realising that the content in excel is represented by # and despite increasing the column width. Also I discovered that to actually display the content in the cell formatting had to be changed to numbers...really strange! Yes the node is called comments. I changed its name to commentary but still all other nodes I can access using {dg.selectedItem.nodeName} I really have no idea why things aren't working. Alex Harui [EMAIL PROTECTED] wrote: Is it really a tag called comments or did you use a comments tag !..? What gets displayed in the DG for the comments tag? If the grid items are XML, then the items you get in the drop will be XML and not of type Sport. - From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of g07m5064 Sent: Sunday, September 16, 2007 1:45 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] xml data and drag related questions I have two questions. First, I have the following xml file: ?xml version=1.0 encoding=UTF-8 standalone=yes? contenders xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; contender pos=1 nameLewis Hamilton/name age22/age nationalityEnglish/nationality sportMotorsport/sport commentsEverything seems to come easy for the F1 ace. Hamilton Academical, you might say. Never mind. He's British, very good, and steered his way round a spying row and team turmoil. And can you ever tire (tyre?) of seeing him as a cheeky karting schoolboy...?/comments /contender contender pos=2 nameRicky Hatton/name age29/age nationalityEnglish/nationality sportBoxing/sport commentsTiming is crucial for the Manchester 'Hitman'. And his super fight against Floyd Mayweather could not have been scheduled better./comments /contender /contenders I am buffled by the fact that the comments node is not accessible i.e. I cannot display its contents in a grid though I have no problems with other nodes. I am not sure of the reason. Any ideas? My second question is assuming I wanted to drag a row from the grid into an HBox container with intentions of adding items to an arraycollection so that the dragged items can effectively be diplayed in another grid found in another 'page'. This is my code for the drop function: private function doDragDrop(event:DragEvent):void { var data:Object = event.dragSource.dataForFormat(items) as Sport; //Sport is class draggedData.addItem(data); //draggedData is an instance of ArrayCollection whose contents will be used as dataProvider for the other grid } count++;// The HBox will display the count value of number of dragged items - For ideas on reducing your carbon footprint visit Yahoo! For Good this month.
[flexcoders] xml data and drag related questions
I have two questions. First, I have the following xml file: ?xml version=1.0 encoding=UTF-8 standalone=yes? contenders xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; contender pos=1 nameLewis Hamilton/name age22/age nationalityEnglish/nationality sportMotorsport/sport commentsEverything seems to come easy for the F1 ace. Hamilton Academical, you might say. Never mind. He's British, very good, and steered his way round a spying row and team turmoil. And can you ever tire (tyre?) of seeing him as a cheeky karting schoolboy...?/comments /contender contender pos=2 nameRicky Hatton/name age29/age nationalityEnglish/nationality sportBoxing/sport commentsTiming is crucial for the Manchester 'Hitman'. And his super fight against Floyd Mayweather could not have been scheduled better./comments /contender /contenders I am buffled by the fact that the comments node is not accessible i.e. I cannot display its contents in a grid though I have no problems with other nodes. I am not sure of the reason. Any ideas? My second question is assuming I wanted to drag a row from the grid into an HBox container with intentions of adding items to an arraycollection so that the dragged items can effectively be diplayed in another grid found in another 'page'. This is my code for the drop function: private function doDragDrop(event:DragEvent):void { var data:Object = event.dragSource.dataForFormat(items) as Sport; //Sport is class draggedData.addItem(data); //draggedData is an instance of ArrayCollection whose contents will be used as dataProvider for the other grid } count++;// The HBox will display the count value of number of dragged items
[flexcoders] newbie
I am adapting flexstore such that the products are displayed in a grid. Essentially the user clicks on either a price slider or checkboxes. The click event calls a dispatchFilter function. This function creates an instance of a class called FilterEvents..the FilterEvents triggers the filtering via the Filter class. When all of this have been done I need the returned data to be displayed on a datagrid. There is a get function that has been implemented for purposes of populating the dataprovider. I am at loss. Please help. I am sorry no code is included. I really didn't know which part to include.
[flexcoders] newbie - adapting flexstore
Hi, I am new to flex. I would like to adapt the flexstore example such that the filtered results are displayed in a grid (this is definitely inspired by home locator). Anyway, after the filtering, I don't quite comprehend how the datagrid will be updated. Any ideas?