[flexcoders] prompt property in ComboBox as array?
Hi flexcoders, There's a prompt property in the ComboBox control in Flex 1.5. The value can be either a string or an array (I bet you didn't know about the array bit ;) ) e.g. mx:ComboBox dataProvider={['1', '2', '3']} prompt=-select one- / mx:ComboBox dataProvider={['1', '2', '3']} prompt={['a', 'b', 'c']} / In the second example, the items 'a', 'b' and 'c' get displayed in the dropdown list as prompts. Has anyone ever used prompt as an _array_? What was the use-case? (Reply only if you've used it as an _array_ in a real application.) Manish -- l33t f3lx h4x0r m4cr0m3d14 Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] flex 2 [feature request]: Image complete event - need init event
On 11/9/05, Muzak [EMAIL PROTECTED] wrote: [snip] So it would be nice to have an init event for the Image control so we don't have to jump through hoops when we need to retrieve width, height, etc.. of loaded content. In fact, (IMO) dump the complete event and replace with init ;-) Thanks, I've logged a bug. flash.display.Loader has 8 events and only 4 are exposed through the Loader component. I think all 8 should be exposed. Meanwhile, I think you'll have to access the internal flash.display.Loader instance using the 'content' property and listening for the 'init' event on that directly. Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] Resizing a TitleWindow to size of contents?
On 11/9/05, charged2885 [EMAIL PROTECTED] wrote: I have a title window with a viewstack with 2 states. The initial state is a simple form, the second state is a simple indeterminate progressbar. I'd like my TitleWindow to resize smoothly to the size of my ViewStack. Sadly, TitleWindow has no resizeToContents property. what is the reccomended way of doing this? can anyone offer an example? I think you should maybe just bind the TitleWindow's width and height properties to those of the ViewStack (adding some space for margins, etc.)? Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] How to prevent events from passing through upper components
On 11/6/05, Matt Freer [EMAIL PROTECTED] wrote: e.g. my_rectangle.onPress = function(){}; my_rectangle.useHandCursor = false; my_rectangle.enabled = false; I'd be interested to know if there is another way to achieve this in AS3? Same, except that you also have to set mouseEnabled=true on my_rectangle. Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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/
[flexcoders] RE: FileIO Example
We have been messing with the fileIO.swf tutorial and have tried everything in the book to get it working with no luck, can anyone help with some suggestions, when we unzip it the main.mxml will not even load the browse window. We would also like to handle the file with php vs cf but we cant even get the cf version working... I have converted the fileIO.swf example to work with the FileReferenceList class to allow for multiple file uploads. I can also help out with using PHP instead of CF. Let me know what sort of problems you are having. Simon Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] Re: Tab Navigator or LinkBar text color after selection
On 11/7/05, Andriy Panas [EMAIL PROTECTED] wrote: I tried disabledColor with LinkBar, and failed... mx:LinkBar id=lb1 dataProvider={['Flex','Flash','Dreamweaver','Breeze']} disabledColor==#FF/ When I see at http://weblogs.macromedia.com/mc/archives/FlexStyleExplorer.html that disabledColor works in combination with LinkBar... I just cannot repeat it in my application. disabledColor applies only to disabled links. In your example, none of the links are disabled! When a LinkBar is bound to a ViewStack, the link associated with the currently selected view gets disabled. Not the same for your example, where you're linking it to simple array. Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] Flex2: link not working with non selectable html text
Thanks for reporting this, I've logged a bug. On 11/5/05, Muzak [EMAIL PROTECTED] wrote: When setting the selectable property to false of a Text tag, anchor tags (a href='') no longer work. mx:Text width=100% selectable=false id=info_txt mx:htmlText ![CDATA[info: a href='http://www.muzakdeezign.com/mxi_creator'http://www.muzakdeezign.com/mxi_creator/a]] /mx:htmlText /mx:Text Works fine when removing the selectable prop. Both work fine in Flex 1.5. regards, Muzak Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] Re: Flex 2:Can you center a popup from the inside?
Can you give me a standalone test case to reproduce it? (cc to [EMAIL PROTECTED]) On 11/5/05, Muzak [EMAIL PROTECTED] wrote: In addition to this. I tried adding a Stage resize event listener to a TitleWindow (inside a custom mxml component which extends TitleWindow) in order to be able to keep it centered. When doing so I receive the following error, when resizing the swf: TypeError: Error #1009: null has no properties. at mx.managers::PopUpManager$/resizeHandler()[C:\dev\max\sdk\frameworks\mx\managers\PopUpManager.as:479] at flash.events::EventDispatcher/dispatchEvent() at mx.managers::SystemManager/SystemManager$71$private::Stage_resizeHandler()[C:\dev\max\sdk\frameworks\mx\managers\SystemManager.as:1724] The odd part here is the paths being referred to: C:\dev\max\sdk\frameworks\mx\managers\PopUpManager.as C:\dev\max\sdk\frameworks\mx\managers\SystemManager.as No such files or directories here. Not sure if it has anything to do with it, but thought I'd mention it anyway. regards, Muzak Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] Re: Tab Navigator or LinkBar text color after selection
There was a similar solution found for the LinkBar, I guess it could be applied to the Tab Navigator(?) http://www.mail-archive.com/flexcoders@yahoogroups.com/msg09363.html Philippe Maegerman From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish JethaniSent: mercredi 9 novembre 2005 11:38To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Tab Navigator or LinkBar text color after selection On 11/7/05, Andriy Panas [EMAIL PROTECTED] wrote: I tried disabledColor with LinkBar, and failed... mx:LinkBar id="lb1" dataProvider="{['Flex','Flash','Dreamweaver','Breeze']}" disabledColor=""="#FF"/ When I see at http://weblogs.macromedia.com/mc/archives/FlexStyleExplorer.html that disabledColor works in combination with LinkBar... I just cannot repeat it in my application.disabledColor applies only to disabled links. In your example, noneof the links are disabled!When a LinkBar is bound to a ViewStack, the link associated with thecurrently selected view gets disabled. Not the same for your example,where you're linking it to simple array. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. --**STATEMENT OF CONFIDENTIALITY** This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.--
Re: [flexcoders] Re: Flex 2:Can you center a popup from the inside?
When I tried to reproduce this in a seperate project I did not get the error at first. So I started adding some content from the original app. First thing I added was a MenuBar control, from which the TitleWindow is normally opened. As soon as I added a change event handler for the MenuBar (and importing the mx.events.MenuEvent class), the error occured. I've uploaded the test project here: http://www.muzakdeezign.com/flex2/TitleWindowTest.zip kind regards, Muzak - Original Message - From: Manish Jethani [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, November 09, 2005 11:56 AM Subject: Re: [flexcoders] Re: Flex 2:Can you center a popup from the inside? Can you give me a standalone test case to reproduce it? (cc to [EMAIL PROTECTED]) On 11/5/05, Muzak [EMAIL PROTECTED] wrote: In addition to this. I tried adding a Stage resize event listener to a TitleWindow (inside a custom mxml component which extends TitleWindow) in order to be able to keep it centered. When doing so I receive the following error, when resizing the swf: TypeError: Error #1009: null has no properties. at mx.managers::PopUpManager$/resizeHandler()[C:\dev\max\sdk\frameworks\mx\managers\PopUpManager.as:479] at flash.events::EventDispatcher/dispatchEvent() at mx.managers::SystemManager/SystemManager$71$private::Stage_resizeHandler()[C:\dev\max\sdk\frameworks\mx\managers\SystemManager.as:1724] The odd part here is the paths being referred to: C:\dev\max\sdk\frameworks\mx\managers\PopUpManager.as C:\dev\max\sdk\frameworks\mx\managers\SystemManager.as No such files or directories here. Not sure if it has anything to do with it, but thought I'd mention it anyway. regards, Muzak Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] remote object without mx:RemoteObject, is it possible?
Well... I'm sure it's possible... if you go into your flex-config.xml and turn on keep-generated-as.. you'll be able to see the code macromedia uses to setup the remote objects. On 11/6/05, mpaliyenko [EMAIL PROTECTED] wrote: Hi guysI'm quite new to Flex and have a qusetion.Is it possible to perform server call without declaring RemoteObject in MXML. The reason why I need it is following:I'm trying to fix some things that I do not like in cairnrogmframework. One of them is that all remote objects must be declared insingle place.We have a tens of applications that share the same services and I do not want to create the single Service.mxml for them also I do not liketo create tens of them and duplicate services declarations.Another thing I do not like is code duplicationsmx:RemoteObject id=memberManagerService source=memberManager result=event.call.resultHandler(event) fault=event.call.faultHandler (event) /mx:RemoteObject mx:RemoteObject id=authenticationManagerService source=authenticationManager result=event.call.resultHandler(event) fault=event.call.faultHandler(event) /mx:RemoteObject result and fault attributes are the same. I think this can be fixed ifi could initialize RemoteObject from ActionScript programmatically.I was trying to find the solution in docs but they sucks. They declare mx.servicetags.RemoteObject as tag and since the source of that tag isnot availiable I do not know how to initialize it programmatically.Can anyone help?Thanx in advanceMykola Yahoo! Groups Sponsor ~--Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM~---Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. 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] How to prevent events from passing through upper components
Hi Simon Not had a minute spare yet. I need to find out how bCentral expects the site to be set up and hten the forms can be implemented Toby Original Message: - From: Manish Jethani [EMAIL PROTECTED] Date: Wed, 9 Nov 2005 16:03:28 +0530 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to prevent events from passing through upper components On 11/6/05, Matt Freer [EMAIL PROTECTED] wrote: e.g. my_rectangle.onPress = function(){}; my_rectangle.useHandCursor = false; my_rectangle.enabled = false; I'd be interested to know if there is another way to achieve this in AS3? Same, except that you also have to set mouseEnabled=true on my_rectangle. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links mail2web - Check your email from the web at http://mail2web.com/ . Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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/
[flexcoders] Lazy loading components
I'm curious what others have found as a solution to this sort of situation I find myself in. I'm considering converting a rather large management console into Flex 2.0 (obviously not publicly available until the production release) and David Mendels informed me that my particular concern might be able to be addressed here. The interface would be rather large and what I would really like to do is compile discrete sections of the application using separate MXML files and then have the compiled swc's or swf's lazy loaded when that part of the application is accessed. It looks as though RSL's still load all the libraries without any sense of priority. I would prefer that the libraries, swc's or whatever are only loaded when specified either through a MXML tag (to allow the libraries to be buffered and loaded before the user is expected to need it) or when accessed. The preferable method would obviously be to allow one to create SWC's, reference them in the MX:Application tag, and then be able to do something like MX:loadLibrary library=someswcref onLoad=someFunction() / and allow the object to be loaded with a callback once its loaded. That would not only allow a developer to load objects when a user may potentially want to use it, but it would allow for a callback so it could potentially have a loading state end once the SWC is loaded. I know a person could simply load the SWF using the load call but that seems to put up walls of what parts can interact with other parts. I'm not entirely sure as to how the scope is affected with a load call, but I suspect you don't have the access you would have in an application that's directly loaded. Having it built in to allow lazy loading would seem to allow large applications. There has to be something like this as anything network wise needs to have methods to be concerned with network utilization. -Courtney Couch www.courtneycouch.com Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] Re: Problem with type casting a TreedataProvider back to array...
I've done the same thing as you said, if you look at the code once again you can clearly note that treeDetails is an Object and not an array, yet can't find the solution for it. For your referance please see the mxml file below. Regards, Arun ?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"width="100%"height="100%"marginBottom="0"marginLeft="0"marginRight="0"marginTop="0"verticalGap="0"horizontalGap="0"mx:RemoteObjectid="RO"result="treeDetails.children=event.result"fault="mx.controls.Alert.show((event.fault.faultstring, 'Error'))"source="Tree.BuildTree"showBusyCursor="true" mx:method name="getTreeData" / /mx:RemoteObjectmx:Panel creationComplete="RO.getTreeData();" width="258" height="471"mx:Script![CDATA[ var treeDetails: Object = [{name: "Base"}];var srcNode: Object;var srcParentNode : Object;public function onClickOfUpdate(){//var arr:Array = mx.utils.ArrayUtil.toArray(treeComponent.dataProvider);var arr:Array = treeComponent.dataProvider.getProperty("children");RO.updateTreeData(arr);}public function treeClick(event){srcParentNode = treeComponent.selectedNode.getParent();}function onClickOfUp(){if(srcParentNode.indexOf(treeComponent.selectedNode) 0){var srcNode = treeComponent.selectedNode;var index = srcParentNode.indexOf(srcNode);srcParentNode.removeTreeNodeAt(srcParentNode.indexOf(treeComponent.selectedNode));srcParentNode.addTreeNodeAt(index-1, srcNode);}else if(srcParentNode.getProperty('name') == undefined || srcParentNode.indexOf(treeComponent.selectedNode) == undefined) // when no node is selected{mx.controls.Alert.show("Please select a node before moving or The selected node is the Root node");}else // Selected node is the first node of its parent{mx.controls.Alert.show("Can't Move further Up");}}function onClickOfDown(){/* if the selected node last node of it's parent, move the node a position below */if(srcParentNode.indexOf(treeComponent.selectedNode) srcParentNode.getChildNodes().length-1){var srcNode = treeComponent.selectedNode;var index = srcParentNode.indexOf(srcNode);srcParentNode.removeTreeNodeAt(index);srcParentNode.addTreeNodeAt(index + 1,srcNode);}else if(srcParentNode.getProperty('name') == undefined || srcParentNode.indexOf(treeComponent.selectedNode) == undefined) // when no node is selected{mx.controls.Alert.show("Please select a node before moving or The selected node is the Root node");}else // Selected node is the last node of its parent{mx.controls.Alert.show("Can't move further down");}}]]/mx:Scriptmx:HBox horizontalAlign="center" verticalAlign="middle" width="99%" height="40"mx:Button label="Up" click="onClickOfUp();" /mx:Button label="Down" click="onClickOfDown();" /mx:Button label="Update" click="onClickOfUpdate();" //mx:HBoxmx:Tree id = "treeComponent"dataProvider="{treeDetails.children}"labelField="name"cellPress="treeClick(event);" width="100%"height="86%"marginBottom="0"marginLeft="0"marginRight="0"marginTop="0"verticalGap="0"horizontalGap="0"borderThickness="0"backgroundSize="0"borderSides="0" hScrollPolicy="auto"vScrollPolicy="auto"fontFamily="Arial"fontSize="12"fontWeight="bold"/ /mx:Panel/mx:Application !-- End of TreeCmp -- Matt Chotin [EMAIL PROTECTED] wrote: You need to make sure that the dataProvider you assign to the Tree is single Object, not an array. So where you have treeDetails that should not be an Array but perhaps just the object. I would then also wait to assign the Tree.dataProvider until the result has come back. That way you can set up the whole structure, assign the dataProvider, and the nodes should be constructed correctly. Good luck! Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Arunkumar SSent: Monday, November 07, 2005 11:52 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Problem with type casting a TreedataProvider back to array... I've attached the files again, please find a solution or work around for me... Regards, Arunm_chotin [EMAIL PROTECTED] wrote: can you re-post the file please? macromedia started bouncingflexcoders mails today but i think we're back.--- In flexcoders@yahoogroups.com, Arunkumar S [EMAIL PROTECTED] wrote: Thanks for your reply Matt... Your code looks to solve the typecasting problem. But the tree isnot visible as i said in the earlier mail. I have worked with all theAPI i know, yet i'm not reacing the solution... I have attached thefull sample you have asked for, can your please try this code and tellwhere it went wrong...?? My ultimate aim is to get the updated ArrayList after making changesin the tree. It would be helpful for me when you make the tree visible when dataProvider = {treeDetails} or can anyone help me in getting a solution to get the updatedArrayList. Awaiting for your reply. Thanks in advance. Regards, Arun. Note : While running the application use Up Down buttons to movethe nodes and Update button to reflect changes. Matt Chotin [EMAIL
[flexcoders] How to add checkboxes to datagrid
Hi All, I want to add checkboxes to my DataGrid's first column. Here is my scenorio, ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:DataGrid id=dataGrid mx:columns mx:Array mx:DataGridColumn headerText= width=23 / mx:DataGridColumn headerText=Customer Name/ mx:DataGridColumn headerText=Contact Name / mx:DataGridColumn headerText=Type / mx:DataGridColumn headerText=Details / /mx:Array /mx:columns /mx:DataGrid /mx:Application Can anybody tell me how to do this. Thx, Sandip patil Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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/
RES: [flexcoders] HTTPService and Flex 2.0
Title: Mensagem Hi ! I'm sure about error line. Have you already used HTTPService in Flex 2.0Standalone Builder? Does it work ? Here's the entire source code: ?xml version="1.0" encoding="utf-8"?cairngorm:ServiceLocator xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns:cairngorm="com.datasul.framework.ui.cairngorm.business.*" mx:HTTPService id="testDataSrv" method="POST" resultFormat="xml" url=""http://localhost:8080/Teste/servlet/TestDataService">http://localhost:8080/Teste/servlet/TestDataService" useProxy="false"/ /cairngorm:ServiceLocator P.S: It's a simple tentative to use Cairngorm - with some changes -in Flex 2.0 environment. Tks again, Michel. -Mensagem original-De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de Matt ChotinEnviada em: quarta-feira, 9 de novembro de 2005 03:17Para: flexcoders@yahoogroups.comAssunto: RE: [flexcoders] HTTPService and Flex 2.0 That looks right, not sure why itd be giving you trouble. I wonder if the line numbers for the error are just wrong? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michel BertrandSent: Tuesday, November 08, 2005 12:06 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] HTTPService and Flex 2.0 Hello ! Have somebody used HTTPService in Flex 2.0 Alpha ? I got the error "Access of undefined property document" for the tag below: 1 mx:HTTPService 2 id="testDataSrv" 3 method="POST" 4 resultFormat="xml" 5 url=""Courier New" color=#99 size=2>http://localhost:8080/Teste/servlet/TestDataService" 6 useProxy="false"/ The editor marks line 3 (method="POST") as error reason, any idea ? Thanks in advance ! Michel Bertrand | Desenvolvimento | DATASUL TecnologiaAcesse www.datasuldirect.com.br e conheça mais sobre os produtos e soluções de tecnologia -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. 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] How to change color of button when it is pressed
Hi All, I want to change color of button when it is pressesd. i.e initial color of button is Red when I press it it should change to Blue. How to do this ? Thx, sandip p. Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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/
[flexcoders] Handle result from web-service callas
Good day all.. I was just wondering if it is possible to attach an event handler to a web-service result Event so that the results can be handled from anywhere in the application and not be specifically tied... to the service... for example result=doSomething(event.result) While this still works. If you have multiple parts of u're application wanting data from the same service how do i switch or attach a result handler without declearing another web-service object.. This is the Current Problem i face... Anyone that could share some light on this issue will be greatly appreciated..-- Kenlie BrowneSoftware Developer -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. 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] Lazy loading components
MXML SWC's are compiled into a final SWF. Classes are compiled in the order in which they reference eachother. They are immediately available to you when your Flex application starts. Remote Shared Librarires (RSL's), allow multiple Flex applications (SWFs) to share the same components, both the internal Flex ones, and ones you make and plan to make available. They are loaded in order, like the above with the addition of having to download the SWF they are in first; from then on, this SWF is cached in your browser cache. You can treat them as normal components classes that you can immediately access and call all methods on. You have 2 options for lazy instantiation; one is to utilize gregarious amounts of queued or none creationPolicies for your containers, and the other is load in dynamically loaded SWF's. While the former provides a lot more control over what is loaded, and when, as well as expediating the loading of your application, and improving start up time, eventually, in using all the app, all controls will eventually exist, just not be displayed. For Flex 2 this isn't that huge of a deal, but for 1.5, even if a visual element isn't shown, it still is rendered, albeit slightly. As such, things could slow down later on depending on what you are doing. The other option is to build in sections and/or components in SWF's. While this is the easiest way to load in multiple, unrelated sections with the ability to physically remove assets when you are done with them, thus clearing resources, this can become a management nightmare depending on how many SWF's you plan to use this way. Additionally, although both SWF's can use the same RSL's, they cannot share resources, and classes loaded between them is too confusing to write briefly in this email. Sometimes you have no choice to do this as it's the most efficient way, and utilizing interfaces, one can lessen the pain of having no compiler to help you connect things at runtime. I personally recommend against this. Hope that helps. - Original Message - From: Courtney Couch [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, November 09, 2005 12:35 AM Subject: [flexcoders] Lazy loading components I'm curious what others have found as a solution to this sort of situation I find myself in. I'm considering converting a rather large management console into Flex 2.0 (obviously not publicly available until the production release) and David Mendels informed me that my particular concern might be able to be addressed here. The interface would be rather large and what I would really like to do is compile discrete sections of the application using separate MXML files and then have the compiled swc's or swf's lazy loaded when that part of the application is accessed. It looks as though RSL's still load all the libraries without any sense of priority. I would prefer that the libraries, swc's or whatever are only loaded when specified either through a MXML tag (to allow the libraries to be buffered and loaded before the user is expected to need it) or when accessed. The preferable method would obviously be to allow one to create SWC's, reference them in the MX:Application tag, and then be able to do something like MX:loadLibrary library=someswcref onLoad=someFunction() / and allow the object to be loaded with a callback once its loaded. That would not only allow a developer to load objects when a user may potentially want to use it, but it would allow for a callback so it could potentially have a loading state end once the SWC is loaded. I know a person could simply load the SWF using the load call but that seems to put up walls of what parts can interact with other parts. I'm not entirely sure as to how the scope is affected with a load call, but I suspect you don't have the access you would have in an application that's directly loaded. Having it built in to allow lazy loading would seem to allow large applications. There has to be something like this as anything network wise needs to have methods to be concerned with network utilization. -Courtney Couch www.courtneycouch.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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
RE: [flexcoders] Lazy loading components
Loading in the order of reference doesn't give me enough flexibility as the order of reference isn't necessarily the order in which the user will progress through the interface. The loading of the controls seems to be a bad solution as well. As you said eventually all the controls will exist. Also, are you familiar with how the object scope works for loaded swf's? Is it possible for callbacks from loaded swf's? If not then that wont work either. As they would be components in an event driven interface and would need to pass events to the calling swf. The SWF would potentially need to be able to callback to the loaded swf on events as well. The sections as individual SWF's also doesn't seem to work for large applications as it's you pointed out it's a management nightmare. It seems that perhaps it really isn't designed with large interfaces in mind yet? So perhaps some sort of lazy loading mechanism for parts of the application so its not compiled into a single SWF file should be on some sort of feature request list. If only that were built into it so one could simply develop that into the MXML and AS files and not have to worry about some sort of import/separate interface parts as a hack/workaround. -Courtney Couch www.courtneycouch.com -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Wednesday, November 09, 2005 6:54 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Lazy loading components MXML SWC's are compiled into a final SWF. Classes are compiled in the order in which they reference eachother. They are immediately available to you when your Flex application starts. Remote Shared Librarires (RSL's), allow multiple Flex applications (SWFs) to share the same components, both the internal Flex ones, and ones you make and plan to make available. They are loaded in order, like the above with the addition of having to download the SWF they are in first; from then on, this SWF is cached in your browser cache. You can treat them as normal components classes that you can immediately access and call all methods on. You have 2 options for lazy instantiation; one is to utilize gregarious amounts of queued or none creationPolicies for your containers, and the other is load in dynamically loaded SWF's. While the former provides a lot more control over what is loaded, and when, as well as expediating the loading of your application, and improving start up time, eventually, in using all the app, all controls will eventually exist, just not be displayed. For Flex 2 this isn't that huge of a deal, but for 1.5, even if a visual element isn't shown, it still is rendered, albeit slightly. As such, things could slow down later on depending on what you are doing. The other option is to build in sections and/or components in SWF's. While this is the easiest way to load in multiple, unrelated sections with the ability to physically remove assets when you are done with them, thus clearing resources, this can become a management nightmare depending on how many SWF's you plan to use this way. Additionally, although both SWF's can use the same RSL's, they cannot share resources, and classes loaded between them is too confusing to write briefly in this email. Sometimes you have no choice to do this as it's the most efficient way, and utilizing interfaces, one can lessen the pain of having no compiler to help you connect things at runtime. I personally recommend against this. Hope that helps. Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] Lazy loading components
To get the nomenclature down, I think of Objects in Flex as a datatype, or a catch all phrase for classes and instances that do not have a visual component. Components to me are that visual component. That said, I'm confused why order is an issue; could you elaborate? If you write all of your classes, the Flex compiler takes care of all depencencys and load order for you. Yeah, you can call methods on loaded SWF's, and they can call methods on the SWF that loaded them, assuming both are in the same domain, or the domain has a crossdomain.xml file that says otherwise. I've used the above to give my Flex 1.5 app the ability to utilize Flash Player 8 features; I load in a Flash Player 8 swf into a Flex panel, and the Flex panel makes method calls on it. If the user has Flash Player 7, they won't see anything for that 1 panel, but if they have Flash Player 8, it'll work fine. I've had no problems with large interfaces in Flex; those who have are loading thousands of forms, but I have yet to resolve how they are building things, and why they need soo many unique forms and why they couldn't reuse elements. In my opinion, I've always been successful if I build things, and re-factor as need be. Any performance issue I've had with Flex or Flash was something glaring, and easy to overcome. Therefore, I'd just build a pilot of what you want, and address the issues as they come up vs. theorizing over potential problems that don't even exist yet. - Original Message - From: Courtney Couch [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, November 09, 2005 10:23 AM Subject: RE: [flexcoders] Lazy loading components Loading in the order of reference doesn't give me enough flexibility as the order of reference isn't necessarily the order in which the user will progress through the interface. The loading of the controls seems to be a bad solution as well. As you said eventually all the controls will exist. Also, are you familiar with how the object scope works for loaded swf's? Is it possible for callbacks from loaded swf's? If not then that wont work either. As they would be components in an event driven interface and would need to pass events to the calling swf. The SWF would potentially need to be able to callback to the loaded swf on events as well. The sections as individual SWF's also doesn't seem to work for large applications as it's you pointed out it's a management nightmare. It seems that perhaps it really isn't designed with large interfaces in mind yet? So perhaps some sort of lazy loading mechanism for parts of the application so its not compiled into a single SWF file should be on some sort of feature request list. If only that were built into it so one could simply develop that into the MXML and AS files and not have to worry about some sort of import/separate interface parts as a hack/workaround. -Courtney Couch www.courtneycouch.com -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Wednesday, November 09, 2005 6:54 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Lazy loading components MXML SWC's are compiled into a final SWF. Classes are compiled in the order in which they reference eachother. They are immediately available to you when your Flex application starts. Remote Shared Librarires (RSL's), allow multiple Flex applications (SWFs) to share the same components, both the internal Flex ones, and ones you make and plan to make available. They are loaded in order, like the above with the addition of having to download the SWF they are in first; from then on, this SWF is cached in your browser cache. You can treat them as normal components classes that you can immediately access and call all methods on. You have 2 options for lazy instantiation; one is to utilize gregarious amounts of queued or none creationPolicies for your containers, and the other is load in dynamically loaded SWF's. While the former provides a lot more control over what is loaded, and when, as well as expediating the loading of your application, and improving start up time, eventually, in using all the app, all controls will eventually exist, just not be displayed. For Flex 2 this isn't that huge of a deal, but for 1.5, even if a visual element isn't shown, it still is rendered, albeit slightly. As such, things could slow down later on depending on what you are doing. The other option is to build in sections and/or components in SWF's. While this is the easiest way to load in multiple, unrelated sections with the ability to physically remove assets when you are done with them, thus clearing resources, this can become a management nightmare depending on how many SWF's you plan to use this way. Additionally, although both SWF's can use the same RSL's, they cannot share resources, and classes loaded between them is too confusing to write briefly in this email. Sometimes you
[flexcoders] Re: Handle result from web-service callas
A standard event broker way of handling this is to have a single handler which then marshalls the result object off to delegates based on the object returned. So say a standard handler function like handleWSResult() You register this as the result handler. Interested listeners register their interest in that result type ahead of time. Simply store the registrations inside a hash map or an associative array. The handle WSResult() function simply determines the returned object type, and forwards the object to specific handlers who registered their interest in that object. This delegating handler model is resonably common and in the player model is works pretty well. (It struggles in a more concurrent model like Swing but...) There are feameworks that specialize in event delegation and controlling, I just personally like keeping simple problems simple. -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, knly browne [EMAIL PROTECTED] wrote: Good day all.. I was just wondering if it is possible to attach an event handler to a web-service result Event so that the results can be handled from anywhere in the application and not be specifically tied... to the service... for example result=doSomething(event.result) While this still works. If you have multiple parts of u're application wanting data from the same service how do i switch or attach a result handler without declearing another web-service object.. This is the Current Problem i face... Anyone that could share some light on this issue will be greatly appreciated.. -- Kenlie Browne Software Developer Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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/
[flexcoders] Re: Flex Setup on Tomcat
It is dead simple. Just drop flex.war into the webapps directory and boot tomcat. Thats it. Done. Now you can drop your mxml files in place into the flex webapp. If you have remote objects/java classes, drop them into WEB-INF/classes or WEB-INF/lib for jars. -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, gradykellydesign [EMAIL PROTECTED] wrote: Trying to find some good documentation on getting flex apps running on Tomcat. I need help in setting up classpaths/mappings for our specific app in Tomcat. This is an easy task in JRun, but have had zero luck in Tomcat. Any ideas? Thanks, Grady Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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/
[flexcoders] Re: Lazy loading components
Preach on my friend! You might also look at setting creation policies to control order of rendering. -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: To get the nomenclature down, I think of Objects in Flex as a datatype, or a catch all phrase for classes and instances that do not have a visual component. Components to me are that visual component. That said, I'm confused why order is an issue; could you elaborate? If you write all of your classes, the Flex compiler takes care of all depencencys and load order for you. Yeah, you can call methods on loaded SWF's, and they can call methods on the SWF that loaded them, assuming both are in the same domain, or the domain has a crossdomain.xml file that says otherwise. I've used the above to give my Flex 1.5 app the ability to utilize Flash Player 8 features; I load in a Flash Player 8 swf into a Flex panel, and the Flex panel makes method calls on it. If the user has Flash Player 7, they won't see anything for that 1 panel, but if they have Flash Player 8, it'll work fine. I've had no problems with large interfaces in Flex; those who have are loading thousands of forms, but I have yet to resolve how they are building things, and why they need soo many unique forms and why they couldn't reuse elements. In my opinion, I've always been successful if I build things, and re-factor as need be. Any performance issue I've had with Flex or Flash was something glaring, and easy to overcome. Therefore, I'd just build a pilot of what you want, and address the issues as they come up vs. theorizing over potential problems that don't even exist yet. - Original Message - From: Courtney Couch [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, November 09, 2005 10:23 AM Subject: RE: [flexcoders] Lazy loading components Loading in the order of reference doesn't give me enough flexibility as the order of reference isn't necessarily the order in which the user will progress through the interface. The loading of the controls seems to be a bad solution as well. As you said eventually all the controls will exist. Also, are you familiar with how the object scope works for loaded swf's? Is it possible for callbacks from loaded swf's? If not then that wont work either. As they would be components in an event driven interface and would need to pass events to the calling swf. The SWF would potentially need to be able to callback to the loaded swf on events as well. The sections as individual SWF's also doesn't seem to work for large applications as it's you pointed out it's a management nightmare. It seems that perhaps it really isn't designed with large interfaces in mind yet? So perhaps some sort of lazy loading mechanism for parts of the application so its not compiled into a single SWF file should be on some sort of feature request list. If only that were built into it so one could simply develop that into the MXML and AS files and not have to worry about some sort of import/separate interface parts as a hack/workaround. -Courtney Couch www.courtneycouch.com -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Wednesday, November 09, 2005 6:54 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Lazy loading components MXML SWC's are compiled into a final SWF. Classes are compiled in the order in which they reference eachother. They are immediately available to you when your Flex application starts. Remote Shared Librarires (RSL's), allow multiple Flex applications (SWFs) to share the same components, both the internal Flex ones, and ones you make and plan to make available. They are loaded in order, like the above with the addition of having to download the SWF they are in first; from then on, this SWF is cached in your browser cache. You can treat them as normal components classes that you can immediately access and call all methods on. You have 2 options for lazy instantiation; one is to utilize gregarious amounts of queued or none creationPolicies for your containers, and the other is load in dynamically loaded SWF's. While the former provides a lot more control over what is loaded, and when, as well as expediating the loading of your application, and improving start up time, eventually, in using all the app, all controls will eventually exist, just not be displayed. For Flex 2 this isn't that huge of a deal, but for 1.5, even if a visual element isn't shown, it still is rendered, albeit slightly. As such, things could slow down later on depending on what you are doing. The other option is to build in sections and/or components in SWF's. While this is the
Re: [flexcoders] Re: Lazy loading components
That's what I said in the previous email, but eventually... everything is created. At least in Flex 2, I'm assumign they won't be on the display list. - Original Message - From: Dave Wolf [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, November 09, 2005 11:09 AM Subject: [flexcoders] Re: Lazy loading components Preach on my friend! You might also look at setting creation policies to control order of rendering. -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: To get the nomenclature down, I think of Objects in Flex as a datatype, or a catch all phrase for classes and instances that do not have a visual component. Components to me are that visual component. That said, I'm confused why order is an issue; could you elaborate? If you write all of your classes, the Flex compiler takes care of all depencencys and load order for you. Yeah, you can call methods on loaded SWF's, and they can call methods on the SWF that loaded them, assuming both are in the same domain, or the domain has a crossdomain.xml file that says otherwise. I've used the above to give my Flex 1.5 app the ability to utilize Flash Player 8 features; I load in a Flash Player 8 swf into a Flex panel, and the Flex panel makes method calls on it. If the user has Flash Player 7, they won't see anything for that 1 panel, but if they have Flash Player 8, it'll work fine. I've had no problems with large interfaces in Flex; those who have are loading thousands of forms, but I have yet to resolve how they are building things, and why they need soo many unique forms and why they couldn't reuse elements. In my opinion, I've always been successful if I build things, and re-factor as need be. Any performance issue I've had with Flex or Flash was something glaring, and easy to overcome. Therefore, I'd just build a pilot of what you want, and address the issues as they come up vs. theorizing over potential problems that don't even exist yet. - Original Message - From: Courtney Couch [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, November 09, 2005 10:23 AM Subject: RE: [flexcoders] Lazy loading components Loading in the order of reference doesn't give me enough flexibility as the order of reference isn't necessarily the order in which the user will progress through the interface. The loading of the controls seems to be a bad solution as well. As you said eventually all the controls will exist. Also, are you familiar with how the object scope works for loaded swf's? Is it possible for callbacks from loaded swf's? If not then that wont work either. As they would be components in an event driven interface and would need to pass events to the calling swf. The SWF would potentially need to be able to callback to the loaded swf on events as well. The sections as individual SWF's also doesn't seem to work for large applications as it's you pointed out it's a management nightmare. It seems that perhaps it really isn't designed with large interfaces in mind yet? So perhaps some sort of lazy loading mechanism for parts of the application so its not compiled into a single SWF file should be on some sort of feature request list. If only that were built into it so one could simply develop that into the MXML and AS files and not have to worry about some sort of import/separate interface parts as a hack/workaround. -Courtney Couch www.courtneycouch.com -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Wednesday, November 09, 2005 6:54 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Lazy loading components MXML SWC's are compiled into a final SWF. Classes are compiled in the order in which they reference eachother. They are immediately available to you when your Flex application starts. Remote Shared Librarires (RSL's), allow multiple Flex applications (SWFs) to share the same components, both the internal Flex ones, and ones you make and plan to make available. They are loaded in order, like the above with the addition of having to download the SWF they are in first; from then on, this SWF is cached in your browser cache. You can treat them as normal components classes that you can immediately access and call all methods on. You have 2 options for lazy instantiation; one is to utilize gregarious amounts of queued or none creationPolicies for your containers, and the other is load in dynamically loaded SWF's. While the former provides a lot more control over what is loaded, and when, as well as expediating the loading of your application, and improving start up time, eventually, in using all the app, all controls will eventually exist, just not be displayed. For
[flexcoders] Resize Effect jumps. not smooth
Hi all, Sometimes, when I resize an object that has a resizeEffect, the following happens. - the object resizes to the new size automatically - it then goes back to the old size - then it resizes with the effect it does not look so pretty... -- : Aldo Bucchi : mobile (56) 8 429 8300 Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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/
[flexcoders] Re: Resize Effect jumps. not smooth
jaja ignore the previous email!!! IT IS INCOMPLETE sent it by accident. thanks On 11/9/05, Aldo Bucchi [EMAIL PROTECTED] wrote: Hi all, Sometimes, when I resize an object that has a resizeEffect, the following happens. - the object resizes to the new size automatically - it then goes back to the old size - then it resizes with the effect it does not look so pretty... -- : Aldo Bucchi : mobile (56) 8 429 8300 -- : Aldo Bucchi : mobile (56) 8 429 8300 Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] Resize Effect jumps. not smooth
On 11/9/05, Aldo Bucchi [EMAIL PROTECTED] wrote: Sometimes, when I resize an object that has a resizeEffect, the following happens. - the object resizes to the new size automatically - it then goes back to the old size - then it resizes with the effect it does not look so pretty... Flex 2 or Flex 1.5? Do you have a standalone example? Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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/
[flexcoders] Re: Flex Setup on Tomcat
Do you not have the class files under the same webapp? You had a virtual mapping to another location which was mapped onto say /classes webapp? Is that what you are saying? -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, gradykellydesign [EMAIL PROTECTED] wrote: Thanks Dave, I have gotten that far. I can see that Flex is compiling the mxml file, but I am now having problems with virtual mappings to the directories that we use for class packages. Here is the error that I get: Error /dev/dashboard.mxml:55 Don't know how to parse element com.remedyMD.business.*:Services. It is not a known type or a property of mx.core.Application. Thanks, Grady --- In flexcoders@yahoogroups.com, Dave Wolf [EMAIL PROTECTED] wrote: It is dead simple. Just drop flex.war into the webapps directory and boot tomcat. Thats it. Done. Now you can drop your mxml files in place into the flex webapp. If you have remote objects/java classes, drop them into WEB-INF/classes or WEB-INF/lib for jars. -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, gradykellydesign [EMAIL PROTECTED] wrote: Trying to find some good documentation on getting flex apps running on Tomcat. I need help in setting up classpaths/mappings for our specific app in Tomcat. This is an easy task in JRun, but have had zero luck in Tomcat. Any ideas? Thanks, Grady Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] Resize Effect jumps. not smooth
Hi Manish, OT: I was going to post an example but I hit SEND instead of SAVE NOW... Gmail has this goddamn usability issue .. or is it just me? I have sent so many unfinished mails by accident!! They should really put the two buttons far appart, or you should be able activate a confirm dialog for the Send operation. mmmh, I will file a feature request... Tip of the Day: To avoid embarrassing situations, don't write the email address till the end BTW, I got the effect working OK ;) Best, Aldo On 11/9/05, Manish Jethani [EMAIL PROTECTED] wrote: On 11/9/05, Aldo Bucchi [EMAIL PROTECTED] wrote: Sometimes, when I resize an object that has a resizeEffect, the following happens. - the object resizes to the new size automatically - it then goes back to the old size - then it resizes with the effect it does not look so pretty... Flex 2 or Flex 1.5? Do you have a standalone example? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- : Aldo Bucchi : mobile (56) 8 429 8300 Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] Lazy loading components
I was using objects to be inclusive of components and objects as you defined. (Coming from Java background, everything is an object ;) ) The problem with the flex compiler trying to take care of load order is that if the path through the application is any one of hundreds of paths, then it seems that the compiler lacks the psychic ability to determine the optimum order to compile the objects/components in. The loading SWF's may be a solution based on the object structure being interoperable as you've stated. The problem with building and re-factoring as need be is that the process of building a large application costs money in human resources and technology needs to be evaluated in the theoretical phase before embarking on a long expensive effort only to find out that it won't work. As rebuilding everything using flex 2 would undoubtedly take my guys months to do, just trying it out to see is not really a cost effective solution unless some sort of preliminary evaluation as to methods to avoid potential bottlenecks in user experience has been handled. A pilot would have to be a rather large project to even begin to experience the problems it seems may occur with flex 2 (which would be an obvious benefit ajax designs would have for large apps). Even aside from even any specific commercial usage, it's good to know potential limitations in technologies available. Anyways, loading swf's, while it feels to me it breaks good consistent design, may be the best solution for anything large. Thanks for your input; I'll play with the swf loading a bit. -Courtney Couch www.courtneycouch.com -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Wednesday, November 09, 2005 7:43 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Lazy loading components To get the nomenclature down, I think of Objects in Flex as a datatype, or a catch all phrase for classes and instances that do not have a visual component. Components to me are that visual component. That said, I'm confused why order is an issue; could you elaborate? If you write all of your classes, the Flex compiler takes care of all depencencys and load order for you. Yeah, you can call methods on loaded SWF's, and they can call methods on the SWF that loaded them, assuming both are in the same domain, or the domain has a crossdomain.xml file that says otherwise. I've used the above to give my Flex 1.5 app the ability to utilize Flash Player 8 features; I load in a Flash Player 8 swf into a Flex panel, and the Flex panel makes method calls on it. If the user has Flash Player 7, they won't see anything for that 1 panel, but if they have Flash Player 8, it'll work fine. I've had no problems with large interfaces in Flex; those who have are loading thousands of forms, but I have yet to resolve how they are building things, and why they need soo many unique forms and why they couldn't reuse elements. In my opinion, I've always been successful if I build things, and re-factor as need be. Any performance issue I've had with Flex or Flash was something glaring, and easy to overcome. Therefore, I'd just build a pilot of what you want, and address the issues as they come up vs. theorizing over potential problems that don't even exist yet. Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] Flex Setup on Tomcat
All I had to do was drop the flex.war into Tomcat's webapps directory, restart Tomcat, and away I went. Is there something more you're trying to do that I'm missing? Maybe you're dealing with RemoteObjects or something additional? Joey From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gradykellydesignSent: Wednesday, November 09, 2005 10:57 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex Setup on Tomcat Trying to find some good documentation on getting flex apps running onTomcat. I need help in setting up classpaths/mappings for ourspecific app in Tomcat. This is an easy task in JRun, but have hadzero luck in Tomcat.Any ideas?Thanks,Grady -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. 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] Lazy loading components
You know guys, as a community mailing list, it'd help if someone gave her another opinion other than mine. This response makes me feel like I didn't explain things clearly... help or something? - Original Message - From: Courtney Couch [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, November 09, 2005 11:17 AM Subject: RE: [flexcoders] Lazy loading components I was using objects to be inclusive of components and objects as you defined. (Coming from Java background, everything is an object ;) ) The problem with the flex compiler trying to take care of load order is that if the path through the application is any one of hundreds of paths, then it seems that the compiler lacks the psychic ability to determine the optimum order to compile the objects/components in. The loading SWF's may be a solution based on the object structure being interoperable as you've stated. The problem with building and re-factoring as need be is that the process of building a large application costs money in human resources and technology needs to be evaluated in the theoretical phase before embarking on a long expensive effort only to find out that it won't work. As rebuilding everything using flex 2 would undoubtedly take my guys months to do, just trying it out to see is not really a cost effective solution unless some sort of preliminary evaluation as to methods to avoid potential bottlenecks in user experience has been handled. A pilot would have to be a rather large project to even begin to experience the problems it seems may occur with flex 2 (which would be an obvious benefit ajax designs would have for large apps). Even aside from even any specific commercial usage, it's good to know potential limitations in technologies available. Anyways, loading swf's, while it feels to me it breaks good consistent design, may be the best solution for anything large. Thanks for your input; I'll play with the swf loading a bit. -Courtney Couch www.courtneycouch.com -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Wednesday, November 09, 2005 7:43 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Lazy loading components To get the nomenclature down, I think of Objects in Flex as a datatype, or a catch all phrase for classes and instances that do not have a visual component. Components to me are that visual component. That said, I'm confused why order is an issue; could you elaborate? If you write all of your classes, the Flex compiler takes care of all depencencys and load order for you. Yeah, you can call methods on loaded SWF's, and they can call methods on the SWF that loaded them, assuming both are in the same domain, or the domain has a crossdomain.xml file that says otherwise. I've used the above to give my Flex 1.5 app the ability to utilize Flash Player 8 features; I load in a Flash Player 8 swf into a Flex panel, and the Flex panel makes method calls on it. If the user has Flash Player 7, they won't see anything for that 1 panel, but if they have Flash Player 8, it'll work fine. I've had no problems with large interfaces in Flex; those who have are loading thousands of forms, but I have yet to resolve how they are building things, and why they need soo many unique forms and why they couldn't reuse elements. In my opinion, I've always been successful if I build things, and re-factor as need be. Any performance issue I've had with Flex or Flash was something glaring, and easy to overcome. Therefore, I'd just build a pilot of what you want, and address the issues as they come up vs. theorizing over potential problems that don't even exist yet. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] Lazy loading components
BTW, if are you going to the route of multiple Flex applications loaded into eachother and other containers at runtime, then I highly suggest you utilize the RSL route; that way, users will cache your common component sets initially, and from thereafter, all other apps you load can point to the same RSL, reducing your filesize costs exponentially. Non-RSL 200k = App1.swf 150k = App2.swf 100k = Support.swf RSL 150k = Components.swf 32k = App1.swf 6k = App2.swf 10k Support.swf - Original Message - From: Courtney Couch [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, November 09, 2005 11:17 AM Subject: RE: [flexcoders] Lazy loading components I was using objects to be inclusive of components and objects as you defined. (Coming from Java background, everything is an object ;) ) The problem with the flex compiler trying to take care of load order is that if the path through the application is any one of hundreds of paths, then it seems that the compiler lacks the psychic ability to determine the optimum order to compile the objects/components in. The loading SWF's may be a solution based on the object structure being interoperable as you've stated. The problem with building and re-factoring as need be is that the process of building a large application costs money in human resources and technology needs to be evaluated in the theoretical phase before embarking on a long expensive effort only to find out that it won't work. As rebuilding everything using flex 2 would undoubtedly take my guys months to do, just trying it out to see is not really a cost effective solution unless some sort of preliminary evaluation as to methods to avoid potential bottlenecks in user experience has been handled. A pilot would have to be a rather large project to even begin to experience the problems it seems may occur with flex 2 (which would be an obvious benefit ajax designs would have for large apps). Even aside from even any specific commercial usage, it's good to know potential limitations in technologies available. Anyways, loading swf's, while it feels to me it breaks good consistent design, may be the best solution for anything large. Thanks for your input; I'll play with the swf loading a bit. -Courtney Couch www.courtneycouch.com -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Wednesday, November 09, 2005 7:43 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Lazy loading components To get the nomenclature down, I think of Objects in Flex as a datatype, or a catch all phrase for classes and instances that do not have a visual component. Components to me are that visual component. That said, I'm confused why order is an issue; could you elaborate? If you write all of your classes, the Flex compiler takes care of all depencencys and load order for you. Yeah, you can call methods on loaded SWF's, and they can call methods on the SWF that loaded them, assuming both are in the same domain, or the domain has a crossdomain.xml file that says otherwise. I've used the above to give my Flex 1.5 app the ability to utilize Flash Player 8 features; I load in a Flash Player 8 swf into a Flex panel, and the Flex panel makes method calls on it. If the user has Flash Player 7, they won't see anything for that 1 panel, but if they have Flash Player 8, it'll work fine. I've had no problems with large interfaces in Flex; those who have are loading thousands of forms, but I have yet to resolve how they are building things, and why they need soo many unique forms and why they couldn't reuse elements. In my opinion, I've always been successful if I build things, and re-factor as need be. Any performance issue I've had with Flex or Flash was something glaring, and easy to overcome. Therefore, I'd just build a pilot of what you want, and address the issues as they come up vs. theorizing over potential problems that don't even exist yet. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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/
[flexcoders] Re: Flex Setup on Tomcat
That worked. We figured out afterwards that we were mapping things in our development enviornment that we did not need to map in our pre-production enviornment. Silly us. Thanks for all the help! Grady --- In flexcoders@yahoogroups.com, Renaun Erickson [EMAIL PROTECTED] wrote: You mxml namespace is relative to the document root or to /WEB-INF/flex/user_classes Tomcat has its on method of classpath for user application Java classes. Basically the same, either in relative to the document root or in /WEB-INF/classes. Renaun --- In flexcoders@yahoogroups.com, gradykellydesign [EMAIL PROTECTED] wrote: Thanks Dave, I have gotten that far. I can see that Flex is compiling the mxml file, but I am now having problems with virtual mappings to the directories that we use for class packages. Here is the error that I get: Error /dev/dashboard.mxml:55 Don't know how to parse element com.remedyMD.business.*:Services. It is not a known type or a property of mx.core.Application. Thanks, Grady --- In flexcoders@yahoogroups.com, Dave Wolf [EMAIL PROTECTED] wrote: It is dead simple. Just drop flex.war into the webapps directory and boot tomcat. Thats it. Done. Now you can drop your mxml files in place into the flex webapp. If you have remote objects/java classes, drop them into WEB-INF/classes or WEB-INF/lib for jars. -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, gradykellydesign [EMAIL PROTECTED] wrote: Trying to find some good documentation on getting flex apps running on Tomcat. I need help in setting up classpaths/mappings for our specific app in Tomcat. This is an easy task in JRun, but have had zero luck in Tomcat. Any ideas? Thanks, Grady Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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/
[flexcoders] Case insensitive sorting on DataGrid
Hi, Im sure that this must have come up a million times before, but I couldnt find anything on the issue so I thought Id ask here. Has anyone come up with a good way to do case insensitive sorting in a DataGrid? Is creating a hidden column for each sortable value the way to go? Perhaps a custom sort method? I understand there are some performance issues with the Flash Players string sorting, so Id like to learn the most efficient way of handling this. Thanks, Jim -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. 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] Flex 2:Class Problem?
I finally got some time to setup classes for some common functions and it was working, then I rolled it out to all parts of the application and now it balks on me. Here is the error in debug view [SWF] C:\Documents and Settings\gjohnson\My Documents\Flex\mr_new\bin\mr-debug.swf - 1,611,760 bytes after decompression Flex accessibility startup: true TypeError: Error #1009: null has no properties. Here is the error from the flash player TypeError: Error #1009: null has no properties. at mr/doResultGetPeople()[C:\Documents and Settings\gjohnson\My Documents\Flex\mr_new\mrCFCHandlers.as:105] at mr/___Operation15_result()[C:\Documents and Settings\gjohnson\My Documents\Flex\mr_new\mr.mxml:55] at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractOperation/http://www.macromedia.com/2005/flex/mx/inter nal::dispatchRpcEvent() [C:\dev\max\sdk\frameworks\mx\rpc\AbstractOperation.as:167] at mx.rpc.soap::Operation/http://www.macromedia.com/2005/flex/mx/internal ::resultHandler() [C:\dev\max\sdk\frameworks\mx\rpc\soap\Operation.as:592] at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::Producer/http://www.macromedia.com/2005/flex/mx/internal::ackn owledge()[C:\dev\max\sdk\frameworks\mx\rpc\Producer.as:59] at mx.messaging.channels$1021 $private::HTTPMessageResponder/completeHandler() [C:\dev\max\sdk\frameworks\mx\messaging\channels\DirectHTTPChannel.as: 237] at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/URLLoader$502$private::onComplete() - Here are the germain parts of my code mr.mxml !-- Managment Reporting Main Web Service Definition -- mx:WebService id=mr_main wsdl={removed for posting} fault=stdFuncs.cfcerr('mr_main','', event.fault.faultcode, event.fault.faultstring, event.fault.description, event.fault.detail) showBusyCursor=true mx:operation name=getPeopleByName_cfc result=doResultGetPeople(event.result) fault=stdFuncs.cfcerr ('mr_main','getPeopleByName_cfc', event.fault.faultcode, event.fault.faultstring, event.fault.description, event.fault.detail) / mx:operation name=getDeptPIDs_cfc result=doResultGetDepartmentPIDs(event.result) fault=stdFuncs.cfcerr('mr_main','getDeptPIDs_cfc', event.fault.faultcode, event.fault.faultstring, event.fault.description, event.fault.detail) / mx:operation name=getCompany_cfc result=doResultGetCompany(event.result) fault=stdFuncs.cfcerr ('mr_main','getCompany_cfc', event.fault.faultcode, event.fault.faultstring, event.fault.description, event.fault.detail) / mx:operation name=getPerson_cfc result=doResultGetPerson(event.result) fault=stdFuncs.cfcerr ('mr_main','getPerson_cfc', event.fault.faultcode, event.fault.faultstring, event.fault.description, event.fault.detail) / mx:operation name=getDeptList_cfc result=doResultGetDeptList(event.result) fault=stdFuncs.cfcerr ('mr_main','getDeptList_cfc', event.fault.faultcode, event.fault.faultstring, event.fault.description, event.fault.detail) / mx:operation name=getPermissions_cfc result=doResultGetPermissions(event.result) fault=stdFuncs.cfcerr ('mr_main','getPermissions_cfc', event.fault.faultcode, event.fault.faultstring, event.fault.description, event.fault.detail) / /mx:WebService -- mycode.as -- import mx.collections.ArrayCollection; [Bindable] public var investigatorResultsGrid_dp:ArrayCollection = new ArrayCollection(); public var stdFuncs:stdlib; //** Get People CFC ** // Caller public function getPeople(name:String, deptcode:String, deptname:String):Void{ mr_main.getPeopleByName_cfc(name, deptcode, deptname, getPIDs ()); } // Result Handler public function doResultGetPeople(result:Array):Void { // *** it errors on the following line stdFuncs.CFC2AS(result,investigatorResultsGrid_dp); investigatorResultsGrid.visible=true; investigatorResultsGrid.selectedIndex=0; selections_vs.selectedIndex=0; selectionsPanel.visible=true; getPerson(); } -- Here is the class - stdlib.as - package { import mx.collections.ArrayCollection; import mx.events.DragEvent; public interface stdlib { function CFC2AS(newArray:Array, oldArray:ArrayCollection):Void function getToday():String function doDragDrop(event:DragEvent):Void function detectDoubleClick(event:Object, functionToCall_func:Function, ... args):Boolean function dateAssign(dateOut:Date, dateIn:Object):Date function
Re: [flexcoders] [FLEX1.5] flex + fcs + cfc + oracle realtime question
FCS isn't an application server so it can't directly access to a DB. Instead you can use remoting to communicate with an application server and this will be the responsible to access DB. For example: FCS --|remoting|-- Tomcat -- DB | FCS --|remoting|-- Tomcat | Hope that helps X. aoi_zip wrote: I want to send oracle data using FCS and apply it to FLEX directly(real time). In this case, I think that FCS and DB have to synchronize directly or run queries repeatedly in order to generate Real-time. So, I want to know that how FCS apply DB data to FLEX directly(real time) and its source code. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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: Fwd: [flexcoders] AsUnit 3.0 alpha released!
WowI would love to have a face to face with my former Dept. Head at my alma-matter as he was anal about CLEANROOM DESIGN and I always felt he needed to be open to more pragmatic methods of testingthis sounds like it's it. Do you have a beta program? I'm very interested; especially if I can test Flex2 IDE, Flex2 Enterprise Services with integration via J2EE and RemoteObject and utilize your product. Great Stuff! I feel a new upswing in the technology sector for independent and innovative developers and I credit Macromedia for being a big part of this -- And Apple (thank God for the iPod and Music Production Systems driving this; ie. purchase of Emagic's Logic Pro). -r Luke Bayes [EMAIL PROTECTED] wrote: Hey Robert,Here's a great article on Test-Driven Development:http://junit.sourceforge.net/doc/testinfected/testing.htmEssentially, AsUnit 3.x is built directly from the JUnit source code. It is a pure ActionScript framework that allows you to construct test fixtures for your applications. It lets you build each encapsulated element of an application, test it, gaurantee it's functionality and then through continuous integration, grow your application over time with confidence. If at any point, you break some long-forgotten entity, your test fixture will notify you immediately with exactly what is broken and why it broke. If you later expose issues (bugs) that went originally untested, you can develop a new test that exposes the behavior, then fix it and be assured that it won't be reintroduced.This is an alternative approach to what's known as "Waterfall" development, and without a clean unit test framework, it's very difficult to implement...Thanks for asking!Luke Bayeswww.asunit.com On 11/7/05, Robert Thompson wrote: Luke, could you please explain just what AsUnit does that's so special? thx Yahoo! FareChase - Search multiple travel sites in one click. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. 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] Re: HTTP Post
I know it's an FAQ faux pau to ask if anyone has any source code on this; but I'm extremely interested in implementing this very thing -- a Flex2 RFC File Upload posting to HttpService (and later to a transacted J2EE with Flex2 Enterprise Server). We almost need all to get involved in a threaded discussion board so we can create more persistent discussions on a given area with "sticky" posts that include good exemplars of Flex2 et. al. -r Dave Wolf [EMAIL PROTECTED] wrote: You can't post to an MXML file directly because the mxml compilingfilter doesnt implement the post method.Create a JSP page that dynamically builds the object embed tag basedon the posted parameters. Place the posted parameters as parametersin the embed tag which the swf (yes precompile the mxml into swf) canthen read.-- Dave WolfCynergy Systems, Inc.Macromedia Flex Alliance Partnerhttp://www.cynergysystems.comEmail: [EMAIL PROTECTED]Office: 866-CYNERGY--- In flexcoders@yahoogroups.com, Paulo Roberto Cunha Brandão[EMAIL PROTECTED] wrote: Good evening for all. I have a system in JSP and needs to call a new window in anotherapplication in Flex, passing the HTTP Post parameters. When I done the Post call by HTML, passing the necessary parameters,it's show me the error: "It's not a valid application". If I done the same call using HTTP Get to send the parameters, theerror doesn't happen. Somebody can help me about this problem? 16:44:26,173 ERROR[StandardWrapper[/atribuicaodocente:FlexMxmlServlet]]Servlet.service() for servlet FlexMxmlServlet threw exception javax.servlet.ServletException: Post not supported by this filter. atflex.server.j2ee.cache.CacheFilter.doFilter(CacheFilter.java:176) atflex.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:66) atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) atflex.server.j2ee.DetectionFilter.doFilter(DetectionFilter.java:95) atflex.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:66) atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) atorg.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter..java:75) atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve..java:213) atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve..java:178) atorg.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) atorg.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:147) atorg.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:53) atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) atorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) atorg.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825) atorg.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:743) atorg.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) atorg.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:534) Paulo Roberto Cunha Brandão Analista de Desenvolvimento de Sistemas Diretoria de Tecnologia e Informação Instituto Metodista de Ensino Superior * mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] ( (0**11) 4366-5086 Yahoo! FareChase - Search multiple travel sites in one click. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. 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] dragEnter only works on root tag
If I do this on my panel: dragEnter=arguments[0].handled = true I can clearly see the cursor showing an allowable drop, and upon letting go of the mouse, she drops. However, if I do: public function dragEnter(event:Object):Void { event.handled = true; } In my script tag which is the 2nd tag (first is metadata tag), she doesn't allow a drop. wtf? Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] dragEnter only works on root tag
Nm... they are events, not methods, sorry for the noise. - Original Message - From: JesterXL [EMAIL PROTECTED] To: Flexcoders flexcoders@yahoogroups.com Sent: Wednesday, November 09, 2005 3:40 PM Subject: [flexcoders] dragEnter only works on root tag If I do this on my panel: dragEnter=arguments[0].handled = true I can clearly see the cursor showing an allowable drop, and upon letting go of the mouse, she drops. However, if I do: public function dragEnter(event:Object):Void { event.handled = true; } In my script tag which is the 2nd tag (first is metadata tag), she doesn't allow a drop. wtf? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] AJAX ms etc -- Flex2: pricing info
Robert Thompson wrote: ... (I know ms didn't invent Ajax but they do have things going on with Avalon and will use the Ajax opp... My history may be a bit fuzzy, but wasn't it Microsoft who initially created the XMLHttpRequest ActiveX control for use with Outlook Web Access? They may not have invented the AJAX marketing buzzword, but they're fairly central to having created the technology. Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] AJAX ms etc -- Flex2: pricing info
If they're smart patented it, they'll sue those who get in their way. That'd level the playing field; Flex Flash vs. Microsoft's AJAX; awesome! ... a geek can dream can't he... - Original Message - From: Blake Kadatz [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, November 09, 2005 4:46 PM Subject: Re: [flexcoders] AJAX ms etc -- Flex2: pricing info Robert Thompson wrote: ... (I know ms didn't invent Ajax but they do have things going on with Avalon and will use the Ajax opp... My history may be a bit fuzzy, but wasn't it Microsoft who initially created the XMLHttpRequest ActiveX control for use with Outlook Web Access? They may not have invented the AJAX marketing buzzword, but they're fairly central to having created the technology. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] AJAX ms etc -- Flex2: pricing info
On 11/4/05, Robert Thompson [EMAIL PROTECTED] wrote: AJAX is a name, not really a technology.Flash is atrue technology with an incredible reach and userpenetration...and now with Flex and Video in FP8,great things are on the horizon _for_everybody_ on anequal palying field. But you can trust with the awesome video of Flash8,that the threat to people like MS is now bigger thanever with their Smart Client efforts and Avalon. Not sure on that last remark, i think it will be anyones guess which becomes the new hype of the year. Not many large enterprise organisations have team members who are even aware of FLEX existance... number of people i've spoken about it in the last couple of years has shocked me into that fact. Now, Microsoft do one thing extremly well, that is marketing. If you are in a situation where you're looking to switch of a legacy backend solution, or better yet, upgrade it to meet new direction in ones business the last thing you want in that equation is UI democracy or complexity. Products like FLEX and AVALON will get a jersey in the pickings but it will most likely come down to what type of business one is in, and who knows more about either product. A lot of companies bank on .NET soley for the fact its got a big Microsoft logo attached to it, and well it could also because their is a strong Human Resource allocation in their local sector for .NET Developers... point is, FLEX may be the XML based hot favourite, but until we get a wider acceptance in both business and human resource, it still has a fair amount of hard yards to fight through. Technology isn't always the answer as sometimes businesses can't cope with the new culture shock. Many of you may not remember a small effort in thelate 90's by Microsoft to come out with a Vector product that was ActiveX based and it was justterrible (I mean a great example of what they aretruly capable of when they don't have leverage)...I'msure Avalon came from that failure and the hope has always been there of overcoming Flash, but I believe Actually, no, RIA development really has only taken off in the past what, 3-4 years at best. Even still a lot of the public on display apps are more Kiosk and not really scaled as deep as some would prefer or like. The biggest eye opener for the online generation world wide was the fact that web applications existed. Thinware deployment has been a dream for majority large corporations as it becomes a eat as you need equation. The likes of Microsoft and I guess all of the other big players (Sun with Java Webstart, Macromedia wtih Flash, Oracle with UAX etc) want in on that dream and are willing to slot in a complex backend system to back the UI up. No, the days where it would be thickware client development that has to overcome tonnes of problems with compatability issues has reached a point where most case studies in a piece of software, really shouldn't be that hard (inventory management system, invoice trackings, workflow etc). Business Process Modeling / Workflow is probably the biggest driving force behind the creation of the above products as when you start to break things down into portions what are we all really doing? Trying to provide a end to end solution based on a problem thus workflow is in the picture. Now, i've ranted about this before but essentially what we have in our hands with FLEX today (not tommorow) is the ability to create a Unified View over the top of disparate backend systems. The company co-founded, omniEffect (shameless plug) specialises in basically putting a unified front end to systems that are so complex, they have signs on the machines saying Don't touch, we have no idea what this software does. The ability via UI to string together disparate complex backend technologies in a seamless matter is like showing folks Color TV for the first time ! (You mean big bird is yellow who would of thought!). An example is security, if you are talking to say 3 backend systems each with their own domain of security, and you want to drag fileX from BESystem1 to fileY to BESystem2, magic happens in the backend but at the same time their needs to be a way to authenticate and allocate security models on the fly... this is the easiest part in FLEX, as you can ping/pong XXX number of security models for handshake all via things like RemoteObject/SOAP and within a seamless manner. Trying to do that with other technologies is well harder? I seriously doubt Microsoft sat down in a board room and said right, we need to kill Macromedia quick, so lets re-do our entire product line and re-engineer our operating system soley to take on Macromedia... My thoughts are that Microsoft listened to the gripes their developer base had with .NET (balmer would rant Developers..Developers..Developers all the time) and improved on the concept, by hiring guys who hated the company and asking them Do it better, but do it big (Keeping in mind, Microsoft have developers like you and me, guys who hated
[flexcoders] Redeploying a Flex webapp on Tomcat - locks not released
I saw a post before about someone having trouble redeploying with Weblogic. Were having the same trouble with Tomcat on Windows. We have a webapp that includes Flex, but we cant do an undeploy or a reload without having to shutdown the server and explicity deleting the webapp directory because the locks on the jars in WEB-INF\flex\jars arent being released, even though the webapp has been stopped. An undeploy with remove all other webapp artifacts except for this directory, effectively preventing redeploying the webapp without a server restart. Tomcat has a work around: you can set the antiResourceLocking=true attribute in conf/context.xml before starting Tomcat, but for us, this is a bad solution because of the size of our webapp. Setting this attribute is known to drastically increase webapp startup time. Ive heard that there wont be a solution for this until Flex 2.0, but Id really like to know if thats the case, or if anyone else has discovered a workaround for this issue. Thanks! Tony tony pujals| senior engineer | Yahoo! small business publishing tools p. 408.349.6284 |e. [EMAIL PROTECTED]| y!id tonypujals -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. 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] File Upload over HTTPS: Solved!
All, There have been a lot of posts recently at the MACR web site, in the MACR NNTP newsgroups and several threads here (as well as other places) about using the file upload features over HTTPS. Specifically, the problem many folks saw was that it worked great on HTTP but failed with an IOError when using HTTPS. Earlier in the week our team at Cynergy determined that it was clearly a crossdomain.xml issue since HTTPS worked properly on ports above 1024, e.g. 8443. With this in mind, we set out to find the right combination of settings to make HTTPS work properly on its home port of 443. We now have a working solution on two different servers and we wanted to share this knowledge with the community. The problem actually has several variables and factors that need to be considered. First and foremost, our formula for success relied on loadPolicyFile (): System.security.loadPolicyFile ('https://flexdemos.cynergysystems.com/support/crossdomain.xml'); The docs of this method state that the player caches these policies, so be sure to close all Flash Player instances down. The docs also state that this call must occur before any access is attempted. In our application we found that making the call several lines before the upload was attempted failed. How do we know it failed? Our web server access logs didn't show crossdomain.xml ever being requested. Once we moved this line of code to be the first code executed inside of our application's initialize event, we suddenly saw the request come through on our access logs. At last- progress! Progress, but not success. Uploading still failed with a bland IOError. We ended up trying several different combinations, and what we found was that we had to use explicit absolute URLs and port numbers. Our crossdomain.xml file then read: ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=flexdemos.cynergysystems.com to- ports=443 / /cross-domain-policy Notice how we didn't use the * anywhere in the file- we explicitly authorized our fully named domain and port 443. Finally, the URL used to do the upload also required explicit definition. We used: https://flexdemos.cynergysystems.com:443/support/websrv/uploadservlet ?threadid= + tId.toString(); Notice in particular that we explicitly set port 443. Not sure why that was required, but it was and it works ;-) With this combination of settings, we are successfully using fileIO.swf with Flex 1.5/Flash Player 8 over HTTPS on port 443 in production. I hope this information is useful to many, if only to confirm that the code MACR provided does indeed work properly. The debate will now rage over the fact that absolute URLs and explicit ports have to be declared- bug or not? Who knows... HTH, Jason -- Jason Weiss Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: jasonDOTweissATcynergysystemsDOTcom Office: 866-CYNERGY Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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/
[flexcoders] Cool Flex Site with Free 30 day trial
There is a new company that has been making a corporate training solution and doing some pretty cool things with it in flex... (from what I understand they are doing some video branching which can probably lead to choose your own adventure type training) they offer a totally free 30 day trial at: https://www1.g-t-t.com/ecom/processPromotion.cfml could be exciting for those in the business world sj Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] Cool Flex Site with Free 30 day trial
Where'd you read about it? Got a link to the news item? - Original Message - From: sir_janksalot [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, November 04, 2005 7:25 PM Subject: [flexcoders] Cool Flex Site with Free 30 day trial There is a new company that has been making a corporate training solution and doing some pretty cool things with it in flex... (from what I understand they are doing some video branching which can probably lead to choose your own adventure type training) they offer a totally free 30 day trial at: https://www1.g-t-t.com/ecom/processPromotion.cfml could be exciting for those in the business world sj -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] AJAX ms etc -- Flex2: pricing info
On 11/10/05, JesterXL [EMAIL PROTECTED] wrote: If they're smart patented it, they'll sue those who get in their way. If they had patented it, none of the other web browsers would have had support for it, (as a result) nobody would have used it, and it would have been a dead-on-arrival. AJAX only became popular because other browsers started having support for it (it's been around in IE since 1998, no?). Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] How to add checkboxes to datagrid
The Flex Explorer sample has an example under Component Library DataGrid Custom Cell Renderers From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of sandip_patil01 Sent: Tuesday, November 08, 2005 11:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to add checkboxes to datagrid Hi All, I want to add checkboxes to my DataGrid's first column. Here is my scenorio, ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml mx:DataGrid id=dataGrid mx:columns mx:Array mx:DataGridColumn headerText= width=23 / mx:DataGridColumn headerText=Customer Name/ mx:DataGridColumn headerText=Contact Name / mx:DataGridColumn headerText=Type / mx:DataGridColumn headerText=Details / /mx:Array /mx:columns /mx:DataGrid /mx:Application Can anybody tell me how to do this. Thx, Sandip patil -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. 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] Using labelfunction with datagrid
Check out the computed column demo in the Flex Explorer under Component Library DataGrid From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of leorajpoot Sent: Wednesday, November 09, 2005 1:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Using labelfunction with datagrid hi all i m using labelfunction with datagrid column to display data of one column of the data grid.please anyone tell me how to write label function for this purpose. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. 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] Applications forgetting variables
Nope, are you sure youre not re-creating classes? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, November 09, 2005 9:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Applications forgetting variables I have had a problem with my applications forgetting the values of variables. My application has one mxml file and several .as files and it seems to forget the values at times in the process of running. What I want to know is this if I declare a variable in one .as file do I have to declare it in all .as files even if its not going to be called or used? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. 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] Re: Lazy loading components
On 11/9/05, JesterXL [EMAIL PROTECTED] wrote: That's what I said in the previous email, but eventually... everything is created. At least in Flex 2, I'm assumign they won't be on the display list. When a container's creationPolicy is none, its children have _not been created_. In the following example...: ViewStack MyBox1 / MyBox2 / MyBox3 / /ViewStack The children of MyBox2 and MyBox3 are _not created_ until they become selected. Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] RE: FileIO Example
Hey Could you forward me a copy of that modified FileIO.swf? I wanted to use multiple file uploading but I am to lazy to build it myself. I would appreciate it. Thanks --Kelly -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon Barber Sent: Wednesday, November 09, 2005 5:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] RE: FileIO Example We have been messing with the fileIO.swf tutorial and have tried everything in the book to get it working with no luck, can anyone help with some suggestions, when we unzip it the main.mxml will not even load the browse window. We would also like to handle the file with php vs cf but we cant even get the cf version working... I have converted the fileIO.swf example to work with the FileReferenceList class to allow for multiple file uploads. I can also help out with using PHP instead of CF. Let me know what sort of problems you are having. Simon -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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/
[flexcoders] Need help from web service handler
hi there, is anyone can help me with the result handler from flex. I have a problem with i call .net webservice. The input parameter to .net service is string and that ok with that but when .net web service reponse is xmldocument so how can i handler at flex client side here is my code: .net webservice: [webmethod] public xmlDocument testing(string input) //string input in xml format { xmlDocument buffer = new xmlDocument(); buffer.load(input); return buffer; } thanks Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] Flex 2:Class Problem?
Id guess that means that it cant find stdFuncs since you shouldnt get an error passing null into the parameters so the only place on that line that you try to access a property is of stdFuncs. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Greg Johnson Sent: Tuesday, November 08, 2005 1:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 2:Class Problem? I finally got some time to setup classes for some common functions and it was working, then I rolled it out to all parts of the application and now it balks on me. Here is the error in debug view [SWF] C:\Documents and Settings\gjohnson\My Documents\Flex\mr_new\bin\mr-debug.swf - 1,611,760 bytes after decompression Flex accessibility startup: true TypeError: Error #1009: null has no properties. Here is the error from the flash player TypeError: Error #1009: null has no properties. at mr/doResultGetPeople()[C:\Documents and Settings\gjohnson\My Documents\Flex\mr_new\mrCFCHandlers.as:105] at mr/___Operation15_result()[C:\Documents and Settings\gjohnson\My Documents\Flex\mr_new\mr.mxml:55] at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractOperation/http://www.macromedia.com/2005/flex/mx/inter nal::dispatchRpcEvent() [C:\dev\max\sdk\frameworks\mx\rpc\AbstractOperation.as:167] at mx.rpc.soap::Operation/http://www.macromedia.com/2005/flex/mx/internal ::resultHandler() [C:\dev\max\sdk\frameworks\mx\rpc\soap\Operation.as:592] at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::Producer/http://www.macromedia.com/2005/flex/mx/internal::ackn owledge()[C:\dev\max\sdk\frameworks\mx\rpc\Producer.as:59] at mx.messaging.channels$1021 $private::HTTPMessageResponder/completeHandler() [C:\dev\max\sdk\frameworks\mx\messaging\channels\DirectHTTPChannel.as: 237] at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/URLLoader$502$private::onComplete() - Here are the germain parts of my code mr.mxml !-- Managment Reporting Main Web Service Definition -- mx:WebService id=mr_main wsdl={removed for posting} fault=stdFuncs.cfcerr('mr_main','', event.fault.faultcode, event.fault.faultstring, event.fault.description, event.fault.detail) showBusyCursor=true mx:operation name=getPeopleByName_cfc result=doResultGetPeople(event.result) fault=stdFuncs.cfcerr ('mr_main','getPeopleByName_cfc', event.fault.faultcode, event.fault.faultstring, event.fault.description, event.fault.detail) / mx:operation name=getDeptPIDs_cfc result=doResultGetDepartmentPIDs(event.result) fault=stdFuncs.cfcerr('mr_main','getDeptPIDs_cfc', event.fault.faultcode, event.fault.faultstring, event.fault.description, event.fault.detail) / mx:operation name=getCompany_cfc result=doResultGetCompany(event.result) fault=stdFuncs.cfcerr ('mr_main','getCompany_cfc', event.fault.faultcode, event.fault.faultstring, event.fault.description, event.fault.detail) / mx:operation name=getPerson_cfc result=doResultGetPerson(event.result) fault=stdFuncs.cfcerr ('mr_main','getPerson_cfc', event.fault.faultcode, event.fault.faultstring, event.fault.description, event.fault.detail) / mx:operation name=getDeptList_cfc result=doResultGetDeptList(event.result) fault=stdFuncs.cfcerr ('mr_main','getDeptList_cfc', event.fault.faultcode, event.fault.faultstring, event.fault.description, event.fault.detail) / mx:operation name=getPermissions_cfc result=doResultGetPermissions(event.result) fault=stdFuncs.cfcerr ('mr_main','getPermissions_cfc', event.fault.faultcode, event.fault.faultstring, event.fault.description, event.fault.detail) / /mx:WebService -- mycode.as -- import mx.collections.ArrayCollection; [Bindable] public var investigatorResultsGrid_dp:ArrayCollection = new ArrayCollection(); public var stdFuncs:stdlib; //** Get People CFC ** // Caller public function getPeople(name:String, deptcode:String, deptname:String):Void{ mr_main.getPeopleByName_cfc(name, deptcode, deptname, getPIDs ()); } // Result Handler public function doResultGetPeople(result:Array):Void { // *** it errors on the following line stdFuncs.CFC2AS(result,investigatorResultsGrid_dp); investigatorResultsGrid.visible=true; investigatorResultsGrid.selectedIndex=0; selections_vs.selectedIndex=0; selectionsPanel.visible=true; getPerson(); } -- Here is the class - stdlib.as - package { import mx.collections.ArrayCollection; import mx.events.DragEvent; public interface stdlib { function CFC2AS(newArray:Array, oldArray:ArrayCollection):Void function getToday():String function doDragDrop(event:DragEvent):Void function detectDoubleClick(event:Object, functionToCall_func:Function, ...
RE: [flexcoders] Cursor position in editable ComboBox
Maybe try using Selection.getCaretIndex() as the input_length? Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, November 09, 2005 8:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cursor position in editable ComboBox Hi List, I try to code a auto complete ComboBox. It nearly woks, I give you my code: ?xml version=1.0 encoding=UTF-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml mx:Script ![CDATA[ var my_select; function completeComboBox(){ var input_length = brand.value.length; for(var i=0; i brands.brand.length; i++){ if(brands.brand[i].substr(0,input_length) == brand.value.toUpperCase().substr(0,input_length)){ brand.text = brands.brand[i]; break; } } } ]] /mx:Script mx:Model id=brands source=brands.xml / mx:Panel width=100% height=100% mx:Form width=100% height=100% mx:FormItem label=brand mx:ComboBox id=brand dataProvider={brands.brand} editable=true change=completeComboBox() / /mx:FormItem /mx:Form mx:TextArea text={my_select} width=100% height=25%/mx:TextArea /mx:Panel /mx:Application If I type only one character, the completion works well. The problem is a user input longer than one character. I'll give you an example. Lets say I'm searching for the brand Mercedes-Benz. I type M, auto completion is executed and there is Malaguti in the editable ComboBox. The cursor is behind the M. I search for Mercedes-Benz and type e. The e is inserted at the cursor position and there is Mealaguti in the ComboBox. Is there any possibility to cut off everything which is behind the cursor, so the auto completion only uses characters I typed in? Any thougt is appreciated. Christoph -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. 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] Re: Lazy loading components
Aye, but once you select them, they are a created. Again, eventually everyone's created. ...come on man, I was cracked out and made a dumb comment to the AJAX email... you gotta give me this one. - Original Message - From: Manish Jethani [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, November 09, 2005 10:22 PM Subject: Re: [flexcoders] Re: Lazy loading components On 11/9/05, JesterXL [EMAIL PROTECTED] wrote: That's what I said in the previous email, but eventually... everything is created. At least in Flex 2, I'm assumign they won't be on the display list. When a container's creationPolicy is none, its children have _not been created_. In the following example...: ViewStack MyBox1 / MyBox2 / MyBox3 / /ViewStack The children of MyBox2 and MyBox3 are _not created_ until they become selected. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] File Upload over HTTPS: Solved!
This is a bug in the 8.0.22 player... if you use the 8.0.15 player, everything works fine. MM is going to fix it, we (me and another developer here) worked with MM Support and discovered this info last week. A bit late in posting, but I guess now with your info as well, this should help a few people. Jimmy Gianninas Optimal Payments Inc. -Original Message- From: flexcoders@yahoogroups.com on behalf of Jason R. Weiss Sent: Wed 11/9/2005 8:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] File Upload over HTTPS: Solved! All, There have been a lot of posts recently at the MACR web site, in the MACR NNTP newsgroups and several threads here (as well as other places) about using the file upload features over HTTPS. Specifically, the problem many folks saw was that it worked great on HTTP but failed with an IOError when using HTTPS. Earlier in the week our team at Cynergy determined that it was clearly a crossdomain.xml issue since HTTPS worked properly on ports above 1024, e.g. 8443. With this in mind, we set out to find the right combination of settings to make HTTPS work properly on its home port of 443. We now have a working solution on two different servers and we wanted to share this knowledge with the community. The problem actually has several variables and factors that need to be considered. First and foremost, our formula for success relied on loadPolicyFile (): System.security.loadPolicyFile ('https://flexdemos.cynergysystems.com/support/crossdomain.xml'); The docs of this method state that the player caches these policies, so be sure to close all Flash Player instances down. The docs also state that this call must occur before any access is attempted. In our application we found that making the call several lines before the upload was attempted failed. How do we know it failed? Our web server access logs didn't show crossdomain.xml ever being requested. Once we moved this line of code to be the first code executed inside of our application's initialize event, we suddenly saw the request come through on our access logs. At last- progress! Progress, but not success. Uploading still failed with a bland IOError. We ended up trying several different combinations, and what we found was that we had to use explicit absolute URLs and port numbers. Our crossdomain.xml file then read: ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=flexdemos.cynergysystems.com to- ports=443 / /cross-domain-policy Notice how we didn't use the * anywhere in the file- we explicitly authorized our fully named domain and port 443. Finally, the URL used to do the upload also required explicit definition. We used: https://flexdemos.cynergysystems.com:443/support/websrv/uploadservlet ?threadid= + tId.toString(); Notice in particular that we explicitly set port 443. Not sure why that was required, but it was and it works ;-) With this combination of settings, we are successfully using fileIO.swf with Flex 1.5/Flash Player 8 over HTTPS on port 443 in production. I hope this information is useful to many, if only to confirm that the code MACR provided does indeed work properly. The debate will now rage over the fact that absolute URLs and explicit ports have to be declared- bug or not? Who knows... HTH, Jason -- Jason Weiss Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: jasonDOTweissATcynergysystemsDOTcom Office: 866-CYNERGY -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS *Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. *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 ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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/ winmail.dat
Re: [flexcoders] Code-only Flex apps
On 11/3/05, Daniel Cascais [EMAIL PROTECTED] wrote: I've just started playing around with Flex 2's alpha and AS 3, so I might be missing something. Are we [going to be] able to build code-only Flex apps, using Flex components without a single line of MXML? You'll need some setup MXML, like so: Application initialize=main() Script source=main_script.as / /Application In your main_script.as you write your main function (which is an instance method on the Application-derived class). From there it's all yours. It'll be hard to do it without a _single line of MXML_ -- there's just so much setup code required (see the -generated.as file) that it's not work writing by hand. Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] Creating custom v3 components
On 11/3/05, Xavi Beumala [EMAIL PROTECTED] wrote: For what I've seen v3 components are based on a template method pattern like did v2. By v3 components, I assume you mean the new Flex 2 components... If I'm not wrong this is the method invocation workflow : Constructor Initialize createChildren childrenCreated measure updateDisplayList The order is correct, but it's longer than that. The documentation is not ready yet. Instead of calling invalidate() like in v2, now, if I'm not wrong, we can call redraw(Boolean) or invalidateDisplayList(). On the other hand Yes, previously we had invalidateLayout() and invalidate() corresponding with layoutChildren() and draw() Now in the new API we have just one method that lays out and draw the component: updateDisplayList(). To have updateDisplayList() called on the next frame, call invalidateDisplayList() when you call addChild, internally invalidateDisplayList is called. My problem is that if in updateDisplayList() overriden method I add an addChild statement then an infinite loop starts. So why would you add a child unconditionally? You obviously want to add a child only if it's not there, right? if (!button) { button = new Button(); button.label = Cool; addChild(button); } Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] Redrawing/clearing a portion of a drawing in Flex 1.5 canvas
On 11/1/05, Eric Raymond [EMAIL PROTECTED] wrote: If we have a canvas that has been drawn into (e.g.m using lineTo) and we want to change just one part of the drawing, is there a way to do this without calling clear(). I don't think so. Are the drawn elements children of the canvas which can subsquently be manipulated/deleted? No, they're not children. Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] History Management problems
Try referring to lc_id as top.lc_id. http://groups.yahoo.com/group/flexcoders/message/7849 On 10/31/05, moyosaned [EMAIL PROTECTED] wrote: We got the following problem. We builded an application witch History Management. Now in de precompiled swf + html it is working correct. but when we copy past the htmlcode en call this html. we see that that on action history is updated (check Back-button). Because we got 2 servers 1 flexserver and 1 server for html, cms, etc. we thought it had something to do with crossdomain. So we stored the js, swf and iframe, that are needed for history, and tried it like that but still same effect history is updated but but there is no action followd by clicking on Back. (we have adjusted the paths) Sample // script language='javascript' charset='utf-8' src='history.js'/script script language='javascript' charset='utf-8' document.write(object classid='clsid:D27CDB6E-AE6D-11cf-96B8- 44455354' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swf lash.cab#version=7,0,14,0' width='100%' height='100%'); document.write(id='news.swf'); document.write(); document.write( param name='flashvars' value='historyUrl=flex- internal.htmlconid= + lc_id +postingid=188dc949%2D6f31%2D4e1e% 2D90ba%2D4dcb89ed68eb); document.write( param name='src' value='news.swf'); document.write( embed pluginspage='http://www.macromedia.com/go/getflashplayer' width='100%' height='100%'); document.write(flashvars='historyUrl=flex-internal.htmlconid= + lc_id +postingid=188dc949%2D6f31%2D4e1e%2D90ba%2D4dcb89ed68eb); document.write(src='news.swf'); document.write(name='news.swf'); document.write( /); document.write(/object); /script script language='javascript' charset='utf-8' document.write(briframe src='flex-internal.htm' name='_history' frameborder='0' scrolling='no' width='22' height='0'/iframe/br); /script // -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] Re: Lazy loading components
On 11/10/05, JesterXL [EMAIL PROTECTED] wrote: Aye, but once you select them, they are a created. Again, eventually everyone's created. ...come on man, I was cracked out and made a dumb comment to the AJAX email... you gotta give me this one. Sorry, I think I took your comment out of context. You're right, eventually everything is created. Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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] AJAX ms etc -- Flex2: pricing info
XmlHttpRequest has been staring everyone in the face for years, yet some clown throws an acronym behind to highlight how cool it can be used, and suddenly a religion is formed. Don't get me started, but to me its like selling your old bomb piece of crap car, and then 5mins turn around see it has a new coat of paint and some minor body work, and the person who refined it is being praised as this years new innovative engineering marvel... meanwhile the radiator still leaks, and there is those stains in the backseat that still need explaining but get overlooked due to the fact that side door has flames on it... I need to stop badgering AJAX and let it be i think.On 11/10/05, Manish Jethani [EMAIL PROTECTED] wrote:On 11/10/05, JesterXL [EMAIL PROTECTED] wrote: If they're smart patented it, they'll sue those who get in their way.If they had patented it, none of the other web browsers would have hadsupport for it, (as a result) nobody would have used it, and it would have been a dead-on-arrival.AJAX only became popular because otherbrowsers started having support for it (it's been around in IE since1998, no?). Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM~- --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * 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/-- Regards,Scott Barneshttp://www.mossyblog.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.