[flexcoders] Flex Charting
Hi. Am doing some flex coding using only a text editor and the SDK compiler. I run across some examples of Chart and when I try to compile the application (using the MXMLC compiler), I am getting an error: Error: Could Not Resolve mx:PieChart to a component implementation. I did a little research and I found out that I may need to have the charts.swc (for SDK 2) and datavisualization.swc (for SDK 3). I am using SDK 3 of Flex. I tried to search for the .SWC file but I cannot seem to find it. Is it downloaded as a separate file? Inputs highly appreciated. Thanks.
Re: [flexcoders] This mailing list vs the forum.
On Friday 14 Aug 2009, Matt Chotin wrote: You can assume that we have this as an issue on our private contract-based forums with them. I know I've talked to them about it. Good to hear Matt. Feel free to make a song and dance about it when it's all sorted out. the replies to work in most email clients by getting rid of the stupid [xxx] suffix on each. What was with that anyway ? I can't think of a single reason to do it. -- Helping to dramatically revolutionize fourth-generation scalable intuitive niches as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Re: TabNavigator - events children get on tab show
On Friday 14 Aug 2009, valdhor wrote: From memory, on first show it's creationcomplete. After that, it's show. I thought so too. I knocked up this test case: mx:TabNavigator mx:VBox mx:TextArea show={Alert.show('a')}/ /mx:VBox mx:VBox mx:TextArea show={Alert.show('a')}/ /mx:VBox /mx:TabNavigator I never get the pop up. Can anyone else confirm ? I have at the back of my mind that show/hide events are only triggered when the visible and/or includeInLayout properties are toggled ? -- Helping to biannually engage world-class enterprise eye-catching eligible customers as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Flex Charting
On Monday 17 Aug 2009, Angelo Anolin wrote: find it. Is it downloaded as a separate file? Yup : http://download.macromedia.com/pub/flex/sdk/datavisualization_sdk3.3.zip -- Helping to paradigmatically deploy market-growth as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: What is the best material to learn Flex 3 and AS3?
Honestly, I also could not believe it, but I was extensively looking for good resources, and the best to start with was: Flex 3 for dummies. Even though I have a computer science background, my doubts of buying and reading this books vanished quickly. I have never done anyhing with Flex, AS3, Mxml, etc before, so I really needed a book which explained all the basics. It provides you with the basic knowledge to build your first flex apps. Of course I quickly needed more detailed resources, so I bought afterwards: Flex 3 Bible (very good, also for starters) Flex 3.0 Cookbook (advanced, selected topics) Essential AS 3 hth, martin
[flexcoders] How to browse the local machine by calling javascript function from flex.
Hello All, In my project i need to load a file by browsing the local machine and getting the path too. by flex filereference method it is not possible to get the path of the file..so any one can help me out how resolve this problem.. browsing the local machine and getting the path of data base. did java script is the solun so, any body having the any javascript for doing the same. regards, adarsh See the Web#39;s breaking stories, chosen by people like you. Check out Yahoo! Buzz. http://in.buzz.yahoo.com/
Re: [flexcoders] Re: TabNavigator - events children get on tab show
On Monday 17 Aug 2009, Tom Chiverton wrote:rea show={Alert.show('a')}/ /mx:VBox mx:VBox mx:TextArea show={Alert.show('a')}/ /mx:VBox /mx:TabNavigator I never get the pop up. Ah ha. This is by design. I found http://www.nabble.com/-flex_india:18847--Show-Event-is-not-working-for-meNeed-some-hep-td21803964.html and the basic idea is that TabNavigator only shows/hides the VBox, so as far as the TextArea knows it's visible property is never altered so you never get a show event. The workaround on the Flex India list works well for us. -- Helping to competently engage eigth-generation sticky visionary sexy environments as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] XMLFiltering by attributes and values
Hello Can anyone figure out this problem im currently having, and explain the reasons and cause of this proplem. I have an XML file of track data with a bunch of attributes track item uniqueTrackId=100 albumId=12 trackId=1 genreId=13 artistId=6584 ... /track i use this code to execute the filtering on the data, the name is artistId and the value is 6584, so the data should come back with all the artists with artistId 6584. var filterData : XMLList = _trackData.item; for each (var prop : Object in _propertiesList) { filterData = filterData.(attribute(prop.name) == prop.value); } but i keep getting this exception, when its applyin the filter, so within the for loop TypeError: Error #1006: value is not a function. So anyone that can figure what the problem is, would be a big help Thank You Stephen Chan
[flexcoders] question with text color CSS for mx:Button on roll over.
Sorry if this is a really simple question. I have a button and im loading in an external stylesheet and setting the buttons styleName to .removeUserButton. * mx:Button id=removeUser styleName=removeUserButton label=Remove/* .removeUserButton { upSkin: Embed(/assets/images/btn_secondary_up.png); overSkin: Embed(/assets/images/btn_secondary_over.png); downSkin: Embed(/assets/images/btn_secondary_over.png); font-family: Arial; font-size:11; color:#FF; font-anti-alias-type:advanced; } This all works fine except when I roll over the button the text color changes to *BLACK*. I need to keep it *WHITE* as I have it set in the CSS. Any ideas? thanks, MaTT
[flexcoders] Re: question with text color CSS for mx:Button on roll over.
add textRollOverColor: #FF; --- In flexcoders@yahoogroups.com, Matt Muller matthewmul...@... wrote: Sorry if this is a really simple question. I have a button and im loading in an external stylesheet and setting the buttons styleName to .removeUserButton. * mx:Button id=removeUser styleName=removeUserButton label=Remove/* .removeUserButton { upSkin: Embed(/assets/images/btn_secondary_up.png); overSkin: Embed(/assets/images/btn_secondary_over.png); downSkin: Embed(/assets/images/btn_secondary_over.png); font-family: Arial; font-size:11; color:#FF; font-anti-alias-type:advanced; } This all works fine except when I roll over the button the text color changes to *BLACK*. I need to keep it *WHITE* as I have it set in the CSS. Any ideas? thanks, MaTT
Re: [flexcoders] XMLFiltering by attributes and values
what are name and value to _propertiesList ? Is it elements or attributes? If it is element then accessing is correct, there is some other problem. If it is attribute then should access like this pr...@name or pr...@value To understand difference between element and attribute here is a example *public function callFunc():void{ var total2:Number = 0; for each (var prop:XML in myXML.item) { total2 += pr...@quantity * prop.price; } Alert.show(total2.toString()); } public var myXML:XML = order item id='1' quantity='2' menuNameburger/menuName price3.95/price /item item id='2' quantity='2' menuNamefries/menuName price1.45/price /item /order;* On Mon, Aug 17, 2009 at 4:57 PM, fatmanchan2009 fatmanchan2...@yahoo.comwrote: Hello Can anyone figure out this problem im currently having, and explain the reasons and cause of this proplem. I have an XML file of track data with a bunch of attributes track item uniqueTrackId=100 albumId=12 trackId=1 genreId=13 artistId=6584 ... /track i use this code to execute the filtering on the data, the name is artistId and the value is 6584, so the data should come back with all the artists with artistId 6584. var filterData : XMLList = _trackData.item; for each (var prop : Object in _propertiesList) { filterData = filterData.(attribute(prop.name) == prop.value); } but i keep getting this exception, when its applyin the filter, so within the for loop TypeError: Error #1006: value is not a function. So anyone that can figure what the problem is, would be a big help Thank You Stephen Chan -- Regards, Preetham Hegde ___ If you only have a hammer, you tend to see every problem as a nail.
[flexcoders] Re: Event Best Practices
The problem is that pop-up windows are handled by the SystemManger. You need to add your event listener to the system manager. In your application... this.systemManager.addEventListener(Your Event, your event handler); --- In flexcoders@yahoogroups.com, jdizowat jasonharr...@... wrote: Thanks for all the help. I have exactly what you said, Jake. A little more info - I have the following: mx:app - event never gets here mx:customComponent - this tabcontainer handles it just fine mx:customComponent / - this is a popup titlewindow which dispatches the event /mx:customComponent /mx:app I dispatch the event from the popped-up titlewindow. I have bubbles=true. I'm sorry, I'm not understanding why the event isn't making it up to the application level. I even tried taking out the event listener on the next level up. What now? I know what I'm reading up on this weekend :)
[flexcoders] Scale a Class file (png, gif, etc...)
I am trying to use a LinkButton in my app and assign an image to the icon variable, but I need to scale down or make sure the image isn't any larger than 15 x 15 pixels. Is there a way to scale a class file? I tried to load a png file then convert the png to Bitmap, tried BitmapData, and tried BitmapAsset and then scale the embedded image, but non of this worked. So to recap embed and image (which is 50x50 pixels) and shrink it down to (15x15 pixels) and assign it to a linkButtons icon. Anyone know of a solution?
[flexcoders] Re: XMLFiltering by attributes and values
Ok, thanks, but dont think i explained my self very well Basically, i have a properties list which stores a object with a name and a value, which are both strings. name is the attribute name, so in ur example it will be 'id' and the value will be '1'. so knowing that information i should be able to filter the xml using them values. var itemList : XMLList = items item id='1' quantity='2' type='fruit' item id='2' quantity='5' type='veg' item id='3' quantity='6' type='veg' item id='4' quantity='7' type='fruit' /items; var propertyList : ArrayCollection = new ArrayCollection(); propertyList.addItem({name:'type' , value:'fruit'}); var filterList : XMLList = itemList.item; for each(var property : Object in propertyList) { filterList = filterList.(attribute(property.name) == property.value); } //Output of filterList item id='1' quantity='2' type='fruit' item id='4' quantity='7' type='fruit' So thats the basic idea but always get that error, looking in the API it suggests it is possible to filter like that. Well hope this gives a better idea of what the problem is. Thank You Stephen Chan --- In flexcoders@yahoogroups.com, Preetham Hegde preethamheg...@... wrote: what are name and value to _propertiesList ? Is it elements or attributes? If it is element then accessing is correct, there is some other problem. If it is attribute then should access like this pr...@name or pr...@value To understand difference between element and attribute here is a example *public function callFunc():void{ var total2:Number = 0; for each (var prop:XML in myXML.item) { total2 += pr...@quantity * prop.price; } Alert.show(total2.toString()); } public var myXML:XML = order item id='1' quantity='2' menuNameburger/menuName price3.95/price /item item id='2' quantity='2' menuNamefries/menuName price1.45/price /item /order;* On Mon, Aug 17, 2009 at 4:57 PM, fatmanchan2009 fatmanchan2...@...wrote: Hello Can anyone figure out this problem im currently having, and explain the reasons and cause of this proplem. I have an XML file of track data with a bunch of attributes track item uniqueTrackId=100 albumId=12 trackId=1 genreId=13 artistId=6584 ... /track i use this code to execute the filtering on the data, the name is artistId and the value is 6584, so the data should come back with all the artists with artistId 6584. var filterData : XMLList = _trackData.item; for each (var prop : Object in _propertiesList) { filterData = filterData.(attribute(prop.name) == prop.value); } but i keep getting this exception, when its applyin the filter, so within the for loop TypeError: Error #1006: value is not a function. So anyone that can figure what the problem is, would be a big help Thank You Stephen Chan -- Regards, Preetham Hegde ___ If you only have a hammer, you tend to see every problem as a nail.
Re: [flexcoders] Re: Java/Flex questions answered by James Ward
Hi Mete You are 100% correct that i am using AMF Channel. I do not want to use HTTP Channel because then data has to be in XML format and it will make the request/response slow. At the same time i am using Remote Binding which will not be possible if i use HTTP Channel. But i put some time lag between the request then i am delaying the request. How much must be the time gap between the requests. Is anything recommended by flex experts??? Thanks for the response. -ilikeflex From: meteatamel meteata...@yahoo.com To: flexcoders@yahoogroups.com Sent: Saturday, August 15, 2009 5:13:29 PM Subject: [flexcoders] Re: Java/Flex questions answered by James Ward Are you using AMFChannel? AMFChannel uses NetConnection and NetConnection, by default, batches request that are close in a single POST. You can try to increase the time between requests or you can wait for a result/fault before sending the next request. If I remember correctly, HTTPChannel does not do this (it uses URLLoader), so you can try using HTTPChannel as well. -Mete --- In flexcod...@yahoogro ups.com, ilikeflex ilikef...@. .. wrote: Hi James I asked the question in StackOverflow. com but by mistake i tagged httprequest . Please answer this time and i will tag properly next time. Thanks ilikelfex --- In flexcod...@yahoogro ups.com, James Ward jaward@ wrote: This would be a great question to ask on StackOverflow. com. :) -James From: flexcod...@yahoogro ups.com [mailto:flexcod...@yahoogro ups.com] On Behalf Of ilikeflex Sent: Friday, August 14, 2009 1:59 PM To: flexcod...@yahoogro ups.com Subject: [flexcoders] Re: Java/Flex questions answered by James Ward HI I am using Blazeds. At the start of my application i am making couple of request to get the data from the backend. I am tracking my request through Charles Debugger. I see that all my initial request are put together in one POST request. I want that each service call to backend be a different POST request. So that i can get the data fast. Please have a look at the screen shot.(http://4.bp. blogspot. com/_v7fXKpvsYl0 /SoW5_0lZl6I/ APg/ caJ1-RzjZAE/ s1600-h/Query. png) How can i achieve this? I am using the Remote Objec to make the calls indexProfileListRem oteObject = new RemoteObject( indexMasterDAO ); indexProfileListRem oteObject. addEventListener ( ResultEvent. RESULT, indexProfileListHan dler ); indexListRemoteObje ct = new RemoteObject( indexMasterDAO ); indexListRemoteObje ct.addEventListe ner( ResultEvent. RESULT, indexListHandler ); Thanks ilikeflex --- In flexcod...@yahoogro ups.commailto:flexcoders% 40yahoogroups. com, James Ward jaward@ wrote: Thanks for the plug. I'm using StackOverflow. com to manage the questions. Just tag them with riacowboy so that I can find them. I'm seeing a big shift from the Adobe forums, flexcoders, etc to Stack Overflow - so hopefully many here will start getting more involved in Stack Overflow. BTW: Here is the Ask The RIA Cowboy post: http://www.jamesward.com/blog/ask-the-ria-cowboy/ -James From: flexcod...@yahoogro ups.commailto:flexcoders% 40yahoogroups. com [mailto:flexcod...@yahoogro ups.commailto:flexcoders% 40yahoogroups. com] On Behalf Of hworke Sent: Friday, August 14, 2009 11:17 AM To: flexcod...@yahoogro ups.commailto:flexcoders% 40yahoogroups. com Subject: [flexcoders] Java/Flex questions answered by James Ward Hello Devs, James Ward the Technical Evangelist for Flex at Adobe encourages all to post RIA related questions in his blog. I asked him JAVA/LCDS questions before and got instant answer from him. If you have JAVA/BlazeDS/ LCDS related questions then you can post it here: http://www.jamesward.com/blog/
[flexcoders] Re: Scale a Class file (png, gif, etc...)
Hi, Bitmaps aren't usually 'shrinked' (this or another way) as they lose in context. You should use a image processing program to first convert by downsampling to this lower resolution, and if you still can make out what the original image was like, OK. Otherwise you should 'enhance' the result to make up for the lost information. Sorry if there is no easy way to effectively scale down bitmaps. George --- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote: I am trying to use a LinkButton in my app and assign an image to the icon variable, but I need to scale down or make sure the image isn't any larger than 15 x 15 pixels. Is there a way to scale a class file? I tried to load a png file then convert the png to Bitmap, tried BitmapData, and tried BitmapAsset and then scale the embedded image, but non of this worked. So to recap embed and image (which is 50x50 pixels) and shrink it down to (15x15 pixels) and assign it to a linkButtons icon. Anyone know of a solution?
[flexcoders] Why doesn't move effect occur?
HI, I've got an application I'm trying to implement a custom layout. I'm trying to get move and resize effects to work on the children but it doesn't seem to work. Have I missed something obvious? Also... When I'm extending Canvas am I changing the correct method to recalculate the size and position of the children. Should this ignore canvas and instead extend Container? Please note that this is a WIP. Would anyone like me to post the completed version when its done? *Application.mxml* ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:icarus=com.icarus.* mx:Script ![CDATA[ private function widgetAddButtonClickHandler(event:MouseEvent):void { widgetContainer.addChildAt(new Panel(),0); } private function widgetRemoveButtonClickHandler(event:MouseEvent):void { widgetContainer.removeChildAt(0); } ]] /mx:Script icarus:WidgetContainer right=10 left=10 bottom=10 id=widgetContainer top=51 borderStyle=solid borderThickness=1 borderColor=#585A5C backgroundColor=#CCDCEA icarus:moveEffect mx:Parallel mx:Move duration=250 / mx:Resize duration=250 / /mx:Parallel /icarus:moveEffect mx:Panel move=trace('moved') x=5/ /icarus:WidgetContainer mx:ApplicationControlBar top=10 left=10 right=10 height=33 mx:Button label=Add Item id=widgetAddButton click=widgetAddButtonClickHandler(event)/ mx:Button label=Remove Item id=widgetRemoveButton click=widgetRemoveButtonClickHandler(event) / /mx:ApplicationControlBar /mx:Application *WidgetContainer.as* package com.icarus { import mx.containers.Canvas; import mx.core.UIComponent; public class WidgetContainer extends Canvas { private var positions:Array; public var numCols:int = 3; private var paddingLeft:int = 10; private var paddingRight:int = 10; private var paddingTop:int = 10; private var paddingBottom:int = 10; private var itemSpacing:int =10; private var itemMinHeight:int = 200; public function WidgetContainer() { super(); } private function calculatePositions(width:int, height:int):void { var children:Array = getChildren(); var numChildren:int = children.length; var availableHeight:int = height - (paddingTop + paddingBottom); availableHeight = availableHeight - (viewMetrics.bottom + viewMetrics.top); var availableWidth:int = width; - (paddingLeft + paddingRight); availableWidth = availableWidth - (viewMetrics.top + viewMetrics.bottom); availableWidth = availableWidth - ((verticalScrollBar === null)?0:verticalScrollBar.width) var numFirstRowChildren:int = (numChildren -1) % numCols +1; var numRows:int = Math.ceil(numChildren / numCols); var rowHeight:int = availableHeight -(paddingTop +paddingBottom); var firstRowWidth:int = availableWidth - ((numFirstRowChildren -1) * itemSpacing); firstRowWidth = firstRowWidth / numFirstRowChildren; var otherRowWidth:int = availableWidth - ((numCols-1) * itemSpacing); otherRowWidth = otherRowWidth /numCols; rowHeight = availableHeight - ((numRows-1) * itemSpacing); rowHeight = Math.max(rowHeight / numRows, itemMinHeight); positions = new Array(); for (var i:int=0; inumChildren; i++) { positions[i] = new Position(); //Height always remains the same. positions[i].height = rowHeight; //First Row if (inumFirstRowChildren) { positions[i].y = paddingTop; positions[i].width = firstRowWidth; } else { //final item of previous row; var previousRowFinalItem:int = i - ((i-numFirstRowChildren) % numCols) - 1; positions[i].y = positions[previousRowFinalItem].y + positions[previousRowFinalItem].height + itemSpacing; positions[i].width = otherRowWidth; } //First Column if (i == 0 || (i-numFirstRowChildren) % numCols == 0) { positions[i].x = paddingLeft; } else { //Subsequent columns. positions[i].x = positions[i-1].x + positions[i-1].width + itemSpacing; } } } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { calculatePositions(unscaledWidth, unscaledHeight); var children:Array = getChildren(); for (var i:int = 0; i
[flexcoders] Generated code not working when app is loaded as module
I used Flexbuilder to generated the proxy code for my webservices and my app works perfectly as standalone swf file but when I load it as a module (loaded from another main swf file), it throws these kind of errors (see below). I tried declaring and instantiating the objects in question, also made sure are using public. I dont have custom utility function for calling getDefinitionByName() as well. but im getting the same errors. Does any one have a fix or workaround for this? - ReferenceError: Error #1065: Variable MyObject is not defined. at global/flash.utils::getDefinitionByName() at mx.rpc.xml::SchemaTypeRegistry/getClass()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\xml\SchemaTypeRegistry.as:82] at mx.rpc.xml::XMLDecoder/createContent()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\xml\XMLDecoder.as:1832] at mx.rpc.xml::XMLDecoder/decode()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\xml\XMLDecoder.as:161] at mx.rpc.soap::SOAPDecoder/decodeBody()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\SOAPDecoder.as:452] at mx.rpc.soap::SOAPDecoder/decodeEnvelope()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\SOAPDecoder.as:304] at mx.rpc.soap::SOAPDecoder/decodeResponse()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\SOAPDecoder.as:236] at webservices.trademanager::BaseTradeManagerService/processResult() at mx.rpc::AsyncResponder/result() at mx.rpc::AsyncRequest/acknowledge()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:74] at DirectHTTPMessageResponder/completeHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:381] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete()
[flexcoders] Re: Scale a Class file (png, gif, etc...)
Ok, what about BitmapAsset.setActualSize? --- In flexcoders@yahoogroups.com, grg_blls grg_b...@... wrote: Hi, Bitmaps aren't usually 'shrinked' (this or another way) as they lose in context. You should use a image processing program to first convert by downsampling to this lower resolution, and if you still can make out what the original image was like, OK. Otherwise you should 'enhance' the result to make up for the lost information. Sorry if there is no easy way to effectively scale down bitmaps. George --- In flexcoders@yahoogroups.com, flexaustin flexaustin@ wrote: I am trying to use a LinkButton in my app and assign an image to the icon variable, but I need to scale down or make sure the image isn't any larger than 15 x 15 pixels. Is there a way to scale a class file? I tried to load a png file then convert the png to Bitmap, tried BitmapData, and tried BitmapAsset and then scale the embedded image, but non of this worked. So to recap embed and image (which is 50x50 pixels) and shrink it down to (15x15 pixels) and assign it to a linkButtons icon. Anyone know of a solution?
[flexcoders] Re: regex: keyword search
For AND searches you need to loop over each keyword. This is the way I would do it... var allKeywordsExist:Boolean = true; for each(var keyword:String in keywords) { var regexPattern:RegExp = new RegExp(keyword, i); allKeywordsExist = allKeywordsExist regexPattern.test(myBigText); } --- In flexcoders@yahoogroups.com, Baz li...@... wrote: Here's the actual code, is it possible to replace this with one line of RegEx: var myBigText:String = 'This is sample text to be searched for the existence of all keywords anywhere in any order'; var keywords:Array = ['UserProvidedKeyword1', 'UserProvidedKeyword2', 'UserProvidedKeyword3']; var allKeywordsExist:Boolean = true; for(var i:int = 0; i keywords.length; i++) { var myRegEx:regEx = new RegExp('.*' + keyword[i] + '.*', 'i'); if(!myRegEx.test(myBigText)) { allKeywordsExist = false; break; } return allKeywordsExist; On Thu, Aug 13, 2009 at 6:30 PM, Baz li...@... wrote: Users provide keywords separated by spaces through an input box, and I would like to see if they all exist in a certain text. So for example if a user provides flex awesome or awesome flex they should both match the phrase flex is quite awesome. The following regex won't work because it is order dependent: .*keyword1.*keyword2.* Is there a way to tell the regex to search the entire string from the beginning for each keyword? Currently I am looping through each keyword and testing them separately - if all tests pass then I return true, but that seems wasteful. Thanks, Baz
[flexcoders] Re: Moving text in window
Do you mean like auto scrolling a text area? --- In flexcoders@yahoogroups.com, christophe_jacquelin christophe_jacque...@... wrote: Hello, How to make a window with some text moving from the bottom to the top like the infomations ? Thank you, Christopher,
[flexcoders] Re: Java/Flex questions answered by James Ward
I don't understand. Each call _IS_ a separate request. Even though Flex batches them up together, each remoteObject call hits the server as a separate request. They will return asynchronously. This is what you want so that you get the data back as fast as possible. --- In flexcoders@yahoogroups.com, ilikeflex ilikef...@... wrote: HI I am using Blazeds. At the start of my application i am making couple of request to get the data from the backend. I am tracking my request through Charles Debugger. I see that all my initial request are put together in one POST request. I want that each service call to backend be a different POST request. So that i can get the data fast. Please have a look at the screen shot.(http://4.bp.blogspot.com/_v7fXKpvsYl0/SoW5_0lZl6I/APg/caJ1-RzjZAE/s1600-h/Query.png) How can i achieve this? I am using the Remote Objec to make the calls indexProfileListRemoteObject = new RemoteObject(indexMasterDAO); indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT, indexProfileListHandler ); indexListRemoteObject = new RemoteObject(indexMasterDAO); indexListRemoteObject.addEventListener( ResultEvent.RESULT, indexListHandler ); Thanks ilikeflex --- In flexcoders@yahoogroups.com, James Ward jaward@ wrote: Thanks for the plug. I'm using StackOverflow.com to manage the questions. Just tag them with riacowboy so that I can find them. I'm seeing a big shift from the Adobe forums, flexcoders, etc to Stack Overflow - so hopefully many here will start getting more involved in Stack Overflow. BTW: Here is the Ask The RIA Cowboy post: http://www.jamesward.com/blog/ask-the-ria-cowboy/ -James From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of hworke Sent: Friday, August 14, 2009 11:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Java/Flex questions answered by James Ward Hello Devs, James Ward the Technical Evangelist for Flex at Adobe encourages all to post RIA related questions in his blog. I asked him JAVA/LCDS questions before and got instant answer from him. If you have JAVA/BlazeDS/ LCDS related questions then you can post it here: http://www.jamesward.com/blog/
[flexcoders] Re: How to optimise SWC to its minimal size?
I need to do little research, I woul like to know if compiller builds app using SWC it will take from there only classes required by the application. --- In flexcoders@yahoogroups.com, Ian Thomas i...@... wrote: You can use the 'externs' command-line option to the Flex compiler to tell Flex to exclude specific classes - as long as you're sure that your code _will_ have access to them at runtime. Documentation here: http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_14.html HTH, Ian On Fri, May 22, 2009 at 4:13 PM, lytvynyuk lytvyn...@... wrote: Any ideas? Hey, Flex gurus I know you are here! :)
[flexcoders] Re: XMLFiltering by attributes and values
I haven't looked at your code too much but what jumped out at me is this line... filterData = filterData.(attribute(prop.name) == prop.value); This will try to evaluate attribute as a function with parameter prop.name and then compare that to prop.value returning a boolean. So, the upshot is that Flex will try to evaluate filterData.true or filterData.false. I'm pretty sure that won't work. --- In flexcoders@yahoogroups.com, fatmanchan2009 fatmanchan2...@... wrote: Hello Can anyone figure out this problem im currently having, and explain the reasons and cause of this proplem. I have an XML file of track data with a bunch of attributes track item uniqueTrackId=100 albumId=12 trackId=1 genreId=13 artistId=6584 ... /track i use this code to execute the filtering on the data, the name is artistId and the value is 6584, so the data should come back with all the artists with artistId 6584. var filterData : XMLList = _trackData.item; for each (var prop : Object in _propertiesList) { filterData = filterData.(attribute(prop.name) == prop.value); } but i keep getting this exception, when its applyin the filter, so within the for loop TypeError: Error #1006: value is not a function. So anyone that can figure what the problem is, would be a big help Thank You Stephen Chan
[flexcoders] Re: Scale a Class file (png, gif, etc...)
I ran into this same problem and could not find and easy fix. I ended up extending the LinkButton class. I created a button class that can load it's icons on the fly from any where local, net, or embedded. Instead of needing to set them strictly to Class I created a iconSource property. This allowed me to load the image scale it down and then use that scaled image as the icon. This required some trickery as you have to get the icon for each state by name and manually add your custom icons, but it does work just fine. I don't have time to include code right now but I can post some example code later if you would like. I hope what I said made sense. --- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote: I am trying to use a LinkButton in my app and assign an image to the icon variable, but I need to scale down or make sure the image isn't any larger than 15 x 15 pixels. Is there a way to scale a class file? I tried to load a png file then convert the png to Bitmap, tried BitmapData, and tried BitmapAsset and then scale the embedded image, but non of this worked. So to recap embed and image (which is 50x50 pixels) and shrink it down to (15x15 pixels) and assign it to a linkButtons icon. Anyone know of a solution?
[flexcoders] Re: Scale a Class file (png, gif, etc...)
Hi, BitmapAsset () Constructor public function BitmapAsset(bitmapData:BitmapData = null, pixelSnapping:String = auto, smoothing:Boolean = false) Constructor. Parameters bitmapData:BitmapData (default = null) The data for the bitmap image. pixelSnapping:String (default = auto) Whether or not the bitmap is snapped to the nearest pixel. smoothing:Boolean (default = false) Whether or not the bitmap is smoothed when scaled setActualSize () method public function setActualSize(newWidth:Number, newHeight:Number):void Sets the actual size of this object. This method is mainly for use in implementing the updateDisplayList() method, which is where you compute this object's actual size based on its explicit size, parent-relative (percent) size, and measured size. You then apply this actual size to the object by calling setActualSize(). In other situations, you should be setting properties such as width, height, percentWidth, or percentHeight rather than calling this method. What about it? And if this is about a few bitmaps, I would go to Photoshop, do my 300% downsampling, check myself for any appearence problems - if any, et.c... (BTW, the original 50X50 pixels bitmaps were drawn most probably this way) thanks George --- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote: Ok, what about BitmapAsset.setActualSize? --- In flexcoders@yahoogroups.com, grg_blls grg_blls@ wrote: Hi, Bitmaps aren't usually 'shrinked' (this or another way) as they lose in context. You should use a image processing program to first convert by downsampling to this lower resolution, and if you still can make out what the original image was like, OK. Otherwise you should 'enhance' the result to make up for the lost information. Sorry if there is no easy way to effectively scale down bitmaps. George --- In flexcoders@yahoogroups.com, flexaustin flexaustin@ wrote: I am trying to use a LinkButton in my app and assign an image to the icon variable, but I need to scale down or make sure the image isn't any larger than 15 x 15 pixels. Is there a way to scale a class file? I tried to load a png file then convert the png to Bitmap, tried BitmapData, and tried BitmapAsset and then scale the embedded image, but non of this worked. So to recap embed and image (which is 50x50 pixels) and shrink it down to (15x15 pixels) and assign it to a linkButtons icon. Anyone know of a solution?
[flexcoders] Embedded .swf's as classes with meta-data not always compiling
I have a few uicomponent classes that have movieclips linked up through metadata. It seems every time that I compile, I have to switch up the base-class from sprite to movieclip in my class, or movieclip to sprite, in order for the code to actually compile into the project. Is there a list of best practices, tutorial, or anything specific I can look at so I can make sure that I am not doing something wrong that obvious... Is it true the difference between the plain old actionscript compiler and the flex compiler, when it comes to compiled embedded clips, that the base class is sprite in flex - if the asset has only one frame, and multiple frames are automatically movieclips. Does this also mean in flash, in the properties i should extend the base class as Sprite instead of movieclip? as always, Thanks for your time. Patrick
[flexcoders] Advanced Data Grid + ILOG
I have been working on a project that has several thousand items populating an Advanced Data Grid (ADG). Transmitting the data via AMF is lighting quick but it all really goes to waste once it hits the ADG. I looked online and found this bug with this work around. http://bugs.adobe.com/jira/browse/FLEXDMV-1964 Notice how the bug is closed, however, when using the latest version of the SDK the ADG still blows chunks. It's very frustrating when a bug is closed without proper validation. I have noticed this happen several times on the adobe jira site. I would implement the work around but ILog has a direct dependency on the ADG. Any ideas would be greatly appreciated!
[flexcoders] Re: MouseOver events while dragging?
Thanks. For some reason I assumed the DragProxy was just an image. Setting mouseChildren=false let the mouseMove events fire on containers underneath the proxy. --Kelly --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: You might have to set mouseEnabled=false on all children and grandchildren, etc of the dragproxy. Or just watch for mouseMove and use getObjectsUnderPoint to see if you're over a particular target. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Archibald Sent: Friday, August 14, 2009 1:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] MouseOver events while dragging? I need to change the style of items in a list when they are mousedOver while dragging but none of the mouseOver events fire while dragging. I tried setting mouseEnabled=false on the DragProxy but that did nothing. Is there any way to get mouseOver events while dragging? Or is there another way to tell that I have moused over a list item while dragging? I need it because while dragging items in a list to a different index in the same list only certain drop indexes are allowed and I need to make some visual feedback to let the user know where they can drop in the list. --Kelly
[flexcoders] Re: How to restrict Drag and Drop to one axis? (like the X-Axis only)
By doing this on the highest level UIComponent I could access I was able to lock it to one access even when dragging outside of the target container. Unfortunately it only worked up to the highest level component within a Module. It did not work when added to a component in the main app when the target container is inside of a module. --- In flexcoders@yahoogroups.com, Archibald dek...@... wrote: I found a way to kindof do this. It's not perfect but I guess it's acceptable. It only works as long as you don't move the mouse outside the container that you want to restrict dragging to. Once you mouse out of the container the proxy goes wherever the mouse goes again. Pretty weak. I will post again if I find a better solution. override protected function dragOverHandler(event:DragEvent):void{ super.dragOverHandler(event); this.dragProxy = DragManager.mx_internal::dragProxy; this.dragProxy.y = this.localToGlobal(new Point(this.x, this.y)).y; /* if(DragAndDropRules.canDropHere(event.){ } */ } --- In flexcoders@yahoogroups.com, Archibald dekayd@ wrote: This is super easy using startDrag and seems to be stupid hard using the DragManager. Am I missing something? Why would this relatively common need not be addressed in the DragManager? I have seen like 20 people ask the same question with no answer. I am working on a linear editor using an HList and want to use the built in DragDrop support but it has to restrict to only drag horizontally. Thanks. --Kelly
[flexcoders] Module and Application Communication.
I have a rather straight forward question. I am creating a module like this: private var modInfo:IModuleInfo private var myModule:MyCustomMdoule; //In creation complete of application modInfo = ModuleManager.getModule('myMod.swf'); modInfo.addEventListener(ModuleEvent.READY, onModuleReady); modInfo.load(); //In tho onModuleReady command myModule = modInfo.factory.create() as MyCustomModule; moduleContent.addChild( myModule ); myModule.addEventListener( 'customEventDispatchedByModule', onEvent ); //Inside my module there is dispatchEvent( new Event('customEventDispatchedByModule',true) ); Even though the code for the dispatch event is running the handler never runs... am I doing something wrong?? or do module not dispatch events??
[flexcoders] RE:Flex and NT Login
I call a CF component from FLEX to get access from an NT domain... I masked the domain specific information with X, but you should get the idea cffunction name=login access=public output=no cfargument name=username type=string required=yes cfargument name=password type=string required=yes cftry cfldap action=query name=results attributes=postOfficeBox,userPrincipalName,sn,cn,title,post start=dc=X,dc=X,dc=X filter=userPrincipalName=#trim(username)#...@x.com scope=subtree server=SERVER.X.com http://server.x.com/ username=domainX\#trim(username)# password=#trim(password)# cfreturn 1,#trim(username)#,#results.cn#,0 http://results.cn/#,0 cfcatch cfreturn 0,0,0,0 /cfcatch /cftry /cffunction -- I am not discouraged, because every wrong attempt discarded is another step forward.
[flexcoders] Application with WebCam
Hello, I am searching an example of a flex application that work with a USB webcam. Thank you, Christopher,
Re: [flexcoders] Application with WebCam
Isn't this a bit vague? Googleing for flex webcam came up with several results. What is it you need exactly. To fetch video from the webcam? On Mon, Aug 17, 2009 at 7:35 PM, christophe_jacquelin christophe_jacque...@yahoo.fr wrote: Hello, I am searching an example of a flex application that work with a USB webcam. Thank you, Christopher, -- 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
RE: [flexcoders] Re: XMLFiltering by attributes and values
This works well: var _trackData:XML = track item uniqueTrackId=100 albumId=12 trackId=1 genreId=13 artistId=6584/ item uniqueTrackId=101 albumId=13 trackId=2 genreId=14 artistId=6580/ item uniqueTrackId=102 albumId=14 trackId=3 genreId=15 artistId=6584/ item uniqueTrackId=103 albumId=15 trackId=4 genreId=16 artistId=6583/ /track; function doXMLFilter(nodes:XML,att:String,val:String):XMLList{ // Returns all node elements with an attribute that equals value. return nodes.elements(*).(@[att.toString()] == val); } var _data:XMLList = doXMLFilter(_trackData,artistId,6584); trace(_data.toXMLString()); - Keith From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Monday, August 17, 2009 11:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XMLFiltering by attributes and values I haven't looked at your code too much but what jumped out at me is this line... filterData = filterData.(attribute(prop.name) == prop.value); This will try to evaluate attribute as a function with parameter prop.name and then compare that to prop.value returning a boolean. So, the upshot is that Flex will try to evaluate filterData.true or filterData.false. I'm pretty sure that won't work. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , fatmanchan2009 fatmanchan2...@... wrote: Hello Can anyone figure out this problem im currently having, and explain the reasons and cause of this proplem. I have an XML file of track data with a bunch of attributes track item uniqueTrackId=100 albumId=12 trackId=1 genreId=13 artistId=6584 ... /track i use this code to execute the filtering on the data, the name is artistId and the value is 6584, so the data should come back with all the artists with artistId 6584. var filterData : XMLList = _trackData.item; for each (var prop : Object in _propertiesList) { filterData = filterData.(attribute(prop.name) == prop.value); } but i keep getting this exception, when its applyin the filter, so within the for loop TypeError: Error #1006: value is not a function. So anyone that can figure what the problem is, would be a big help Thank You Stephen Chan image001.jpgimage002.jpg
RE: [flexcoders] Re: XMLFiltering by attributes and values
That comment should read: // Returns all node elements with the named attribute that equals value. - Keith From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Keith Reinfeld Sent: Monday, August 17, 2009 1:15 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: XMLFiltering by attributes and values This works well: var _trackData:XML = track item uniqueTrackId=100 albumId=12 trackId=1 genreId=13 artistId=6584/ item uniqueTrackId=101 albumId=13 trackId=2 genreId=14 artistId=6580/ item uniqueTrackId=102 albumId=14 trackId=3 genreId=15 artistId=6584/ item uniqueTrackId=103 albumId=15 trackId=4 genreId=16 artistId=6583/ /track; function doXMLFilter(nodes:XML,att:String,val:String):XMLList{ // Returns all node elements with an attribute that equals value. return nodes.elements(*).(@[att.toString()] == val); } var _data:XMLList = doXMLFilter(_trackData,artistId,6584); trace(_data.toXMLString()); - Keith From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Monday, August 17, 2009 11:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XMLFiltering by attributes and values I haven't looked at your code too much but what jumped out at me is this line... filterData = filterData.(attribute(prop.name) == prop.value); This will try to evaluate attribute as a function with parameter prop.name and then compare that to prop.value returning a boolean. So, the upshot is that Flex will try to evaluate filterData.true or filterData.false. I'm pretty sure that won't work. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , fatmanchan2009 fatmanchan2...@... wrote: Hello Can anyone figure out this problem im currently having, and explain the reasons and cause of this proplem. I have an XML file of track data with a bunch of attributes track item uniqueTrackId=100 albumId=12 trackId=1 genreId=13 artistId=6584 ... /track i use this code to execute the filtering on the data, the name is artistId and the value is 6584, so the data should come back with all the artists with artistId 6584. var filterData : XMLList = _trackData.item; for each (var prop : Object in _propertiesList) { filterData = filterData.(attribute(prop.name) == prop.value); } but i keep getting this exception, when its applyin the filter, so within the for loop TypeError: Error #1006: value is not a function. So anyone that can figure what the problem is, would be a big help Thank You Stephen Chan image001.jpgimage002.jpg
[flexcoders] How can I remove a button and place the button in a differenct container in Gmbo
Hi, I have this working in Flex 3: I am removing a button from one hBox and placing it into another hBox when I change to state='state1' mx:states mx:State name=state1 mx:RemoveChild target={button1}/ mx:AddChild target={button1} relativeTo={middlehbox} position=lastChild / /mx:State How do I accomplish this in Gumbo, for my button: includeIn=?? thanks, steve
[flexcoders] Re: Why doesn't move effect occur?
The move effect doesn't occur because I'm an idiot. It was supposed to be on the children. For some reason I thought canvas applied moveEffect to its children. The other questions though I'd still like to know. --- In flexcoders@yahoogroups.com, Wesley Acheson wesley.ache...@... wrote: HI, I've got an application I'm trying to implement a custom layout. I'm trying to get move and resize effects to work on the children but it doesn't seem to work. Have I missed something obvious? Also... When I'm extending Canvas am I changing the correct method to recalculate the size and position of the children. Should this ignore canvas and instead extend Container? Please note that this is a WIP. Would anyone like me to post the completed version when its done? *Application.mxml* ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:icarus=com.icarus.* mx:Script ![CDATA[ private function widgetAddButtonClickHandler(event:MouseEvent):void { widgetContainer.addChildAt(new Panel(),0); } private function widgetRemoveButtonClickHandler(event:MouseEvent):void { widgetContainer.removeChildAt(0); } ]] /mx:Script icarus:WidgetContainer right=10 left=10 bottom=10 id=widgetContainer top=51 borderStyle=solid borderThickness=1 borderColor=#585A5C backgroundColor=#CCDCEA icarus:moveEffect mx:Parallel mx:Move duration=250 / mx:Resize duration=250 / /mx:Parallel /icarus:moveEffect mx:Panel move=trace('moved') x=5/ /icarus:WidgetContainer mx:ApplicationControlBar top=10 left=10 right=10 height=33 mx:Button label=Add Item id=widgetAddButton click=widgetAddButtonClickHandler(event)/ mx:Button label=Remove Item id=widgetRemoveButton click=widgetRemoveButtonClickHandler(event) / /mx:ApplicationControlBar /mx:Application *WidgetContainer.as* package com.icarus { import mx.containers.Canvas; import mx.core.UIComponent; public class WidgetContainer extends Canvas { private var positions:Array; public var numCols:int = 3; private var paddingLeft:int = 10; private var paddingRight:int = 10; private var paddingTop:int = 10; private var paddingBottom:int = 10; private var itemSpacing:int =10; private var itemMinHeight:int = 200; public function WidgetContainer() { super(); } private function calculatePositions(width:int, height:int):void { var children:Array = getChildren(); var numChildren:int = children.length; var availableHeight:int = height - (paddingTop + paddingBottom); availableHeight = availableHeight - (viewMetrics.bottom + viewMetrics.top); var availableWidth:int = width; - (paddingLeft + paddingRight); availableWidth = availableWidth - (viewMetrics.top + viewMetrics.bottom); availableWidth = availableWidth - ((verticalScrollBar === null)?0:verticalScrollBar.width) var numFirstRowChildren:int = (numChildren -1) % numCols +1; var numRows:int = Math.ceil(numChildren / numCols); var rowHeight:int = availableHeight -(paddingTop +paddingBottom); var firstRowWidth:int = availableWidth - ((numFirstRowChildren -1) * itemSpacing); firstRowWidth = firstRowWidth / numFirstRowChildren; var otherRowWidth:int = availableWidth - ((numCols-1) * itemSpacing); otherRowWidth = otherRowWidth /numCols; rowHeight = availableHeight - ((numRows-1) * itemSpacing); rowHeight = Math.max(rowHeight / numRows, itemMinHeight); positions = new Array(); for (var i:int=0; inumChildren; i++) { positions[i] = new Position(); //Height always remains the same. positions[i].height = rowHeight; //First Row if (inumFirstRowChildren) { positions[i].y = paddingTop; positions[i].width = firstRowWidth; } else { //final item of previous row; var previousRowFinalItem:int = i - ((i-numFirstRowChildren) % numCols) - 1; positions[i].y = positions[previousRowFinalItem].y + positions[previousRowFinalItem].height + itemSpacing; positions[i].width = otherRowWidth; } //First Column if (i == 0 || (i-numFirstRowChildren) % numCols == 0) { positions[i].x = paddingLeft; } else {
[flexcoders] Re: Event Best Practices
Thanks for the help everybody. --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: The problem is that pop-up windows are handled by the SystemManger. You need to add your event listener to the system manager. In your application... this.systemManager.addEventListener(Your Event, your event handler); --- In flexcoders@yahoogroups.com, jdizowat jasonharrold@ wrote: Thanks for all the help. I have exactly what you said, Jake. A little more info - I have the following: mx:app - event never gets here mx:customComponent - this tabcontainer handles it just fine mx:customComponent / - this is a popup titlewindow which dispatches the event /mx:customComponent /mx:app I dispatch the event from the popped-up titlewindow. I have bubbles=true. I'm sorry, I'm not understanding why the event isn't making it up to the application level. I even tried taking out the event listener on the next level up. What now? I know what I'm reading up on this weekend :)
[flexcoders] Re: Java/Flex questions answered by James Ward
make a remote call implementation in java that fills a hashmap or related object with all the info you want: init() { people = getPeople() ; towns = getTowns() ; etc... } if you want them 1-by-1 call them in sequence: getPeople() on responce getTowns and so on... --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: I don't understand. Each call _IS_ a separate request. Even though Flex batches them up together, each remoteObject call hits the server as a separate request. They will return asynchronously. This is what you want so that you get the data back as fast as possible. --- In flexcoders@yahoogroups.com, ilikeflex ilikeflex@ wrote: HI I am using Blazeds. At the start of my application i am making couple of request to get the data from the backend. I am tracking my request through Charles Debugger. I see that all my initial request are put together in one POST request. I want that each service call to backend be a different POST request. So that i can get the data fast. Please have a look at the screen shot.(http://4.bp.blogspot.com/_v7fXKpvsYl0/SoW5_0lZl6I/APg/caJ1-RzjZAE/s1600-h/Query.png) How can i achieve this? I am using the Remote Objec to make the calls indexProfileListRemoteObject = new RemoteObject(indexMasterDAO); indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT, indexProfileListHandler ); indexListRemoteObject = new RemoteObject(indexMasterDAO); indexListRemoteObject.addEventListener( ResultEvent.RESULT, indexListHandler ); Thanks ilikeflex --- In flexcoders@yahoogroups.com, James Ward jaward@ wrote: Thanks for the plug. I'm using StackOverflow.com to manage the questions. Just tag them with riacowboy so that I can find them. I'm seeing a big shift from the Adobe forums, flexcoders, etc to Stack Overflow - so hopefully many here will start getting more involved in Stack Overflow. BTW: Here is the Ask The RIA Cowboy post: http://www.jamesward.com/blog/ask-the-ria-cowboy/ -James From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of hworke Sent: Friday, August 14, 2009 11:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Java/Flex questions answered by James Ward Hello Devs, James Ward the Technical Evangelist for Flex at Adobe encourages all to post RIA related questions in his blog. I asked him JAVA/LCDS questions before and got instant answer from him. If you have JAVA/BlazeDS/ LCDS related questions then you can post it here: http://www.jamesward.com/blog/
RE: [flexcoders] Re: Event Best Practices
mx:app - event never gets here mx:customComponent - this tabcontainer handles it just fine mx:customComponent / - this is a popup titlewindow which dispatches the event /mx:customComponent /mx:app I dispatch the event from the popped-up titlewindow. If you are really using PopUpManager, then the hierarchy you show isn't correct. A popped-up titlewindow is a child of the SystemManager, not a child of the TabContainer or a grandchild of the Application, and neither the TabContainer nor the Application should get a bubbled-up event from a popup. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Magnus Lassi Sent: Sunday, August 16, 2009 6:18 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Event Best Practices that may be why you doesn't fire: http://livedocs.adobe.com/flex/3/html/help.html?content=createevents_3.html You are required to override the Event.clone() method in your subclass. The clone() method returns a cloned copy of the event object by setting the type property and any new properties in the clone. Typically, you define the clone() method to return an event instance created with the new operator. On Sun, Aug 16, 2009 at 2:15 AM, jdizowat jasonharr...@gmail.commailto:jasonharr...@gmail.com wrote: It is a custom event and I did not override clone(). --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Magnus Lassi magnus.la...@... wrote: I don't see the event mentioned, is it a custom event you created or an event in the framework? If it's a custom event, did you override the clone function? On Fri, Aug 14, 2009 at 3:15 PM, jdizowat jasonharr...@... wrote: Thanks for all the help. I have exactly what you said, Jake. A little more info - I have the following: mx:app - event never gets here mx:customComponent - this tabcontainer handles it just fine mx:customComponent / - this is a popup titlewindow which dispatches the event /mx:customComponent /mx:app I dispatch the event from the popped-up titlewindow. I have bubbles=true. I'm sorry, I'm not understanding why the event isn't making it up to the application level. I even tried taking out the event listener on the next level up. What now? I know what I'm reading up on this weekend :)
RE: [flexcoders] Re: Event Best Practices
Sorry... I didn't see that Valdhor had already explained this. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gordon Smith Sent: Monday, August 17, 2009 2:15 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Event Best Practices mx:app - event never gets here mx:customComponent - this tabcontainer handles it just fine mx:customComponent / - this is a popup titlewindow which dispatches the event /mx:customComponent /mx:app I dispatch the event from the popped-up titlewindow. If you are really using PopUpManager, then the hierarchy you show isn't correct. A popped-up titlewindow is a child of the SystemManager, not a child of the TabContainer or a grandchild of the Application, and neither the TabContainer nor the Application should get a bubbled-up event from a popup. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Magnus Lassi Sent: Sunday, August 16, 2009 6:18 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Event Best Practices that may be why you doesn't fire: http://livedocs.adobe.com/flex/3/html/help.html?content=createevents_3.html You are required to override the Event.clone() method in your subclass. The clone() method returns a cloned copy of the event object by setting the type property and any new properties in the clone. Typically, you define the clone() method to return an event instance created with the new operator. On Sun, Aug 16, 2009 at 2:15 AM, jdizowat jasonharr...@gmail.commailto:jasonharr...@gmail.com wrote: It is a custom event and I did not override clone(). --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Magnus Lassi magnus.la...@... wrote: I don't see the event mentioned, is it a custom event you created or an event in the framework? If it's a custom event, did you override the clone function? On Fri, Aug 14, 2009 at 3:15 PM, jdizowat jasonharr...@... wrote: Thanks for all the help. I have exactly what you said, Jake. A little more info - I have the following: mx:app - event never gets here mx:customComponent - this tabcontainer handles it just fine mx:customComponent / - this is a popup titlewindow which dispatches the event /mx:customComponent /mx:app I dispatch the event from the popped-up titlewindow. I have bubbles=true. I'm sorry, I'm not understanding why the event isn't making it up to the application level. I even tried taking out the event listener on the next level up. What now? I know what I'm reading up on this weekend :)
[flexcoders] Re: Moving text in window
Please check these links http://delicious.com/shameersalim/Marquee Thanks, Shameer --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: Do you mean like auto scrolling a text area? --- In flexcoders@yahoogroups.com, christophe_jacquelin christophe_jacquelin@ wrote: Hello, How to make a window with some text moving from the bottom to the top like the infomations ? Thank you, Christopher,
Re: [flexcoders] BUG: mx.controls.LinkBar - can somebody confirm?
bump On Thu, Jul 30, 2009 at 12:49 PM, fotis.chatzinikos fotis.chatzini...@gmail.com wrote: override protected function hiliteSelectedNavItem(index:int):void { var child:Button; // Un-hilite the current selection. if (selectedIndex != -1 selectedIndex numChildren) { child = Button(getChildAt(selectedIndex)); child.enabled = true; } // Set new index. super.selectedIndex = index; // Hilite the new selection. child = Button(getChildAt(selectedIndex)); child.enabled = false; } Should not the last two lines be inside a conditional != -1? There is not button @ -1 : if (selectedIndex != -1) { child = Button(getChildAt(selectedIndex)); child.enabled = false; } -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
[flexcoders] Re: Scale a Class file (png, gif, etc...)
Yes, code would be great! I can't believe how difficult this is to get implemented. Hope these things become easier in Flex 5. J --- In flexcoders@yahoogroups.com, ag_rcuren robert.vancuren...@... wrote: I ran into this same problem and could not find and easy fix. I ended up extending the LinkButton class. I created a button class that can load it's icons on the fly from any where local, net, or embedded. Instead of needing to set them strictly to Class I created a iconSource property. This allowed me to load the image scale it down and then use that scaled image as the icon. This required some trickery as you have to get the icon for each state by name and manually add your custom icons, but it does work just fine. I don't have time to include code right now but I can post some example code later if you would like. I hope what I said made sense. --- In flexcoders@yahoogroups.com, flexaustin flexaustin@ wrote: I am trying to use a LinkButton in my app and assign an image to the icon variable, but I need to scale down or make sure the image isn't any larger than 15 x 15 pixels. Is there a way to scale a class file? I tried to load a png file then convert the png to Bitmap, tried BitmapData, and tried BitmapAsset and then scale the embedded image, but non of this worked. So to recap embed and image (which is 50x50 pixels) and shrink it down to (15x15 pixels) and assign it to a linkButtons icon. Anyone know of a solution?
[flexcoders] Re: This mailing list vs the forum.
--- In flexcoders@yahoogroups.com, Jochem van Dieten joch...@... wrote: On Thu, Aug 13, 2009 at 5:38 PM, Tom Chiverton wrote: On Thursday 13 Aug 2009, Gregor Kiddie wrote: It does have to be said, I use the Mailing list functionality of the Adobe forums rather than visiting the forum directly... Last time I checked, this was utterly broken. With mangled bodies The fix is due on August 24th: http://www.jivesoftware.com/jivespace/thread/46593 Could use some pushing at Adobe to convince them to update their outdated 2.5.7 to 2.5.16. mangled subject lines Fixed. the lack of correct headers to allow threading. Will be fixed when hell freezes over: http://www.jivesoftware.com/jivespace/thread/50602 I know I'm jumping into this late (been completely slammed), but what's the status of NNTP support on the forums? Thanks; Amy
[flexcoders] Re: This mailing list vs the forum.
--- In flexcoders@yahoogroups.com, Ian Thomas i...@... wrote: On Thu, Aug 13, 2009 at 10:26 AM, Andriy Panasa.pa...@... wrote: Forums in general are way superior to mailing lists to exchange the knowledge on the Internet. My main issue with that is: Mailing lists are push. Forums are pull. I'm on 6 or 7 different mailing lists. There's no way I'd get round to visiting 6 or 7 different forums to see what's updated several times a day; therefore I wouldn't ever read anything or answer anyone. That's why God invented NNTP.
[flexcoders] Adobe Air app losing connection to DB
This is another weird one. I'm struggling with session management in Air and Coldfusion. I've got Coldfusion session variables set to: Use J2EE vars Unchecked Enable app vars checked enable session vars enabled MAX timeout: Application vars: 2 days 0 hours 0 minutes 0 secs Session vars: 2 days 0 hours 0 minutes 0 secs Default timeout: App vars: 2 days 0 hours 0 mins 0 secs Sess vars:0 days 0 hours 59 mins 0 secs I log in the user and use roles to manage access in the CFC on the server. If I let my app sit open for around 3-5 mins then try clicking on something that causes a query against the server I get the following message: (mx.rpc::Fault)#0 content = (null) errorID = 0 faultCode = Server.Processing faultDetail = faultString = Unable to invoke CFC - The current user is not authorized to invoke this method. message = faultCode:Server.Processing faultString:'Unable to invoke CFC - The current user is not authorized to invoke this method.' faultDetail:'' name = Error rootCause = (null) I shouldn't be losing a session within 5 mins... Anyone else seen this or know a good way to manage an active session?
Re: [flexcoders] Flex Charting
Thanks a lot Tom. From: Tom Chiverton tom.chiver...@halliwells.com To: flexcoders@yahoogroups.com Sent: Monday, 17 August, 2009 16:46:12 Subject: Re: [flexcoders] Flex Charting On Monday 17 Aug 2009, Angelo Anolin wrote: find it. Is it downloaded as a separate file? Yup : http://download. macromedia. com/pub/flex/ sdk/datavisualiz ation_sdk3. 3.zip -- Helping to paradigmatically deploy market-growth as part of the IT team of the year, '09 and '08 * * * * This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.Halliwells. com.
[flexcoders] Some Qs on Flex Pie Chart
Flex Pie Chart I have recently downloaded the DataVisualization.swc file to do some Flex Charting learning. I have some questions with regards to the Pie Chart (which am focusing at the moment). 1. How Do I specify a gradient for each pie in the pie chart? I see some examples but the gradient fill is pre-determined already (ie. the number of pies are already counted and the gradients are specified for each pie). Flex provides its own fill color for each pie. I want all fill colors to be in gradient and it should be regardless of the number of pies in the chart. 2. Any way to make this pie 3d? 3. How can I specify that the label of the Pie Chart is the percentage of the pie itself, for example, my pie chart contains 3 slices (20, 30, 50). The labels should be 20%, 30% and 50% (the allocated count for each pie divided by the total count). your inputs highly appreciated. Thanks. Thanks.
[flexcoders] degrafa capacity indicator resizing
does anyone know how to dynamically change the size of the indicator bar? binding variables to the width and height did not work. I also tried changing the surface component but no luck below is the isolated capacity indicator bar code. !-- Graphics and Paint for the inner bars and background -- GeometryComposition graphicsTarget={[capacitySurface]} propertyChange=initChange(event); fills SolidFill id=colorOne color={cpOne.selectedColor}/ SolidFill id=colorTwo color={cpTwo.selectedColor}/ SolidFill id=colorThree color={cpThree.selectedColor}/ SolidFill id=colorFour color={cpFour.selectedColor}/ ComplexFill id=complex SolidFill color={cpFour.selectedColor}/ BlendFill blendMode=multiply BitmapFill id=crosshatch source=@Embed(apos;assets/65003.pngapos;)/ /BlendFill /ComplexFill LinearGradientFill id=highlight angle=90 GradientStop color=#FFF alpha=.3/ GradientStop color=#FFF alpha=.05/ /LinearGradientFill LinearGradientFill id=shadow angle=90 blendMode=multiply GradientStop color=#000 alpha=.01/ GradientStop color=#000 alpha=.5/ /LinearGradientFill LinearGradientFill id=inset angle=90 GradientStop color=#CCC alpha=.2 ratio=0 ratioUnit=pixels/ GradientStop color=#FFF alpha=.3 ratio=16 ratioUnit=pixels/ /LinearGradientFill /fills strokes SolidStroke id=whiteStroke color=#FFF weight=1 alpha=.15/ SolidStroke id=darkStroke color=#000 weight=1 alpha=.2/ /strokes RegularRectangle id=insetRect width={capacityWidth.value} height={capacitySurface.height} fill={inset}/ RegularRectangle id=fourthRect width={capacitySlider.values[3]} height={capacitySurface.height} fill={complex}/ RegularRectangle id=thirdRect width={capacitySlider.values[2]} height={capacitySurface.height} fill={colorThree}/ RegularRectangle id=secondRect width={capacitySlider.values[1]} height={capacitySurface.height} fill={colorTwo}/ RegularRectangle id=firstRect width={capacitySlider.values[0]} height={capacitySurface.height} fill={colorOne}/ RegularRectangle id=shadowRect width={capacityWidth.value} height={capacitySurface.height} fill={shadow}/ VerticalLineRepeater x=20 y=0 y1={capacitySurface.height} moveOffsetX=20 count={capacityWidth.value/20} stroke={darkStroke}/ VerticalLineRepeater x=21 y=0 y1={capacitySurface.height} moveOffsetX=20 count={capacityWidth.value/20} stroke={whiteStroke}/ RoundedRectangleComplex id=highlightRect bottomLeftRadius=10 bottomRightRadius=10 width={capacityWidth.value} height={capacitySurface.height/2} fill={highlight}/ /GeometryComposition !-- Masked Surface and Filter for the Capacity Indicator -- Surface id=capacitySurface verticalCenter=0 horizontalCenter=0 width={capacityWidth.value} height=40 mask={roundMask} GeometryGroup id=roundMask RoundedRectangle width={capacityWidth.value}