Re: [flexcoders] Flex charting
mx:ColumnChart type=stacked On Mon, Mar 16, 2009 at 10:48 PM, kotha poornima poorni_ag...@yahoo.comwrote: Hi, Please find the code below. ?xml version=1.0? !-- charts/BasicColumn.mxml -- mx:Script![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var expenses:ArrayCollection = new ArrayCollection([ {Month:Jan, Profit:2000, loss:200, Expenses:1500}, {Month:Feb, Profit:1000, loss:200, Expenses:200}, {Month:Mar, Profit:1500, loss:200, Expenses:500} ]); ]]/mx:Script mx:Panel title=Column Chart mx:ColumnChart id=myChart dataProvider={expenses} type=100% mx:horizontalAxis mx:CategoryAxis dataProvider={expenses} categoryField=Month / /mx:horizontalAxis mx:series mx:ColumnSeries xField=Month yField=Profit displayName=Profit/ mx:ColumnSeries xField=Month yField=Expenses displayName=Expenses/ mx:ColumnSeries xField=Month yField=loss displayName=Loss/ mx:ColumnSeries xField=Month yField=Expenses displayName=Expenses/ /mx:series /mx:ColumnChart mx:Legend dataProvider={myChart}/ /mx:Panel /mx:Application Thanks in Advance, Poornima -- *From:* duraibalaji duraibal...@yahoo.com *To:* flexcoders@yahoogroups.com *Sent:* Monday, March 16, 2009 8:00:52 PM *Subject:* Re: [flexcoders] Flex charting Hi Poorni, Can you post the code, let me try to modify the same and send it to you. Regards DB kotha poornima wrote: Hi All, I have one arraycollection like this: public var expenses:ArrayColle ction = new ArrayCollection( [ {Month:Jan , Profit:2000, loss:200, Expenses:1500} , {Month:Feb , Profit:1000, loss:200, Expenses:200} , {Month:Mar , Profit:1500, loss:200, Expenses:500} ]); With this iam drawing a column chart. so i added two column series one for profit and one for expenses. So i got output like for the first key two lines came orange and green one for profit and one for expenses. But i want to combine these two lines so i put type=100% With this iam getting green and orange in the same line with values adjusted to 100%. Up to this its working fine. But now i want another series for the same key with loss and expenses. However if i add these two series to the chart iam still getting one line with 4 colors. But i want profit and expenses with type=100% in one line and loss and expenses in one line with type=100% for one key.(Shown in the attachment type1.bmp) . Please help me guys!!! Thanks in Advance, Poornima -- View this message in context: http://www.nabble. com/Flex- charting- tp22534734p22539 460.htmlhttp://www.nabble.com/Flex-charting-tp22534734p22539460.html Sent from the FlexCoders mailing list archive at Nabble.com. -- Brendan Meutzner http://www.meutzner.com/blog/ http://www.riajobs.com
[flexcoders] IE6 RemoteObject calls fail under HTTPS
We have tried many many things, and seem to have narrowed it down to the session headers and the cache control. However all most all of the posts and notes around the web seem to get this issue arising with HTTPService calls that spawn a #2032 streaming error and not what we are seeing. Tracking the calls with Charles for instance seems to indicate that the call to the gateway is never actually being made. We discounted any crossdomain issues (the webroot and the gateway are on different servers) as the sandbox violation errors did not appear at all. So if anyone out there can shed some light on this we would be most appreciative. Or conversely if you can get every person in the world to upgrade their browsers beyond IE6 that would be awesome too. mx.rpc.events::FaultEvent)#0 bubbles = false cancelable = true currentTarget = (null) eventPhase = 2 fault = (mx.rpc::Fault)#1 content = (Object)#2 errorID = 0 faultCode = Client.Error.MessageSend faultDetail = Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'https://mydomain.com/amfphp/gateway.php' faultString = Send failed message = faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'https://mydomain.com/amfphp/gateway.php'' name = Error rootCause = (mx.messaging.events::ChannelFaultEvent)#3 bubbles = false cancelable = false channel = (mx.messaging.channels::SecureAMFChannel)#4 PLEASE, help me... the whole application i'm working on depend on that. Thanks Rafael
[flexcoders] Disabling internet explorer keys like f5, f1 etc and firing flex application keys
Hi friends, I want to disable internet explorer keys like f5,f1 etc . Also i want to impose key listeners in flex application. Everything works fine in FF, Google chrome etc. IE face problems only when the control is on the application . Please help. Thanks, with Regards, Jitendra Jain Software Engineer 91-9979960798 Check out the all-new Messenger 9.0! Go to http://in.messenger.yahoo.com/
[flexcoders] Setting Focus on loading application
Hi,Can anyone help me out with this craziness of flex..I need to set focus to my username field when my application gets loaded. While i was tracking this issue, I was caught up in http://bugs.adobe.com/jira/browse/FP-879 . There they specified about some kind of html wrapper code. I dint get any idea about it. Please somebody help me to fix this. Thanks Regards,Sony Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
Re: [flexcoders] Setting Focus on loading application
The issue is that the flash movie itself needs to receive focus before it can put the cursor in your username field. You can achieve this by adding this to your html wrapper (yourproject/html-template/ index.template.html): script language=JavaScript type=text/javascript function focusFlash() { ${application}.focus(); } /script and modify the body tag like so: body onload=focusFlash Once that's in there, the usual FocusManager code in your flex will work: focusManager.setFocus(username); Toby On 17/03/2009, at 5:54 PM, sony antony wrote: Hi, Can anyone help me out with this craziness of flex.. I need to set focus to my username field when my application gets loaded. While i was tracking this issue, I was caught up in http://bugs.adobe.com/jira/browse/FP-879 . There they specified about some kind of html wrapper code. I dint get any idea about it. Please somebody help me to fix this. Thanks Regards, Sony Check out the all-new face of Yahoo! India. Click here. Toby Tremayne CEO Magic Industries http://www.magicindustries.net mob: 0416 048 090 icq: 13107913 skype: lyricist1
Re: [flexcoders] Flex charting
Hi, No, I want full 100% graph with 2 colors in one bar and another 2 colors in one bar for the same key. I hope u got my point. Thanks and Regards, Poornima From: Brendan Meutzner bmeutz...@gmail.com To: flexcoders@yahoogroups.com Sent: Tuesday, March 17, 2009 11:55:35 AM Subject: Re: [flexcoders] Flex charting mx:ColumnChart type=stacked On Mon, Mar 16, 2009 at 10:48 PM, kotha poornima poorni_agile@ yahoo.com wrote: Hi, Please find the code below. ?xml version=1.0? !-- charts/BasicColumn. mxml -- mx:Script![CDATA[ import mx.collections. ArrayCollection; [Bindable] public var expenses:ArrayColle ction = new ArrayCollection( [ {Month:Jan, Profit:2000, loss:200, Expenses:1500} , {Month:Feb, Profit:1000, loss:200, Expenses:200} , {Month:Mar, Profit:1500, loss:200, Expenses:500} ]); ]]/mx:Script mx:Panel title=Column Chart mx:ColumnChart id=myChart dataProvider={expenses} type=100% mx:horizontalAxis mx:CategoryAxis dataProvider={expenses} categoryField=Month / /mx:horizontalAxis mx:series mx:ColumnSeries xField=Month yField=Profit displayName=Profit/ mx:ColumnSeries xField=Month yField=Expenses displayName=Expenses/ mx:ColumnSeries xField=Month yField=loss displayName=Loss/ mx:ColumnSeries xField=Month yField=Expenses displayName=Expenses/ /mx:series /mx:ColumnChart mx:Legend dataProvider={myChart}/ /mx:Panel /mx:Application Thanks in Advance, Poornima From: duraibalaji duraibalaji@ yahoo.com To: flexcod...@yahoogro ups.com Sent: Monday, March 16, 2009 8:00:52 PM Subject: Re: [flexcoders] Flex charting Hi Poorni, Can you post the code, let me try to modify the same and send it to you. Regards DB kotha poornima wrote: Hi All, I have one arraycollection like this: public var expenses:ArrayColle ction = new ArrayCollection( [ {Month:Jan , Profit:2000, loss:200, Expenses:1500} , {Month:Feb , Profit:1000, loss:200, Expenses:200} , {Month:Mar , Profit:1500, loss:200, Expenses:500} ]); With this iam drawing a column chart. so i added two column series one for profit and one for expenses. So i got output like for the first key two lines came orange and green one for profit and one for expenses. But i want to combine these two lines so i put type=100% With this iam getting green and orange in the same line with values adjusted to 100%. Up to this its working fine. But now i want another series for the same key with loss and expenses. However if i add these two series to the chart iam still getting one line with 4 colors. But i want profit and expenses with type=100% in one line and loss and expenses in one line with type=100% for one key.(Shown in the attachment type1.bmp) . Please help me guys!!! Thanks in Advance, Poornima -- View this message in context: http://www.nabble. com/Flex- charting- tp22534734p22539 460.html Sent from the FlexCoders mailing list archive at Nabble.com. -- Brendan Meutzner http://www.meutzner.com/blog/ http://www.riajobs. com
Re: [flexcoders] How to do images inside of a textarea using htmlText?
Try htmlText and replace [First Name] with the href of the image. HTH, Sefi On Tue, Mar 10, 2009 at 5:30 PM, tchredeemed apth...@liberty.edu wrote: Basically, I was wondering how I would just put an image inside of the textarea like it was a piece of text... Example: http://www.andrewthorp.com/image-text-area.jpg Functional Equivalent of: Dear [First Name], Begin typing your message here. Thanks! Instead of the text [First Name], I want the image placed there... any ideas? Thanks!
Re: [flexcoders] how to change alpha of a disabled combobox?
Have you tried disabledColor or disabledSkin? HTH, Sefi On Wed, Mar 11, 2009 at 10:06 AM, ettorepasquini ettorepasqu...@yahoo.comwrote: in my application i need to disable comboboxes (enabled = false) and change the look of the disabled combo to make it more opaque. Basically I want the disabled combo to look a little closer to the enabled combo look. Easy right? Wrong. I am able to change every styling info (color, background, gradients, etc) EXCEPT the overall alpha mask of the component, which makes the 0x0 black look like gray. I tried many approaches: - combo.alpha = 1; - combo.setStyle(backgroundAlpha, 1.0); - combo.setStyle(fillAlphas, [1.0, 1.0]); - applied my own skin class modified from ComboBoxArrowSkin and modified updateDisplayList to set fillAlphas to [1,1] No changes whatsoever: someone is imposing a default alpha but I cannot figure where the hell that happens and/or out how to override that. Any insights? Am I missing the obvious? Thanks in advance.
Re: [flexcoders] Question about binding and circular reference
My problem and I believe enrinne's problem is that when you have two way bindings on a ui control. The initial value of the control is set back in the model. I've seen this on textInput and comboBox. I can create a sample application but I think it would be very similar to the first post in the thread. I'd like to prevent the reverse binding occuring until the control is fully initialisaed. Regards, Wesley Acheson On Tue, Mar 17, 2009 at 3:35 AM, Josh McDonald j...@joshmcdonald.infowrote: I'm good with bindings, what's your specific problem? I didn't see earlier any posts from you in this thread. -Josh 2009/3/17 Wesley Acheson wesley.ache...@gmail.com Sorry for resurecting an old thread. I've reciently given up on this. I've gone back to using event listeners. It seems more reliable. The problem as I see it is that the binding events happen for any old reason. The change events only seem to be triggered on user interaction which is much better IMHO. Regards, Wesley Acheson On Wed, Mar 11, 2009 at 3:42 PM, Yves Riel r...@cae.com wrote: The problem you are experiencing is caused by the fact that when the player executes the line [ mf.foo = bar ], your text input is not even created in your form yet. So, the foo-myText binding does nothing and when the text input is finally created, the myText-foo binding executes and thus overwrite what was in foo. If you want to avoid this, you need to do: protected var mf:MyForm = new MyForm(); mf.addEventListener(FlexEvent.CREATION_COMPLETE, formCreatedHandler); addChild(mf); protected function formCreatedHandler(event:FlexEvent):void { mf.removeEventListener(FlexEvent.CREATION_COMPLETE, formCreatedHandler); mf.foo = bar; } -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *enriirne *Sent:* Wednesday, March 11, 2009 8:25 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Question about binding and circular reference Say I have this: // MyForm.mxml [Bindable] public var foo:String; mx:Bindable source=foo destination=myText.text/ mx:Bindable source=myText.text destination=foo/ mx:TextInput id=myText/ Is there an elegant way to avoid that foo is cleared upon creation of MyForm? Indeed, if I do this in the main app: var mf:MyForm = new MyForm(); mf.foo = bar; addChild(mf); then myText is empty, probably because it's empty content is first assigned to foo due to the second binding. The real problem I'm trying to solve is to use the same value object to show data to the user and to receive his/her changes. Of course it works if I use two vos: say voIn and voOut, binding them accordingly. Any ideas? Enri -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@joshmcdonald.info - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/
[flexcoders] Re: Color icon(s) in tree control
Anybody? Please ...
[flexcoders] checkbox and text input
hye i've got a problem to build my checkbox.i have a checkbox with label IP address and a text input beside it. i want to be able to input any IP address and when i click the checkbox button it will filter the datagrid according to IP address input earlier.it like a combination of 'search' and checkbox.but i don't know how to do this. can you show me how to work on this one??i'm ready to learn form the expert!!
[flexcoders] Nightly build of datavisualization SDK
Hello! Is there a nightly build of the datavisualization SDK? I have problems with a memory leak in the charting component and need to update the SDK. Thanks Ron
[flexcoders] Re: Color icon(s) in tree control
Below you can read custom TreeItemRenderer, where I'm trying to color defaultleaficon in red (in original it's white square). The last line super.icon = mc; is obviously not valid. Please help me. public class CDSTreeItemRenderer extends TreeItemRenderer { [Embed(skinClass=Tree_defaultLeafIcon)] private var DefaultLeafIcon:Class; public function CDSTreeItemRenderer() { super(); } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); var mc:MovieClip = new DefaultLeafIcon(); var colorTransform:ColorTransform = mc.transform.colorTransform; colorTransform.color = 0xFF; mc.transform.colorTransform = colorTransform; super.icon = mc; } } }
Re: [flexcoders] Setting Focus on loading application
Hey.. Thanks Toby...That worked.. It was really troubling stuff for me.. Now am almost relaxed.. --- On Tue, 17/3/09, Toby Tremayne t...@lyricist.com.au wrote: From: Toby Tremayne t...@lyricist.com.au Subject: Re: [flexcoders] Setting Focus on loading application To: flexcoders@yahoogroups.com Date: Tuesday, 17 March, 2009, 12:34 PM The issue is that the flash movie itself needs to receive focus before it can put the cursor in your username field. You can achieve this by adding this to your html wrapper (yourproject/ html-template/ index.template. html): script language=JavaScript type=text/javascriptfunction focusFlash() { ${application}.focus();}/script and modify the body tag like so: body onload=focusFlash Once that's in there, the usual FocusManager code in your flex will work: focusManager. setFocus( username) ; Toby On 17/03/2009, at 5:54 PM, sony antony wrote: Hi,Can anyone help me out with this craziness of flex..I need to set focus to my username field when my application gets loaded. While i was tracking this issue, I was caught up in http://bugs. adobe.com/ jira/browse/ FP-879 . There they specified about some kind of html wrapper code. I dint get any idea about it. Please somebody help me to fix this. Thanks Regards,Sony Check out the all-new face of Yahoo! India. Click here. Toby TremayneCEOMagic Industrieshttp://www.magicind ustries.netmob: 0416 048 090icq: 13107913skype: lyricist1 Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
[flexcoders] Re: Weired Focus Change behaviour on tab pressing
Binding passes a reference to the object that you are binding. groupName requires a string. You were passing a reference to the radioButton group object to the groupName property. Of course, Flex saw that and invoked the toString() method of the radioButton group object to pass a string to the radioButton object. In effect, both radioButton groups got the same empty string and thought they were all in the same group. --- In flexcoders@yahoogroups.com, geeky developer geekydevelo...@... wrote: Awesome, That works perfectly Thanks a lot Alex and valdhor for your help, Now everything is working fine with the binding removed, I am just wondering why binding can screw the focus issues for the tab pressing :-) On Mon, Mar 16, 2009 at 5:44 AM, valdhor valdhorli...@...wrote: You are almost done. Just remove the bindings from your groupNames... mx:RadioButton id=radioButtonDHCP label=DHCP groupName=networkSettingsGroup styleName=textMedium/ mx:RadioButton label=Static groupName=networkSettingsGroup styleName=textMedium/ --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, geeky developer geekydeveloper@ wrote: Hey Alex Thanks for replying but if I changed it to GroupName instead of group, it would let me make only one selection of the radio button. No doubt it fixed the tab focus issue but I like to use pairs of radio button like in the below example code, I like unitRoleGroup as one group and I like to select one of them at a time and networkSettingsGroup as another group in which I will like to select one at a time. It would let me do that if I change the property name to group , it would let me select one of the options if use group instead of groupName but then it would screw up the tab focus and if I change the group to groupName as recommended, then it fixes the tab focus issue but then it combines all the 4 radio button options into one and I would be able to select only one of them, thats not what i need. I like to create 2 different groups of radio buttons like the way it is shown in the code and i would like the tab ordering work properly with selecting one of the option at a time in each radio button group, Any idea to fix it? Thanks a lot for your help /*CODE */ ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:VBox width=100% height=100% paddingTop=5 paddingRight=5 paddingBottom=5 paddingLeft=5 mx:Label text=NSM Settings styleName=textLarge fontStyle=italic width=200/ mx:Form id=formMainContainer width=100% verticalGap=5 indicatorGap=25 labelWidth=200 paddingTop=0 paddingRight=0 paddingBottom=0 paddingLeft=0 height=262 !-- Unit Settings -- mx:FormItem label=Unit Settings labelStyleName=textLarge width=100% height=25 paddingTop=10 mx:HRule width=100% height=2/ /mx:FormItem mx:FormItem label=Unit Role labelStyleName=textMedium mx:RadioButtonGroup id=unitRoleGroup / mx:HBox mx:RadioButton label=Manager groupName={unitRoleGroup} styleName=textMedium/ mx:RadioButton label=Member groupName={unitRoleGroup} styleName=textMedium/ /mx:HBox /mx:FormItem mx:FormItem label=Unit Name labelStyleName=textMedium mx:TextInput id=txtUnitName styleName=inputTextMedium restrict=a-zA-Z0-9_ / /mx:FormItem mx:FormItem label=Time Zone labelStyleName=textMedium mx:ComboBox id=cboTimeZone / /mx:FormItem !-- Network Settings -- mx:FormItem id=networkSettingsForm mx:RadioButtonGroup id=networkSettingsGroup/ mx:HBox mx:RadioButton id=radioButtonDHCP label=DHCP groupName={networkSettingsGroup} styleName=textMedium/ mx:RadioButton label=Static groupName={networkSettingsGroup} styleName=textMedium/ /mx:HBox /mx:FormItem mx:FormItem label=Label mx:Button label=Button/ /mx:FormItem mx:FormItem label=Label mx:Button label=Button/ /mx:FormItem mx:FormItem label=Label mx:Button label=Button/ /mx:FormItem /mx:Form /mx:VBox /mx:Application On Fri, Mar 13, 2009 at 3:12 PM, Alex Harui aharui@ wrote: You have to set groupName, not group. mx:FormItem id=networkSettingsForm mx:RadioButtonGroup id=networkSettingsGroup/ mx:HBox mx:RadioButton id=radioButtonDHCP label=DHCP groupName=networkSettingsGroup styleName=textMedium/ mx:RadioButton label=Static groupName=networkSettingsGroup styleName=textMedium/ /mx:HBox Same for the other radiobuttons Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com[mailto: flexcoders@yahoogroups.com
[flexcoders] Re: Where can I get more examples using the Flex 3 reference language
You should try Tour de Flex, it's filled with such examples. http://www.adobe.com/devnet/flex/tourdeflex/ --- In flexcoders@yahoogroups.com, fred44455 fred44...@... wrote: Flex 3 reference language offers only 1 example for each different classes. For instance, I will get an example for the class buttonbut won't get any examples at all regarding the methods or events for this button class. Where can I get more examples? I am a newbie so of course I want to experiment as much as I can to learn the material. Thanks again for your time. Fred.
[flexcoders] How to uninstall air application programatically ?
How to uninstall air application programatically ? Suppose i have air application which has facility to uninstall itself. can it be possible? how? Thanks in advance. Regards, Krunal Panchal | Senior Software Engineer Tel 91.98795 80689 | *panchal_...@yahoo.com
[flexcoders] what can cause stage width and height go negative
Hey all, I have a baffling situation where the stage.height and the stage.width are going negative (-1.07... in fact). At this time, stageWidth and stageHeight are valid, so I have an initialized stage object. This is occurring in a complex application, and I have not been able to reproduce it stand alone. So, I'm trying to figure out the genesis of this problem. I understand fully that stage.width and stage.height are the measurements of the content of the stage, and not the stage itself. Does anyone know situations that can cause stage.width and stage.height to be negative?
[flexcoders] Possible to add a textinput to a TabNavigator (next to the tabs)
Hi, I am rather new to flex, so I apologize in advance if the answer is obvious. I have a TabNavigator and I want to place a textinput box all the way to the right. This will be a small search box that will help filter the contents of the currently selected tab. Is this possible? Thanks.
[flexcoders] Re: datefield issue
--- In flexcoders@yahoogroups.com, Greg Morphis gmorp...@... wrote: out of the pan and into the fire I have a datefield and I choose for example April 1, the date saves as 3/31. Greg, Flex / Flash actually remotes dates without consideration of their Timezone offsets (so 4/1/2009 00:00 sent from a SWF in GMT-0500 remotes as 3/31/2009 22:00 when sent to a server in GMT-0700). This Flex cookbook entry summarizes the problem and provides one possible solution: http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailsproductId=2postId=12168 Another solution would be to ditch the Date type altogether for mid-tier transmission and send dates as strings. We implemented this approach on my team with minimal suffering :) You'll obviously have to parse the string when sending or receiving, but if the date is in a perdictable string-format, it will work fine. On the Flex side, use a DateFormatter for sending and transform the received date-strings into dates via new Date(Date.parse(someServerDateString)).
Re: [flexcoders] Setting Focus on loading application
Hmm... didn't work for me... On Tue, Mar 17, 2009 at 2:00 PM, sony antony pow_like_me...@yahoo.co.inwrote: Hey.. Thanks Toby... That worked.. It was really troubling stuff for me.. Now am almost relaxed.. --- On *Tue, 17/3/09, Toby Tremayne t...@lyricist.com.au* wrote: From: Toby Tremayne t...@lyricist.com.au Subject: Re: [flexcoders] Setting Focus on loading application To: flexcoders@yahoogroups.com Date: Tuesday, 17 March, 2009, 12:34 PM The issue is that the flash movie itself needs to receive focus before it can put the cursor in your username field. You can achieve this by adding this to your html wrapper (yourproject/ html-template/ index.template. html): script language=JavaScript type=text/javascript function focusFlash() { ${application}.focus(); } /script and modify the body tag like so: body onload=focusFlash Once that's in there, the usual FocusManager code in your flex will work: focusManager. setFocus( username) ; Toby On 17/03/2009, at 5:54 PM, sony antony wrote: Hi,Can anyone help me out with this craziness of flex.. I need to set focus to my username field when my application gets loaded. While i was tracking this issue, I was caught up in http://bugs. adobe.com/ jira/browse/ FP-879 http://bugs.adobe.com/jira/browse/FP-879 . There they specified about some kind of html wrapper code. I dint get any idea about it. Please somebody help me to fix this. Thanks Regards, Sony -- Check out the all-new face of Yahoo! India. Click here.http://in.rd.yahoo.com/tagline_frontpage_1/*http://in.yahoo.com/?wm=n/ Toby Tremayne CEO Magic Industries http://www.magicind ustries.net http://www.magicindustries.net mob: 0416 048 090 icq: 13107913 skype: lyricist1 -- Add more friends to your messenger and enjoy! Invite them now.http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/
RE: [flexcoders] Setting Focus on loading application
Be aware that this is reliable in IE, but may not work in FireFox. I do not know about the other browsers. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of sony antony Sent: Tuesday, March 17, 2009 8:00 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Setting Focus on loading application Hey.. Thanks Toby... That worked.. It was really troubling stuff for me.. Now am almost relaxed.. http://mail.yimg.com/us.yimg.com/i/mesg/tsmileys2/14.gif --- On Tue, 17/3/09, Toby Tremayne t...@lyricist.com.au wrote: From: Toby Tremayne t...@lyricist.com.au Subject: Re: [flexcoders] Setting Focus on loading application To: flexcoders@yahoogroups.com Date: Tuesday, 17 March, 2009, 12:34 PM The issue is that the flash movie itself needs to receive focus before it can put the cursor in your username field. You can achieve this by adding this to your html wrapper (yourproject/ html-template/ index.template. html): script language=JavaScript type=text/javascript function focusFlash() { ${application}.focus(); } /script and modify the body tag like so: body onload=focusFlash Once that's in there, the usual FocusManager code in your flex will work: focusManager. setFocus( username) ; Toby On 17/03/2009, at 5:54 PM, sony antony wrote: Hi, Can anyone help me out with this craziness of flex.. I need to set focus to my username field when my application gets loaded. While i was tracking this issue, I was caught up in http://bugs.adobe.com/jira/browse/FP-879 http://bugs. adobe.com/ jira/browse/ FP-879 . There they specified about some kind of html wrapper code. I dint get any idea about it. Please somebody help me to fix this. Thanks Regards, Sony _ Check out the all-new face of Yahoo! India. http://in.rd.yahoo.com/tagline_frontpage_1/*http:/in.yahoo.com/?wm=n/ Click here. Toby Tremayne CEO Magic Industries http://www.magicind http://www.magicindustries.net ustries.net mob: 0416 048 090 icq: 13107913 skype: lyricist1 _ Add more friends to your messenger and enjoy! Invite http://in.rd.yahoo.com/tagline_messenger_6/*http:/messenger.yahoo.com/invit e/ them now.
[flexcoders] flex 3 issue loading fp10
I have the fp10 global swc, and when I try to load it inside flex 3, it has a problem, and say that it has a bitcode error, any ideas why? Gustavo
[flexcoders] Item Rendererer Question
I have custom ItemRenderers, after a filter Function, it looks like my itemRenderers are not being cleared out, I have double the items in my list. How do I make sure they are reset and their visual content is removed after I perform a refresh() Thanks, Patrick
Re: [flexcoders] Issue with Tree in Flex
Thank you steve, I'm using expandTree(); to get the first node expanded on creation of the tree. my requirement is to keep the first node open after creation of the tree, there after it will be handled by the user. thanks and Regards DB valdhor-3 wrote: DB I tried your code and saw the exact issue you describe. Commenting the line: //expandTree(); fixes it. I don't use Tree but I would surmise you are double handling the expand functionality. From what I can see the tree component already implements expand and by adding your own you are causing the problem. Someone else who uses tree more extensively may have a better explanation. HTH. Steve --- In flexcoders@yahoogroups.com, duraibalaji duraibal...@... wrote: Hi flex experts, I'm using tree for a requirement, when we try to open more number of nodes and browse thru the the tree, these are the issues that occur. 1) Tree View goes either Blank or filled with one node name. 2) It hides few nodes. In other words, On expanding more nodes the tree view goes either blank or hides few nodes (sometimes the single node name appears through out the tree view). The following is a sample tree code that i'm trying to use. You can copy paste and try executing this. Thanks in Advance. Regards DB -- View this message in context: http://www.nabble.com/Issue-with-Tree-in-Flex-tp22538899p22558475.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] Item Rendererer Question
Can you be more specific? Generally speaking IR are reused so there is a high probability that you still have them in there. In theory you should be filtering the list data provider so that the list will display whatever the provider feeds.. Claudiu From: djhatrick djhatr...@yahoo.com To: flexcoders@yahoogroups.com Sent: Tuesday, March 17, 2009 3:18:20 PM Subject: [flexcoders] Item Rendererer Question I have custom ItemRenderers, after a filter Function, it looks like my itemRenderers are not being cleared out, I have double the items in my list. How do I make sure they are reset and their visual content is removed after I perform a refresh() Thanks, Patrick
RE: [flexcoders] checkbox and text input
That task has several parts. Which have you done successfully and which do you need help with? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of diana_usim Sent: Tuesday, March 17, 2009 4:34 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] checkbox and text input hye i've got a problem to build my checkbox.i have a checkbox with label IP address and a text input beside it. i want to be able to input any IP address and when i click the checkbox button it will filter the datagrid according to IP address input earlier.it like a combination of 'search' and checkbox.but i don't know how to do this. can you show me how to work on this one??i'm ready to learn form the expert!!
Re: [flexcoders] How to uninstall air application programatically ?
Krunal contacted me off list w/ the same question. I blogged an answer http://www.jeffryhouser.com/index.cfm/2009/3/17/How-do-I-uninstall-AIR-Applications-Programatically But, in short To do this Formally I think you need to sign up for Adobe's the Runtime Distribution http://www.adobe.com/products/air/runtime_distribution1.html program for AIR. I believe once you're in they'll give you access / information on how to do that. I believe that the program gives you access to install AIR applications and the AIR runtime in invisible mode, but I could be wrong about that. All that said, I haven't looked specifically into how AIR applications are uninstalled. I suspect that there is just an executable that you can launch from your custom uninstaller. Krunal Panchal wrote: How to uninstall air application programatically ? Suppose i have air application which has facility to uninstall itself. can it be possible? how? Thanks in advance. * Regards, *Krunal Panchal* | Senior Software Engineer Tel 91.98795 80689 | ** panchal_...@yahoo.com mailto:panchal_...@yahoo.com* * -- 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] Item Rendererer Question
Renderers are manipulated by the lists and the framework based on the underlying data. Have you verified your dataProvider content? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick Sent: Tuesday, March 17, 2009 9:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Item Rendererer Question I have custom ItemRenderers, after a filter Function, it looks like my itemRenderers are not being cleared out, I have double the items in my list. How do I make sure they are reset and their visual content is removed after I perform a refresh() Thanks, Patrick
RE: [flexcoders] Issue with Tree in Flex
Ok, but do not do that in the labelFunction. Do it after assigning the dataProvider, probably delayed with callLater(). Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of duraibalaji Sent: Tuesday, March 17, 2009 9:20 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Issue with Tree in Flex Thank you steve, I'm using expandTree(); to get the first node expanded on creation of the tree. my requirement is to keep the first node open after creation of the tree, there after it will be handled by the user. thanks and Regards DB valdhor-3 wrote: DB I tried your code and saw the exact issue you describe. Commenting the line: //expandTree(); fixes it. I don't use Tree but I would surmise you are double handling the expand functionality. From what I can see the tree component already implements expand and by adding your own you are causing the problem. Someone else who uses tree more extensively may have a better explanation. HTH. Steve --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, duraibalaji duraibal...@... wrote: Hi flex experts, I'm using tree for a requirement, when we try to open more number of nodes and browse thru the the tree, these are the issues that occur. 1) Tree View goes either Blank or filled with one node name. 2) It hides few nodes. In other words, On expanding more nodes the tree view goes either blank or hides few nodes (sometimes the single node name appears through out the tree view). The following is a sample tree code that i'm trying to use. You can copy paste and try executing this. Thanks in Advance. Regards DB -- View this message in context: http://www.nabble. http://www.nabble.com/Issue-with-Tree-in-Flex-tp22538899p22558475.html com/Issue-with-Tree-in-Flex-tp22538899p22558475.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] Question about binding and circular reference
I re-read the original post, and it makes sense. I always use change events rather than bindings on the way back from components, which is what I'd recommend rather than two-way bindings. I'm interested to see how the SDK team handles this with the bidirectional binding feature in 4. Another approach, if you're set on binding: Rather than the outer component waiting for creationComplete on the inner component to set the model value, simply put code in the inner component that waits for creationcomplete and creates the component-model return bindings programmatically via BindingUtils. Not sure I've explained that clearly tho, let me know if it's gibberish :) -Josh 2009/3/17 Wesley Acheson wesley.ache...@gmail.com My problem and I believe enrinne's problem is that when you have two way bindings on a ui control. The initial value of the control is set back in the model. I've seen this on textInput and comboBox. I can create a sample application but I think it would be very similar to the first post in the thread. I'd like to prevent the reverse binding occuring until the control is fully initialisaed. Regards, Wesley Acheson On Tue, Mar 17, 2009 at 3:35 AM, Josh McDonald j...@joshmcdonald.infowrote: I'm good with bindings, what's your specific problem? I didn't see earlier any posts from you in this thread. -Josh 2009/3/17 Wesley Acheson wesley.ache...@gmail.com Sorry for resurecting an old thread. I've reciently given up on this. I've gone back to using event listeners. It seems more reliable. The problem as I see it is that the binding events happen for any old reason. The change events only seem to be triggered on user interaction which is much better IMHO. Regards, Wesley Acheson On Wed, Mar 11, 2009 at 3:42 PM, Yves Riel r...@cae.com wrote: The problem you are experiencing is caused by the fact that when the player executes the line [ mf.foo = bar ], your text input is not even created in your form yet. So, the foo-myText binding does nothing and when the text input is finally created, the myText-foo binding executes and thus overwrite what was in foo. If you want to avoid this, you need to do: protected var mf:MyForm = new MyForm(); mf.addEventListener(FlexEvent.CREATION_COMPLETE, formCreatedHandler); addChild(mf); protected function formCreatedHandler(event:FlexEvent):void { mf.removeEventListener(FlexEvent.CREATION_COMPLETE, formCreatedHandler); mf.foo = bar; } -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *enriirne *Sent:* Wednesday, March 11, 2009 8:25 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Question about binding and circular reference Say I have this: // MyForm.mxml [Bindable] public var foo:String; mx:Bindable source=foo destination=myText.text/ mx:Bindable source=myText.text destination=foo/ mx:TextInput id=myText/ Is there an elegant way to avoid that foo is cleared upon creation of MyForm? Indeed, if I do this in the main app: var mf:MyForm = new MyForm(); mf.foo = bar; addChild(mf); then myText is empty, probably because it's empty content is first assigned to foo due to the second binding. The real problem I'm trying to solve is to use the same value object to show data to the user and to receive his/her changes. Of course it works if I use two vos: say voIn and voOut, binding them accordingly. Any ideas? Enri -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@joshmcdonald.info - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/ -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@joshmcdonald.info - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/
[flexcoders] Re: flex 3 issue loading fp10
By load it inside flex 3 do you mean compile with fp10 global swc? To use the fp10 global swc in Flex 3 you should compile with -target-player=10. Also verify you are running the fp10 player, fp9 can't run a swf compiled for fp10. -Darrell --- In flexcoders@yahoogroups.com, Gustavo Duenas gdue...@... wrote: I have the fp10 global swc, and when I try to load it inside flex 3, it has a problem, and say that it has a bitcode error, any ideas why? Gustavo
[flexcoders] Re: Debugger can't find framework source
We are thinking to provide unsigned RSLs with debug information in Flex 4. -Darrell --- In flexcoders@yahoogroups.com, reflexactions reflexacti...@... wrote: Thanks, That makes sense, though it would be nice if in a future version of Flex adobe could provide debugging RSL's as an option, as sometimes it is useful to be able to step through into adobe code. With our main application it is no longer really practical to change back to merged without a lot of other changes as well as going back to 30 min compiles. --- In flexcoders@yahoogroups.com, Darrell Loverin darrell_loverin@ wrote: The framework RSL does not contain debug information so you can't debug it. The debug infomation is removed from RSLs to make them smaller and download faster. -Darrell --- In flexcoders@yahoogroups.com, reflexactions reflexactions@ wrote: I noticed that after I switch my app to use framework RSL's the debugger always shows the framework as no source. I have checked that in the library path the source attachment property is set and is valid. All I need do is switch between framework linkage merged in code and RSL for it to show/not show source code in the debugger. This is running FB standalone. Does anyone know how to get it to find the source code when using the framework as an RSL?
[flexcoders] FilterFunction
You need to check into a number of things... ArrayCollection: http://livedocs.adobe.com/flex/3/langref/mx/collections/ArrayCollection.\ html You need to know how to filter your data. Here you will find info regarding FilterFunction. CheckBox: http://livedocs.adobe.com/flex/3/langref/mx/controls/CheckBox.html This will show you some of the events that the checkbox generates including the change event. String: http://livedocs.adobe.com/flex/3/langref/String.html This will show you a few ways of doing string searches including indexOf(). As a quick and dirty example: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical initialize=onInit() mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var IPAddresses:ArrayCollection; private function onInit():void { IPAddresses = new ArrayCollection([ {IP:192.168.1.1}, {IP:192.168.1.2}, {IP:192.168.1.3}, {IP:192.168.1.4}, {IP:192.168.1.5}, {IP:192.168.2.1}, {IP:192.168.2.2}, {IP:192.168.2.3}, {IP:192.168.2.4}, {IP:192.168.2.5} ]); } private function checkBoxChanged():void { if(IPCheckBox.selected) { IPAddresses.filterFunction = IPFilter; } else { IPAddresses.filterFunction = null; } IPAddresses.refresh(); } private function IPFilter(item:Object):Boolean { var isMatch:Boolean = false; if((item.IP as String).indexOf(IPTextInput.text) -1) { isMatch = true; } return isMatch; } ]] /mx:Script mx:HBox mx:CheckBox id=IPCheckBox label=IP address change=checkBoxChanged()/ mx:TextInput id=IPTextInput / /mx:HBox mx:DataGrid id=IPDataGrid dataProvider={IPAddresses} rowCount={IPAddresses.length} mx:columns mx:DataGridColumn headerText=IP dataField=IP/ /mx:columns /mx:DataGrid /mx:Application If there is anything about this you don't understand, please don't hesitate to ask. HTH. Steve --- In flexcoders@yahoogroups.com, diana_usim diana_u...@... wrote: hye i've got a problem to build my checkbox.i have a checkbox with label IP address and a text input beside it. i want to be able to input any IP address and when i click the checkbox button it will filter the datagrid according to IP address input earlier.it like a combination of 'search' and checkbox.but i don't know how to do this. can you show me how to work on this one??i'm ready to learn form the expert!!
[flexcoders] Re: Possible to add a textinput to a TabNavigator (next to the tabs)
http://livedocs.adobe.com/flex/3/langref/mx/controls/Spacer.html --- In flexcoders@yahoogroups.com, gmoniey22 gmonie...@... wrote: Hi, I am rather new to flex, so I apologize in advance if the answer is obvious. I have a TabNavigator and I want to place a textinput box all the way to the right. This will be a small search box that will help filter the contents of the currently selected tab. Is this possible? Thanks.
[flexcoders] OS-dependent mxmlc behavior for fonts?
Hi there, I just recently moved my build machine from a windows box to a linux box, and now my app's fonts (both embedded and not embedded) look different (thicker and overall crappier). My build is done via mxmlc in an ANT script. What can I do about it, short of moving the build machine again? Any mxmlc option I could use? I don't really even know what to Google... TIA, Peldi
[flexcoders] Re: IE6 RemoteObject calls fail under HTTPS
Can you post a small example? I don't see this and most (95%+) of our users are on IE6 (This is the current enterprise standard set by our IT department). --- In flexcoders@yahoogroups.com, Rafael Faria rafaelfaria.gru...@... wrote: We have tried many many things, and seem to have narrowed it down to the session headers and the cache control. However all most all of the posts and notes around the web seem to get this issue arising with HTTPService calls that spawn a #2032 streaming error and not what we are seeing. Tracking the calls with Charles for instance seems to indicate that the call to the gateway is never actually being made. We discounted any crossdomain issues (the webroot and the gateway are on different servers) as the sandbox violation errors did not appear at all. So if anyone out there can shed some light on this we would be most appreciative. Or conversely if you can get every person in the world to upgrade their browsers beyond IE6 that would be awesome too. mx.rpc.events::FaultEvent)#0 bubbles = false cancelable = true currentTarget = (null) eventPhase = 2 fault = (mx.rpc::Fault)#1 content = (Object)#2 errorID = 0 faultCode = Client.Error.MessageSend faultDetail = Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'https://mydomain.com/amfphp/gateway.php' faultString = Send failed message = faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'https://mydomain.com/amfphp/gateway.php'' name = Error rootCause = (mx.messaging.events::ChannelFaultEvent)#3 bubbles = false cancelable = false channel = (mx.messaging.channels::SecureAMFChannel)#4 PLEASE, help me... the whole application i'm working on depend on that. Thanks Rafael
Re: [flexcoders] Flex charting
Poornima, I now see what you mean... sorry, didn't read carefully enough the first time (or look at screenshot :)... What you're looking for doesn't fit the logic with a 100% graph you realize. If I understand correctly, you want a stacked column series which contains two items for each point on the horizontal axis... one with Expenses+Profit and one with Expenses+Loss... doing this won't cause them to add to 100%. Am I correct in understanding your problem? If yes, let me know and we can figure it out. Brendan On Tue, Mar 17, 2009 at 2:27 AM, kotha poornima poorni_ag...@yahoo.comwrote: Hi, No, I want full 100% graph with 2 colors in one bar and another 2 colors in one bar for the same key. I hope u got my point. Thanks and Regards, Poornima -- *From:* Brendan Meutzner bmeutz...@gmail.com *To:* flexcoders@yahoogroups.com *Sent:* Tuesday, March 17, 2009 11:55:35 AM *Subject:* Re: [flexcoders] Flex charting mx:ColumnChart type=stacked On Mon, Mar 16, 2009 at 10:48 PM, kotha poornima poorni_agile@ yahoo.compoorni_ag...@yahoo.com wrote: Hi, Please find the code below. ?xml version=1.0? !-- charts/BasicColumn. mxml -- mx:Script![CDATA[ import mx.collections. ArrayCollection; [Bindable] public var expenses:ArrayColle ction = new ArrayCollection( [ {Month:Jan, Profit:2000, loss:200, Expenses:1500} , {Month:Feb, Profit:1000, loss:200, Expenses:200} , {Month:Mar, Profit:1500, loss:200, Expenses:500} ]); ]]/mx:Script mx:Panel title=Column Chart mx:ColumnChart id=myChart dataProvider={expenses} type=100% mx:horizontalAxis mx:CategoryAxis dataProvider={expenses} categoryField=Month / /mx:horizontalAxis mx:series mx:ColumnSeries xField=Month yField=Profit displayName=Profit/ mx:ColumnSeries xField=Month yField=Expenses displayName=Expenses/ mx:ColumnSeries xField=Month yField=loss displayName=Loss/ mx:ColumnSeries xField=Month yField=Expenses displayName=Expenses/ /mx:series /mx:ColumnChart mx:Legend dataProvider={myChart}/ /mx:Panel /mx:Application Thanks in Advance, Poornima -- *From:* duraibalaji duraibalaji@ yahoo.com duraibal...@yahoo.com *To:* flexcod...@yahoogro ups.com flexcoders@yahoogroups.com *Sent:* Monday, March 16, 2009 8:00:52 PM *Subject:* Re: [flexcoders] Flex charting Hi Poorni, Can you post the code, let me try to modify the same and send it to you. Regards DB kotha poornima wrote: Hi All, I have one arraycollection like this: public var expenses:ArrayColle ction = new ArrayCollection( [ {Month:Jan , Profit:2000, loss:200, Expenses:1500} , {Month:Feb , Profit:1000, loss:200, Expenses:200} , {Month:Mar , Profit:1500, loss:200, Expenses:500} ]); With this iam drawing a column chart. so i added two column series one for profit and one for expenses. So i got output like for the first key two lines came orange and green one for profit and one for expenses. But i want to combine these two lines so i put type=100% With this iam getting green and orange in the same line with values adjusted to 100%. Up to this its working fine. But now i want another series for the same key with loss and expenses. However if i add these two series to the chart iam still getting one line with 4 colors. But i want profit and expenses with type=100% in one line and loss and expenses in one line with type=100% for one key.(Shown in the attachment type1.bmp) . Please help me guys!!! Thanks in Advance, Poornima -- View this message in context: http://www.nabble. com/Flex- charting- tp22534734p22539 460.htmlhttp://www.nabble.com/Flex-charting-tp22534734p22539460.html Sent from the FlexCoders mailing list archive at Nabble.com. -- Brendan Meutzner http://www.meutzner.com/blog/ http://www.riajobs. com http://www.riajobs.com -- Brendan Meutzner http://www.meutzner.com/blog/ http://www.riajobs.com
Re: [flexcoders] IE6 RemoteObject calls fail under HTTPS
Many IE problems are cause by the no-cache header (or lack thereof, I forget which). I also vaguely remember having issues on IE only when settings didn't match up perfectly (ex. using an AMFChannel instead of a SecureAMFChannel with and https address). You might want to throw out your assumetions of what should work/fail over and only use what is explicitly supposed to work. Sorry I can't be of more specific help, but it was a long time ago when I had this type of problem. - Daniel Freiman On Tue, Mar 17, 2009 at 2:27 AM, Rafael Faria rafaelfaria.gru...@gmail.comwrote: We have tried many many things, and seem to have narrowed it down to the session headers and the cache control. However all most all of the posts and notes around the web seem to get this issue arising with HTTPService calls that spawn a #2032 streaming error and not what we are seeing. Tracking the calls with Charles for instance seems to indicate that the call to the gateway is never actually being made. We discounted any crossdomain issues (the webroot and the gateway are on different servers) as the sandbox violation errors did not appear at all. So if anyone out there can shed some light on this we would be most appreciative. Or conversely if you can get every person in the world to upgrade their browsers beyond IE6 that would be awesome too. mx.rpc.events::FaultEvent)#0 bubbles = false cancelable = true currentTarget = (null) eventPhase = 2 fault = (mx.rpc::Fault)#1 content = (Object)#2 errorID = 0 faultCode = Client.Error.MessageSend faultDetail = Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'https://mydomain.com/amfphp/gateway.php' faultString = Send failed message = faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'https://mydomain.com/amfphp/gateway.php'' name = Error rootCause = (mx.messaging.events::ChannelFaultEvent)#3 bubbles = false cancelable = false channel = (mx.messaging.channels::SecureAMFChannel)#4 PLEASE, help me... the whole application i'm working on depend on that. Thanks Rafael ▼ ▲
Re: [flexcoders] Flex charting
The bottom example at this link with the BarChart with two different typed series... is this what you're looking for? (assuming that instead of one regular and one stacked, they'd both be stacked) http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=charts_formatting_110_46.html Brendan On Tue, Mar 17, 2009 at 8:58 AM, Brendan Meutzner bmeutz...@gmail.comwrote: Poornima, I now see what you mean... sorry, didn't read carefully enough the first time (or look at screenshot :)... What you're looking for doesn't fit the logic with a 100% graph you realize. If I understand correctly, you want a stacked column series which contains two items for each point on the horizontal axis... one with Expenses+Profit and one with Expenses+Loss... doing this won't cause them to add to 100%. Am I correct in understanding your problem? If yes, let me know and we can figure it out. Brendan On Tue, Mar 17, 2009 at 2:27 AM, kotha poornima poorni_ag...@yahoo.comwrote: Hi, No, I want full 100% graph with 2 colors in one bar and another 2 colors in one bar for the same key. I hope u got my point. Thanks and Regards, Poornima -- *From:* Brendan Meutzner bmeutz...@gmail.com *To:* flexcoders@yahoogroups.com *Sent:* Tuesday, March 17, 2009 11:55:35 AM *Subject:* Re: [flexcoders] Flex charting mx:ColumnChart type=stacked On Mon, Mar 16, 2009 at 10:48 PM, kotha poornima poorni_agile@ yahoo.compoorni_ag...@yahoo.com wrote: Hi, Please find the code below. ?xml version=1.0? !-- charts/BasicColumn. mxml -- mx:Script![CDATA[ import mx.collections. ArrayCollection; [Bindable] public var expenses:ArrayColle ction = new ArrayCollection( [ {Month:Jan, Profit:2000, loss:200, Expenses:1500} , {Month:Feb, Profit:1000, loss:200, Expenses:200} , {Month:Mar, Profit:1500, loss:200, Expenses:500} ]); ]]/mx:Script mx:Panel title=Column Chart mx:ColumnChart id=myChart dataProvider={expenses} type=100% mx:horizontalAxis mx:CategoryAxis dataProvider={expenses} categoryField=Month / /mx:horizontalAxis mx:series mx:ColumnSeries xField=Month yField=Profit displayName=Profit/ mx:ColumnSeries xField=Month yField=Expenses displayName=Expenses/ mx:ColumnSeries xField=Month yField=loss displayName=Loss/ mx:ColumnSeries xField=Month yField=Expenses displayName=Expenses/ /mx:series /mx:ColumnChart mx:Legend dataProvider={myChart}/ /mx:Panel /mx:Application Thanks in Advance, Poornima -- *From:* duraibalaji duraibalaji@ yahoo.com duraibal...@yahoo.com *To:* flexcod...@yahoogro ups.com flexcoders@yahoogroups.com *Sent:* Monday, March 16, 2009 8:00:52 PM *Subject:* Re: [flexcoders] Flex charting Hi Poorni, Can you post the code, let me try to modify the same and send it to you. Regards DB kotha poornima wrote: Hi All, I have one arraycollection like this: public var expenses:ArrayColle ction = new ArrayCollection( [ {Month:Jan , Profit:2000, loss:200, Expenses:1500} , {Month:Feb , Profit:1000, loss:200, Expenses:200} , {Month:Mar , Profit:1500, loss:200, Expenses:500} ]); With this iam drawing a column chart. so i added two column series one for profit and one for expenses. So i got output like for the first key two lines came orange and green one for profit and one for expenses. But i want to combine these two lines so i put type=100% With this iam getting green and orange in the same line with values adjusted to 100%. Up to this its working fine. But now i want another series for the same key with loss and expenses. However if i add these two series to the chart iam still getting one line with 4 colors. But i want profit and expenses with type=100% in one line and loss and expenses in one line with type=100% for one key.(Shown in the attachment type1.bmp) . Please help me guys!!! Thanks in Advance, Poornima -- View this message in context: http://www.nabble. com/Flex- charting- tp22534734p22539 460.htmlhttp://www.nabble.com/Flex-charting-tp22534734p22539460.html Sent from the FlexCoders mailing list archive at Nabble.com. -- Brendan Meutzner http://www.meutzner.com/blog/ http://www.riajobs. com http://www.riajobs.com -- Brendan Meutzner http://www.meutzner.com/blog/ http://www.riajobs.com -- Brendan Meutzner http://www.meutzner.com/blog/ http://www.riajobs.com
Re: [flexcoders] Smallest filesize of a swf in Flex 3 is larger then Flex 2?
A big part of that reason is that when you attach any library, be it the SDK or an external SWC, as a RSL, it is going to increase the size of a singular app. The reason is that when a library is specified as an RSL, the ENTIRE library gets loaded, not just the parts that are needed, since it doesn't know what classes will be needed. Additionally, RSLs are all loaded at Frame 1, and are mandatory (meaning all RSLs are required to be loaded), increasing the load time if they haven't been downloaded previously. Where you see the major gains with RSLs is when you are using them across multiple applications, because rather than re-download the RSL, it will pull the RSL from the browser cache, speeding the load time, although it is still loading more classes than otherwise. For this reason RSLs are usually a bad idea for a single application, because it will actually have a smaller size all compiled into a single SWF, and loading bits of the application via modules, which are only loaded as needed. Nick On Mon, Mar 16, 2009 at 8:55 PM, Dan yldle...@hotmail.com wrote: Hi Flexcoders, It is always claimed that by caching framework.swz of Flex 3, the swf size is always the smaller. However. from the generated linked-report. in Flex 3, some classes like RSLloader and some ResourceBundle classes are being added, which actually increase the swf size. Since my application is making up of first loading a shared library, and then upon runtime, it loaded other very small modules. These modules are making up of very small file size (a few k byte), the overhead added by these Flex3 loaders and bundles has largly increase the TOTAL application size by a huge amount (cause there are hundreds of this kind of small modules when summing up the little increase of this overhead, it becomes M byte). The start up time is down a bit (loading the smaller library and smaller init app), but the overall brandwidth consumpt much more now. So is there any way to trim off those overhead? Or I need to compile those smaller modules by a Flex 2 compiler? Anyone have any idea? Dan
[flexcoders] How to tell when background image is clicked?
I've got a custom component based on Canvas, and I'm programmatically setting its background-image style to a loaded SWF. I need to be able to differentiate between a click on the background, and a click on any of the other children. WIth no background set, I was using this code: private function clickHandler (evt:MouseEvent):void { if (evt.target == this) { setFocus(); dispatchEvent(new CanvasEvent(CanvasEvent.CLEAR_FOCUS)); } } WIth a background-image, however, this no longer works. I've also tried listening for the target phase, but the event never actually reaches the canvas object. I do have a separate ICollectionView instance containing all the other children, but I'd like to avoid having to use that for this handler, if possible.
Re: [flexcoders] Question about binding and circular reference
On Tue, Mar 17, 2009 at 2:38 PM, Josh McDonald j...@joshmcdonald.infowrote: I re-read the original post, and it makes sense. I always use change events rather than bindings on the way back from components, which is what I'd recommend rather than two-way bindings. Yes that is what I was trying to give as an answer to the origional post. I know it wasn't much specific help but rather than asking a question myself. I was trying to convay that I had reached the conclusion that the change event was better. I'm interested to see how the SDK team handles this with the bidirectional binding feature in 4. I'm sure it will be fine. Its a common model. I wonder if it will break backwards compatiblity for any one that depends on it working the way it currently does? Regards, Wes
[flexcoders] Re: converting a Java object into a chart dataprovider
I'll be sending Dates, Strings, and floats. --- In flexcoders@yahoogroups.com, Josh McDonald j...@... wrote: What kind of objects are in your array? -Josh 2009/3/17 netdeep deep...@... In the flex documentation, it shows how to easily create a chart with mxml and a static Array: private var expenses:Array = [ {Month:January,Profit:2000,Expenses:1500,Amount:450}, {Month:February,Profit:1000,Expenses:200,Amount:600}, {Month:March,Profit:1500,Expenses:500,Amount:300}, ]; mx:ColumnSeries xField=Month yField=Profit displayName=Profit / mx:ColumnSeries xField=Month yField=Expenses displayName=Expenses / But I am reading my data from the database and want to pass the data via a java object. But I don't know the number of fields at runtime. So how do I assign the xFields and yFields since I won't be able to create a variable named Month or Profit? I'll just have an array of floats or dates or whatever. Here's a start put I have no idea how to plug in the missing pieces or if another route would be preferable. var lineSeries:LineSeries = new LineSeries(); BindingUtils.bindProperty(lineSeries, dataProvider, ser, javaArray); // lineSeries.xField= ??? // lineSeries.yField= ??? The data set is often quite large by the way. -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@... - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/
[flexcoders] mxmlc.exe and config file?
I have a AIR application. I try to do this mxmlc.exe -output test.swf test.mxml I get the error: load configuration file c:\flex_sdk\frameworks\flex-config.xml and can not specified class 'mx.core.WindowApplication' for test.mxml. It seem I need change the configuration file to air-config.xml. Please help me to know how to do this change. Thanks Mark
[flexcoders] Re: Wrap label on Y Axis of graph
Bump, anyone? :) --- In flexcoders@yahoogroups.com, Nate Pearson napearso...@... wrote: I have a bar chart with big descriptions on the Y Axis. I want to be able to wrap the text. I've tried adding br/ to the data but that just cuts off the label on the y-axis (but it wraps it in the tool tip). Any ideas? :)
Re: [flexcoders] Setting Focus on loading application
This ground may have been covered already but this is an IE fix only. Firefox doesn¹t doesn¹t let you set focus programmatically to embedded Flash content. It¹s been a long-standing issue with the people at Mozilla. http://groups.google.com/group/mozilla.dev.accessibility/browse_thread/threa d/360ba2fcb48de633/ec87ab6b4e30d822 Rick Winscot On 3/17/09 8:00 AM, sony antony pow_like_me...@yahoo.co.in wrote: Hey.. Thanks Toby... That worked.. It was really troubling stuff for me.. Now am almost relaxed.. --- On Tue, 17/3/09, Toby Tremayne t...@lyricist.com.au wrote: From: Toby Tremayne t...@lyricist.com.au Subject: Re: [flexcoders] Setting Focus on loading application To: flexcoders@yahoogroups.com Date: Tuesday, 17 March, 2009, 12:34 PM The issue is that the flash movie itself needs to receive focus before it can put the cursor in your username field. You can achieve this by adding this to your html wrapper (yourproject/ html-template/ index.template. html): script language=JavaScript type=text/javascript function focusFlash() { ${application}.focus(); } /script and modify the body tag like so: body onload=focusFlash Once that's in there, the usual FocusManager code in your flex will work: focusManager. setFocus( username) ; Toby On 17/03/2009, at 5:54 PM, sony antony wrote: Hi,Can anyone help me out with this craziness of flex.. I need to set focus to my username field when my application gets loaded. While i was tracking this issue, I was caught up in http://bugs. adobe.com/ jira/browse/ FP-879 http://bugs.adobe.com/jira/browse/FP-879 . There they specified about some kind of html wrapper code. I dint get any idea about it. Please somebody help me to fix this. Thanks Regards, Sony Check out the all-new face of Yahoo! India. Click here. http://in.rd.yahoo.com/tagline_frontpage_1/*http://in.yahoo.com/?wm=n/ Toby Tremayne CEO Magic Industries http://www.magicind ustries.net http://www.magicindustries.net mob: 0416 048 090 icq: 13107913 skype: lyricist1 Add more friends to your messenger and enjoy! Invite them now. http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite /
[flexcoders] Re: Possible to add a textinput to a TabNavigator (next to the tabs)
If your component is static and will never change , children will never get removed and no new children will be added you could try an absolute positioning. I do not recommend spacer tho. On the other hand you could try to make your own component , you say that you are new to flex so I guess that may be scary and you would not know where to start . Help yourself to this, I'm not saying it's finished but I do think it's the best approach : package { import mx.containers.TabNavigator; import mx.controls.TabBar; import mx.controls.TextInput; import mx.core.FlexVersion; import mx.styles.StyleProxy; public class ExtendedTabNavigator extends TabNavigator { public function ExtendedTabNavigator() { } //we don t realy need this, tabBarHeight could be tabBar.height but eh private function get tabBarHeight():Number { var tabHeight:Number = getStyle(tabHeight); if (isNaN(tabHeight)) tabHeight = tabBar.getExplicitOrMeasuredHeight(); return tabHeight - borderMetrics.top; } protected var textS:TextInput; override protected function createChildren():void { //doesn't matter when we call super, we are not messing with the actual tabbar super.createChildren() //creating out textInput if(!textS) { textS = new TextInput //you can make a style for this so that it's not hard.coaded, easiest way. no need for internals textS.width = 100; //adding our textInput rawChildren.addChild(textS); } } override protected function updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); //move the textInput so that it appears right of the tabbar var leftOffset:Number = getStyle(tabOffset); //watch out for borderThickness //in case your tabnav has a border soldi with a set borderthickness //we will also remove it from the move of tabbar and texti - coming next var borderThick:Number = getStyle(borderThickness); switch (getStyle(horizontalAlign)) { case left: //addede calcs for -borderthick tabBar.move(0 + borderThick + leftOffset, tabBar.y); textS.move(0 + borderThick + leftOffset + tabBar.width, tabBar.y) break; case right: //because txeti is right of tabbar we have to also move the tabbar , //we could move texti left of the tabbar //and leave the tabbar alone, your choice //also addede calculation for -borderthick tabBar.move(unscaledWidth - tabBar.width - textS.width -borderThick + leftOffset, tabBar.y); textS.move(unscaledWidth - textS.width -borderThick + leftOffset, tabBar.y) break; case center: //no need for borderthick tabBar.move((unscaledWidth - tabBar.width - textS.width) / 2 + leftOffset, tabBar.y); textS.move((unscaledWidth + tabBar.width - textS.width ) / 2 + leftOffset, tabBar.y) } //set textI height textS.height = tabBar.height//tabBarHeight; } } } Feel free to ask if there is something unclear
Re: [flexcoders] OS-dependent mxmlc behavior for fonts?
Did you move the fonts with you migration or are you relying on system fonts? Are you using TTF or OTF? Do you anticipate regular changes to your font(s)? As an alternative, you could compile your font .swf and then just include it as an asset in your app. Rick Winscot On 3/17/09 9:31 AM, pelducci pe...@peldi.com wrote: Hi there, I just recently moved my build machine from a windows box to a linux box, and now my app's fonts (both embedded and not embedded) look different (thicker and overall crappier). My build is done via mxmlc in an ANT script. What can I do about it, short of moving the build machine again? Any mxmlc option I could use? I don't really even know what to Google... TIA, Peldi
[flexcoders] Re: Possible to add a textinput to a TabNavigator (next to the tabs)
Thanks for the reply...I come from a Java background, so creating a custom component is not scary so to speak...I was just hoping there may be an easier way to do it directly to the TabNavigator instance. Also, out of curiosity, why do you not recommend the spacer?
[flexcoders] Ant and Air package?
I try to build a Ant auto package function but I do not know why it doesn't work. Any idea,atahnks Mark target name=package if=do.package depends=compile description=Packages AIR application. antcall target=create.certificate / java jar=${adt.jar} fork=true failonerror=true inputstring=${cert.pass} arg value=-package / arg value=-storetype / arg value=${store.type} / arg value=-keystore / arg value=${cert.name} / arg value=${app.name}.air / arg value=${desc.name}.xml / arg value=${deploy.dir}\${app.name}.swf / /java /target target name=create.certificate if=do.package description=Creates self signed certificate. java jar=${adt.jar} fork=true failonerror=true arg value=-certificate / arg value=-cn / arg value=${app.name} / arg value=${cert.type} / arg value=${cert.name} / arg value=${cert.pass} / /java /target
[flexcoders] Re: Error 'Send Failed' while loading swf file
Problem with Server Connectivity - was able to access the application and view the other information. Only its giving problem while rendering flex comp. Can you please give me more clue in finding the solution. --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: NetConnection is not used to load SWFs. Looks like a problem with your server connectivity 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 gnv_vishwanath Sent: Friday, March 13, 2009 7:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Error 'Send Failed' while loading swf file Facing the issue in loading the swf file, but the same is working fine in local machine. When trying to execute in other machine its not working, gives the message as below: faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://16.25.168.193/shubbuild/messagebroker/amf'' Please help me in resolving this issue...
[flexcoders] HTTPService never returning...
I have an AS3 HTTPService (that is, the HTTPService is all AS3 based, no MXML) which travels off and gets an XML feed, returns and displays the data. There are several (20+) instances where I can click on an item and this happens properly. However, I have 1 (just one) instance where this crashes my AIR app. I've verified the URL, it DOES render in an HTML page (as XML) so, there is no issue with the URL. I can click on ANY other item to load the XML and it loads - every time. My App works fine as long as I never select the one item in particular. I've profiled the app, memory usage actually drops off when I selecte that one item. I've got listeners for every possible event - none of which ever get sent after hitting HTTPService.send(). The app acts as though everything's fine, it's just loading data. I put a timeout of 5 seconds on the HTTPService. After about 2 minutes of still nothing, I manually shut down the app. Anyone have any ideas?
[flexcoders] Loading data with ProgressBar
I want to add a progress bar loader according to the the data being loaded. I am using the Cairngrom framework executing events. Right now I have a timer binded with the loader but i want the progressbar binded according to the data being loaded. Does anyone have an example of this? I tired something but doesn't work at all. Thanks
[flexcoders] Pb with accordion
Hello, Inside an accordion Panel, how to open the other panel of the accordion by a click on a button ? Thank you, Christophe,
RE: [flexcoders] mxmlc.exe and config file?
It's been a while since I set this up, but I have two things that I seem to remember I needed to add to my mxmlc compile task: !-- use AIR config file, not flex one -- load-config filename=${FLEX_HOME}/frameworks/air-config.xml/ and !-- AIR SWC path -- external-library-path dir=${FLEX_HOME}/frameworks/libs/air append=true include name=airglobal.swc / /external-library-path I can't say this is absolutely correct, but it worked for me. -Original Message- From: flexcoders@yahoogroups.com on behalf of markflex2007 Sent: Tue 17/03/2009 15:40 To: flexcoders@yahoogroups.com Subject: [flexcoders] mxmlc.exe and config file? I have a AIR application. I try to do this mxmlc.exe -output test.swf test.mxml I get the error: load configuration file c:\flex_sdk\frameworks\flex-config.xml and can not specified class 'mx.core.WindowApplication' for test.mxml. It seem I need change the configuration file to air-config.xml. Please help me to know how to do this change. Thanks Mark __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __winmail.dat
RE: [flexcoders] mxmlc.exe and config file?
It's been a while since I set this up, but I have two things that I seem to remember I needed to add to my mxmlc compile task for AIR: !-- use AIR config file, not flex one -- load-config filename=${FLEX_HOME}/frameworks/air-config.xml/ and !-- AIR SWC path -- external-library-path dir=${FLEX_HOME}/frameworks/libs/air append=true include name=airglobal.swc / /external-library-path I can't say this is absolutely correct, but it worked for me. -Original Message- From: flexcoders@yahoogroups.com on behalf of markflex2007 Sent: Tue 17/03/2009 15:40 To: flexcoders@yahoogroups.com Subject: [flexcoders] mxmlc.exe and config file? I have a AIR application. I try to do this mxmlc.exe -output test.swf test.mxml I get the error: load configuration file c:\flex_sdk\frameworks\flex-config.xml and can not specified class 'mx.core.WindowApplication' for test.mxml. It seem I need change the configuration file to air-config.xml. Please help me to know how to do this change. Thanks Mark __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __winmail.dat
RE: [flexcoders] Ant and Air package?
Any error messages? You don't seem to be including any icons, they're not required but if they're specified in the application descriptor you also need to specify them in the ant task or it will fail. I'm only guessing that you might have forgotten them, however - it's possible that you're not using them and the error lies elsewhere. -Original Message- From: flexcoders@yahoogroups.com on behalf of markflex2007 Sent: Tue 17/03/2009 16:25 To: flexcoders@yahoogroups.com Subject: [flexcoders] Ant and Air package? I try to build a Ant auto package function but I do not know why it doesn't work. Any idea,atahnks Mark target name=package if=do.package depends=compile description=Packages AIR application. antcall target=create.certificate / java jar=${adt.jar} fork=true failonerror=true inputstring=${cert.pass} arg value=-package / arg value=-storetype / arg value=${store.type} / arg value=-keystore / arg value=${cert.name} / arg value=${app.name}.air / arg value=${desc.name}.xml / arg value=${deploy.dir}\${app.name}.swf / /java /target target name=create.certificate if=do.package description=Creates self signed certificate. java jar=${adt.jar} fork=true failonerror=true arg value=-certificate / arg value=-cn / arg value=${app.name} / arg value=${cert.type} / arg value=${cert.name} / arg value=${cert.pass} / /java /target __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __winmail.dat
[flexcoders] Is there a better way to strikethrough an entire row in a grid?
I am looking for a way to strike through an entire row in a grid. Only some rows will have the strikethrough effect. I looked into using item renderers and such, but this seems like more work than it needs to be, since I already have several custom item renderers. Which means I need to add the strikethrough logic in those, as well as create a generic strikethrough item renderer for the other columns. Also, I couldn't 100% identify a strikethrough style. So I started thinking that maybe I should just subclass the DataGrid class and override the drawItem function to simply draw a red line over the middle of the item after it has been rendered by the super class. Is there an more obvious solution I am missing? Thanks
[flexcoders] Checkbox issue
Hi all, I have a checkbox (chkMyCheckbox) and added an eventlistener to it. chkMyCheckbox.addEventListener(Event.CHANGE, checkBoxChangeHandler); In the changeHandler I peform the necessary tasks : private funtion checkBoxChangeHandler (evt:Event):void { if (chkMyCheckbox.selected) { lblMyLabel.text = Checkbox marked; } else { lblMyLabel.text = Checkbox unmarked; } } Suppose I have a button btnMyButton which, when clicked, changes the state of my checkbox. In the mean time I also want the text of lblMyLabel to be changed. I supposed I could write private function btnMyButtonClicked() { if (chkMyCheckbox.selected) { chkMyCheckbox.selected = false; } else { chkMyCheckbox.selected = true; } } and by setting the state of the checkbox programmatically also the checkBoxChangeHandler would be executed. But this doesn't seem to work. How can i catch this event anyhow? Thanks
[flexcoders] Re: Possible to add a textinput to a TabNavigator (next to the tabs)
Another way: mx:Canvas mx:TabNavigator width=100% height=100%/ mx:TextInput right=0/ /mx:Canvas -TH --- In flexcoders@yahoogroups.com, gmoniey22 gmonie...@... wrote: Thanks for the reply...I come from a Java background, so creating a custom component is not scary so to speak...I was just hoping there may be an easier way to do it directly to the TabNavigator instance. Also, out of curiosity, why do you not recommend the spacer?
[flexcoders] Re: How to tell when background image is clicked?
Hi Ken, I'm pretty sure that the target will never be the background image itself; but rather the Canvas. One hack is to check the type: if (evt.target is Canvas) -TH --- In flexcoders@yahoogroups.com, Ken Dunnington ken.dunning...@... wrote: I've got a custom component based on Canvas, and I'm programmatically setting its background-image style to a loaded SWF. I need to be able to differentiate between a click on the background, and a click on any of the other children. WIth no background set, I was using this code: private function clickHandler (evt:MouseEvent):void { if (evt.target == this) { setFocus(); dispatchEvent(new CanvasEvent(CanvasEvent.CLEAR_FOCUS)); } } WIth a background-image, however, this no longer works. I've also tried listening for the target phase, but the event never actually reaches the canvas object. I do have a separate ICollectionView instance containing all the other children, but I'd like to avoid having to use that for this handler, if possible.
Re: [flexcoders] Re: How to tell when background image is clicked?
Hi Tim, unfortunately, that's exactly what happens :) If you apply a backgroundImage, the target of the click event will be the FlexLoader instance for that image, or in the case of a SWF, it'll be the actual SWF instance. To make matters worse, the background image is (as far as I've been able to tell) indistinguishable from a regular child, in that it counts towards numChildren's value, returns true on contains() and owns() etc. I'm looking through the SDK source to try to find exactly where it's added and how it manages to stay behind everything, but this is certainly puzzling. - Ken On Tue, Mar 17, 2009 at 2:36 PM, Tim Hoff timh...@aol.com wrote: Hi Ken, I'm pretty sure that the target will never be the background image itself; but rather the Canvas. One hack is to check the type: if (evt.target is Canvas) -TH --- In flexcoders@yahoogroups.com, Ken Dunnington ken.dunning...@... wrote: I've got a custom component based on Canvas, and I'm programmatically setting its background-image style to a loaded SWF. I need to be able to differentiate between a click on the background, and a click on any of the other children. WIth no background set, I was using this code: private function clickHandler (evt:MouseEvent):void { if (evt.target == this) { setFocus(); dispatchEvent(new CanvasEvent(CanvasEvent.CLEAR_FOCUS)); } } WIth a background-image, however, this no longer works. I've also tried listening for the target phase, but the event never actually reaches the canvas object. I do have a separate ICollectionView instance containing all the other children, but I'd like to avoid having to use that for this handler, if possible.
[flexcoders] Re: Possible to add a textinput to a TabNavigator (next to the tabs)
--- In flexcoders@yahoogroups.com, gmoniey22 gmonie...@... wrote: Thanks for the reply...I come from a Java background, so creating a custom component is not scary so to speak...I was just hoping there may be an easier way to do it directly to the TabNavigator instance. Also, out of curiosity, why do you not recommend the spacer? When I said it would be scary all I was saying was that sometimes it can take a long time to set up exactly as needed. I did not mean to offend you in any way. I don't like the spacer idea mainly because it's a 3'rd party, with it's own width or height, I don't see the need for it, not here anyway. If that (extending component) is not the wanted approach you can always try the absolute positioning. I would recommend something like this ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Canvas width=100% height=100% mx:TabNavigator id=tabN width=100% height=100% updateComplete=textI.setStyle('left',tabN.getTabAt(tabN.numChildren-1).x+tabN.getTabAt(tabN.numChildren-1).width) mx:VBox /mx:VBox mx:VBox /mx:VBox mx:VBox /mx:VBox /mx:TabNavigator mx:TextInput id=textI / /mx:Canvas /mx:Application So that is textI.setStyle('left',tabN.getTabAt(tabN.numChildren-1).x+tabN.getTabAt(tabN.numChildren-1).width) Setting it on the update complete of the tabnavigator and not on the creationcomplete of the textinput. This way you take into account any resize that might happen the id on the tabNavigator can be removed and tabN inside the setStyle() can be substituted with event.target or event.currentTarget
[flexcoders] Adding and removing values from a VAR
I am new to Flex and I am having a problem with maintaining a VAR. Can someone point me to a code sample for a handler that maintains a VAR based on the on change of a checkbox? I think I understand how to add to a VAR but I can't find an example of removing from a VAR. Use Case: I have a datagrid with three columns where the first column is a checkbox named Selected, the second column named Display Value and the last named Data Value. When a user checks the checkbox I need to add the value of the other two row cells to their respective VARS (var dsplValue for Display Value and var dataValue for Data Value). Conversely, when a user unselects a checkbox I need to remove the respective values in the two VARs. Data Examples: Display Value = Orlando dispValue = Atlanta, New York Data Value = 004 dataValue = '001', '002', '003' Best regards, Frank G.
[flexcoders] Re: IE6 RemoteObject calls fail under HTTPS
Can you post a small example? I don't see this and most (95%+) of our users are on IE6 (This is the current enterprise standard set by our IT department). --- In flexcoders@yahoogroups.com, Rafael Faria rafaelfaria.gru...@... wrote: We have tried many many things, and seem to have narrowed it down to the session headers and the cache control. However all most all of the posts and notes around the web seem to get this issue arising with HTTPService calls that spawn a #2032 streaming error and not what we are seeing. Tracking the calls with Charles for instance seems to indicate that the call to the gateway is never actually being made. We discounted any crossdomain issues (the webroot and the gateway are on different servers) as the sandbox violation errors did not appear at all. So if anyone out there can shed some light on this we would be most appreciative. Or conversely if you can get every person in the world to upgrade their browsers beyond IE6 that would be awesome too. mx.rpc.events::FaultEvent)#0 bubbles = false cancelable = true currentTarget = (null) eventPhase = 2 fault = (mx.rpc::Fault)#1 content = (Object)#2 errorID = 0 faultCode = Client.Error.MessageSend faultDetail = Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'https://mydomain.com/amfphp/gateway.php' faultString = Send failed message = faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'https://mydomain.com/amfphp/gateway.php'' name = Error rootCause = (mx.messaging.events::ChannelFaultEvent)#3 bubbles = false cancelable = false channel = (mx.messaging.channels::SecureAMFChannel)#4 PLEASE, help me... the whole application i'm working on depend on that. Thanks Rafael
Re: [flexcoders] Re: flex 3 issue loading fp10
Thanks Darrel that is what I mean, I've been trying to compile with the fp10 global swc. could you help me out step by step. Regards, gustavo On Mar 17, 2009, at 9:42 AM, Darrell Loverin wrote: By load it inside flex 3 do you mean compile with fp10 global swc? To use the fp10 global swc in Flex 3 you should compile with - target-player=10. Also verify you are running the fp10 player, fp9 can't run a swf compiled for fp10. -Darrell --- In flexcoders@yahoogroups.com, Gustavo Duenas gdue...@... wrote: I have the fp10 global swc, and when I try to load it inside flex 3, it has a problem, and say that it has a bitcode error, any ideas why? Gustavo Gustavo A. Duenas Creative Director LEFT AND RIGHT SOLUTIONS 904. 265 0330 - 904. 386 7958 www.leftandrightsolutions.com Jacksonville - Florida
[flexcoders] Re: How to tell when background image is clicked?
Ok, maybe just check it's type: if (evt.target is FlexLoader) -TH --- In flexcoders@yahoogroups.com, Ken Dunnington ken.dunning...@... wrote: Hi Tim, unfortunately, that's exactly what happens :) If you apply a backgroundImage, the target of the click event will be the FlexLoader instance for that image, or in the case of a SWF, it'll be the actual SWF instance. To make matters worse, the background image is (as far as I've been able to tell) indistinguishable from a regular child, in that it counts towards numChildren's value, returns true on contains() and owns() etc. I'm looking through the SDK source to try to find exactly where it's added and how it manages to stay behind everything, but this is certainly puzzling. - Ken On Tue, Mar 17, 2009 at 2:36 PM, Tim Hoff timh...@... wrote: Hi Ken, I'm pretty sure that the target will never be the background image itself; but rather the Canvas. One hack is to check the type: if (evt.target is Canvas) -TH --- In flexcoders@yahoogroups.com, Ken Dunnington ken.dunnington@ wrote: I've got a custom component based on Canvas, and I'm programmatically setting its background-image style to a loaded SWF. I need to be able to differentiate between a click on the background, and a click on any of the other children. WIth no background set, I was using this code: private function clickHandler (evt:MouseEvent):void { if (evt.target == this) { setFocus(); dispatchEvent(new CanvasEvent(CanvasEvent.CLEAR_FOCUS)); } } WIth a background-image, however, this no longer works. I've also tried listening for the target phase, but the event never actually reaches the canvas object. I do have a separate ICollectionView instance containing all the other children, but I'd like to avoid having to use that for this handler, if possible.
[flexcoders] Re: Possible to add a textinput to a TabNavigator (next to the tabs)
In case anyone needs a more detailed explanation the need for getTabAt(tabN.numChildren-1). We cannot access tabN.tabBar because of it's protected attribute so we cannot directly get the tabBar's width. That is why we are getting the last-tab's button instance x + witdh , It's the exact width of the tabBar. The x of the (last-tab's button instance) is the sum of all preceding tab button instances + any style the tabnavigator might set. Again, :) not trying to offend anyone, just that not everyone will understand exactly what getTabAt(tabN.numChildren-1) means.
[flexcoders] Re: Possible to add a textinput to a TabNavigator (next to the tabs)
Thanks for your reply...I tried do something similar. As a test case, I just tried to add a label after the tabs have been created. I tried the following: var l:Label = new Label(); l.text = TEST; myTabs.addChild(l); This compiled fine...but when I ran it, nothing showed up. Where would I add the spacer? Thanks. --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: http://livedocs.adobe.com/flex/3/langref/mx/controls/Spacer.html --- In flexcoders@yahoogroups.com, gmoniey22 gmoniey22@ wrote: Hi, I am rather new to flex, so I apologize in advance if the answer is obvious. I have a TabNavigator and I want to place a textinput box all the way to the right. This will be a small search box that will help filter the contents of the currently selected tab. Is this possible? Thanks.
RE: [flexcoders] Checkbox issue
Look to see if CheckBox supports the valueCommitted event. That fires when the selection is changed programmatically, but click and change only fire on user interaction. Be careful to check for nulls when using this event though. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of secrit.service Sent: Tuesday, March 17, 2009 2:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Checkbox issue Hi all, I have a checkbox (chkMyCheckbox) and added an eventlistener to it. chkMyCheckbox.addEventListener(Event.CHANGE, checkBoxChangeHandler); In the changeHandler I peform the necessary tasks : private funtion checkBoxChangeHandler (evt:Event):void { if (chkMyCheckbox.selected) { lblMyLabel.text = Checkbox marked; } else { lblMyLabel.text = Checkbox unmarked; } } Suppose I have a button btnMyButton which, when clicked, changes the state of my checkbox. In the mean time I also want the text of lblMyLabel to be changed. I supposed I could write private function btnMyButtonClicked() { if (chkMyCheckbox.selected) { chkMyCheckbox.selected = false; } else { chkMyCheckbox.selected = true; } } and by setting the state of the checkbox programmatically also the checkBoxChangeHandler would be executed. But this doesn't seem to work. How can i catch this event anyhow? Thanks
[flexcoders] Re: Possible to add a textinput to a TabNavigator (next to the tabs)
No offense taken...in fact, I appreciate your help. I will start playing around with it. Thanks again. --- In flexcoders@yahoogroups.com, alinmircea_s alinmirce...@... wrote: --- In flexcoders@yahoogroups.com, gmoniey22 gmoniey22@ wrote: Thanks for the reply...I come from a Java background, so creating a custom component is not scary so to speak...I was just hoping there may be an easier way to do it directly to the TabNavigator instance. Also, out of curiosity, why do you not recommend the spacer? When I said it would be scary all I was saying was that sometimes it can take a long time to set up exactly as needed. I did not mean to offend you in any way. I don't like the spacer idea mainly because it's a 3'rd party, with it's own width or height, I don't see the need for it, not here anyway. If that (extending component) is not the wanted approach you can always try the absolute positioning. I would recommend something like this ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Canvas width=100% height=100% mx:TabNavigator id=tabN width=100% height=100% updateComplete=textI.setStyle('left',tabN.getTabAt(tabN.numChildren-1).x+tabN.getTabAt(tabN.numChildren-1).width) mx:VBox /mx:VBox mx:VBox /mx:VBox mx:VBox /mx:VBox /mx:TabNavigator mx:TextInput id=textI / /mx:Canvas /mx:Application So that is textI.setStyle('left',tabN.getTabAt(tabN.numChildren-1).x+tabN.getTabAt(tabN.numChildren-1).width) Setting it on the update complete of the tabnavigator and not on the creationcomplete of the textinput. This way you take into account any resize that might happen the id on the tabNavigator can be removed and tabN inside the setStyle() can be substituted with event.target or event.currentTarget
[flexcoders] Re: flex 3 issue loading fp10
There are just two steps. 1. Update your command line (see below). 2. Install FP10 if you haven't already. If you are compiling from the command line add -target-player=10 to compile with the FP10 API. An FP10 swf will be produced. If you are compiling with Flex Builder add -target-player=10 to the Additional compiler arguments edit control. The control is found in the Flex Compiler properties of your Flex project. -Darrell --- In flexcoders@yahoogroups.com, Gustavo Duenas gdue...@... wrote: Thanks Darrel that is what I mean, I've been trying to compile with the fp10 global swc. could you help me out step by step. Regards, gustavo On Mar 17, 2009, at 9:42 AM, Darrell Loverin wrote: By load it inside flex 3 do you mean compile with fp10 global swc? To use the fp10 global swc in Flex 3 you should compile with - target-player=10. Also verify you are running the fp10 player, fp9 can't run a swf compiled for fp10. -Darrell --- In flexcoders@yahoogroups.com, Gustavo Duenas gduenas@ wrote: I have the fp10 global swc, and when I try to load it inside flex 3, it has a problem, and say that it has a bitcode error, any ideas why? Gustavo Gustavo A. Duenas Creative Director LEFT AND RIGHT SOLUTIONS 904. 265 0330 - 904. 386 7958 www.leftandrightsolutions.com Jacksonville - Florida
[flexcoders] Flex error (URLRequest) using Ruby on Rails
Basically, I have an action upload_attachment in a controller handle_data In flex I call navigateToURL( new URLRequest( serverURL+'handle_data/upload_attachment/?profile_id=46' ) ); This seems to work fine in the following browsers: IE, safari It does not work in: Firefox( mac and pc), google chrome I am not sure why, but if I watch the production.log files from rails, firefox/chrome are never actually requesting this action, and giving me a 2038 Error, but IE/safari do request the action, and work fine. Why I think it might be a rails problem: This error does not occur if I boot the server up via localhost, but when I move the app to a different server with SSL installed, it does not work. Any help would be greatly appreciated!
Re: [flexcoders] OS-dependent mxmlc behavior for fonts?
Thanks for the reply Rick. I am using 2 TTF files for the embedded fonts, and a system font (Arial) as well. I do not anticipate any change to my fonts, no. Why? I don't really like the SWF option...do you or anyone else know why I'm getting these differences? What part of mxmlc is platform-dependent? Can it be tweaked/fixed? Peldi --- Giacomo 'Peldi' Guilizzoni Founder, Balsamiq Studios, LLC http://www.balsamiq.com ph: +1 (415) 367-3531, Skype, GTalk, Facebook, Twitter, FriendFeed: balsamiq On Tue, Mar 17, 2009 at 5:14 PM, Rick Winscot rick.wins...@zyche.com wrote: Did you move the fonts with you migration or are you relying on system fonts? Are you using TTF or OTF? Do you anticipate regular changes to your font(s)? As an alternative, you could compile your font .swf and then just include it as an asset in your app. Rick Winscot On 3/17/09 9:31 AM, pelducci pe...@peldi.com wrote: Hi there, I just recently moved my build machine from a windows box to a linux box, and now my app's fonts (both embedded and not embedded) look different (thicker and overall crappier). My build is done via mxmlc in an ANT script. What can I do about it, short of moving the build machine again? Any mxmlc option I could use? I don't really even know what to Google... TIA, Peldi
[flexcoders] Re: Possible to add a textinput to a TabNavigator (next to the tabs)
After reading your second post with the .addChild I guess this would be helpful. Here it is ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=addTI() mx:Script ![CDATA[ import mx.controls.TabBar; import mx.containers.VBox; import mx.controls.TextInput; private var ti:TextInput = new TextInput private function addTI():void { tabN.rawChildren.addChild(ti); } private function Upda():void { var tabBar:TabBar = tabN.getTabAt(0).parent as TabBar; var leftOffset:Number = tabN.getStyle(tabOffset); var borderThick:Number = tabN.getStyle(borderThickness); ti.width = 100 ti.height = tabN.getTabAt(0).height switch (tabN.getStyle(horizontalAlign)) { case left: tabBar.move(0 + borderThick + leftOffset, tabBar.y); ti.move(0 + borderThick + leftOffset + tabBar.width, tabBar.y) break; case right: tabBar.move(tabN.width - tabBar.width - ti.width -borderThick + leftOffset, tabBar.y); ti.move(tabN.width - ti.width -borderThick + leftOffset, tabBar.y) break; case center: tabBar.move((tabN.width - tabBar.width - ti.width) / 2 + leftOffset, tabBar.y); ti.move((tabN.width+ tabBar.width - ti.width ) / 2 + leftOffset, tabBar.y) } } ]] /mx:Script mx:TabNavigator id=tabN width=100% height=100% updateComplete=Upda() mx:VBox /mx:VBox mx:VBox /mx:VBox mx:VBox /mx:VBox /mx:TabNavigator mx:HBox mx:Button click=tabN.addChild(new VBox) label=add child/ mx:Button click=tabN.removeChildAt(0) label=remove child/ mx:Button click=tabN.setStyle('horizontalAlign','left') label=left align/ mx:Button click=tabN.setStyle('horizontalAlign','center') label=center align/ mx:Button click=tabN.setStyle('horizontalAlign','right') label=right align/ /mx:HBox /mx:Application quote: Although at the level of a Flash DisplayObjectContainer, all children are equal, in a Flex Container some children are more equal than others. (George Orwell, Animal Farm) In particular, Flex distinguishes between content children and non-content (or chrome) children. Content children are the kind that can be specified in MXML. If you put several controls into a VBox, those are its content children. Non-content children are the other ones that you get automatically, such as a background/border, scrollbars, the titlebar of a Panel, AccordionHeaders, etc. Most application developers are uninterested in non-content children, so Container overrides APIs such as numChildren and getChildAt() to deal only with content children. For example, Container, keeps its own _numChildren counter. Container assumes that content children are contiguous, and that non-content children come before or after the content children. In order words, Container partitions DisplayObjectContainer's index range into three parts: A B C D E F G H I 0 1 2 3 4 5 6 7 8- index for all children 0 1 2 3- index for content children The content partition contains the content children D E F G. The pre-content partition contains the non-content children A B C that always stay before the content children. The post-content partition contains the non-content children H I that always stay after the content children. Container maintains two state variables, _firstChildIndex and _numChildren, which keep track of the partitioning. In this example, _firstChildIndex would be 3 and _numChildren would be 4. quote: A container typically contains child components, which can be enumerated using the
Re: [flexcoders] OS-dependent mxmlc behavior for fonts?
Do all of your fonts exhibit the same behavior? Trying to isolate an potential rogue elements... You might have figured this one out but Arial on Windows is probably not Arial on Linux. So, no matter what you do use... You need to make sure you are using the exact same .ttf font packages to generate your embedded fonts no matter what system/OS you are building on. If you don¹t anticipate changing your fonts... Then the recommendation about compiling once and including as a static asset in your project is a quick resolution to the problem. I can understand your hesitation though. R On 3/17/09 5:34 PM, Peldi Guilizzoni, Balsamiq Studios pe...@balsamiq.com wrote: Thanks for the reply Rick. I am using 2 TTF files for the embedded fonts, and a system font (Arial) as well. I do not anticipate any change to my fonts, no. Why? I don't really like the SWF option...do you or anyone else know why I'm getting these differences? What part of mxmlc is platform-dependent? Can it be tweaked/fixed? Peldi --- Giacomo 'Peldi' Guilizzoni Founder, Balsamiq Studios, LLC http://www.balsamiq.com ph: +1 (415) 367-3531, Skype, GTalk, Facebook, Twitter, FriendFeed: balsamiq On Tue, Mar 17, 2009 at 5:14 PM, Rick Winscot rick.wins...@zyche.com mailto:rick.winscot%40zyche.com wrote: Did you move the fonts with you migration or are you relying on system fonts? Are you using TTF or OTF? Do you anticipate regular changes to your font(s)? As an alternative, you could compile your font .swf and then just include it as an asset in your app. Rick Winscot On 3/17/09 9:31 AM, pelducci pe...@peldi.com mailto:peldi%40peldi.com wrote: Hi there, I just recently moved my build machine from a windows box to a linux box, and now my app's fonts (both embedded and not embedded) look different (thicker and overall crappier). My build is done via mxmlc in an ANT script. What can I do about it, short of moving the build machine again? Any mxmlc option I could use? I don't really even know what to Google... TIA, Peldi
Re: [flexcoders] Re: converting a Java object into a chart dataprovider
But what will the objects be that you're sending back? You can't make a chart out of a list of numbers, it'd be one-dimensional, not to mention not very useful :) -Josh 2009/3/18 netdeep deep...@chartertn.net I'll be sending Dates, Strings, and floats. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh McDonald j...@... wrote: What kind of objects are in your array? -Josh 2009/3/17 netdeep deep...@... In the flex documentation, it shows how to easily create a chart with mxml and a static Array: private var expenses:Array = [ {Month:January,Profit:2000,Expenses:1500,Amount:450}, {Month:February,Profit:1000,Expenses:200,Amount:600}, {Month:March,Profit:1500,Expenses:500,Amount:300}, ]; mx:ColumnSeries xField=Month yField=Profit displayName=Profit / mx:ColumnSeries xField=Month yField=Expenses displayName=Expenses / But I am reading my data from the database and want to pass the data via a java object. But I don't know the number of fields at runtime. So how do I assign the xFields and yFields since I won't be able to create a variable named Month or Profit? I'll just have an array of floats or dates or whatever. Here's a start put I have no idea how to plug in the missing pieces or if another route would be preferable. var lineSeries:LineSeries = new LineSeries(); BindingUtils.bindProperty(lineSeries, dataProvider, ser, javaArray); // lineSeries.xField= ??? // lineSeries.yField= ??? The data set is often quite large by the way. -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@... - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/ -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@joshmcdonald.info - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/
[flexcoders] Re: How to combine various FLV files into one using Flex?
Any one? I hope at least someone can point me to documentation of how to use the ByteArray class with some examples, specifically on how to read a flv with ByteArray. I have search on the forums and googled this, but with no aval. The Flex 3 doc. has only one example which is not useful for what I want to do. Thanks. --- In flexcoders@yahoogroups.com, gilbert_mizrahi mizr...@... wrote: I would like to combine FLV files using Flex 3 (to be deployed as an AIR app.) I now it is possible because there are projects like RichFLV (http://www.richapps.de/?p=168) that do that and more. Benjamin from RicFLV told me that I needed to use the ByteArray class and implement the specs of the FLV (http://www.adobe.com/devnet/flv/pdf/video_file_format_spec_v10.pdf). However, I have not worked with the ByteArray class before and I don't really know what to do with the specs at this point. I would appreciate some guidance and some examples if possible to get me started.
[flexcoders] How to clear cache for all major browsers (IE, Mozilla, Safari and Chrome)
Hi Guys Anyone has any idea which is the best way to clear the cache for my web application (which is made in Flex and PHP), For some reason it keeps on pulling old entries from cache and is confusing user and me with the inconsistent results, I guess that it is pulling values from the cache as everything works fine when I manually clear the cache.I did little research and tried following tags in the index.template.html but somehow it is not working efficiently , Whats the best way to clear the cache for all the major browsers (IE, Mozilla, Safari and Chrome) for my web application? Anyone has any idea? Thanks in advance for your help, head meta http-equiv=Content-Type content=text/html; charset=utf-8 / meta http-equiv=Pragma content=no-cache / meta http-equiv=Expires content=-1 / /head
Re: [flexcoders] Setting Focus on loading application
Actually I'm using it in firefox :) On 18/03/2009, at 12:15 AM, Tracy Spratt wrote: Be aware that this is reliable in IE, but may not work in FireFox. I do not know about the other browsers. Tracy Spratt, Lariat Services, development services available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of sony antony Sent: Tuesday, March 17, 2009 8:00 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Setting Focus on loading application Hey.. Thanks Toby... That worked.. It was really troubling stuff for me.. Now am almost relaxed.. --- On Tue, 17/3/09, Toby Tremayne t...@lyricist.com.au wrote: From: Toby Tremayne t...@lyricist.com.au Subject: Re: [flexcoders] Setting Focus on loading application To: flexcoders@yahoogroups.com Date: Tuesday, 17 March, 2009, 12:34 PM The issue is that the flash movie itself needs to receive focus before it can put the cursor in your username field. You can achieve this by adding this to your html wrapper (yourproject/ html- template/ index.template. html): script language=JavaScript type=text/javascript function focusFlash() { ${application}.focus(); } /script and modify the body tag like so: body onload=focusFlash Once that's in there, the usual FocusManager code in your flex will work: focusManager. setFocus( username) ; Toby On 17/03/2009, at 5:54 PM, sony antony wrote: Hi, Can anyone help me out with this craziness of flex.. I need to set focus to my username field when my application gets loaded. While i was tracking this issue, I was caught up in http://bugs . adobe.com/ jira/browse/ FP-879 . There they specified about some kind of html wrapper code. I dint get any idea about it. Please somebody help me to fix this. Thanks Regards, Sony Check out the all-new face of Yahoo! India. Click here. Toby Tremayne CEO Magic Industries http://www.magicind ustries.net mob: 0416 048 090 icq: 13107913 skype: lyricist1 Add more friends to your messenger and enjoy! Invite them now. Toby Tremayne CEO Magic Industries http://www.magicindustries.net mob: 0416 048 090 icq: 13107913 skype: lyricist1
[flexcoders] Security sandbox violation error after upgrade to SDK 3.2
Hi all, I just updated the Flex SDK to version 3.2, and am now getting a Security sandbox violation error everytime that I launch an AIR application from Eclipse. I was wondering if anyone else has run into this and might know of a fix. The stack trace is listed below. Thanks, -TH Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///C|%2Fdev%2Fworkspace%2F.metadata%2F.plugins%2Fcom.adobe.flash.pr\ ofiler%2FProfilerAgent.swf?host=localhostport= file:///C|%2Fdev%2Fworkspace%2F.metadata%2F.plugins%2Fcom.adobe.flash.p\ rofiler%2FProfilerAgent.swf?host=localhostport= cannot load data from localhost:. at ProfilerAgent()[C:\faramir\flex\sdk\modules\profiler3\as\ProfilerAgent.a\ s:127] at runtime::ContentPlayer/loadInitialContent() at runtime::ContentPlayer/playRawContent() at runtime::ContentPlayer/playContent() at runtime::AppRunner/run() at global/runtime::ADLEntry()
Re: [flexcoders] JVM segfault (!) running mxmlc on OS X
Anyone? -Original Message- From: Maciek Sakrejda msakre...@truviso.com Reply-to: flexcoders@yahoogroups.com To: flexcoders flexcoders@yahoogroups.com Subject: [flexcoders] JVM segfault (!) running mxmlc on OS X Date: Mon, 16 Mar 2009 17:47:26 -0700 A co-worker of mine recently ran into a JVM segmentation fault (!) when running mxmlc on our project. This happens for both Java 1.5 and 1.6. I have not seen anything relevant in JIRA about OS X segfaults. Any ideas? His segfault information follows. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com Model: MacBook4,1, BootROM MB41.00C1.B00, 2 processors, Intel Core 2 Duo, 2.4 GHz, 4 GB Graphics: kHW_IntelGMA965Item, GMA X3100, spdisplays_builtin, 144 MB java... $ java -version java version 1.5.0_16 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284) Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing) the diagnostic message... Process: java [55236] Path: /usr/bin/java Identifier: java Version: ??? (???) Code Type: X86-64 (Native) Parent Process: bash [51581] Date/Time: 2009-03-16 16:53:18.806 -0700 OS Version: Mac OS X 10.5.6 (9G55) Report Version: 6 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: 0x000d, 0x Crashed Thread: 0 Thread 0 Crashed: 0 ??? 0x000151c1 0 + 4294988225 1 ??? 0x0001676f 0 + 4294993775 2 ??? 0x00016a1c 0 + 4294994460 3 ??? 0x0001504d 0 + 4294987853 Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0041 rbx: 0x7fff5fbfedd0 rcx: 0x rdx: 0x0014 rdi: 0x00018708 rsi: 0x552f3d726964706d rbp: 0x7fff5fbfeb10 rsp: 0x7fff5fbfeb10 r8: 0x901c45f2 r9: 0x r10: 0x r11: 0x r12: 0x0014 r13: 0x00018708 r14: 0x0015 r15: 0x rip: 0x000151c1 rfl: 0x00010293 cr2: 0x00018708 Binary Images: 0x7fff5fc0 - 0x7fff5fc2e643 dyld 97.1 (???) b40847f1ce1ba2ed13837aeccbf19284 /usr/lib/dyld
RE: [flexcoders] How to clear cache for all major browsers (IE, Mozilla, Safari and Chrome)
The only reliable, cross platform/browser solution I have seen is to append a unique string to the swf url. Modify the index.template like this: AC_FL_RunContent( src, ${swf}?nocache=+(new Date()).getTime(), It does make that app slow to load every time. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of anuj181 Sent: Tuesday, March 17, 2009 7:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to clear cache for all major browsers (IE, Mozilla, Safari and Chrome) Hi Guys Anyone has any idea which is the best way to clear the cache for my web application (which is made in Flex and PHP), For some reason it keeps on pulling old entries from cache and is confusing user and me with the inconsistent results, I guess that it is pulling values from the cache as everything works fine when I manually clear the cache.I did little research and tried following tags in the index.template.html but somehow it is not working efficiently , Whats the best way to clear the cache for all the major browsers (IE, Mozilla, Safari and Chrome) for my web application? Anyone has any idea? Thanks in advance for your help, head meta http-equiv=Content-Type content=text/html; charset=utf-8 / meta http-equiv=Pragma content=no-cache / meta http-equiv=Expires content=-1 / /head
RE: Re: [flexcoders] Issue with Tree in Flex
Hi Tracy, yes, you are right, I 've removed it and calling the expandTree from a changewatcher, the function is fine and working as per requirement. i don't see any issues in tree now. Thanks for all giving excellent advices regards DB Tracy Spratt wrote: Yes, a label function should only build the label string, not do anything else, especially manipulate the visual elements of the control it is being used to render. A label function gets called for every visible node in the tree, which changes when you scroll, open a node, etc. No wonder you confused the poor tree! What is the goal of that line? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Monday, March 16, 2009 12:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Issue with Tree in Flex DB I tried your code and saw the exact issue you describe. Commenting the line: //expandTree(); fixes it. I don't use Tree but I would surmise you are double handling the expand functionality. From what I can see the tree component already implements expand and by adding your own you are causing the problem. Someone else who uses tree more extensively may have a better explanation. HTH. Steve --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, duraibalaji duraibal...@... wrote: Hi flex experts, I'm using tree for a requirement, when we try to open more number of nodes and browse thru the the tree, these are the issues that occur. 1) Tree View goes either Blank or filled with one node name. 2) It hides few nodes. In other words, On expanding more nodes the tree view goes either blank or hides few nodes (sometimes the single node name appears through out the tree view). The following is a sample tree code that i'm trying to use. You can copy paste and try executing this. Thanks in Advance. Regards DB -- View this message in context: http://www.nabble.com/Issue-with-Tree-in-Flex-tp22538899p22571253.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Hi! And a question about installing an AIR app
First of all, I'd like to say hi to everyone. I'm new to Flex and happy to find such an active group. I'm developing an AIR application at work and need to deploy it on a few desktops in one of our offices. The users do not have admin rights and the desktop is pretty well locked down. Does anyone know if they need admin rights to install an AIR app or do they just need it to install the AIR Runtime? My other alternative is to use SMS to push out the install. I'd appreciate hearing from anyone with experience with AIR in an enterprise environment. Thanks. -Stu Greenberg GUI Gumdrops http://www.guigumdrops.com
[flexcoders] Re: Checkbox issue
The CheckBox does indeed have the valueCommit event and secrit.service will be happy to hear that I verified that it worked. Thanks, Tracy. I'll have to remember that one. -Stu Greenberg GUI Gumdrops http://www.guigumdrops.com --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: Look to see if CheckBox supports the valueCommitted event. That fires when the selection is changed programmatically, but click and change only fire on user interaction. Be careful to check for nulls when using this event though. Tracy Spratt, Lariat Services, development services available
RE: [flexcoders] OS-dependent mxmlc behavior for fonts?
Peldi, by system font, do you mean device fonts (i.e. not embedded)? What version of Flex? Are you pointing to a .ttf file using an @font-face CSS rule with a url? If so, and if you're using Flex SDK 3, go into your /frameworks/flex-config.xml and comment out the BatikFontManager from the list of font managers, and try just leaving the AFEFontManager. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Peldi Guilizzoni, Balsamiq Studios Sent: Tuesday, March 17, 2009 5:34 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] OS-dependent mxmlc behavior for fonts? Thanks for the reply Rick. I am using 2 TTF files for the embedded fonts, and a system font (Arial) as well. I do not anticipate any change to my fonts, no. Why? I don't really like the SWF option...do you or anyone else know why I'm getting these differences? What part of mxmlc is platform-dependent? Can it be tweaked/fixed? Peldi --- Giacomo 'Peldi' Guilizzoni Founder, Balsamiq Studios, LLC http://www.balsamiq.com ph: +1 (415) 367-3531, Skype, GTalk, Facebook, Twitter, FriendFeed: balsamiq
[flexcoders] Re: Smallest filesize of a swf in Flex 3 is larger then Flex 2?
I don't think RSLs are a bad idea for a single application if you are using signed RSLs (swz files) because they may already be in the Flash Player Cache and therefore not need to be downloaded. But to guarantee your Flash Player can load a signed RSL you will need to require Flash Player 9,0,124 or higher. -Darrell --- In flexcoders@yahoogroups.com, Nick Collins ndcoll...@... wrote: A big part of that reason is that when you attach any library, be it the SDK or an external SWC, as a RSL, it is going to increase the size of a singular app. The reason is that when a library is specified as an RSL, the ENTIRE library gets loaded, not just the parts that are needed, since it doesn't know what classes will be needed. Additionally, RSLs are all loaded at Frame 1, and are mandatory (meaning all RSLs are required to be loaded), increasing the load time if they haven't been downloaded previously. Where you see the major gains with RSLs is when you are using them across multiple applications, because rather than re-download the RSL, it will pull the RSL from the browser cache, speeding the load time, although it is still loading more classes than otherwise. For this reason RSLs are usually a bad idea for a single application, because it will actually have a smaller size all compiled into a single SWF, and loading bits of the application via modules, which are only loaded as needed. Nick On Mon, Mar 16, 2009 at 8:55 PM, Dan yldle...@... wrote: Hi Flexcoders, It is always claimed that by caching framework.swz of Flex 3, the swf size is always the smaller. However. from the generated linked-report. in Flex 3, some classes like RSLloader and some ResourceBundle classes are being added, which actually increase the swf size. Since my application is making up of first loading a shared library, and then upon runtime, it loaded other very small modules. These modules are making up of very small file size (a few k byte), the overhead added by these Flex3 loaders and bundles has largly increase the TOTAL application size by a huge amount (cause there are hundreds of this kind of small modules when summing up the little increase of this overhead, it becomes M byte). The start up time is down a bit (loading the smaller library and smaller init app), but the overall brandwidth consumpt much more now. So is there any way to trim off those overhead? Or I need to compile those smaller modules by a Flex 2 compiler? Anyone have any idea? Dan
[flexcoders] Re: Smallest filesize of a swf in Flex 3 is larger then Flex 2?
I don't think RSLs are a bad idea for a single application if you are using signed RSLs (swz files) because they may already be in the Flash Player Cache and therefore not need to be downloaded. But to guarantee your Flash Player can load a signed RSL you will need to require Flash Player 9,0,124 or higher. -Darrell --- In flexcoders@yahoogroups.com, Nick Collins ndcoll...@... wrote: A big part of that reason is that when you attach any library, be it the SDK or an external SWC, as a RSL, it is going to increase the size of a singular app. The reason is that when a library is specified as an RSL, the ENTIRE library gets loaded, not just the parts that are needed, since it doesn't know what classes will be needed. Additionally, RSLs are all loaded at Frame 1, and are mandatory (meaning all RSLs are required to be loaded), increasing the load time if they haven't been downloaded previously. Where you see the major gains with RSLs is when you are using them across multiple applications, because rather than re-download the RSL, it will pull the RSL from the browser cache, speeding the load time, although it is still loading more classes than otherwise. For this reason RSLs are usually a bad idea for a single application, because it will actually have a smaller size all compiled into a single SWF, and loading bits of the application via modules, which are only loaded as needed. Nick On Mon, Mar 16, 2009 at 8:55 PM, Dan yldle...@... wrote: Hi Flexcoders, It is always claimed that by caching framework.swz of Flex 3, the swf size is always the smaller. However. from the generated linked-report. in Flex 3, some classes like RSLloader and some ResourceBundle classes are being added, which actually increase the swf size. Since my application is making up of first loading a shared library, and then upon runtime, it loaded other very small modules. These modules are making up of very small file size (a few k byte), the overhead added by these Flex3 loaders and bundles has largly increase the TOTAL application size by a huge amount (cause there are hundreds of this kind of small modules when summing up the little increase of this overhead, it becomes M byte). The start up time is down a bit (loading the smaller library and smaller init app), but the overall brandwidth consumpt much more now. So is there any way to trim off those overhead? Or I need to compile those smaller modules by a Flex 2 compiler? Anyone have any idea? Dan
[flexcoders] flex builder 3 update link
For Flex Builder 3... isn't there an Eclipse update link so I can easily upgrade from 3.02 to 3.03? I swear I've seen this somewhere but can't find it now. Dimitrios Gianninas RIA Developer Team Lead Optimal Payments Inc. -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L’expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s’il est retransmis sans son autorisation. Si vous n’êtes pas le destinataire visé du présent message ou si vous l’avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l’expéditeur.
RE: [flexcoders] HTTPService never returning...
Can you try getting an HTTP Sniffer to see what the raw response looks like? Are they HTTPS URLs? Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of nathanpdaniel Sent: Tuesday, March 17, 2009 12:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] HTTPService never returning... I have an AS3 HTTPService (that is, the HTTPService is all AS3 based, no MXML) which travels off and gets an XML feed, returns and displays the data. There are several (20+) instances where I can click on an item and this happens properly. However, I have 1 (just one) instance where this crashes my AIR app. I've verified the URL, it DOES render in an HTML page (as XML) so, there is no issue with the URL. I can click on ANY other item to load the XML and it loads - every time. My App works fine as long as I never select the one item in particular. I've profiled the app, memory usage actually drops off when I selecte that one item. I've got listeners for every possible event - none of which ever get sent after hitting HTTPService.send(). The app acts as though everything's fine, it's just loading data. I put a timeout of 5 seconds on the HTTPService. After about 2 minutes of still nothing, I manually shut down the app. Anyone have any ideas? -- 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] Setting Focus on loading application
Thanks for this post :) But I'm quite wondering that it doesn't work in Google Chrome. On Wed, Mar 18, 2009 at 7:44 AM, Toby Tremayne t...@lyricist.com.au wrote: Actually I'm using it in firefox :) On 18/03/2009, at 12:15 AM, Tracy Spratt wrote: Be aware that this is reliable in IE, but may not work in FireFox. I do not know about the other browsers. Tracy Spratt, Lariat Services, development services available -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *sony antony *Sent:* Tuesday, March 17, 2009 8:00 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Setting Focus on loading application Hey.. Thanks Toby... That worked.. It was really troubling stuff for me.. Now am almost relaxed.. --- On *Tue, 17/3/09, Toby Tremayne t...@lyricist.com.au* wrote: From: Toby Tremayne t...@lyricist.com.au Subject: Re: [flexcoders] Setting Focus on loading application To: flexcoders@yahoogroups.com Date: Tuesday, 17 March, 2009, 12:34 PM The issue is that the flash movie itself needs to receive focus before it can put the cursor in your username field. You can achieve this by adding this to your html wrapper (yourproject/ html-template/ index.template. html): script language=JavaScript type=text/javascript function focusFlash() { ${application}.focus(); } /script and modify the body tag like so: body onload=focusFlash Once that's in there, the usual FocusManager code in your flex will work: focusManager. setFocus( username) ; Toby On 17/03/2009, at 5:54 PM, sony antony wrote: Hi, Can anyone help me out with this craziness of flex.. I need to set focus to my username field when my application gets loaded. While i was tracking this issue, I was caught up in http://bugs. adobe.com/ jira/browse/ FP-879 http://bugs.adobe.com/jira/browse/FP-879 . There they specified about some kind of html wrapper code. I dint get any idea about it. Please somebody help me to fix this. Thanks Regards, Sony -- Check out the all-new face of Yahoo! India. Click here.http://in.rd.yahoo.com/tagline_frontpage_1/*http:/in.yahoo.com/?wm=n/ Toby Tremayne CEO Magic Industries http://www.magicind ustries.net http://www.magicindustries.net mob: 0416 048 090 icq: 13107913 skype: lyricist1 -- Add more friends to your messenger and enjoy! Invite them now.http://in.rd.yahoo.com/tagline_messenger_6/*http:/messenger.yahoo.com/invite/ Toby Tremayne CEO Magic Industries http://www.magicindustries.net mob: 0416 048 090 icq: 13107913 skype: lyricist1
RE: [flexcoders] HttpService headers - age old problem
See: http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html For POST requests, the confusion probably arises because it was possible to send Authorization headers in the past, but it was added to the list of restricted headers (I don't have the exact version handy, but it might have been 9.0.124). Even though the crossdomain policy format was expanded to include an allowed header list, I believe the restricted headers are still always ignored. See http://livedocs.adobe.com/flex/3/langref/flash/net/URLRequestHeader.html for a list of restricted headers. For GET requests, headers not being sent is a different issue logged against URLLoader - I believe this is due to a limitation of the plugin APIs exposed to the player. There are several duplicates logged, but one is: https://bugs.adobe.com/jira/browse/FP-209. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of stevepruitt97 Sent: Wednesday, February 11, 2009 12:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] HttpService headers - age old problem This seems to be an age-old issue. I need to set the Authorization header for GET requests. I read it cannot be done and I have read articles that hint it is doable. Which is it? I have no cross-domain issues. Everything is sent to the same server. I found the following adobe TechNote: http://kb.adobe.com/selfservice/viewContent.do? externalId=kb403184sliceId=1 appears to state that post Flash player 9.0.115.0 the Authorization header can be sent with either GET or POST. I have player 9.0.224.0. However, I cannot the Authorization header or a custom header to go across. Has anyone successfully set the Authorization header for any customer header for that matter with the HttpService? Thanks. -S -- 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] Is there any way to globally mute all sounds in an application?
Is there any way to globally mute all sounds in an application? I have an application with several short, embedded MP3 sound effects plus NetStream video that has audio. Note: In our application play() is executed programmatically via ActionScript for all Sounds and NetStream videos. My sense is that sound must be controlled on an object by object basis. That is, that there is no global property that can be set to adjust volume for all objects that might play() sounds Can anyone point me to examples using a single property for muting all sounds in an application? In Flex, the top level Application class does have a property soundTransform of type SoundTransform. However, in my experience (ran a few tests), setting the value on this Application-level property does not effect the individual Sound and NetStream instances. The closest I have come to having a global property is adding an instance of SoundTransform as a property of the top level application. Then for the embedded MP3s, having the return value from each Sound.play() execution assigned to an instance of SoundChannel and then immediately assigning the top level app's SoundTransform property as the SoundChannel.soundTransform property. Likewise for the NetStream, after executign NetStream.play() setting NetStream.soundTransform property to the top level app's SoundTransform property. Thanks, g
[flexcoders] Re: Nightly build of datavisualization SDK
--- In flexcoders@yahoogroups.com, linko27 link...@... wrote: Hello! Is there a nightly build of the datavisualization SDK? I have problems with a memory leak in the charting component and need to update the SDK. Thanks Ron There isn't, since DMV is not free so they can't or won't release it, I guess its too much maintenance
RE: [flexcoders] Security sandbox violation error after upgrade to SDK 3.2
For any run or just profiling? Normally the profiler swf shouldn't be in play. If a profiler session dies it can leave itself in the mm.cfg or whatever your OS equivalent is. 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 Tim Hoff Sent: Tuesday, March 17, 2009 4:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Security sandbox violation error after upgrade to SDK 3.2 Hi all, I just updated the Flex SDK to version 3.2, and am now getting a Security sandbox violation error everytime that I launch an AIR application from Eclipse. I was wondering if anyone else has run into this and might know of a fix. The stack trace is listed below. Thanks, -TH Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///C|%2Fdev%2Fworkspace%2F.metadata%2F.plugins%2Fcom.adobe.flash.profiler%2FProfilerAgent.swf?host=localhostport=file:///\\C|%2Fdev%2Fworkspace%2F.metadata%2F.plugins%2Fcom.adobe.flash.profiler%2FProfilerAgent.swf?host=localhostport= cannot load data from localhost:. at ProfilerAgent()[C:\faramir\flex\sdk\modules\profiler3\as\ProfilerAgent.as:127] at runtime::ContentPlayer/loadInitialContent() at runtime::ContentPlayer/playRawContent() at runtime::ContentPlayer/playContent() at runtime::AppRunner/run() at global/runtime::ADLEntry()
RE: [flexcoders] Pb with accordion
Accordion.selectedIndex = n? 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 christophe_jacquelin Sent: Tuesday, March 17, 2009 10:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Pb with accordion Hello, Inside an accordion Panel, how to open the other panel of the accordion by a click on a button ? Thank you, Christophe,
RE: [flexcoders] Is there a better way to strikethrough an entire row in a grid?
If the logic for when you need strikethrough is data-driven, it will probably be worth the work of adding to the renderer. 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 gmoniey22 Sent: Tuesday, March 17, 2009 11:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Is there a better way to strikethrough an entire row in a grid? I am looking for a way to strike through an entire row in a grid. Only some rows will have the strikethrough effect. I looked into using item renderers and such, but this seems like more work than it needs to be, since I already have several custom item renderers. Which means I need to add the strikethrough logic in those, as well as create a generic strikethrough item renderer for the other columns. Also, I couldn't 100% identify a strikethrough style. So I started thinking that maybe I should just subclass the DataGrid class and override the drawItem function to simply draw a red line over the middle of the item after it has been rendered by the super class. Is there an more obvious solution I am missing? Thanks
RE: [flexcoders] Re: Error 'Send Failed' while loading swf file
Is your server set up to resolve this url properly? 'http://16.25.168.193/shubbuild/messagebroker/amf'' Usually requires an AMF service. 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 gnv_vishwanath Sent: Tuesday, March 17, 2009 9:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Error 'Send Failed' while loading swf file Problem with Server Connectivity - was able to access the application and view the other information. Only its giving problem while rendering flex comp. Can you please give me more clue in finding the solution. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aha...@... wrote: NetConnection is not used to load SWFs. Looks like a problem with your server connectivity Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of gnv_vishwanath Sent: Friday, March 13, 2009 7:35 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Error 'Send Failed' while loading swf file Facing the issue in loading the swf file, but the same is working fine in local machine. When trying to execute in other machine its not working, gives the message as below: faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://16.25.168.193/shubbuild/messagebroker/amf'' Please help me in resolving this issue...