Re: [flexcoders] Can't find bug in this piece of ActionScript
Doesn't it have to be stateCB.selectedIndex = i; Cheers, Ralf. On 2/2/07, malik_robinson [EMAIL PROTECTED] wrote: Hi, I am trying to set the selectedIndex of my U.S. States custom combo box equal to what the user has stored in their record in our database. Someone posted a link to a similar tutorial, but I could not get it to work and I think it seems to be slightly different than what I am doing. When the screen loads, the state the user is associated with should be selected, otherwise set the selectedIndex equal to 0. As of now it does not select anything it seems the condition where I test for equality fails and I always get the selectedIndex set to 0. *The code:* *public function** initStateCB(employeeStateId:Number):void** {* for ( var i:int=0; i stateCB.dataProvider.length; i++ ) { if( employeeStateId == stateCB.dataProvider[i].stateId ) { stateCB.selectedIndex = employeeStateId ; } else { stateCB.selectedIndex = 0; } } *} **// close function* ** mx:FormItem label=State: comp:StateCombo id=stateCB dataProvider={model.stateList} labelField=stateName creationComplete=initStateCB( model.employeeProfileArray[0].stateId)/ /mx:FormItem -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
[flexcoders] how to get components value
Hi all, i am create one panel with in the panel i added the tap navigator panel. i desgined some text box and text area and other components. thia all components. in this my question is. i have to design this all with form inside the tapnavigator? or can design directly tapnavigator? if i design without form means how we can do validation for textbox or text area. how we can get value. for this. plz leave me experts ur giude. sekar - 8:00? 8:25? 8:40? Find a flick in no time with theYahoo! Search movie showtime shortcut.
[flexcoders] Re: Can't find bug in this piece of ActionScript
Hi, I dont think it does, I could be wrong, but I want to set the selectedIndex equal to the employeeStateId so if the employee has a stateId of say 3 for Arizona or whatever, I want the selectedIndex to be 3. Unless I am missing something. -M --- In flexcoders@yahoogroups.com, Ralf Bokelberg [EMAIL PROTECTED] wrote: Doesn't it have to be stateCB.selectedIndex = i; Cheers, Ralf. On 2/2/07, malik_robinson [EMAIL PROTECTED] wrote: Hi, I am trying to set the selectedIndex of my U.S. States custom combo box equal to what the user has stored in their record in our database. Someone posted a link to a similar tutorial, but I could not get it to work and I think it seems to be slightly different than what I am doing. When the screen loads, the state the user is associated with should be selected, otherwise set the selectedIndex equal to 0. As of now it does not select anything it seems the condition where I test for equality fails and I always get the selectedIndex set to 0. *The code:* *public function** initStateCB(employeeStateId:Number):void** {* for ( var i:int=0; i stateCB.dataProvider.length; i++ ) { if( employeeStateId == stateCB.dataProvider[i].stateId ) { stateCB.selectedIndex = employeeStateId ; } else { stateCB.selectedIndex = 0; } } *} **// close function* ** mx:FormItem label=State: comp:StateCombo id=stateCB dataProvider={model.stateList} labelField=stateName creationComplete=initStateCB( model.employeeProfileArray[0].stateId)/ /mx:FormItem -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
Re: [flexcoders] Where is CalendarLayout?
Hi Gordon, I saw it while I check the DateChooser class. I saw in different places that people needs more control over the layout in the DateChooser. Maybe that class should be more open to let developers customize its own DateChoosers. Thanks for the feedback. On 2/2/07, Gordon Smith [EMAIL PROTECTED] wrote: I don't think our docs are supposed to have any references to CalendarLayout. (Where did you find it?) The CalendarLayout class is intentionally not hinted and not listed in the Flex 2 Language Reference ( i.e., the ASDoc) because it is unsupported and subject to change without notice in a future release. - Gordon -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Carlos Rovira *Sent:* Wednesday, January 31, 2007 4:06 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Where is CalendarLayout? mmm...why??? In the docs we can read: The CalendarLayout class handles the layout of the date grid in a month. * CalendarLayout can be extended to develop DateControls with * single month display control or side-by-side month displays. So, If I can extend it..why I can't get code hiting Really weird.. On 1/31/07, *Xavi Beumala* [EMAIL PROTECTED] wrote: The CalendarLayout class is itself marked with the [ExcludeClass] metadata, so you won't be able to import it :( Don't know if it will allow compilation. Best X. On 1/31/07, *Carlos Rovira* [EMAIL PROTECTED] wrote: Trying to do this import mx.controls.CalendarLayout; but FlexBuilder does not show code hinting. Maybe this class is not in some config file? How could I get it? -- ::| Carlos Rovira ::| http://www.carlosrovira.com ::| http://www.madeinflex.com -- ::| Carlos Rovira ::| http://www.carlosrovira.com ::| http://www.madeinflex.com -- ::| Carlos Rovira ::| http://www.carlosrovira.com ::| http://www.madeinflex.com
Re: [flexcoders] pop ups again
:) Thanks, Doug. I've just made the same thing you did. ;) R. On 2/1/07, Doug McCune [EMAIL PROTECTED] wrote: By the way, here's my modification to your example that works. Basically I extended TitleWindow to dispatch a custom event whenever the visiblity is changed, regardless of the flag that normally controls whether to dispatch the event. See it here: http://dougmccune.com/flex/popup_test/ right click to view source -Doug Doug McCune wrote: So the reason for this is because PopUpManager listens for the SHOW and HIDE events (see PopUpManagerImpl.as line 471). If your popped up component dispatches SHOW or HIDE then the PopUpManager takes this to mean that it should show or hide the popup. So when your popped up window dispatches SHOW, PopUpManager calls showModalWindow(), which then also sets the window's visible property. If this setting of the visible property in turn triggered the SHOW event, then we'd get caught in an endless loop of PopUpManager calling showModalWindow() over and over again. So this isn't a solution, but hopefully it helps to understand what's going on. Doug Roman Protsiuk wrote: I guess the reason is in following line of PopUpManagerImpl.as: line 574: IUIComponent(o.owner).setVisible(true, true); Second parameter says do not dispatch show event... I wonder why is it this way... Maybe someone who understands this behavior will read these lines someday. R. On 2/1/07, Roman Protsiuk [EMAIL PROTECTED]roman.protsiuk%40gmail.com wrote: Hi, everyone. I've modified my previous example (if anyone saw it). Now I'm using following approach to handle pop ups: The pop up itself PopUpWindow.mxml: ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical horizontalAlign=center width=400 height=300 implements=mx.managers.IFocusManagerComponent title=TESTING defaultButton={mainButton} creationComplete=onCreationComplete() show=onShow() mx:Box height=100% minHeight=0 width=100% mx:Text id=traceText text=show captured (not creationComplete): / /mx:Box mx:Canvas width=100% mx:Label id=total text=total: none left=10 / mx:Button id=mainButton horizontalCenter=0 bottom=10 label=close me click=onMainButtonClick() / /mx:Canvas mx:Script ![CDATA[ import mx.core.Application; import mx.managers.PopUpManager; import mx.managers.PopUpManagerChildList; private static var _popUp : PopUpWindow; private static var _totalCounter : Number = 0; private static var _showCounter : Number = 0; public var modal : Boolean; public static function showPopUp(parent : DisplayObject = null, modal : Boolean = true) : PopUpWindow { var popUpParent : DisplayObject = (parent != null ? parent : DisplayObject(Application.application)); if (_popUp == null) { _popUp = PopUpWindow(PopUpManager.createPopUp(popUpParent, PopUpWindow, modal, PopUpManagerChildList.APPLICATION)); } else { if (!_popUp.isPopUp) { _popUp.modal = modal; _popUp.traceText.htmlText += (++_totalCounter).toString() + ) + modality: + modal.toString() + . ; PopUpManager.addPopUp(_popUp, popUpParent, modal, PopUpManagerChildList.APPLICATION); } } PopUpManager.centerPopUp(_popUp); return _popUp; } protected function hidePopUp() : void { if (isPopUp) { PopUpManager.removePopUp(this); } } protected function onCreationComplete() : void { mainButton.setFocus(); } protected function onShow() : void { mainButton.setFocus(); traceText.htmlText += (++_showCounter).toString() + time + (_showCounter == 1 ? : s); total.text = total: + _showCounter.toString(); } protected override function focusOutHandler(event : FocusEvent) : void { if (event.relatedObject == null || !contains(event.relatedObject)) { hidePopUp(); } super.focusOutHandler(event); } private function onMainButtonClick() : void { hidePopUp(); dispatchEvent(new Event(Event.CLOSE)); } ]] /mx:Script /mx:TitleWindow Application popUpSample.mxml: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:CheckBox id=modal label=modal? horizontalCenter=0 verticalCenter=-30 / mx:Button id=clickButton horizontalCenter=0 verticalCenter=0 label=click me click=onButtonClick() / mx:Script ![CDATA[ private function onButtonClick() : void { PopUpWindow.showPopUp(null, modal.selected); } ]] /mx:Script /mx:Application The problem here consist in show event which should be dispatched when component visibility is changed to true as I understand. The bad thing is this pop up dispatches show event ONLY while it is NOT MODAL. If I say 'let's make it modal', show event isn't dispatched. Confusing. At least as for me. Can anybody explain this behavior? Or say it's not right? Thanks, R.
[flexcoders] Re: Importing mx packages into AS3 project
Thanks Gordon I eventually ended up converting to an mx project, which bloated my app from 162K to 480K. At the moment size isnt an issue and I have gone for the ease of development over size. Customizing the flex component code is an option I havent considered yet, thinking that my only hopes were either to re-invent the wheel or wait for the flash 9 compontents to come out. So I'll enjoy the simplicity of Flex while I can :) Cheers Tracy --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: It sounds like you want components which are both very rich and very lightweight. If we knew how to do that, we'd write the Flex components that way. : ) Seriously, athough we've tried to balance these concerns in the Flex framework components, we realize that they don't meet everyone's needs. Iff you're extending Button, then you're bringing in significant chunks of the Flex framework, because even a lowly Button supports measurement, layout, CSS, skinnability, focus management, tooltips, etc. The source code for our components is freely available. You might want to consider starting with ours and trimming out the functionaliry you don't need rather than starting from scratch. - Gordon
Re: [flexcoders] Re: Can't find bug in this piece of ActionScript
Ah sorry, i haven't read the text ;) What if you try it like that: var selectedIndex : int = 0; for ( var i:int=0; i stateCB.dataProvider.length; i++ ) { if( employeeStateId == stateCB.dataProvider[i].stateId ) { selectedIndex = employeeStateId ; } } stateCB.selectedIndex = selectedIndex; Cheers, Ralf. -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
[flexcoders] Re: Can't find bug in this piece of ActionScript
Hi, The code works the first time around. First time around meaning click an employee from the datagrid and the screen changes to a detail view of that employee. For some reason every user I bring up after the first user has the same State (Arizona) for example selected thereafter. The first time around it works, but then when I go back to the employee list screen, and click a different employee, the detail form populates with all the right info like (firstName, lastName, email, city, zip), but the state drop down has the value of the state the other user is associated with (Arizona). Its as if the code runs correctly once but when you click a different user the approriate state does not load, it just has the value from the prior user. Almost as if once the code runs once, and its being cached or something. All the other fields load correctly as I view each users detail view. I hope I am making sense. -M --- In flexcoders@yahoogroups.com, Ralf Bokelberg [EMAIL PROTECTED] wrote: Ah sorry, i haven't read the text ;) What if you try it like that: var selectedIndex : int = 0; for ( var i:int=0; i stateCB.dataProvider.length; i++ ) { if( employeeStateId == stateCB.dataProvider[i].stateId ) { selectedIndex = employeeStateId ; } } stateCB.selectedIndex = selectedIndex; Cheers, Ralf. -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
[flexcoders] How to make a universal httpservice
I am fairly new to Flex2 and AS3, 4 weeks of programming/experimenting under the hood. In a application I am using several (6-7) httpservice calls, to retrieve data for the various elements. Works great! One thing that _really_ annoys me, is that I have several mx:HTTPservice instances, one for each service I need to call. This is a obviously not the correct way to do it, but what is ? I imagine I could make a AS function that would accept some parameters like : function getHTTPData(url:string,parms:xml):object { !-- insert fantastic code here -- } Can anyone help me out here ?? Thanks for your time, Mark
Re: [flexcoders] Re: Can't find bug in this piece of ActionScript
That's probably because the creationComplete event is called just once. What if you use binding instead? selectedIndex={ getStateIndex( *employeeStateId:Number, dataProvider:Array*) } Cheers, Ralf. On 2/2/07, malik_robinson [EMAIL PROTECTED] wrote: Hi, The code works the first time around. First time around meaning click an employee from the datagrid and the screen changes to a detail view of that employee. For some reason every user I bring up after the first user has the same State (Arizona) for example selected thereafter. The first time around it works, but then when I go back to the employee list screen, and click a different employee, the detail form populates with all the right info like (firstName, lastName, email, city, zip), but the state drop down has the value of the state the other user is associated with (Arizona). Its as if the code runs correctly once but when you click a different user the approriate state does not load, it just has the value from the prior user. Almost as if once the code runs once, and its being cached or something. All the other fields load correctly as I view each users detail view. I hope I am making sense. -M --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Ralf Bokelberg [EMAIL PROTECTED] wrote: Ah sorry, i haven't read the text ;) What if you try it like that: var selectedIndex : int = 0; for ( var i:int=0; i stateCB.dataProvider.length; i++ ) { if( employeeStateId == stateCB.dataProvider[i].stateId ) { selectedIndex = employeeStateId ; } } stateCB.selectedIndex = selectedIndex; Cheers, Ralf. -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35 -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
Re: [flexcoders] How do you make a copy of an XMLListCollection ( not instance of ) ...
import mx.utils.ObjectUtil; var newList:Object = ObjectUtil.copy(oldList); Cheers, Brian On 2/1/07, helihobby [EMAIL PROTECTED] wrote: Can anyone please post sample code of how to make a copy of a XMLListCollection. Not a copy of the instance object but a new XMLListCollection object. Thank you for all the help, Sean. -- Brian Dunphy
Re: [flexcoders] Drag-Resize MDI Example
Hi! I think i just made somthing you were talking about. See this http://www.mediaverk.lv/trash/MinisableResizableWindow/ This is just a very first version just got it working so there mutch be some problems. I can make sources available if youre interested. Janis 2007/1/29, John Kirby [EMAIL PROTECTED]: Yes!... but it looks like the source is not available Dave Carabetta said the following: Do you mean something like this? http://www.cynergysystems.com/blogs/page/andrewtrice?entry=enhanced_flex_mdi_interface Regards, Dave. Cynergy Systems, Inc. On 1/14/07, John Kirby [EMAIL PROTECTED] wrote: Anyone know of a Flex 2 Drag-Resize MDI/Panel example? -- *Whether you think that you can, or that you can't, you are usually right.* - Henry Ford -- *Whether you think that you can, or that you can't, you are usually right. * - Henry Ford
[flexcoders] Re: need help on showing line series based on list box selection (Flex Charts)
Hi Ely, need a few minutes of your precious time,please if u can help me figure this out, it wud help! regards, Arthur
Re: [flexcoders] TitleWindow missing all focus events??
Overloading focusOutHandler/focusInHandler helps. You'll be able to handle FocusEvents there. Like in protected override function focusOutHandler(event : FocusEvent) : void { if (event.relatedObject == null || !contains(event.relatedObject)) { // event came from outside not from one of the children } super.focusOutHandler(event); } R. On 2/2/07, zhongtie [EMAIL PROTECTED] wrote: I pop up TitleWindows using PopupManager, and I change the titlebar colors based on if the titleWindow is active (topmost) or not. The problem is, I am NOT able to capture the focus event for TitleWindow (other controls, like TextArea, has no problems), nor does onFocusIn/onFocusOut overwrite work. Any idea?
RE: [flexcoders] More knowledge of future component development?
Hi Doug, I'll talk specifically about the Scheduling Framework here, which is something that the Adobe Consulting group have contributed to the community. There are currently no plans to bring that framework into the actual Flex SDK, so I wouldn't have any concerns in that area - I'll update the Scheduling Framework page on Adobe Labs to make that clearer. There isn't a team allocated to enhancing the Scheduling Framework within the consulting group - it is now very much something we hope the community will step up to the mark and lead. We are doing some bug fixes to the framework at present, those that have been provided back to us by the community, and we'd greatly welcome any enhancements too. The feedback and contribution mechanism is very basic at present (mainly, the Discussions tab on Labs), but if and when enhancements start coming in, we'll look into moving it to somewhere like RIAForge. Thanks, Alistair -- Alistair McLeod Technical Practice Leader (Rich Internet Applications and LiveCycle) Adobe Consulting Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK p: +44 (0) 131 338 6108 [EMAIL PROTECTED], http://weblogs.macromedia.com/amcleod Registered office: 151 St. Vincent Street, Glasgow G2 5NJ Company No. SC101089 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug McCune Sent: 01 February 2007 21:12 To: flexcoders@yahoogroups.com Subject: [flexcoders] More knowledge of future component development? I know this is a very tricky line that Adobe has to walk between what they can say about future components released in the framework. But here's my issue: I'd love to build more components for Flex, my only worry is that I'll be duplicating energy spent by the Flex team (or Adobe consulting). For example, say I wanted to take the Scheduling Framework and enhance it. I know the labs page says it's in 0.01 alpha or whatever, and they mention that a 1.0 release will happen eventually. So if I knew that in one month a more robust and amazing scheduling framework was going to be released I wouldn't even bother. But if that 1.0 release isn't going to happen for 12 months, then it's worth my time doing it on my own. This is the same with other components in the framework. I'm not going to concentrate on enhancements to the DataGrid, for example, because I know Adobe plans on focusing on that with the Flex 3 framework, and any enhancements that I make will probably pale in comparison. But I have been working on the TabNavigator because I haven't seen any mention of that from an official Adobe source. I've been amazingly impressed with Adobe's openness with developers overall, the release of the framework source, the info regarding the release schedule, etc. If it was possible to give us a little bit more on which components in the framework have planned upgrades, then it might be easier for us to focus our efforts. I know Adobe has said they want us to build more components, I just don't want to build the same ones that the Flex team's building. Doug -- 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: Can't find bug in this piece of ActionScript
Hi, I am new to actionscript and not quite sure how to implement that solution you suggested. It looks like the way to go because I do want to always have the right state selected when the detail screen first loads so I presume that is where the binding kicks in. Here is what I did in the code which I think is wrong how I am referencing the array in the parameter public function getStateIndex(employeeStateId:Number, model.employeeProfileArray[0]:Array):void { var selectedIndex : int = 0; for ( var i:int=0; i stateCB.dataProvider.length; i++ ) { if( getStateIndex(employeeStateId:== stateCB.dataProvider[i].stateId ) { selectedIndex = getStateIndex(employeeStateId:; } } stateCB.selectedIndex = selectedIndex; comp:StateCombo id=stateCB selectedIndex={ getStateIndex( employeeStateId:Number, model.employeeProfileArray[0]:Array ) } dataProvider={model.stateList} labelField=stateName/ I am using Cairngorm 2.1 and it is actually working pretty well for me, so is there a way to elegantly bind this to the ModelLocator? The array is bound to the ModelLocator --- In flexcoders@yahoogroups.com, Ralf Bokelberg [EMAIL PROTECTED] wrote: That's probably because the creationComplete event is called just once. What if you use binding instead? selectedIndex={ getStateIndex( *employeeStateId:Number, dataProvider:Array*) } Cheers, Ralf. On 2/2/07, malik_robinson [EMAIL PROTECTED] wrote: Hi, The code works the first time around. First time around meaning click an employee from the datagrid and the screen changes to a detail view of that employee. For some reason every user I bring up after the first user has the same State (Arizona) for example selected thereafter. The first time around it works, but then when I go back to the employee list screen, and click a different employee, the detail form populates with all the right info like (firstName, lastName, email, city, zip), but the state drop down has the value of the state the other user is associated with (Arizona). Its as if the code runs correctly once but when you click a different user the approriate state does not load, it just has the value from the prior user. Almost as if once the code runs once, and its being cached or something. All the other fields load correctly as I view each users detail view. I hope I am making sense. -M --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Ralf Bokelberg ralf.bokelberg@ wrote: Ah sorry, i haven't read the text ;) What if you try it like that: var selectedIndex : int = 0; for ( var i:int=0; i stateCB.dataProvider.length; i++ ) { if( employeeStateId == stateCB.dataProvider[i].stateId ) { selectedIndex = employeeStateId ; } } stateCB.selectedIndex = selectedIndex; Cheers, Ralf. -- Ralf Bokelberg ralf.bokelberg@ Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35 -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
Re: [flexcoders] Re: Adobe.com Servers?
Oh comon. Adobe.com is slow for you for two minth? It's been slow as hell from here (eastern europe) all the time for years now, totally unusable. 2007/2/2, purcept [EMAIL PROTECTED]: Thanks very much. I'll do that. Don --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, John Dowdell [EMAIL PROTECTED] wrote: purcept wrote: Why have the Adobe.com servers been so Slow and Erratic over the last couple months? Any time I go there for Flex info, I always have to Refresh at least once. I've asked around, but no one seems to know. David Hatch of the web team posted a status update a few weeks ago. If you're seeing performance which is not satisfactory, could you forward it either there or at the feedback widget on each adobe.com webpage, so that the info gets directly to those who do the work? Thanks. http://weblogs.macromedia.com/dhatch/archives/2007/01/hi_all_since_th .cfm tx, jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks.
Re: [flexcoders] AS variables at the top level of a package
On Friday 02 Feb 2007, Stembert Olivier (BIL) wrote: Sorry but it's 7AM here in Luxembourg and I don't see... Okay, try it this way: package { class Test { } } You have created an object called Test. You can only have one public object in a package (even if your package has no name). Only public objects can have public methods (because methods must belong to an object, and if external classes can't see the object, they can't invoke the method [what would they invoke it on ?]). public function dummy():void{} This public method is not part of an object, so it will break. -- Tom Chiverton Helping to proactively aggregate end-to-end interfaces This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex 2 Compiler / Metadata Question
On Thursday 01 Feb 2007, gtuhl wrote: Anyone have any ideas? Remind us of the problem you are trying to solve. -- Tom Chiverton Helping to professionally strategize visionary supply-chains This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] ASDoc ignoring [Bindable] properties in mxml files
On Thursday 01 Feb 2007, jer_ela wrote: I am finding that ASDoc (2.01) is ignoring bindable properties in mxml files public var myProperty:String gets documented [Bindable] public var myBindableProperty:String What about [Bindable] public var myBindableProperty:String=''; ? -- Tom Chiverton Helping to advantageously build cross-platform functionalities This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Can't find bug in this piece of ActionScript
Ok, i understand. Ty it like that: public function getStateIndex( employeeStateId : Number, dataProvider : Array) : int { var selectedIndex : int = 0; for ( var i:int=0; i dataProvider.length; i++ ) { if( employeeStateId == dataProvider[i].stateId ) { selectedIndex = employeeStateId; } } return selectedIndex; } comp:StateCombo id=stateCB selectedIndex={ getStateIndex( model.employeeProfileArray[0].stateId, model.stateList ) } dataProvider={ model.stateList} labelField=stateName/ Cheers, Ralf. On 2/2/07, malik_robinson [EMAIL PROTECTED] wrote: Hi, I am new to actionscript and not quite sure how to implement that solution you suggested. It looks like the way to go because I do want to always have the right state selected when the detail screen first loads so I presume that is where the binding kicks in. Here is what I did in the code which I think is wrong how I am referencing the array in the parameter public function getStateIndex(employeeStateId:Number, model.employeeProfileArray[0]:Array):void { var selectedIndex : int = 0; for ( var i:int=0; i stateCB.dataProvider.length; i++ ) { if( getStateIndex(employeeStateId:== stateCB.dataProvider[i].stateId ) { selectedIndex = getStateIndex(employeeStateId:; } } stateCB.selectedIndex = selectedIndex; comp:StateCombo id=stateCB selectedIndex={ getStateIndex( employeeStateId:Number, model.employeeProfileArray[0]:Array ) } dataProvider={model.stateList} labelField=stateName/ I am using Cairngorm 2.1 and it is actually working pretty well for me, so is there a way to elegantly bind this to the ModelLocator? The array is bound to the ModelLocator --- In flexcoders@yahoogroups.com, Ralf Bokelberg [EMAIL PROTECTED] wrote: That's probably because the creationComplete event is called just once. What if you use binding instead? selectedIndex={ getStateIndex( *employeeStateId:Number, dataProvider:Array*) } Cheers, Ralf. On 2/2/07, malik_robinson [EMAIL PROTECTED] wrote: Hi, The code works the first time around. First time around meaning click an employee from the datagrid and the screen changes to a detail view of that employee. For some reason every user I bring up after the first user has the same State (Arizona) for example selected thereafter. The first time around it works, but then when I go back to the employee list screen, and click a different employee, the detail form populates with all the right info like (firstName, lastName, email, city, zip), but the state drop down has the value of the state the other user is associated with (Arizona). Its as if the code runs correctly once but when you click a different user the approriate state does not load, it just has the value from the prior user. Almost as if once the code runs once, and its being cached or something. All the other fields load correctly as I view each users detail view. I hope I am making sense. -M --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Ralf Bokelberg ralf.bokelberg@ wrote: Ah sorry, i haven't read the text ;) What if you try it like that: var selectedIndex : int = 0; for ( var i:int=0; i stateCB.dataProvider.length; i++ ) { if( employeeStateId == stateCB.dataProvider[i].stateId ) { selectedIndex = employeeStateId ; } } stateCB.selectedIndex = selectedIndex; Cheers, Ralf. -- Ralf Bokelberg ralf.bokelberg@ Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35 -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35 -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
RE: [flexcoders] AS variables at the top level of a package
Okay I understand. So, I can never declare my method as public at the package level, right? But what do you understand when reading the doc??? If you do declare variables, functions, or namespaces at the top level of a package, the only attributes available at that level are public and internal, and only one package-level declaration per file can use the public attribute, whether that declaration is a class, variable, function, or namespace. Rgds, Olivier :) -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Friday, February 02, 2007 12:11 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS variables at the top level of a package On Friday 02 Feb 2007, Stembert Olivier (BIL) wrote: Sorry but it's 7AM here in Luxembourg and I don't see... Okay, try it this way: package { class Test { } } You have created an object called Test. You can only have one public object in a package (even if your package has no name). Only public objects can have public methods (because methods must belong to an object, and if external classes can't see the object, they can't invoke the method [what would they invoke it on ?]). public function dummy():void{} This public method is not part of an object, so it will break. -- Tom Chiverton Helping to proactively aggregate end-to-end interfaces This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. - - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. -
Re: [flexcoders] Where is CalendarLayout?
On Thursday 01 Feb 2007, Gordon Smith wrote: intentionally not hinted and not listed in the Flex 2 Language Reference (i.e., the ASDoc) because it is unsupported and subject to change without notice in a future release. Is that not true of all the internal interfaces ? I assumed it was... -- Tom Chiverton Helping to heterogeneously utilise third-generation patterns This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Accordion child icon bug
I noticed a bug in Accordion (Flex 2.0.1). I have an Accordion with three children end every one of them has another image as icon property: mx:Accordion myForm:Form icon={icon1} / myForm:Form icon={icon2} / myForm:Form icon={icon3} / /mx:Accordion The problem is that THE LAST ONE (icon3) is rendered on ALL THREE Accordion tabs. Since I think Accordion has to work as other navigators (TabNavigator etc..), it seems to be a bug. btw where to submit Flex bugs?
RE: [flexcoders] Apollo features
Me too I am also planning on doing some speech input processing and will need to pass microphone audio to an exe or dll to process it and then pass back state info to the Apollo app. Christian _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of geminy555 Sent: Wednesday, January 31, 2007 7:34 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Apollo features Hi, This feature is KEY for our company too. We are developing speech services (DLL based)...and we will use APOLLO if we can use those DLLs...please, implement it on 1.0 !!! Thanks --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, [EMAIL PROTECTED] wrote: I agree that this feauture is key for our company. Please make it possible to call an exe and pass parameters! On Tuesday 30 Jan 2007, Mike Chambers wrote: That is one of the features being considered for 1.0, although it might not make it in. Well, we'd love to see the feature in (which is why I asked :-) ). Obviously if you have this ability, you can write a trivial exe wrapper to get the shared object/DLL functions Jerome wanted. As an example, we'd have our users drag the Apollo application off our dashboard-type reports web site onto their desktop, and it would poll the server for changes. On something interesting, it'll announce the event, and offer options to 'email this alert'. The same Apollo app could poll our mail server, and launch/prod a mail client when new mail arrives. -- Tom Chiverton Helping to collaboratively foster eligible niches This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups. http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail- http://www.mail-archive.com/flexcoders%40yahoogroups.com archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] Re: What is the best way to draw about 10,000 to 15,000 rectangles?
I ran across a similar problem for an application I worked on in Actionscript 2. I had a very large image broken into 10x10 tiles. Each tile related to an image and some data. Instead of drawing a pile of boxes (or rectangles) as MovieClips, I created a Bitmap drawing that had all the tiles I needed on it (so in effect, it looked like a bunch of individual movieclips). I then created an associative array that stored the class instances I needed that correlated with each tile on the drawing, based on an x-y position (ie array['0-0'] = instance1; array['10-0'] = instance2, etc). I registered the mouse and click events against the movieclip that had the bitmap in it. As the user moved across or clicked on the bitmap I had a simple function that would calculate the tile that user had moused over or clicked on, find the necessary instance in array and then do the work that need to be done. It worked super fast, since the application was not bogged down with thousands of movieclips. Derrick Grigg -- www.dgrigg.com
[flexcoders] Trial Expiration Message with Flex SDK
I'm using the Flex SDK with Eclipse. I was under the assumption that the SDK is FREE! unlike the Flex IDE version that sells for a few hundred bucks. Is anyone else get an expiration notice when using the Flex SDK? thanks
[flexcoders] How I can to modify a xml with Flex and Php?
How I can to modify a xml with Flex and Php?
Re: [flexcoders] Flex Builder 2.0.1 Eclipse Plugin Issues
Well I just updated to eclipse 3.2 and the problem persists. :( On 2/1/07, Rich Tretola [EMAIL PROTECTED] wrote: Are you only doing Flex projects or have you tried to create a Java project with Flex files included within? On 2/1/07, Jeffry Houser [EMAIL PROTECTED] wrote: Flex Builder 2.01 has been working fine for me on Eclipse 3.1. ( I assumed it was supported, but I could be wrong ) At 01:20 PM 2/1/2007, you wrote: Not positive, but I don't think Eclipse 2.0.1 is officially supported in 3.1 You may need 3.2. -D Rich Tretola wrote: I upgraded my Flex Builder 2 plugin on Eclipse today (Eclipse 3.1 on Win XP) to 2.0.1 and I am now getting an error when trying to open any of my projects which were defined as java projects. Here is the error: A problem occurred while opening this project. Try quitting and restarting the application. If the problem persists, you may be using an unsupported project version, or your project files may be corrupted. If I accept the dialog, I can edit the MXML and AS files within the MXML and ActionScript editors however I do not get any code hints. Has anyone else seen this issue? Rich -- Jeffry Houser, Software Developer, Writer, Songwriter, 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 Connecticut Macromedia User Group: http://www.ctmug.com -- Rich Tretola mx:EverythingFlex/ http://www.EverythingFlex.com -- Rich Tretola mx:EverythingFlex/ http://www.EverythingFlex.com
Re: [flexcoders] How I can to modify a xml with Flex and Php?
Do you have anymore information. Maybe start with how would you go about modifying xml with php and then look at the flex bit. On 2/2/07, alphaclass525 [EMAIL PROTECTED] wrote: How I can to modify a xml with Flex and Php?
Re: [flexcoders] Trial Expiration Message with Flex SDK
Thing that you have been using with eclipse is FlexBuilder2, that is not free. Flex SDK is free, which is basically flex-framework, command-line tools (compiler, debugger) and other libraries. -abdul On 2/2/07, primemate10 [EMAIL PROTECTED] wrote: I'm using the Flex SDK with Eclipse. I was under the assumption that the SDK is FREE! unlike the Flex IDE version that sells for a few hundred bucks. Is anyone else get an expiration notice when using the Flex SDK? thanks
[flexcoders] Re: Flex 2 Compiler / Metadata Question
Sure thing, The ideal scenario for us would be to use our own custom metadata tags in our Flex code. We have built a DWR wrapper that lets us use DWR in Flex 2, and many of the methods that automate this would benefit enormously from being able to read various things from an ActionScript object's metadata at run-time. As examples, two of the cases that would be extremely helpful are: - Mark properties of our IValueObject classes as transient such that the conversion code knows to skip them - Mark both the key type and value type of a hashmap-style data structure (like the Java Map interface and its various implementations) - Mark up classes such that their persistence policies can be specified in a declarative manner and then handled through a common set of functions Flex has this metadata construct that is pretty powerful ([Bindable], [Effect], [Embed], etc) but it only allows you to use a small set of adobe-specified metadata tags that the core adobe code is aware of and uses. We want to create and use our own custom metadata tags. Just as an example, if we made that transient tag, it could be as simple as: [Transient] public var someProperty : String; Now our code can read the metadata of an objects properties and determine at run-time which ones it can skip. Flex lets you add your own metadata tags, and if you use the -keep-as3-metadata+=Transient compiler flag it works beautifully in Debug mode. But when you switch to run mode, it goes back to throwing out all metadata tags it doesn't understand. We just want to find a way to keep them around in both run and debug modes. It seems like this metadata construct could be incredibly powerful for certain types of applications, especially libraries and tools. --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 01 Feb 2007, gtuhl wrote: Anyone have any ideas? Remind us of the problem you are trying to solve. -- Tom Chiverton Helping to professionally strategize visionary supply-chains This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] How I can to modify a xml with Flex and Php?
Right. You need to focus on PHP code that would read/write/manipulate XML. Once you are done with that, you can read how can Flex apps communicate with backend (PHP, JSP etc). Generally, there are following methods used:- 1) HTTPService class of Flex framwork - To communicate over standard HTTP GET/POST 2) WebService class of Flex framework - To communicate with server for SOAP based webservices (little complicated to use on both sides - server as well as client) 3) RemoteObject class of Flex framework - To communicate using Flash Remoting (AMF), it requires AMFPHP installed on your server, there is learning curve to use it as well. The simplest way is to you #1 option. You can make your PHP script accept HTTP/POST and return XML/Text. This way you can write frontend in Flex/AJAX/HTML-Form etc Does this help you? -abdul On 2/2/07, cisnky [EMAIL PROTECTED] wrote: Do you have anymore information. Maybe start with how would you go about modifying xml with php and then look at the flex bit. On 2/2/07, alphaclass525 [EMAIL PROTECTED] wrote: How I can to modify a xml with Flex and Php?
RE: [flexcoders] Non-Clustered CPU, Clustered, Distributed and Mirroring Environment????
Assuming you have multiple CPUs (non-virtual) running FDS for the same application, in all of those scenarios you still need a license per-CPU. The only scenario where you do not need a license is where FDS is running on one CPU (and it can support as many applications as you like). If you were to have separate applications (and application here means business purpose application, not necessarily Flex application) you could even have one FDS CPU per application. However, I consider this scenario unlikely for a business, but more possible for personal use. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjaypmg Sent: Friday, February 02, 2007 2:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Non-Clustered CPU, Clustered, Distributed and Mirroring Environment Hi All, We need to install an application where a number of screens are developed using FLEX. We could have different environment-setups in which the application may be deployed and need to know in what scenarios we will have to get separate licences of FLEX DATA SERVICES for application deployment and maintenance (Would be of great help if someone could explain the difference in all the four environment settings) : 1. Non-Clustered CPU environment 2. Clustered Environment 3. Distributed Environment 4. Mirroring Environment All help would be appreciated. Thanks Sanjay
Re: [flexcoders] Re: Flex 2 Compiler / Metadata Question
On Friday 02 Feb 2007, gtuhl wrote: The ideal scenario for us would be to use our own custom metadata tags in our Flex code. We have built a DWR wrapper that lets us use DWR in Flex 2, and many of the methods that automate this would benefit enormously from being able to read various things from an ActionScript object's metadata at run-time. The obvious work around is to have all your objects implement a common Interface, which has a getMetaData() method that the developers populate at compile time. -- Tom Chiverton Helping to dramatically conquer vertical schemas This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Drag-Resize MDI Example
I would like to see the source for this... I am interested in seeing how its done. On 2/2/07, Janis Radins [EMAIL PROTECTED] wrote: Hi! I think i just made somthing you were talking about. See this http://www.mediaverk.lv/trash/MinisableResizableWindow/ This is just a very first version just got it working so there mutch be some problems. I can make sources available if youre interested. Janis 2007/1/29, John Kirby [EMAIL PROTECTED]: Yes!... but it looks like the source is not available Dave Carabetta said the following: Do you mean something like this? http://www.cynergysystems.com/blogs/page/andrewtrice?entry=enhanced_flex_mdi_interface Regards, Dave. Cynergy Systems, Inc. On 1/14/07, John Kirby [EMAIL PROTECTED] wrote: Anyone know of a Flex 2 Drag-Resize MDI/Panel example? -- *Whether you think that you can, or that you can't, you are usually right.* - Henry Ford -- *Whether you think that you can, or that you can't, you are usually right.* - Henry Ford -- http://indeegrumpee.spaces.live.com/
[flexcoders] rollOver Tree Node
I'm trying to set up a toolTip for the Tree Node and get some data in it from XML.. Does anyone have experience in doing this? I do something like rollOver(getName(event)) in the Tree however that forces a MouseEvent, which doesn't have the selectedTarget method... I can get the data on click, using [EMAIL PROTECTED], but I want to do it as they roll over the Tree leafs. Anyways, has anyone done this before and can offer some help? Thanks
Re: [flexcoders] Apollo features
Tom Chiverton wrote: Does anyone or has read somewhere, if Apollo will allow you to launch native local applications ? As far as I know, Apollo is using webkit, does this include the ability to run other plugins besides Flash (like Java)? If so, can you use one of those other plugins (java, or perhaps a custom plugin) to access native dlls and such by communicating from Flash to Javascript, then to the other plugin in Javascript? Kevin N.
Re: [flexcoders] Drag-Resize MDI Example
I've created a Dashboard that acts as an MDI with custom Widgets (TitleWindows that flip over to configure, etc). The one thing I'd really like to see though is some example code for is how to tile the windows evenly across the screen. I assume that there is some degree of math to figuring out how many windows can fit in the user's screen resolution per row/column/etc, but I've never really taken the time to go through it in depth. Brian On 2/2/07, Clint Tredway [EMAIL PROTECTED] wrote: I would like to see the source for this... I am interested in seeing how its done. On 2/2/07, Janis Radins [EMAIL PROTECTED] wrote: Hi! I think i just made somthing you were talking about. See this http://www.mediaverk.lv/trash/MinisableResizableWindow/ This is just a very first version just got it working so there mutch be some problems. I can make sources available if youre interested. Janis 2007/1/29, John Kirby [EMAIL PROTECTED]: Yes!... but it looks like the source is not available Dave Carabetta said the following: Do you mean something like this? http://www.cynergysystems.com/blogs/page/andrewtrice?entry=enhanced_flex_mdi_interface Regards, Dave. Cynergy Systems, Inc. On 1/14/07, John Kirby [EMAIL PROTECTED] wrote: Anyone know of a Flex 2 Drag-Resize MDI/Panel example? -- Whether you think that you can, or that you can't, you are usually right. - Henry Ford -- Whether you think that you can, or that you can't, you are usually right. - Henry Ford -- http://indeegrumpee.spaces.live.com/ -- Brian Dunphy
[flexcoders] how and when is updateDisplayList called ?
Hi all, Can anyone tell how and when is updateDisplayList called ? I always call super.updateDisplayList() when ever I override it. I created a datagrid which contains line graph in one of it's columns. Now once I removed super.updateDisplayList() from the my itemrenderer and still it was working . Also if i want to change property of some component like color do i want to call invalidateDisplayList()? Thanks, Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com
Re: [flexcoders] Apollo features
On Friday 02 Feb 2007, Kevin Newman wrote: Tom Chiverton wrote: Does anyone or has read somewhere, if Apollo will allow you to launch native local applications ? As far as I know, Apollo is using webkit, I would *expect* them to do that, did read something somewhere ? does this include the ability to run other plugins besides Flash (like Java)? I'd expect each type of content to run in it's own container, inside the Apollo meta-container. There would then be a per-container extension library (some new classes for Flex, a JS lib for HTML, ...) you could use in the embeded app to access the newer stuff. This fits with the few bits of Flex code we've seen (porting a Flex app by adding an import and new top level tags). If so, can you use one of those other plugins (java, or perhaps a custom plugin) to access native dlls and such by communicating from Flash to Javascript, then to the other plugin in Javascript? I imagine that would work. But, eww !. It'd be nicer to have it Just Work. -- Tom Chiverton Helping to continually benchmark internet methodologies This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Apollo features
To be honest... all this talk I've been hearing about Apollo being used as desktop applications using web technologies... I would kinda expect that you can launch exe passing parameters ( like CLI style or something similar ), talk to dynamic libraries like .dll ( Windows ), .so ( Linux )... kinda surprised it doesn't support any of that yet... yet they call it desktop applications... it's more like their own browser in my opinion... I doubt this is how Apollo will be all the way. But if it does... can't say people will move to it quickly while MDM Zinc is there being able to do all of that ( regardless Zinc is free or not ) and WPF/E I had plans to write applications where I can use SQLite, MySQL, GD2, run servers using TCP/IP on specific ports and ip addresses, video codecs like divx, xvid and others... if all I can do is talk to the file system then I may aswell stick with Flex 2... The only use I can see that for is for offline storage applications like the ebay application and Amazon application... Thats what alot of people want to do anyways but thats not the only thing they want to do... but then again I'm assuming quite abit here... I havn't got full info about Apollo... but what I've been hearing about WPF/E compared to Apollo... I'm assuming Apollo can't do some of the things I said above and I'm not interested in WPF/E. As far as I know... only works on Windows but I still watch it to see what people say about it... I like to be cross platform I use Flex 2 alot for the things I'm doing now. I don't think I will be using Apollo as much as I thought I predicted as I do with Flex 2 On 2/2/07, Kevin Newman [EMAIL PROTECTED] wrote: Tom Chiverton wrote: Does anyone or has read somewhere, if Apollo will allow you to launch native local applications ? As far as I know, Apollo is using webkit, does this include the ability to run other plugins besides Flash (like Java)? If so, can you use one of those other plugins (java, or perhaps a custom plugin) to access native dlls and such by communicating from Flash to Javascript, then to the other plugin in Javascript? Kevin N.
[flexcoders] Updating dataProvider from a control that uses it?
I'm trying to create a control that receives a dataProvider (which is an ArrayCollection of Objects) and draws these objects as Sprites on screen (the object contains x and y property (coordinate) of the Sprite). My question is: when moving the object with mouse, how can it's new position automatically be propagated to the dataProvider? I want to accomplish that my Sprites behave like DataGrid items: when changing it's properties (x and y), i'd like the objects in dataProvider to be updated with (x,y) data. Thanks in advance! Danko
Re: [flexcoders] Updating dataProvider from a control that uses it?
in your dragDrop event, broadcast the items x y along with its arrayCollection identifier and update the collection. On 2/2/07, Danko Kozar [EMAIL PROTECTED] wrote: I'm trying to create a control that receives a dataProvider (which is an ArrayCollection of Objects) and draws these objects as Sprites on screen (the object contains x and y property (coordinate) of the Sprite). My question is: when moving the object with mouse, how can it's new position automatically be propagated to the dataProvider? I want to accomplish that my Sprites behave like DataGrid items: when changing it's properties (x and y), i'd like the objects in dataProvider to be updated with (x,y) data. Thanks in advance! Danko -- http://indeegrumpee.spaces.live.com/
[flexcoders] Re: Updating dataProvider from a control that uses it?
Yes I now that - but I'd like to happen automattically. Just as when you alter the property of the DataGrid item like this: myDataGrid.items[3].myProperty = 2007 ... that action itself broadcasts the change to the grid's dataProvider! So I'd like to have only the line: mySprite.x = 123 .. and that has to change the dataProvider.. Thx.. --- In flexcoders@yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: in your dragDrop event, broadcast the items x y along with its arrayCollection identifier and update the collection. On 2/2/07, Danko Kozar [EMAIL PROTECTED] wrote: I'm trying to create a control that receives a dataProvider (which is an ArrayCollection of Objects) and draws these objects as Sprites on screen (the object contains x and y property (coordinate) of the Sprite). My question is: when moving the object with mouse, how can it's new position automatically be propagated to the dataProvider? I want to accomplish that my Sprites behave like DataGrid items: when changing it's properties (x and y), i'd like the objects in dataProvider to be updated with (x,y) data. Thanks in advance! Danko -- http://indeegrumpee.spaces.live.com/
[flexcoders] Re: rollOver Tree Node
BTW, the error message I get is TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.alltel.rapid.aopscheduler.view::SearchByLocationView/::getRSM() at com.alltel.rapid.aopscheduler.view::SearchByLocationView/__locationsTree_rollOver() when trying.. private function getRSM(event : MouseEvent ):void { locationsTree.toolTip = [EMAIL PROTECTED]; } Thanks again On 2/2/07, Greg Morphis [EMAIL PROTECTED] wrote: I'm trying to set up a toolTip for the Tree Node and get some data in it from XML.. Does anyone have experience in doing this? I do something like rollOver(getName(event)) in the Tree however that forces a MouseEvent, which doesn't have the selectedTarget method... I can get the data on click, using [EMAIL PROTECTED], but I want to do it as they roll over the Tree leafs. Anyways, has anyone done this before and can offer some help? Thanks
[flexcoders] Flex certification, anyone take the exam?
Just curious if anyone has take the exam and passed it? I will not ask about the exam because I know you are not supposed to say a thing, I will only ask if you felt prepared? I read that the scoring was similar to the CF exam in that scoring over 80% you were awarded an expert status while passing at 65% to 79.9% was just normal (rather lucky to have passed). Is this true? LD
Re: [flexcoders] Print Preview Help
Hi, and the preview should be able to show the number of pages that would be present in the Printed hard copy. To show that you need to know the paper size, that is not known until you start printjob.start (..), once printjob.start (..) is called Print dialogue box is shown and Flash Player stops rendering anything on screen. The only way I can imagine is when you know the page size or assume A4, instruct user that print-preview is based on A4 (or whatever assume) page size. If you can assume or standardized the page size for your print preview, you might do this to show print-preview. Create Print Preview using same technique using PrintDataGrid, as shown in docs, with these changes:- - Create s separate view that contains the entire logic of printing. Which means, when view is initialized, it would create PrintDataGrid instances, populate the PrintDataGrid etc.. - you can provide controls to change pages in PrintDataGrid and print it. - When user hits the print button, you basically start printJob and start adding pages (footer, content pages, header) to FlexPrintJob instance.. - And print it.. I guess, I would do that way... But I am sure there are always better ways.. -abdul On 2/2/07, Sastry [EMAIL PROTECTED] wrote: Hi All, I am trying to print the contents of a DataGrid using a Print Data Grid. The Direct print is working good. But now, I need a Print Preview and the preview should be able to show the number of pages that would be present in the Printed hard copy. I also want to let the user select the pages he wants to print. Any Ideas regarding this? Thanks, Sastry
[flexcoders] Re: Updating dataProvider from a control that uses it?
Does my control have to implement some interfaces which are implemented by DataGrid? I'd like a simple explanation what list controls do behind the scene when it's item is updated. Thanks.. --- In flexcoders@yahoogroups.com, Danko Kozar [EMAIL PROTECTED] wrote: Yes I now that - but I'd like to happen automattically. Just as when you alter the property of the DataGrid item like this: myDataGrid.items[3].myProperty = 2007 ... that action itself broadcasts the change to the grid's dataProvider! So I'd like to have only the line: mySprite.x = 123 .. and that has to change the dataProvider.. Thx.. --- In flexcoders@yahoogroups.com, Clint Tredway grumpee@ wrote: in your dragDrop event, broadcast the items x y along with its arrayCollection identifier and update the collection. On 2/2/07, Danko Kozar danko.kozar@ wrote: I'm trying to create a control that receives a dataProvider (which is an ArrayCollection of Objects) and draws these objects as Sprites on screen (the object contains x and y property (coordinate) of the Sprite). My question is: when moving the object with mouse, how can it's new position automatically be propagated to the dataProvider? I want to accomplish that my Sprites behave like DataGrid items: when changing it's properties (x and y), i'd like the objects in dataProvider to be updated with (x,y) data. Thanks in advance! Danko -- http://indeegrumpee.spaces.live.com/
RE: [flexcoders] Apollo features
I have to agree here, if we can't extend it with our own dll's then what is the real value proposition for Apollo. I think support for dll’s is important (com, managed, other). Allowing us to reuse our existing middle tiers/frameworks, and use Apollo to create engaging user experiences. jason -Message d'origine- De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] la part de Jerome Clarke a.k.a sinatosk Envoyé : vendredi 2 février 2007 16:54 À : flexcoders@yahoogroups.com Objet : Re: [flexcoders] Apollo features To be honest... all this talk I've been hearing about Apollo being used as desktop applications using web technologies... I would kinda expect that you can launch exe passing parameters ( like CLI style or something similar ), talk to dynamic libraries like .dll ( Windows ), .so ( Linux )... kinda surprised it doesn't support any of that yet... yet they call it desktop applications... it's more like their own browser in my opinion... I doubt this is how Apollo will be all the way. But if it does... can't say people will move to it quickly while MDM Zinc is there being able to do all of that ( regardless Zinc is free or not ) and WPF/E I had plans to write applications where I can use SQLite, MySQL, GD2, run servers using TCP/IP on specific ports and ip addresses, video codecs like divx, xvid and others... if all I can do is talk to the file system then I may aswell stick with Flex 2... The only use I can see that for is for offline storage applications like the ebay application and Amazon application... Thats what alot of people want to do anyways but thats not the only thing they want to do... but then again I'm assuming quite abit here... I havn't got full info about Apollo... but what I've been hearing about WPF/E compared to Apollo... I'm assuming Apollo can't do some of the things I said above and I'm not interested in WPF/E. As far as I know... only works on Windows but I still watch it to see what people say about it... I like to be cross platform I use Flex 2 alot for the things I'm doing now. I don't think I will be using Apollo as much as I thought I predicted as I do with Flex 2 On 2/2/07, Kevin Newman [EMAIL PROTECTED] wrote: Tom Chiverton wrote: Does anyone or has read somewhere, if Apollo will allow you to launch native local applications ? As far as I know, Apollo is using webkit, does this include the ability to run other plugins besides Flash (like Java)? If so, can you use one of those other plugins (java, or perhaps a custom plugin) to access native dlls and such by communicating from Flash to Javascript, then to the other plugin in Javascript? Kevin N.
[flexcoders] Problem setting efects on TitleWindow
Hi all, I have a problem trying to set a Zoom efect on showing one TitleWindow as popup. Effect is made ok, but at the end it throws one error: ReferenceError: Error #1069: No se encontró la propiedad autoLayout en _AdminContenidos_mx_managers_SystemManager y no hay ningún valor predeterminado. at mx.effects.effectClasses::ZoomInstance/onTweenEnd() at mx.effects::Tween/endTween() at mx.effects::Tween/http://www.adobe.com/2006/flex/mx/internal::doInterval() at mx.effects::Tween$/::timerHandler() at flash.utils::Timer/flash.utils:Timer::_timerDispatch() at flash.utils::Timer/flash.utils:Timer::tick() In english should be something like: ReferenceError: Error #1069: autoLayout property was not found on _AdminContenidos_mx_managers_SystemManager and there is no default value. The component: ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; close=PopUpManager.removePopUp(this); creationComplete=doInit() width=100% height=100% autoLayout=false visible=false showEffect={ZoomRotateShow} removedEffect={ZoomRotateHide} mx:Script ![CDATA[ private function doInit():void { this.visible=true; PopUpManager.centerPopUp(this); this.setFocus(); } ]] /mx:Script mx:Parallel id=ZoomRotateShow mx:Zoom id=myZoomShow zoomHeightFrom=0.0 zoomWidthFrom=0.0 zoomHeightTo=1.0 zoomWidthTo=1.0/ !-- mx:Rotate id=myRotateShow / -- /mx:Parallel mx:Sequence id=ZoomRotateHide !-- mx:Rotate id=myRotateHide/ -- mx:Zoom id=myZoomHide zoomHeightFrom=1.0 zoomWidthFrom=1.0 zoomHeightTo=0.0 zoomWidthTo=0.0/ /mx:Sequence .. ... /mx:TitleWindow ¿Any idea this error appears? Regards, Jesus
[flexcoders] Re: using soapHeaders to pass UserName and Password
Another developer and I worked thru this function and really had a hard time making heads or tails of everything. In my first post I added a working version from Flash MX Pro. I just need to pass a username and password (hard coded in the AS) to the webservice in order to retreive the XML. Any more help would be much appreciated. We've been trying to work this our for quite a while now. Thanks, Mark --- In flexcoders@yahoogroups.com, Mark [EMAIL PROTECTED] wrote: Jamie, Thanks for the fast reply to this problem but it seems like you posted partial code. I feel like you left out some important pieces to the puzzle so I'm confused as to how you're calling your function and what is ModelLocator, ourService and myWebService (I'm guessing the id to the WebService tag?). Could you fill in the gaps when you have some time? Thanks! --- In flexcoders@yahoogroups.com, jamiebadman jamie.badman@ wrote: Here's how I did it a way back... not using this anymore but I'm pretty sure it worked at the time ;-) import mx.rpc.soap.SOAPHeader; private function login():void{ ModelLocator.getInstance().qname = new QName (http://docs.oasis- open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext- 1.0.xsd,Security); ModelLocator.getInstance().headerSecurity = new SOAPHeader (ModelLocator.getInstance().qname, XML(String( wsse:Security + xmlns:wsse='http://docs.oasis- open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext- 1.0.xsd' + xmlns:wsu='http://docs.oasis- open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility- 1.0.xsd' + wsse:UsernameToken wsu:Id='+username_ti.text+' + wsse:Username+username_ti.text+/wsse:Username + wsse:Password+password_ti.text+/wsse:Password + /wsse:UsernameToken + /wsse:Security)) ); ourService.addHeader(ModelLocator.getInstance ().headerSecurity); ourService.myWebService.send(); } Hope this helps. Jamie.
Re: [flexcoders] Apollo features
You probably heard drag and drop into apollo (local file into app). However, it should be possible to simulate drag from browser into apollo app. mikeh chambers [EMAIL PROTECTED] Tom Chiverton wrote: I'm sure there was a quote about being able to drag applications of web sites onto desktops. Maybe I mis-remember and it was dragging local files onto a web-based Apollo app. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Apollo features
Only Flash and PDF are supported in 1.0. I will update the FAQ with the info. http://labs.adobe.com/wiki/index.php/Apollo:developerfaq mike chambers [EMAIL PROTECTED] Kevin Newman wrote: Tom Chiverton wrote: Does anyone or has read somewhere, if Apollo will allow you to launch native local applications ? As far as I know, Apollo is using webkit, does this include the ability to run other plugins besides Flash (like Java)? If so, can you use one of those other plugins (java, or perhaps a custom plugin) to access native dlls and such by communicating from Flash to Javascript, then to the other plugin in Javascript? Kevin N.
Re: [flexcoders] Apollo features
Actually, that is not necessarily the case. If you look at our descriptions of Apollo, we try to make it very clear that Apollo is focused at bringing RIAs to the desktop. It is this use case that is driving feature prioritization. From the FAQ: http://labs.adobe.com/wiki/index.php/Apollo:developerfaq#What_is_Apollo.3F What is Apollo Apollo is the code name for a cross-operating system runtime being developed by Adobe that allows developers to leverage their existing web development skills (Flash, Flex, HTML, JavaScript, Ajax) to build and deploy Rich Internet Applications (RIAs) to the desktop. What type of applications does Apollo target? While a number of more traditional desktop applications can be built and targeted at the Apollo runtime, Apollo is targeted at making it easy to develop and deploy Rich Internet Applications to the desktop. It is this use case, deploying RIAs to the desktop, which is driving the feature set for Apollo 1.0. What types of developers is Apollo targeting? Apollo is targeted at developers who are currently leveraging web technologies, such as Flash, Flex, HTML, JavaScript and Ajax techniques to build and deploy Rich Internet Applications. Now, having said that, being able to launch native executables directly is still being considered. (although including native DLLs / libraries will not be in 1.0). Btw, you will definately be able to launch file handlers for file types. Of course, this is just for 1.0, and we have to make some difficult decisions around features in order to be able to get 1.0 out. We will be doing versions of Apollo after 1.0. Btw, as far as WPF/E, it is a browser based plugin, not a desktop runtime, and thus has all the same security restrictions and other issues with running in the browser. mike chambers [EMAIL PROTECTED] Jerome Clarke a.k.a sinatosk wrote: To be honest... all this talk I've been hearing about Apollo being used as desktop applications using web technologies... I would kinda expect that you can launch exe passing parameters ( like CLI style or something similar ), talk to dynamic libraries like .dll ( Windows ), .so ( Linux )... kinda surprised it doesn't support any of that yet... yet they call it desktop applications... it's more like their own browser in my opinion... I doubt this is how Apollo will be all the way. But if it does... can't say people will move to it quickly while MDM Zinc is there being able to do all of that ( regardless Zinc is free or not ) and WPF/E I had plans to write applications where I can use SQLite, MySQL, GD2, run servers using TCP/IP on specific ports and ip addresses, video codecs like divx, xvid and others... if all I can do is talk to the file system then I may aswell stick with Flex 2... The only use I can see that for is for offline storage applications like the ebay application and Amazon application... Thats what alot of people want to do anyways but thats not the only thing they want to do... but then again I'm assuming quite abit here... I havn't got full info about Apollo... but what I've been hearing about WPF/E compared to Apollo... I'm assuming Apollo can't do some of the things I said above and I'm not interested in WPF/E. As far as I know... only works on Windows but I still watch it to see what people say about it... I like to be cross platform I use Flex 2 alot for the things I'm doing now. I don't think I will be using Apollo as much as I thought I predicted as I do with Flex 2 On 2/2/07, * Kevin Newman* [EMAIL PROTECTED]
[flexcoders] Re: Gantt Chart
Nice Doug. What about dates? In theory how would that part hook up? I would argue that a time line of dates might be the most important part. I like what you did a lot. If we could combine what you did with the sliders with how the scheduler works I think we would have a really useful Gantt chart. I'm going to try it out. I'm only on day 11 of my Flex career though ;). If we do start building a Gantt chart as a community is there a place where we can post and share code/examples? Should I just post links to this mailing list? When we make something cool should we just send it to Doug to put on his blog? ;) I'm really a .NET developer and we would use Codeplex if we wanted to do a project like this. I was wondering if flex had anything like that. I'm going to start a feature list. Please adjust/add/subtract to it depending on what you want/need in a Gantt chart. Features wish list: Bar chart type representation Time line of dates at the top and/or bottom Have a mechanism to adjust the length and position of the bar (like Doug's example) Zoom feature to look at the dates by hour/day/month/quarter/year (like the scheduler does) Please add to this list! :) -Nate --- In flexcoders@yahoogroups.com, Doug McCune [EMAIL PROTECTED] wrote: Here's my attempt that uses the DataGrid approach: http://dougmccune.com/blog/2007/02/01/building-a-gantt-chart-component-in-flex/ It uses adjustable sliders, so you can adjust each item. It's by no means complete, but maybe it can be a start... Doug Clint Tredway wrote: no problem, I figured it could work as a gantt chart even if it wasnt originally designed to do so... hope it works out.
[flexcoders] Re: Flex Builder 2.0.1 Eclipse Plugin Issues
Did you try launching eclipse with the -clean flag? http://www.adobe.com/support/documentation/en/flex/2/install.html#installingfb2 - Chris --- In flexcoders@yahoogroups.com, Rich Tretola [EMAIL PROTECTED] wrote: Well I just updated to eclipse 3.2 and the problem persists. :( On 2/1/07, Rich Tretola [EMAIL PROTECTED] wrote: Are you only doing Flex projects or have you tried to create a Java project with Flex files included within? On 2/1/07, Jeffry Houser [EMAIL PROTECTED] wrote: Flex Builder 2.01 has been working fine for me on Eclipse 3.1. ( I assumed it was supported, but I could be wrong ) At 01:20 PM 2/1/2007, you wrote: Not positive, but I don't think Eclipse 2.0.1 is officially supported in 3.1 You may need 3.2. -D Rich Tretola wrote: I upgraded my Flex Builder 2 plugin on Eclipse today (Eclipse 3.1 on Win XP) to 2.0.1 and I am now getting an error when trying to open any of my projects which were defined as java projects. Here is the error: A problem occurred while opening this project. Try quitting and restarting the application. If the problem persists, you may be using an unsupported project version, or your project files may be corrupted. If I accept the dialog, I can edit the MXML and AS files within the MXML and ActionScript editors however I do not get any code hints. Has anyone else seen this issue? Rich -- Jeffry Houser, Software Developer, Writer, Songwriter, 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 Connecticut Macromedia User Group: http://www.ctmug.com -- Rich Tretola mx:EverythingFlex/ http://www.EverythingFlex.com -- Rich Tretola mx:EverythingFlex/ http://www.EverythingFlex.com
Re: [flexcoders] Apollo features
The real value of Apollo would be cross-platform applications. I can't run your DLL's on my Mac. If you need DLL's, use VB to build your app, and don't tease me with the false hope of a cross-platform application by building with Apollo and then ruining it with windows-only code. :) Shan Jason Hawryluk wrote: I have to agree here, if we can't extend it with our own dll's then what is the real value proposition for Apollo. I think support for dll’s is important (com, managed, other). Allowing us to reuse our existing middle tiers/frameworks, and use Apollo to create engaging user experiences. jason -Message d'origine- *De :* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] la part de* Jerome Clarke a.k.a sinatosk *Envoyé :* vendredi 2 février 2007 16:54 *À :* flexcoders@yahoogroups.com *Objet :* Re: [flexcoders] Apollo features To be honest... all this talk I've been hearing about Apollo being used as desktop applications using web technologies... I would kinda expect that you can launch exe passing parameters ( like CLI style or something similar ), talk to dynamic libraries like .dll ( Windows ), .so ( Linux )... kinda surprised it doesn't support any of that yet... yet they call it desktop applications... it's more like their own browser in my opinion... I doubt this is how Apollo will be all the way. But if it does... can't say people will move to it quickly while MDM Zinc is there being able to do all of that ( regardless Zinc is free or not ) and WPF/E I had plans to write applications where I can use SQLite, MySQL, GD2, run servers using TCP/IP on specific ports and ip addresses, video codecs like divx, xvid and others... if all I can do is talk to the file system then I may aswell stick with Flex 2... The only use I can see that for is for offline storage applications like the ebay application and Amazon application... Thats what alot of people want to do anyways but thats not the only thing they want to do... but then again I'm assuming quite abit here... I havn't got full info about Apollo... but what I've been hearing about WPF/E compared to Apollo... I'm assuming Apollo can't do some of the things I said above and I'm not interested in WPF/E. As far as I know... only works on Windows but I still watch it to see what people say about it... I like to be cross platform I use Flex 2 alot for the things I'm doing now. I don't think I will be using Apollo as much as I thought I predicted as I do with Flex 2 On 2/2/07, *Kevin Newman* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Tom Chiverton wrote: Does anyone or has read somewhere, if Apollo will allow you to launch native local applications ? As far as I know, Apollo is using webkit, does this include the ability to run other plugins besides Flash (like Java)? If so, can you use one of those other plugins (java, or perhaps a custom plugin) to access native dlls and such by communicating from Flash to Javascript, then to the other plugin in Javascript? Kevin N.
[flexcoders] ByteArray / URLLoader / Loader / Image / Size?
(I have searched for this answer on the list and in the docs and can't find anything so I'm gonna go ahead and post. If I missed a previous post, I apologize, please point me towards it.) I have an image in a ByteArray and I want to display it within a specific width and height inside an Image object. Here is my logic: private var urlloader:URLLoader = new URLLoader(); private var loader:Loader = new Loader(); urlloader.dataFormat = URLLoaderDataFormat.BINARY; urlloader.data = ByteArray(imageByteArray); loader.loadBytes(ByteArray(urlloader.data)); var child:DisplayObject = previewImage.addChild(genericLoader); mx:Image scaleContent=true height=260 width=215 id=previewImage/ When it displays it does not scale automatically, it simply displays at 1:1 of the original ByteArray image. If I set child.width and child.height to specific values (i.e. 215x260) the Image (or child) just doesn't display. I CAN change scale directly or use a Matrix to scale it, but the problem there is that the child.width and .height are returning 0 so I can't calculate the correct scale. Any ideas??? -Andy
[flexcoders] Re: TabNavigator Tab BackgroundImage
Check out http://www.scalenine.com . I just added a theme based on the soon to be released Yahoo Messenger for Windows Vista. There's a lot of samples and source files that I think could help. Basically to set a background image for a tab you have to specify a tabStyle in the TabNavigator attributes. In that tabStyle you set the background up, over, down, selected, etc. states. Hope that helps. Juan --- In flexcoders@yahoogroups.com, cgiamett2 [EMAIL PROTECTED] wrote: I have been doing a lot of looking around and cannot come across how to add a BackgroundImage to tabs in a TabNavigator. I have seen buttons added, etc. Is there a simple way to just add an image to tabs?
Re: [flexcoders] Apollo features
I think that just getting the app out of the browser is also a major advantage. It will still be possible to create platform specific Apollo apps, but (at least for 1.0), when we prioritize features, we are going to prioritize those which enable and encourage cross platform applications. mike chambers [EMAIL PROTECTED] Shannon Hicks wrote: The real value of Apollo would be cross-platform applications. I can't run your DLL's on my Mac. If you need DLL's, use VB to build your app, and don't tease me with the false hope of a cross-platform application by building with Apollo and then ruining it with windows-only code. :) Shan
[flexcoders] Re: Can't find bug in this piece of ActionScript
Hi, The bug is that you are continuing through the loop even after you have found the employeeStateId you are looking for. What you really want is something like: ... if( employeeStateId == stateCB.dataProvider[i].stateId ) { stateCB.selectedIndex = employeeStateId ; return; } ... Also, your code is a little inefficient in that it sets the selectedIndex to 0 for every item that is *not* the value you are looking for, instead of setting it to 0 once if the value is not found. HTH, Doug --- In flexcoders@yahoogroups.com, malik_robinson [EMAIL PROTECTED] wrote: Hi, I am trying to set the selectedIndex of my U.S. States custom combo box equal to what the user has stored in their record in our database. Someone posted a link to a similar tutorial, but I could not get it to work and I think it seems to be slightly different than what I am doing. When the screen loads, the state the user is associated with should be selected, otherwise set the selectedIndex equal to 0. As of now it does not select anything it seems the condition where I test for equality fails and I always get the selectedIndex set to 0. The code: public function initStateCB(employeeStateId:Number):void { for ( var i:int=0; i stateCB.dataProvider.length; i++ ) { if( employeeStateId == stateCB.dataProvider[i].stateId ) { stateCB.selectedIndex = employeeStateId ; } else { stateCB.selectedIndex = 0; } } } // close function mx:FormItem label=State: comp:StateCombo id=stateCB dataProvider={model.stateList} labelField=stateName creationComplete=initStateCB(model.employeeProfileArray[0].stateId)/ /mx:FormItem
Re: [flexcoders] ByteArray / URLLoader / Loader / Image / Size?
Your problem is that you're calling addChild on the Image component. This won't work with how the ImageComponent works (or rather SWFLoader, which is the base class). But the SWFLoader should be able to load a DisplayObject, if you set that as the source. Also, BTW, you don't need the URLLoader in your code So try doing this: private var loader:FlexLoader = new FlexLoader(); loader.loadBytes (imageByteArray); previewImage.source = loader; mx:Image scaleContent=true height=260 width=215 id=previewImage/ -Doug Andrew D. Goodfellow wrote: (I have searched for this answer on the list and in the docs and can't find anything so I'm gonna go ahead and post. If I missed a previous post, I apologize, please point me towards it.) I have an image in a ByteArray and I want to display it within a specific width and height inside an Image object. Here is my logic: private var urlloader:URLLoader = new URLLoader(); private var loader:Loader = new Loader(); urlloader.dataFormat = URLLoaderDataFormat.BINARY; urlloader.data = ByteArray(imageByteArray); loader.loadBytes (ByteArray(urlloader.data)); var child:DisplayObject = previewImage.addChild(genericLoader); mx:Image scaleContent=true height=260 width=215 id=previewImage/ When it displays it does not scale automatically, it simply displays at 1:1 of the original ByteArray image. If I set child.width and child.height to specific values (i.e. 215x260) the Image (or child) just doesn't display. I CAN change scale directly or use a Matrix to scale it, but the problem there is that the child.width and .height are returning 0 so I can't calculate the correct scale. Any ideas??? -Andy
RE: [flexcoders] Apollo features
Mike, Just a very small question, we see a lot of html flash stuff about apollo but what about PDF ? what will we able to do with it? Just read them? Can my offline app generate a pdf file for me? Can you provide any info about this? João Fernandes From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Chambers Sent: sexta-feira, 2 de Fevereiro de 2007 17:39 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Apollo features I think that just getting the app out of the browser is also a major advantage. It will still be possible to create platform specific Apollo apps, but (at least for 1.0), when we prioritize features, we are going to prioritize those which enable and encourage cross platform applications. mike chambers [EMAIL PROTECTED] mailto:mesh%40adobe.com Shannon Hicks wrote: The real value of Apollo would be cross-platform applications. I can't run your DLL's on my Mac. If you need DLL's, use VB to build your app, and don't tease me with the false hope of a cross-platform application by building with Apollo and then ruining it with windows-only code. :) Shan
[flexcoders] Re: How do you make a copy of an XMLListCollection ( not instance of ) ...
I event try: newList = ObjectUtil.copy(x) as XMLListCollection; for each (var node1:XML in x ){ trace( + node1); } for each (var node2:XML in newList ){ trace( + node2); } I see the traces for but nothing for :( --- In flexcoders@yahoogroups.com, Brian Dunphy [EMAIL PROTECTED] wrote: import mx.utils.ObjectUtil; var newList:Object = ObjectUtil.copy(oldList); Cheers, Brian On 2/1/07, helihobby [EMAIL PROTECTED] wrote: Can anyone please post sample code of how to make a copy of a XMLListCollection. Not a copy of the instance object but a new XMLListCollection object. Thank you for all the help, Sean. -- Brian Dunphy
Re: [flexcoders] How to create a Windows taskbar notification?
Thanks for the ideas. Apollo was the first thing that popped into my mind too when our users asked :) this app is a prime candidate for Apollo anyway. It's an internal web app, so we have a good amount of control over our environment. I did find an ActiveX control, I was figuring I could embed it in the HTML wrapper that I use for the Flex app, and then communicate with it from Flex via JavaScript, of course I'm not even sure that's possible with the control that I found. Thanks again, Rachel On 2/1/07, Mike Weiland [EMAIL PROTECTED] wrote: Hi Rachel, I can't think of a solution without installing something on the end users computer. If your requirements will allow you such an install then you might be in luck. A few years ago I was looking this very solution, I ended up doing my application in Central, but in the process I came up with 2 theories that could work. The first was to build a C# application that runs as a service with a Flash movie embedded inside of it that communicates back and forth with the main application via localconnection. The second was to do the same with Director, a third party Xtra has task bar methods so you could use that and communicate the back and forth with localconnection. There's also a way to run Director exes as services as well. The one thing I'm not sure of as I write this is updates to the Flash security model. Can a web app talk to a local SWF anymore? Might want to check into that before you embark on any other endeavors. As other's have pointed out you could wait for apollo, but if your main requirement is a web app, then apollo won't be a good fit for that. But maybe it can be configured as a service and run it that way so then you could write the service in apollo and communicate back and forth. That would be cool! Good luck, Mike - Mike Weiland Aspen Tree Media (877)659-1652 | FAX: (512)828-7105 http://www.AspenTreeMedia.com http://www.CertificateCreator.com - Create Print Awards and Certificates On 1/31/07 4:12 PM, Rachel Maxim [EMAIL PROTECTED] wrote: I need to create a Windows Taskbar notification (like the Outlook new message balloon) from Flex. I'm wondering if anyone can recommend a tool for doing this, I'd expect it to be some type of ActiveX or COM object. I'm using ColdFusion on the back end. I know almost nothing about Windows programming, but I've found a few tools online that seem to be the right direction, still if anyone has already built anything like this with Flex and/or CF I'd love to hear your advice. Thanks Rachel Maxim
Re: [flexcoders] Apollo features
Yeah. We have been focusing on the underlying infrastructure and HTML, which is why we havent given too many details on PDF. You will be able to leverage PDF within Apollo applications, although we don't have a lot of details around the integration just yet. Technically, you could create PDFs within Apollo by doing it via ActionScript, but we do have built in APIs for dynamically generating PDF content. Do you have an example of what you would like to do with generating PDF content? (you can email me with that directly if you like). mike chambers [EMAIL PROTECTED] João Fernandes wrote: Mike, Just a very small question, we see a lot of html flash stuff about apollo but what about PDF ? what will we able to do with it? Just read them? Can my offline app generate a pdf file for me? Can you provide any info about this? João Fernandes *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Mike Chambers *Sent:* sexta-feira, 2 de Fevereiro de 2007 17:39 *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Apollo features I think that just getting the app out of the browser is also a major advantage. It will still be possible to create platform specific Apollo apps, but (at least for 1.0), when we prioritize features, we are going to prioritize those which enable and encourage cross platform applications. mike chambers [EMAIL PROTECTED] mailto:mesh%40adobe.com Shannon Hicks wrote: The real value of Apollo would be cross-platform applications. I can't run your DLL's on my Mac. If you need DLL's, use VB to build your app, and don't tease me with the false hope of a cross-platform application by building with Apollo and then ruining it with windows-only code. :) Shan
[flexcoders] Re: Adding columns in DataGrid dynamically
You can reassign the grid's columns property to accomplish this. Array methods like push don't emit the events necessary for the component to detect that the array has changed, thus the component will not update. Try: public function populateData() { // code snipped var newCols: Array = []; newCols.push(new DataGridColumn(col1)); newCols.push(new DataGridColumn(col2)); dataGrid_columns = dataGrid_columns.concat(newCols); ... Reassigning dataGrid_columns to the new Array returned by the concat () method ought to be detected by the component and cause it to update. --- In flexcoders@yahoogroups.com, Paul Neyman [EMAIL PROTECTED] wrote: Is it possible to add DataGrid columns dynamically, after DataGrid has been initialized? I have the following scenario: User loads swf file with DataGrid component in it, and passes a url as parameter. ActionScript code makes an HttpRequest call to this url, receives Xml data, parses it into columns and displays it in the DataGrid. I do not know in advance, how many columns there will be. I tried to make 'columns' array bindable and add instances of DataGridColumn into it on the fly, but that has no effect on the DataGrid. While DataGrid is able to figure out itself, how many columns there are in a data provider, it sorts them in alphabetical order. I need to set my own order. Here's a code snippet: MXML: mx:DataGrid dataProvider={dataGrid_data} id = m_dataGrid columns={dataGrid_columns} initialize=makeCall() /mx:DataGrid mx:script [Bindable] public var dataGrid_data:ArrayCollection = new ArrayCollection(); [Bindable] public var dataGrid_columns:Array = new Array(); public function makeCall() { // code snipped ... populateData(dataGrid_data, dataGrid_columns); // code snipped } public function populateData() { // code snipped dataGrid_columns.push(new DataGridColumn(col1)); dataGrid_columns.push(new DataGridColumn(col2)); ... // add data to provider } While provider works perfectly, columns array does not affect the DataGrid at all. Is there any workaround for this? Thanks a lot.
[flexcoders] Module Loader progress bar
We have a large app we are building and decided to break it into modules. We have the module loading after a user successfully logins in. After the login it changes states to a box that just contains th moduleLoader. Its all working fine except we get no feedback as to the progress of the module. Is there a way to make it appear similar to the way the flex swf progress appears when loading the flex app? I have tried, unsuccessfully to use the module loader code in the docs. Thanks
[flexcoders] Re: Modules and Cairngorm - Solution... I think
Hi, This does look like a bug with SequenceCommand. I've been looking at the various options as to how to fix this. I've never been overly enamoured with SequenceCommand (it wasn't something we ever used in projects), but there was enough requests for us to add it. I suppose my initial question would be around how attached people are to the current API. We have discussed this here and can see a better implementation, but that would require changes to existing code. So, for the people who use SequenceCommand, how would you feel about having to change your client code, though it would be a relatively only small change in each place you use SequenceCommand? Thoughts? Alistair --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: Martin, you did give me enough of an idea to wonder if SequenceCommand was making the same mistake you were. After some experimenting I suspect that it was. I was setting nextEvent in the execute method of my SequenceCommand subclass. I went and looked at the docs (http://www.cairngormdocs.org/docs/cairngorm_2_1/index.html) and they suggest setting it in the constructor, so I tried that. Same error. Finally, I tried setting it in a handler method in my SC subclass (its a file upload command), on the line right before executeNextCommand () and that seems to have fixed it. It makes me wary of SequenceCommand though, so I am converting any classes that subclass it to regular command classes and I will just set and dispatch the next event manually. I also tried (very briefly) switching to the Cairngorm 2.2 beta SWC and was still getting the error. Hey AC guys, is there a bug in SequenceCommand? :) Hopefully this info helps others. Ben --- In flexcoders@yahoogroups.com, Martin Wood-Mitrovski flashdev@ wrote: I just had the same error and it was because i was trying to re- use event instances rather than dispatching new ones each time. But i wasnt using modules, just a normal Cairngorm app. I was going to look into it to find out exactly what was happening but I just dont have the time at the moment. maybe this is enough of a clue for someone else to say why :) Bjorn Schultheiss wrote: Hey Can anyone give me the lowdown on this error TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::[EMAIL PROTECTED] to com.adobe.cairngorm.control.CairngormEvent.
Re: [flexcoders] Panel and Scrollbars (basic question)
Hi Neil, Sorry, I couldn't actually run this because of the PredefinedEntitiesFromReport data being missing (nothing populated). I see what you are saying about the dynamic sizing, I don't think I can suggest a better way than what you have. If you were to make the layout of the base component absolute it could still be dynamically sized, that would allow you to set constraints for its children which would make the content stretch to the appropriate width. The component should still stretch to whatever size you pass to it. Unfortunately the size would not be determined by its children. Oh well, sorry I couldn't be of more help! Rachel On 2/2/07, nwebb [EMAIL PROTECTED] wrote: Hi Rachel, the panel will be used to populate a modal pop-up window. It's currently not absolute or constrained. The content is dynamic and so I never know exactly what the width of the CheckBox labels or lbl text will be - therefore I don't want absolute values used for the width. The Panel should pretty much be able to handle what is thrown at it. I could simply listen for a scroll event and add/subtract 16 pixels to the width of the box depending on whether my content scrolls or not, but I was just guessing that this kind of resizing was a such a common task that there would be some in-built way of handling it. If not I'll just have to make myself a component to do the job. If you're interested, the code is below :] Cheers. ps The content won't change whilst the box is already visible, and therefore I don't have to worry about my content jumping about. //--CODE FOLLOWS-- //CLASS: PredefinedEntitiesFromReport.mxml //This class displays a vertical list of names (entities) with checkboxes by their side. The user selects the names of the people they want to include in the report and then proceeds. There are buttons for select all and select none - ie - it is the same setup as you would use to select/unselect multiple emails with an app like GMail. ?xml version=1.0? mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; title=Existing Report Entities Found maxHeight=200 horizontalScrollPolicy=off creationComplete=init(); paddingBottom=10 paddingLeft=10 paddingRight=10 paddingTop=10 height=100% mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.collections.ICollectionView; import mx.controls.CheckBox; private static var ALL:String = 'all'; private static var NONE:String = 'none'; private var _entities:ICollectionView; private function init():void{ lbl.text = There are entities already related to this report. Please select those you wish to import:; onSelect(PredefinedEntitiesFromReport.ALL); } [Bindable] public function get entities():ICollectionView{ return _entities; } public function set entities(entities:ICollectionView):void{ _entities = entities; } private function onSelect(select:String):void{ var i:uint; var len:uint = checkBox.length; var sel:Boolean = (select=='all') ? true : false; for(i=0; ilen;i++){ CheckBox(checkBox[i]).selected = sel; } } private function onClick():void{ var i:uint; var len:uint = checkBox.length; var arr:Array = new Array(); for(i=0; ilen;i++){ if(CheckBox(checkBox[i]).selected){ arr.push(_entities[i]); } } trace(arr: + arr + ( + arr.length + )); trace(arr[0].name); trace(arr[1].name); trace(arr[2].name); } ]] /mx:Script mx:Text id=lbl selectable=false width=100% / mx:Repeater id=rp dataProvider={entities} width=100% mx:CheckBox id=checkBox label={ rp.currentItem.name.toString()} / /mx:Repeater mx:HRule width=100% / mx:ControlBar horizontalAlign=right width=100% mx:HBox width=100% mx:Label text=Select: paddingTop=2/ mx:LinkButton label=all color=blue click=onSelect( PredefinedEntitiesFromReport.ALL) / mx:LinkButton label=none color=blue click=onSelect( PredefinedEntitiesFromReport.NONE) / mx:Spacer width=100% / mx:Button label=Proceed click=onClick() / /mx:HBox
[flexcoders] Re: using soapHeaders to pass UserName and Password
Mark, Does this blog entry give you any help? In building this mashup Andy had to add credentials to the SOAP headers. See further down for example source. http://www.cynergysystems.com/blogs/page/andrewtrice?entry=census_mashups_using_strikeiron_web -- Dave Wolf Cynergy Systems, Inc. Adobe Flex Alliance Partner http://www.cynergysystems.com http://www.cynergysystems.com/blogs Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, Mark [EMAIL PROTECTED] wrote: Another developer and I worked thru this function and really had a hard time making heads or tails of everything. In my first post I added a working version from Flash MX Pro. I just need to pass a username and password (hard coded in the AS) to the webservice in order to retreive the XML. Any more help would be much appreciated. We've been trying to work this our for quite a while now. Thanks, Mark --- In flexcoders@yahoogroups.com, Mark pusateri02@ wrote: Jamie, Thanks for the fast reply to this problem but it seems like you posted partial code. I feel like you left out some important pieces to the puzzle so I'm confused as to how you're calling your function and what is ModelLocator, ourService and myWebService (I'm guessing the id to the WebService tag?). Could you fill in the gaps when you have some time? Thanks! --- In flexcoders@yahoogroups.com, jamiebadman jamie.badman@ wrote: Here's how I did it a way back... not using this anymore but I'm pretty sure it worked at the time ;-) import mx.rpc.soap.SOAPHeader; private function login():void{ ModelLocator.getInstance().qname = new QName (http://docs.oasis- open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext- 1.0.xsd,Security); ModelLocator.getInstance().headerSecurity = new SOAPHeader (ModelLocator.getInstance().qname, XML(String( wsse:Security + xmlns:wsse='http://docs.oasis- open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext- 1.0.xsd' + xmlns:wsu='http://docs.oasis- open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility- 1.0.xsd' + wsse:UsernameToken wsu:Id='+username_ti.text+' + wsse:Username+username_ti.text+/wsse:Username + wsse:Password+password_ti.text+/wsse:Password + /wsse:UsernameToken + /wsse:Security)) ); ourService.addHeader(ModelLocator.getInstance ().headerSecurity); ourService.myWebService.send(); } Hope this helps. Jamie.
[flexcoders] Adding Favorites
Whats the best way for an application to add and substain favorites in a datagrid. I can use php cookies, but was hoping flash 9 has something built in that can accomplish the same task. Any help is greatly appreciated.
[flexcoders] Flex Automation API
I am trying to get more information on use and capabilities of the Flex Automation API. The Class and Interface info from the Language Reference doesn't really show how to use the API. Thanks for your help! Al
Re: [flexcoders] Apollo features
On 2/3/07, Mike Chambers [EMAIL PROTECTED] wrote: Technically, you could create PDFs within Apollo by doing it via ActionScript, but we do have built in APIs for dynamically generating PDF content. wow. Do you have an example of what you would like to do with generating PDF content? (you can email me with that directly if you like). maps, maps reports. w/flex, we're using cf (either cfdocument or itext if the PDF needs tricky bits) have to jump thru some hoops to go from the screen (with user markup) to the cf server back as a PDF. it would also be super cool for plain flex but you guys know that already ;-)
[flexcoders] Re: Non-Clustered CPU, Clustered, Distributed and Mirroring Environment????
Hi Matt, Thanks a lot for your response. but I am still expecting more description for the same Thanks sanjay --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Assuming you have multiple CPUs (non-virtual) running FDS for the same application, in all of those scenarios you still need a license per-CPU. The only scenario where you do not need a license is where FDS is running on one CPU (and it can support as many applications as you like). If you were to have separate applications (and application here means business purpose application, not necessarily Flex application) you could even have one FDS CPU per application. However, I consider this scenario unlikely for a business, but more possible for personal use. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjaypmg Sent: Friday, February 02, 2007 2:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Non-Clustered CPU, Clustered, Distributed and Mirroring Environment Hi All, We need to install an application where a number of screens are developed using FLEX. We could have different environment-setups in which the application may be deployed and need to know in what scenarios we will have to get separate licences of FLEX DATA SERVICES for application deployment and maintenance (Would be of great help if someone could explain the difference in all the four environment settings) : 1. Non-Clustered CPU environment 2. Clustered Environment 3. Distributed Environment 4. Mirroring Environment All help would be appreciated. Thanks Sanjay
[flexcoders] Re: Can't find bug in this piece of ActionScript
Hi, Thanks for all the help. It works now. The latest snippet you provided did the trick. Its nice when it works... Thanks Ralf! Thanks for your post too Doug. -Malik --- In flexcoders@yahoogroups.com, Ralf Bokelberg [EMAIL PROTECTED] wrote: Ok, i understand. Ty it like that: public function getStateIndex( employeeStateId : Number, dataProvider : Array) : int { var selectedIndex : int = 0; for ( var i:int=0; i dataProvider.length; i++ ) { if( employeeStateId == dataProvider[i].stateId ) { selectedIndex = employeeStateId; } } return selectedIndex; } comp:StateCombo id=stateCB selectedIndex={ getStateIndex( model.employeeProfileArray[0].stateId, model.stateList ) } dataProvider={ model.stateList} labelField=stateName/ Cheers, Ralf. On 2/2/07, malik_robinson [EMAIL PROTECTED] wrote: Hi, I am new to actionscript and not quite sure how to implement that solution you suggested. It looks like the way to go because I do want to always have the right state selected when the detail screen first loads so I presume that is where the binding kicks in. Here is what I did in the code which I think is wrong how I am referencing the array in the parameter public function getStateIndex(employeeStateId:Number, model.employeeProfileArray[0]:Array):void { var selectedIndex : int = 0; for ( var i:int=0; i stateCB.dataProvider.length; i++ ) { if( getStateIndex(employeeStateId:== stateCB.dataProvider[i].stateId ) { selectedIndex = getStateIndex(employeeStateId:; } } stateCB.selectedIndex = selectedIndex; comp:StateCombo id=stateCB selectedIndex={ getStateIndex( employeeStateId:Number, model.employeeProfileArray[0]:Array ) } dataProvider={model.stateList} labelField=stateName/ I am using Cairngorm 2.1 and it is actually working pretty well for me, so is there a way to elegantly bind this to the ModelLocator? The array is bound to the ModelLocator --- In flexcoders@yahoogroups.com, Ralf Bokelberg ralf.bokelberg@ wrote: That's probably because the creationComplete event is called just once. What if you use binding instead? selectedIndex={ getStateIndex( *employeeStateId:Number, dataProvider:Array*) } Cheers, Ralf. On 2/2/07, malik_robinson Malik_Robinson@ wrote: Hi, The code works the first time around. First time around meaning click an employee from the datagrid and the screen changes to a detail view of that employee. For some reason every user I bring up after the first user has the same State (Arizona) for example selected thereafter. The first time around it works, but then when I go back to the employee list screen, and click a different employee, the detail form populates with all the right info like (firstName, lastName, email, city, zip), but the state drop down has the value of the state the other user is associated with (Arizona). Its as if the code runs correctly once but when you click a different user the approriate state does not load, it just has the value from the prior user. Almost as if once the code runs once, and its being cached or something. All the other fields load correctly as I view each users detail view. I hope I am making sense. -M --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Ralf Bokelberg ralf.bokelberg@ wrote: Ah sorry, i haven't read the text ;) What if you try it like that: var selectedIndex : int = 0; for ( var i:int=0; i stateCB.dataProvider.length; i++ ) { if( employeeStateId == stateCB.dataProvider[i].stateId ) { selectedIndex = employeeStateId ; } } stateCB.selectedIndex = selectedIndex; Cheers, Ralf. -- Ralf Bokelberg ralf.bokelberg@ Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35 -- Ralf Bokelberg ralf.bokelberg@ Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35 -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
[flexcoders] Re: using soapHeaders to pass UserName and Password
This is actually very funny. I just ran across this example not even 5 minutes ago. Not only did this help, it's exactly what I needed. I tested it out and it now works perfectly. My thanks to you Dave and special thanks to Andrew Tice and his Blog! --- In flexcoders@yahoogroups.com, Dave Wolf [EMAIL PROTECTED] wrote: Mark, Does this blog entry give you any help? In building this mashup Andy had to add credentials to the SOAP headers. See further down for example source. http://www.cynergysystems.com/blogs/page/andrewtrice? entry=census_mashups_using_strikeiron_web -- Dave Wolf Cynergy Systems, Inc. Adobe Flex Alliance Partner http://www.cynergysystems.com http://www.cynergysystems.com/blogs Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, Mark pusateri02@ wrote: Another developer and I worked thru this function and really had a hard time making heads or tails of everything. In my first post I added a working version from Flash MX Pro. I just need to pass a username and password (hard coded in the AS) to the webservice in order to retreive the XML. Any more help would be much appreciated. We've been trying to work this our for quite a while now. Thanks, Mark --- In flexcoders@yahoogroups.com, Mark pusateri02@ wrote: Jamie, Thanks for the fast reply to this problem but it seems like you posted partial code. I feel like you left out some important pieces to the puzzle so I'm confused as to how you're calling your function and what is ModelLocator, ourService and myWebService (I'm guessing the id to the WebService tag?). Could you fill in the gaps when you have some time? Thanks! --- In flexcoders@yahoogroups.com, jamiebadman jamie.badman@ wrote: Here's how I did it a way back... not using this anymore but I'm pretty sure it worked at the time ;-) import mx.rpc.soap.SOAPHeader; private function login():void{ ModelLocator.getInstance().qname = new QName (http://docs.oasis- open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext- 1.0.xsd,Security); ModelLocator.getInstance().headerSecurity = new SOAPHeader (ModelLocator.getInstance().qname, XML(String( wsse:Security + xmlns:wsse='http://docs.oasis- open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext- 1.0.xsd' + xmlns:wsu='http://docs.oasis- open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility- 1.0.xsd' + wsse:UsernameToken wsu:Id='+username_ti.text+' + wsse:Username+username_ti.text+/wsse:Username + wsse:Password+password_ti.text+/wsse:Password + /wsse:UsernameToken + /wsse:Security)) ); ourService.addHeader(ModelLocator.getInstance ().headerSecurity); ourService.myWebService.send(); } Hope this helps. Jamie.
[flexcoders] Re: rollOver Tree Node
anyone? Is there anyway to capture the leaf that the mouse is currently over? mx:Tree id=locationsTree height=100% width=100% dataProvider={ MyModel.getInstance().allLocationsXML } labelField=@label defaultLeafIcon=@Embed('/assets/images/icon_a.png') itemClick=loadLocation( event ) /mx:Tree I've got a field in my XML called mgrname and would like to make it the toolTip text of the Tree when mousing over the leaves. Thanks On 2/2/07, Greg Morphis [EMAIL PROTECTED] wrote: BTW, the error message I get is TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.alltel.rapid.aopscheduler.view::SearchByLocationView/::getRSM() at com.alltel.rapid.aopscheduler.view::SearchByLocationView/__locationsTree_rollOver() when trying.. private function getRSM(event : MouseEvent ):void { locationsTree.toolTip = [EMAIL PROTECTED]; } Thanks again On 2/2/07, Greg Morphis [EMAIL PROTECTED] wrote: I'm trying to set up a toolTip for the Tree Node and get some data in it from XML.. Does anyone have experience in doing this? I do something like rollOver(getName(event)) in the Tree however that forces a MouseEvent, which doesn't have the selectedTarget method... I can get the data on click, using [EMAIL PROTECTED], but I want to do it as they roll over the Tree leafs. Anyways, has anyone done this before and can offer some help? Thanks
RE: [flexcoders] Re: Flex 2 Compiler / Metadata Question
I checked around internally, and the feature is supposed to work in release mode, and evidently we have some proof that it does, at least in our scenarios. So a simple sample that shows it failing might help. Ely. p.s. the reason metadata is stripped by default is for SWF size reasons. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gtuhl Sent: Friday, February 02, 2007 6:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex 2 Compiler / Metadata Question Sure thing, The ideal scenario for us would be to use our own custom metadata tags in our Flex code. We have built a DWR wrapper that lets us use DWR in Flex 2, and many of the methods that automate this would benefit enormously from being able to read various things from an ActionScript object's metadata at run-time. As examples, two of the cases that would be extremely helpful are: - Mark properties of our IValueObject classes as transient such that the conversion code knows to skip them - Mark both the key type and value type of a hashmap-style data structure (like the Java Map interface and its various implementations) - Mark up classes such that their persistence policies can be specified in a declarative manner and then handled through a common set of functions Flex has this metadata construct that is pretty powerful ([Bindable], [Effect], [Embed], etc) but it only allows you to use a small set of adobe-specified metadata tags that the core adobe code is aware of and uses. We want to create and use our own custom metadata tags. Just as an example, if we made that transient tag, it could be as simple as: [Transient] public var someProperty : String; Now our code can read the metadata of an objects properties and determine at run-time which ones it can skip. Flex lets you add your own metadata tags, and if you use the -keep-as3-metadata+=Transient compiler flag it works beautifully in Debug mode. But when you switch to run mode, it goes back to throwing out all metadata tags it doesn't understand. We just want to find a way to keep them around in both run and debug modes. It seems like this metadata construct could be incredibly powerful for certain types of applications, especially libraries and tools. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 01 Feb 2007, gtuhl wrote: Anyone have any ideas? Remind us of the problem you are trying to solve. -- Tom Chiverton Helping to professionally strategize visionary supply-chains This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Adding Favorites
Take a look at the SharedObject class... Brendan On 2/2/07, trk247 [EMAIL PROTECTED] wrote: Whats the best way for an application to add and substain favorites in a datagrid. I can use php cookies, but was hoping flash 9 has something built in that can accomplish the same task. Any help is greatly appreciated. -- Brendan Meutzner Stretch Media - RIA Adobe Flex Development [EMAIL PROTECTED] http://www.stretchmedia.ca
Re: [flexcoders] Apollo features
heh since when did I say .dll files under Mac? you ofcourse will have to dispatch both the .dll and the .so files with it and program your apollo app to see if your running on windows or linux or mac ( I don't know much about the mac ) to use the correct dynamic library... and I don't use VB thanks like I said before I like to be cross platform On 2/2/07, Shannon Hicks [EMAIL PROTECTED] wrote: The real value of Apollo would be cross-platform applications. I can't run your DLL's on my Mac. If you need DLL's, use VB to build your app, and don't tease me with the false hope of a cross-platform application by building with Apollo and then ruining it with windows-only code. :) Shan Jason Hawryluk wrote: I have to agree here, if we can't extend it with our own dll's then what is the real value proposition for Apollo. I think support for dll's is important (com, managed, other). Allowing us to reuse our existing middle tiers/frameworks, and use Apollo to create engaging user experiences. jason -Message d'origine- *De :* flexcoders@yahoogroups.com [mailto:flexcoders@ flexcoders@ yahoogroups.com]*De la part de* Jerome Clarke a.k.a sinatosk *Envoyé :* vendredi 2 février 2007 16:54 *À :* flexcoders@yahoogroups.com *Objet :* Re: [flexcoders] Apollo features To be honest... all this talk I've been hearing about Apollo being used as desktop applications using web technologies... I would kinda expect that you can launch exe passing parameters ( like CLI style or something similar ), talk to dynamic libraries like .dll ( Windows ), .so ( Linux )... kinda surprised it doesn't support any of that yet... yet they call it desktop applications... it's more like their own browser in my opinion... I doubt this is how Apollo will be all the way. But if it does... can't say people will move to it quickly while MDM Zinc is there being able to do all of that ( regardless Zinc is free or not ) and WPF/E I had plans to write applications where I can use SQLite, MySQL, GD2, run servers using TCP/IP on specific ports and ip addresses, video codecs like divx, xvid and others... if all I can do is talk to the file system then I may aswell stick with Flex 2... The only use I can see that for is for offline storage applications like the ebay application and Amazon application... Thats what alot of people want to do anyways but thats not the only thing they want to do... but then again I'm assuming quite abit here... I havn't got full info about Apollo... but what I've been hearing about WPF/E compared to Apollo... I'm assuming Apollo can't do some of the things I said above and I'm not interested in WPF/E. As far as I know... only works on Windows but I still watch it to see what people say about it... I like to be cross platform I use Flex 2 alot for the things I'm doing now. I don't think I will be using Apollo as much as I thought I predicted as I do with Flex 2 On 2/2/07, Kevin Newman [EMAIL PROTECTED] wrote: Tom Chiverton wrote: Does anyone or has read somewhere, if Apollo will allow you to launch native local applications ? As far as I know, Apollo is using webkit, does this include the ability to run other plugins besides Flash (like Java)? If so, can you use one of those other plugins (java, or perhaps a custom plugin) to access native dlls and such by communicating from Flash to Javascript, then to the other plugin in Javascript? Kevin N.
Re: [flexcoders] Apollo features
Oops. I meant to type: -- but we do NOT have built in APIs for dynamically generating PDF content. -- Sorry about any confusion. mike chambers [EMAIL PROTECTED] Mike Chambers wrote: Yeah. We have been focusing on the underlying infrastructure and HTML, which is why we havent given too many details on PDF. You will be able to leverage PDF within Apollo applications, although we don't have a lot of details around the integration just yet. Technically, you could create PDFs within Apollo by doing it via ActionScript, but we do have built in APIs for dynamically generating PDF content. Do you have an example of what you would like to do with generating PDF content? (you can email me with that directly if you like). mike chambers [EMAIL PROTECTED] mailto:mesh%40adobe.com João Fernandes wrote: Mike, Just a very small question, we see a lot of html flash stuff about apollo but what about PDF ? what will we able to do with it? Just read them? Can my offline app generate a pdf file for me? Can you provide any info about this? João Fernandes *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] *On Behalf Of *Mike Chambers *Sent:* sexta-feira, 2 de Fevereiro de 2007 17:39 *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* Re: [flexcoders] Apollo features I think that just getting the app out of the browser is also a major advantage. It will still be possible to create platform specific Apollo apps, but (at least for 1.0), when we prioritize features, we are going to prioritize those which enable and encourage cross platform applications. mike chambers [EMAIL PROTECTED] mailto:mesh%40adobe.com mailto:mesh%40adobe.com Shannon Hicks wrote: The real value of Apollo would be cross-platform applications. I can't run your DLL's on my Mac. If you need DLL's, use VB to build your app, and don't tease me with the false hope of a cross-platform application by building with Apollo and then ruining it with windows-only code. :) Shan
RE: [flexcoders] Re: How do you make a copy of an XMLListCollection ( not instance of ) ...
Just create a new XMLListColletion with the source of the one you want to copy from. var a:XMLListCollection = new XMLListCollection(xmlList); var b:XMLListCollection = new XMLListCollection(a.source); -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of helihobby Sent: Friday, February 02, 2007 10:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How do you make a copy of an XMLListCollection ( not instance of ) ... I event try: newList = ObjectUtil.copy(x) as XMLListCollection; for each (var node1:XML in x ){ trace( + node1); } for each (var node2:XML in newList ){ trace( + node2); } I see the traces for but nothing for :( --- In flexcoders@yahoogroups.com, Brian Dunphy [EMAIL PROTECTED] wrote: import mx.utils.ObjectUtil; var newList:Object = ObjectUtil.copy(oldList); Cheers, Brian On 2/1/07, helihobby [EMAIL PROTECTED] wrote: Can anyone please post sample code of how to make a copy of a XMLListCollection. Not a copy of the instance object but a new XMLListCollection object. Thank you for all the help, Sean. -- Brian Dunphy -- 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 *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
Re: [flexcoders] ByteArray / URLLoader / Loader / Image / Size?
Thanks Doug! When I do that I'm getting the error: Error: Error #2099: The loading object is not sufficiently loaded to provide this information. at flash.display::LoaderInfo/get width() at mx.controls::SWFLoader/get ::contentHolderWidth() at mx.controls::SWFLoader/::doScaleContent() at mx.controls::SWFLoader/mx.controls:SWFLoader::updateDisplayList() at mx.controls::Image/mx.controls:Image::updateDisplayList() at mx.core::UIComponent/validateDisplayList() at mx.managers::LayoutManager/::validateDisplayList() at mx.managers::LayoutManager/::doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() Does anyone know what event is fired when the load is complete? I can't find any docs on FlexLoader and Event.COMPLETE doesn't seem to ever fire... -Andy On 2/2/07, Doug McCune [EMAIL PROTECTED] wrote: Your problem is that you're calling addChild on the Image component. This won't work with how the ImageComponent works (or rather SWFLoader, which is the base class). But the SWFLoader should be able to load a DisplayObject, if you set that as the source. Also, BTW, you don't need the URLLoader in your code So try doing this: private var loader:FlexLoader = new FlexLoader(); loader.loadBytes (imageByteArray); previewImage.source = loader; mx:Image scaleContent=true height=260 width=215 id=previewImage/ -Doug Andrew D. Goodfellow wrote: (I have searched for this answer on the list and in the docs and can't find anything so I'm gonna go ahead and post. If I missed a previous post, I apologize, please point me towards it.) I have an image in a ByteArray and I want to display it within a specific width and height inside an Image object. Here is my logic: private var urlloader:URLLoader = new URLLoader(); private var loader:Loader = new Loader(); urlloader.dataFormat = URLLoaderDataFormat.BINARY; urlloader.data = ByteArray(imageByteArray); loader.loadBytes (ByteArray(urlloader.data)); var child:DisplayObject = previewImage.addChild(genericLoader); mx:Image scaleContent=true height=260 width=215 id=previewImage/ When it displays it does not scale automatically, it simply displays at 1:1 of the original ByteArray image. If I set child.width and child.heightto specific values ( i.e. 215x260) the Image (or child) just doesn't display. I CAN change scale directly or use a Matrix to scale it, but the problem there is that the child.width and .height are returning 0 so I can't calculate the correct scale. Any ideas??? -Andy
RE: [flexcoders] Module Loader progress bar
Yes, the module loading code dispatches loading events, so you can create a component that displays very similar to the Flex download progress bar. My preferred way to do it so that it is usable from MXML is to subclass ModuleLoader. -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mthielman11 Sent: Friday, February 02, 2007 9:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Module Loader progress bar We have a large app we are building and decided to break it into modules. We have the module loading after a user successfully logins in. After the login it changes states to a box that just contains th moduleLoader. Its all working fine except we get no feedback as to the progress of the module. Is there a way to make it appear similar to the way the flex swf progress appears when loading the flex app? I have tried, unsuccessfully to use the module loader code in the docs. Thanks
Re: [flexcoders] ByteArray / URLLoader / Loader / Image / Size?
Right, FlexLoader (which is pretty much just the same as the Loader component) doesn't fire the complete event. Do this and replace yourCompleteEventHandler with you event handler function: loader.contentLoaderInfo.addEventListener(Event.COMPLETE, yourCompleteEventHandler); -Doug Andrew D. Goodfellow wrote: Thanks Doug! When I do that I'm getting the error: Error: Error #2099: The loading object is not sufficiently loaded to provide this information. at flash.display::LoaderInfo/get width() at mx.controls::SWFLoader/get ::contentHolderWidth() at mx.controls::SWFLoader/::doScaleContent() at mx.controls::SWFLoader/mx.controls:SWFLoader::updateDisplayList() at mx.controls::Image/mx.controls:Image::updateDisplayList() at mx.core::UIComponent/validateDisplayList() at mx.managers::LayoutManager/::validateDisplayList() at mx.managers::LayoutManager/::doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() Does anyone know what event is fired when the load is complete? I can't find any docs on FlexLoader and Event.COMPLETE doesn't seem to ever fire... -Andy On 2/2/07, *Doug McCune* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Your problem is that you're calling addChild on the Image component. This won't work with how the ImageComponent works (or rather SWFLoader, which is the base class). But the SWFLoader should be able to load a DisplayObject, if you set that as the source. Also, BTW, you don't need the URLLoader in your code So try doing this: private var loader:FlexLoader = new FlexLoader(); loader.loadBytes (imageByteArray); previewImage.source = loader; mx:Image scaleContent=true height=260 width=215 id=previewImage/ -Doug Andrew D. Goodfellow wrote: (I have searched for this answer on the list and in the docs and can't find anything so I'm gonna go ahead and post. If I missed a previous post, I apologize, please point me towards it.) I have an image in a ByteArray and I want to display it within a specific width and height inside an Image object. Here is my logic: private var urlloader:URLLoader = new URLLoader(); private var loader:Loader = new Loader(); urlloader.dataFormat = URLLoaderDataFormat.BINARY; urlloader.data = ByteArray(imageByteArray); loader.loadBytes (ByteArray(urlloader.data)); var child:DisplayObject = previewImage.addChild(genericLoader); mx:Image scaleContent=true height=260 width=215 id=previewImage/ When it displays it does not scale automatically, it simply displays at 1:1 of the original ByteArray image. If I set child.width and child.height to specific values (i.e. 215x260) the Image (or child) just doesn't display. I CAN change scale directly or use a Matrix to scale it, but the problem there is that the child.width and .height are returning 0 so I can't calculate the correct scale. Any ideas??? -Andy
RE: [flexcoders] Non-Clustered CPU, Clustered, Distributed and Mirroring Environment????
Your best answer would be to contact an Adobe Sales Rep. The license is per CPU, so you could end up paying in all cases depending on how many CPUs your servers have. You might not end up paying in case #1 if it is a single CPU server (thats FDS Express). Dimitrios Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjaypmg Sent: Friday, February 02, 2007 2:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Non-Clustered CPU, Clustered, Distributed and Mirroring Environment Hi All, We need to install an application where a number of screens are developed using FLEX. We could have different environment-setups in which the application may be deployed and need to know in what scenarios we will have to get separate licences of FLEX DATA SERVICES for application deployment and maintenance (Would be of great help if someone could explain the difference in all the four environment settings) : 1. Non-Clustered CPU environment 2. Clustered Environment 3. Distributed Environment 4. Mirroring Environment All help would be appreciated. Thanks Sanjay -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
RE: [flexcoders] ASDoc ignoring [Bindable] properties in mxml files
Do you have a test file that I can try? I just ran ASDoc on Button.as, which inserts [Bindable] before setter/getters for labelPlacement, listdata, and several other properties and it works as expected. I then modified Slider.as to add [Bindable] before allowThumbOverlap and allowTrackClick and they also work: [Inspectable(defaultValue=false)] [Bindable] /** * If set to codefalse/code, then each thumb can only be moved to the edge of * the adjacent thumb. * If codetrue/code, then each thumb can be moved to any position on the track. * * @default false */ public var allowThumbOverlap:Boolean = false; //-- // allowTrackClick //-- [Inspectable(defaultValue=true)] [Bindable] /** * Specifies whether clicking on the track will move the slider thumb. * * @default true */ public var allowTrackClick:Boolean = true; Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jer_ela Sent: Thursday, February 01, 2007 10:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ASDoc ignoring [Bindable] properties in mxml files I am finding that ASDoc (2.01) is ignoring bindable properties in mxml files public var myProperty:String gets documented [Bindable] public var myBindableProperty:String does not set/get pairs are also affected
[flexcoders] Re: TitleWindow missing all focus events??
Thanks, Roman. Actually you answered my another question: I have been trying to figure out why I cannot focus in the edit control inside the titlewindow :) Where did you learn those good tips about relatedObject ?!! I am still a little puzzled by how focusIn works. I realized I have to do these two lines before the focusIn/OutHandler gets invoked: this.addEventListener(FocusEvent.FOCUS_IN, focusInHandler); this.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler); Does it mean by default, TitleWindow doesn't get FOCUS events dispatched to? Thanks again for your great help! Tim --- In flexcoders@yahoogroups.com, Roman Protsiuk [EMAIL PROTECTED] wrote: Overloading focusOutHandler/focusInHandler helps. You'll be able to handle FocusEvents there. Like in protected override function focusOutHandler(event : FocusEvent) : void { if (event.relatedObject == null || !contains(event.relatedObject)) { // event came from outside not from one of the children } super.focusOutHandler(event); } R. On 2/2/07, zhongtie [EMAIL PROTECTED] wrote: I pop up TitleWindows using PopupManager, and I change the titlebar colors based on if the titleWindow is active (topmost) or not. The problem is, I am NOT able to capture the focus event for TitleWindow (other controls, like TextArea, has no problems), nor does onFocusIn/onFocusOut overwrite work. Any idea?
RE: [flexcoders] Re: Modules and Cairngorm - Solution... I think
I vote for the change, I ran into this issue myself. Dimitrios Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of alimcleod Sent: Friday, February 02, 2007 12:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Modules and Cairngorm - Solution... I think Hi, This does look like a bug with SequenceCommand. I've been looking at the various options as to how to fix this. I've never been overly enamoured with SequenceCommand (it wasn't something we ever used in projects), but there was enough requests for us to add it. I suppose my initial question would be around how attached people are to the current API. We have discussed this here and can see a better implementation, but that would require changes to existing code. So, for the people who use SequenceCommand, how would you feel about having to change your client code, though it would be a relatively only small change in each place you use SequenceCommand? Thoughts? Alistair --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , ben.clinkinbeard [EMAIL PROTECTED] wrote: Martin, you did give me enough of an idea to wonder if SequenceCommand was making the same mistake you were. After some experimenting I suspect that it was. I was setting nextEvent in the execute method of my SequenceCommand subclass. I went and looked at the docs (http://www.cairngormdocs.org/docs/cairngorm_2_1/index.html http://www.cairngormdocs.org/docs/cairngorm_2_1/index.html ) and they suggest setting it in the constructor, so I tried that. Same error. Finally, I tried setting it in a handler method in my SC subclass (its a file upload command), on the line right before executeNextCommand () and that seems to have fixed it. It makes me wary of SequenceCommand though, so I am converting any classes that subclass it to regular command classes and I will just set and dispatch the next event manually. I also tried (very briefly) switching to the Cairngorm 2.2 beta SWC and was still getting the error. Hey AC guys, is there a bug in SequenceCommand? :) Hopefully this info helps others. Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Martin Wood-Mitrovski flashdev@ wrote: I just had the same error and it was because i was trying to re- use event instances rather than dispatching new ones each time. But i wasnt using modules, just a normal Cairngorm app. I was going to look into it to find out exactly what was happening but I just dont have the time at the moment. maybe this is enough of a clue for someone else to say why :) Bjorn Schultheiss wrote: Hey Can anyone give me the lowdown on this error TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::[EMAIL PROTECTED] to com.adobe.cairngorm.control.CairngormEvent. -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
RE: [flexcoders] FDS/Hibernate Sample of updating hierarchical list of values
My apologies - this does look like a bug. I need to do more testing on this case myself, but I think one of the big problems here is that we are trying to do conflict detection on our own in the hibernate assembler's updateItem method. Unless you are using a strict isolation level in your DB (repeatable read or serializable) this is not going to be transactionally correct anyway since the DB version can be modified after we have executed the query and before we do our update. We probably should not be getting the server version at all... hibernate has its own optimistic concurrency support that we should be using if it is enabled. That is probably the only way to get atomic conflict detection without resorting to using those particularly slow isolation levels. That would potentially get rid of the conflicting version of the item in the transaction. The other thing I need to look into is the merge method in hibernate. Seems like we should probably be using that in the updateItem method? I'll be working on this next week so will send out any updates I can to the code. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of parkerwhirlow Sent: Thursday, February 01, 2007 6:05 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] FDS/Hibernate Sample of updating hierarchical list of values Hi all, I have been tearing my hair out trying to get FDS/Hibernate to update a hierarchical list of values. Even the simplest of collection mappings in Hibernate cause various exceptions when trying to update. Before I post my details, does anyone have any examples of this that work? Has anyone ever even gotten this to work? I have two objects mapped in Hibernate: - Family Person where a Family has a Set of Person familyMembers. My FDS destination is to Family, and I am trying to update a family member (just the name) through this destination. First, I was getting Hibernate NonUniqueObjectException, which I finally tracked down to having my hibernate collection mapping set to lazy=false This caused all of the family member Person objects to be loaded into the PersistenceContext when the HibernateAssembler loaded the serverVersion of the Family. Then, once I set lazy=true on the collection mapping, I was getting an exception that A collection with cascade=all-delete-orphan was no longer referenced by the owning entity instance... since it is assigning a whole new collection to the familyMembers property one becomes unreferenced, and the other referenced. Sooo I can't use delete orphan to delete the family members when the family is deleted... OK. So then I make cascade=all. Now I'm getting ORA-01407: cannot update (SCHEMA.T_PERSON.FAMILYID) to NULL... I'm guessing that it's processing the dereferenced collection first (trying to detatch any Person's from the family before they're re-attached by the new collection. I can't believe this is so difficult... For more info on my setup and test case, please see my original post: http://tech.groups.yahoo.com/group/flexcoders/message/63308 http://tech.groups.yahoo.com/group/flexcoders/message/63308 any comments as to if anyone has done this successfully are greatly appreciated! thanks, PW
[flexcoders] ExternalInterface bug with swf inside form tag- will it be fixed?
I was super excited yesterday when I started playing with FABridge and saw how great it worked. Fast forward to this morning when we moved the code and swf into the deployed .ASPX page and everything broke. Turns out this is a well documented (by users, not Adobe/MM) bug with ExternalInterface (which FABridge uses) when the swf is located inside a form tag. In addition to various other scenarios where putting your swf inside a form tag is desired, its pretty much unavoidable on an ASPX page. Will this bug get fixed? I have seen some workaround code but this seems like something that is worth officially fixing. As it stands now it smacks of incompleteness and yet another scenario where .NET developers are seemingly ignored by Adobe. Thanks, Ben
[flexcoders] Integerating Flex and Java using mx:RemoteObject
Hi There, I was trying Daniel Harfleet's sample example , where he is showing how to integrate Java and Flex using a simple RPC example. I followed the steps, but I am getting an error on the Server console. My Flex application is deployed on JBoss server 4.0.5. I've made sure that the java class is compiled and is in placed in the WEB-INF/classes directory of my Flex application. This is how the remoteobject tag looks in my sample.mxml file mx:RemoteObject id=echoRO destination=echoService fault=handleFault(event) result=handleResult(event) / This is how the entry in the remote-config.xml looks default-channels channel ref=my-amf/ /default-channels destination id=echoService properties sourcefdsweb.EchoService/source scopeapplication/scope /properties /destination == So, when I try to access the application deployed in the JBoss, it throws the following error on the console. 22:59:59,484 INFO [STDOUT] [Flex] [ERROR] Exception when invoking service: remo ting-service with message: Flex Message (flex.messaging.messages.RemotingMessage) operation = echo clientId = 4A82830C-BC09-C972-DEFB-361367B86F0E destination = echoService messageId = C4DFD400-5B97-AB88-DFD7-80D2BD155FFC timestamp = 1170392399484 timeToLive = 1170392399484 body = null hdr(DSEndpoint) = my-amf exception: flex.messaging.MessageException: No destination 'echoService' exist s in service flex.messaging.services.RemotingService 22:59:59,500 INFO [STDOUT] [Flex] [ERROR] Error handling message: flex.messagin g.MessageException: No destination 'echoService' exists in service flex.messagin g.services.RemotingService incomingMessage: Flex Message (flex.messaging.messages.RemotingMessage) operation = echo clientId = 4A82830C-BC09-C972-DEFB-361367B86F0E destination = echoService messageId = C4DFD400-5B97-AB88-DFD7-80D2BD155FFC timestamp = 1170392399484 timeToLive = 1170392399484 body = null hdr(DSEndpoint) = my-amf errorReply: Flex Message (flex.messaging.messages.ErrorMessage) clientId = null correlationId = C4DFD400-5B97-AB88-DFD7-80D2BD155FFC destination = echoService messageId = 4A828333-CC08-81C5-E391-08512AA44718 timestamp = 1170392399500 timeToLive = 0 body = null code = Server.Processing message = No destination 'echoService' exists in service flex.messaging.ser vices.RemotingService details = null rootCause = null body = null extendedData = null Could someone , please let me know as to what I am missing. -Regards
[flexcoders] HTTP Headers sent when FP loads content from remote server
Hello, when a flash application requests content from the http server, are the http headers sent the same the browser sends? I imagine that FP delegates the responsibility of loading any type of content via HTTP to the browser, so the headers should be the same. I have tried Service Capture (http sniffer) to see the difference and got the following: Loaded directly from firefox: GET /history.htm HTTP/1.1 Host: onfashion.webfuel.pt User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: pt,en-gb;q=0.7,en;q=0.3 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Referer: http://onfashion.webfuel.pt/ Cookie: PHPSESSID=fbca4b8f6a5d4e0895499d4abc3bea3f Loaded from Firefox but requested the Flash application: GET /images/pub_inscricoes_olho.jpg HTTP/1.1 Host: onfashion.webfuel.pt User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: pt,en-gb;q=0.7,en;q=0.3 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Cookie: PHPSESSID=fbca4b8f6a5d4e0895499d4abc3bea3f The only difference i see, is that the request made by the Flash application doesn't have the Referrer header. But using Internet Explorer, the headers are completely identical. I need a more accurate opinion, since we are having some issues concerning statistics calculated by a business partner. They say they believe that when content is loaded from the FP they are generating false statistics. Can this be true? Thanks, João Saleiro
RE: [flexcoders] Integerating Flex and Java using mx:RemoteObject
Did you restart the server when changing the remoting-config.xml file? Did you clean/recompile your application (assuming you're pointing it to this same services configuration and not programmatically creating channel sets)? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mukesh Sent: Friday, February 02, 2007 3:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Integerating Flex and Java using mx:RemoteObject Hi There, I was trying Daniel Harfleet's sample example , where he is showing how to integrate Java and Flex using a simple RPC example. I followed the steps, but I am getting an error on the Server console. My Flex application is deployed on JBoss server 4.0.5. I've made sure that the java class is compiled and is in placed in the WEB-INF/classes directory of my Flex application. This is how the remoteobject tag looks in my sample.mxml file mx:RemoteObject id=echoRO destination=echoService fault=handleFault(event) result=handleResult(event) / This is how the entry in the remote-config.xml looks default-channels channel ref=my-amf/ /default-channels destination id=echoService properties sourcefdsweb.EchoService/source scopeapplication/scope /properties /destination == So, when I try to access the application deployed in the JBoss, it throws the following error on the console. 22:59:59,484 INFO [STDOUT] [Flex] [ERROR] Exception when invoking service: remo ting-service with message: Flex Message (flex.messaging.messages.RemotingMessage) operation = echo clientId = 4A82830C-BC09-C972-DEFB-361367B86F0E destination = echoService messageId = C4DFD400-5B97-AB88-DFD7-80D2BD155FFC timestamp = 1170392399484 timeToLive = 1170392399484 body = null hdr(DSEndpoint) = my-amf exception: flex.messaging.MessageException: No destination 'echoService' exist s in service flex.messaging.services.RemotingService 22:59:59,500 INFO [STDOUT] [Flex] [ERROR] Error handling message: flex.messagin g.MessageException: No destination 'echoService' exists in service flex.messagin g.services.RemotingService incomingMessage: Flex Message (flex.messaging.messages.RemotingMessage) operation = echo clientId = 4A82830C-BC09-C972-DEFB-361367B86F0E destination = echoService messageId = C4DFD400-5B97-AB88-DFD7-80D2BD155FFC timestamp = 1170392399484 timeToLive = 1170392399484 body = null hdr(DSEndpoint) = my-amf errorReply: Flex Message (flex.messaging.messages.ErrorMessage) clientId = null correlationId = C4DFD400-5B97-AB88-DFD7-80D2BD155FFC destination = echoService messageId = 4A828333-CC08-81C5-E391-08512AA44718 timestamp = 1170392399500 timeToLive = 0 body = null code = Server.Processing message = No destination 'echoService' exists in service flex.messaging.ser vices.RemotingService details = null rootCause = null body = null extendedData = null Could someone , please let me know as to what I am missing. -Regards
Re: [flexcoders] Project structure
Do you mean creating multiple mxml files that have mx:Application tag? I didn't think that was allowed? I know that if I have components that I build using .mxml files I could just use a package structure which allows me to put them in sub-folders and access those components... On 2/2/07, Stembert Olivier (BIL) [EMAIL PROTECTED] wrote: In other words, why do we have to put mxml applications in the main flex folder? I don't understand why such a limitation? Rgds, Olivier :) -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Stembert Olivier (BIL) *Sent:* Thursday, February 01, 2007 7:43 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Project structure Hi flexcoders, I'd like to put many mxml applications in only one eclipse project. The problem is that I can only put my applications in the main flex folder. I don't like it because I want to structure my project and put my applications in subfolders. Is there a workaround using Flex Builder? I know I can use Flex Ant tasks. Rgds, Olivier - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. - - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. - - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. -
Re: [flexcoders] Flex Automation API
gettier wrote: I am trying to get more information on use and capabilities of the Flex Automation API. The Class and Interface info from the Language Reference doesn't really show how to use the API. There isn't much documentation right now, so until Adobe remedies this, you'll need to read the source and have at least some understanding of how the rest of the Flex framework is built to get going with Flex Automation. That's not to say that the documentation isn't helpful, it'll give you a good bird's eye overview of how everything is hooked together. I've been playing with it quite a bit since it came out and for the most part, discovered how to get it to work with my own code through reading the code and trial and error. To begin with, if you want to integrate into the whole framework, you should start with the Automation class and pass it the adapter class that'll be driving it. Minimally, this adapter class should implement the IAutomationManager and IAutomationObjectHelper interfaces. If you have the Mercury QTP plugin (requires a FDS license plus Mercury QTP), there should be an adapter already provided, though I don't know if Adobe provided the source code with that. If, however, you're like me and don't have all that good stuff lying around, you can write your own adapter class and direct the output somewhere more useful--you've several options--a compiled-in debug window, over LocalConnection like how XRay does things, or over a socket connection to an external harness program that you've written. The Automation class contains a map of registered component classes to their automation delegates in a static variable named delegateClassMap. This is located in the mx_internal namespace, so you'll have to declare you're using it to get access to it (at your own risk, as some of the Adobe engineers have publicly stated that mx_internal variables are subject to change between revisions and aren't a guaranteed interface). The standard Flex UI components and the charting classes have delegates already written. You'll need to provide delegate classes for each of your own custom components if you want to automate them (see the Flex 2.0.1 documentation for an example of how to write an automation delegate for Ely Greenfield's RandomWalk class). Once you've loaded all your delegates, you can then use your adapter and the delegateClassMap to locate and create an automation delegate instance mapping to each component instance that you want to automate. At this point, your delegate can report appropriate functional events for logging and/or recording for replay to your adapter via its recordAutomatableEvent method, and can replay events on the component passed to it by calling the replayAutomatableEvent method. If you don't care for the integrated framework aspect of things, you can also pursue a simpler approach of just including the necessary delegate implementation classes for your components and then creating instances of them referencing each of your components. While doing so doesn't hang together quite as well, it does allow you to fairly quickly script a single component or two if you need some basic automation for testing client side form validation and the like. That's the quick summary of how it all hangs together--there's a bunch of additional stuff like synchronization and identifier mangling that I haven't yet had enough time to figure out yet, but this should be enough to get you started making good use of the automation framework. Jim Cheng effectiveUI
[flexcoders] More Mac licensing issues: [WAS:: Max OS X Flex Builder 2.01 License Issue - still waiting
To anyone at Adobe who's listening: I'm working on a Flex2 project for Scholastic http://scholastic.com and we are running into a wall in terms of getting our Flex Builder licenses transfered to the Macintosh platform. We purposely bought Windows versions knowing that it wouldn't be a problem to transfer the license when the Mac version became available. This licensing situation that we and others have experienced is completely unacceptable. John Dowdel, do you think that you can help us out a bit, or escalate the issue, as you did for others experiencing these problems? Or maybe Ted Patrick, you could let others there know that this is a major issue for people, and it should be addressed. Here are the issues that we are currently facing: 1. In order to transfer the license you have to be the authorized purchaser of the software and Adobe won't accept a request form the actual end user of the license. To make it worse Adobe won't tell us who that person is. At a rather large organization (10,000 + employees) like Scholastic, finding this authorized person is really difficult to do. 2. Even if we do find the person above, we are told that the process will take five days from the approved request before Adobe will issue the Mac license number. 3. Currently there's no way for us to extend the trial version until this is worked out. We either have to install the trial on another computer or just wait it out. It's a pitty that such a great piece of software has so many barriers and red tape to actually use it. Thanks very much for you attention to this issue. -Chris On 2/1/07, Brendan Meutzner [EMAIL PROTECTED] wrote: Hi, Transferring licenses doesn't seem to be the only issue. We've been using a trial Mac version which just expired and I put through the order for a Mac license online last night thinking we'd have a valid key within a few minutes (like we did for the PC version last summer)... Not quite... it immediately showed as pending last night, and remained that way this morning. So after 30 minutes on hold with customer support this morning, I'm told that the more expensive transactions are processed manually and that somebody would be reviewing the details within the next 2-3 days. WTF? Since when is a $499 FlexBuilder license expensive, and even so, why do they need to process manually? Really really not happy this morning... especially because it's pretty much impossible to find a temporary key for the Mac version (I didn't just say that though)... It's too bad that the fantastic relationship we have with the Adobe engineers can't spread over to the CS department a bit... Brendan On 1/25/07, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 24 January 2007 19:53, John Dowdell wrote: What you and Ethan describe doesn't seem acceptable to me either, but let me get some more information on this, and get back to the list when I do, good? Sounds great. Could you also try and find out if there are plans to just automate the whole process ? It strikes me that converting license betwen platforms shouldn't really require a human in the loop, if it's only done once. -- Tom Chiverton Helping to advantageously aggregate prospective experiences This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Brendan Meutzner Stretch Media - RIA Adobe Flex Development [EMAIL PROTECTED] http://www.stretchmedia.ca
Re: [flexcoders] Re: Adobe.com Servers?
Janis Radins wrote: Oh comon. Adobe.com is slow for you for two minth? It's been slow as hell from here (eastern europe) all the time for years now, totally unusable. That's consistent with what David Hatch, of the Adobe web team, described... the San Jose servers have already been updated, and the Dublin servers are now including these changes. http://weblogs.macromedia.com/dhatch/archives/2007/01/hi_all_since_th.cfm I suspect that this will be a continual battle, though, as transfer rates continue to increase... during late December the Photoshop CS3 preview alone was responsible for about as much traffic each day as the entire US Library of Congress holds, so the architecture has to be continually updated: http://blogs.adobe.com/jnack/2006/12/photoshop_cs3_1.html jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks.