RE: [flexcoders] How to pass AS Objects to a CFC
Hi Mohanraj, CF needs named parameters when dealing with complex types passed as CFC arguments. You have to wrap the object you want to send to the CFC into another wrapper object. Inside the wrapper you define properties for every named argument. This should work: // AS snippet // setup the object to be passed to the CFC var o:Object = new Object(); o.name = Foo; o.date = new Date(); o.otherData = [1,2,3,4,5]; // create a wrapper for the object // input is the named argument of the CFC var request = new Object(); request.input = o; // send it ro.sendComplexData(request); The wrapper's input property is also used to identify the argument inside the CFC: !--- CFC snippet --- cffunction name=sendComplexData access=remote returntype=string cfargument name=input type=struct required=yes cfreturn obj.name /cffunction Dirk. -Original Message- From: Mohanraj Jayaraman [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 3:12 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to pass AS Objects to a CFC Hi Clint, Thanks for your reply. I think i was not clear ealrier on my problem. Here's a sample code I am dealing with. Please note the property 'modarray' of the 'pData' object. 'modarray' is populated with SelTP object _s whcih is an Array of Structures. Here I polupate the _s with selectedIndices of a data gris I am using. The required parameter 'MODARRAY' not passed to the function! is the message I get following my RemoteObject call Any idea what I am missing here. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Modal Transparency Color
Every modal popup has a property called modalWindow which points to the MovieClip that was used to create the modal layer. Good ol' setRGB on that thing should work: var win = mx.managers.PopUpManager.createPopUp(this, mx.containers.Panel, true); var c:Color = new Color(win.modalWindow); c.setRGB(0xff); Dirk. -Original Message- From: Scott Barnes [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 6:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Modal Transparency Color Forgive me if this has been asked a million times but how doth i change the color of the modal transparency layer from white to say red? Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Modal Transparency Color
heh.. thanks *feels stupid* ;) On Thu, 24 Mar 2005 10:10:56 +0100, Dirk Eismann [EMAIL PROTECTED] wrote: Every modal popup has a property called modalWindow which points to the MovieClip that was used to create the modal layer. Good ol' setRGB on that thing should work: var win = mx.managers.PopUpManager.createPopUp(this, mx.containers.Panel, true); var c:Color = new Color(win.modalWindow); c.setRGB(0xff); Dirk. -Original Message- From: Scott Barnes [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 6:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Modal Transparency Color Forgive me if this has been asked a million times but how doth i change the color of the modal transparency layer from white to say red? Yahoo! Groups Links -- Regards, Scott Barnes http://www.mossyblog.com http://www.flexcoder.com (Coming Soon) Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Re: internal representation of an array
1. for..in loops walk through the object or array with a stack based order, so u can never know for sure if it's the exact reverse order unless u added the elements to the array yourself one after another and didn't modify the array. 2. Why would u populate your array like this? If u want only to have these elements u should create an object with those keys. U will lose the array functionality, but I doubt those functions are usefull with an array like this. Greetz Erik -Original Message- From: Eric Raymond [mailto:[EMAIL PROTECTED] Sent: donderdag 24 maart 2005 1:59 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: internal representation of an array --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: The Flash player implements both Array and Object as hashtables. In Two somewhat related questions: 1) How does the implementation work with for in loops? Is there any natural order in which the propery names are returned? Does this vary from an Array to an Object? 2) Is there an efficient way to walk a sparsely populated array in order? That is if a[2], a[100] and a[2000] are the only elements of an array, is there a way to visit the three nodes in order without testing all the empty elements between the sparse nodes. for (var i:Number=2; i a.length; i++) { if (a[i] != undefined) ... } If the array elements were created in order of the increasing index, would that help? That is, walking the sparse elements in creation order would suffice in this case. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] drag and drop problem!
Hi to everyone, Ideveloped a e-commerce solution based on drag'n'drop. I split the main application in small sub-applications so I can load every section only if it's necessary. I load every section in a Loader object inside a Panel (as in Flex samples - drag'n'drop). I have a component (in the loaded application) that starts the drag operation. The problem is: the drag doesn't start when Flex fires mouseDown event (I have a component inside the application loaded inthe Loader). Whyshould I change the mouseDown eventin mouseMove event (otherwise the drag doesn't start)? example: main.mxml ?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"mx:Panel title="Start drag from here" width="200" height="200"mx:Loader contentPath="drag.mxml.swf" scaleContent="false" width="100%" height="100%" //mx:Panel mx:Panel title="Drop here" width="200" height="200"/mx:Panel/mx:Application drag.mxml ?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"mx:Script![CDATA[ function beginDrag() { var ds = new mx.core.DragSource(); ds.addData({name: "test"}, "product"); mx.managers.DragManager.doDrag(this, ds, drag, {mxml: true}); }]]/mx:Scriptmx:Image source="@Embed('images/ups.jpg')" scaleContent="false" mouseDown="beginDrag()" / /mx:Application If I run drag.mxml the drag starts correctly. If I run main.mxml the drag doesn't start: I must use mouseMove instead of mouseDown event. Is this a Flex bug? However, even using mouseMove event, the dragged object doesn't exit from the Panel. How can I resolve this situation? If I run the Flex exampleof drag and drop, the object can move outsideits application limits only if the scrollbars are missing. Don't you find it strange? Anyway I don't have scrollbars so this is not my problem I only liked to tell you. I need help as soon as possible! Alessio Prosperi[EMAIL PROTECTED]Adacto - anima digitale -- Adacto s.r.l.Via Chiarugi 158 50053 EmpoliVia Meda 45 20141 MilanoTelefono 0571-530234 Fax 0571-534294 Internet: www.adacto.itE-mail: [EMAIL PROTECTED] Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Custom Preloader Questions
Hi All. I have been messing with custom preloader stuff and a few questions have come up which I can't seem to find answers to, so I am turning to the guru's. Basically I want to control what my preloader looks like (this part is pretty straight forward), but I also want this preloader to stay on the screen for a little while beyond my app's creationComplete. I want it to stay up until I generate another event. The next thing is that I would like to use my custom preloader when the browser loads the swf from cache. I can't seem to override the default preloader in this instance. Only on the first, non-cached pull of the swf. Is this stuff possible? Thanks! -James Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Flex book chapter 20
Hi, i'm trying to use the examples in chapter 20 of flex book, all work fine, but in my delegate class i have put this public function onResult( result ) : Void { var sviluppo:CTabellaSviluppoVO = (CTabellaSviluppoVO) result; mx.core.Application.application.vosviluppo = sviluppo; } i have also debug and flex pass this function ok. but if i use in my mxml file this import vo.as400.*; import com.pdm.control.*; public var controller:PdmController; public var vosviluppo:CTabellaSviluppoVO; function Test(){ controller=new PdmController(); EventBroadcaster.getInstance().broadcastEvent(fetchSviluppo,vopf[0]); } mx:Button id=d click=Test()/ mx:DataGrid id=dg dataProvider={vosviluppo}/ the dataGrid don't display nothing but in the mx.core.Application.application.vosviluppo there are datas. Can you help me please. Devis Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Cross Domain Policy
On behalf of my colleague, Dipti Mane. Hello All, I'm trying to load an asp file by using XML.load() method in an application. This asp file resides on a different server and the crossdomain.xml file cannot be in the root folder of the server. Flex documentation says that it's possible to load policy files from different location but it's not working. I have kept the crossdomain.xml in the same folder where the asp file is. Following is the code I'm for the same... initApp function is called on the initialize event of the application. function initApp(){ System.security.loadPolicyFile(http://servername/dir/crossdomain.xml;); } function TestXML(){ var oXML:XML = new XML() oXML.ignoreWhite=true; oXML.onLoad=oXML_onLoad; oXML.load(http://servername/dir/test.asp;); } Please help... http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/wwhelp.htm?href=part2_de.htm Regards, -Dipti. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Flex book chapter 20
There is a general debug strategy for an application built with Cairngorm, that quickly lets you identify where your problem lies. 1. Confirm that your event is being broadcast to controller 2. Confirm that your command class you expect to run is running 3. Confirm that your delegate method is called 4. Confirm that your delegate method returns (ie onResult fires) 5. In the onResult, confirm that the object you got back is as expected For your datagrid, create a dummy object and set it on mx.core.Application.application.vosviluppo - confirm that the datagrid correctly binds to that object and eliminate the binding as your source of error. Once you have done that, glueing your result from step 5 above to the datagrid should be an atomic operation that just works. You don't appear to be doing anything wrong conceptually, so it's simply going to be a case of probing your app at all the right points and testing your assumptions. Steven -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 24 March 2005 10:32 To: Flex Coders Subject: [flexcoders] Flex book chapter 20 Hi, i'm trying to use the examples in chapter 20 of flex book, all work fine, but in my delegate class i have put this public function onResult( result ) : Void { var sviluppo:CTabellaSviluppoVO = (CTabellaSviluppoVO) result; mx.core.Application.application.vosviluppo = sviluppo; } i have also debug and flex pass this function ok. but if i use in my mxml file this import vo.as400.*; import com.pdm.control.*; public var controller:PdmController; public var vosviluppo:CTabellaSviluppoVO; function Test(){ controller=new PdmController(); EventBroadcaster.getInstance().broadcastEvent(fetchSviluppo, vopf[0]); } mx:Button id=d click=Test()/ mx:DataGrid id=dg dataProvider={vosviluppo}/ the dataGrid don't display nothing but in the mx.core.Application.application.vosviluppo there are datas. Can you help me please. Devis Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.8.1 - Release Date: 23/03/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.8.1 - Release Date: 23/03/2005 Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Flex book chapter 20
Hi Steven, i have 2 mxml file one principal and one component (canvas). I have put in my principal file this controller=new PdmController(); EventBroadcaster.getInstance().broadcastEvent(fetchSviluppo,vopf[0]); and in my compoment SchedaSviluppo id=schedasviluppo taglie={taglie} tg_base={PfVO(vopf[0]).modevo.tgbamo} vosviluppo={vosviluppo}!! key=0 init=schedasviluppo.Init_Taglie() vopf={vopf} / /mx:HBox and now work but about you if i call in my component don't work! I have no changed no row in SchedaModello i have only disable //controller=new PdmController(); //EventBroadcaster.getInstance().broadcastEvent(fetchSviluppo,vopf[0]); can you help me please Devis There is a general debug strategy for an application built with Cairngorm, that quickly lets you identify where your problem lies. 1. Confirm that your event is being broadcast to controller 2. Confirm that your command class you expect to run is running 3. Confirm that your delegate method is called 4. Confirm that your delegate method returns (ie onResult fires) 5. In the onResult, confirm that the object you got back is as expected For your datagrid, create a dummy object and set it on mx.core.Application.application.vosviluppo - confirm that the datagrid correctly binds to that object and eliminate the binding as your source of error. Once you have done that, glueing your result from step 5 above to the datagrid should be an atomic operation that just works. You don't appear to be doing anything wrong conceptually, so it's simply going to be a case of probing your app at all the right points and testing your assumptions. Steven -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 24 March 2005 10:32 To: Flex Coders Subject: [flexcoders] Flex book chapter 20 Hi, i'm trying to use the examples in chapter 20 of flex book, all work fine, but in my delegate class i have put this public function onResult( result ) : Void { var sviluppo:CTabellaSviluppoVO = (CTabellaSviluppoVO) result; mx.core.Application.application.vosviluppo = sviluppo; } i have also debug and flex pass this function ok. but if i use in my mxml file this import vo.as400.*; import com.pdm.control.*; public var controller:PdmController; public var vosviluppo:CTabellaSviluppoVO; function Test(){ controller=new PdmController(); EventBroadcaster.getInstance().broadcastEvent(fetchSviluppo, vopf[0]); } mx:Button id=d click=Test()/ mx:DataGrid id=dg dataProvider={vosviluppo}/ the dataGrid don't display nothing but in the mx.core.Application.application.vosviluppo there are datas. Can you help me please. Devis Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.8.1 - Release Date: 23/03/2005 Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Flex book chapter 20
var sviluppo:CTabellaSviluppoVO = (CTabellaSviluppoVO) result; In this line u mixed java syntax with AS2. To cast a variable to a certain type format your code like this: var sviluppo:CTabellaSviluppoVO = CTabellaSviluppoVO(result); This works with all custom types and with most build in Flash type. There are however some build in classes that have an other effect: var sviluppo:Array = Array(result); The above line of code will return an array with one element wich contains result while u would think that it would just cast result to the array type. This is because in older versions of Flash the global function Array was used to create an array. Greetz Erik -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: donderdag 24 maart 2005 11:32 To: Flex Coders Subject: [flexcoders] Flex book chapter 20 Hi, i'm trying to use the examples in chapter 20 of flex book, all work fine, but in my delegate class i have put this public function onResult( result ) : Void { var sviluppo:CTabellaSviluppoVO = (CTabellaSviluppoVO) result; mx.core.Application.application.vosviluppo = sviluppo; } i have also debug and flex pass this function ok. but if i use in my mxml file this import vo.as400.*; import com.pdm.control.*; public var controller:PdmController; public var vosviluppo:CTabellaSviluppoVO; function Test(){ controller=new PdmController(); EventBroadcaster.getInstance().broadcastEvent(fetchSviluppo,vopf[0]); } mx:Button id=d click=Test()/ mx:DataGrid id=dg dataProvider={vosviluppo}/ the dataGrid don't display nothing but in the mx.core.Application.application.vosviluppo there are datas. Can you help me please. Devis Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] drag and drop problem!
On Thu, 24 Mar 2005 10:25:39 +0100, Alessio Prosperi [EMAIL PROTECTED] wrote: If I run drag.mxml the drag starts correctly. If I run main.mxml the drag doesn't start: I must use mouseMove instead of mouseDown event. Is this a Flex bug? I tried your example, and the drag starts just fine in main.mxml. The drag image however is way off. I modified your drag.mxml to this and it looks much better: mx.managers.DragManager.doDrag(this, ds, mx.controls.Image, {source: image.source, scaleContent: image.scaleContent, x: image.x, y: image.y}); !-- the image to be dragged -- mx:Image id=image ... / Manish Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Cross Domain Policy
What do you have in crossdomain.xml? Are you adding the correct domain or IP? It should be like this: ##crossdomain.xml## cross-domain-policy allow-access-from domain=domain_or_ip_of_flex_or_flash_app_loading_data / /cross-domain-policy Please post the content of your crossdomain.xml More info on crossdomain.xml: http://livedocs.macromedia.com/flex/15/flex_docs_en/0894.htm -abdul -Original Message- From: Ketan Bengali [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 4:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cross Domain Policy On behalf of my colleague, Dipti Mane. Hello All, I'm trying to load an asp file by using XML.load() method in an application. This asp file resides on a different server and the crossdomain.xml file cannot be in the root folder of the server. Flex documentation says that it's possible to load policy files from different location but it's not working. I have kept the crossdomain.xml in the same folder where the asp file is. Following is the code I'm for the same... initApp function is called on the initialize event of the application. function initApp(){ System.security.loadPolicyFile(http://servername/dir/crossdomain.xml;); } function TestXML(){ var oXML:XML = new XML() oXML.ignoreWhite=true; oXML.onLoad=oXML_onLoad; oXML.load(http://servername/dir/test.asp;); } Please help... http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/w whelp.htm?href=part2_de.htm Regards, -Dipti. Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Constructors and dynamic coding
On Wed, 23 Mar 2005 20:34:43 -, Nick [EMAIL PROTECTED] wrote: var newPanel:Panel = new Panel(WindowName()) So assuming you have a canvas that you want to create the window on, you would do the following: var newPanel:Panel = Panel(canvas.createChild(WindowName, , {...})); // ... is the initialization params But I didn't understand why you don't want them to be real popups. You can still explicitly set there x/y and width/height! Manish Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] SWF Timeout
It is. I guess I can only get non-expiring SWF's with a true, full license then? - Original Message - From: Matt Chotin To: flexcoders@yahoogroups.com Sent: Wednesday, March 23, 2005 11:06 PM Subject: RE: [flexcoders] SWF Timeout Make sure that license.properties is filled in in web-inf/flex for your flex server. You need your NCL serial number in there. Matt From: Abdul Qabiz [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 23, 2005 4:03 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] SWF Timeout Hmm, with developer version, it's going to be there, it can not be removed.I presume you have Non-Commercial license version, I am sorry, I am not sureabout it. Someone with good understanding of Flex Licensing might explain...-abdul-Original Message-From: JesterXL [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 5:18 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] SWF TimeoutSWF expires after 2 days thing.- Original Message - From: "Abdul Qabiz" [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Wednesday, March 23, 2005 6:38 PMSubject: RE: [flexcoders] SWF TimeoutYou mean, "A script in this movie is causing"You can increase the limits in Application tag..Following shows default..mx:Application scriptRecursionLimit="1000" scriptTimeLimit="60" ... ../mx:ApplicationOr are you talking about SWF expires after two days thing?-abdul-Original Message-From: JesterXL [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 4:59 AMTo: FlexcodersSubject: [flexcoders] SWF TimeoutHow do you turn this off?Yahoo! Groups LinksYahoo! Groups LinksYahoo! Groups Links Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Attaching Custom Component
On Wed, 23 Mar 2005 15:17:15 -0800, Jack Waknitz [EMAIL PROTECTED] wrote: I am trying to figure out how to attach a custom component to an application using actionscript. I'm using a repeater with a function on the repeat event. Inside that function what would I do to create the custom component that I have? .mxml file using mxml. Call createChild() on the container that you want to add the component instance to. The first argument to createChild() is the name of the custom component. --- CustomComponent.mxml --- mx:VBox --- index.mxml --- createChild(CustomComponent, ...); 'for' loop vs. Repeater: If you're doing condition checks on the parsed XML, I think a 'for' loop is the right way to do it, as it gives you maximum flexibility. Manish Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Datagrid Keys
On Wed, 23 Mar 2005 21:43:55 -, viraf_bankwalla [EMAIL PROTECTED] wrote: 1. How specify an alternat set of keys for movement within the datagrid. I would like to use the up, down, right, left arrows. The Up and Down keys already work for navigating between the rows. If you want to use the Left and Right arrow keys for navigating between columns, try experimenting with a custom row renderer. This page mentions something about it: http://www.macromedia.com/support/documentation/en/flex/1/cellrenderers/cellrenderers14.html 2. I have a custom cell renderer that I am using to display summary information. I would like to display detailed information related to the cell when certain key events (such as ctrl-I) is pressed. We noticed that double-click was not suitable due to the delay in which events may be triggered. How could I capture the key stroke to display the popup. Listen for 'keyDown', 'keyUp', etc., events. Manish Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Caching of HTTPService Requests
Hi, It appears that my HTTPService requests are being cached (I do not see the request being made to the application). How can I disable the caching of these requests ? Thanks. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Datagrid Keys
On Wed, 23 Mar 2005 21:43:55 -, viraf_bankwalla [EMAIL PROTECTED] wrote: 1. How specify an alternat set of keys for movement within the datagrid. I would like to use the up, down, right, left arrows. To make Up/Down work while a cell editor is present, we ended up overriding the editorKeyDown() function in our subclassed DataGrid. Left/Right didn't make sense to us cause you need those keys to navigate the cellEditor. But Tab/Shift+Tab move left and right by default. We did have some issues with restoring selection after moving up/down as well as some other things, but I'll let you figure those out for yourself :) Jim Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Binding we are confused
sorry Matt, but i haven't understand you can explain me please? :-( I have also post this question in Macromedia Italia tech (Enrique) but without success because if you look our binding , it's ok work, but i think that there are a better solution than ours. I make you an example that yesterday it has aroused a some of problems. I have an array : mx:HBox mx:Repeater id=r dataProvider={taglie} recycleChildren=true mx:FormItem label={r.currentItem} required={r.currentItem!=tg_base} mx:TextInput id=cdc width=35 text=0 / /mx:FormItem /mx:Repeater /mx:HBox These TextInput they would owe to be to bind with our vo object (see attachment). but in progressive mode, for example cdc[0].text=vo.tga1sv cdc[1].text=vo.tga2sv .. cdc[10].text=vo.tga10sv and when user chage some TextInput and click theUpdate button we have to hold the object VO syncronized . Now we are using a circular binding , but ok work, but throws warnings in the second line, and and honestly i'm worried, in what I think there will be a valid alternative, !--Taglie -- mx:Binding source={CTabellaSviluppoVO(vosviluppo[key]).tga1sv==undefined ? '':CTabellaSviluppoVO(vosviluppo[key]).tga1sv} destination=cdc[0].text / mx:Binding source=cdc[0] destination=CTabellaSviluppoVO(vosviluppo[key]).tga1sv / yesterday in Macromedia Tech Italy have recommended us to use a circular binding unfortunately, but in my case it doesn't seem you an ugly solution, and besides I receive some warnings therefore I think about having adopted a wrong solution for my case. Any suggestion it's MUCH MUCH appreciate. Devis Matt Chotin ha scritto: Hi Devis, I think youre asking how to use binding to do an insert as opposed to an edit operation? This is probably hard to do with binding. Instead what Id do is simply have a button or some other mechanism that will do the addition for you and only use binding to copy out for the VO. Matt *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *Sent:* Tuesday, March 22, 2005 11:32 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Binding with amf Hi, it's correct, or there is a best way, this binding about you? mx:Binding source=t_rig.text destination=CTabellaSviluppoVO(vosviluppo[key]).pk.rifesv / mx:Binding source={CTabellaSviluppoVO(vosviluppo[key]).pk.rifesv==undefined ? '': CTabellaSviluppoVO(vosviluppo[key]).pk.rifesv} destination=t_rig.text / In my project, when scroll the VO object bind the t_rig.text, but if i wish to insert a new VO the value of t_rig.text will into into vosviluppo[key]).pk.rifesv. Please can you give me more ligth about this concept. Devis *Yahoo! Groups Sponsor* ADVERTISEMENT click here http://us.ard.yahoo.com/SIG=1294bon7h/M=298184.6191685.7192823.3001176/D=groups/S=1705007207:HM/EXP=645956/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075 *Yahoo! Groups Links* * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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/ class vo.as400.CTabellaSviluppoVO { public var de50sv : String; public var notesv : String; public var pk : vo.pk.CTabellaSviluppoPK; public var rifesv : String; public var stresv : String; public var tga10sv : String; public var tga11sv : String; public var tga12sv : String; public var tga13sv : String; public var tga14sv : String; public var tga15sv : String; public var tga16sv : String; public var tga17sv : String; public var tga18sv : String; public var tga19sv : String; public var tga1sv : String; public var tga20sv : String; public var tga21sv : String; public var tga22sv : String; public var tga23sv : String; public var tga24sv : String; public var tga25sv : String; public var tga26sv : String; public var tga27sv : String; public var tga28sv : String; public var tga29sv : String; public var tga2sv : String; public var tga30sv : String; public var tga31sv : String; public var tga32sv : String; public var tga33sv : String; public var tga34sv : String; public var tga3sv : String; public var tga4sv : String; public
[flexcoders] Custom Control Components
Is it just me, or are custom control (actionscript) components really really difficult to get your head around? I am struggling with just about every aspect of creating custom controls, from deciding what to extend, through sizing/layout,right down to event handling. I have created some custom controls but they have never turned out to be what I really wanted. There is a real lack of documentation about this subject. I've read the Flex Components PDF, andI've read the relevant parts of Developing Flex Apps, but none of these really covers creating components in actionscript from scratch through to more advanced components at reasonable steps. Some of the more basic examples that are given require you to draw a circle in Flash first - I don't want to (and I know I shouldn't) have to use Flash to create a basic custom component. I would like a more in-depth discussion of what the various sizes are - _measuredXXX, preferredXXX, defaultXXXproperties etc A clearer explanation of the instantiation and display order/process. Perhaps a breakdown of some existing components that have both been built from scratch and has extended other components. Anyoneelsefindingthistopichard going like me? Kind Regards, Simon Fifield Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Label question
On Wed, 23 Mar 2005 10:58:48 EST, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I hope this is not a silly question but what I want to do is make a label but give it a border sort of a 3 D appearance and I was wondering if someone could give me some tips on how to do this or if there is a better way to do this? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; backgroundColor=white verticalGap=10 !-- label with 3D border -- mx:Box id=box backgroundColor=white borderStyle=solid cornerRadius=4 dropShadow=true shadowDistance=5 shadowDirection=right mx:Label text=The quick brown fox... / /mx:Box !-- END label with 3D border -- mx:HBox mx:Button label=Lower click=lower() / mx:Button label=Raise click=raise() / /mx:HBox mx:Script import mx.effects.Tween; function lower():Void { var tween:Tween = new Tween(this, 5, 1, 500); } function raise():Void { var tween:Tween = new Tween(this, 1, 5, 500); } function onTweenUpdate(value):Void { box.setStyle(shadowDistance, value); } function onTweenEnd(value):Void { onTweenUpdate(value); } /mx:Script /mx:Application The shadow styles can be specified separately in a sytlesheet. Manish Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Caching of HTTPService Requests
On Thu, 24 Mar 2005 13:42:12 -, viraf_bankwalla [EMAIL PROTECTED] wrote: It appears that my HTTPService requests are being cached (I do not see the request being made to the application). How can I disable the caching of these requests ? I think the web browser caches the results by default, just as it would cache a normal webpage. The web server should specify a no-cache or a Expires attribute in the response headers to prevent the web browser from caching the request. Are you going through the Flex proxy? Is useProxy set on the HTTPService? There's people from the Flex server development team who can give you a better answer. Manish Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] subclassing accordion control.
On Wed, 23 Mar 2005 01:01:43 -0700, Jeff Krueger [EMAIL PROTECTED] wrote: this.createSegment(Folder,,Users,); this.createSegment(Folder,,Users2,); Do this in createChildren() instead. Manish Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Caching of HTTPService Requests
Yes, but remember you have no REAL control over how a client caches a page. Several major browser munge the way they handle caching and/or offline browsing. There could be multiple caches between the end user and the server, and one or more of these may totally ignore cache meta tags. Not something to rely on. -Original Message- From: Manish Jethani [mailto:[EMAIL PROTECTED] Sent: 24 March 2005 14:04 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Caching of HTTPService Requests On Thu, 24 Mar 2005 13:42:12 -, viraf_bankwalla [EMAIL PROTECTED] wrote: It appears that my HTTPService requests are being cached (I do not see the request being made to the application). How can I disable the caching of these requests ? I think the web browser caches the results by default, just as it would cache a normal webpage. The web server should specify a no-cache or a Expires attribute in the response headers to prevent the web browser from caching the request. Are you going through the Flex proxy? Is useProxy set on the HTTPService? There's people from the Flex server development team who can give you a better answer. Manish Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Has anyone written a custom DateField that changes years via combo?
On Wed, 23 Mar 2005 10:14:10 -0500, Dave Carabetta [EMAIL PROTECTED] wrote: Manish posted an editable date field sample on Flex Authority. Also here: http://manish.revise.org/archives/2005/02/27/editabledatefield-component/ Manish Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] ScrollPane
On Wed, 23 Mar 2005 12:49:47 +0100, Dirk Eismann [EMAIL PROTECTED] wrote: No need for a ScrollPane as all components that subclass mx.core.View support scrolling (e.g. VBox) Bit of a correction: All components that subclass either mx.containers.Container or mx.core.ScrollView support scrolling. Container has its own scrolling logic. ScrollView is further subclassed into TextArea, ItemScrollSelectList and ScrollSelectList, each having its own scrolling logic. Manish Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Attaching Custom Component
Jack Waknitz wrote: I'm trying to make a app that will look through an xml file and decide what components to use for each item based on some meta data. So I'm thinking about puting the createChild tag within the function based on if statements to choose between a few different compontents to display the data. Can you think of a better way of doing this? Or do you think this is a good path? I was also thinking of just using a for loop instead of the repeater. Don't know how each will work. The for loop is a better choice if the data model is not going to change while the set of components is alive. Repeaters are best in situations in which the repeating components need to be dynamically added, updated or deleted based on data model changes. If you do use a Repeater, then I wouldn't recommend using events to populate it. Instead consider putting a repeating smart wrapper component inside the Repeater, and have the wrapper look at its item and create the appropriate type of child. Each wrapper belongs to the same class, so this approach will work fine with the Repeater mechanism. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Custom Themes in FLEX.
On Wed, 23 Mar 2005 13:53:49 +1000, Scott Barnes [EMAIL PROTECTED] wrote: - ControlBar? what skin / class does it load to change the skins - i ask this as the bordering capabilities for this is pretty slack and i need to hijack it. The ControlBar is drawn in RectBorder.as Manish Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Updating datagrid using dynamic combo boxes
On Tue, 22 Mar 2005 15:41:04 -0800, Blake Kadatz [EMAIL PROTECTED] wrote: Perhaps it's possible to set the change event for each after the initial send() completes or disable the event until then? Yes, you could set up the 'change' event handler in the creationComplete instead once everything has been loaded for the first time. Manish Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Dynamic Window Creation
On Tue, 22 Mar 2005 20:41:44 -, Nick [EMAIL PROTECTED] wrote: Say I have an array, {Foo}. inside the window I have a data grid that takes foo. I want to say something like: popupWindow(AssignmentWindow({Foo})) I think you should be using PopUpManager.createPopUp() there? to pass Foo in the constructor. createPopUp()'s 4th argument is an object that contains initialization parameters for the popup window. Set Foo in that and it should get passed onto your popup instance. Manish Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Caching of HTTPService Requests
On Thu, 24 Mar 2005 14:12:07 -, Shell Bryson [EMAIL PROTECTED] wrote: Yes, but remember you have no REAL control over how a client caches a page. Several major browser munge the way they handle caching and/or offline browsing. There could be multiple caches between the end user and the server, and one or more of these may totally ignore cache meta tags. Not something to rely on. If you absolutely, totally, seriously :) want to refresh the data, just append some random string to the URL. The 'url' property of HTTPService can be modified at runtime. Manish Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Custom Control Components
I feel u there, I myself want to create components that are fully functional, skinnable and fit right into the V2 architecture. I havent been able to put my head around it yet. I think i found the the same PDF u are talking about (Developing Flex Components and Themes in Flash Authoring) wich i hope gives enough detail. A problem in this matter is that the flow of components (UIObject and UIComponent with their helper classes) is very complex and not easy to understand. And besides that, i couldnt find a document that describes the flow very good (it may be in the PDF though). I understand that this is a complex problem for macromedia as well, as they are familiar with this architecture. Maybe we could provide them with a list of questions regarding the building of components. Questions like: - How can i makea custom component skinnable? -- And how does the skinning of components work internally? - Say i want to build a 'wizard' (next, previous) component, how would u do it? - I want to make a component with buttons from wich the states are dynamicly loaded images combined with a label. The placement of the label is dependend of the available size of the component. In wich 'hook' would i place the check function. And how would i build a button component with different states? As u can see these are more practical based questions of problems i ran into. Im guessing that more of us developers are having these kind of questions. Greetz Erik From: Simon Fifield [mailto:[EMAIL PROTECTED] Sent: donderdag 24 maart 2005 14:59To: [EMAIL PROTECTED] ComSubject: [flexcoders] Custom Control Components Is it just me, or are custom control (actionscript) components really really difficult to get your head around? I am struggling with just about every aspect of creating custom controls, from deciding what to extend, through sizing/layout,right down to event handling. I have created some custom controls but they have never turned out to be what I really wanted. There is a real lack of documentation about this subject. I've read the Flex Components PDF, andI've read the relevant parts of Developing Flex Apps, but none of these really covers creating components in actionscript from scratch through to more advanced components at reasonable steps. Some of the more basic examples that are given require you to draw a circle in Flash first - I don't want to (and I know I shouldn't) have to use Flash to create a basic custom component. I would like a more in-depth discussion of what the various sizes are - _measuredXXX, preferredXXX, defaultXXXproperties etc A clearer explanation of the instantiation and display order/process. Perhaps a breakdown of some existing components that have both been built from scratch and has extended other components. Anyoneelsefindingthistopichard going like me? Kind Regards, Simon Fifield Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] subclassing accordion control.
Can I cast that to, in my example, a Folder class? yes, you can: var folder:Folder = Folder(this.createSegment(Folder,,Users,)); Dirk. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] tile list
Is there a way to force the tile list not to wrap at all? say I want to list all items horizontally on one row... is that possible? if not I have another idea how to do this... just curious... thanks! -- My Blog http://www.clinttredway.com Are you diabetic? http://www.diabetesforums.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Redraw problems with TileList and custom cell renderer
I was able to find a work around...kind of. Instead of relying on data binding in my custom cell renderer I now set the new "source" value for the Image inside the setValue() function (see the code below). This seems to fix the image disappearance problem. But now I have a new problem. I can't seem to find any way to get the image to fill the entire cell after a resize. It just remains the same size that it was rendered initially. I've tried a number of things and just can't get it to work. What am I doing wrong?? MyCustomCellRenderer.mxml ?xml version="1.0" encoding="utf-8"? mx:VBox xmlns:mx="http://www.macromedia.com/2003/mxml"horizontalAlign="center"verticalAlign="middle" mx:Script![CDATA[ function setValue(str:String, item:Object){image.source = item.imageUrl; }]] /mx:Script mx:Image id="image" scaleContent="true" width="100%" height="100%" //mx:VBox Kris -- Kristopher Schultz Developer Resource Interactive p: 614.410.2123 www.resource.com I just tried a big number of things both documented and undocumented and couldnt get it to work correctly. I have no idea why since this is something I thought we tested (though maybe it was with embedded images and not dynamically loaded). Ill file a bug on this but I dont have any good suggestions right now. Everything Ive looked at makes it seem like it should do the right thing. Sorry! Matt Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Custom Control Components
Manish posted a good article from the Macromedia Devnet Flex site: http://www.macromedia.com/devnet/flex/articles/creating_comp.html I have yet to go through the article in detail and try it out with my own home-brewed component. From a quick scan it looks quite in depth, but simple. I'll let you know how I get on. Regards, Simon -Original Message-From: Erik Westra [mailto:[EMAIL PROTECTED]Sent: 24 March 2005 14:45To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Custom Control Components I feel u there, I myself want to create components that are fully functional, skinnable and fit right into the V2 architecture. I havent been able to put my head around it yet. I think i found the the same PDF u are talking about (Developing Flex Components and Themes in Flash Authoring) wich i hope gives enough detail. A problem in this matter is that the flow of components (UIObject and UIComponent with their helper classes) is very complex and not easy to understand. And besides that, i couldnt find a document that describes the flow very good (it may be in the PDF though). I understand that this is a complex problem for macromedia as well, as they are familiar with this architecture. Maybe we could provide them with a list of questions regarding the building of components. Questions like: - How can i makea custom component skinnable? -- And how does the skinning of components work internally? - Say i want to build a 'wizard' (next, previous) component, how would u do it? - I want to make a component with buttons from wich the states are dynamicly loaded images combined with a label. The placement of the label is dependend of the available size of the component. In wich 'hook' would i place the check function. And how would i build a button component with different states? As u can see these are more practical based questions of problems i ran into. Im guessing that more of us developers are having these kind of questions. Greetz Erik From: Simon Fifield [mailto:[EMAIL PROTECTED] Sent: donderdag 24 maart 2005 14:59To: [EMAIL PROTECTED] ComSubject: [flexcoders] Custom Control Components Is it just me, or are custom control (actionscript) components really really difficult to get your head around? I am struggling with just about every aspect of creating custom controls, from deciding what to extend, through sizing/layout,right down to event handling. I have created some custom controls but they have never turned out to be what I really wanted. There is a real lack of documentation about this subject. I've read the Flex Components PDF, andI've read the relevant parts of Developing Flex Apps, but none of these really covers creating components in actionscript from scratch through to more advanced components at reasonable steps. Some of the more basic examples that are given require you to draw a circle in Flash first - I don't want to (and I know I shouldn't) have to use Flash to create a basic custom component. I would like a more in-depth discussion of what the various sizes are - _measuredXXX, preferredXXX, defaultXXXproperties etc A clearer explanation of the instantiation and display order/process. Perhaps a breakdown of some existing components that have both been built from scratch and has extended other components. Anyoneelsefindingthistopichard going like me? Kind Regards, Simon Fifield Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Populate a tree from a remote object result set
Flexcoders, I need help populate a tree with the data returned by a remote object. The remote object extracts some rows from the db and wrap them in value objects, ObjectLines and each Object Line has these properties ObjectLine with attribues:===- row1, A,B,C ObjectLine===- row2, A,B,C ObjectLine===- row3, A,B,C etc... and want to render the data in the tree like row1 + A + B + C row2 row3 Any suggestions? How do I transfer the list of value objects into a tree structure?. Here is the code I use, but without any luck. mx:RemoteObject id="oscAppRO" source="package.AppDelegate" mx:method name="getData" result="onResult(event)" fault="alert('Error getting the data')"/ /mx:RemoteObject function onResult( event ) : Void { var xml:XML = mx.utils.XMLUtil.createXML(event.result); var xmlnodeRoot:XMLNode = xml.firstChild; treeNavigation.dataProvider = xmlnodeRoot; } Thank you, Valy Do you Yahoo!? Make Yahoo! your home page Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] tile list
lol - ya know,, I forgot about that one... my brain is on overload ATM... On Thu, 24 Mar 2005 11:10:18 -0500, jeff tapper [EMAIL PROTECTED] wrote: Sounds like a better use for the HorizontalList component At 10:25 AM 3/24/2005, you wrote: Is there a way to force the tile list not to wrap at all? say I want to list all items horizontally on one row... is that possible? if not I have another idea how to do this... just curious... thanks! -- My Blog http://www.clinttredway.comhttp://www.clinttredway.com Are you diabetic? http://www.diabetesforums.comhttp://www.diabetesforums.com Yahoo! Groups Sponsor ADVERTISEMENT http://us.ard.yahoo.com/SIG=1295a3klr/M=298184.6191685.7192823.3001176/D=groups/S=1705007207:HM/EXP=764314/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075 click here -- Yahoo! Groups Links * To visit your group on the web, go to: * http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/group/flexcoders/ * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED][EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. Yahoo! Groups Links -- My Blog http://www.clinttredway.com Are you diabetic? http://www.diabetesforums.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] subclassing accordion control.
I hope I will be able to explain everything that is going on. I built a sublclass of the accordion control and the canvas container and use the canvas in the accordion. I first did this with mxml files and got the concept working with hard coded data etc. I am now working on converting both to action script. The canvas container with a tree control on it wasn't too bad. I was able to build that and swap that into my accordion mxml file and everything worked ok. One interesting note on that. In my canvas I am creating an instance of a tree and placing it on the canvas. If I override the init function the code doesn't work. If I add an event listener to the initialize event with the same code everything works. Any thoughts on this?? The second issue, which might be tied to the first, comes with trying to translate mxml to actionscript. In mxml I can write component:Folder label=users component:dataProvider mx:XML usergroup label=Admin user label=Jeff/user user label=Mike/user user label=Kathy/user /usergroup /mx:XML /component:dataProvider /component:Folder This seems to create the component and pass in the dataProvider. So in actionscript I would do something like var folder:Folder = new Folder(this.createSegment(Folder,,Users,)); folder.dataProvider = dataProvider; which doesn't seem to work since the object is created and initialized by the time I am setting the dataProvider. Can anyone explain how object are created and values passed when done in mxml so I can understand better how to translate that to a actionscript class to build reusable components. Thanks hope this makes some sense. Jeff -Original Message- From: Dirk Eismann [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 8:15 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] subclassing accordion control. Can I cast that to, in my example, a Folder class? yes, you can: var folder:Folder = Folder(this.createSegment(Folder,,Users,)); Dirk. Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Where a Flex app lives
I understand that there are two recommended ways to keep your Flex app on disk under Tomcat: 1) webapps/flex/myApp 2) webapps/myApp/WEB-INF/flex We are currently using the second method and when Tomcat first loads, the apps take up about 9MB of RAM each. Is there a way to reduce the initial memory footprint if we are using the second method via some kind of sharing mechanism among apps in webapps/? I am wondering if we can move some of the stuff in webapps/myApp/WEB- INF/flex to some place where multiple Tomcat webapps can share it. Thanks, -Will Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Flex on .Net? Any progress?
Hello all, Quick question. Are there any updates about flex being ported to .Net natively? We are running into some clients who really like flex but dont want to drop the current .Net infrastructure. Any thoughts / suggestions? Thanks Pushkar Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Flex on .Net? Any progress?
You could use web services! Works like a bomb. If using cairngorm, a rewrite to Remote Objects when Flex 2.0 ships is a matter of changing Services.mxml. If you want remoting but don't want to wait for 2.0, you could use FlashORB Remoting .NET 1.5 in the mean time (or forever, possibly) -Original Message- From: Pushkar Phatak [mailto:[EMAIL PROTECTED] Sent: 24 March 2005 07:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex on .Net? Any progress? Hello all, Quick question. Are there any updates about flex being ported to .Net natively? We are running into some clients who really like flex but dont want to drop the current .Net infrastructure. Any thoughts / suggestions? Thanks Pushkar Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Namespace Problems
I used a HTTP Service and ran the debugger. The elements still have the rdf: namespaces on their attribute resource. So I have no idea how to get to that. Any other ideas? I'm stumped. On Tue, 22 Mar 2005 22:21:43 -0800, Matt Chotin [EMAIL PROTECTED] wrote: I don't have time to setup my own test but I'd assume that model.Person.phone.resource would work. Try using a debugger to inspect the model and you can see how the object was built from the XML. Matt From: Jack Waknitz [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 8:49 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Namespace Problems I am using a HTTPService using default settings. Here is the rdf foaf file. Doing the attribute without the namespace didn't seem to work. Any further ideas about whats wrong? On Fri, 18 Mar 2005 21:09:20 -0800, Matt Chotin [EMAIL PROTECTED] wrote: Are you using HTTPService to get the data? Is resultFormat object (the default)? If so, there's no namespaces on the objects, we only store things by the local part of the qname. If your data isn't getting de-serialized correctly you may need to look into using your own xmlDecode function. Matt From: Jack Waknitz [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 2:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Namespace Problems I'm trying to grab some FOAF data and put it into Flex. Problem is, I don't know how to make the rdf:resources attribute on many of the elements show up. I just tried adding it as a path from a model (.rdf file) to a mx:Text element. I used the path model.Person.phone.rdf:resource. Flex won't let me use the colon in the path. I have experience with XSLT and to accomplish this you would just need to declare the namespace at the top and then you could do this. An example is the dc:creator element found in most RSS feeds. Anyone have any ideas about how to fix this? -- [ Jack ] Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- [ Jack ] Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- [ Jack ] Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Flex on .Net? Any progress?
That is awesome indeed. cairgorm is very helpful, and we are using parts of the websiervices thing.. i guess i want to make life *dead simple* from an integration perspective. Too much laziness on our part i think. Thanks again Robert! :) pushkar On Thu, 24 Mar 2005 19:29:53 +0200, Robert Stuttaford [EMAIL PROTECTED] wrote: You could use web services! Works like a bomb. If using cairngorm, a rewrite to Remote Objects when Flex 2.0 ships is a matter of changing Services.mxml. If you want remoting but don't want to wait for 2.0, you could use FlashORB Remoting .NET 1.5 in the mean time (or forever, possibly) -Original Message- From: Pushkar Phatak [mailto:[EMAIL PROTECTED] Sent: 24 March 2005 07:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex on .Net? Any progress? Hello all, Quick question. Are there any updates about flex being ported to .Net natively? We are running into some clients who really like flex but dont want to drop the current .Net infrastructure. Any thoughts / suggestions? Thanks Pushkar Yahoo! Groups Links Yahoo! Groups Links -- www.pushkar.net My World, Your View! Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Flex 1.5 exclued compiler?
Dear Sirs, I am newer for Flex. When I try Flex found difference between version 1.0 and 1.5. The Flex 1.0 had command-line compiler, and 1.5 haven't. That is true? I try command line mode as like as version 1.0, the system show error message Error: could not found JVM. I sure I installed the JDK/JRE version 1.5 and setup system variable parameter in my PC. I have some questions as following: Q1. Error: could not found JVM Thats sure mean Flex 1.5 needs execut in JSP service mode within JVM? or Q2. Some one can help me solve this problem? or teach me can I use command line mode to compiler flex's file? Q3. If Flex 1.5 doesn't support command-line compiler function, should I develop flex in version 1.0? Thanks and Regards, Anderson Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] How to pass AS Objects to a CFC
Hi Dirk, Thanks for your suggestion. But my condition differs from your example. Lets assume I had an AS Class 'MyClass.as' I am trying to do something like this in my MXML var o:Object = new MyClass(); I build an 'array of structures' in MyClass Object and I do pass the complex Object as input with another Object wrapper. Here's an example by Macromedia on how exchange complex data http://www.macromedia.com/devnet/flex/articles/complex_data_03.html According to macromedia When invoking methods remotely, you can pass objects back and forth (as the methods' input parameters and return value) between the client and the server. This example is explained with Java and I am trying to replicate the same with Coldfusion CFC's. Thanks, Mohanraj --- Dirk Eismann [EMAIL PROTECTED] wrote: Hi Mohanraj, CF needs named parameters when dealing with complex types passed as CFC arguments. You have to wrap the object you want to send to the CFC into another wrapper object. Inside the wrapper you define properties for every named argument. This should work: // AS snippet // setup the object to be passed to the CFC var o:Object = new Object(); o.name = Foo; o.date = new Date(); o.otherData = [1,2,3,4,5]; // create a wrapper for the object // input is the named argument of the CFC var request = new Object(); request.input = o; // send it ro.sendComplexData(request); The wrapper's input property is also used to identify the argument inside the CFC: !--- CFC snippet --- cffunction name=sendComplexData access=remote returntype=string cfargument name=input type=struct required=yes cfreturn obj.name /cffunction Dirk. -Original Message- From: Mohanraj Jayaraman [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 3:12 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to pass AS Objects to a CFC Hi Clint, Thanks for your reply. I think i was not clear ealrier on my problem. Here's a sample code I am dealing with. Please note the property 'modarray' of the 'pData' object. 'modarray' is populated with SelTP object _s whcih is an Array of Structures. Here I polupate the _s with selectedIndices of a data gris I am using. The required parameter 'MODARRAY' not passed to the function! is the message I get following my RemoteObject call Any idea what I am missing here. __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Flex 1.5 exclued compiler?
I had a problem similar to this. The compiler does in fact exist. In Flex 1.0 you could stick it in the path and it would execute just fine as long as you gave absolute paths to everything it was looking for. This doesn't appear to be true for 1.5. Flex support communicated to me that you are supposed to execute the mxmlce.exe from within its own directory. If you are in some other dir and try to do c:\blah\blah2\mxmlc.exe then it will blow up and give the error you have seen. Try running it from the same directory and see if that fixes your problem. -Original Message- From: Anderson [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 10:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 1.5 exclued compiler? Dear Sirs, I am newer for Flex. When I try Flex found difference between version 1.0 and 1.5. The Flex 1.0 had command-line compiler, and 1.5 haven't. That is true? I try command line mode as like as version 1.0, the system show error message Error: could not found JVM. I sure I installed the JDK/JRE version 1.5 and setup system variable parameter in my PC. I have some questions as following: Q1. Error: could not found JVM Thats sure mean Flex 1.5 needs execut in JSP service mode within JVM? or Q2. Some one can help me solve this problem? or teach me can I use command line mode to compiler flex's file? Q3. If Flex 1.5 doesn't support command-line compiler function, should I develop flex in version 1.0? Thanks and Regards, Anderson Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] How to pass AS Objects to a CFC
At work we figured out how to do this a little while back for the Tartan Framework (http://www.tartanframework.org). If you download the code, take a look at the file /tartan/vo/ValueObject.cfc, and in particular the getFlashRemotingData() and setFlashRemotingData() methods. On Thu, 24 Mar 2005 10:37:27 -0800 (PST), Mohanraj Jayaraman [EMAIL PROTECTED] wrote: Hi Dirk, Thanks for your suggestion. But my condition differs from your example. Lets assume I had an AS Class 'MyClass.as' I am trying to do something like this in my MXML var o:Object = new MyClass(); I build an 'array of structures' in MyClass Object and I do pass the complex Object as input with another Object wrapper. Here's an example by Macromedia on how exchange complex data http://www.macromedia.com/devnet/flex/articles/complex_data_03.html According to macromedia When invoking methods remotely, you can pass objects back and forth (as the methods' input parameters and return value) between the client and the server. This example is explained with Java and I am trying to replicate the same with Coldfusion CFC's. Thanks, Mohanraj --- Dirk Eismann [EMAIL PROTECTED] wrote: Hi Mohanraj, CF needs named parameters when dealing with complex types passed as CFC arguments. You have to wrap the object you want to send to the CFC into another wrapper object. Inside the wrapper you define properties for every named argument. This should work: // AS snippet // setup the object to be passed to the CFC var o:Object = new Object(); o.name = Foo; o.date = new Date(); o.otherData = [1,2,3,4,5]; // create a wrapper for the object // input is the named argument of the CFC var request = new Object(); request.input = o; // send it ro.sendComplexData(request); The wrapper's input property is also used to identify the argument inside the CFC: !--- CFC snippet --- cffunction name=sendComplexData access=remote returntype=string cfargument name=input type=struct required=yes cfreturn obj.name /cffunction Dirk. -Original Message- From: Mohanraj Jayaraman [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 3:12 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to pass AS Objects to a CFC Hi Clint, Thanks for your reply. I think i was not clear ealrier on my problem. Here's a sample code I am dealing with. Please note the property 'modarray' of the 'pData' object. 'modarray' is populated with SelTP object _s whcih is an Array of Structures. Here I polupate the _s with selectedIndices of a data gris I am using. The required parameter 'MODARRAY' not passed to the function! is the message I get following my RemoteObject call Any idea what I am missing here. __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Paul Kenney [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.pjk.us Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] flex on tomcat?
Jason, have you checked the install documentation. very simply put, the rendering file is an XML. At compile time, the xml (in this case an MXML) is compiled into a flash (.swf) file. You can use this file to deploy the app, assuming al other magic you did to get data , send data etc is also on the server. Not sure if you can get a business case outside the macromedia or iteraiontwo websites though. Helps?! Let meknow pushkar On Tue, 22 Mar 2005 12:16:52 +1100 (EST), jason davey [EMAIL PROTECTED] wrote: Can someone please direct me to a good resource for a non-tech to understand this technology. I need to understand how to pack the flex app and get it to an isp... thanks in advance jason Find local movie times and trailers on Yahoo! Movies. http://au.movies.yahoo.com Yahoo! Groups Links -- www.pushkar.net My World, Your View! Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Namespace Problems
I figured out a solution to the namespace problem. Do it in actionscript and use [rdf:resource]. Full solution here: http://pbj.ctlt.wsu.edu/wackynuts/archive/2005/03/24/2898.aspx On Thu, 24 Mar 2005 10:23:04 -0800, Jack Waknitz [EMAIL PROTECTED] wrote: Here's a screne shot of my watch file that I have set a few of the elements in. As you can see the rdf:resource attribute is showing in the list still. On Thu, 24 Mar 2005 09:33:11 -0800, Jack Waknitz [EMAIL PROTECTED] wrote: I used a HTTP Service and ran the debugger. The elements still have the rdf: namespaces on their attribute resource. So I have no idea how to get to that. Any other ideas? I'm stumped. On Tue, 22 Mar 2005 22:21:43 -0800, Matt Chotin [EMAIL PROTECTED] wrote: I don't have time to setup my own test but I'd assume that model.Person.phone.resource would work. Try using a debugger to inspect the model and you can see how the object was built from the XML. Matt From: Jack Waknitz [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 8:49 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Namespace Problems I am using a HTTPService using default settings. Here is the rdf foaf file. Doing the attribute without the namespace didn't seem to work. Any further ideas about whats wrong? On Fri, 18 Mar 2005 21:09:20 -0800, Matt Chotin [EMAIL PROTECTED] wrote: Are you using HTTPService to get the data? Is resultFormat object (the default)? If so, there's no namespaces on the objects, we only store things by the local part of the qname. If your data isn't getting de-serialized correctly you may need to look into using your own xmlDecode function. Matt From: Jack Waknitz [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 2:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Namespace Problems I'm trying to grab some FOAF data and put it into Flex. Problem is, I don't know how to make the rdf:resources attribute on many of the elements show up. I just tried adding it as a path from a model (.rdf file) to a mx:Text element. I used the path model.Person.phone.rdf:resource. Flex won't let me use the colon in the path. I have experience with XSLT and to accomplish this you would just need to declare the namespace at the top and then you could do this. An example is the dc:creator element found in most RSS feeds. Anyone have any ideas about how to fix this? -- [ Jack ] Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- [ Jack ] Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- [ Jack ] -- [ Jack ] -- [ Jack ] Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Flex 1.5 exclued compiler?
The Flex 1.0 had command-line compiler, and 1.5 haven't. That is true? Both Flex 1.0 and Flex 1.5 include a command-line compiler. I try command line mode as like as version 1.0, the system show error message Error: could not found JVM. I sure I installed the JDK/JRE version 1.5 and setup system variable parameter in my PC. Open bin/jvm.config and edit java.home to point to your java home directory. - Cathy Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] ActionScript/Java Data Type Mapping
I am looking for ActionScript/Java data type mapping Document. Can someone pass me the link or resource where I can refer. Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Calling Java Servlet
Hello, I am evaluating Flex. We have flash Remoting calling some servlets running on Websphere 5.1, and for my eval I am trying to build a similiar interface to them. So far I cannot find an example of how to do this (call a servlet with arguments) so I was hoping someone here could show me a tiny example, or offer corrections to my code? Using flash, we call a controller servlet using one or more arguments. ItemDefServlet(getAllRecords); -- like this in Flash In Flex, this is what I have: mx:RemoteObject type=servlet source=maintenance.ItemDefServlet protocol=http id=remoteobject1/mx:RemoteObject mx:DataGrid id=ItemDef_grd dataProvider={remoteobject2.getMessage.result} . . /mx:DataGrid mx:ControlBar mx:Button label=Get All click=remoteobject1.send() / /mx:ControlBar thanks, Libby Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Members' email addresses in the archives
It was brought to my notice today that the archives at mail-archive.com expose the email addresses of the members, and that this might be a privacy concern for some members. Those members concerned about this issue should read on. The rest can safely ignore this message and move on to more interesting things in life (like writing Flex apps). First off, the public archives at groups.yahoo.com _also_ expose the email addresses of the members. How else do you think did I manage to download the archives with all the right email addresses in them? Second, list members should be aware that this is a public mailing list and your email address can be retrieved by third parties one way or the other -- either by crawling the archives on the web, or by simply subscribing to the list and starting to receive email (much easier). Third -- the 90's are over! Thank you. Manish Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] How to pass AS Objects to a CFC
Mohanraj, I learned it the hard way. There are two ways to do it. 1. Flex side: var toPass = new MyClass(); toPass.var1 = value; toPass.var2 = value; remoteObject.cfFunction ( toPass ); CF Side: cffunction name=cfFunction access=remote cfargument name=var1 cfargument name=var2 /cffunction I'm sure it's not acceptable. 2. Flex Side: var toPass = new MyClass(); toPass.var1 = value; toPass.var2 = value; remoteObject.cfFunction ( toPass, true ); CF Side: cffunction name=cfFunction access=remote cfargument name=toPass /cffunction That works beautifully. The second arg from Flex doesn't have to be a boolean but it just easy to type. Please let me know if that works. -Original Message- From: Mohanraj Jayaraman [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 10:37 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How to pass AS Objects to a CFC Hi Dirk, Thanks for your suggestion. But my condition differs from your example. Lets assume I had an AS Class 'MyClass.as' I am trying to do something like this in my MXML var o:Object = new MyClass(); I build an 'array of structures' in MyClass Object and I do pass the complex Object as input with another Object wrapper. Here's an example by Macromedia on how exchange complex data http://www.macromedia.com/devnet/flex/articles/complex_data_03.html According to macromedia When invoking methods remotely, you can pass objects back and forth (as the methods' input parameters and return value) between the client and the server. This example is explained with Java and I am trying to replicate the same with Coldfusion CFC's. Thanks, Mohanraj --- Dirk Eismann [EMAIL PROTECTED] wrote: Hi Mohanraj, CF needs named parameters when dealing with complex types passed as CFC arguments. You have to wrap the object you want to send to the CFC into another wrapper object. Inside the wrapper you define properties for every named argument. This should work: // AS snippet // setup the object to be passed to the CFC var o:Object = new Object(); o.name = Foo; o.date = new Date(); o.otherData = [1,2,3,4,5]; // create a wrapper for the object // input is the named argument of the CFC var request = new Object(); request.input = o; // send it ro.sendComplexData(request); The wrapper's input property is also used to identify the argument inside the CFC: !--- CFC snippet --- cffunction name=sendComplexData access=remote returntype=string cfargument name=input type=struct required=yes cfreturn obj.name /cffunction Dirk. -Original Message- From: Mohanraj Jayaraman [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 3:12 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to pass AS Objects to a CFC Hi Clint, Thanks for your reply. I think i was not clear ealrier on my problem. Here's a sample code I am dealing with. Please note the property 'modarray' of the 'pData' object. 'modarray' is populated with SelTP object _s whcih is an Array of Structures. Here I polupate the _s with selectedIndices of a data gris I am using. The required parameter 'MODARRAY' not passed to the function! is the message I get following my RemoteObject call Any idea what I am missing here. __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ Yahoo! Groups Links This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message. To reply to our email administrator directly, send an email to [EMAIL PROTECTED] Littler Mendelson, P.C. http://www.littler.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Calling Java Servlet
Libby, If you are returning a chunck of XML one simple option is to call your servlet using the HTTPService Flex control. Using this approach you can attach the result to a data provide and Flex will wire it all up for you. An example of this can be found here [1]. It uses a JSP page instead of a servlet, but the concept is the same. Hope this helps, ~harris [1] http://flexapps.macromedia.com/flex15/explorer/explorer.mxml (See Dynamic Data Services - HTTP Service) --- Libby [EMAIL PROTECTED] wrote: Hello, I am evaluating Flex. We have flash Remoting calling some servlets running on Websphere 5.1, and for my eval I am trying to build a similiar interface to them. So far I cannot find an example of how to do this (call a servlet with arguments) so I was hoping someone here could show me a tiny example, or offer corrections to my code? Using flash, we call a controller servlet using one or more arguments. ItemDefServlet(getAllRecords); -- like this in Flash In Flex, this is what I have: mx:RemoteObject type=servlet source=maintenance.ItemDefServlet protocol=http id=remoteobject1/mx:RemoteObject mx:DataGrid id=ItemDef_grd dataProvider={remoteobject2.getMessage.result} . . /mx:DataGrid mx:ControlBar mx:Button label=Get All click=remoteobject1.send() / /mx:ControlBar thanks, Libby __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] subclassing accordion control.
On Thu, 24 Mar 2005 09:55:33 -0700, Jeff Krueger [EMAIL PROTECTED] wrote: If I override the init function the code doesn't work. If I add an event listener to the initialize event with the same code everything works. Any thoughts on this?? Are you calling super.init() from inside your init function? var folder:Folder = new Folder(this.createSegment(Folder,,Users,)); folder.dataProvider = dataProvider; which doesn't seem to work since the object is created and initialized by the time I am setting the dataProvider. What does your dataProvider setter function look like? Does it set the dataProvider on the Tree object? Manish Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Populate a tree from a remote object result set
On Thu, 24 Mar 2005 07:16:11 -0800 (PST), Valy Sivec [EMAIL PROTECTED] wrote: function onResult( event ) : Void { var xml:XML = mx.utils.XMLUtil.createXML(event.result); var xmlnodeRoot:XMLNode = xml.firstChild; treeNavigation.dataProvider = xmlnodeRoot; } I think this should work: treeNavigation.dataProvider = event.result; Manish Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Custom Preloader Questions
James, If you don't want the loader to go away after the application's creationComplete event, override the creationComplete function in your application and have it do nothing. Then call preloadObj.pBar.removeMovieClip(); when you want to get rid of the preloader. Note that if you override the creationComplete function, you will will break progressive layout, which is used when you set the creationPolicy of your containers to queued. Preloading can be thought of occurring in two phases, the download phase and the application loading phase. When the app is in the cache, it skips the download phase. Your custom preloader should be subclassing DownloadProgressBar. When the application loading phase starts, your custom progress bar will have its indeterminate property set to true. If you want to have more control over the appearance of your preloader in the application loading phase, override the set indeterminate function like this: function set indeterminate(val:Boolean):Void { // Do my animation here } Note that during this time, the type of animation you can do is pretty limited. The Player is spending most of its time loading up the application and has few cycles to dedicate to updating the stage. Jason -Original Message- From: James Ward [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 2:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Custom Preloader Questions Hi All. I have been messing with custom preloader stuff and a few questions have come up which I can't seem to find answers to, so I am turning to the guru's. Basically I want to control what my preloader looks like (this part is pretty straight forward), but I also want this preloader to stay on the screen for a little while beyond my app's creationComplete. I want it to stay up until I generate another event. The next thing is that I would like to use my custom preloader when the browser loads the swf from cache. I can't seem to override the default preloader in this instance. Only on the first, non-cached pull of the swf. Is this stuff possible? Thanks! -James Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Flex on .Net? Any progress?
I understand that .NET web services could be accessed easily enough, but how does that solve Pushkar's dilemma? Wouldn't his client still have to expand their infrastructure to support a J2EE app server? That could be expensive, not to mention a hard sell from if the client is doing their own admin. Am I missing something? Kris -- Kristopher Schultz Developer Resource Interactive p: 614.410.2123 www.resource.com From: Robert Stuttaford [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 12:30 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex on .Net? Any progress? You could use web services! Works like a bomb. If using cairngorm, a rewriteto Remote Objects when Flex 2.0 ships is a matter of changing Services.mxml.If you want remoting but don't want to wait for 2.0, you could use FlashORBRemoting .NET 1.5 in the mean time (or forever, possibly) Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Populate a tree from a remote object result set
Manish, I tried that and the "tree" will display [Object object] in the listI don't know if I made it clear that the remote object returns a list of value objects, lets say ValueObject. One of the properties I want to become the node and the others to be the leafs of the node. I tried the addChildren, createElement methods of the XML class but without much luck. Do you guys have any sample about the way a "tree" can be populated from a result set? Or how to add programatically elements to the tree from an Array?. Another option it would be that the RO method to return the result set as a String that contains XML tags...and use it in AS2... looks ugly to me... Thank you for your time, ValiManish Jethani [EMAIL PROTECTED] wrote: On Thu, 24 Mar 2005 07:16:11 -0800 (PST), Valy Sivec[EMAIL PROTECTED] wrote: function onResult( event ) : Void { var xml:XML = mx.utils.XMLUtil.createXML(event.result); var xmlnodeRoot:XMLNode = xml.firstChild; treeNavigation.dataProvider = xmlnodeRoot; } I think this should work:treeNavigation.dataProvider = event.result; Manish__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Calling Java Servlet
No, I'm returning an array of javabeans. At this point I am wondering if it is even possible to call a servlet from Flex since they don't have an example of doing it. I have successfully invoked some other java objects, but not servlets so far. --- In flexcoders@yahoogroups.com, Harris Reynolds [EMAIL PROTECTED] wrote: Libby, If you are returning a chunck of XML one simple option is to call your servlet using the HTTPService Flex control. Using this approach you can attach the result to a data provide and Flex will wire it all up for you. An example of this can be found here [1]. It uses a JSP page instead of a servlet, but the concept is the same. Hope this helps, ~harris [1] http://flexapps.macromedia.com/flex15/explorer/explorer.mxml (See Dynamic Data Services - HTTP Service) --- Libby [EMAIL PROTECTED] wrote: Hello, I am evaluating Flex. We have flash Remoting calling some servlets running on Websphere 5.1, and for my eval I am trying to build a similiar interface to them. So far I cannot find an example of how to do this (call a servlet with arguments) so I was hoping someone here could show me a tiny example, or offer corrections to my code? Using flash, we call a controller servlet using one or more arguments. ItemDefServlet(getAllRecords); -- like this in Flash In Flex, this is what I have: mx:RemoteObject type=servlet source=maintenance.ItemDefServlet protocol=http id=remoteobject1/mx:RemoteObject mx:DataGrid id=ItemDef_grd dataProvider={remoteobject2.getMessage.result} . . /mx:DataGrid mx:ControlBar mx:Button label=Get All click=remoteobject1.send() / /mx:ControlBar thanks, Libby __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Populate a tree from a remote object result set
On Thu, 24 Mar 2005 12:42:36 -0800 (PST), Valy Sivec [EMAIL PROTECTED] wrote: I tried that and the tree will display [Object object] in the list So you need to set the 'labelField' property on the Tree object. Manish Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Re: Calling Java Servlet
Libby, It is definitely possible to invoke a servlet from Flex b/c I have done it successfully. If you invoke a custom servlet though, the burden is on you to return data in a format that Flex can understand. I guess I am wondering why you want to invoke a custom servlet; it seems like you should be invoking the remoting gateway servlet that ships with Flex and automatically handles data (un)marshalling of java objects for you. See the RemoteObject component for more information. good luck, ~harris --- Libby [EMAIL PROTECTED] wrote: No, I'm returning an array of javabeans. At this point I am wondering if it is even possible to call a servlet from Flex since they don't have an example of doing it. I have successfully invoked some other java objects, but not servlets so far. --- In flexcoders@yahoogroups.com, Harris Reynolds [EMAIL PROTECTED] wrote: Libby, If you are returning a chunck of XML one simple option is to call your servlet using the HTTPService Flex control. Using this approach you can attach the result to a data provide and Flex will wire it all up for you. An example of this can be found here [1]. It uses a JSP page instead of a servlet, but the concept is the same. Hope this helps, ~harris [1] http://flexapps.macromedia.com/flex15/explorer/explorer.mxml (See Dynamic Data Services - HTTP Service) --- Libby [EMAIL PROTECTED] wrote: Hello, I am evaluating Flex. We have flash Remoting calling some servlets running on Websphere 5.1, and for my eval I am trying to build a similiar interface to them. So far I cannot find an example of how to do this (call a servlet with arguments) so I was hoping someone here could show me a tiny example, or offer corrections to my code? Using flash, we call a controller servlet using one or more arguments. ItemDefServlet(getAllRecords); -- like this in Flash In Flex, this is what I have: mx:RemoteObject type=servlet source=maintenance.ItemDefServlet protocol=http id=remoteobject1/mx:RemoteObject mx:DataGrid id=ItemDef_grd dataProvider={remoteobject2.getMessage.result} . . /mx:DataGrid mx:ControlBar mx:Button label=Get All click=remoteobject1.send() / /mx:ControlBar thanks, Libby __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Populate a tree from a remote object result set
Thanks Manish Now I see the label node but I want to add/set the leafs for each node to be theremaining properties of the value object Thank You, ValiManish Jethani [EMAIL PROTECTED] wrote: On Thu, 24 Mar 2005 12:42:36 -0800 (PST), Valy Sivec[EMAIL PROTECTED] wrote: I tried that and the "tree" will display [Object object] in the listSo you need to set the 'labelField' property on the Tree object.Manish Do you Yahoo!? Yahoo! Small Business - Try our new resources site! Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] tree indexOf
Hi, Just need a sanity check. It appears that newNode=parentNode.addTreeNode() returns the newly added node, if I then want to obtain the index of that newly added node wouldnt I do something like index = treeObj.dataProvider.indexOf(newNode) ? TIA Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] subclassing accordion control.
Sorry I'm an idiot. I do have it working by overriding the init() function. My problem had to do with the casting I was doing in my accordion with the createSegment. As for the dataProvider. In the example below I just had a public variable in my subclass, so there really wasn't any setter. I have changed this to a function called setDataProvider(dataProvider) and that is working. I believe there is a way that I could have inside my control bound the dataProvider property of the tree to the public variable that I was using before. But I can't remember the details of how that is done and this seems to be working fine. Thanks for all your help. Jeff -Original Message- From: Manish Jethani [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 1:10 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] subclassing accordion control. On Thu, 24 Mar 2005 09:55:33 -0700, Jeff Krueger [EMAIL PROTECTED] wrote: If I override the init function the code doesn't work. If I add an event listener to the initialize event with the same code everything works. Any thoughts on this?? Are you calling super.init() from inside your init function? var folder:Folder = new Folder(this.createSegment(Folder,,Users,)); folder.dataProvider = dataProvider; which doesn't seem to work since the object is created and initialized by the time I am setting the dataProvider. What does your dataProvider setter function look like? Does it set the dataProvider on the Tree object? Manish Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] image scroll
Hi, I think it is stupid question but I could not figure it out. I have an image in a Loader and I am not getting vertical as well as horizontal scroll bars when I zoom in the image. How to get scroll bars (both) on an image when user zoom it? I even tried with canvas but no help. Please help me. Thanks! Hari Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Flex on .Net? Any progress?
Kris, Yes, that is indeed true. the 'mixed' environment doesnt really go away fully. May be we just have to wait for a native .Net flex app? Pushkar On Thu, 24 Mar 2005 15:39:06 -0500, Kristopher Schultz [EMAIL PROTECTED] wrote: I understand that .NET web services could be accessed easily enough, but how does that solve Pushkar's dilemma? Wouldn't his client still have to expand their infrastructure to support a J2EE app server? That could be expensive, not to mention a hard sell from if the client is doing their own admin. Am I missing something? Kris -- Kristopher Schultz Developer Resource Interactive p: 614.410.2123 www.resource.com From: Robert Stuttaford [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 12:30 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex on .Net? Any progress? You could use web services! Works like a bomb. If using cairngorm, a rewrite to Remote Objects when Flex 2.0 ships is a matter of changing Services.mxml. If you want remoting but don't want to wait for 2.0, you could use FlashORB Remoting .NET 1.5 in the mean time (or forever, possibly) Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- www.pushkar.net My World, Your View! Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Flex on .Net? Any progress?
I don't think you are missing anything. We have a similar problem in our shop. We're primarily .NET here and to use flex we have to support a completely different platform. We're mostly just waiting for the .NET version. When that's released we'll port our applications to it and dump the J2EE servers. I just kinda expected the .NET version to be out by now... -- Matthew On Thu, 24 Mar 2005 16:27:23 -0500, Pushkar Phatak [EMAIL PROTECTED] wrote: Kris, Yes, that is indeed true. the 'mixed' environment doesnt really go away fully. May be we just have to wait for a native .Net flex app? Pushkar On Thu, 24 Mar 2005 15:39:06 -0500, Kristopher Schultz [EMAIL PROTECTED] wrote: I understand that .NET web services could be accessed easily enough, but how does that solve Pushkar's dilemma? Wouldn't his client still have to expand their infrastructure to support a J2EE app server? That could be expensive, not to mention a hard sell from if the client is doing their own admin. Am I missing something? Kris -- Kristopher Schultz Developer Resource Interactive p: 614.410.2123 www.resource.com From: Robert Stuttaford [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 12:30 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex on .Net? Any progress? You could use web services! Works like a bomb. If using cairngorm, a rewrite to Remote Objects when Flex 2.0 ships is a matter of changing Services.mxml. If you want remoting but don't want to wait for 2.0, you could use FlashORB Remoting .NET 1.5 in the mean time (or forever, possibly) Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- www.pushkar.net My World, Your View! Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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/
FW: [flexcoders] tree indexOf
Just a follow up on this...the tree I have is seeded with a few nodes; however, when I dynamically add the branches/leafs to those seeded nodes, the indexOf call fails on the newly added nodes. Perhaps I'm running into the grandchildren note the API docs refers too re: this method...however, if that was the case, why would the seeded values return valid index values, which on the start of building the tree are just leafs... TIA From: Rob [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 4:11 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] tree indexOf Hi, Just need a sanity check. It appears that newNode=parentNode.addTreeNode() returns the newly added node, if I then want to obtain the index of that newly added node wouldnt I do something like index = treeObj.dataProvider.indexOf(newNode) ? TIA Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] ActionScript/Java Data Type Mapping
Hi, Please see http://livedocs.macromedia.com/flex/15/flex_docs_en/2246.htm http://livedocs.macromedia.com/flex/15/flex_docs_en/0778.htm -lin From: Shahnavaz Alware [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 2:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] ActionScript/Java Data Type Mapping I am looking for ActionScript/Java data type mapping Document. Can someone pass me the link or resource where I can refer. Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] ActionScript/Java Data Type Mapping
Try http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/wwhelp.htm and go to Using Data Services - Working with remote object services - Converting data from * Andrew From: Shahnavaz Alware [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 1:50 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] ActionScript/Java Data Type Mapping I am looking for ActionScript/Java data type mapping Document. Can someone pass me the link or resource where I can refer. Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] image scroll
On Thu, 24 Mar 2005 16:16:18 -0500, Doodi, Hari - BLS CTR [EMAIL PROTECTED] wrote: I think it is stupid question but I could not figure it out. I have an image in a Loader and I am not getting vertical as well as horizontal scroll bars when I zoom in the image. How to get scroll bars (both) on an image when user zoom it? I even tried with canvas but no help. Please help me. How are you zooming it -- using scaleX anx scaleY? If the image fits within its parent container (after zooming), you won't get scrollbars. Manish Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Populate a tree from a remote object result set
On Thu, 24 Mar 2005 13:07:48 -0800 (PST), Valy Sivec [EMAIL PROTECTED] wrote: Now I see the label node but I want to add/set the leafs for each node to be the remaining properties of the value object You might have to massage the object into a format that would work. Original: object { node: foo leaf1: bar leaf2: wah } Modified: object { node: foo object { node: bar } object { node: wah } } I'm not very sure of this and can't experiment right away. Manish Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Re: Calling Java Servlet
Well, my custom servlet already exists. I have read all I can find on RemoteObject and have not discovered any mention of servlet, either mine or flex's. Could you tell me exactly where you are looking to get your info? Thanks, Libby --- In flexcoders@yahoogroups.com, Harris Reynolds [EMAIL PROTECTED] wrote: Libby, It is definitely possible to invoke a servlet from Flex b/c I have done it successfully. If you invoke a custom servlet though, the burden is on you to return data in a format that Flex can understand. I guess I am wondering why you want to invoke a custom servlet; it seems like you should be invoking the remoting gateway servlet that ships with Flex and automatically handles data (un)marshalling of java objects for you. See the RemoteObject component for more information. good luck, ~harris --- Libby [EMAIL PROTECTED] wrote: No, I'm returning an array of javabeans. At this point I am wondering if it is even possible to call a servlet from Flex since they don't have an example of doing it. I have successfully invoked some other java objects, but not servlets so far. --- In flexcoders@yahoogroups.com, Harris Reynolds [EMAIL PROTECTED] wrote: Libby, If you are returning a chunck of XML one simple option is to call your servlet using the HTTPService Flex control. Using this approach you can attach the result to a data provide and Flex will wire it all up for you. An example of this can be found here [1]. It uses a JSP page instead of a servlet, but the concept is the same. Hope this helps, ~harris [1] http://flexapps.macromedia.com/flex15/explorer/explorer.mxml (See Dynamic Data Services - HTTP Service) --- Libby [EMAIL PROTECTED] wrote: Hello, I am evaluating Flex. We have flash Remoting calling some servlets running on Websphere 5.1, and for my eval I am trying to build a similiar interface to them. So far I cannot find an example of how to do this (call a servlet with arguments) so I was hoping someone here could show me a tiny example, or offer corrections to my code? Using flash, we call a controller servlet using one or more arguments. ItemDefServlet(getAllRecords); -- like this in Flash In Flex, this is what I have: mx:RemoteObject type=servlet source=maintenance.ItemDefServlet protocol=http id=remoteobject1/mx:RemoteObject mx:DataGrid id=ItemDef_grd dataProvider={remoteobject2.getMessage.result} . . /mx:DataGrid mx:ControlBar mx:Button label=Get All click=remoteobject1.send() / /mx:ControlBar thanks, Libby __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Modal Transparency Color
Try mx:Styles global { modalTransparency: #88 } /mx:Styles - Gordon -Original Message- From: Scott Barnes [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 1:23 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Modal Transparency Color heh.. thanks *feels stupid* ;) On Thu, 24 Mar 2005 10:10:56 +0100, Dirk Eismann [EMAIL PROTECTED] wrote: Every modal popup has a property called modalWindow which points to the MovieClip that was used to create the modal layer. Good ol' setRGB on that thing should work: var win = mx.managers.PopUpManager.createPopUp(this, mx.containers.Panel, true); var c:Color = new Color(win.modalWindow); c.setRGB(0xff); Dirk. -Original Message- From: Scott Barnes [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 6:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Modal Transparency Color Forgive me if this has been asked a million times but how doth i change the color of the modal transparency layer from white to say red? Yahoo! Groups Links -- Regards, Scott Barnes http://www.mossyblog.com http://www.flexcoder.com (Coming Soon) Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] SWF Timeout
I dont believe thats how it works but I dont know the details. How are you compiling, through the server or through mxmlc? When the server starts check the console window (or just check flex.log in web-inf/flex/logs) and see what prints out for the license info. Matt From: JesterXL [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 5:07 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] SWF Timeout It is. I guess I can only get non-expiring SWF's with a true, full license then? - Original Message - From: Matt Chotin To: flexcoders@yahoogroups.com Sent: Wednesday, March 23, 2005 11:06 PM Subject: RE: [flexcoders] SWF Timeout Make sure that license.properties is filled in in web-inf/flex for your flex server. You need your NCL serial number in there. Matt From: Abdul Qabiz [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 23, 2005 4:03 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] SWF Timeout Hmm, with developer version, it's going to be there, it can not be removed. I presume you have Non-Commercial license version, I am sorry, I am not sure about it. Someone with good understanding of Flex Licensing might explain... -abdul -Original Message- From: JesterXL [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 5:18 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] SWF Timeout SWF expires after 2 days thing. - Original Message - From: Abdul Qabiz [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, March 23, 2005 6:38 PM Subject: RE: [flexcoders] SWF Timeout You mean, A script in this movie is causing You can increase the limits in Application tag..Following shows default.. mx:Application scriptRecursionLimit=1000 scriptTimeLimit=60 ... ../mx:Application Or are you talking about SWF expires after two days thing? -abdul -Original Message- From: JesterXL [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 4:59 AM To: Flexcoders Subject: [flexcoders] SWF Timeout How do you turn this off? Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Caching of HTTPService Requests
Beyond this though, are you using a JSP or servlet to return the data? I have found these cache settings to work in all browsers Ive tried: response.setHeader(Cache-Control, no-cache); response.setDateHeader(Expires, 94608000L); //Approx Jan 1, 2000 response.setHeader(Pragma, no-cache); Matt From: Manish Jethani [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 6:36 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Caching of HTTPService Requests On Thu, 24 Mar 2005 14:12:07 -, Shell Bryson [EMAIL PROTECTED] wrote: Yes, but remember you have no REAL control over how a client caches a page. Several major browser munge the way they handle caching and/or offline browsing. There could be multiple caches between the end user and the server, and one or more of these may totally ignore cache meta tags. Not something to rely on. If you absolutely, totally, seriously :) want to refresh the data, just append some random string to the URL. The 'url' property of HTTPService can be modified at runtime. Manish Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Namespace Problems
Glad you found the way to access those variables. Im not sure why the namespace was included in the name though, it should have been stripped out. Can you please file the issue at http://www.macromedia.com/go/wish and well see if we can make sure something like this is handled in future versions. Thanks, Matt From: Jack Waknitz [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 11:04 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Namespace Problems I figured out a solution to the namespace problem. Do it in actionscript and use [rdf:resource]. Full solution here: http://pbj.ctlt.wsu.edu/wackynuts/archive/2005/03/24/2898.aspx On Thu, 24 Mar 2005 10:23:04 -0800, Jack Waknitz [EMAIL PROTECTED] wrote: Here's a screne shot of my watch file that I have set a few of the elements in. As you can see the rdf:resource attribute is showing in the list still. On Thu, 24 Mar 2005 09:33:11 -0800, Jack Waknitz [EMAIL PROTECTED] wrote: I used a HTTP Service and ran the debugger. The elements still have the rdf: namespaces on their attribute resource. So I have no idea how to get to that. Any other ideas? I'm stumped. On Tue, 22 Mar 2005 22:21:43 -0800, Matt Chotin [EMAIL PROTECTED] wrote: I don't have time to setup my own test but I'd assume that model.Person.phone.resource would work. Try using a debugger to inspect the model and you can see how the object was built from the XML. Matt From: Jack Waknitz [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 8:49 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Namespace Problems I am using a HTTPService using default settings. Here is the rdf foaf file. Doing the attribute without the namespace didn't seem to work. Any further ideas about whats wrong? On Fri, 18 Mar 2005 21:09:20 -0800, Matt Chotin [EMAIL PROTECTED] wrote: Are you using HTTPService to get the data? Is resultFormat object (the default)? If so, there's no namespaces on the objects, we only store things by the local part of the qname. If your data isn't getting de-serialized correctly you may need to look into using your own xmlDecode function. Matt From: Jack Waknitz [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 2:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Namespace Problems I'm trying to grab some FOAF data and put it into Flex. Problem is, I don't know how to make the rdf:resources attribute on many of the elements show up. I just tried adding it as a path from a model (.rdf file) to a mx:Text element. I used the path model.Person.phone.rdf:resource. Flex won't let me use the colon in the path. I have experience with XSLT and to accomplish this you would just need to declare the namespace at the top and then you could do this. An example is the dc:creator element found in most RSS feeds. Anyone have any ideas about how to fix this? -- [ Jack ] Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- [ Jack ] Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- [ Jack ] -- [ Jack ] -- [ Jack ] Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Redraw problems with TileList and custom cell re nderer
This one I was able to help I hope J ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml horizontalAlign=center verticalAlign=middle mx:Script ![CDATA[ function setValue(str:String, item:Object) { image.source = item.imageUrl; //image.width = this.width; //image.height = this.height; } function getPreferredWidth() : Number { return listOwner.itemWidth; } function getPreferredHeight() : Number { return listOwner.itemHeight; } var listOwner : mx.controls.TileList; ]] /mx:Script mx:Image id=image scaleContent=true width=100% height=100% / /mx:VBox From: Kristopher Schultz [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 7:31 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Redraw problems with TileList and custom cell renderer I was able to find a work around...kind of. Instead of relying on data binding in my custom cell renderer I now set the new source value for the Image inside the setValue() function (see the code below). This seems to fix the image disappearance problem. But now I have a new problem. I can't seem to find any way to get the image to fill the entire cell after a resize. It just remains the same size that it was rendered initially. I've tried a number of things and just can't get it to work. What am I doing wrong?? MyCustomCellRenderer.mxml ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml horizontalAlign=center verticalAlign=middle mx:Script ![CDATA[ function setValue(str:String, item:Object) { image.source = item.imageUrl; } ]] /mx:Script mx:Image id=image scaleContent=true width=100% height=100% / /mx:VBox Kris -- Kristopher Schultz Developer Resource Interactive p: 614.410.2123 www.resource.com I just tried a big number of things both documented and undocumented and couldnt get it to work correctly. I have no idea why since this is something I thought we tested (though maybe it was with embedded images and not dynamically loaded). Ill file a bug on this but I dont have any good suggestions right now. Everything Ive looked at makes it seem like it should do the right thing. Sorry! Matt Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] tree indexOf
Which index do you want, the index of the node within its parent or the visible index within the tree itself? indexOf always returns the index within the parent. If you pass a node that is not a child of the TreeDataProvider youre asking I think it will return undefined. The reason why the seeded values would work is that they are children of the root dataProvider, right? If youre looking for the visible index you can call getDisplayIndex() which is defined on Tree. Matt From: Rob [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 1:49 PM To: flexcoders@yahoogroups.com Subject: FW: [flexcoders] tree indexOf Just a follow up on this...the tree I have is seeded with a few nodes; however, when I dynamically add the branches/leafs to those seeded nodes, the indexOf call fails on the newly added nodes. Perhaps I'm running into the grandchildren note the API docs refers too re: this method...however, if that was the case, why would the seeded values return valid index values, which on the start of building the tree are just leafs... TIA From: Rob [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 4:11 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] tree indexOf Hi, Just need a sanity check. It appears that newNode=parentNode.addTreeNode() returns the newly added node, if I then want to obtain the index of that newly added node wouldnt I do something like index = treeObj.dataProvider.indexOf(newNode) ? TIA Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Binding we are confused
I think you're right that binding may not be the best solution here. What if your TextInput looked like this: mx:TextInput id=cdc width=35 text={ CTabellaSviluppoVO(vosviluppo[key]).tga1sv==undefined ? '':CTabellaSviluppoVO(vosviluppo[key])['tga'+r.currentIndex+'sv']} / That would get the proper text from your array based on the key into the TextInput I think. Now you want to copy it back, you can either use a for loop for all fields that would be triggered by a button: function updateVO() { for (var i=0; icdc.length; ++i) { vosviluppo[key]['tga'+i+'sv'] = cdc[i].text; } } Or if you didn't want the button you could maybe use the change event on the text input (or valueCommitted) to do the copy: mx:TextInput ... valueCommitted= vosviluppo[key]['tga'+event.target.getRepeaterIndex()+'sv'] = event.target.text / Does that make sense? Hopefully we're talking about an independent array here. Remember, if your VO is also being shown in a DataGrid or List you may want to use the editField method on the dataProvider as opposed to changing vosviluppo[key] directly. Matt From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 5:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Binding we are confused sorry Matt, but i haven't understand you can explain me please? :-( I have also post this question in Macromedia Italia tech (Enrique) but without success because if you look our binding , it's ok work, but i think that there are a better solution than ours. I make you an example that yesterday it has aroused a some of problems. I have an array : mx:HBox mx:Repeater id=r dataProvider={taglie} recycleChildren=true mx:FormItem label={r.currentItem} required={r.currentItem!=tg_base} mx:TextInput id=cdc width=35 text=0 / /mx:FormItem /mx:Repeater /mx:HBox These TextInput they would owe to be to bind with our vo object (see attachment). but in progressive mode, for example cdc[0].text=vo.tga1sv cdc[1].text=vo.tga2sv .. cdc[10].text=vo.tga10sv and when user chage some TextInput and click theUpdate button we have to hold the object VO syncronized . Now we are using a circular binding , but ok work, but throws warnings in the second line, and and honestly i'm worried, in what I think there will be a valid alternative, !--Taglie -- mx:Binding source={CTabellaSviluppoVO(vosviluppo[key]).tga1sv==undefined ? '':CTabellaSviluppoVO(vosviluppo[key]).tga1sv} destination=cdc[0].text / mx:Binding source=cdc[0] destination=CTabellaSviluppoVO(vosviluppo[key]).tga1sv / yesterday in Macromedia Tech Italy have recommended us to use a circular binding unfortunately, but in my case it doesn't seem you an ugly solution, and besides I receive some warnings therefore I think about having adopted a wrong solution for my case. Any suggestion it's MUCH MUCH appreciate. Devis Matt Chotin ha scritto: Hi Devis, I think you're asking how to use binding to do an insert as opposed to an edit operation? This is probably hard to do with binding. Instead what I'd do is simply have a button or some other mechanism that will do the addition for you and only use binding to copy out for the VO. Matt *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *Sent:* Tuesday, March 22, 2005 11:32 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Binding with amf Hi, it's correct, or there is a best way, this binding about you? mx:Binding source=t_rig.text destination=CTabellaSviluppoVO(vosviluppo[key]).pk.rifesv / mx:Binding source={CTabellaSviluppoVO(vosviluppo[key]).pk.rifesv==undefined ? '': CTabellaSviluppoVO(vosviluppo[key]).pk.rifesv} destination=t_rig.text / In my project, when scroll the VO object bind the t_rig.text, but if i wish to insert a new VO the value of t_rig.text will into into vosviluppo[key]).pk.rifesv. Please can you give me more ligth about this concept. Devis *Yahoo! Groups Sponsor* ADVERTISEMENT click here http://us.ard.yahoo.com/SIG=1294bon7h/M=298184.6191685.7192823.3001176/D=gr oups/S=1705007207:HM/EXP=645956/A=2593423/R=0/SIG=11el9gslf/*http://www. netflix.com/Default?mqso=60190075 *Yahoo! Groups Links* * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/. Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of
Re: [flexcoders] Cross Domain Policy
The contents of the crossdomain xml file: cross-domain-policy allow-access-from domain=* to-ports=* secure=false / /cross-domain-policy If this file resides in the root of the server, it works but if we keep this file in the root of the virtual directory where asp files are published and try to load through sytem.security.loadPolicyFile() it doesn't work. Regards, Dipti mane Abdul Qabiz wrote: What do you have in crossdomain.xml? Are you adding the correct domain or IP? It should be like this: ##crossdomain.xml## cross-domain-policy allow-access-from domain=domain_or_ip_of_flex_or_flash_app_loading_data / /cross-domain-policy Please post the content of your crossdomain.xml More info on crossdomain.xml: http://livedocs.macromedia.com/flex/15/flex_docs_en/0894.htm -abdul -Original Message- From: Ketan Bengali [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 4:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cross Domain Policy On behalf of my colleague, Dipti Mane. Hello All, I'm trying to load an asp file by using XML.load() method in an application. This asp file resides on a different server and the crossdomain.xml file cannot be in the root folder of the server. Flex documentation says that it's possible to load policy files from different location but it's not working. I have kept the crossdomain.xml in the same folder where the asp file is. Following is the code I'm for the same... initApp function is called on the initialize event of the application. function initApp(){ System.security.loadPolicyFile(http://servername/dir/crossdomain.xml;); } function TestXML(){ var oXML:XML = new XML() oXML.ignoreWhite=true; oXML.onLoad=oXML_onLoad; oXML.load(http://servername/dir/test.asp;); } Please help... http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/w whelp.htm?href=part2_de.htm Regards, -Dipti. Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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/