Re: [flexcoders] Re: New Adobe forums coming!
I just took a look @ adobeforums.com tonight (thurs night). Is that what the new forums will be like? -radley On Apr 2, 2009, at 10:00 PM, Matt Chotin wrote: I think that will be up to folks who use flexcoders. I’m hoping that we’ll consolidate and therefore be able to not rely on a separate list, but I want the forums to prove themselves worthy of that :-) On 4/2/09 9:57 PM, Bjorn Schultheiss bjorn.mailingli...@gmail.com wrote: Will the forums replace flexcoders? --- In flexcoders@yahoogroups.com mailto:flexcoders %40yahoogroups.com , Matt Chotin mcho...@... wrote: Hi all, If you've been using the Adobe forums via the web interface recently you probably saw notices that we're introducing a huge upgrade to the forum system. We're combining the user-to-user forums (adobeforums.com) and the adobe.com forums into a single forum system. We're going to have some great features in there like email participation, RSS feeds, moderation supported by community members (on specific forums, if appropriate), better text entry support (including some levels of code formatting), and user ratings. This has me pretty excited as I think it will be a huge improvement over what we have. The forums are going to be down starting on Friday at 3pm PDT so we can migrate the last 36 months of content over to the new system. We expect the new system to come up by Monday. Once they're up I hope folks will check things out and become active participants. I'll be curious to see what you think, I'm hoping we might even look into combining some of our separated forums under the system if it can meet folks' usability needs. So stay tuned! Matt
[flexcoders] database question
hi i know this is not a flex question but is related to flex anyway. i have an access database with two tables A and B. the two are related in that the primary key of A(which is autonumber) is related to the foreign key in B. not i would like that when i insert data in the two tables A and B the foreign key of B is set to equal to the auto generated Primary key of A. How can i do this with coldfusion. i dont wanna do it in access itself but in the coldfusion query. thanks
Re: [flexcoders] Re: New Adobe forums coming!
Nope - I believe it will look like this: http://adobeforums.adobe.com/index.jspa 2009/4/3 Radley che...@eoptica.com: I just took a look @ adobeforums.com tonight (thurs night). Is that what the new forums will be like? -radley On Apr 2, 2009, at 10:00 PM, Matt Chotin wrote: I think that will be up to folks who use flexcoders. I’m hoping that we’ll consolidate and therefore be able to not rely on a separate list, but I want the forums to prove themselves worthy of that :-) On 4/2/09 9:57 PM, Bjorn Schultheiss bjorn.mailingli...@gmail.com wrote: Will the forums replace flexcoders? --- in flexcod...@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin mcho...@... wrote: Hi all, If you've been using the Adobe forums via the web interface recently you probably saw notices that we're introducing a huge upgrade to the forum system. We're combining the user-to-user forums (adobeforums.com) and the adobe.com forums into a single forum system. We're going to have some great features in there like email participation, RSS feeds, moderation supported by community members (on specific forums, if appropriate), better text entry support (including some levels of code formatting), and user ratings. This has me pretty excited as I think it will be a huge improvement over what we have. The forums are going to be down starting on Friday at 3pm PDT so we can migrate the last 36 months of content over to the new system. We expect the new system to come up by Monday. Once they're up I hope folks will check things out and become active participants. I'll be curious to see what you think, I'm hoping we might even look into combining some of our separated forums under the system if it can meet folks' usability needs. So stay tuned! Matt -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:flexcoders-dig...@yahoogroups.com mailto:flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Need Help For Designing Modular Application
Hello Friends, We are in process of evaluating Flex for a Multi-Form database application. The Target application will have almost 100+ forms for data-entry, query, report generation. it is migration of a delphi-firebird lan based client-server desktop application to web. The typical interface is on left side there will a menu in form of tree-view and on right side there will be a MDICanvas will have multiple MDIpanels. Each MDIpanel will be a independent form containing data-base connection and controls reprenting data-fields. As per studies till date we arrived at conclusion that having all the forms in a single swf will make initial loading of application will be much longer so we would like know how we can break up a single swf in smaller swfs which will be loaded on demand but main application and each form need to share some common data may be passed as parameters to function creating and displaying the MDIPanel such as URL to database, company name etc. etc. Can somebody give us some idea whether this is possible in flex and if possible how. one can give URLs of reading material or example application. We plan to prepare a small pilot application by 15th of April to demonstrate to our prospective client. We are team of software professional with about 10/15 years experience in developing and implementing Lan based Client-server desktop applications using front end delphi and back ends like firebird oracle mssql server. We design application where main application exe contains main form with menu and other forms are grouped in to 5/6 dlls of size 2 to 3 MB and are created on demand and destryed when closed. We need similar functionality with flex too so that load times and memory is used optimistically. Thanks for reading this long mail and hope u respond to help us out best regards. Raja Patil
[flexcoders] Re: Why does percentWidth / percentHeight not work with popups?
Thanks Alex --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Basically yes. Parents size their children in Flex and popups don't have a parent. (actually they do because they are parented by SystemManager, but SystemManager doesn't layout its children. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui
[flexcoders] Re: Why does percentWidth / percentHeight not work with popups?
Hi Tracy, I originally tried that, but if you are using a transition (say, to resize over 500ms) it breaks the transition (it just instantly resizes). Mark --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: Suppose on resize you call PopUpmanager.centerPopUp()/ Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of skuteboarding Sent: Thursday, April 02, 2009 5:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Why does percentWidth / percentHeight not work with popups? I'm trying to create a popup at 100% of the width / height of the application. But it just ignores these values. I've had to work around the problem by doing: BindingUtils.bindProperty(popup, width, this, width); BindingUtils.bindProperty(popup, height, this, height); (Where 'this' is the application). The reason I'm trying to do this is I've got a popup that I want centred in the view, but it has different states which change the size of the popup. Mark
RE: [flexcoders] Need Help For Designing Modular Application
You want to read up on the following articles http://livedocs.adobe.com/flex/3/html/help.html?content=modular_2.html http://blogs.adobe.com/rgonzalez/2006/06/modular_applications_part_1.htm l http://blogs.adobe.com/rgonzalez/2006/06/modular_applications_part_2.htm l http://weblogs.macromedia.com/pent/archives/2007/01/building_module.html Also, the common mistakes usually end up surrounding application domains so read up on http://blogs.adobe.com/rgonzalez/2006/06/applicationdomain.html http://blogs.adobe.com/aharui/ when you run into problems. HTH, Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of R. S. Patil Sent: 03 April 2009 08:41 To: flexcoders@yahoogroups.com Subject: [flexcoders] Need Help For Designing Modular Application Hello Friends, We are in process of evaluating Flex for a Multi-Form database application. The Target application will have almost 100+ forms for data-entry, query, report generation. it is migration of a delphi-firebird lan based client-server desktop application to web. The typical interface is on left side there will a menu in form of tree-view and on right side there will be a MDICanvas will have multiple MDIpanels. Each MDIpanel will be a independent form containing data-base connection and controls reprenting data-fields. As per studies till date we arrived at conclusion that having all the forms in a single swf will make initial loading of application will be much longer so we would like know how we can break up a single swf in smaller swfs which will be loaded on demand but main application and each form need to share some common data may be passed as parameters to function creating and displaying the MDIPanel such as URL to database, company name etc. etc. Can somebody give us some idea whether this is possible in flex and if possible how. one can give URLs of reading material or example application. We plan to prepare a small pilot application by 15th of April to demonstrate to our prospective client. We are team of software professional with about 10/15 years experience in developing and implementing Lan based Client-server desktop applications using front end delphi and back ends like firebird oracle mssql server. We design application where main application exe contains main form with menu and other forms are grouped in to 5/6 dlls of size 2 to 3 MB and are created on demand and destryed when closed. We need similar functionality with flex too so that load times and memory is used optimistically. Thanks for reading this long mail and hope u respond to help us out best regards. Raja Patil
[flexcoders] ComboBox SelectedItem why not inspectable.
Hi, Why isn't the ComboBox.selectedItem available in MXML? It would be better then selectedIndex in many cases. Regards, Wesley Acheson
[flexcoders] Flex Builder Actionscript Projects ...
Does anyone have a link to reference material or information about Flex Builder Actionscript Projects? Specifically the config file with default filename of .actionScriptProperties ? I can't find any information about this on the web, and my Flex Builder application doesn't allow me to edit these settings via the usual 'Navigator : Properties (right-click)' Thanks.
[flexcoders] Custom Item Renderer
Hi, I am using AdvancedDataGrid control it is getting data from xml. I want show image nearby depending upon the data in the DataGrid. If any know please reply... Regards, Pon
[flexcoders] Best approach for Dynamic UI generation from XML...
I have a task of dynamically generating Flex UI forms from XML. I am free to design the look of the XML to be whatever I like. Is there a best approach to this problem, other than iterating over the XML and one by one creating objects that maps to Flex UI elements? Thanks,
Re: [flexcoders] ComboBox SelectedItem why not inspectable.
Looking at the ComboBox code, it looks like the inspectable metadata is set to none. I assume that hides it from code hinting. However, despite that you should be able to use it w/ no problems in MXML just as you would w/ ActionScript. Wesley Acheson wrote: Hi, Why isn't the ComboBox.selectedItem available in MXML? It would be better then selectedIndex in many cases. Regards, Wesley Acheson -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
[flexcoders] Re: Creating RemoteObject in ActionScript as dataProvider for ComboBox
I have posted a number of examples here. To start, follow this thread... http://tech.groups.yahoo.com/group/flexcoders/message/126783 --- In flexcoders@yahoogroups.com, brad.bueche b...@... wrote: I cant find a good example of how to create a remoteObject in ActionScript. All the examples seem to be way more complicated than I need and I cant follow what they are doing. On top of that, they don't cover the parameters that I need. I've also looked through 5 books. ActionScript books dont cover it and flex books do it via mxml! All I need to do is recreate the mxml:RemoteObject in Actionscript. This is a very simple connection via CF. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.events.FlexEvent; import mx.controls.ComboBox; public var cbx:ComboBox = new ComboBox(); private function addPanelChild():void { var buttonName:String; cbx.x = 60; cbx.addEventListener(FlexEvent.CREATION_COMPLETE,handleCreationComplete); cbx.labelField = Label; addChild(cbx); } private function handleCreationComplete(e:FlexEvent):void{ conn.getData(); } ]] /mx:Script mx:RemoteObject id=conn destination=ColdFusion source=cfching.components.comboBox result=cbx.dataProvider = event.result; /mx:RemoteObject mx:Button id=btn1 label=test click=addPanelChild(); / /mx:Application
RE: [flexcoders] database question
You can simply do a select on the first 'id' if your query is ordered correctly, like: Select top1 id from table order by id desc Or there may be a function in access to return the latest ID. In MS SQL and MySql there are similar functions such as: SELECT LAST_INSERT_ID() AS lastInsertID FROM mytable Simply do another insert on the second table then. Shaun McCran T: 07792 783 184 E: sh...@mccran.com W: www.mccran.co.uk To: flexcoders@yahoogroups.com From: johndoemat...@yahoo.com Date: Fri, 3 Apr 2009 07:38:11 + Subject: [flexcoders] database question hi i know this is not a flex question but is related to flex anyway. i have an access database with two tables A and B. the two are related in that the primary key of A(which is autonumber) is related to the foreign key in B. not i would like that when i insert data in the two tables A and B the foreign key of B is set to equal to the auto generated Primary key of A. How can i do this with coldfusion. i dont wanna do it in access itself but in the coldfusion query. thanks _ Share your photos with Windows Live Photos – Free. http://clk.atdmt.com/UKM/go/134665338/direct/01/
[flexcoders] Re: database question
i would like to do it with a coldfusion query. i dont want the database to do it automatically. the thing is this, i want to insert data in the two tables at once and i would like that the primary key(auto number) in table A be reflected in table B as soon as the data is inserted. thanks
[flexcoders] Re: Creating RemoteObject in ActionScript as dataProvider for ComboBox
ok, read that. I DID search via Nabble first but I searched on RemoteObject in ActionoScript. I'm going to do webOrb after I get a few things with CF figured out. (CF setup just seems to have a lot fewer moving partswhich is the level I need right now). Here is where I am now. I thought it was the toString on the event.result that I was missing but I added that and my comboBox is still empty. This all works in mxml so its not the .cfc file or my query etc. Its a problem with my actionscript. Here is the latest iteration of the code: (its just adding a ComboBox in reaction to a button-click, and then populating that ComboBox through the results of an sql query to oracle as executed by cold fusion. The sql query returns a list of names (single column) and the column name is Label) mx:Script ![CDATA[ import mx.rpc.events.ResultEvent; import mx.events.FlexEvent; import mx.controls.ComboBox; import mx.rpc.remoting.RemoteObject; public var cbx:ComboBox = new ComboBox(); private function addComboBox():void { cbx.x = 60; cbx.addEventListener(FlexEvent.CREATION_COMPLETE,createRemoteObject); cbx.labelField = Label; addChild(cbx); } public var connObject:RemoteObject; public function createRemoteObject(e:FlexEvent):void{ connObject = new RemoteObject(); connObject.destination = ColdFusion; connObject.source = cfching.components.Single_CF_Query_2_DB; connObject.addEventListener(FlexEvent.CREATION_COMPLETE,getQueryResult); } private function getQueryResult(event:ResultEvent):void{ cbx.dataProvider = event.result.toString(); } ]] /mx:Script mx:Button id=btn1 label=test click=addComboBox(); / /mx:Application --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: I have posted a number of examples here. To start, follow this thread... http://tech.groups.yahoo.com/group/flexcoders/message/126783 --- In flexcoders@yahoogroups.com, brad.bueche brad@ wrote: I cant find a good example of how to create a remoteObject in ActionScript. All the examples seem to be way more complicated than I need and I cant follow what they are doing. On top of that, they don't cover the parameters that I need. I've also looked through 5 books. ActionScript books dont cover it and flex books do it via mxml! All I need to do is recreate the mxml:RemoteObject in Actionscript. This is a very simple connection via CF. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.events.FlexEvent; import mx.controls.ComboBox; public var cbx:ComboBox = new ComboBox(); private function addPanelChild():void { var buttonName:String; cbx.x = 60; cbx.addEventListener(FlexEvent.CREATION_COMPLETE,handleCreationComplete); cbx.labelField = Label; addChild(cbx); } private function handleCreationComplete(e:FlexEvent):void{ conn.getData(); } ]] /mx:Script mx:RemoteObject id=conn destination=ColdFusion source=cfching.components.comboBox result=cbx.dataProvider = event.result; /mx:RemoteObject mx:Button id=btn1 label=test click=addPanelChild(); / /mx:Application
Re: [flexcoders] ComboBox SelectedItem why not inspectable.
rant Yes thats the conclusion that I had reached this morning when working with it. I was just wondering if there was a reason to hide it from codeHinting. I mean they must have put that in there for a reason? I can't fathom it. Not on this work iteration but on one serveral weeks back I lost a lot of time because I believed the only way I could deal with the comboBox was selected item. So I rewrote a lot of my classes to also return an index. Now I'm mostly working with AS code rather than MXML code and I think my grip on how things work internally is better so its not so much of an issue. I know I should look up the language refrence for all the classes I use but to be honest who really has time for that? /rant Thanks, Jeffry Regards, Wes On Fri, Apr 3, 2009 at 2:32 PM, Jeffry Houser j...@farcryfly.com wrote: Looking at the ComboBox code, it looks like the inspectable metadata is set to none. I assume that hides it from code hinting. However, despite that you should be able to use it w/ no problems in MXML just as you would w/ ActionScript. Wesley Acheson wrote: Hi, Why isn't the ComboBox.selectedItem available in MXML? It would be better then selectedIndex in many cases. Regards, Wesley Acheson -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5hhttp://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developershttp://www.flextras.com?c=104 --http://www.theflexshow.comhttp://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
[flexcoders] Re: Enumeration???
thx, flexaustin --- In flexcoders@yahoogroups.com, Wesley Acheson wesley.ache...@... wrote: Assuming its a dynamic object you can iterate through the members using a for each in and or a for each in Imagine you have the following object typing from memory so forgive any typos. var obj:Object obj.firstName = wesley; obj.lastName = acheson; obj.age = Too old; var properties:String = ; for (var name:Object in obj) { properties=properties + name + , ; } Alert.show(properties); // Should return firstName, lastName, age, properties= for each(var value:Object in obj) { properties=properties + value+ , ; } Alert.show(properties); // Should return wesley, acheson, Too old, var properties:String = ; for (var name:Object in obj) { properties=properties + obj[name]+ , ; } Alert.show(properties); // Should return wesley, acheson, Too old, Look up the for statement anyway. Its at http://livedocs.adobe.com/flex/3/html/help.html?content=03_Language_and_Syntax_16.html Regards, Wesley Acheson On Thu, Apr 2, 2009 at 6:16 PM, flexaustin flexaus...@... wrote: I am not sure if enumeration is the correct term, but I was wondering how to achieve this AS3. I have a value object called myVO. I want to set the value of myVO in two ways (XML or and Object). If an Object is passed into myVO's constructor I want to do something like this ( keep an eye on d ). myVO code -- public class myVO { //PUBLIC VARS -- public var name:String = ''; public var model:String = ''; public var owner:String = ''; if( payload is XML ) { // if an xml object passed we use Ex4 to extract data. //insert xml code }else if( payload is Object ){ // if a generic object passed we manually extract data. for each( var d:* in Object ) { if( d ){ this.d = d; -- the part I need help with. } } if( payload.id ) this.id = payload.id; }else{ // Fail silently as we don't know what kind of data was passed, if any at all? } - my Object - Obj = new Object; Obj.name = 'me' Obj.model = 'big' Obj.owner = 'Ted' my vo instant --- var vo:myVO = new myVO(Obj); -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: TextArea Border?
I feel stupid. THX! flexaustin --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: editable=false -TH --- In flexcoders@yahoogroups.com, flexaustin flexaustin@ wrote: I am using the textArea and finally got the border to turn off, but when you click it, the theme color still shows? My background is white so I tried setting the theme and borderColor to white but that doesn't work either? I am using GUMBO so maybe its a bug? TextArea id=modelLabel selectable=false text=EL436AA-3430-GKSLD23-NHJ12548FGTR width=220 height=50/ CSS TextArea { borderSkin: ClassReference(null); upSkin: ClassReference( null ); overSkin: ClassReference( null ); downSkin: ClassReference( null ); disabledSkin: ClassReference( null ); borderThickness: 0; }
[flexcoders] Flex to Air comminication via LocalConnection - Error #2044
Hej Guy and Gals, I need some help getting localConnection to work. I have a Flex app running in the browser and an air app running on my desktop. Im trying to call a method on the air app from the flex app. I keep getting the dratted Error #2044: Unhandled StatusEvent:. level=error, code= error. Ive searched the net and not found anything that helps. Any ideas would be appreaciated. BTW im running both these from Flex Builder. Have also tryed running them from an air installation/web server. Heres the code: Thanks! /***\ ***/ /* Flex App / /***\ ***/ ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=init() width=319 height=299 mx:Script ![CDATA[ import flash.net.LocalConnection; private var conn:LocalConnection; private function init():void{ conn = new LocalConnection(); conn.addEventListener(StatusEvent.STATUS, status); conn.allowDomain('*'); conn.client = this; } private function InitConn():void{ textareaTasks.text += sending message\n; conn.send(connId, handler); } private function status(e:StatusEvent):void{ textareaTasks.text += e.level + \n; } ]] /mx:Script mx:Panel paddingLeft=20 paddingRight=20 paddingBottom=20 paddingTop=20 height=100% width=100% title=Send Message mx:Label text=Status output:/ mx:TextArea id=textareaTasks width=100% height=100%/ mx:Button id=connectagain click=InitConn( ) label=Send Message/ /mx:Panel /mx:Application /***/ /** AIR APP / /** / ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=351 height=261 mx:Script ![CDATA[ import mx.controls.Alert; import flash.net.LocalConnection; private var conn:LocalConnection; private function initConn():void{ conn = new LocalConnection(); conn.addEventListener(StatusEvent.STATUS, onStatus); conn.allowDomain('*'); conn.client = this; conn.connect(connId); labelStatus.text = connected to 'connId' \n; } public function handler(event:MouseEvent):void { labelStatus.text += Got a message\n; } private function onStatus(event:StatusEvent):void { trace(event); switch (event.level) { case status: labelStatus.text += LocalConnection.send() succeeded\n; break; case error: labelStatus.text += LocalConnection.send() failed\n; break; } } ]] /mx:Script mx:Panel horizontalCenter=0 verticalCenter=0 width=100% height=100% cornerRadius=0 paddingBottom=20 paddingLeft=20 paddingRight=20 paddingTop=20 mx:Label text=Status output:/ mx:TextArea width=100% height=100% id=labelStatus/ mx:Button label=Connect click=initConn()/ /mx:Panel /mx:WindowedApplication
RE: [flexcoders] ComboBox SelectedItem why not inspectable.
Be aware that there are only two cases where you can successfully set a ComboBox using selectedItem. One is that the dataProvider items must be simple text or numerical values. If the dataProvider items are objects (or xml), then the item you assign must be a *reference to an item in the dataProvider*. You can not, for example set it to a new object with the same property values. If you re-assign the dataProvider, then any vars holding an object will no longer be rererences to the dataProvider. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wesley Acheson Sent: Friday, April 03, 2009 10:48 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] ComboBox SelectedItem why not inspectable. rant Yes thats the conclusion that I had reached this morning when working with it. I was just wondering if there was a reason to hide it from codeHinting. I mean they must have put that in there for a reason? I can't fathom it. Not on this work iteration but on one serveral weeks back I lost a lot of time because I believed the only way I could deal with the comboBox was selected item. So I rewrote a lot of my classes to also return an index. Now I'm mostly working with AS code rather than MXML code and I think my grip on how things work internally is better so its not so much of an issue. I know I should look up the language refrence for all the classes I use but to be honest who really has time for that? /rant Thanks, Jeffry Regards, Wes On Fri, Apr 3, 2009 at 2:32 PM, Jeffry Houser j...@farcryfly. mailto:j...@farcryfly.com com wrote: Looking at the ComboBox code, it looks like the inspectable metadata is set to none. I assume that hides it from code hinting. However, despite that you should be able to use it w/ no problems in MXML just as you would w/ ActionScript. Wesley Acheson wrote: Hi, Why isn't the ComboBox.selectedItem available in MXML? It would be better then selectedIndex in many cases. Regards, Wesley Acheson -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl. http://tinyurl.com/684b5h com/684b5h http://www.twitter. http://www.twitter.com/reboog711 com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras http://www.flextras.com?c=104 .com?c=104 -- http://www.theflexs http://www.theflexshow.com how.com http://www.jeffryho http://www.jeffryhouser.com user.com -- Part of the DotComIt Brain Trust
Re: [flexcoders] ComboBox SelectedItem why not inspectable.
I spend a *LOT* of time looking through the language reference for classes that I use. Especially when trying to solve an issue. Wesley Acheson wrote: rant Yes thats the conclusion that I had reached this morning when working with it. I was just wondering if there was a reason to hide it from codeHinting. I mean they must have put that in there for a reason? I can't fathom it. Not on this work iteration but on one serveral weeks back I lost a lot of time because I believed the only way I could deal with the comboBox was selected item. So I rewrote a lot of my classes to also return an index. Now I'm mostly working with AS code rather than MXML code and I think my grip on how things work internally is better so its not so much of an issue. I know I should look up the language refrence for all the classes I use but to be honest who really has time for that? /rant Thanks, Jeffry Regards, Wes On Fri, Apr 3, 2009 at 2:32 PM, Jeffry Houser j...@farcryfly.com mailto:j...@farcryfly.com wrote: Looking at the ComboBox code, it looks like the inspectable metadata is set to none. I assume that hides it from code hinting. However, despite that you should be able to use it w/ no problems in MXML just as you would w/ ActionScript. Wesley Acheson wrote: Hi, Why isn't the ComboBox.selectedItem available in MXML? It would be better then selectedIndex in many cases. Regards, Wesley Acheson -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
RE: [flexcoders] Re: Creating RemoteObject in ActionScript as dataProvider for ComboBox
creationComplete only fires once, as soon as the component is created. You want to get the data returned from the call, so you need to use the result event instead. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of brad.bueche Sent: Friday, April 03, 2009 10:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Creating RemoteObject in ActionScript as dataProvider for ComboBox ok, read that. I DID search via Nabble first but I searched on RemoteObject in ActionoScript. I'm going to do webOrb after I get a few things with CF figured out. (CF setup just seems to have a lot fewer moving partswhich is the level I need right now). Here is where I am now. I thought it was the toString on the event.result that I was missing but I added that and my comboBox is still empty. This all works in mxml so its not the .cfc file or my query etc. Its a problem with my actionscript. Here is the latest iteration of the code: (its just adding a ComboBox in reaction to a button-click, and then populating that ComboBox through the results of an sql query to oracle as executed by cold fusion. The sql query returns a list of names (single column) and the column name is Label) mx:Script ![CDATA[ import mx.rpc.events.ResultEvent; import mx.events.FlexEvent; import mx.controls.ComboBox; import mx.rpc.remoting.RemoteObject; public var cbx:ComboBox = new ComboBox(); private function addComboBox():void { cbx.x = 60; cbx.addEventListener(FlexEvent.CREATION_COMPLETE,createRemoteObject); cbx.labelField = Label; addChild(cbx); } public var connObject:RemoteObject; public function createRemoteObject(e:FlexEvent):void{ connObject = new RemoteObject(); connObject.destination = ColdFusion; connObject.source = cfching.components.Single_CF_Query_2_DB; connObject.addEventListener(FlexEvent.CREATION_COMPLETE,getQueryResult); } private function getQueryResult(event:ResultEvent):void{ cbx.dataProvider = event.result.toString(); } ]] /mx:Script mx:Button id=btn1 label=test click=addComboBox(); / /mx:Application --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, valdhor valdhorli...@... wrote: I have posted a number of examples here. To start, follow this thread... http://tech. http://tech.groups.yahoo.com/group/flexcoders/message/126783 groups.yahoo.com/group/flexcoders/message/126783 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, brad.bueche brad@ wrote: I cant find a good example of how to create a remoteObject in ActionScript. All the examples seem to be way more complicated than I need and I cant follow what they are doing. On top of that, they don't cover the parameters that I need. I've also looked through 5 books. ActionScript books dont cover it and flex books do it via mxml! All I need to do is recreate the mxml:RemoteObject in Actionscript. This is a very simple connection via CF. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe. http://www.adobe.com/2006/mxml com/2006/mxml layout=absolute mx:Script ![CDATA[ import mx.events.FlexEvent; import mx.controls.ComboBox; public var cbx:ComboBox = new ComboBox(); private function addPanelChild():void { var buttonName:String; cbx.x = 60; cbx.addEventListener(FlexEvent.CREATION_COMPLETE,handleCreationComplete); cbx.labelField = Label; addChild(cbx); } private function handleCreationComplete(e:FlexEvent):void{ conn.getData(); } ]] /mx:Script mx:RemoteObject id=conn destination=ColdFusion source=cfching.components.comboBox result=cbx.dataProvider = event.result; /mx:RemoteObject mx:Button id=btn1 label=test click=addPanelChild(); / /mx:Application
[flexcoders] Re: Creating RemoteObject in ActionScript as dataProvider for ComboBox
OK, pretty close. You need to put the data that you get back into an ArrayCollection and give the ComboBox DataProvider this ArrayCollection... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.rpc.events.ResultEvent; import mx.events.FlexEvent; import mx.controls.ComboBox; import mx.rpc.remoting.RemoteObject; import mx.messaging.channels.AMFChannel; import mx.messaging.ChannelSet; import mx.collections.ArrayCollection; import mx.utils.ArrayUtil; private var cbx:ComboBox = new ComboBox(); private var cbxArrayCollection:ArrayCollection; private var connObject:RemoteObject; private var connChannelSet:ChannelSet; private var connAmfChannel:AMFChannel; private function addComboBox():void { cbx.x = 60; cbx.addEventListener(FlexEvent.CREATION_COMPLETE, createRemoteObject); cbx.labelField = Label; addChild(cbx); } public function createRemoteObject(e:FlexEvent):void { connChannelSet = new ChannelSet(); connAmfChannel = new AMFChannel(my-amf, http://myserver/WebORB30/weborb.php;); connChannelSet.addChannel(connAmfChannel); connObject = new RemoteObject(); connObject.requestTimeout = 10; connObject.channelSet = connChannelSet; connObject.destination = TestService; connObject.getData.addEventListener(ResultEvent.RESULT, getDataHandler); connObject.getData(); } private function getDataHandler(event:ResultEvent):void { cbxArrayCollection = new ArrayCollection(ArrayUtil.toArray(event.result)); cbx.dataProvider = cbxArrayCollection; } ]] /mx:Script mx:Button id=btn1 label=test click=addComboBox(); / /mx:Application You can ignore the channel stuff - I just use that so I don't have to create services-config.xml or remoting-config.xml files. HTH Steve --- In flexcoders@yahoogroups.com, brad.bueche b...@... wrote: ok, read that. I DID search via Nabble first but I searched on RemoteObject in ActionoScript. I'm going to do webOrb after I get a few things with CF figured out. (CF setup just seems to have a lot fewer moving partswhich is the level I need right now). Here is where I am now. I thought it was the toString on the event.result that I was missing but I added that and my comboBox is still empty. This all works in mxml so its not the .cfc file or my query etc. Its a problem with my actionscript. Here is the latest iteration of the code: (its just adding a ComboBox in reaction to a button-click, and then populating that ComboBox through the results of an sql query to oracle as executed by cold fusion. The sql query returns a list of names (single column) and the column name is Label) mx:Script ![CDATA[ import mx.rpc.events.ResultEvent; import mx.events.FlexEvent; import mx.controls.ComboBox; import mx.rpc.remoting.RemoteObject; public var cbx:ComboBox = new ComboBox(); private function addComboBox():void { cbx.x = 60; cbx.addEventListener(FlexEvent.CREATION_COMPLETE,createRemoteObject); cbx.labelField = Label; addChild(cbx); } public var connObject:RemoteObject; public function createRemoteObject(e:FlexEvent):void{ connObject = new RemoteObject(); connObject.destination = ColdFusion; connObject.source = cfching.components.Single_CF_Query_2_DB; connObject.addEventListener(FlexEvent.CREATION_COMPLETE,getQueryResult); } private function getQueryResult(event:ResultEvent):void{ cbx.dataProvider = event.result.toString(); } ]] /mx:Script mx:Button id=btn1 label=test click=addComboBox(); / /mx:Application --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: I have posted a number of examples here. To start, follow this thread... http://tech.groups.yahoo.com/group/flexcoders/message/126783 --- In flexcoders@yahoogroups.com, brad.bueche brad@ wrote: I cant find a good example of how to create a remoteObject in ActionScript. All the examples seem to be way more complicated than I need and I cant follow what they are doing. On top of that, they don't cover the parameters that I need. I've also looked through 5 books. ActionScript books dont cover it and flex books do it via mxml! All I need to do is recreate the mxml:RemoteObject in Actionscript. This is a very simple connection via CF.
RE: [flexcoders] Re: database question
If you do not want to do it in the db, you will need two queries. The first does the primary table insert and returns the auto generated key value. Then you can use that in the second insert query. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of johndoematrix Sent: Friday, April 03, 2009 9:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: database question i would like to do it with a coldfusion query. i dont want the database to do it automatically. the thing is this, i want to insert data in the two tables at once and i would like that the primary key(auto number) in table A be reflected in table B as soon as the data is inserted. thanks
[flexcoders] Re: database question
can that be done in one process and if possible how?
RE: [flexcoders] Best approach for Dynamic UI generation from XML...
mx:Repeater is very useful for this, saving a lot of effort over manually looping and using addChild() / removeChild(). It provides several other pieces of functionality, like automatic id generation, and recycling. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Ilam Mougy Sent: Friday, April 03, 2009 8:31 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Best approach for Dynamic UI generation from XML... I have a task of dynamically generating Flex UI forms from XML. I am free to design the look of the XML to be whatever I like. Is there a best approach to this problem, other than iterating over the XML and one by one creating objects that maps to Flex UI elements? Thanks,
Re: [flexcoders] Best approach for Dynamic UI generation from XML...
We do quite a bit of this at Truviso to dynamically generate Flex-based reports and live dashboards based on XML definitions. I think the details of how we do this could be improved, but the core structure is reasonably straightforward, through the magic of recursion. Basically, we have two types of components: Containers and Widgets. A Widget takes its XML definition and transforms our custom XML model to custom Flex components through a small series of (unfortunately) manual steps. A Container walks through its child definitions in the XML and instantiates new Containers or Widgets as appropriate. Having Factories for both Containers and Widgets helps keeps the coupling down. Are there limits on the sorts of things expected from your XML layer, or have you been given the daunting task of re-implementing mxmlc in actionscript? -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Ilam Mougy imo...@yahoo.com Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Best approach for Dynamic UI generation from XML... Date: Fri, 03 Apr 2009 12:31:07 - I have a task of dynamically generating Flex UI forms from XML. I am free to design the look of the XML to be whatever I like. Is there a best approach to this problem, other than iterating over the XML and one by one creating objects that maps to Flex UI elements? Thanks,
[flexcoders] Re: database question
How would it be possible if you need to get a new key first? In the SQL World we use cascading updates or triggers and we use transactions to ensure all updates are processed. If you can generate a primary key manually then you could run both updates not worrying to have orphan records. Is this your concern? --- In flexcoders@yahoogroups.com, johndoematrix johndoemat...@... wrote: can that be done in one process and if possible how?
[flexcoders] Re: database question
Here is a thought(i know am grasping at straws but will try).is there a way to set the foreign key field in table B to equal the primary Key field of table A so that when an entry is made it reflects. more like binding the two fields together.
[flexcoders] [ANN] Flexmojos 3.1 Released
Hi, I have been working hard over the last couple months in the Sonatype Forge on the next version of Flexmojos and it's now available. http://flexmojos.sonatype.org/ We did all the work for a client and they were happy to release it back to community under an Apache license. We have also written a small chapter on using Flexmojos in the Maven Guide: http://www.sonatype.com/books/maven-book/reference/ch20.html Sonatype is also plan to release m2e/Flexbuilder integration in the very near future as well. That will coincide with the m2e 0.9.8 release. Thanks, Velo
RE: [flexcoders] Re: database question
If I recall correctly, SELECT @@IDENTITY will return a newly generated key. I can't help with the CF. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markgoldin_2000 Sent: Friday, April 03, 2009 11:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: database question How would it be possible if you need to get a new key first? In the SQL World we use cascading updates or triggers and we use transactions to ensure all updates are processed. If you can generate a primary key manually then you could run both updates not worrying to have orphan records. Is this your concern? --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, johndoematrix johndoemat...@... wrote: can that be done in one process and if possible how?
RE: [flexcoders] Re: database question
You can do that in MS SQL with a trigger. Think of it as an event that fires when a condition is met. IE when table A gets a new entry, the trigger on the ID field will perform a specified script. (your insert into Table 2) Not sure if its possible in Access tho. These guys seem to think not: http://forums.databasejournal.com/showthread.php?threadid=44091 Shaun McCran T: 07792 783 184 E: sh...@mccran.com W: www.mccran.co.uk To: flexcoders@yahoogroups.com From: johndoemat...@yahoo.com Date: Fri, 3 Apr 2009 15:51:11 + Subject: [flexcoders] Re: database question Here is a thought(i know am grasping at straws but will try).is there a way to set the foreign key field in table B to equal the primary Key field of table A so that when an entry is made it reflects. more like binding the two fields together. _ View your Twitter and Flickr updates from one place – Learn more! http://clk.atdmt.com/UKM/go/137984870/direct/01/
[flexcoders] Re: database question
how can i perform this kind of trigger event in ms sql? may be i can give it a try in access.
[flexcoders] Re: Creating RemoteObject in ActionScript as dataProvider for ComboBox
Hey! It works! Thanks! And with your posts I should be able to do the same thing pretty quickly with webOrb/php, then it will be on to webOrb/.Net (which is our official in house server platform). It did not like the arrayCollection, btw, it threw an exception. But I did have a method in my .cfc and I was not even recognizing that I was using it: getData. cfcomponent output=false cffunction name=getData access=remote returntype=query output=false doh! Thanks for pointing that out. Thanks for your time! brad Here is the finished example: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.rpc.events.ResultEvent; import mx.events.FlexEvent; import mx.controls.ComboBox; import mx.collections.ArrayCollection; import mx.utils.ArrayUtil; import mx.rpc.remoting.RemoteObject; private var cbxArrayCollection:ArrayCollection; public var cbx:ComboBox = new ComboBox(); private function addComboBox():void { cbx.x = 60; cbx.addEventListener(FlexEvent.CREATION_COMPLETE,createRemoteObject); cbx.labelField = Label; addChild(cbx); } public var connObject:RemoteObject; public function createRemoteObject(e:FlexEvent):void{ connObject = new RemoteObject(); connObject.destination = ColdFusion; connObject.source = cfching.components.Single_CF_Query_2_DB; connObject.getData.addEventListener(ResultEvent.RESULT,getQueryResult); connObject.getData(); } private function getQueryResult(event:ResultEvent):void{ cbx.dataProvider = event.result; } ]] /mx:Script mx:Button id=btn1 label=test click=addComboBox(); / /mx:Application --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: OK, pretty close. You need to put the data that you get back into an ArrayCollection and give the ComboBox DataProvider this ArrayCollection... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.rpc.events.ResultEvent; import mx.events.FlexEvent; import mx.controls.ComboBox; import mx.rpc.remoting.RemoteObject; import mx.messaging.channels.AMFChannel; import mx.messaging.ChannelSet; import mx.collections.ArrayCollection; import mx.utils.ArrayUtil; private var cbx:ComboBox = new ComboBox(); private var cbxArrayCollection:ArrayCollection; private var connObject:RemoteObject; private var connChannelSet:ChannelSet; private var connAmfChannel:AMFChannel; private function addComboBox():void { cbx.x = 60; cbx.addEventListener(FlexEvent.CREATION_COMPLETE, createRemoteObject); cbx.labelField = Label; addChild(cbx); } public function createRemoteObject(e:FlexEvent):void { connChannelSet = new ChannelSet(); connAmfChannel = new AMFChannel(my-amf, http://myserver/WebORB30/weborb.php;); connChannelSet.addChannel(connAmfChannel); connObject = new RemoteObject(); connObject.requestTimeout = 10; connObject.channelSet = connChannelSet; connObject.destination = TestService; connObject.getData.addEventListener(ResultEvent.RESULT, getDataHandler); connObject.getData(); } private function getDataHandler(event:ResultEvent):void { cbxArrayCollection = new ArrayCollection(ArrayUtil.toArray(event.result)); cbx.dataProvider = cbxArrayCollection; } ]] /mx:Script mx:Button id=btn1 label=test click=addComboBox(); / /mx:Application You can ignore the channel stuff - I just use that so I don't have to create services-config.xml or remoting-config.xml files. HTH Steve --- In flexcoders@yahoogroups.com, brad.bueche brad@ wrote: ok, read that. I DID search via Nabble first but I searched on RemoteObject in ActionoScript. I'm going to do webOrb after I get a few things with CF figured out. (CF setup just seems to have a lot fewer moving partswhich is the level I need right now). Here is where I am now. I thought it was the toString on the event.result that I was missing but I added that and my comboBox is still empty. This all works in mxml so its not the .cfc file or my query etc. Its a problem with my actionscript. Here is the latest iteration of the code: (its just adding a
[flexcoders] Re: database question
A trigger in MS SQL-Server is a stored procedure that is executed when a defined condition is met; ie a new record is inserted into a specific table. Access doesn't use stored procedures or triggers. -TH --- In flexcoders@yahoogroups.com, johndoematrix johndoemat...@... wrote: how can i perform this kind of trigger event in ms sql? may be i can give it a try in access.
[flexcoders] Re: TextArea Border?
Don't, this one stumped me for a few minutes a while back as well. :) -TH --- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote: I feel stupid. THX! flexaustin --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: editable=false -TH --- In flexcoders@yahoogroups.com, flexaustin flexaustin@ wrote: I am using the textArea and finally got the border to turn off, but when you click it, the theme color still shows? My background is white so I tried setting the theme and borderColor to white but that doesn't work either? I am using GUMBO so maybe its a bug? TextArea id=modelLabel selectable=false text=EL436AA-3430-GKSLD23-NHJ12548FGTR width=220 height=50/ CSS TextArea { borderSkin: ClassReference(null); upSkin: ClassReference( null ); overSkin: ClassReference( null ); downSkin: ClassReference( null ); disabledSkin: ClassReference( null ); borderThickness: 0; }
[flexcoders] Even Better Scrollable Menus for Flex Problem
This question is probably just for Doug McCune if he is watching ;-} I really like the idea behind the Scrollable Menus component (http://dougmccune.com/blog/2007/01/26/even-better-scrollable-menus-for-flex/). Unfortunately, there seems to be a bug in the ScrollableMenuBar getMenuAt() code. If you click on a menu and then click the menu again (or click somewhere else) to close the menu, the menu bar remembers that you showed the menu and will auto open any other menus. This also means that if you want to open the original menu again, you have to click twice. This is counter intuitive and not the way the built in MenuBar works. I have dug into the code to see if I can figure out what the problem is but nothing I have tried so far works. It should work properly as the overrided getMenuAt() function pretty much is the same as the Flex getMenuAt() function. The menuHide event fires normally when you click outside the menu and is dispatched properly. I am obviously missing something. Any help from anyone is most appreciated. Steve
[flexcoders] Firefox: Multi-select not working. Anyone have a work-around?
It's a well-known issue that you can't multi-select in AdvancedDataGrid in Firefox, if you have wmode=transparent. This site: http://www.johanvanmol.org/content/view/47/41/ gives a nice general work-around for Flash, but after spending hours wading through the AdvancedDataGrid code, I haven't been able to figure out an easy work-around specific to that class. Has anyone else written one? I've narrowed it down to AdvancedListBase::mouseDownHandler, which calls selectItem() with bad values for event.shiftKey and event.ctrlKey. I could just override selectItem(), but it's called in other places that deliberately pass in null, so it would be hard to avoid breaking deselect.
[flexcoders] Embed image from flex library (SWC)
I have built a common flex library which I use from other projects. If I put images under src/assets/images and add those images under Assets in the Flex Library Build Path I get mixed results. It appears that if the image was embeded in the common library, then it can be used in the other projects otherwise not. I also tried makeing a src/common_assets/images directory in the common library to make sure there were no conflicts with the project specific assets, but that has not helped. In short, how can I add commonly used images to a common flex library for use by other projects? I want to do the same with css (I think this is working right now) thanks, charles
Re: [flexcoders] Embed image from flex library (SWC)
Have you tried /assets/something ? Regards, PS On Fri, Apr 3, 2009 at 3:07 PM, Charles Galpin yahoogro...@lhsw.com wrote: I have built a common flex library which I use from other projects. If I put images under src/assets/images and add those images under Assets in the Flex Library Build Path I get mixed results. It appears that if the image was embeded in the common library, then it can be used in the other projects otherwise not. I also tried makeing a src/common_assets/images directory in the common library to make sure there were no conflicts with the project specific assets, but that has not helped. In short, how can I add commonly used images to a common flex library for use by other projects? I want to do the same with css (I think this is working right now) thanks, charles -- /** * Pedro Sena * Systems Architect * Sun Certified Java Programmer * Sun Certified Web Component Developer */
[flexcoders] Re: Complex Charting in Flex
--- In flexcoders@yahoogroups.com, webbymary webbym...@... wrote: This may not be the most elegant solution but, assuming you have only 2 pairs of high/low as your example shows, rename your second close to close2 and use 5 ColumnSeries where the yFields are: close1.High, close1.Low, close2.High, close2.Low, open. It also won't work. The dataField expression you use can only take a field name, not a compound expression. For an example of how to use a dataFunction to handle this, try looking at http://flexdiary.blogspot.com/2008/08/charting-example.html
Re: [flexcoders] ComboBox SelectedItem why not inspectable.
On Fri, Apr 3, 2009 at 5:16 PM, Jeffry Houser j...@farcryfly.com wrote: I spend a *LOT* of time looking through the language reference for classes that I use. Especially when trying to solve an issue. Looks like I'm going to have to spend more time. Going through the docs. I already spend a lot of time doing that and also investigating the framework code itself. On Fri, Apr 3, 2009 at 5:12 PM, Tracy Spratt tspr...@lariatinc.com wrote: Be aware that there are only two cases where you can successfully set a ComboBox using selectedItem. One is that the dataProvider items must be simple text or numerical values. Basically if the objects equality matches then. I know that (it seemed very obvious to me). If the dataProvider items are objects (or xml), then the item you assign must be a **reference to an item in the dataProvider**. You can not, for example set it to a new object with the same property values. If you re-assign the dataProvider, then any vars holding an object will no longer be rererences to the dataProvider. Thats the use case though where I'm most often using it though. I'd imagine that should cover 90% of the use cases though after all your only setting a fixed item in a list. I mean cloning is difficult enough in flex so I'd imagine a clone of an object wouldn't usually be used for selected item. Tracy Spratt, Lariat Services, development services available -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Wesley Acheson *Sent:* Friday, April 03, 2009 10:48 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] ComboBox SelectedItem why not inspectable. rant Yes thats the conclusion that I had reached this morning when working with it. I was just wondering if there was a reason to hide it from codeHinting. I mean they must have put that in there for a reason? I can't fathom it. Not on this work iteration but on one serveral weeks back I lost a lot of time because I believed the only way I could deal with the comboBox was selected item. So I rewrote a lot of my classes to also return an index. Now I'm mostly working with AS code rather than MXML code and I think my grip on how things work internally is better so its not so much of an issue. I know I should look up the language refrence for all the classes I use but to be honest who really has time for that? /rant Thanks, Jeffry Regards, Wes On Fri, Apr 3, 2009 at 2:32 PM, Jeffry Houser j...@farcryfly.com wrote: Looking at the ComboBox code, it looks like the inspectable metadata is set to none. I assume that hides it from code hinting. However, despite that you should be able to use it w/ no problems in MXML just as you would w/ ActionScript. Wesley Acheson wrote: Hi, Why isn't the ComboBox.selectedItem available in MXML? It would be better then selectedIndex in many cases. Regards, Wesley Acheson -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
Re: [flexcoders] Custom Item Renderer
I assume you've seen something like this http://www.adobe.com/devnet/flex/quickstart/using_item_renderers/ Is there anything specifically that you have a problem with? Regards, Wes On Fri, Apr 3, 2009 at 8:11 AM, v.ponvino pon_v...@yahoo.com wrote: Hi, I am using AdvancedDataGrid control it is getting data from xml. I want show image nearby depending upon the data in the DataGrid. If any know please reply... Regards, Pon -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] SDK 3.3 and flash.* imports
I am having a problem with the Eclipse IDE since upgrading to SDK 3.3. Not only does code complete no longer work for any flash.* packages, but when I compile, it periodically removes all flash.* import statements in my .as files, meaning I have to go back and manually add those to get the project to compile. Its killing my productivity. Anyone got ideas on how to resolve this? Thanks, Shane
[flexcoders] Newbie SOA question
I would like to provide a solution to maintaining login state over multiple calls to my .NET web service layer. So basically, the user logs in, then stores a login token internally on the Flex side so that each web service call can be authenticated as being made by someone who has already logged in to the system. Does anyone have any ideas on how to approach this? My initial approach was to cache the user's username/password and authenticate on each web service call (Direct Authentication). I was told, for obvious reasons, that this is insecure method and requires database hit each call. I am trying to implement WSE 3.0 enabled web services on the .NET side. Is this an SSO problem, or should I be using STS/Brokered Authentication approach? We just started our upgrade to VS2008, so maybe I should just pursue WCF methods instead? Any experiences with this would be greatly appreciated. TIA, variable
RE: [flexcoders] Newbie SOA question
I have a lot to learn about security, and had difficulty wading through all of the levels and options, so I devised my own programmatic solution. When a user logs in from the Flex app (md5 hash on the password), I create a sessionId, store it in a hashtable in the .net app, and pass it back to the Flex app. The Flex app sends this token with each call. The server checks the passed in session id and compares the timestamp to the current time. If it is within the timeout period specified, it updates the timestamp and authorizes the call. If authorization fails, the user must log in again. I am certainly open to a better approach. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of variableop Sent: Friday, April 03, 2009 4:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Newbie SOA question I would like to provide a solution to maintaining login state over multiple calls to my .NET web service layer. So basically, the user logs in, then stores a login token internally on the Flex side so that each web service call can be authenticated as being made by someone who has already logged in to the system. Does anyone have any ideas on how to approach this? My initial approach was to cache the user's username/password and authenticate on each web service call (Direct Authentication). I was told, for obvious reasons, that this is insecure method and requires database hit each call. I am trying to implement WSE 3.0 enabled web services on the .NET side. Is this an SSO problem, or should I be using STS/Brokered Authentication approach? We just started our upgrade to VS2008, so maybe I should just pursue WCF methods instead? Any experiences with this would be greatly appreciated. TIA, variable
[flexcoders] BlazeDS or JSON
Which tech do you recommend for simply reading data from the database via Java? BlazeDS or JSON? I'm thinking of keeping things simple and efficient. Thanks. - Alex C
[flexcoders] parent MenuItem in hierarchical menus?
Is there an easy way to get a reference to the parent MenuItem from an itemClick MenuEvent? I know I can use parentMenu and then dig around in the data descriptor, but it seems like there should be a cleaner way to do this... Specifically, I want to change my parent MenuItem's label when a certain child is chosen to reflect that selection. E.g., [stuff|v] -food --apples --oranges --milkshakes -cars --flying --not flying --amphibious I want each level to remember the last selection, so if the user selects food - oranges and then cars - flying, the menu would look something like [stuff|v] -food (oranges) --apples --oranges --milkshakes -cars (flying) --flying --not flying --amphibious Or would this be easier through a custom data descriptor? -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com
Re: [flexcoders] Finding the stage xy of a nested object
Hi Tracy Thanks. Yes, I tried localToGlobal, however it's not really as helpful as I hoped it might be. It doesn't seem to work within an embedded module, for instance (it gives you the coordinates relative to the module container by the look). I thought Flash would know the stage.x and y of everything and so there'd be some way to readily access this but I guess not...will I have to roll my own solution? Guy On 03/04/2009, at 12:39 PM, Tracy Spratt wrote: You want the coordinate system methods like localToGlobal and globalToLocal. Look for “coordinate system” in the docs for a full explanation. Tracy Spratt, Lariat Services, development services available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Guy Morton Sent: Thursday, April 02, 2009 9:05 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Finding the stage xy of a nested object Hello I though this ought to be easy but can't figure out how to do it. I have controls that are nested in layout containers and I want to find their xy in stage coordinates. Their x and y values are relative to their containers, so that doesn't give me what I want. There must be an easy way to find their stage x and y...is there? Guy
[flexcoders] Re: Print existing documents in Flex
--- In flexcoders@yahoogroups.com, Paul Andrews p...@... wrote: PrintJob won't print external files. The only way to do it with Flex would be to read each file and add it's contents to a container to be rendered using Printjob. Unfortunately Flex isn't a printspooler! You might have some luck trying to navigate to the document url by popping up a new browser window, which may then display the document and would still require the user to use separate print dialogs. The only other solution is via networked printer support on the server. It's not going to be straightforward. You could create a page that treats each of the URL's as a service, then stitches them all together. You might even be able to get away with not removing the html, head, and body tags. Browsers can be amazingly tolerant of that kind of junk. -Amy
RE: [flexcoders] parent MenuItem in hierarchical menus?
Menu dataProviders are typically xml, and xml provides the parent() method to return the parent node. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Maciek Sakrejda Sent: Friday, April 03, 2009 5:11 PM To: flexcoders Subject: [flexcoders] parent MenuItem in hierarchical menus? Is there an easy way to get a reference to the parent MenuItem from an itemClick MenuEvent? I know I can use parentMenu and then dig around in the data descriptor, but it seems like there should be a cleaner way to do this... Specifically, I want to change my parent MenuItem's label when a certain child is chosen to reflect that selection. E.g., [stuff|v] -food --apples --oranges --milkshakes -cars --flying --not flying --amphibious I want each level to remember the last selection, so if the user selects food - oranges and then cars - flying, the menu would look something like [stuff|v] -food (oranges) --apples --oranges --milkshakes -cars (flying) --flying --not flying --amphibious Or would this be easier through a custom data descriptor? -- Maciek Sakrejda Truviso, Inc. http://www.truviso. http://www.truviso.com com
Re: [flexcoders] Need Help For Designing Modular Application
Thanks Gregor Kiddie, You want to read up on the following articles http://livedocs.adobe.com/flex/3/html/help.html?content=modular_2.html http://blogs.adobe.com/rgonzalez/2006/06/modular_applications_part_1.html http://blogs.adobe.com/rgonzalez/2006/06/modular_applications_part_2.html http://weblogs.macromedia.com/pent/archives/2007/01/building_module.html Also, the common mistakes usually end up surrounding application domains so read up on http://blogs.adobe.com/rgonzalez/2006/06/applicationdomain.html http://blogs.adobe.com/aharui/ when you run into problems. HTH, Certainly this will help us, Lot of reading material it may take some time, I will give feed back and ask further if necessary, Thanks once again and best regards Raja Patil
Re: [flexcoders] SDK 3.3 and flash.* imports
I had something similar happen where I could no longer access the Graphics class. I couldn't use code completion with it, and in fact I couldn't even compile anything that was using it. Reinstalling Flex Builder then adding in the newer SDK did fix the problem though. On Fri, Apr 3, 2009 at 2:13 PM, shanedosch shanedo...@gmail.com wrote: I am having a problem with the Eclipse IDE since upgrading to SDK 3.3. Not only does code complete no longer work for any flash.* packages, but when I compile, it periodically removes all flash.* import statements in my .as files, meaning I have to go back and manually add those to get the project to compile. Its killing my productivity. Anyone got ideas on how to resolve this? Thanks, Shane
[flexcoders] Flash Player or IE bug
I ran into an issue and I think it is being caused by the Flash Player. The basics of the issue is that if you close a browser window while the player is downloading a file, sometimes it causes IE to completely quit working. Once this happens you have to close IE entirely to get it to work again. I have posted a page with instructions on how to reproduce this here: http://artjumble.com/FlashIETest.html I have confirmed this on XP and Vista with IE 7. Anyone else run into this, know of any workarounds/fixes? (I know, use FF...)
Re: [flexcoders] Flex to Air comminication via LocalConnection - Error #2044
Maybe my old post will help.. http://gregoire.org/2009/01/23/the-dreaded-2044-error/ On Fri, Apr 3, 2009 at 8:06 AM, ericbichara ericbich...@yahoo.com wrote: Hej Guy and Gals, I need some help getting localConnection to work. I have a Flex app running in the browser and an air app running on my desktop. Im trying to call a method on the air app from the flex app. I keep getting the dratted Error #2044: Unhandled StatusEvent:. level=error, code= error. Ive searched the net and not found anything that helps. Any ideas would be appreaciated. BTW im running both these from Flex Builder. Have also tryed running them from an air installation/web server. Heres the code: Thanks! /***\ ***/ /* Flex App / /***\ ***/ ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=init() width=319 height=299 mx:Script ![CDATA[ import flash.net.LocalConnection; private var conn:LocalConnection; private function init():void{ conn = new LocalConnection(); conn.addEventListener(StatusEvent.STATUS, status); conn.allowDomain('*'); conn.client = this; } private function InitConn():void{ textareaTasks.text += sending message\n; conn.send(connId, handler); } private function status(e:StatusEvent):void{ textareaTasks.text += e.level + \n; } ]] /mx:Script mx:Panel paddingLeft=20 paddingRight=20 paddingBottom=20 paddingTop=20 height=100% width=100% title=Send Message mx:Label text=Status output:/ mx:TextArea id=textareaTasks width=100% height=100%/ mx:Button id=connectagain click=InitConn( ) label=Send Message/ /mx:Panel /mx:Application /***/ /** AIR APP / /** / ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=351 height=261 mx:Script ![CDATA[ import mx.controls.Alert; import flash.net.LocalConnection; private var conn:LocalConnection; private function initConn():void{ conn = new LocalConnection(); conn.addEventListener(StatusEvent.STATUS, onStatus); conn.allowDomain('*'); conn.client = this; conn.connect(connId); labelStatus.text = connected to 'connId' \n; } public function handler(event:MouseEvent):void { labelStatus.text += Got a message\n; } private function onStatus(event:StatusEvent):void { trace(event); switch (event.level) { case status: labelStatus.text += LocalConnection.send() succeeded\n; break; case error: labelStatus.text += LocalConnection.send() failed\n; break; } } ]] /mx:Script mx:Panel horizontalCenter=0 verticalCenter=0 width=100% height=100% cornerRadius=0 paddingBottom=20 paddingLeft=20 paddingRight=20 paddingTop=20 mx:Label text=Status output:/ mx:TextArea width=100% height=100% id=labelStatus/ mx:Button label=Connect click=initConn()/ /mx:Panel /mx:WindowedApplication -- http://gregoire.org/ http://osflash.org/red5
Re: [flexcoders] Re: Print existing documents in Flex
- Original Message - From: Amy amyblankens...@bellsouth.net To: flexcoders@yahoogroups.com Sent: Friday, April 03, 2009 10:57 PM Subject: [flexcoders] Re: Print existing documents in Flex --- In flexcoders@yahoogroups.com, Paul Andrews p...@... wrote: PrintJob won't print external files. The only way to do it with Flex would be to read each file and add it's contents to a container to be rendered using Printjob. Unfortunately Flex isn't a printspooler! You might have some luck trying to navigate to the document url by popping up a new browser window, which may then display the document and would still require the user to use separate print dialogs. The only other solution is via networked printer support on the server. It's not going to be straightforward. You could create a page that treats each of the URL's as a service, then stitches them all together. You might even be able to get away with not removing the html, head, and body tags. Browsers can be amazingly tolerant of that kind of junk. Interesting suggestion - might be a problem with pagination - you'd want each document to at least start on a new page. AFAIK it's not possible to force a page break in a HTML document. I originally interpreted the post as being URLS of non-html files, either way, the OP doesn't have an easy solution. -Amy
[flexcoders] Using later SDKs with Flex 3
Hi I have a flex 3 licence but I see there is a flex 3.2 (and possibly later sdk). Will that work with my flex 3 flex builder? Do I need to download a whole new flexbuilder or just the sdk or do i have to pay more money to the good folks at Adobe?
Re: [flexcoders] Using later SDKs with Flex 3
You should be able to update your Flex Builder to 3.0.2, and then download the Flex 3.3 SDK from adobe.com (since there is no corresponding Flex Builder update). No need to pay anything, but you will need 3.0.2 for your 3.3 SDK to work. On 4/3/09 4:24 PM, Tony Obermeit t...@tamborine.to wrote: Hi I have a flex 3 licence but I see there is a flex 3.2 (and possibly later sdk). Will that work with my flex 3 flex builder? Do I need to download a whole new flexbuilder or just the sdk or do i have to pay more money to the good folks at Adobe?
[flexcoders] click search in other web
Hi all I want to send a request to other web to search auto. But i can't auto clock to its search button. You can advise me thanks
[flexcoders] sent request to other web
Hi all I want to send a request to other web to search automatically. But i can't automatic click to its search button. You can advise me thanks
RE: [flexcoders] sent request to other web
We need more information. Are you trying to call an url? Are you submitting a POST? Or a GET? How are you communicating with the search website? Does it have an API? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of btc132 Sent: Friday, April 03, 2009 11:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] sent request to other web Hi all I want to send a request to other web to search automatically. But i can't automatic click to its search button. You can advise me thanks
[flexcoders] LCDS -Transaction Error - Unable to access User Transaction in DataService
Hi Guys, I am getting this error . I looked at this following link http://kb.adobe.com/selfservice/viewContent.do?externalId=6b82874fsliceId=2 But i don't know which configuration file they are talking about. Please help. Thanks, with Regards, Jitendra Jain Software Engineer 91-9979960798 Bollywood news, movie reviews, film trailers and more! Go to http://in.movies.yahoo.com/