Re: [flexcoders] how to add new event for button?
button, which was maded in flash, but it's in different swf's. I want to do new rule to all buttons. - Original Message From: Tracy Spratt [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, August 27, 2007 3:32:36 AM Subject: RE: [flexcoders] how to add new event for button? Extend Button? Tracy From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf Of Carlo Gulliani Sent: Sunday, August 26, 2007 12:51 PM To: Flexcoders Subject: [flexcoders] how to add new event for button? Hi, everybody. Sorry for offtop, but i dont know what is doing( I've main scene (_root), in which load some swf's... My swf files have a lot of buttons How can I add new properties for button, that when mouse rollover playing special sound... I can write so: button.onRollover = function(){ var sound:Sound = new Sound(this); sound.attachSound( somesound ); sound.start( 0,0); } but I've more buttons and I want to add new rule for all buttons, that when RollOver playing sound, when RollOut - sound stop and delete sound. I know that can do it, but how? Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. !-- #ygrp-mkp{ border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;} #ygrp-mkp hr{ border:1px solid #d8d8d8;} #ygrp-mkp #hd{ color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;} #ygrp-mkp #ads{ margin-bottom:10px;} #ygrp-mkp .ad{ padding:0 0;} #ygrp-mkp .ad a{ color:#ff;text-decoration:none;} -- !-- #ygrp-sponsor #ygrp-lc{ font-family:Arial;} #ygrp-sponsor #ygrp-lc #hd{ margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;} #ygrp-sponsor #ygrp-lc .ad{ margin-bottom:10px;padding:0 0;} -- !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;} #ygrp-vital ul li .cat{ font-weight:bold;} #ygrp-vital a{ text-decoration:none;} #ygrp-vital a:hover{ text-decoration:underline;} #ygrp-sponsor #hd{ color:#999;font-size:77%;} #ygrp-sponsor #ov{ padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;} #ygrp-sponsor #ov ul{ padding:0 0 0 8px;margin:0;} #ygrp-sponsor #ov li{ list-style-type:square;padding:6px 0;font-size:77%;} #ygrp-sponsor #ov li a{ text-decoration:none;font-size:130%;} #ygrp-sponsor #nc{ background-color:#eee;margin-bottom:20px;padding:0 8px;} #ygrp-sponsor .ad{ padding:8px 0;} #ygrp-sponsor .ad #hd1{ font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;} #ygrp-sponsor .ad a{ text-decoration:none;} #ygrp-sponsor .ad a:hover{ text-decoration:underline;} #ygrp-sponsor .ad p{ margin:0;} o{font-size:0;} .MsoNormal{ margin:0 0 0 0;} #ygrp-text tt{ font-size:120%;} blockquote{margin:0 0 0 4px;} .replbq{margin:4;} -- Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting
Re: [flexcoders] how to add new event for button?
sorry, i forget say, it'squestion from as 2.0 and flash - Original Message From: Carlo Gulliani [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, August 27, 2007 10:07:15 AM Subject: Re: [flexcoders] how to add new event for button? button, which was maded in flash, but it's in different swf's. I want to do new rule to all buttons. - Original Message From: Tracy Spratt [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Monday, August 27, 2007 3:32:36 AM Subject: RE: [flexcoders] how to add new event for button? Extend Button? Tracy From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf Of Carlo Gulliani Sent: Sunday, August 26, 2007 12:51 PM To: Flexcoders Subject: [flexcoders] how to add new event for button? Hi, everybody. Sorry for offtop, but i dont know what is doing( I've main scene (_root), in which load some swf's... My swf files have a lot of buttons How can I add new properties for button, that when mouse rollover playing special sound... I can write so: button.onRollover = function(){ var sound:Sound = new Sound(this); sound.attachSound( somesound ); sound.start( 0,0); } but I've more buttons and I want to add new rule for all buttons, that when RollOver playing sound, when RollOut - sound stop and delete sound. I know that can do it, but how? Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. !-- #ygrp-mkp{ border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;} #ygrp-mkp hr{ border:1px solid #d8d8d8;} #ygrp-mkp #hd{ color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;} #ygrp-mkp #ads{ margin-bottom:10px;} #ygrp-mkp .ad{ padding:0 0;} #ygrp-mkp .ad a{ color:#ff;text-decoration:none;} -- !-- #ygrp-sponsor #ygrp-lc{ font-family:Arial;} #ygrp-sponsor #ygrp-lc #hd{ margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;} #ygrp-sponsor #ygrp-lc .ad{ margin-bottom:10px;padding:0 0;} -- !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;} #ygrp-vital ul li .cat{ font-weight:bold;} #ygrp-vital a{ text-decoration:none;} #ygrp-vital a:hover{ text-decoration:underline;} #ygrp-sponsor #hd{ color:#999;font-size:77%;} #ygrp-sponsor #ov{ padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;} #ygrp-sponsor #ov ul{ padding:0 0 0 8px;margin:0;} #ygrp-sponsor #ov li{ list-style-type:square;padding:6px 0;font-size:77%;} #ygrp-sponsor #ov li a{ text-decoration:none;font-size:130%;} #ygrp-sponsor #nc{ background-color:#eee;margin-bottom:20px;padding:0 8px;} #ygrp-sponsor .ad{ padding:8px 0;} #ygrp-sponsor .ad #hd1{ font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;} #ygrp-sponsor .ad a{ text-decoration:none;} #ygrp-sponsor .ad a:hover{ text-decoration:underline;} #ygrp-sponsor .ad p{ margin:0;} o{font-size:0;} .MsoNormal{ margin:0 0 0 0;} #ygrp-text tt{ font-size:120%;} blockquote{margin:0 0 0 4px;} .replbq{margin:4;} -- Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
RE: [flexcoders] Play multiple SWF files in SWF loader (Detect SWF(SWFLoader) finish playing
It depends on the SWF. Pure frame-based animation swfs can be checked for currentFrame = totalFrames. Anything that uses script-based animations requires an event from the script. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ary Sent: Sunday, August 26, 2007 10:26 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Play multiple SWF files in SWF loader (Detect SWF(SWFLoader) finish playing Yes, i did think this solution before, i should generate some event at the end of the frame, the problem is that i might dont have access to all the swf..the swf might come from somewhere and i cant put a trigger inside it. ary. --- Tracy Spratt [EMAIL PROTECTED] mailto:tspratt%40lariatinc.com wrote: playing, huh, that must be some of that Flash stuff. I don't do Flash, yet, so I'm probably not the one to answer this, but I am pretty sure that your swf is gong to have to dispatch an event that your parent app can listen for. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Ary Sent: Sunday, August 26, 2007 12:02 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Play multiple SWF files in SWF loader (Detect SWF(SWFLoader) finish playing Hi Tracy, Yes, but how to detect when a swf (loaded by swfloader) finish playing?so i can point to the next swf? i cant found any sample or reference to do this :( thanks in advance for the enlightment. ary. --- Tracy Spratt [EMAIL PROTECTED] mailto:tspratt%40lariatinc.com mailto:tspratt%40lariatinc.com wrote: Just set the SWFLoader.source property to the url. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Ary Sent: Wednesday, August 22, 2007 3:30 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Play multiple SWF files in SWF loader Hi, continuing this post, how can i play this multiple swf files if i have the url listed in xml or array? and maybe control it or disabled the control so it plays continously... thanks in advance.. ary. --- Tracy Spratt [EMAIL PROTECTED] mailto:tspratt%40lariatinc.com mailto:tspratt%40lariatinc.com mailto:tspratt%40lariatinc.com wrote: First, what do you mean when you say, i have five SWF files in array? Do you mean you have the urls to the swf files stored in the array? Second, do you control the swf's so that you can dispatch an event or callback when they complete? Tracy __ Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. http://farechase.yahoo.com/ http://farechase.yahoo.com/ http://farechase.yahoo.com/ http://farechase.yahoo.com/ http://farechase.yahoo.com/ http://farechase.yahoo.com/ http://farechase.yahoo.com/ http://farechase.yahoo.com/ __ Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/ http://searchmarketing.yahoo.com/ http://searchmarketing.yahoo.com/ http://searchmarketing.yahoo.com/ __ Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/ http://travel.yahoo.com/
RE: [flexcoders] Verify an Object in Memory.
Not sure I understand. Do you want to know if a class had an instance made from it? I'd put a static variable like a counter in the constructor. Do you want to use keyboard to switch between a Flash App and Windows? Or between popups in a Flex app? Or use the mouse to switch Windows? Flex handles mouse switching, but you probably can't get at alt-tab and maybe not ctrl-tab either. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rodrigo Pereira Fraga Sent: Sunday, August 26, 2007 6:47 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Verify an Object in Memory. how I can verify if an Object was instancied, (mxml or as3)? and.. i need to make the logic to advance and to back of the windows common in MSWindows... somebody has an idea of which would be the best solution? Good Week! Thanks!
RE: [flexcoders] tree display not refreshing
In short, you can't use XMLList or Array manipulation, you must access children via the dataDescriptor so the Tree gets notifications of the changes (and use XMLListCollection or ArrayCollection methods). I hope to find a way to allow XMLList in Moxie, but no guarantees. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Toby Tremayne Sent: Monday, August 27, 2007 4:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] tree display not refreshing When I drag an item into my tree or I delete a node, I'm finding the tree display is becoming corrupt - it copies some of the branches / nodes to the bottom of the tree. If I then expand or collapse a node the display refreshes and fixes itself. I've tried calling tree.invalidateDisplayList() after the changes but it has no effect - can anyone point me to how to force this? cheers, Toby --- Life is poetry, write it in your own words --- Toby Tremayne IT Director Code Poet and Zen Master of the Heavy Sleep Codename:Tuesday 02 8012 0953 0416 048 090 ICQ: 13107913
RE: [flexcoders] Printing having the mutliple PrintDataGrid
You would use the example to print the first datagrid, then start over with the same PDG and different columns and dataprovider. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rajanjainflex Sent: Sunday, August 26, 2007 4:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Printing having the mutliple PrintDataGrid Hi, I have modified the Adobe Example and now i am having multiple printdatagrid.Now i wan to show the complete data of the first datagrid and then show the complete data the second datagrid. Any ideas how to do that? Thanks Rajan mx:PrintDataGrid id=myDataGrid width=60% height=100% !-- Specify the columns to ensure that their order is correct. - - mx:columns mx:DataGridColumn dataField=Index / mx:DataGridColumn dataField=Qty / /mx:columns /mx:PrintDataGrid mx:PrintDataGrid id=myDataGrid2 width=60% height=100% !-- Specify the columns to ensure that their order is correct. - - mx:columns mx:DataGridColumn dataField=Index / mx:DataGridColumn dataField=Qty / /mx:columns /mx:PrintDataGrid
Re: [flexcoders] tree display not refreshing
Thanks for that, I'll try switching to manipulating the datadescriptor and see how it goes. Toby On 27/08/2007, at 16:30 , Alex Harui wrote: In short, you can't use XMLList or Array manipulation, you must access children via the dataDescriptor so the Tree gets notifications of the changes (and use XMLListCollection or ArrayCollection methods). I hope to find a way to allow XMLList in Moxie, but no guarantees. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Toby Tremayne Sent: Monday, August 27, 2007 4:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] tree display not refreshing When I drag an item into my tree or I delete a node, I'm finding the tree display is becoming corrupt - it copies some of the branches / nodes to the bottom of the tree. If I then expand or collapse a node the display refreshes and fixes itself. I've tried calling tree.invalidateDisplayList() after the changes but it has no effect - can anyone point me to how to force this? cheers, Toby --- Life is poetry, write it in your own words --- Toby Tremayne IT Director Code Poet and Zen Master of the Heavy Sleep Codename:Tuesday 02 8012 0953 0416 048 090 ICQ: 13107913 --- Life is poetry, write it in your own words --- Toby Tremayne IT Director Code Poet and Zen Master of the Heavy Sleep Codename:Tuesday 02 8012 0953 0416 048 090 ICQ: 13107913
RE: [flexcoders] filterFunction on ArrayCollection
When does startFIlter get called? Can you post the entire call stack with the error? startFilter may be called before the result from the HTTPService. Add trace statements to startFilter and the result handler and see which one gets called first. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ary Sent: Sunday, August 26, 2007 3:07 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] filterFunction on ArrayCollection Hi Alex, thx for replying, yes i thought so too...but if it is...it won't work on local either..but it works on localhost... here's the code private function startFilter(toFilter:String):void { categoryString=toFilter; tabSwitch(toFilter); playlist=userRequest.lastResult.videolink.video playlist.filterFunction=processFilter; playlist.refresh(); dgUserRequest.selectedIndex=0; } private function processFilter(item:Object):Boolean { var result:Boolean=false; if (!item.videocategory.length || item.videocategory.toUpperCase().indexOf(categoryString) = 0){ result=true; } return result; } and here is the httpservice, trigerred on creationComplete app. userRequest.send(); mx:HTTPService id=userRequest url=_fxrequest.php useProxy=false method=POST result=playlist=userRequest.lastResult.videolink.video thanks! ary --- Alex Harui [EMAIL PROTECTED] mailto:aharui%40adobe.com wrote: please post some code. Sounds like you might be filtering before the results come back from the server. __ Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/ http://travel.yahoo.com/
Re: [flexcoders] How to bind complex boolean values?
Wow, thanks much for sharing, Troy. 2007/8/24, Troy Gilbert [EMAIL PROTECTED]: It's actually much simpler than that. You were doing exactly the right thing in your very first try, you just needed to encode the ampersands as XML entities because you're in an XML file. Instead of you should have used amp;amp;. Like this: mx:Canvas id=cashMatchingCounterPartyModeButton visible={(cashMatchingModeButton.selected amp;amp; counterPartyModeButton.selected)} width=100% height=100% And to fix your second issue, you can just as simply add a do-nothing setter (though that does put a setter in the interface of your class, which may hurt some folks proper-oop-feelings, in which case the linked-to solution is the proper one). E.g., [Bindable] public function get someValue():Boolean { return someComplexExpressionInvolvingIntermediateVariables; } public function set someValue(value:Boolean):void { } There was a thread regarding this recently (binding to read-only getters)... I'd argue this is something the Flex guys should change... Troy. On 8/24/07, Mikhail Shevchuk [EMAIL PROTECTED] wrote: http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex This article was extremely useful while solving the issue. 2007/8/24, Mikhail Shevchuk [EMAIL PROTECTED]: Hello, flexcoders. I have a bunch of RadioButton controls from two different groups (modes and mainModes): mx:RadioButton id=cashMatchingModeButton groupName=mainModes / mx:RadioButton id=affirmationsModeButton groupName=mainModes / mx:RadioButton id=counterPartyModeButton groupName=modes / mx:RadioButton id=payDateModeButton groupName=modes / I would like to bind visibility of the Canvas object (aCanvas) to the result of (cashMatchingModeButton.selected counterPartyModeButton.selected) but I can't implement it directly using the following code: mx:Canvas id=cashMatchingCounterPartyModeButton visible={(cashMatchingModeButton.selected counterPartyModeButton.selected)} width=100% height=100% The following error occurred at the compile-time: The entity name must immediately follow the '' in the entity reference. I also tried to use the getter: [Bindable] public function get isCashMatchingCounterPartyMode():Boolean { return (cashMatchingModeButton.selected counterPartyModeButton.selected); } But that caused warning message: [Bindable] on read-only getter is unnecessary and will be ignored. What is the most elegant way to solve this issue ? -- Thanks, Mikhail Shevchuk -- A vivid and creative mind characterizes you. -- A vivid and creative mind characterizes you.
Re: [flexcoders] get class instance by property
Also consider using a ModelLocator to store this list of persons. Have a look at Cairngorm - it helps. /J Derrick Anderson skrev: i think i am going to take your suggestion and use the person instances themselves as the dataprovider for the combobox, thanks for setting me straight! d. On 8/7/07, * Gordon Smith* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: If you really need to find a Person instance based on its ID, that would depend on how and where you stored the Person instances. In an Array? In an Object with the IDs as the keys and the instance references as the values? But it sounds like it would be easier if each item in the dataProvider for your ComboBox was a Person instance. Then comboBox.selectedItem would give you the selected Person instance. You'd simply specify labelField=Name to make the ComboBox display the names. - Gordon *From:* flexcoders@yahoogroups.com http://ups.com [mailto:flexcoders@ mailto:flexcoders@yahoogroups.com http://yahoogroups.com] *On Behalf Of *Derrick Anderson *Sent:* Tuesday, August 07, 2007 11:24 AM *To:* flexcoders@yahoogroups.com http://ups.com *Subject:* [flexcoders] get class instance by property hi, i think i have painted myself into a procedural corner, i have numerous instances of a class 'Person' in my application. Now i have a combobox with the ID and Name of all these 'People'. When I select a name in the combobox, i want to run a function on that instance of the Person that ID belongs to- but have no idea how to get that instance when all i have is the ID to get it by. How do you reference a class instance by one of it's properties? d.
[flexcoders] Re: Total Number of Items in a Tree
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Depends on what number you're looking for. The total number of possible nodes or the total number based on what nodes are open I'm looking for the total number of nodes (branches and leaves), no matter whether they are opened or not.
[flexcoders] TileList problems (thumbnails w/size switching enabled)
I've got a tilelist which is linked to an ArrayCollection of MyItems which each contain an image:Object. I've got a button that enables the user to switch thumbnail size. However, this messes scrolling up on the TileList. The rowHeight/columnWidth values in the TileList seem to be updated correctly though, here's a trace example: rowHeight = 120 rowCount = 4 columnWidth = 100 columnCount = 4 ( thumbnail size switch )--- rowHeight = 360 rowCount = 4 columnWidth = 340 columnCount = 4 .. but how come the columnCount / rowCount remain the same? Shouldn't these properties be updated as well to reflect the new sizes. Best regards, Bjørn -- http://www.juicability.com - flex blog http://www.43min.com - funny movies
Re: [flexcoders] Re: Total Number of Items in a Tree
Make a recursive count function, maybe. // pseudocode for tree based on an arraycollection function countNodes( ac:ArrayCollection ): int { var count:int = 0; for(var i:int=0; i ac.length; i++) { count++; if(ac[i].hasOwnProperty('children')) { count += this.countNodes( ac[i].children ); } } return count; } On 27/08/07, Stefan Schmalhaus [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Depends on what number you're looking for. The total number of possible nodes or the total number based on what nodes are open I'm looking for the total number of nodes (branches and leaves), no matter whether they are opened or not. -- http://www.juicability.com - flex blog http://www.43min.com - funny movies
[flexcoders] Background coloring in Scheduling Framework
Hi, I need to color the background of a ScheduleViewer component, each line with a different background color. BackgroundItem lets you do that for columns... but I can't find anything that'll let me color individual lines. Thanks, Chris.
[flexcoders] Re: Verify an Object in Memory.
Excuses, but I expressed myself badly. Problem 1: -- I have a PopUp (myPopUpWindow), and only he can have, one instance. thus, I make: if (myPopUpWindow! = instancied) { showMyPopWindow; } Poblem 2: - What I need to make, is the navigation between windows (PopUp's). you know the button Back and forward of the Explorer? The logic of navigation until already I mounted, but I do not know what to call when the button back or forward will be pressed. Thanks! --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Not sure I understand. Do you want to know if a class had an instance made from it? I'd put a static variable like a counter in the constructor. Do you want to use keyboard to switch between a Flash App and Windows? Or between popups in a Flex app? Or use the mouse to switch Windows? Flex handles mouse switching, but you probably can't get at alt-tab and maybe not ctrl-tab either. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rodrigo Pereira Fraga Sent: Sunday, August 26, 2007 6:47 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Verify an Object in Memory. how I can verify if an Object was instancied, (mxml or as3)? and.. i need to make the logic to advance and to back of the windows common in MSWindows... somebody has an idea of which would be the best solution? Good Week! Thanks!
[flexcoders] Invite for Bangalore Flex User Group meeting
If you cannot see this email properly, click herehttp://www.eventbrite.com/event/71308285 *Can you attend this event? Respond Herehttp://www.eventbrite.com/event/71308285 * *Bangalore Flex User Group Meeting* *Date* August 31, 2007 *Time* 5:00 pm - 7:00 pm *Hosted By Prayank Swaroop* A Java code monkey in past life. I'm now an evangelist for Adobe Systems India, Bangalore. And, when you meet me you will definitely find out that I love to talk :-) Click for Details and Registration Informationhttp://www.eventbrite.com/event/71308285 *Can you attend this event? Respond Herehttp://www.eventbrite.com/event/71308285http://www.eventbrite.com/event/71308285/?invite=MzUyNzMvcHJheWFuay5zd2Fyb29wQGFkb2JlLmNvbS8x%0A * http://www.eventbrite.com/aff?a=ep=mgregform This email was sent by Eventbrite, your total online solution to publish, register, manage and promote events. Host Your Events With Eventbritehttp://www.eventbrite.com/aff?a=ep=mgregform
[flexcoders] Re: Unknown configuaration variable 'complier.keep-as3-metadata'
Hi Neil, I am also facing same problem. Were you able to trace the cause of it? I will be helpful if you can reply to this. Thanks, Savan --- In flexcoders@yahoogroups.com, neil_durbin [EMAIL PROTECTED] wrote: I keep getting the error Unknown configuaration variable 'complier.keep-as3-metadata' in the flex-config.xml file whenever I run a project using FDS compile application on the server when the page is viewed. Does anyone know how to fix this? Cheers!
Re : [flexcoders] Re: Problem extending TabNavigator class
I followed your advice and managed to position my button. First of all, I extended the tabBar class instead of the tabNavigator class. I added (via a rawChildren.addChild() method) my button to the tabBar and overrid the updateDisplayList() method to place the button. The position of the button is relative to its parent (the TabBar). The trick is that the TabBar width is null when you call the createChildren() method, so you can't set the position of the button in this method (which is what I did in the first place). But the parent width is not null anymore when the updateDisplayList() method is called. I just have one problem left : my TabNavigator is placed in a Panel, contained in an HDividedBox. The positionning of the button is perfect at loading, but when I resize the HDividedBox, the positionning is not updated... Is there another method I forgot to override ? - Message d'origine De : Benoit Thiebault [EMAIL PROTECTED] À : flexcoders@yahoogroups.com Envoyé le : Vendredi, 24 Août 2007, 17h57mn 54s Objet : [flexcoders] Re: Problem extending TabNavigator class Hi Ben, and thank you for your answer :-) You can see what I want to do on this picture http://picasaweb. google.fr/ benoit.thiebault /AlbumSansTitre/ photo#5102289531 346166354 The button I want to add should not act like it's part of the existing tabBar. When the user clicks the button, it hides/shows the content of my tabNavigator. In fact, it just toggles the height of the component to make it appear or disappear (in that case, you can only see the tabBar, not the viewstack underneath). I tried to create just the button (without anything else than the button: no HBox, no spacer, no tabs), but it didn't display anything... --- In [EMAIL PROTECTED] ups.com, ben.clinkinbeard ben.clinkinbeard@ ... wrote: Do you need your button to act like its part of the existing tabBar in that it would deselect any active tab and vice versa? If not (and maybe even if you do with a workaround) you can avoid creating the HBox and Spacer and just create a button. super.createChildre n() is also usually the first line of your overridden function unless there is a specific reason not to do it that way. I would also do your positioning in an overridden updateDisplayList as that is the proper place for positioning child components. I guess that may fall apart if you really need all the tabs to belong to a single tabBar, but I'm not sure. Sorry, these are all kind of just guesses as I've not worked with TabBar or Spacer at all. Is it possible your button is there but being pushed off of the screen? HTH, Ben --- In [EMAIL PROTECTED] ups.com, Benoit Thiebault neopium@ wrote: Hi everyone ! [:)] I need to extend the TabNavigator class in order to display a tab bar containing : - tabs on the left (as usual) - a button the user can click on the right Of course, my button should stay on the right of the tab bar whatever the size of the TabBarNavigator I didn't want to start from scratch, so I had a look at FlexLib and its great SuperTabNavigator. However, my tabNavigator is much more simpler than the SuperTabNavigator and I just wanted to extend one class : TabNavigator. I tried this : package extensions { import mx.containers. TabNavigator; import mx.controls. TabBar; import mx.controls. tabBarClasses. Tab; import mx.core.mx_internal ; import mx.core.IFlexDispla yObject; import flash.display. DisplayObject; import mx.controls. Button; import mx.containers. HBox; import mx.containers. Canvas; import mx.controls. Spacer; use namespace mx_internal; public class extended_TabNavigat or extends TabNavigator { protected var holder:HBox; protected var spacer:Spacer; protected var myButton:Button; public function extended_TabNavigat or() { super(); } override protected function createChildren( ):void{ // Tab bar creation tabBar = new TabBar(); super.createChildre n(); // Holder that will contain my tab bar, a spacer and the button holder = new HBox(); // Adds the container to the TabNavigator rawChildren. addChild( holder); // Adds the TabBar to the holder container holder.addChild( tabBar); // Spacer that will fill the space between the tabs and the button spacer = new Spacer(); spacer.percentWidth = 100; // Adds the spacer to the container holder.addChild( spacer); // My button myButton = new Button(); myButton.label = Hello world !; // Adds the button to the container holder.addChild( myButton) ; } } } So I created an HBox containing: - the tab bar - a spacer filling all available space - and my button Unfortunately, it doesn't work... The TabNavigator has no tab bar nor button...
Re: [flexcoders] Re: DataGrid with labelfunction + POJO
Hi again. I have tried to make like you told me before : import bkn.pojo.Formasi; public function getInstansiNama(item:Object, column:DataGridColumn):String { var myPOJOFormasi:Formasi = Formasi(item); Alert.show(Instansi : + myPOJOFormasi.instansi); return PPP; } The value of the instansi : NULL Here i send to you the source of the function where i get the Formasi List, because i use that function in dataProvider of my DataGrid: public Formasi[] getFormasi( String pTahun ) throws ClassNotFoundException, SQLException { Formasi[] myFormasi = null ; try { Configuration cfg = new Configuration (); cfg.configure(); SessionFactory sessions = cfg.buildSessionFactory(); Session session = sessions.openSession(); Criteria crit = session.createCriteria(Formasi.class); Integer iTahun = Integer.valueOf(pTahun); crit.add( Restrictions.eq(tahun, iTahun)); crit.setMaxResults(10); java.util.List formasis = crit.list(); myFormasi = new Formasi [formasis.size()]; formasis.toArray(myFormasi); //Here the result never is NULL, always have the correct data System.out.println(+++ Despues de load: + myFormasi[0].getInstansi().getNama()); return myFormasi; } catch (Exception ex) { System.out.println(Exception + ex.getMessage()); } finally { return myFormasi; } } Thanks in advance - Original Message From: simonjpalmer [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, August 26, 2007 10:11:05 AM Subject: [flexcoders] Re: DataGrid with labelfunction + POJO what happens if you cast item to a FormasiFlex, e.g. FormasiFlex( item).istansi; --- In [EMAIL PROTECTED] ups.com, Jon Santos [EMAIL PROTECTED] wrote: If i put one Alert to display ITEM, the value is : item : [object FormasiFlex] This is the code i have using to see the value of the ITEM object: public function myInstansiNama( item:Object, column:DataGridColu mn):String { Alert.show( item : + item.toString( )); return item.toString( ); } In the attached file i send to you one screenshot, you will see my problem. If someone can help me...thaks in advance. - Original Message From: Jon Santos [EMAIL PROTECTED] To: [EMAIL PROTECTED] ups.com Sent: Thursday, August 23, 2007 8:13:04 PM Subject: Re: [flexcoders] Re: DataGrid with labelfunction + POJO My MXML file is like that : ?xml version=1.0 encoding=utf- 8? mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml layout=absolute xmlns:ns1=war. pruebas. * creationComplete= ActivateEvents( ) mx:Script ![CDATA[ import bkn.pojo.InstansiPe merintah; import mx.core.IDataRender er; import mx.events.FlexEvent ; import mx.core.Container; import mx.controls. Alert; import mx.collections. ArrayCollection; import mx.containers. *; import mx.validators. NumberValidator; /* [Bindable] [RemoteClass( alias=bkn. pojo.JenisFormas i)] public class JenisFormasi { public var kode:String; public var deskripsi:String; } */ private var AddOrEdit:String; private var DosActivated: Boolean = false; private function lihatTahun() :void { this.srv.getFormasi (this.txtTahun. text) ; } private function ActivateEvents( ):void { this.dos.addEventLi sten er(FlexEvent. CREATION_ COMPLETE, setValues) ; } private function setValues(e: FlexEvent) :void { this.AddEdit( ); } private function ActionAdd(): void { this.AddOrEdit = Add; this.vs.selectedChi ld = dos; if (this.DosActivated) { this.AddEdit( ); } } private function InsertFormasi ():void { } private function ActionEdit() :void { this.AddOrEdit = Edit; this.vs.selectedChi ld = dos; if (this.DosActivated) { this.AddEdit( ); } } public function AddEdit():void { if (this.AddOrEdit != Edit) { this.myFormasi. tahun. text = ; this.myFormasi. jumlah. text = ; this.myFormasi. tanggalM enpan.text = ; this.myFormasi. Instansi Nama.text = ; } else { this.myFormasi. tahun. text = this.dg.selectedIte m. tahun; this.myFormasi. jumlah. text = this.dg.selectedIte m. jumlah; this.myFormasi. tanggalM enpan.text = this.dg.selectedIte m. tanggalMenpan; this.myFormasi. Instansi Nama.text = this.dg.selectedIte m. nomorMenpan; } this.DosActivated = true; } public function ReturnToStart( ):void { this.vs.selectedChi ld = cero; } public function myLabelFunc( item:Object, column:DataGridColu mn):String{ return item[column. dataField] .toDateString( ); //return item[column. datafield] .toDateString( ); } //cliente seleccionado public function myInstansiNama( item:Object, column:DataGridColu mn):String { Alert.show( item.instansi : + item.instansi) ; return Jon; } ]] /mx:Script mx:RemoteObject id=srv showBusyCursor= true destination= pojo / mx:NumberValidator source={txtTahun} property=text invalidCharError= This is not a number integerError= Masukan Integer value minValue=1900 maxValue=2007 domain=int trigger={btnLihatT ahun} triggerEvent= click valid=lihatTahun( )/ mx:ViewStack id=vs width=100% height=90% right=0 bottom=0 mx:Canvas id=cero
[flexcoders] Remote Objects - a reflective way to determine class?
Does anyone know of a technique to determine the true class of an object returned via remoting when Flex only knows it as an Object? I have tried if(Object is ClassName) and if(Object instanceOf ClassName) and also tried various casting combinations but so far I cannot determine what my returned Object is without parsing it to look for a specific field - not very object-oriented : ( Thanks, Libby
Re: [flexcoders] Re: AIR vs DLL vs. External code?
hank williams wrote: lol. You cant take my statement 100% literally. Yeah I know this is a programmers forum but how about allow for a little err... creative license. Fair enough. ;) Really only a handful of companies today make money selling software, and they include Microsoft, Adobe, and a few others. In fact developer tools will probably be one of the last categories to go totally online. But most application categories are moving to a software as service model. Software as a service feels like a move back to the 'dumb client' model of mainframes. Even if it does take off en masse, I don't expect it to replace traditional desktop apps. -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
Re: [flexcoders] Re: AIR vs DLL vs. External code?
Fair enough, good point. I'd say 99.9% of my usage with Flex Builder / Eclipse is non-connected, though. Tony Alves wrote: Jeffry, What about the updates in Flex Builder? Updates check the internet. I do agree that not all apps are connected to the internet. Jeffry Houser wrote: Interesting perspective. I believe it is incorrect. I use many desktop applications that do not need /have connectivity. Flex Builder is one great example. -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
[flexcoders] Re: big question: Is it possible to send request to java class using HTTPService.
Hi Tracy, Thans for ur reply. Yes we can send request to jsp using url attribute of httpservice. Here my problem is , is it possible to send request directly to java class or is it possible to send request to mainservlet so it navigates the request to appropriate request handler.If possible what is the I have to add in mainservlet, it reads the request handlers in .xml based on action name. Any body clarify my doubts.tnanx in advance --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: I'm not a java guy, but you could send it to a JSP page, and then to java. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of siva.flex Sent: Friday, August 24, 2007 7:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] big question: Is it possible to send request to java class using HTTPService. Hi All, I have seen lot of examples on HTTPService . But I haven't found any whaere forwording request to java class. My big doubt is, is it possible to send request directly to java class .Is it possible to change the behaviour of HTTPService. Anybody clarify mydoubts.Thanx in advance. Thanks Regards, Siva Kumar
[flexcoders] Drag and drop for list items
Hi all, I have a problem (obviously). It's a bit hard to explain, but I'll do my best. So...I have a list item, and whenever I drag and drop one entry outside of the list, I want it to display the same animation as when I'm dropping the entry on the list ( or any other mxml element which support dropEnabled). For example. If you drag and drop one item from one list, to another, the dragged item will zoom out under your mouse. If you drag and drop the item outside a drop enabled element, it will zoom out and slide back to it's original position on it's parent list. Is there a way to tell the list to always just zoom out the dragged element, regardless of the drop target? (I really hope I managed to make myself understood). Thanks guys, Cosmin
Re: [flexcoders] Re: AIR vs DLL vs. External code?
Software as a service feels like a move back to the 'dumb client' model of mainframes. Even if it does take off en masse, I don't expect it to replace traditional desktop apps. Naw dude, not at all. Connected or software as service doesn't have to mean bad terminal like software, though until recently I would agree that it did. The software in browser thing was the bane of my existence for the last 10 years. Browser based software rolled back the progress we had made in good user interface design in the 80's and 90's. Imagine being able to scroll your toolbar off the top of the screen, as is standard design in todays web pages. Just imagine if you had to *scroll* to get to the adobe illustrator tool bar because it was off screen. The browser took us back into the interface stone age for the last 10 years. Unfortunately, not withstanding this fact, many major apps started to appear in browsers using these bastardized user interfaces driven by the fact that we did not have tools like flex and AJAX and now AIR. Now most standard desktop apps are being re-architected around connectedness, whether it is from a desktop codebase or a web based code base. The reason this is happening (all the big software companies have either launched such products or have announced them) is because software is just better when it is connected. If you lament the notion or disagree with the idea that most desktop productivity apps will begin to be designed around internet awareness and/or collaboration we should revist this in another 18 months. You pick the place - looser buys the beer :) Hank
[flexcoders] How to set Scrollbars THICKNESS ?
Hello, I'm trying to make VScrollbar wider but cant find out a way to do this. I don't understand the principle how it should be done. As far as i could found myself there is a constant but as i can understand its impossible to change it. THICKNESS : Number = 16 [static] The width of a vertical scrollbar, or the height of a horizontal scrollbar, in pixels. If i only knew where else i can change these parameters or maybe there is some other way? Can anyone help with anything? I would be delighted. Thanks in advance for your time, Tadas Ziemys
[flexcoders] Re: Event collision- is this a bug or expected behavior?
bump --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: I am noticing some odd behavior adding capture phase event listeners to TabNavigator. While trying to answer another question (http://tech.groups.yahoo.com/group/flexcoders/message/84929) I noticed that this code: tabNav.addEventListener(IndexChangedEvent.CHANGE, onChange, true); will cause a RTE if onChange()'s event arg is typed as IndexChangedEvent. As it turns out, listening to the capture phase causes the listener to receive a regular Event object whose target is the actual tab you clicked on. Listening to bubble phase produces an instance of IndexChangedEvent whose target is the actual TabNavigator, which is what I would think is the expected behavior. I am assuming the problem has something to do with the fact that IndexChangedEvent.CHANGE and Event.CHANGE both evaluate to change. Is this expected behavior? I can't quite get my head around why it would be but that doesn't mean its not. I actually had this problem with a custom component the other day and ended up changing the event's string value to avoid the collision. Thanks, Ben
Re : [flexcoders] Re: Problem extending TabNavigator class
You should be setting its position every time updateDisplayList() is called. Are you doing that? Ben --- In flexcoders@yahoogroups.com, Benoit Thiebault [EMAIL PROTECTED] wrote: I followed your advice and managed to position my button. First of all, I extended the tabBar class instead of the tabNavigator class. I added (via a rawChildren.addChild() method) my button to the tabBar and overrid the updateDisplayList() method to place the button. The position of the button is relative to its parent (the TabBar). The trick is that the TabBar width is null when you call the createChildren() method, so you can't set the position of the button in this method (which is what I did in the first place). But the parent width is not null anymore when the updateDisplayList() method is called. I just have one problem left : my TabNavigator is placed in a Panel, contained in an HDividedBox. The positionning of the button is perfect at loading, but when I resize the HDividedBox, the positionning is not updated... Is there another method I forgot to override ? - Message d'origine De : Benoit Thiebault [EMAIL PROTECTED] À : flexcoders@yahoogroups.com Envoyé le : Vendredi, 24 Août 2007, 17h57mn 54s Objet : [flexcoders] Re: Problem extending TabNavigator class Hi Ben, and thank you for your answer :-) You can see what I want to do on this picture http://picasaweb. google.fr/ benoit.thiebault /AlbumSansTitre/ photo#5102289531 346166354 The button I want to add should not act like it's part of the existing tabBar. When the user clicks the button, it hides/shows the content of my tabNavigator. In fact, it just toggles the height of the component to make it appear or disappear (in that case, you can only see the tabBar, not the viewstack underneath). I tried to create just the button (without anything else than the button: no HBox, no spacer, no tabs), but it didn't display anything... --- In [EMAIL PROTECTED] ups.com, ben.clinkinbeard ben.clinkinbeard@ ... wrote: Do you need your button to act like its part of the existing tabBar in that it would deselect any active tab and vice versa? If not (and maybe even if you do with a workaround) you can avoid creating the HBox and Spacer and just create a button. super.createChildre n() is also usually the first line of your overridden function unless there is a specific reason not to do it that way. I would also do your positioning in an overridden updateDisplayList as that is the proper place for positioning child components. I guess that may fall apart if you really need all the tabs to belong to a single tabBar, but I'm not sure. Sorry, these are all kind of just guesses as I've not worked with TabBar or Spacer at all. Is it possible your button is there but being pushed off of the screen? HTH, Ben --- In [EMAIL PROTECTED] ups.com, Benoit Thiebault neopium@ wrote: Hi everyone ! [:)] I need to extend the TabNavigator class in order to display a tab bar containing : - tabs on the left (as usual) - a button the user can click on the right Of course, my button should stay on the right of the tab bar whatever the size of the TabBarNavigator I didn't want to start from scratch, so I had a look at FlexLib and its great SuperTabNavigator. However, my tabNavigator is much more simpler than the SuperTabNavigator and I just wanted to extend one class : TabNavigator. I tried this : package extensions { import mx.containers. TabNavigator; import mx.controls. TabBar; import mx.controls. tabBarClasses. Tab; import mx.core.mx_internal ; import mx.core.IFlexDispla yObject; import flash.display. DisplayObject; import mx.controls. Button; import mx.containers. HBox; import mx.containers. Canvas; import mx.controls. Spacer; use namespace mx_internal; public class extended_TabNavigat or extends TabNavigator { protected var holder:HBox; protected var spacer:Spacer; protected var myButton:Button; public function extended_TabNavigat or() { super(); } override protected function createChildren( ):void{ // Tab bar creation tabBar = new TabBar(); super.createChildre n(); // Holder that will contain my tab bar, a spacer and the button holder = new HBox(); // Adds the container to the TabNavigator rawChildren. addChild( holder); // Adds the TabBar to the holder container holder.addChild( tabBar); // Spacer that will fill the space between the tabs and the button spacer = new Spacer(); spacer.percentWidth = 100; // Adds the spacer to the container
[flexcoders] Re: file upload max?
What kind of server side technology are you using? I think Apache and PHP default between 8 and 12mb, but you have to also take into account the script timeout of 30 seconds. If you're using IIS, the same kind of limitation applies. Though, I can't speak on LCDS or the like. - William --- In flexcoders@yahoogroups.com, grimmwerks [EMAIL PROTECTED] wrote: Is the max filesize 100 megs? Testing upload functionality and it seems to be working, but I'm testing the max size, and huge files (224megs) report that they upload but then they're not there on the server...
[flexcoders] converting mxml data to xml code
Hi All, Anydody have the code to convert mxml data to .xml file. I have found this code in net. class XMLUtil { static function as2xml(obj: Object, nodeName: String) { var xml:XML=new XML(); xml.appendChild(xml.createElement(nodeName)); for (var i in obj) { handleItem(xml, obj[i], i); } return xml; } private static function handleItem(xml, item, nodeName: String) { var type=typeof item; if (type==string || type==number || item instanceof Date) { var el=xml.createElement(nodeName); el.appendChild(xml.createTextNode(item)); xml.firstChild.appendChild(el); } else if (item instanceof Array) { for(var i=0; iitem.length; i++) handleItem(xml, item[i], nodeName); } else if (item instanceof Object) xml.firstChild.appendChild(as2xml(item, nodeName)); } } But its not working. I created relevant as files. Anybody have the code to convert to mxml data to xml like above. Thanks Regards, Siva Kumar
[flexcoders] Rollover event for Tree label
Hi, I am having a tree with checkbox added as itemrenderer.Problem is that I need rollover effect only for label.Tree control by default uses the whole control for rollover.Is there any way to get rollover effect for the label alone,not for the whole node. Thanks.
[flexcoders] html-wrapper Flex Ant Task
I've got two questions about using Ant to generate the html for our project. 1) Why isn't there a way to specify an external template folder? I searched this site and saw that people were re-compiling FlexAntTasks in order to get their template changes to work. Is this really the recommended solution??? 2) Ok, so maybe asking for a complete external template configuration is too much, how about something simple like allowing us to set allowFullScreen equal to true?
Re : Re : [flexcoders] Re: Problem extending TabNavigator class
Yes, the code is the following : override protected function updateDisplayList(w:Number, h:Number):void{ super.updateDisplayList(w,h); updateButtonPosition(); } public function updateButtonPosition():void { myButton.move(parent.width-40, 0); } - Message d'origine De : ben.clinkinbeard [EMAIL PROTECTED] À : flexcoders@yahoogroups.com Envoyé le : Lundi, 27 Août 2007, 15h29mn 28s Objet : Re : [flexcoders] Re: Problem extending TabNavigator class You should be setting its position every time updateDisplayList( ) is called. Are you doing that? Ben --- In [EMAIL PROTECTED] ups.com, Benoit Thiebault [EMAIL PROTECTED] wrote: I followed your advice and managed to position my button. First of all, I extended the tabBar class instead of the tabNavigator class. I added (via a rawChildren. addChild( ) method) my button to the tabBar and overrid the updateDisplayList( ) method to place the button. The position of the button is relative to its parent (the TabBar). The trick is that the TabBar width is null when you call the createChildren( ) method, so you can't set the position of the button in this method (which is what I did in the first place). But the parent width is not null anymore when the updateDisplayList( ) method is called. I just have one problem left : my TabNavigator is placed in a Panel, contained in an HDividedBox. The positionning of the button is perfect at loading, but when I resize the HDividedBox, the positionning is not updated... Is there another method I forgot to override ? - Message d'origine De : Benoit Thiebault [EMAIL PROTECTED] À : [EMAIL PROTECTED] ups.com Envoyé le : Vendredi, 24 Août 2007, 17h57mn 54s Objet : [flexcoders] Re: Problem extending TabNavigator class Hi Ben, and thank you for your answer :-) You can see what I want to do on this picture http://picasaweb. google.fr/ benoit.thiebault /AlbumSansTitre/ photo#5102289531 346166354 The button I want to add should not act like it's part of the existing tabBar. When the user clicks the button, it hides/shows the content of my tabNavigator. In fact, it just toggles the height of the component to make it appear or disappear (in that case, you can only see the tabBar, not the viewstack underneath). I tried to create just the button (without anything else than the button: no HBox, no spacer, no tabs), but it didn't display anything... --- In [EMAIL PROTECTED] ups.com, ben.clinkinbeard ben.clinkinbeard@ ... wrote: Do you need your button to act like its part of the existing tabBar in that it would deselect any active tab and vice versa? If not (and maybe even if you do with a workaround) you can avoid creating the HBox and Spacer and just create a button. super.createChildre n() is also usually the first line of your overridden function unless there is a specific reason not to do it that way. I would also do your positioning in an overridden updateDisplayList as that is the proper place for positioning child components. I guess that may fall apart if you really need all the tabs to belong to a single tabBar, but I'm not sure. Sorry, these are all kind of just guesses as I've not worked with TabBar or Spacer at all. Is it possible your button is there but being pushed off of the screen? HTH, Ben --- In [EMAIL PROTECTED] ups.com, Benoit Thiebault neopium@ wrote: Hi everyone ! [:)] I need to extend the TabNavigator class in order to display a tab bar containing : - tabs on the left (as usual) - a button the user can click on the right Of course, my button should stay on the right of the tab bar whatever the size of the TabBarNavigator I didn't want to start from scratch, so I had a look at FlexLib and its great SuperTabNavigator. However, my tabNavigator is much more simpler than the SuperTabNavigator and I just wanted to extend one class : TabNavigator. I tried this : package extensions { import mx.containers. TabNavigator; import mx.controls. TabBar; import mx.controls. tabBarClasses. Tab; import mx.core.mx_internal ; import mx.core.IFlexDispla yObject; import flash.display. DisplayObject; import mx.controls. Button; import mx.containers. HBox; import mx.containers. Canvas; import mx.controls. Spacer; use namespace mx_internal; public class extended_TabNavigat or extends TabNavigator { protected var holder:HBox; protected var spacer:Spacer;
Re: [flexcoders] Re: file upload max?
The official upload limit for the flash player is 100MB (see livedocs: flash.net.FileReference.upload()), but flash is known to send much bigger files successfully. Adobe just doesn't guarantee that it will work. Try searching the list archives for what people have gotten away with because this topic has been brought up before. And as William mentioned, your server side technology might create an additional limit. - Dan Freiman On 8/27/07, Abyss Knight [EMAIL PROTECTED] wrote: What kind of server side technology are you using? I think Apache and PHP default between 8 and 12mb, but you have to also take into account the script timeout of 30 seconds. If you're using IIS, the same kind of limitation applies. Though, I can't speak on LCDS or the like. - William --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, grimmwerks [EMAIL PROTECTED] wrote: Is the max filesize 100 megs? Testing upload functionality and it seems to be working, but I'm testing the max size, and huge files (224megs) report that they upload but then they're not there on the server...
RE: [flexcoders] Remote Objects - a reflective way to determine class?
See: flash.utils.getQualifiedClassName() http://livedocs.adobe.com/flex/2/langref/flash/utils/package.html#getQua lifiedClassName() -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Libby Sent: Monday, August 27, 2007 8:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Remote Objects - a reflective way to determine class? Does anyone know of a technique to determine the true class of an object returned via remoting when Flex only knows it as an Object? I have tried if(Object is ClassName) and if(Object instanceOf ClassName) and also tried various casting combinations but so far I cannot determine what my returned Object is without parsing it to look for a specific field - not very object-oriented : ( Thanks, Libby -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] Re: Trying out new Cold Fusion/Flex Application Wizard
Was there ever a resolution to this problem?? I'm having the same problems with every app I generate using the CF app wizard. I'm using FB 2.01 with all the hotfixes. Any help would be appreciated. --- In flexcoders@yahoogroups.com, christophers1228 [EMAIL PROTECTED] wrote: This has been a problem for me also. It works sometimes but most times it does not. It seems like the results aren't being bound to the form in time (before it pops up the window) very frustrating, because it definately works sometimes. --- In flexcoders@yahoogroups.com, yaagcur agcur@ wrote: This looks like an awesome wizrd for RAD However, I have hit a slight problem trying it out I have a master page which provides a list of people which when I select one and press an edit button produces a form with more details of the person. This works fine first time out but when I select another person the form appears with default data(zeros) rather than actual Bit difficult to understand what I'm talking about unless you have tried this but has anyone else had same problem?
RE: [flexcoders] Re: DataGrid with labelfunction + POJO
Make sure that you have registered a class alias for your ActionScript representation of the Formasi class. You can do so like this: package bkn.pojo { [RemoteClass[(alias=bkn.pojo.Formasi)] public class Formasi { ... } } You also need to make sure you have a reference to the Formasi class in your ActionScript code so that it is linked into the SWF at compile time. There are several ways to do this. The usual way is to import it and then declare a private static variable of the type you want to create a dependency. Another way would be to ensure you're using it in your code somewhere such as a casting statement or as a type of a function argument etc... From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jon Santos Sent: Monday, August 27, 2007 4:33 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: DataGrid with labelfunction + POJO Hi again. I have tried to make like you told me before : import bkn.pojo.Formasi; public function getInstansiNama(item:Object, column:DataGridColumn):String { var myPOJOFormasi:Formasi = Formasi(item); Alert.show(Instansi : + myPOJOFormasi.instansi); return PPP; } The value of the instansi : NULL Here i send to you the source of the function where i get the Formasi List, because i use that function in dataProvider of my DataGrid: public Formasi[] getFormasi( String pTahun ) throws ClassNotFoundException, SQLException { Formasi[] myFormasi = null ; try { Configuration cfg = new Configuration (); cfg.configure(); SessionFactory sessions = cfg.buildSessionFactory(); Session session = sessions.openSession(); Criteria crit = session.createCriteria(Formasi.class); Integer iTahun = Integer.valueOf(pTahun); crit.add( Restrictions.eq(tahun, iTahun)); crit.setMaxResults(10); java.util.List formasis = crit.list(); myFormasi = new Formasi [formasis.size()]; formasis.toArray(myFormasi); //Here the result never is NULL, always have the correct data System.out.println(+++ Despues de load: + myFormasi[0].getInstansi().getNama()); return myFormasi; } catch (Exception ex) { System.out.println(Exception + ex.getMessage()); } finally { return myFormasi; } } Thanks in advance - Original Message From: simonjpalmer [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, August 26, 2007 10:11:05 AM Subject: [flexcoders] Re: DataGrid with labelfunction + POJO what happens if you cast item to a FormasiFlex, e.g. FormasiFlex( item).istansi; --- In [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com , Jon Santos [EMAIL PROTECTED] wrote: If i put one Alert to display ITEM, the value is : item : [object FormasiFlex] This is the code i have using to see the value of the ITEM object: public function myInstansiNama( item:Object, column:DataGridColu mn):String { Alert.show( item : + item.toString( )); return item.toString( ); } In the attached file i send to you one screenshot, you will see my problem. If someone can help me...thaks in advance. - Original Message From: Jon Santos [EMAIL PROTECTED] To: [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com Sent: Thursday, August 23, 2007 8:13:04 PM Subject: Re: [flexcoders] Re: DataGrid with labelfunction + POJO My MXML file is like that : ?xml version=1.0 encoding=utf- 8? mx:Application xmlns:mx=http://www.adobe. http://www.adobe./ com/2006/ mxml layout=absolute xmlns:ns1=war. pruebas. * creationComplete= ActivateEvents( ) mx:Script ![CDATA[ import bkn.pojo.InstansiPe merintah; import mx.core.IDataRender er; import mx.events.FlexEvent ; import mx.core.Container; import mx.controls. Alert; import mx.collections. ArrayCollection; import mx.containers. *; import mx.validators. NumberValidator; /* [Bindable] [RemoteClass( alias=bkn. pojo.JenisFormas i)] public class JenisFormasi { public var kode:String; public var deskripsi:String; } */ private var AddOrEdit:String; private var DosActivated: Boolean = false; private function lihatTahun() :void { this.srv.getFormasi (this.txtTahun. text) ; } private function ActivateEvents( ):void { this.dos.addEventLi sten er(FlexEvent. CREATION_ COMPLETE, setValues) ; } private function setValues(e: FlexEvent) :void { this.AddEdit( ); } private function ActionAdd(): void { this.AddOrEdit = Add; this.vs.selectedChi ld = dos; if (this.DosActivated) { this.AddEdit( ); } } private function InsertFormasi ():void { } private function ActionEdit() :void { this.AddOrEdit = Edit; this.vs.selectedChi ld = dos; if (this.DosActivated) { this.AddEdit( ); } } public function AddEdit():void { if (this.AddOrEdit != Edit) { this.myFormasi. tahun. text = ; this.myFormasi. jumlah. text = ; this.myFormasi. tanggalM enpan.text = ; this.myFormasi. Instansi Nama.text = ; } else { this.myFormasi. tahun. text = this.dg.selectedIte
Re : Re : [flexcoders] Re: Problem extending TabNavigator class
I think your scope is incorrect. Try this: myButton.move(this.width-40, 0); --- In flexcoders@yahoogroups.com, Benoit Thiebault [EMAIL PROTECTED] wrote: Yes, the code is the following : override protected function updateDisplayList(w:Number, h:Number):void{ super.updateDisplayList(w,h); updateButtonPosition(); } public function updateButtonPosition():void { myButton.move(parent.width-40, 0); } - Message d'origine De : ben.clinkinbeard [EMAIL PROTECTED] À : flexcoders@yahoogroups.com Envoyé le : Lundi, 27 Août 2007, 15h29mn 28s Objet : Re : [flexcoders] Re: Problem extending TabNavigator class You should be setting its position every time updateDisplayList( ) is called. Are you doing that? Ben --- In [EMAIL PROTECTED] ups.com, Benoit Thiebault neopium@ wrote: I followed your advice and managed to position my button. First of all, I extended the tabBar class instead of the tabNavigator class. I added (via a rawChildren. addChild( ) method) my button to the tabBar and overrid the updateDisplayList( ) method to place the button. The position of the button is relative to its parent (the TabBar). The trick is that the TabBar width is null when you call the createChildren( ) method, so you can't set the position of the button in this method (which is what I did in the first place). But the parent width is not null anymore when the updateDisplayList( ) method is called. I just have one problem left : my TabNavigator is placed in a Panel, contained in an HDividedBox. The positionning of the button is perfect at loading, but when I resize the HDividedBox, the positionning is not updated... Is there another method I forgot to override ? - Message d'origine De : Benoit Thiebault neopium@ À : [EMAIL PROTECTED] ups.com Envoyé le : Vendredi, 24 Août 2007, 17h57mn 54s Objet : [flexcoders] Re: Problem extending TabNavigator class Hi Ben, and thank you for your answer :-) You can see what I want to do on this picture http://picasaweb. google.fr/ benoit.thiebault /AlbumSansTitre/ photo#5102289531 346166354 The button I want to add should not act like it's part of the existing tabBar. When the user clicks the button, it hides/shows the content of my tabNavigator. In fact, it just toggles the height of the component to make it appear or disappear (in that case, you can only see the tabBar, not the viewstack underneath). I tried to create just the button (without anything else than the button: no HBox, no spacer, no tabs), but it didn't display anything... --- In [EMAIL PROTECTED] ups.com, ben.clinkinbeard ben.clinkinbeard@ ... wrote: Do you need your button to act like its part of the existing tabBar in that it would deselect any active tab and vice versa? If not (and maybe even if you do with a workaround) you can avoid creating the HBox and Spacer and just create a button. super.createChildre n() is also usually the first line of your overridden function unless there is a specific reason not to do it that way. I would also do your positioning in an overridden updateDisplayList as that is the proper place for positioning child components. I guess that may fall apart if you really need all the tabs to belong to a single tabBar, but I'm not sure. Sorry, these are all kind of just guesses as I've not worked with TabBar or Spacer at all. Is it possible your button is there but being pushed off of the screen? HTH, Ben --- In [EMAIL PROTECTED] ups.com, Benoit Thiebault neopium@ wrote: Hi everyone ! [:)] I need to extend the TabNavigator class in order to display a tab bar containing : - tabs on the left (as usual) - a button the user can click on the right Of course, my button should stay on the right of the tab bar whatever the size of the TabBarNavigator I didn't want to start from scratch, so I had a look at FlexLib and its great SuperTabNavigator. However, my tabNavigator is much more simpler than the SuperTabNavigator and I just wanted to extend one class : TabNavigator. I tried this : package extensions { import mx.containers. TabNavigator; import mx.controls. TabBar; import mx.controls.
[flexcoders] a little newbie problem
Hi Guys, I'm just doing something in flex and I'd like to know what am I doing wrongthe code is as following. I'm trying to set a changing background based on the date (days of the week) ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ private function canvasBackground():void{ var now:Date= new Date(); if (now==1 || now==3 || now==5)//this is where the problems start 1176: Comparison between a value with static type Date and a possibly unrelated type String. { myLoader.load(http://leftandrightsolutions.com/backy1.jpg;); } } ]] /mx:Script mx:Canvas y=0 width=100% height=100% horizontalCenter=0 id=container1 label=hello creationComplete=canvasBackground() mx:SWFLoader id=myLoader width=100% height=100% horizontalCenter=0/ /mx:Canvas /mx:Application I'd appreciate any help friends. GUSTAVO A. DUENAS Creative Director LEFT AND RIGHT SOLUTIONS 904. 265 0330 - 904. 386 7958 www.leftandrightsolutions.com Jacksonville - Florida
Re: [flexcoders] converting mxml data to xml code
Not working how? - Dan On 8/27/07, siva.flex [EMAIL PROTECTED] wrote: Hi All, Anydody have the code to convert mxml data to .xml file. I have found this code in net. class XMLUtil { static function as2xml(obj: Object, nodeName: String) { var xml:XML=new XML(); xml.appendChild(xml.createElement(nodeName)); for (var i in obj) { handleItem(xml, obj[i], i); } return xml; } private static function handleItem(xml, item, nodeName: String) { var type=typeof item; if (type==string || type==number || item instanceof Date) { var el=xml.createElement(nodeName); el.appendChild(xml.createTextNode(item)); xml.firstChild.appendChild(el); } else if (item instanceof Array) { for(var i=0; iitem.length; i++) handleItem(xml, item[i], nodeName); } else if (item instanceof Object) xml.firstChild.appendChild(as2xml(item, nodeName)); } } But its not working. I created relevant as files. Anybody have the code to convert to mxml data to xml like above. Thanks Regards, Siva Kumar
[flexcoders] Effect.EFFECT_START listener unable to pause() effect
Is Effect.isPlaying lying to me? It returns true, but I am unable to pause() or otherwise affect said effect. If I call pause() after a short delay everything works as expected. How do I go about pausing/canceling an effect from its EFFECT_START listener? Thanks, Ben
[flexcoders] Re: Verify an Object in Memory.
the problem to verify instancia in the memory already I solved, Thanks Alex!! \o/ but somebody has idea of as can make the navigation? --- In flexcoders@yahoogroups.com, Rodrigo Pereira Fraga [EMAIL PROTECTED] wrote: Excuses, but I expressed myself badly. Problem 1: -- I have a PopUp (myPopUpWindow), and only he can have, one instance. thus, I make: if (myPopUpWindow! = instancied) { showMyPopWindow; } Poblem 2: - What I need to make, is the navigation between windows (PopUp's). you know the button Back and forward of the Explorer? The logic of navigation until already I mounted, but I do not know what to call when the button back or forward will be pressed. Thanks! --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: Not sure I understand. Do you want to know if a class had an instance made from it? I'd put a static variable like a counter in the constructor. Do you want to use keyboard to switch between a Flash App and Windows? Or between popups in a Flex app? Or use the mouse to switch Windows? Flex handles mouse switching, but you probably can't get at alt- tab and maybe not ctrl-tab either. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rodrigo Pereira Fraga Sent: Sunday, August 26, 2007 6:47 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Verify an Object in Memory. how I can verify if an Object was instancied, (mxml or as3)? and.. i need to make the logic to advance and to back of the windows common in MSWindows... somebody has an idea of which would be the best solution? Good Week! Thanks!
[flexcoders] Re: Effect.EFFECT_START listener unable to pause() effect
I see that listening for TweenEvent.TWEEN_START allows me to do what I am trying to... is that how I need to do it? Ben --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: Is Effect.isPlaying lying to me? It returns true, but I am unable to pause() or otherwise affect said effect. If I call pause() after a short delay everything works as expected. How do I go about pausing/canceling an effect from its EFFECT_START listener? Thanks, Ben
[flexcoders] Re: a little newbie problem
Gustavo, Try: if (now.day.toString() == 1 || now.day.toString() == 3 || now.day.toString() == 5) best, Graham
[flexcoders] What technologies allow you to run AS3 on the server side?
Hi all, Does anyone know of any technologies that all you to run Actionscript 3 on the server side? I'm a traditional Java/J2EE programmer, and I've become REALLY lazy when it comes to XML parsing now. The . and .. and .@ operators are really convenient mechanisms for parsing even the most complex forms of XML. Does anyone know of any servers that allow server side Actionscript 3 (I'm especially interested in parsing XML with the dot-notation). Thanks, Bruce
Re: [flexcoders] Re: a little newbie problem
thanks that was good, I did and It looks ok, Thanks. Regards Gustavo On Aug 27, 2007, at 10:57 AM, candysmate wrote: Gustavo, Try: if (now.day.toString() == 1 || now.day.toString() == 3 || now.day.toString() == 5) best, Graham GUSTAVO A. DUENAS Creative Director LEFT AND RIGHT SOLUTIONS 904. 265 0330 - 904. 386 7958 www.leftandrightsolutions.com Jacksonville - Florida
Re: [flexcoders] Re: AIR vs DLL vs. External code?
hank williams wrote: Software as a service feels like a move back to the 'dumb client' model of mainframes. Even if it does take off en masse, I don't expect it to replace traditional desktop apps. Naw dude, not at all. Connected or software as service doesn't have to mean bad terminal like software, though until recently I would agree that it did. When most people talk about Software as a service they use Google Docs as a prime example. That's just software in a browser, and I don't ever expect it (or Buzzword) to replace my MS Word. However, if you are using 'software as a service' to include something like iTunes ( Which is Softare and Services), then that makes a lot more sense to me. If you lament the notion or disagree with the idea that most desktop productivity apps will begin to be designed around internet awareness and/or collaboration we should revist this in another 18 months. You pick the place - looser buys the beer :) I have no doubt they will. I'm just not sold on the benefits of such an environment yet. Feel free to call me a skeptic. -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
Re: [flexcoders] What technologies allow you to run AS3 on the server side?
There was an implementation of Server Side ActionScript a while back: http://www.adobe.com/support/flash/flashremoting/using_serverside_actions/ I don't know if it ever took off (I assume not), and I don't know if it was ever ypdated for AS3 (I assume not). ColdFusion's treatment of XML is similar to AS3s treatment of it. If memory serves me, .NET treats XML just as any other data set, and I really liked that approach the one time I had to use it. Bruce Hopkins wrote: Hi all, Does anyone know of any technologies that all you to run Actionscript 3 on the server side? I'm a traditional Java/J2EE programmer, and I've become REALLY lazy when it comes to XML parsing now. The . and .. and .@ operators are really convenient mechanisms for parsing even the most complex forms of XML. Does anyone know of any servers that allow server side Actionscript 3 (I'm especially interested in parsing XML with the dot-notation). Thanks, Bruce -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
[flexcoders] Flex 3 Runtime Error
I'm trying to get a flex 2 app I wrote working as an AIR app, but I'm getting an error that appears to occur when the styles are changed for buttons in my app: I'm hoping someone else has run into this issue (and resolved it :)) or have an idea of what might be causing it. Many thanks, Shaun The full call stack: ArgumentError: Error #2004: One of the parameters is invalid. at flash.display::Graphics/drawRoundRect() at mx.skins::ProgrammaticSkin/mx.skins:ProgrammaticSkin::drawRoundRect() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:74 3] at mx.skins.halo::ButtonSkin/mx.skins.halo:ButtonSkin::updateDisplayList ()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\skins\halo\ButtonSkin.as:215 ] at mx.skins::ProgrammaticSkin/validateDisplayList() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:41 9] at mx.skins::ProgrammaticSkin/validateNow() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:50 7] at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::viewSk inForPhase()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\controls\Button.as:1684] at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::viewSk in()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\controls\Button.as:1616] at mx.controls::Button/styleChanged()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\controls\Button.as:1550] at mx.core::UIComponent/notifyStyleChangeInChildren() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:7361] at mx.core::Container/mx.core:Container::commitProperties() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\Container.as:2610] at mx.core::UIComponent/validateProperties() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:5386] at mx.managers::LayoutManager/validateClient() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:78 9] at mx.core::UIComponent/validateNow()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:5304] at mx.core::UIComponent/mx.core:UIComponent::creationCompleteHandler() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8128] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv entFunction() at flash.events::EventDispatcher/dispatchEvent()[C:\Documents and Settings\acrorel\Local Settings\Temp\aslibc-28157 \EventDispatcher.as:209] at mx.core::UIComponent/dispatchEvent()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8530] at mx.core::UIComponent/set initialized()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:1097] at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstanti ation()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:69 6] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8102] at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8045]
Re: [flexcoders] Re: AIR vs DLL vs. External code?
No arguments. ;) Tony Alves wrote: Hello Jeffry, I agree with you. I do not see a benefit of running a word processor in an online application unless it is maybe to edit some content in the application. I really do not want to run my word processor in a browser application either. Do I need a word processor to be cross platform (Win, Linux, Mac)? Probably not. What I would like to do is be able to have some other server store my documents and back them up allowing me to categorize them and share them with my colleagues online. This is the benefit of online services that I think will be in demand. Another example that drives me crazy right now is my online banking. I love online banking. I hate the applications that they use to administer this great online service. There are an infinite number of examples of online services that would run applications that you would not want installed on your client machine. If I had to install every one of them that I liked, I would have to get another tera-byte of disk and delete all my mp3's :( Not to mention the time it would take to install the upgrades when they had bug fixes. You are right, software as a service model is not really going to work for most users. But, online services using RIA will definitely be the future. Until lately, we did not have a good framework for creating good user interfaces for data driven applications on the internet. Client applications are not going away either. We are just saying that there is a HUGE demand for online applications that WORK well. A good way to prove this is to look at the number of online applications already running today. They would greatly benefit from a Flex (or other) upgrade. Salesforce.com is a perfect example of an online service model that works. They are very successful and even realize the need for Rich Internet Applications. They have put a ton of time into creating an API in actionscript. And I must say, it rocks. Regards, Tony Jeffry Houser wrote: hank williams wrote: Software as a service feels like a move back to the 'dumb client' model of mainframes. Even if it does take off en masse, I don't expect it to replace traditional desktop apps. Naw dude, not at all. Connected or software as service doesn't have to mean bad terminal like software, though until recently I would agree that it did. When most people talk about Software as a service they use Google Docs as a prime example. That's just software in a browser, and I don't ever expect it (or Buzzword) to replace my MS Word. However, if you are using 'software as a service' to include something like iTunes ( Which is Softare and Services), then that makes a lot more sense to me. If you lament the notion or disagree with the idea that most desktop productivity apps will begin to be designed around internet awareness and/or collaboration we should revist this in another 18 months. You pick the place - looser buys the beer :) I have no doubt they will. I'm just not sold on the benefits of such an environment yet. Feel free to call me a skeptic. -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com http://www.dot-com-it.com My Podcast: http://www.theflexshow.com http://www.theflexshow.com My Blog: http://www.jeffryhouser.com http://www.jeffryhouser.com -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
Re: [flexcoders] What technologies allow you to run AS3 on the server side?
I hear a new version of Flash Media Server is in the works that should support AS3. I don't know if that's slated to arrive this year though... cheers, jon On Aug 27, 2007, at 11:06 AM, Bruce Hopkins wrote: Hi all, Does anyone know of any technologies that all you to run Actionscript 3 on the server side? I'm a traditional Java/J2EE programmer, and I've become REALLY lazy when it comes to XML parsing now. The . and .. and .@ operators are really convenient mechanisms for parsing even the most complex forms of XML. Does anyone know of any servers that allow server side Actionscript 3 (I'm especially interested in parsing XML with the dot-notation). Thanks, Bruce
RE: [flexcoders] Flex 3 Runtime Error
Could be timing where the Button doesn't have a valid size yet. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shaun Sent: Monday, August 27, 2007 9:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 3 Runtime Error I'm trying to get a flex 2 app I wrote working as an AIR app, but I'm getting an error that appears to occur when the styles are changed for buttons in my app: I'm hoping someone else has run into this issue (and resolved it :)) or have an idea of what might be causing it. Many thanks, Shaun The full call stack: ArgumentError: Error #2004: One of the parameters is invalid. at flash.display::Graphics/drawRoundRect() at mx.skins::ProgrammaticSkin/mx.skins:ProgrammaticSkin::drawRoundRect() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:74 3] at mx.skins.halo::ButtonSkin/mx.skins.halo:ButtonSkin::updateDisplayList ()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\skins\halo\ButtonSkin.as:215 ] at mx.skins::ProgrammaticSkin/validateDisplayList() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:41 9] at mx.skins::ProgrammaticSkin/validateNow() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:50 7] at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::viewSk http://www.adobe.com/2006/flex/mx/internal::viewSk inForPhase()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\controls\Button.as:1684] at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::viewSk http://www.adobe.com/2006/flex/mx/internal::viewSk in()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\controls\Button.as:1616] at mx.controls::Button/styleChanged()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\controls\Button.as:1550] at mx.core::UIComponent/notifyStyleChangeInChildren() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:7361] at mx.core::Container/mx.core:Container::commitProperties() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\Container.as:2610] at mx.core::UIComponent/validateProperties() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:5386] at mx.managers::LayoutManager/validateClient() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:78 9] at mx.core::UIComponent/validateNow()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:5304] at mx.core::UIComponent/mx.core:UIComponent::creationCompleteHandler() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8128] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv entFunction() at flash.events::EventDispatcher/dispatchEvent()[C:\Documents and Settings\acrorel\Local Settings\Temp\aslibc-28157 \EventDispatcher.as:209] at mx.core::UIComponent/dispatchEvent()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8530] at mx.core::UIComponent/set initialized()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:1097] at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstanti ation()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:69 6] at Function/http://adobe.com/AS3/2006/builtin::apply http://adobe.com/AS3/2006/builtin::apply () at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8102] at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8045]
[flexcoders] Re: Remote Objects - a reflective way to determine class?
Yeah, I tried that - it returns Object. --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: See: flash.utils.getQualifiedClassName() http://livedocs.adobe.com/flex/2/langref/flash/utils/package.html#getQua lifiedClassName() -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Libby Sent: Monday, August 27, 2007 8:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Remote Objects - a reflective way to determine class? Does anyone know of a technique to determine the true class of an object returned via remoting when Flex only knows it as an Object? I have tried if(Object is ClassName) and if(Object instanceOf ClassName) and also tried various casting combinations but so far I cannot determine what my returned Object is without parsing it to look for a specific field - not very object-oriented : ( Thanks, Libby -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] Re: Flex 3 Runtime Error
That's probably it. If I force my way through the errors and then the app runs perfectly after that, even if I change the styles again. Now I'm trying to figure out which buttons are causing the problem, but I can't get the debugger to step into the code at the call stack location. It always says source not found, even if I set the source path. Is there a reason for this? Thanks again, Shaun P.S. It appears that using the backward compatibility flag resolves this issue for me, but I can't use it due to the bug with datagridheaders and the backward compatibility flag. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Could be timing where the Button doesn't have a valid size yet. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shaun Sent: Monday, August 27, 2007 9:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 3 Runtime Error I'm trying to get a flex 2 app I wrote working as an AIR app, but I'm getting an error that appears to occur when the styles are changed for buttons in my app: I'm hoping someone else has run into this issue (and resolved it :)) or have an idea of what might be causing it. Many thanks, Shaun The full call stack: ArgumentError: Error #2004: One of the parameters is invalid. at flash.display::Graphics/drawRoundRect() at mx.skins::ProgrammaticSkin/mx.skins:ProgrammaticSkin::drawRoundRect () [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:74 3] at mx.skins.halo::ButtonSkin/mx.skins.halo:ButtonSkin::updateDisplayList ()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\skins\halo\ButtonSkin.as:215 ] at mx.skins::ProgrammaticSkin/validateDisplayList() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:41 9] at mx.skins::ProgrammaticSkin/validateNow() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:50 7] at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::viewSk http://www.adobe.com/2006/flex/mx/internal::viewSk inForPhase()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\controls\Button.as:1684] at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::viewSk http://www.adobe.com/2006/flex/mx/internal::viewSk in()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\controls\Button.as:1616] at mx.controls::Button/styleChanged()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\controls\Button.as:1550] at mx.core::UIComponent/notifyStyleChangeInChildren() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:7361] at mx.core::Container/mx.core:Container::commitProperties() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\Container.as:2610] at mx.core::UIComponent/validateProperties() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:5386] at mx.managers::LayoutManager/validateClient() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:78 9] at mx.core::UIComponent/validateNow()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:5304] at mx.core::UIComponent/mx.core:UIComponent::creationCompleteHandler() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8128] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv entFunction() at flash.events::EventDispatcher/dispatchEvent()[C:\Documents and Settings\acrorel\Local Settings\Temp\aslibc-28157 \EventDispatcher.as:209] at mx.core::UIComponent/dispatchEvent()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8530] at mx.core::UIComponent/set initialized()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:1097] at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstanti ation()[E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:69 6] at Function/http://adobe.com/AS3/2006/builtin::apply http://adobe.com/AS3/2006/builtin::apply () at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8102] at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher() [E:\dev\flex_3_beta1 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8045]
[flexcoders] accessing ArrayCollection in class
Hello, I'm new to actionscript programming so this is certainly a newbie question. I'm trying to access an array from the mxml file in a loaded actionscript package. Not sure how to bind the data between the two. mxml: ... Model id=pic_res source=piclist.xml / Model id=links_res source=links.xml / ArrayCollection id=myAC source={ArrayUtil.toArray(pic_res.pic)} / ArrayCollection id=theLinks source={ArrayUtil.toArray(links_res.link)} / local:DisplayShelf id=shelf horizontalCenter=0 verticalCenter=-10 borderThickness=5 ... I need to access theLinks array in DisplayShelf.as I've tried using theLinks in the actionscript file but I get errors saying theLinks is not defined. TIA, Dylan
[flexcoders] setting the icon of a Button using ActionSctipt at Run Time
Hi all, I would like to set the Icon of a Button to an Image and i would like to do this in ActionSctipt rather than in mxml I would be passing a data Object whose image Property is the path of the png file that i woule like to display as icon for the Button.. My Custom Button class has setIcon method.. [CODE] public function setICon(iconPath:String):void{ icon:Class = null; icon.set ?? // This didn't work as it expects a class //this.setStyle(icon,@Embed('+icon+')); } [/CODE] Pls let me know how can i set the icon path for a Button on the fly.. Regards Kumar
[flexcoders] Issue with transactions on Data Management Service
Hello, I'm actually creating an application for a library and I'm running it on JBoss 4.2.0.GA with underlying DB2 8.2. The application relies on a POJO + Hibernate3 server backend, communicating with the Flex client thru Data Management Service destinations. The problem I get is the following; as long as I ask for records using the dataservice.fill() method, I encounter no issue and the app works fine. But as soon as I try to create a new item, or modify an existing one, I get this error in STDOUT: 2004-10-24 20:26:35,125 INFO [STDOUT] [Flex] Exception when invoking service: data-service with message: Flex Message (flex.data.messages.DataMessage) operation = transacted id = null clientId = 81828BBA-8E7A-B668-86B3-76D34BF1071F correlationId = destination = utente.hibernate messageId = ADE53343-F3F1-D938-A31D-CC308E3F66B1 timestamp = 1098642394734 timeToLive = 0 body = [ Flex Message (flex.data.messages.DataMessage) operation = create_and_sequence id = ASObject(19507034){id=2004901826687} clientId = 43BC3541-8881-F29B-B186-CC3039979243 correlationId = ADE53343-F3F1-D938-A31D-CC308E3F66B1 destination = utente.hibernate messageId = 59933554-59E2-8624-EA5B-CC308E3F279A timestamp = 0 timeToLive = 0 body = [EMAIL PROTECTED] ] hdr(DSEndpoint) = my-rtmp exception: flex.data.DataServiceException: Unable to access UserTransaction in DataService. 2004-10-24 20:26:35,125 INFO [STDOUT] [Flex] Error handling rtmp message: flex.data.DataServiceException: Unable to access UserTransaction in DataService. incomingMessage: Flex Message (flex.data.messages.DataMessage) operation = transacted id = null clientId = 81828BBA-8E7A-B668-86B3-76D34BF1071F correlationId = destination = utente.hibernate messageId = ADE53343-F3F1-D938-A31D-CC308E3F66B1 timestamp = 1098642394734 timeToLive = 0 body = [ Flex Message (flex.data.messages.DataMessage) operation = create_and_sequence id = ASObject(19507034){id=2004901826687} clientId = 43BC3541-8881-F29B-B186-CC3039979243 correlationId = ADE53343-F3F1-D938-A31D-CC308E3F66B1 destination = utente.hibernate messageId = 59933554-59E2-8624-EA5B-CC308E3F279A timestamp = 0 timeToLive = 0 body = [EMAIL PROTECTED] ] hdr(DSEndpoint) = my-rtmp errorReply: Flex Message (flex.messaging.messages.ErrorMessage) clientId = null correlationId = ADE53343-F3F1-D938-A31D-CC308E3F66B1 destination = utente.hibernate messageId = 81828F75-2508-726A-7B40-2ECD5E71CF75 timestamp = 1098642395125 timeToLive = 0 body = null code = Server.Processing message = Unable to access UserTransaction in DataService. details = null rootCause = java.lang.ClassCastException: org.jboss.tm.usertx.client.ServerVMClientUserTransaction cannot be cast to javax.transaction.UserTransaction body = null extendedData = null 2004-10-24 20:26:35,125 INFO [STDOUT] [Flex] cause=java.lang.ClassCastException: org.jboss.tm.usertx.client.ServerVMClientUserTransaction cannot be cast to javax.transaction.UserTransaction type=class java.lang.ClassCastException java.lang.ClassCastException: org.jboss.tm.usertx.client.ServerVMClientUserTransaction cannot be cast to javax.transaction.UserTransaction at flex.data.DataServiceTransaction.doBegin(DataServiceTransaction.java:653) at flex.data.DataServiceTransaction.begin(DataServiceTransaction.java:624) at flex.data.DataService.serviceTransactedMessage(DataService.java:474) at flex.data.DataService.serviceMessage(DataService.java:241) at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:548) at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:302) at flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage(AbstractRTMPServer.java:682) at flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run(NIORTMPConnection.java:665) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690) at java.lang.Thread.run(Thread.java:619) 2004-10-24 20:26:35,140 INFO [STDOUT] [Flex] Serializing AMF/RTMP response Version: 3 (Command method=_error (0) trxId=17) (Typed Object #0 'flex.messaging.messages.ErrorMessage') headers = (Object #1) rootCause = (Typed Object #2 'java.lang.ClassCastException') message = org.jboss.tm.usertx.client.ServerVMClientUserTransaction cannot be cast to javax.transaction.UserTransaction localizedMessage = org.jboss.tm.usertx.client.ServerVMClientUserTransaction cannot be cast to javax.transaction.UserTransaction cause = null body = null correlationId =
RE: [flexcoders] Re: Verify an Object in Memory.
I still don't understand. If you only have one popup, what should back/forward do? Please investigate the third-party UrlKit for back/forward. In Flex 3, it will be BrowserManager. Feel free to ask questions both in english and follow with a copy in your native language. There are some good translators on this forum. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rodrigo Pereira Fraga Sent: Monday, August 27, 2007 7:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Verify an Object in Memory. the problem to verify instancia in the memory already I solved, Thanks Alex!! \o/ but... somebody has idea of as can make the navigation? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Rodrigo Pereira Fraga [EMAIL PROTECTED] wrote: Excuses, but I expressed myself badly. Problem 1: -- I have a PopUp (myPopUpWindow), and only he can have, one instance. thus, I make: if (myPopUpWindow! = instancied) { showMyPopWindow; } Poblem 2: - What I need to make, is the navigation between windows (PopUp's). you know the button Back and forward of the Explorer? The logic of navigation until already I mounted, but I do not know what to call when the button back or forward will be pressed. Thanks! --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Not sure I understand. Do you want to know if a class had an instance made from it? I'd put a static variable like a counter in the constructor. Do you want to use keyboard to switch between a Flash App and Windows? Or between popups in a Flex app? Or use the mouse to switch Windows? Flex handles mouse switching, but you probably can't get at alt- tab and maybe not ctrl-tab either. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Rodrigo Pereira Fraga Sent: Sunday, August 26, 2007 6:47 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Verify an Object in Memory. how I can verify if an Object was instancied, (mxml or as3)? and.. i need to make the logic to advance and to back of the windows common in MSWindows... somebody has an idea of which would be the best solution? Good Week! Thanks!
[flexcoders] new Date() not producing current date
I am tracking down the source of an issue with the Date() class. It seems that the following line should be producing today's date: var now:Date = new Date(); However, when running this today (8/27/2007), the resulting date object contains values for 7/1/2007. Has anyone run into this issue? Is this a bug? Thanks, Jurgen
RE: [flexcoders] Re: Event collision- is this a bug or expected behavior?
capture phase listeners cannot assume the type since child objects may be conversing with the same event type . From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Monday, August 27, 2007 6:26 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Event collision- is this a bug or expected behavior? bump --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , ben.clinkinbeard [EMAIL PROTECTED] wrote: I am noticing some odd behavior adding capture phase event listeners to TabNavigator. While trying to answer another question (http://tech.groups.yahoo.com/group/flexcoders/message/84929 http://tech.groups.yahoo.com/group/flexcoders/message/84929 ) I noticed that this code: tabNav.addEventListener(IndexChangedEvent.CHANGE, onChange, true); will cause a RTE if onChange()'s event arg is typed as IndexChangedEvent. As it turns out, listening to the capture phase causes the listener to receive a regular Event object whose target is the actual tab you clicked on. Listening to bubble phase produces an instance of IndexChangedEvent whose target is the actual TabNavigator, which is what I would think is the expected behavior. I am assuming the problem has something to do with the fact that IndexChangedEvent.CHANGE and Event.CHANGE both evaluate to change. Is this expected behavior? I can't quite get my head around why it would be but that doesn't mean its not. I actually had this problem with a custom component the other day and ended up changing the event's string value to avoid the collision. Thanks, Ben
RE: [flexcoders] How to set Scrollbars THICKNESS ?
If you skin with larger buttons, it should get thicker (but not thinner). From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tadas Žiemys Sent: Monday, August 27, 2007 6:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to set Scrollbars THICKNESS ? Hello, I'm trying to make VScrollbar wider but cant find out a way to do this. I don't understand the principle how it should be done. As far as i could found myself there is a constant but as i can understand its impossible to change it. THICKNESS : Number = 16 [static] The width of a vertical scrollbar, or the height of a horizontal scrollbar, in pixels. If i only knew where else i can change these parameters or maybe there is some other way? Can anyone help with anything? I would be delighted. Thanks in advance for your time, Tadas Ziemys
[flexcoders] Re: What technologies allow you to run AS3 on the server side?
I am curious about, isn't the whole point of running the code on the client side is the whole point of making Flex applications? Why would you want to do this? (again, just curious, I'm not trying to rain on your parade) --
RE: [flexcoders] Re: Remote Objects - a reflective way to determine class?
Assuming that a typed object was returned via AMF, this means that the Flash Player did not find the class definition for the alias reported in the typed object in the AMF response. Ensure that the alias registered for your remote object is correct and that it is imported and a dependency exists on the type somewhere in your code so that it is linked into the SWF. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Libby Sent: Monday, August 27, 2007 12:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Remote Objects - a reflective way to determine class? Yeah, I tried that - it returns Object. --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: See: flash.utils.getQualifiedClassName() http://livedocs.adobe.com/flex/2/langref/flash/utils/package.html#getQ ua lifiedClassName()
RE: [flexcoders] Play multiple SWF files in SWF loader (Detect SWF(SWFLoader) finish playing
ah Yes i try that, yes mostly its frame based animation (tween) not script based animation thx :) --- Alex Harui [EMAIL PROTECTED] wrote: It depends on the SWF. Pure frame-based animation swfs can be checked for currentFrame = totalFrames. Anything that uses script-based animations requires an event from the script. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ary Sent: Sunday, August 26, 2007 10:26 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Play multiple SWF files in SWF loader (Detect SWF(SWFLoader) finish playing Yes, i did think this solution before, i should generate some event at the end of the frame, the problem is that i might dont have access to all the swf..the swf might come from somewhere and i cant put a trigger inside it. ary. --- Tracy Spratt [EMAIL PROTECTED] mailto:tspratt%40lariatinc.com wrote: playing, huh, that must be some of that Flash stuff. I don't do Flash, yet, so I'm probably not the one to answer this, but I am pretty sure that your swf is gong to have to dispatch an event that your parent app can listen for. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Ary Sent: Sunday, August 26, 2007 12:02 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Play multiple SWF files in SWF loader (Detect SWF(SWFLoader) finish playing Hi Tracy, Yes, but how to detect when a swf (loaded by swfloader) finish playing?so i can point to the next swf? i cant found any sample or reference to do this :( thanks in advance for the enlightment. ary. --- Tracy Spratt [EMAIL PROTECTED] mailto:tspratt%40lariatinc.com mailto:tspratt%40lariatinc.com wrote: Just set the SWFLoader.source property to the url. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Ary Sent: Wednesday, August 22, 2007 3:30 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Play multiple SWF files in SWF loader Hi, continuing this post, how can i play this multiple swf files if i have the url listed in xml or array? and maybe control it or disabled the control so it plays continously... thanks in advance.. ary. --- Tracy Spratt [EMAIL PROTECTED] mailto:tspratt%40lariatinc.com mailto:tspratt%40lariatinc.com mailto:tspratt%40lariatinc.com wrote: First, what do you mean when you say, i have five SWF files in array? Do you mean you have the urls to the swf files stored in the array? Second, do you control the swf's so that you can dispatch an event or callback when they complete? Tracy __ Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. http://farechase.yahoo.com/ http://farechase.yahoo.com/ http://farechase.yahoo.com/ http://farechase.yahoo.com/ http://farechase.yahoo.com/ http://farechase.yahoo.com/ http://farechase.yahoo.com/ http://farechase.yahoo.com/ __ Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/ http://searchmarketing.yahoo.com/ http://searchmarketing.yahoo.com/ http://searchmarketing.yahoo.com/ __ Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/ http://travel.yahoo.com/ Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. http://autos.yahoo.com/carfinder/
[flexcoders] Re: new Date() not producing current date
--- In flexcoders@yahoogroups.com, Jurgen Beck [EMAIL PROTECTED] wrote: I am tracking down the source of an issue with the Date() class. It seems that the following line should be producing today's date: var now:Date = new Date(); However, when running this today (8/27/2007), the resulting date object contains values for 7/1/2007. Has anyone run into this issue? Is this a bug? Thanks, Jurgen At the risk of asking an obvious question, I assume that you have ensured that your current system date is set correctly?
Re: [flexcoders] Re: What technologies allow you to run AS3 on the server side?
flash media server does AS2 Well it seperates the MVC model further; imagine you create an app and all the scripting is server-side; it allows you to make changes of the logic easily without worrying what versions might be floating around... Course since everything is web delivered the point is moot, but for desktop apps it might make sense...course they have to be connected, so... -Original Message- From: =?ISO-8859-1?Q?Ra=FAl_Riera?= [EMAIL PROTECTED] Date: Monday, Aug 27, 2007 1:45 pm Subject: [flexcoders] Re: What technologies allow you to run AS3 on the server side? I am curious about, isn't the whole point of running the code on the client side is the whole point of making Flex applications? Why would you want to do this? (again, just curious, I'm not trying to rain on your parade) -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
Re: [flexcoders] Re: new Date() not producing current date
Yup, the system date is correct, as a trace on the 'now' Date object shows the correct information, but the individual properties for month and day of the now Date object (now.month and now.day) are showing '7' and '1' respectively. I'm sure I'm not seeing something obvious... Jurgen candysmate wrote: --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Jurgen Beck [EMAIL PROTECTED] wrote: I am tracking down the source of an issue with the Date() class. It seems that the following line should be producing today's date: var now:Date = new Date(); However, when running this today (8/27/2007), the resulting date object contains values for 7/1/2007. Has anyone run into this issue? Is this a bug? Thanks, Jurgen At the risk of asking an obvious question, I assume that you have ensured that your current system date is set correctly?
[flexcoders] Re: Can I have Flex force the browser to resize?
Hi Tracy, I have Googled quite a bit (I never ask a question here until after I have done so), and I couldn't find anything that actually worked. Could you possibly paste in a link or two? Simply telling me you found something isn't all that helpful. Thanks, Bob --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: I googled this and got several good hits, including one at Flex Cookbook. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bbeban7 Sent: Wednesday, August 22, 2007 11:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Can I have Flex force the browser to resize? Thanks for the reply -- you confirmed what I thought was the case from reading the docs. Do you know of a decent example of this I can look at? The ones in the docs are hard to follow. Thanks again -- Bob --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Brendan Meutzner bmeutzner@ wrote: Flex won't get the browser to do anything directly... but if can track down javascript to accomplish this, you can have Flex call the javascript method to do so... Brendan On 8/21/07, bbeban7 bob@ wrote: If so, how? I have a Firefox bug that can be fixed by a quick, tiny resize when the page loads. If someone can tell me how to get Flex to do this I'd be much obliged. Thanks!! -- Brendan Meutzner http://www.meutzner.com/blog/ http://www.meutzner.com/blog/
[flexcoders] Re: new Date() not producing current date
--- In flexcoders@yahoogroups.com, Jurgen Beck [EMAIL PROTECTED] wrote: Yup, the system date is correct, as a trace on the 'now' Date object shows the correct information, but the individual properties for month and day of the now Date object (now.month and now.day) are showing '7' and '1' respectively. I'm sure I'm not seeing something obvious... Jurgen I think you're looking for the date of the month. The day is the number given to the day of the week with Sunday being day 0, Monday day 1 etc. The month is also a zero based index with January being month 0, so this month (August) is 7, which is correct. best, Graham
Re: [flexcoders] new Date() not producing current date - Clarification
Actually, it does produce today's date, but the individual properties of the Date object are not showing the correct values. Example: now.month shows a value of 7 now.day shows a value of 1 Doing a trace on 'now' though shows Mon Aug 27 12:59:18 GMT-0500 2007 Can anyone confirm this behavior? Shouldn't the properties of the 'now' Date object show the correct information? Thanks, Jurgen Beck Jurgen Beck wrote: I am tracking down the source of an issue with the Date() class. It seems that the following line should be producing today's date: var now:Date = new Date(); However, when running this today (8/27/2007), the resulting date object contains values for 7/1/2007. Has anyone run into this issue? Is this a bug? Thanks, Jurgen
[flexcoders] WebService Basic Authentication over HTTPS?
I need to connect to a .NET WebService over SSL which uses Basic Authentication. I have tried the setCredentials function but it doesn't work. Are there plans to support this feature? Is there a work-around? I would prefer to get the credentials from the user through a login view in Flex and then check them under the covers without the browser popping up any messages. I have searched the internet and various mailing lists and forums but I have yet to find an answer.
Re: [flexcoders] Re: new Date() not producing current date
Thanks, Graham. As always, it helps reading the documentation carefully. :-) I didn't see the zero-based mention of the properties... Cheers, Jurgen candysmate wrote: --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Jurgen Beck [EMAIL PROTECTED] wrote: Yup, the system date is correct, as a trace on the 'now' Date object shows the correct information, but the individual properties for month and day of the now Date object (now.month and now.day) are showing '7' and '1' respectively. I'm sure I'm not seeing something obvious... Jurgen I think you're looking for the date of the month. The day is the number given to the day of the week with Sunday being day 0, Monday day 1 etc. The month is also a zero based index with January being month 0, so this month (August) is 7, which is correct. best, Graham
[flexcoders] Re: Event collision- is this a bug or expected behavior?
Thanks Alex, so I guess anytime we want to fully support capture phase listeners we should try to ensure a unique value for our event const values? Is there any reason the framework did not try to use unique values for event types? Thanks, Ben --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: capture phase listeners cannot assume the type since child objects may be conversing with the same event type . From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Monday, August 27, 2007 6:26 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Event collision- is this a bug or expected behavior? bump --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , ben.clinkinbeard ben.clinkinbeard@ wrote: I am noticing some odd behavior adding capture phase event listeners to TabNavigator. While trying to answer another question (http://tech.groups.yahoo.com/group/flexcoders/message/84929 http://tech.groups.yahoo.com/group/flexcoders/message/84929 ) I noticed that this code: tabNav.addEventListener(IndexChangedEvent.CHANGE, onChange, true); will cause a RTE if onChange()'s event arg is typed as IndexChangedEvent. As it turns out, listening to the capture phase causes the listener to receive a regular Event object whose target is the actual tab you clicked on. Listening to bubble phase produces an instance of IndexChangedEvent whose target is the actual TabNavigator, which is what I would think is the expected behavior. I am assuming the problem has something to do with the fact that IndexChangedEvent.CHANGE and Event.CHANGE both evaluate to change. Is this expected behavior? I can't quite get my head around why it would be but that doesn't mean its not. I actually had this problem with a custom component the other day and ended up changing the event's string value to avoid the collision. Thanks, Ben
[flexcoders] Re: Help
Hey Alex, As any change in DataGrid will modify my XML everything could be changed in XML. However my XML has the following structure: date, event and user and this nodes are DataGridColumn. So when i change one cell in DataGrid the event changeData is fired. Could u help me ? Thanks, Marcio N. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: What did you change in the XML? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Marcio Napoli Sent: Wednesday, August 22, 2007 7:00 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Help Hi All, I am having problems with collection, when i change the value of one registry to a new value i lost the old one. For example: [Bindable] private var DATAPACKET: XML = data row date17/01/2007/date eventEvent 01/event userMARCOSA/user /row /data ((ICollectionView) (grid.dataProvider)).addEventListener (CollectionEvent.COLLECTION_CHANGE, changeData); public function changeData(event: CollectionEvent): void { if (event.items.length 0) { if (event.items[0] as PropertyChangeEvent) { var pce: PropertyChangeEvent = event.items[0] as PropertyChangeEvent; if (pce.kind == CollectionEventKind.UPDATE) { trace(pce.source); trace (pce.target); trace(pce.property); trace (pce.oldValue); trace(pce.newValue); trace(DATAPACKET.row[grid.selectedIndex]); } } } } In my sample the attributes pce.oldValue and pce.newValue are null. The pce.source is with new value and my var datapacket already updated. So, how can i get the old value? Thanks, Marcio Napoli [EMAIL PROTECTED] mailto:napoli%40stela.org.br
[flexcoders] mx:ComboBox and Changing States?
I'm absolutely stumped on something so simple and I want to see if you guys could help me out... In short, I've got a ApplicationControlBar with several ComboBoxes being placed into it. Each has it's own 4-5 entries being pulled via a dataprovider, but how do I go about changing the state upon clicking? For example, User clicks on Dog drop down box and sees a listing of breads - User clicks on 'beagles', how do I make this change it's state to Beagles? Thanks!
[flexcoders] Re: Verify an Object in Memory.
Hi!! heehhe.. Excuses for my English. =/ What I needed I am to have buttons Back the same and Forward made in flex, but with BrowserManager, solves my problem. Thanks a lot Friend! --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: I still don't understand. If you only have one popup, what should back/forward do? Please investigate the third-party UrlKit for back/forward. In Flex 3, it will be BrowserManager. Feel free to ask questions both in english and follow with a copy in your native language. There are some good translators on this forum. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rodrigo Pereira Fraga Sent: Monday, August 27, 2007 7:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Verify an Object in Memory. the problem to verify instancia in the memory already I solved, Thanks Alex!! \o/ but... somebody has idea of as can make the navigation? --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Rodrigo Pereira Fraga rpffoz@ wrote: Excuses, but I expressed myself badly. Problem 1: -- I have a PopUp (myPopUpWindow), and only he can have, one instance. thus, I make: if (myPopUpWindow! = instancied) { showMyPopWindow; } Poblem 2: - What I need to make, is the navigation between windows (PopUp's). you know the button Back and forward of the Explorer? The logic of navigation until already I mounted, but I do not know what to call when the button back or forward will be pressed. Thanks! --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Not sure I understand. Do you want to know if a class had an instance made from it? I'd put a static variable like a counter in the constructor. Do you want to use keyboard to switch between a Flash App and Windows? Or between popups in a Flex app? Or use the mouse to switch Windows? Flex handles mouse switching, but you probably can't get at alt- tab and maybe not ctrl-tab either. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Rodrigo Pereira Fraga Sent: Sunday, August 26, 2007 6:47 PM To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] Verify an Object in Memory. how I can verify if an Object was instancied, (mxml or as3)? and.. i need to make the logic to advance and to back of the windows common in MSWindows... somebody has an idea of which would be the best solution? Good Week! Thanks!
RE: [flexcoders] WebService Basic Authentication over HTTPS?
Despite what the ASDoc say, WebService.setCredentials() is only for authenticating with LCDS (nee FDS) itself when making use of a destination registered with the Proxy Service. WebService.setRemoteCredentials() is only for LCDS too, it's what is used by the Proxy Service to handle any HTTP Basic Authentication challenges while contacting the 3rd party endpoint. If you're not using LCDS, then you'll need to setup a way to authenticate directly with the WebService. In .NET a common solution is to make use of SOAP headers. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of chuyler1 Sent: Monday, August 27, 2007 2:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] WebService Basic Authentication over HTTPS? I need to connect to a .NET WebService over SSL which uses Basic Authentication. I have tried the setCredentials function but it doesn't work. Are there plans to support this feature? Is there a work-around? I would prefer to get the credentials from the user through a login view in Flex and then check them under the covers without the browser popping up any messages. I have searched the internet and various mailing lists and forums but I have yet to find an answer. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] Re: Help
Try tracing using toXMLString(). From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Marcio Napoli Sent: Monday, August 27, 2007 11:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Help Hey Alex, As any change in DataGrid will modify my XML everything could be changed in XML. However my XML has the following structure: date, event and user and this nodes are DataGridColumn. So when i change one cell in DataGrid the event changeData is fired. Could u help me ? Thanks, Marcio N. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: What did you change in the XML? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Marcio Napoli Sent: Wednesday, August 22, 2007 7:00 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Help Hi All, I am having problems with collection, when i change the value of one registry to a new value i lost the old one. For example: [Bindable] private var DATAPACKET: XML = data row date17/01/2007/date eventEvent 01/event userMARCOSA/user /row /data ((ICollectionView) (grid.dataProvider)).addEventListener (CollectionEvent.COLLECTION_CHANGE, changeData); public function changeData(event: CollectionEvent): void { if (event.items.length 0) { if (event.items[0] as PropertyChangeEvent) { var pce: PropertyChangeEvent = event.items[0] as PropertyChangeEvent; if (pce.kind == CollectionEventKind.UPDATE) { trace(pce.source); trace (pce.target); trace(pce.property); trace (pce.oldValue); trace(pce.newValue); trace(DATAPACKET.row[grid.selectedIndex]); } } } } In my sample the attributes pce.oldValue and pce.newValue are null. The pce.source is with new value and my var datapacket already updated. So, how can i get the old value? Thanks, Marcio Napoli [EMAIL PROTECTED] mailto:napoli%40stela.org.br
RE: [flexcoders] Re: Event collision- is this a bug or expected behavior?
Too hard to manage. Can you imagine having to apply to us for an event name in order to prevent possible collisions? You could decorate names, but these names show up in MXML, so that's not fun mytag benclinkinbeardChange=.. Capture phase is rarely used. My handlers look like: captureHandler(event:Event) { if (event is ItemChangedEvent) { ,,, } } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Monday, August 27, 2007 11:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Event collision- is this a bug or expected behavior? Thanks Alex, so I guess anytime we want to fully support capture phase listeners we should try to ensure a unique value for our event const values? Is there any reason the framework did not try to use unique values for event types? Thanks, Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: capture phase listeners cannot assume the type since child objects may be conversing with the same event type . From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of ben.clinkinbeard Sent: Monday, August 27, 2007 6:26 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Event collision- is this a bug or expected behavior? bump --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , ben.clinkinbeard ben.clinkinbeard@ wrote: I am noticing some odd behavior adding capture phase event listeners to TabNavigator. While trying to answer another question (http://tech.groups.yahoo.com/group/flexcoders/message/84929 http://tech.groups.yahoo.com/group/flexcoders/message/84929 http://tech.groups.yahoo.com/group/flexcoders/message/84929 http://tech.groups.yahoo.com/group/flexcoders/message/84929 ) I noticed that this code: tabNav.addEventListener(IndexChangedEvent.CHANGE, onChange, true); will cause a RTE if onChange()'s event arg is typed as IndexChangedEvent. As it turns out, listening to the capture phase causes the listener to receive a regular Event object whose target is the actual tab you clicked on. Listening to bubble phase produces an instance of IndexChangedEvent whose target is the actual TabNavigator, which is what I would think is the expected behavior. I am assuming the problem has something to do with the fact that IndexChangedEvent.CHANGE and Event.CHANGE both evaluate to change. Is this expected behavior? I can't quite get my head around why it would be but that doesn't mean its not. I actually had this problem with a custom component the other day and ended up changing the event's string value to avoid the collision. Thanks, Ben
RE: [flexcoders] setting the icon of a Button using ActionSctipt at Run Time
Button does not handle external icons. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sk_acura Sent: Monday, August 27, 2007 10:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] setting the icon of a Button using ActionSctipt at Run Time Hi all, I would like to set the Icon of a Button to an Image and i would like to do this in ActionSctipt rather than in mxml I would be passing a data Object whose image Property is the path of the png file that i woule like to display as icon for the Button.. My Custom Button class has setIcon method.. [CODE] public function setICon(iconPath:String):void{ icon:Class = null; icon.set ?? // This didn't work as it expects a class //this.setStyle(icon,@Embed('+icon+')); } [/CODE] Pls let me know how can i set the icon path for a Button on the fly.. Regards Kumar
[flexcoders] calling a function in another component ?
In BooksMain.mxml I have defined a public function 'filterbooks' In components/BookCovers.mxml I have: mx:ComboBox id=bookcategory change=filterbooks() I get error: 1180: Call to a possibly undefined method filterbooks. if I change it to: mx:ComboBox id=bookcategory change=BooksMain.filterbooks() and I get error: 1061: Call to a possibly undefined method filterbooks through a reference with static type Class. What's the proper way to reference it ? thanks, steve
[flexcoders] Selected Style for LinkBar
OK, I must be too stupid to find it, but... I want to change the color of the ACTIVE item in a LinkBar. I see styles for SELECTED (clicked) but I can NOT find the way to change the style for the active item. Thanks Bruce
[flexcoders] Re: WebService Basic Authentication over HTTPS?
Will the method of using SOAP headers still allow for basic session management by the .NET WebService? The server-side guys are really pushing the use of Basic Authentication but it sounds like this approach will mean coding specific authentication functions within the WebService, correct?
RE: [flexcoders] Re: WebService Basic Authentication over HTTPS?
I'd guess that if you lock down a WebService's soap address location URL to cause an HTTP Basic Authentication challenge then it won't matter what SOAP headers a particular operation is capable of processing as the POST won't get far enough to be able to see the SOAP data. While it is technically possible to pre-authenticate by sending the right HTTP headers from Flash, it's not a viable solution if the wrong credentials are ever sent as you will then receive a challenge dialog no matter what. I'd do some research to see what most .NET people are doing for authentication and WebServices. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of chuyler1 Sent: Monday, August 27, 2007 3:22 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: WebService Basic Authentication over HTTPS? Will the method of using SOAP headers still allow for basic session management by the .NET WebService? The server-side guys are really pushing the use of Basic Authentication but it sounds like this approach will mean coding specific authentication functions within the WebService, correct? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] Re: How to set Scrollbars THICKNESS ?
Not sure what the inheritance is on VScrollBar but could you extend it and override the constant? - William --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: If you skin with larger buttons, it should get thicker (but not thinner). From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tadas ®iemys Sent: Monday, August 27, 2007 6:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to set Scrollbars THICKNESS ? Hello, I'm trying to make VScrollbar wider but cant find out a way to do this. I don't understand the principle how it should be done. As far as i could found myself there is a constant but as i can understand its impossible to change it. THICKNESS : Number = 16 [static] The width of a vertical scrollbar, or the height of a horizontal scrollbar, in pixels. If i only knew where else i can change these parameters or maybe there is some other way? Can anyone help with anything? I would be delighted. Thanks in advance for your time, Tadas Ziemys
Re: [flexcoders] calling a function in another component ?
This does not work this way. First time you are trying to access method that is not know in this file (object). You cannot execute methods that are defined elsewhere, as there isn't such thing as global declaration. Second time you are trying to access method from proper file (object), but in static way. To access the method, the object first must be create (of type BooksMain), and the reference to this object must be known in the file (object) you are going to use it in. This works quite well other way around, when you want to execute a method of BookCove from BooksMain (assuming that BooksMain has the instance of BookCove within), then it will look like this : BooksMain.mxml : var cove:BookCove; cove.execItsMethod(); The proper way to handle the situation you have is to use events. In the main file (BooksMain) you need to register for event (listen for event of specific object) : BooksMain.mxml : public function methodNameInBookMain(event:Event) { // do my logic here } cove.addEventListener (EVENT_STRING, methodNameInBookMain); and then in BookCove dispatch such Event (EVENT_STRING) whenever you want to inform BookMain that something happened and it has to deal with that. BookCove.mxml dispatchEvent(new Event(EVENT_STRING)); Keep in mind that Event could be your new object (class) like BookEvent, and it can have it's own fields, hence be a container for data you want to use in BooksMain. It's like passing an event (command) with fields as properites, instead of executinga method (command) and passing parameters there. It could then look like this : dispatchEvent(new BookEvent(EVENT_BOOKEVENT, bookName, bookYear, bookAuthor)); Dig in documentation for details. Seb In BooksMain.mxml I have defined a public function 'filterbooks' In components/BookCove rs.mxml I have: mx:ComboBox id=bookcategory change=filterbooks() I get error: 1180: Call to a possibly undefined method filterbooks. if I change it to: mx:ComboBox id=bookcategory change=BooksMain.filterbooks() and I get error: 1061: Call to a possibly undefined method filterbooks through a reference with static type Class. What's the proper way to reference it ?
[flexcoders] propage events thru a window object
how can i place my display object in the event chain so it receives events thru a window component? basically, i have a map component that i need to move around and when i mouse up on top of another object, like my pop up window, i want the map to receive the event. thanks for any tips. -- matt.
RE: [flexcoders] Issue with transactions on Data Management Service
I think that somehow you have got two versions of the UserTransaction class in your classpath. Maybe you followed the tomcat instructions for installing JOTM? If so, that is not necessary (and will break) jboss. Here's a simple JSP you can use to debug this problem without DS in the way: %@ page import=javax.transaction.UserTransaction % %@ page import=javax.naming.InitialContext % %@ page import=javax.naming.Context % body startbr % try { Context ctx = new InitialContext(); String userTransactionJndi = java:comp/UserTransaction; String userSpecified = System.getProperty(UserTxJndiName); if (userSpecified != null) { userTransactionJndi = userSpecified; } UserTransaction userTransaction = (UserTransaction) ctx.lookup(userTransactionJndi); if (userTransaction != null) { userTransaction.begin(); out.println(begin ok!br); userTransaction.commit(); out.println(commit ok!br); } else { out.println(returned null); } } catch (Exception ne) { out.println(ne.toString()); } % done /body When this works, DS with use-transactions=true should also work. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mancer82 Sent: Monday, August 27, 2007 9:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Issue with transactions on Data Management Service Hello, I'm actually creating an application for a library and I'm running it on JBoss 4.2.0.GA with underlying DB2 8.2. The application relies on a POJO + Hibernate3 server backend, communicating with the Flex client thru Data Management Service destinations. The problem I get is the following; as long as I ask for records using the dataservice.fill() method, I encounter no issue and the app works fine. But as soon as I try to create a new item, or modify an existing one, I get this error in STDOUT: 2004-10-24 20:26:35,125 INFO [STDOUT] [Flex] Exception when invoking service: data-service with message: Flex Message (flex.data.messages.DataMessage) operation = transacted id = null clientId = 81828BBA-8E7A-B668-86B3-76D34BF1071F correlationId = destination = utente.hibernate messageId = ADE53343-F3F1-D938-A31D-CC308E3F66B1 timestamp = 1098642394734 timeToLive = 0 body = [ Flex Message (flex.data.messages.DataMessage) operation = create_and_sequence id = ASObject(19507034){id=2004901826687} clientId = 43BC3541-8881-F29B-B186-CC3039979243 correlationId = ADE53343-F3F1-D938-A31D-CC308E3F66B1 destination = utente.hibernate messageId = 59933554-59E2-8624-EA5B-CC308E3F279A timestamp = 0 timeToLive = 0 body = [EMAIL PROTECTED] ] hdr(DSEndpoint) = my-rtmp exception: flex.data.DataServiceException: Unable to access UserTransaction in DataService. 2004-10-24 20:26:35,125 INFO [STDOUT] [Flex] Error handling rtmp message: flex.data.DataServiceException: Unable to access UserTransaction in DataService. incomingMessage: Flex Message (flex.data.messages.DataMessage) operation = transacted id = null clientId = 81828BBA-8E7A-B668-86B3-76D34BF1071F correlationId = destination = utente.hibernate messageId = ADE53343-F3F1-D938-A31D-CC308E3F66B1 timestamp = 1098642394734 timeToLive = 0 body = [ Flex Message (flex.data.messages.DataMessage) operation = create_and_sequence id = ASObject(19507034){id=2004901826687} clientId = 43BC3541-8881-F29B-B186-CC3039979243 correlationId = ADE53343-F3F1-D938-A31D-CC308E3F66B1 destination = utente.hibernate messageId = 59933554-59E2-8624-EA5B-CC308E3F279A timestamp = 0 timeToLive = 0 body = [EMAIL PROTECTED] ] hdr(DSEndpoint) = my-rtmp errorReply: Flex Message (flex.messaging.messages.ErrorMessage) clientId = null correlationId = ADE53343-F3F1-D938-A31D-CC308E3F66B1 destination = utente.hibernate messageId = 81828F75-2508-726A-7B40-2ECD5E71CF75 timestamp = 1098642395125 timeToLive = 0 body = null code = Server.Processing message = Unable to access UserTransaction in DataService. details = null rootCause = java.lang.ClassCastException: org.jboss.tm.usertx.client.ServerVMClientUserTransaction cannot be cast to javax.transaction.UserTransaction body = null extendedData = null 2004-10-24 20:26:35,125 INFO [STDOUT] [Flex] cause=java.lang.ClassCastException: org.jboss.tm.usertx.client.ServerVMClientUserTransaction cannot be cast to javax.transaction.UserTransaction type=class java.lang.ClassCastException java.lang.ClassCastException: org.jboss.tm.usertx.client.ServerVMClientUserTransaction cannot be cast to javax.transaction.UserTransaction at flex.data.DataServiceTransaction.doBegin(DataServiceTransaction.java:653 ) at flex.data.DataServiceTransaction.begin(DataServiceTransaction.java:624) at
Re: [flexcoders] Re: What technologies allow you to run AS3 on the server side?
No problem, Yes, Flex enables me to create very rich internet applications that work on the client side, but some things need to processed on the server side... ...like charging a credit card :-) Bruce On 8/27/07, Raúl Riera [EMAIL PROTECTED] wrote: I am curious about, isn't the whole point of running the code on the client side is the whole point of making Flex applications? Why would you want to do this? (again, just curious, I'm not trying to rain on your parade) --
[flexcoders] Re: Using [Event...] in Custom Classes
Thanks Gordon, I went ahead and filed a bug. For anyone that would like to vote for it here is the url: http://bugs.adobe.com/jira/browse/FB-9088 All the more reason to let us do [Event(name=MyEventClass.DO_STUFF, type=MyEventClass)]! :) Ben --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: Gordon, I filed a bug in the Flex 3 prerelease system (with hopes that someone can sneak a fix in), let me know if that was a mistake and I should add it to the public base. I'm not actually sure just how that bug system works. Is there any way to track the status of a bug you enter? If not, I suggest filing it at http://bugs.adobe.com/flex. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Saturday, August 25, 2007 12:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Using [Event...] in Custom Classes Yea, I guess I am just going to have to fall in line with my constant-naming practices for now, but I think its something that should be fixed. The whole point (besides code hinting) of [Event] tags (and the type attribute specifically) is to give the compiler info on where to go look for those values isn't it? Since this seems to be a fact of life for the time being, maybe someone can help me with the issue that led me to use those unsanctioned naming practices in the first place: event name collision. I ended up changing the value of my RESIZE event (and some others) to things like myResize because my listeners were picking up the resize events that the framework generates during its normal layout process and I was getting coercion errors. What do other people do in those cases? Change your event values or type your listeners to accept Event and check the type inside the method? Here is a recent thread that discusses a problem I discovered of a similar nature: http://tech.groups.yahoo.com/group/flexcoders/message/84943 http://tech.groups.yahoo.com/group/flexcoders/message/84943 Gordon, I filed a bug in the Flex 3 prerelease system (with hopes that someone can sneak a fix in), let me know if that was a mistake and I should add it to the public base. Thanks, Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Doug McCune doug@ wrote: Yeah, here's the way I think it works in the current FB 3 release anyway (which is the way ben described too): You put metadata in your class, something like: [Event(name=myEvent, type=com.me.MyEvent)] So then you type: myClass.addEventListener( and then the auto events come up in the list that allows you to select one of the possible events. The IDE knows that there is an event named myEvent, which is defined by the metadata. The IDE does not know what static constant myEvent is actually defined by, but the IDE does try to substitute in a static constant from the MyEvent class. It just converts the string that is in the metadata tag into a format like MY_EVENT. It converts all characters to uppercase, and then anywhere that there is a change in case in your event it adds in an underscore. So if you had metadata that defined an event called myReallyCoolEvent, then the IDE would bring up code hinting that read like this: MyEvent.MY_REALLY_COOL_EVENT. So in you MyEvent class, if you don't have the event defined with that naming convention, then the code autocomplete isn't going to work for you. You'll type .addEventListener(, get the list of events that the IDE thinks should be defined in certain constants, and then you'll have to change it after the fact to redefine the proper const names. I've taken to just naming my stuff based on what the IDE assumes. So if I define an event of type myEvent, I know that I need to have MY_EVENT constant in the event class. There are actually a few cases of this not working with the framework classes. I don't remember where I've seen it, but some of the internal framework source defines events that don't conform to the proper naming convention, so when you get the autocomplete for the addEventListener call it actually fills in with undefined constants that won't compile. Doug On 8/25/07, Tony Alves threealves@ wrote: ok, I see your point. I did not look at it that way. So, it is a bug then. ben.clinkinbeard wrote: Event metadata is definitely not ignored in AS. Take a look at just about any class in the framework and you'll see plenty [Event] tags. It is there specifically to provide code hinting and support for binding in MXML. The problem here is that the code completion engine is offering class constants that don't exist. They seem to be based on the constant value, with some reformatting applied to convert to all uppercase and inserting underscores anywhere there is a lowercase
[flexcoders] Re: Event collision- is this a bug or expected behavior?
Fair enough, I didn't really think about MXML ugliness. Thanks for sharing your approach, I was leaning that way but its good to get some validation. Ben --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Too hard to manage. Can you imagine having to apply to us for an event name in order to prevent possible collisions? You could decorate names, but these names show up in MXML, so that's not fun mytag benclinkinbeardChange=.. Capture phase is rarely used. My handlers look like: captureHandler(event:Event) { if (event is ItemChangedEvent) { ,,, } } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Monday, August 27, 2007 11:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Event collision- is this a bug or expected behavior? Thanks Alex, so I guess anytime we want to fully support capture phase listeners we should try to ensure a unique value for our event const values? Is there any reason the framework did not try to use unique values for event types? Thanks, Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: capture phase listeners cannot assume the type since child objects may be conversing with the same event type . From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of ben.clinkinbeard Sent: Monday, August 27, 2007 6:26 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Event collision- is this a bug or expected behavior? bump --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , ben.clinkinbeard ben.clinkinbeard@ wrote: I am noticing some odd behavior adding capture phase event listeners to TabNavigator. While trying to answer another question (http://tech.groups.yahoo.com/group/flexcoders/message/84929 http://tech.groups.yahoo.com/group/flexcoders/message/84929 http://tech.groups.yahoo.com/group/flexcoders/message/84929 http://tech.groups.yahoo.com/group/flexcoders/message/84929 ) I noticed that this code: tabNav.addEventListener(IndexChangedEvent.CHANGE, onChange, true); will cause a RTE if onChange()'s event arg is typed as IndexChangedEvent. As it turns out, listening to the capture phase causes the listener to receive a regular Event object whose target is the actual tab you clicked on. Listening to bubble phase produces an instance of IndexChangedEvent whose target is the actual TabNavigator, which is what I would think is the expected behavior. I am assuming the problem has something to do with the fact that IndexChangedEvent.CHANGE and Event.CHANGE both evaluate to change. Is this expected behavior? I can't quite get my head around why it would be but that doesn't mean its not. I actually had this problem with a custom component the other day and ended up changing the event's string value to avoid the collision. Thanks, Ben
[flexcoders] Re: Displaying an image stored in a database
If you're getting it through an object-serialization framework (AMF, etc.), Yup, that's what I'm doing. then you may be receiving it already as a ByteArray, in which case you need to load it with a Loader instance. Where could I find information about this? I've found the flex documentation on these back-end/front-end integration issues rather thin on the ground. Cheers, David. --- In flexcoders@yahoogroups.com, Troy Gilbert [EMAIL PROTECTED] wrote: When the employee objects are sent back to the client I don't know how to bind to this property as mx:Image source=.../ takes the *location* of the image, not the binaries themselves. Depends on how the data (or what format) its arriving in to your Flex app. If it comes over the wire in an XML doc (like a BASE64 encoded BLOB from a database), then you'll need to turn that into a ByteArray (I believe AS3 corelib, from Adobe -- see Google code -- has API for this), then load the ByteArray (assuming its the bytes of a PNG/JPG/GIF/SWF) with the Loader class. If you're getting it through an object-serialization framework (AMF, etc.), then you may be receiving it already as a ByteArray, in which case you need to load it with a Loader instance. Note, when using Loader, if you have it load bytes from a ByteArray there is still a one-frame delay before the loader completes, i.e. you do have to wait for it to fire the COMPLETE event before the content is accessible. Troy.
RE: [flexcoders] accessing ArrayCollection in class
Not sure I understand. ArrayCollection id=theLinks .. defines a new variable in your MXML file. If you want to get to the one in DisplayShelf, you might want to just bind it directly? local:DisplayShelf theLinks={theLinks.source} From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dylan_r Sent: Monday, August 27, 2007 8:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] accessing ArrayCollection in class Hello, I'm new to actionscript programming so this is certainly a newbie question. I'm trying to access an array from the mxml file in a loaded actionscript package. Not sure how to bind the data between the two. mxml: ... Model id=pic_res source=piclist.xml / Model id=links_res source=links.xml / ArrayCollection id=myAC source={ArrayUtil.toArray(pic_res.pic)} / ArrayCollection id=theLinks source={ArrayUtil.toArray(links_res.link)} / local:DisplayShelf id=shelf horizontalCenter=0 verticalCenter=-10 borderThickness=5 ... I need to access theLinks array in DisplayShelf.as I've tried using theLinks in the actionscript file but I get errors saying theLinks is not defined. TIA, Dylan
RE: [flexcoders] Rollover event for Tree label
I think you'll have to capture rollOver in the renderer and call stopImmediatePropagation if you are over the icons. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of agoel_khs Sent: Monday, August 27, 2007 6:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Rollover event for Tree label Hi, I am having a tree with checkbox added as itemrenderer.Problem is that I need rollover effect only for label.Tree control by default uses the whole control for rollover.Is there any way to get rollover effect for the label alone,not for the whole node. Thanks.
RE: [flexcoders] Drag and drop for list items
Maybe by making everything else a valid droptarget? Or do you want the no-drop feedback during mousemove? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flashcrow2000 Sent: Monday, August 27, 2007 6:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Drag and drop for list items Hi all, I have a problem (obviously). It's a bit hard to explain, but I'll do my best. So...I have a list item, and whenever I drag and drop one entry outside of the list, I want it to display the same animation as when I'm dropping the entry on the list ( or any other mxml element which support dropEnabled). For example. If you drag and drop one item from one list, to another, the dragged item will zoom out under your mouse. If you drag and drop the item outside a drop enabled element, it will zoom out and slide back to it's original position on it's parent list. Is there a way to tell the list to always just zoom out the dragged element, regardless of the drop target? (I really hope I managed to make myself understood). Thanks guys, Cosmin
RE: [flexcoders] TileList problems (thumbnails w/size switching enabled)
If you explicitly set the rowCount, columnCount we try to honor that. If you instead just fix width/height (480x400), then we'll recalc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bjorn - Sent: Monday, August 27, 2007 1:14 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] TileList problems (thumbnails w/size switching enabled) I've got a tilelist which is linked to an ArrayCollection of MyItems which each contain an image:Object. I've got a button that enables the user to switch thumbnail size. However, this messes scrolling up on the TileList. The rowHeight/columnWidth values in the TileList seem to be updated correctly though, here's a trace example: rowHeight = 120 rowCount = 4 columnWidth = 100 columnCount = 4 ( thumbnail size switch )--- rowHeight = 360 rowCount = 4 columnWidth = 340 columnCount = 4 .. but how come the columnCount / rowCount remain the same? Shouldn't these properties be updated as well to reflect the new sizes. Best regards, Bjørn -- http://www.juicability.com http://www.juicability.com - flex blog http://www.43min.com http://www.43min.com - funny movies
[flexcoders] lcds 2.5.1, Map Java-to-AS serialisation make Integer values null
My Java server side, service and resulting Event object: public class StatsEventRepresentationServiceImpl { public ListEvent getStats(Date start, Date end) {...} } public class Event { public Date ts; public MapType, Integer typeFacts; ... } remoting-config.xml: service id=remoting-service class=flex.messaging.services.RemotingService adapters adapter-definition id=java-object class=flex.messaging.services.remoting.adapters.JavaAdapter default=true/ /adapters default-channels channel ref=my-amf/ /default-channels destination id=statsService properties factoryspring/factory sourcestatsBean/source /properties /destination /service Channel definition: channels channel-definition id=my-amf class=mx.messaging.channels.AMFChannel endpoint url=http://{server.name}:{server.port}/{context.root}/messagebroker/amf\ http://%7bserver.name%7d/%7Bcontext.root%7D/messagebroker/amf class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledfalse/polling-enabled /properties /channel-definition ... At client side I've got null on the place of Event.typeFacts that in fact are filled with some Integer values in StatsEventRepresentationServiceImpl.getStats(). I've enabled lcds logging to find out problematic place and got this: [Flex] After invoke service: remoting-service reply: java.util.ArrayList (Collection size:1) [0] = Event{ts=Mon Aug 27 21:50:05 MSD 2007, typeFacts={IMPRESSION=100, USE=100, ATTACK=100, CONSUME=100, MOVE=100, VISIT=100, INTERACTION=100}} [Flex] Serializing AMF/HTTP response Version: 3 (Message #0 targetURI=/2/onResult, responseURI=) (Typed Object #0 'flex.messaging.messages.AcknowledgeMessage') timestamp = 1.188237005894E12 headers = (Object #1) body = (Externalizable Object #2 'flex.messaging.io.ArrayCollection') (Array #3) [0] = (Typed Object #4 'adplatform.dashboard.Event') typeFacts = (Object #5) IMPRESSION = null USE = null ATTACK = null CONSUME = null MOVE = null VISIT = null INTERACTION = null ts = Mon Aug 27 21:50:05 MSD 2007 correlationId = 5878F136-92D8-538D-7ABC-A871D37E8EC4 messageId = 6F3DE73E-E60A-CF8E-68B2-80726A709793 timeToLive = 0.0 clientId = 6F3DE71A-470B-6FD3-1CFC-500C7306D9FA destination = null Why lcds sterilizes MapEnum, Integer's values as nulls? Some problem with configuration? Lcds bug?
[flexcoders] lcds 2.5.1, Map Java-to-AS serialisation make Integer values null
My Java server side, service and resulting Event object: public class StatsEventRepresentationServiceImpl { public ListEvent getStats(Date start, Date end) {...} } public class Event { public Date ts; public MapType, Integer typeFacts; ... } remoting-config.xml: service id=remoting-service class=flex.messaging.services.RemotingService adapters adapter-definition id=java-object class=flex.messaging.services.remoting.adapters.JavaAdapter default=true/ /adapters default-channels channel ref=my-amf/ /default-channels destination id=statsService properties factoryspring/factory sourcestatsBean/source /properties /destination /service Channel definition: channels channel-definition id=my-amf class=mx.messaging.channels.AMFChannel endpoint url=http://{server.name}:{server.port}/{context.root}/messagebroker/amf\ http://%7bserver.name%7d/%7Bcontext.root%7D/messagebroker/amf class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledfalse/polling-enabled /properties /channel-definition ... At client side I've got null on the place of Event.typeFacts that in fact are filled with some Integer values in StatsEventRepresentationServiceImpl.getStats(). I've enabled lcds logging to find out problematic place and got this: [Flex] After invoke service: remoting-service reply: java.util.ArrayList (Collection size:1) [0] = Event{ts=Mon Aug 27 21:50:05 MSD 2007, typeFacts={IMPRESSION=100, USE=100, ATTACK=100, CONSUME=100, MOVE=100, VISIT=100, INTERACTION=100}} [Flex] Serializing AMF/HTTP response Version: 3 (Message #0 targetURI=/2/onResult, responseURI=) (Typed Object #0 'flex.messaging.messages.AcknowledgeMessage') timestamp = 1.188237005894E12 headers = (Object #1) body = (Externalizable Object #2 'flex.messaging.io.ArrayCollection') (Array #3) [0] = (Typed Object #4 'adplatform.dashboard.Event') typeFacts = (Object #5) IMPRESSION = null USE = null ATTACK = null CONSUME = null MOVE = null VISIT = null INTERACTION = null ts = Mon Aug 27 21:50:05 MSD 2007 correlationId = 5878F136-92D8-538D-7ABC-A871D37E8EC4 messageId = 6F3DE73E-E60A-CF8E-68B2-80726A709793 timeToLive = 0.0 clientId = 6F3DE71A-470B-6FD3-1CFC-500C7306D9FA destination = null Why lcds sterilizes MapEnum, Integer's values as nulls? Some problem with configuration? Lcds bug?
[flexcoders] Re: wmode - determining value?
Much obliged...that let me get the value. Might I inquire if you are familiar with embedding a .swf file into a Flex app and pass it flashvar parameters or set internal values. The swf is also generated via Flex.
[flexcoders] Re: Making custom class data global
Hi Tony, Thank you for your response. I did follow your suggestion about looking for other examples on the web of singleton classes, however, I was unable to find anything that went into details about this. I have been able to gain a general understanding of this design pattern, but am having some trouble using it in my flex app. Would you be able to go into a little more detail about this. Thanks Don