Re: [flexcoders] click and doubleClick on the same button?
The only way I've been able to accomplish this is to use a timer to filter out a double click, and then ferry the original click event to an eventual click handler. The downside to this is the hardcoded timer delay doesn't reflect the user's system's double-click delay, and I'm not sure how to read that in (I'm not even sure that Flex uses this anyway). Example: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=horizontal xmlns:local=* mx:Script ![CDATA[ private var doubleClickFilterTimer:Timer; private var pendingMouseEvent:MouseEvent; private function button_doubClickHandler(event:MouseEvent):void { if(doubleClickFilterTimer) doubleClickFilterTimer.stop(); trace('double clicked'); } private function button_clickHandler(event:MouseEvent):void { if(!doubleClickFilterTimer) { doubleClickFilterTimer = new Timer(200, 1); doubleClickFilterTimer.addEventListener(TimerEvent.TIMER_COMPLETE, doubleClickFilterTimer_timerCompleteHandler); } else { doubleClickFilterTimer.reset(); } pendingMouseEvent = event; doubleClickFilterTimer.start(); } private function doubleClickFilterTimer_timerCompleteHandler(event:TimerEvent):void { finishClickHandler(pendingMouseEvent); pendingMouseEvent = null; } private function finishClickHandler(event:MouseEvent):void { trace('clicked'); } ]] /mx:Script mx:Button label=Click or Double-Click Me click=button_clickHandler(event) doubleClickEnabled=true doubleClick=button_doubClickHandler(event) / /mx:Application Hope that helps, Beau On Tue, Sep 1, 2009 at 9:27 AM, Nick Middleweek n...@middleweek.co.ukwrote: Hello, I'm having difficulty setting both a click and a doubleClick event on the same button. Is it possible? Thanks, Nick -- Beau D. Scott Software Engineer
Re: [flexcoders] Stopping double-click of a button 'bubble' to the datagrid row
Event.stopPropagation() or stopImmediatePropagation() (depending on whether you want events on the current node to be executed before the event stops or not: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=horizontal xmlns:local=* mx:Script ![CDATA[ [Bindable] public var dp:Array = [ {foo: button 1}, {foo: button 2}, {foo: button 3}, {foo: button 4}, {foo: button 5}, {foo: button 6}, ]; private function dg_doubleClickHandler(event:Event):void { trace('dg double click'); } ]] /mx:Script mx:AdvancedDataGrid id=dg doubleClickEnabled=true doubleClick=dg_doubleClickHandler(event) dataProvider={dp} mx:columns mx:AdvancedDataGridColumn dataField=foo mx:itemRenderer mx:Component mx:Button doubleClickEnabled=true label={listData.label} doubleClick=trace(listData.label + ' double click'); event.stopImmediatePropagation(); / /mx:Component /mx:itemRenderer /mx:AdvancedDataGridColumn /mx:columns /mx:AdvancedDataGrid /mx:Application Beau On Tue, Sep 1, 2009 at 10:55 AM, Nick Middleweek n...@middleweek.co.ukwrote: Hello, I've got an advancedDataGrid (AvDG) and the first column has an item renderer which has a button on it. The button has a click handler. There is also a itemDoubleClick handler on the AvDG. Users are double-clicking the button so this is firing the click of the button handler but the doubleClick event is also being fired on the AvDG row item. I'm guessing this is related to event bubbling or capturing? I'm trying to stop the AvDG.row doubleClick event being fired if the user double clicks on the button. Anyone got any ideas? I've tried to put a doubleClick on the button in hope that it would handle it and therefore stop the row event from being fired but ti didn't work. Now I think i need to capture the doubleClick cancel event in the button object and prevent it from bubbling from the button to the AvDG. Where do I set event.cancelable = true? Thanks, Nick -- Beau D. Scott Software Engineer
Re: [flexcoders] Different Views | Same DataProvider
The sorting is stored on the ListCollectionView dataProvider of each list control. If you set the list controls to share the same ListCollectionView, the sorting will be common. If you set the dataprovider to each control to be a non-ListCollectionView object (an array for example, instead of an ArrayCollection), the sorting will be unique between the two as different ArrayCollection objects will be created to wrap the same source array, but data will not be duplicated. There are some caveats: The ListCollectionView also handles update events, so if you change the data in one list control, it won't be shown in the other until you call other.dataProvider.refresh(), and this can be a heavy operation as it has to reindex, sort and seek. Here's an example: = ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=horizontal xmlns:local=* mx:Script ![CDATA[ [Bindable] public var regionData:Array = [ {region: Asia, country: China, rep: Bill}, {region: Asia, country: S. Korea, rep: Bill}, {region: Asia, country: N. Korea, rep: Sue}, {region: Asia, country: Thailand, rep: Phil}, {region: Euorpe, country: United Kingdom, rep: Bill}, {region: Euorpe, country: France, rep: Sue}, {region: Euorpe, country: Italy, rep: Phil}, {region: Euorpe, country: Germany, rep: Bill}, {region: Africa, country: Zimbabwe, rep: Phil}, {region: Africa, country: S. Africa, rep: Sue}, {region: Africa, country: Kenya, rep: Bill}, {region: Africa, country: Egypt, rep: Phil}, {region: N. America, country: U.S.A., rep: Bill} ]; private function addMore():void { right.dataProvider.addItem( {region: N. America, country: U.S.A., rep: Beau} ); } ]] /mx:Script mx:DataGrid id=left dataProvider={regionData} height=100% width=50% mx:columns mx:DataGridColumn dataField=region / mx:DataGridColumn dataField=country / mx:DataGridColumn dataField=rep / /mx:columns /mx:DataGrid mx:DataGrid id=right dataProvider={regionData} height=100% width=50% mx:columns mx:DataGridColumn dataField=region / mx:DataGridColumn dataField=country / mx:DataGridColumn dataField=rep / /mx:columns /mx:DataGrid mx:VBox mx:Button click=addMore() label=Add to right grid / mx:Button click=left.dataProvider.refresh(); label=refresh left / /mx:VBox /mx:Application = Note that you can sort the datagrids independent of eachother. If you click add to right grid, a new line item will be added to the right grid only. It has been added to the regionData Array, as well, but becase Array is not an event dispatcher, the left grid is not automatically refreshed. If you click the refresh button, the dataProvider for left is refreshed and the new lines show up. Hope this helps, Beau On Mon, Aug 31, 2009 at 8:54 AM, ilikeflex ilikef...@yahoo.com wrote: Hi I have array collection as a data provider. I have two different views. User can do sorting in different views. But i want that the one view is not affected by another.I know i can keep two different copies of dataprovider for different views. Is there any other way. Actually my dataprovider has more than 25,000 records. Need your suggestions. Thanks ilikeflex -- Beau D. Scott Software Engineer
Re: [flexcoders] Manage a multi lingual application
Depends on your approach, really. If you're looking to release mutiple distributions, each specific to a language (which really is about the only feasible option when dealing with multi-directional language support), you should start here: http://livedocs.adobe.com/flex/3/html/help.html?content=l10n_2.html Beau On Mon, Aug 31, 2009 at 10:35 AM, christophe_jacquelin christophe_jacque...@yahoo.fr wrote: Hello, What is the best system to manage with Flex a multi-lingual application ? Do you have source examples ? Thank you, Christopher, -- Beau D. Scott Software Engineer
Re: [flexcoders] Store files on the customer PC
Here's the help page for this: http://livedocs.adobe.com/flex/3/html/help.html?content=17_Networking_and_communications_7.html You're on your own for server side, as it's gonna vary depending on your server technologies. Here's kind of the how-to for PHP: http://us3.php.net/manual/en/features.file-upload.php Beau On Mon, Aug 31, 2009 at 10:37 AM, christophe_jacquelin christophe_jacque...@yahoo.fr wrote: Hello, There is a solution to upload files from the customer PC to the server with Flex. Did there is the equivalent to put files from the server to the customer PC ? Thank you, Christopher, -- Beau D. Scott Software Engineer
Re: [flexcoders] about FB3_WWEJ_Plugin.exe
Sure thing, start here: http://store1.adobe.com/cfusion/store/html/index.cfm?event=displayStoreSelectorkeyword=flex_builder_standard Flex Builder isn't free, you will need to purchase a license (which comes with a serial number). Beau On Fri, Aug 28, 2009 at 1:43 AM, 刘 fengling8...@yahoo.com.cn wrote: Hello,I have installed the FB3_WWEJ_Plugin.exe in my already installed eclipse,but whenever I want to build a flex project ,it always ask for the serial number.I have tried many serial numbers,but none of them is valid.Can anyone of you help me to answer my question??Thank you very much. -- 好玩贺卡等你发,邮箱贺卡全新上线!http://cn.rd.yahoo.com/mail_cn/tagline/card/*http://card.mail.cn.yahoo.com/ -- Beau D. Scott Software Engineer
Re: [flexcoders] Create a directory
Flex is a client side technology, so what you're trying to do can't be done directly from Flex. Depending on your server technology, you can create a script (like php, jsp, perl, asp, etc.) and call that script's url from the Flex application and have it respond however you want. Beau On Fri, Aug 28, 2009 at 8:01 AM, christophe_jacquelin christophe_jacque...@yahoo.fr wrote: Hello, How to create a directory (and see if it exists) on the server from a flex application ? Thank you, Christopher, -- Beau D. Scott Software Engineer
Re: [flexcoders] DatagridColumn dataField question
dataField is a property belonging to the objects within the datagrid's dataprovider. you don't access the array directly from your datagrid column, rather you just name the field to access. So in the case you gave of an array of strings, you'd only be able to display properties of the string objects themselves (such as length): mx:DataGridColumn dataField=length/ !-- would display the length of the string in each index -- You could use label function to just return the value of the object as well: mx:DataGridColumn labelFunction={function(... rest):String{return rest[0] as String;}} / !-- Will display the actual value of the string at the index's row. However if you make it an array of arrays of strings, you can most certain bind columns to indexes of the arrays of strings for display: ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ [Bindable] public var dp:Array = [ ['1','2','3'], ['a', 'b', 'c'] ]; ]] /mx:Script mx:DataGrid width=100% dataProvider={dp} mx:columns mx:DataGridColumn dataField=0 / !-- Binds to dp[row][0] --- mx:DataGridColumn dataField=1 / !-- Binds to dp[row][1] --- mx:DataGridColumn dataField=2 / !-- Binds to dp[row][2] --- /mx:columns /mx:DataGrid /mx:WindowedApplication Beau On Fri, Aug 28, 2009 at 5:28 AM, bhaq1972 mbha...@hotmail.com wrote: Can the dataField reference an array position eg var array1:Array = [hello, world, etc]; ... mx:DataGridColumn dataField=array1[1] / at the moment the only way i can make this work is use a labelFunction eg mx:DataGridColumn dataField=array1[1] labelFunction=something/ Just wondered if there was any other way? TIA Bod -- Beau D. Scott Software Engineer
Re: [Spam] Re: [flexcoders] Creating a flex library project that referencesa remote SVN path?
You should read up on SVN Externals: http://svnbook.red-bean.com/en/1.0/ch07s03.html Beau On Fri, Aug 28, 2009 at 9:55 AM, Nick Middleweek n...@middleweek.co.ukwrote: Ah nice one Jeffry... Thanks for your reply... Linked driectories... Ok, I'll look into those. Some guy at work has just said download teh SVN, do an export to clean the SVN files and use the SWC in my main flex projects lib folder... That sound about right? Cheers, Nick 2009/8/28 Jeffry Houser j...@dot-com-it.com Most likely you would check out code from the SVN repository so that it is local. After that, you can add the source code to your project in multiple ways. One of them is to add a linked directory pointing to the source code. Another is to compile your own SWC with the source code and add that swc to the library path of your project. Nick Middleweek wrote: Hello, Is it even possible to create a flex library project that references a remote SVN path?? I'm trying to use the birdeye qavis graphing library and I've been told to create a flex library project and set the src to the remote SVN location... How do i do that? I'm stumped... I'm using FB3 with Subclipse installed if that helps. Cheers, Nick -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5hhttp://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developershttp://www.flextras.com?c=104 --http://www.theflexshow.comhttp://www.jeffryhouser.com -- Part of the DotComIt Brain Trust -- Beau D. Scott Software Engineer
[flexcoders] Access system color/style scheme from AIR app?
Anyone know if this is yet possible in AIR? Beau
Re: [Spam] RE: [Spam] [flexcoders] Question on Flex Script Execution + Alert.show
You have to remember that flex renders according to the component lifecycle. There's a global timer that runs independent of everything else (according to the FPS the movie is playing) that more or less watches the objects in the display list and with each timer tick will re-render the objects that have been flagged as needing such. So when you say Alert.show(...), a new display object is created and stuck into the display list, but it won't be set up and shown until the next sweep of this global timer. Also, flash is not multithreaded, so your current method must finish executing before the rendering timer event method can be executed, so semaphores are not possible (you can't stay in a loop waiting for another operation to complete, it will never happen). Therefor you are forced you to rely on event listeners to interact with this object. On Thu, Aug 27, 2009 at 4:43 AM, Nick Middleweek n...@middleweek.co.ukwrote: Why won't it work? I can't see why it wouldn't... I'm still learning Flex so perhaps I've overlooked something. I do agree, it is bad coding but I can't see why it wouldn't work. The boolAlertContinue variable is in affect acting like semaphore... Cheers, Nick 2009/8/27 Tracy Spratt tr...@nts3rd.com No, no, no, this will not work. You must use the event mechanism. Tracy Spratt, Lariat Services, development services available -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Nick Middleweek *Sent:* Wednesday, August 26, 2009 7:33 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [Spam] [flexcoders] Question on Flex Script Execution + Alert.show I'm not sure if this technique is frowned upon but... You could have a new private var boolAlertContinue:Boolean = false; In your alertHandler function, you would set it to true... boolAlertContinue = true; And after the Alert.show and before the if(myAlert == 1) you need to do a do while loop... do { //Not sure if there's a 'dummy' command to prevent CPU hog so we'll just check the time... var dtmNow:Date = new Date(); } while (boolAlertContinue); or you could probably initialise your myAlert:int = null and in the do ... while loop check for (myAlert != null) Cheers, Nick 2009/8/26 Angelo Anolin angelo_ano...@yahoo.com Hi FlexCoders, This has puzzled me a bit.. I have the following scripts in my application: private var myAlert:int; private function testFunction(evt:Event):void { Alert.show('do you want to proceed', 'Title', Alert.YES | Alert.NO, null, alertHandler, null, Alert.YES); if(myAlert == 1) { // Do Something here } else { // Do other thing here } } Private function alertHandler(evt:CloseEvent) { if(evt.Detail == Alert.YES) { myAlert = 1; } else { myAlert = -1; } } Now, what puzzles me is that the script after the Alert.show is triggered, the scripts following it are also triggered. Is there a way to ensure that the script following the Alert.show alert box would only be executed after the Yes or No buttons has been pressed? I won't be able to move the scripts after the Alert.show script to the alertHandler event since there are some objects being set / modified prior to the alert being called. Inputs highly appreciated. Thanks. -- Beau D. Scott Software Engineer
Re: [flexcoders] May I reset the disabledRanges for DateField ?
Use a change event on startDate to reset the disabled date range on end date. Beau On Thu, Aug 27, 2009 at 8:51 AM, markflex2007 markflex2...@yahoo.comwrote: Hi, I use the following code to reset disabledRanges for DateField,but it doesn't work.Can you help me to fix this. Thanks mk ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ private var year:Number = 2009; private var month:Number = 8; private var date:Number = 20; private function getDisabledday():Date{ var disabledday:Date = new Date(year,month,date); return disabledday; } private function setDate():void{ var startDate:Date = DateField.stringToDate(startDate.text,-MM-DD); year = startDate.getFullYear(); month = startDate.getMonth(); date = startDate.getDate(); } ]] /mx:Script mx:DateField id=startDate change=setDate() formatString=-MM-DD / mx:DateField id=endDate disabledRanges={[{rangeEnd: getDisabledday()}]} / /mx:Application -- Beau D. Scott Software Engineer
Re: [flexcoders] May I reset the disabledRanges for DateField ?
Sorry... hit send before I had a chance to paste code in: mx:Script ![CDATA[ private function resetEndDateRanges():void { endDate.disabledRanges = getDisabledRanges(); } private function getDisabledRanges():Array { return [{rangeStart:new Date(0), rangeEnd: startDate.selectedDate}]; } ]] /mx:Script mx:DateField id=startDate change=resetEndDateRanges()/ mx:DateField id=endDate disabledRanges={getDisabledRanges()} enabled={startDate.selectedDate != null}/ Beau On Thu, Aug 27, 2009 at 9:34 AM, Beau Scott beau.sc...@gmail.com wrote: Use a change event on startDate to reset the disabled date range on end date. Beau On Thu, Aug 27, 2009 at 8:51 AM, markflex2007 markflex2...@yahoo.comwrote: Hi, I use the following code to reset disabledRanges for DateField,but it doesn't work.Can you help me to fix this. Thanks mk ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ private var year:Number = 2009; private var month:Number = 8; private var date:Number = 20; private function getDisabledday():Date{ var disabledday:Date = new Date(year,month,date); return disabledday; } private function setDate():void{ var startDate:Date = DateField.stringToDate(startDate.text,-MM-DD); year = startDate.getFullYear(); month = startDate.getMonth(); date = startDate.getDate(); } ]] /mx:Script mx:DateField id=startDate change=setDate() formatString=-MM-DD / mx:DateField id=endDate disabledRanges={[{rangeEnd: getDisabledday()}]} / /mx:Application -- Beau D. Scott Software Engineer -- Beau D. Scott Software Engineer
Re: [Spam] RE: [Spam] [flexcoders] Question on Flex Script Execution + Alert.show
All this said... there are hacky ways to visually emulate it... It's effectively the same as using separate methods, but visually looks like what you're after. There are some scope caveats to it (this references the global scope rather than the current class, duplicate named variables are overwritten to local scope), and potentially some memory clean up issues (anonymous functions are tricky to GC). ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute dragEnter=dragEntered(event) dragDrop=dragDropped(event) mx:Script ![CDATA[ import mx.events.CloseEvent; import mx.controls.Alert; import mx.core.DragSource; import mx.core.IUIComponent; import mx.managers.DragManager; import mx.events.DragEvent; private function dragEntered(event:DragEvent):void { var formatName:String = Object(event.dragInitiator).toString(); if(event.dragSource.hasFormat(formatName)) { DragManager.acceptDragDrop(IUIComponent(event.currentTarget)); } } private function dragDropped(event:DragEvent):void { // Executing the values here rather than referencing in closure because the values of mouseX // will have changed by the time it's referenced (your mouse position will have moved from over the // original target to over the YES button on the Alert box). var my_x:int = event.localX - event.dragInitiator.mouseX; var my_y:int = event.localY - event.dragInitiator.mouseY; Alert.show('Really drop here?', 'Hello!', Alert.YES + Alert.NO, null, function(ev:CloseEvent):void{ if(ev.detail == Alert.YES) { // event is still in scope here event.dragInitiator.x = my_x; event.dragInitiator.y = my_y; } }); } private function dragTarget_mouseDownHandler(event:MouseEvent):void { var dragInitiator:IUIComponent = IUIComponent(event.currentTarget); var ds:DragSource = new DragSource(); var formatName:String = event.currentTarget.toString(); ds.addData(dragInitiator, formatName); DragManager.doDrag(dragInitiator, ds, event, dragInitiator); } ]] /mx:Script mx:Button id=foo label=I'm such a drag mouseDown=dragTarget_mouseDownHandler(event)/ /mx:WindowedApplication So basically what you're doing here is using an inline anonymous function as the close handler for the alert box. The trick as I tried to point out in the code comment is referenced values that might change between the outer procedure execution time and when the anonymous function is executed should be initialized outside of the anonymous function. In this case, I need to calculate the X/Y drop coords because by the time the close handler is executed, my mouse position relative to the object I dropped will have changed as I move to hit YES, so I calculate the value at the time of the drop and then reference that inside the closure. Hope this helps. Beau On Thu, Aug 27, 2009 at 10:35 AM, Tracy Spratt tr...@nts3rd.com wrote: Flex procedural code is essentially single threaded. The loop will stop all other processing, the handler will never get called, and the loop will never stop. There is NO sleep or delay or pause or anything like that in Flex. You must use events. Tracy Spratt, Lariat Services, development services available -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Nick Middleweek *Sent:* Thursday, August 27, 2009 6:43 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [Spam] RE: [Spam] [flexcoders] Question on Flex Script Execution + Alert.show Why won't it work? I can't see why it wouldn't... I'm still learning Flex so perhaps I've overlooked something. I do agree, it is bad coding but I can't see why it wouldn't work. The boolAlertContinue variable is in affect acting like semaphore... Cheers, Nick 2009/8/27 Tracy Spratt tr...@nts3rd.com No, no, no, this will not work. You must use the event mechanism. Tracy Spratt, Lariat Services, development services available -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Nick Middleweek *Sent:* Wednesday, August 26, 2009 7:33 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [Spam] [flexcoders] Question on Flex Script Execution + Alert.show I'm not sure if
Re: [flexcoders] Re: Find Actual Width After Setting Percent Width
You'll need to invalidate the component's parent's size and revalidate it before your target's size is computed: ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Script ![CDATA[ import mx.core.UIComponent; private function clicked():void { trace(bar.width); bar.percentWidth = bar.percentWidth == 100 ? 50 : 100; UIComponent(bar.parent).invalidateSize(); UIComponent(bar.parent).validateNow(); trace(bar.width); } ]] /mx:Script mx:Box id=foo width=100% height=50 borderColor=red borderThickness=1 borderStyle=solid mx:Box id=bar width=100% height=100% borderColor=blue borderThickness=1 borderStyle=solid / /mx:Box mx:Button click=clicked() label=click me / /mx:WindowedApplication Run that and click the button to see the trace output. HTH, Beau On Wed, Aug 26, 2009 at 10:04 AM, jmfillman jmfill...@verizon.net wrote: If you trace the width and measuredWidth immediately after setting the percentWidth, both width and measuredWidth show the original width instead of the updated width. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, valdhor valdhorli...@... wrote: What does canvas.measuredWidth give when the user clicks the button? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, jmfillman jmfillman@ wrote: I have a canvas container with=100%. When the user clicks a button, the container is set to percentWidth=20, and I need to immediately know the new width so that I can properly re-size elements in the container to match the new width. From what I can tell, the LayoutManager doesn't get to measuring the new width of the container right away. If the user clicks the button again, the LayoutManager has done it's thing and has set the width value of the canvas. So the question is, how do I get the new width of the canvas as soon as I set percentWidth=20? -- Beau D. Scott Software Engineer
Re: [flexcoders] Question on Flex Script Execution + Alert.show
Alert.show is async, so move the code after Alert.show to the alertHandler method after your if/else block that's already in there. Beau On Wed, Aug 26, 2009 at 12:03 AM, Angelo Anolin angelo_ano...@yahoo.comwrote: Hi FlexCoders, This has puzzled me a bit.. I have the following scripts in my application: private var myAlert:int; private function testFunction(evt:Event):void { Alert.show('do you want to proceed', 'Title', Alert.YES | Alert.NO, null, alertHandler, null, Alert.YES); if(myAlert == 1) { // Do Something here } else { // Do other thing here } } Private function alertHandler(evt:CloseEvent) { if(evt.Detail == Alert.YES) { myAlert = 1; } else { myAlert = -1; } } Now, what puzzles me is that the script after the Alert.show is triggered, the scripts following it are also triggered. Is there a way to ensure that the script following the Alert.show alert box would only be executed after the Yes or No buttons has been pressed? I won't be able to move the scripts after the Alert.show script to the alertHandler event since there are some objects being set / modified prior to the alert being called. Inputs highly appreciated. Thanks. -- Beau D. Scott Software Engineer
Re: [flexcoders] input date include today?
Set your range to end yesterday? mx:DateField disabledRanges={[{rangeEnd: new Date(new Date().getTime() - 8640)}]} / 8640 = 1 day in ms. Beau On Wed, Aug 26, 2009 at 10:40 AM, markflex2007 markflex2...@yahoo.comwrote: Hi I use the following and I can select date from tomorrow. mx:DateField disabledRanges={[{rangeEnd: new Date()}]} /. But I also want to select date include today. Do you have a idea how to do this.Thanks Mark -- Beau D. Scott Software Engineer
Re: [flexcoders] How to loop XML data and adding another attribute?
for each(var address:XML in dataXML.address) { addre...@building_numeric = parseInt(addre...@building_number); } For more info on using XML in ActionScript 3 (iterating, collections, manipulation) see here: http://livedocs.adobe.com/flex/3/langref/XML.html and http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3_Flex/WS5b3ccc516d4fbf351e63e3d118a9b90204-7ff5.html Beau On Tue, Aug 25, 2009 at 3:48 PM, Nick Middleweek n...@middleweek.co.ukwrote: Hello, I've got some XML data in a variable called dataXML, it looks similar to this... addresses address building_number=1 / address building_number=1a / address building_number=1b / address building_number=2 / address building_number=3 / address building_number=4 / address building_number=4a / /addresses What I'd like to do is loop round the data and add another attribute called building_numeric which is the parseInt(building_number attribute). I'm sure this is really easy but can someone give me a pointer please... I'm getting a tad lost... Thank you, Nick -- Beau D. Scott Software Engineer
Re: [flexcoders] why disabledRanges doesn't work
Works fine for me. Are you thinking that new Date(2010,2,1) = Feb 1, 2010? Remeber that months are 0 based, so 2 = March. Beau On Tue, Aug 25, 2009 at 3:04 PM, markflex2007 markflex2...@yahoo.comwrote: I set the disabledRanges for DateField,but I can select any date,it seems disabledRanges doesn't work. Please help.Thanks mx:DateField id=checkedDate x=81 y=108 formatString=-MM-DD width=121 disabledRanges={[{rangeStart: new Date(2010,2,1)}]} / -- Beau D. Scott Software Engineer
[flexcoders] All-In-One Flex/AIR SDK Mac/Win/Lin Package?
We currently run a full spectrum of development and testing environments for our software (Multi-Linux, Mac and Windows), and our automated build/test server runs linux. In an effort to ensure all engineers and build servers are using the same SDK versions, we have an SDK repository and externals linked to our main project. So this is my quandary: Combining the disparate packages of Flex and AIR SDK's for each environment is extremely cumbersome: 1. Flex 1. Download Flex SDK 2. Download Flex DVC SDK 3. Download Flex Automation Libs (overlaying with files distributed with Flex Builder because it's incomplete) 4. Extract in that order to new SDK dir (eg: 3.4.0/) 2. AIR 1. Download AIR SDK (windows) 2. Download AIR SDK (mac) 3. Download AIR SDK (linux) 4. Check for any differences outside of the bin dir (src/swc files) 5. Combine in to common directory 3. Overlay combined AIR directory on top of directory created in 1.4 Anyone who's tried this knows there are some issues with it, like linked resources in the Mac and Linux AIR player directories, that make it so you have to complete a few of these steps on a Mac and/or Linux box... And there are common-named files on each that conflict (for example: adl conflicts between Mac and Linux, and there are jar file differences between the Linux AIR SDK and the Windows AIR SDK). There has to be an easier way to do this. Does anyone know of one? Or should I file this as a request on bugs.adobe.com?
Re: [flexcoders] Horizontal List - the Images don't appear - help?!
Like most other icon attributes in flex, they're class references, not string urls (see http://livedocs.adobe.com/flex/3/langref/mx/controls/HorizontalList.html#includeExamplesSummary ) You have two options: 1: Embed the images and reference their respective variables through binding (like in the above example) 2: Create your own renderer for use within the HorizontalList, making use of an mx:Image that has it's source set to the icon property of the objects in the given dataProvider. and an mx:Label that's bound to the label property. Some semi-working code: (you'll probabaly want to make it extend UIComponent and handle measuring, positioning, etc. Look @ TileListItemRenderer for guidance). package { import mx.containers.VBox; import mx.controls.Image; import mx.controls.Label; import mx.controls.listClasses.BaseListData; import mx.controls.listClasses.IDropInListItemRenderer; import mx.controls.listClasses.IListItemRenderer; import mx.controls.listClasses.ListData; import mx.core.IDataRenderer; import mx.core.IFactory; import mx.events.FlexEvent; public class URLHListRenderer extends VBox implements IFactory, IDropInListItemRenderer, IDataRenderer, IListItemRenderer { private var uiImage:Image; private var uiLabel:Label; public function URLHListRenderer() { super(); } override protected function createChildren():void { super.createChildren(); uiImage = new Image(); addChild(uiImage); uiLabel = new Label(); uiLabel.styleName = this; addChild(uiLabel); } override protected function commitProperties():void { super.commitProperties(); uiImage.source = data (data.icon || data.source) ? (data.icon || data.source) : null; uiLabel.text = data ? data.label : null; } public function newInstance():* { var instance:URLHListRenderer = new URLHListRenderer(); instance.styleName = this; instance.width = width; instance.height = height; return instance; } private var _listData:ListData; [Bindable(dataChange)] public function get listData():BaseListData { return null; } /** * @private */ public function set listData(value:BaseListData):void { _listData = value as ListData; dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE)); invalidateProperties(); } override public function set data(value:Object):void { super.data = value; invalidateProperties(); } } } mx:HorizontalList width=100% height=100% mx:itemRenderer local:URLHListRenderer width=200 height=200/ /mx:itemRenderer mx:dataProvider mx:Array mx:Object label=Yahoo icon= http://l.yimg.com/a/i/ww/beta/y3.gif/ /mx:Array /mx:dataProvider /mx:HorizontalList Hope this helps, Beau Scott On Thu, Jul 23, 2009 at 8:55 AM, jamiebadman jamie.bad...@db.com wrote: Hi! I'm trying to display images in a Horizontal List. I receive the url's of the images via a webservice at run time - so can't embed the images. I've tried something like this: chartList.addItem({label:myLabel, icon:myImageURL}); Where chartList is the dataprovider of the H-List... but this doesn't work - I see the labels but no images. The url's are definitely correct - I can paste one into a browser and view the image. Any ideas? Thanks, Jamie. -- Beau D. Scott Software Engineer
Re: [flexcoders] FileReference.load()
Err... extra paren in there. if(fileReference.hasOwnProperty(load)) fileReference[load](); Beau On Thu, Jul 23, 2009 at 12:23 PM, Beau Scott beau.sc...@gmail.com wrote: if(fileReference.hasOwnProperty('load')) fileReference([load'](); Beau On Thu, Jul 23, 2009 at 12:18 PM, Richard Rodseth rrods...@gmail.comwrote: Unfortunately, if (load in fileReference) does not succeed unless I specify Player 10 in the build settings. On Thu, Jul 23, 2009 at 9:56 AM, Richard Rodseth rrods...@gmail.comwrote: Nice! But it's not working for me yet. The in expression doesn't succeed. I'll keep digging through the reflection docs, but if you have any refinements, please pass them along. On Wed, Jul 22, 2009 at 6:33 PM, Gordon Smith gosm...@adobe.com wrote: Try this: if (load in fileReference) fileReference[load](); That should compile against the Player 9 version of playerglobal.swc, but, in Player 10, detect that the method exists and call it by name. Gordon Smith Adobe Flex SDK Team *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Richard Rodseth *Sent:* Wednesday, July 22, 2009 6:12 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] FileReference.load() I was hoping to provide an optional feature that requires reading a local file if Player 10 is available, without requiring 10 for the whole application. But it appears that I can't compile code that uses FileReference.load() without setting the target player in FlexBuilder. Anyone dealt with this situation? -- Beau D. Scott Software Engineer -- Beau D. Scott Software Engineer
Re: [flexcoders] FileReference.load()
if(fileReference.hasOwnProperty('load')) fileReference([load'](); Beau On Thu, Jul 23, 2009 at 12:18 PM, Richard Rodseth rrods...@gmail.comwrote: Unfortunately, if (load in fileReference) does not succeed unless I specify Player 10 in the build settings. On Thu, Jul 23, 2009 at 9:56 AM, Richard Rodseth rrods...@gmail.comwrote: Nice! But it's not working for me yet. The in expression doesn't succeed. I'll keep digging through the reflection docs, but if you have any refinements, please pass them along. On Wed, Jul 22, 2009 at 6:33 PM, Gordon Smith gosm...@adobe.com wrote: Try this: if (load in fileReference) fileReference[load](); That should compile against the Player 9 version of playerglobal.swc, but, in Player 10, detect that the method exists and call it by name. Gordon Smith Adobe Flex SDK Team *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Richard Rodseth *Sent:* Wednesday, July 22, 2009 6:12 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] FileReference.load() I was hoping to provide an optional feature that requires reading a local file if Player 10 is available, without requiring 10 for the whole application. But it appears that I can't compile code that uses FileReference.load() without setting the target player in FlexBuilder. Anyone dealt with this situation? -- Beau D. Scott Software Engineer
Re: [flexcoders] FileReference.load()
Works fine for me.I just tried it in both 9.0.124 and 10 players: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:local=* mx:Script ![CDATA[ import mx.controls.Label; import mx.controls.Alert; override protected function childrenCreated():void { if(this.hasOwnProperty(foo)) { this[foo](); } } public function foo():void { var lbl:Label = new Label(); lbl.text = It worked; addChild(lbl); } ]] /mx:Script /mx:Application Beau On Thu, Jul 23, 2009 at 12:33 PM, Richard Rodseth rrods...@gmail.comwrote: Nope, I've tried that too. Has that worked for you, or are you guessing? On Thu, Jul 23, 2009 at 11:23 AM, Beau Scott beau.sc...@gmail.com wrote: if(fileReference.hasOwnProperty('load')) fileReference([load'](); Beau On Thu, Jul 23, 2009 at 12:18 PM, Richard Rodseth rrods...@gmail.comwrote: Unfortunately, if (load in fileReference) does not succeed unless I specify Player 10 in the build settings. On Thu, Jul 23, 2009 at 9:56 AM, Richard Rodseth rrods...@gmail.comwrote: Nice! But it's not working for me yet. The in expression doesn't succeed. I'll keep digging through the reflection docs, but if you have any refinements, please pass them along. On Wed, Jul 22, 2009 at 6:33 PM, Gordon Smith gosm...@adobe.comwrote: Try this: if (load in fileReference) fileReference[load](); That should compile against the Player 9 version of playerglobal.swc, but, in Player 10, detect that the method exists and call it by name. Gordon Smith Adobe Flex SDK Team *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Richard Rodseth *Sent:* Wednesday, July 22, 2009 6:12 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] FileReference.load() I was hoping to provide an optional feature that requires reading a local file if Player 10 is available, without requiring 10 for the whole application. But it appears that I can't compile code that uses FileReference.load() without setting the target player in FlexBuilder. Anyone dealt with this situation? -- Beau D. Scott Software Engineer -- Beau D. Scott Software Engineer
Re: [flexcoders] FileReference.load()
Ah, I see what you're saying now. The answer is you're not going to be able to do it unless you use 10, because the compiler looks at the compatible player version and includes version-specific swcs at compile time (Flex Builder 3 Plug-in\sdks\3.2.0\frameworks\libs\player\9\playerglobal.swc vs Flex Builder 3 Plug-in\sdks\3.2.0\frameworks\libs\player\10\playerglobal.swc). Therefore load will never be available no matter what player is playing it if you're specifiying 9 as the lowest compatible version. These libs don't exist in the player itself, it's supplied by the swf. Beau On Thu, Jul 23, 2009 at 12:57 PM, Richard Rodseth rrods...@gmail.comwrote: But it's the flash.netFileReference class that's in play: private var fileReference:FileReference = new FileReference(); private function onAddFile(event:Event):void { var filter:FileFilter = new FileFilter(Text, *.xml); fileReference.browse([filter]); fileReference.addEventListener(Event.SELECT, onFileSelect); fileReference.addEventListener(Event.COMPLETE, onFileComplete); } private function onFileSelect(event:Event):void { if (load in this.fileReference) { fileReference[load](); } } private function onFileComplete(event:Event):void { var property:String = data; myText.text = fileReference[data].readUTFBytes(fileReference[data].length); } On Thu, Jul 23, 2009 at 11:51 AM, Beau Scott beau.sc...@gmail.com wrote: Works fine for me.I just tried it in both 9.0.124 and 10 players: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:local=* mx:Script ![CDATA[ import mx.controls.Label; import mx.controls.Alert; override protected function childrenCreated():void { if(this.hasOwnProperty(foo)) { this[foo](); } } public function foo():void { var lbl:Label = new Label(); lbl.text = It worked; addChild(lbl); } ]] /mx:Script /mx:Application Beau On Thu, Jul 23, 2009 at 12:33 PM, Richard Rodseth rrods...@gmail.comwrote: Nope, I've tried that too. Has that worked for you, or are you guessing? On Thu, Jul 23, 2009 at 11:23 AM, Beau Scott beau.sc...@gmail.comwrote: if(fileReference.hasOwnProperty('load')) fileReference([load'](); Beau On Thu, Jul 23, 2009 at 12:18 PM, Richard Rodseth rrods...@gmail.comwrote: Unfortunately, if (load in fileReference) does not succeed unless I specify Player 10 in the build settings. On Thu, Jul 23, 2009 at 9:56 AM, Richard Rodseth rrods...@gmail.comwrote: Nice! But it's not working for me yet. The in expression doesn't succeed. I'll keep digging through the reflection docs, but if you have any refinements, please pass them along. On Wed, Jul 22, 2009 at 6:33 PM, Gordon Smith gosm...@adobe.comwrote: Try this: if (load in fileReference) fileReference[load](); That should compile against the Player 9 version of playerglobal.swc, but, in Player 10, detect that the method exists and call it by name. Gordon Smith Adobe Flex SDK Team *From:* flexcoders@yahoogroups.com [mailto: flexcod...@yahoogroups.com] *On Behalf Of *Richard Rodseth *Sent:* Wednesday, July 22, 2009 6:12 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] FileReference.load() I was hoping to provide an optional feature that requires reading a local file if Player 10 is available, without requiring 10 for the whole application. But it appears that I can't compile code that uses FileReference.load() without setting the target player in FlexBuilder. Anyone dealt with this situation? -- Beau D. Scott Software Engineer -- Beau D. Scott Software Engineer -- Beau D. Scott Software Engineer
Re: [flexcoders] Perplexing regex/replace() issue
Kinda cheated for one line but it works: var s:String = t.toLowerCase().replace(/-([a-z])/g, function():String { return arguments[1].toUpperCase();}); On Mon, Mar 16, 2009 at 11:44 AM, jimmy5804 jimmy5...@yahoo.com wrote: This seems simple, but I can't figure it out. I have some input I don't control with a lot of properties that look like xx-yyy that I want to camelcase: xxYyy and I'd like to do this with a one-line replace() instead of a longer split/join approach. I've tried several variations of: var s:String = t.replace(/-([a-z])/g, $1.toUpperCase()); I've also tried making the second param a function that returns uppercase, but replace() doesn't do the group substitution in this case. Can this be done? -- Beau D. Scott Software Engineer
Re: [flexcoders] Re: datefield issue
Months are 0-based in ecmascript (JS, AS, etc.) Date objects. 0 = jan., 1 = feb., etc. http://livedocs.adobe.com/flex/3/langref/Date.html#month Use a date formatter if you need to format this to a string and don't want to manually convert the month offset. (probably a good idea to use the date formatter anyway when you're dealing with locales.) On Mon, Mar 16, 2009 at 2:01 PM, Greg Morphis gmorp...@gmail.com wrote: I feel like I hacked it but I added a .sethours(12,0,0,0) at the top of the code before it saves dispatches the event.. Is there a less hacky-feeling fix for this? this works fine but leaves a bad taste in my mouth On Mon, Mar 16, 2009 at 2:51 PM, Greg Morphis gmorp...@gmail.comgmorphis%40gmail.com wrote: out of the pan and into the fire I have a datefield and I choose for example April 1, the date saves as 3/31. If I choose 3/31, it saves 3/30.. Is this a timezone issue with Flex? is this easy to fix? When I Alert the value I see Tue Mar 31 00:00:00 GMT -0500 2009 (when I choose March 31st) So why isnt it staying on March 31st? Thanks! -- Beau D. Scott Software Engineer
Re: [flexcoders] Re: datefield issue
wait, my bad, I misread. disregard my previous remark. On Mon, Mar 16, 2009 at 2:26 PM, Beau Scott beau.sc...@gmail.com wrote: Months are 0-based in ecmascript (JS, AS, etc.) Date objects. 0 = jan., 1 = feb., etc. http://livedocs.adobe.com/flex/3/langref/Date.html#month Use a date formatter if you need to format this to a string and don't want to manually convert the month offset. (probably a good idea to use the date formatter anyway when you're dealing with locales.) On Mon, Mar 16, 2009 at 2:01 PM, Greg Morphis gmorp...@gmail.com wrote: I feel like I hacked it but I added a .sethours(12,0,0,0) at the top of the code before it saves dispatches the event.. Is there a less hacky-feeling fix for this? this works fine but leaves a bad taste in my mouth On Mon, Mar 16, 2009 at 2:51 PM, Greg Morphis gmorp...@gmail.comgmorphis%40gmail.com wrote: out of the pan and into the fire I have a datefield and I choose for example April 1, the date saves as 3/31. If I choose 3/31, it saves 3/30.. Is this a timezone issue with Flex? is this easy to fix? When I Alert the value I see Tue Mar 31 00:00:00 GMT -0500 2009 (when I choose March 31st) So why isnt it staying on March 31st? Thanks! -- Beau D. Scott Software Engineer -- Beau D. Scott Software Engineer
Re: [flexcoders] Automation updates with 3.3 SDK?
K, I'm updating from 3.1, and I'm not sure exactly where to find the 3.2 updates now that 3.3 has been posted to http://www.adobe.com/products/flex/flexdownloads/ and all the files are the same. Anyone have a link I can get the 3.2 stuff from? Beau On Wed, Mar 11, 2009 at 3:31 PM, Matt Chotin mcho...@adobe.com wrote: And if not, then just copy them from 3.2, nothing should have changed. On 3/11/09 2:30 PM, Matt Chotin mcho...@adobe.com wrote: They should be included in the datavisualization download that’s on the Flex download page. http://www.adobe.com/products/flex/flexdownloads/ Matt On 3/11/09 1:10 PM, Beau Scott beau.sc...@gmail.com wrote: Just curious if the automation libraries were updated as well? and if so, where to obtain them. -- Beau D. Scott Software Engineer
Re: [flexcoders] Automation updates with 3.3 SDK?
Nevermind, I just pulled it from what came with Flex Builder 3.0.2 because I couldn't find the dataviz package anywhere for 3.2. Even tried modifying the url that is on the current dataviz link. FYI, the links from the opensource sdk site, http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3 , to the 3.2 sdk zip goes to the main flex product download page rather than to where it should: http://opensource.adobe.com/wiki/display/flexsdk/download?build=3.2.0.3958pkgtype=1 Beau On Fri, Mar 13, 2009 at 8:41 AM, Beau Scott beau.sc...@gmail.com wrote: K, I'm updating from 3.1, and I'm not sure exactly where to find the 3.2 updates now that 3.3 has been posted to http://www.adobe.com/products/flex/flexdownloads/ and all the files are the same. Anyone have a link I can get the 3.2 stuff from? Beau On Wed, Mar 11, 2009 at 3:31 PM, Matt Chotin mcho...@adobe.com wrote: And if not, then just copy them from 3.2, nothing should have changed. On 3/11/09 2:30 PM, Matt Chotin mcho...@adobe.com wrote: They should be included in the datavisualization download that’s on the Flex download page. http://www.adobe.com/products/flex/flexdownloads/ Matt On 3/11/09 1:10 PM, Beau Scott beau.sc...@gmail.com wrote: Just curious if the automation libraries were updated as well? and if so, where to obtain them. -- Beau D. Scott Software Engineer -- Beau D. Scott Software Engineer
[flexcoders] Automation updates with 3.3 SDK?
Just curious if the automation libraries were updated as well? and if so, where to obtain them. -- Beau D. Scott Software Engineer
[flexcoders] 3.3 SDK AIR debugging issues
I just updated our code base to use Flex SDK 3.3 AIR 1.5.1 (thanks to some weird dependency issue that occured when updating the system's AIR runtime to 1.5.1 and not the debugger... real nice), and am now having horrible issues debugging on all platforms. We primarily develop on Linux, and are used to the frequent/random debugger disconnects that have always plagued it, but are now experiencing random lockups of the application being debugged. Thinking this was a Linux oversight, we booted up to Windows -- and disappointingly found that there are as many issues in debugging in windows now. For no apparent reason, when launch an application for debugging, about 20% of the time the application never starts. You can see the decompression message in the debug output, but that's it. ADL is still running, not really consuming more memory, and the debugger stays connected, but nothing happens. Debugging on Windows also has the same random/frequent lockups that Linux did after the SDK update. I've updated all the runtimes, etc., following the instructions here: http://labs.adobe.com/technologies/flex/flexbuilder_linux/releasenotes.html#airand adapting them to fit all platforms (with regard to executables). Anyone else see this? -- Beau D. Scott Software Engineer
Re: [flexcoders] 3.3 SDK AIR debugging issues
Excellent, thanks. On Fri, Mar 6, 2009 at 10:54 AM, Matt Chotin mcho...@adobe.com wrote: We’re working with the AIR team on this, *FB-16153 * Matt On 3/6/09 9:17 AM, Beau Scott beau.sc...@gmail.com wrote: I just updated our code base to use Flex SDK 3.3 AIR 1.5.1 (thanks to some weird dependency issue that occured when updating the system's AIR runtime to 1.5.1 and not the debugger... real nice), and am now having horrible issues debugging on all platforms. We primarily develop on Linux, and are used to the frequent/random debugger disconnects that have always plagued it, but are now experiencing random lockups of the application being debugged. Thinking this was a Linux oversight, we booted up to Windows -- and disappointingly found that there are as many issues in debugging in windows now. For no apparent reason, when launch an application for debugging, about 20% of the time the application never starts. You can see the decompression message in the debug output, but that's it. ADL is still running, not really consuming more memory, and the debugger stays connected, but nothing happens. Debugging on Windows also has the same random/frequent lockups that Linux did after the SDK update. I've updated all the runtimes, etc., following the instructions here: http://labs.adobe.com/technologies/flex/flexbuilder_linux/releasenotes.html#airand adapting them to fit all platforms (with regard to executables). Anyone else see this? -- Beau D. Scott Software Engineer
RE: [flexcoders] Bug or bad programming?
It’s not wrapped within a CDATA tag, so it has to be valid XML in order to be parsed. Use amp;amp; ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:CheckBox id=ch1 / mx:CheckBox id=ch2 / mx:Button enabled={ch1.selected amp;amp; ch2.selected} label=Foo! / /mx:Application Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nathanpdaniel Sent: Tuesday, May 20, 2008 3:54 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Bug or bad programming? I have been working on a form where I have 3 fields. Two fields are RadioButton controls, the third a CheckBox control. Now it is as below: mx:FormItem label=Access mx:HBox width=100% mx:RadioButtonGroup id=access / mx:RadioButton label=Public groupName=access selected=true value={true}/ mx:RadioButton label=Private groupName=access value={false}/ /mx:HBox /mx:FormItem mx:FormItem label=Status mx:HBox width=100% mx:RadioButtonGroup id=status / mx:RadioButton label=Active groupName=status value={true} selected=true/ mx:RadioButton label=Inactive groupName=status value={false}/ mx:CheckBox id=featured label=Featured enabled={(status.selectedValue)?((access.selectedValue)? true:false):false} / /mx:HBox /mx:FormItem Looking at the checkbox enabled it shows: {(status.selectedValue)?((access.selectedValue)?true:false):false} A simple {status.selectedValue access.selectedValue} would be desired, but it causes an error in Flex. I tried using || rather than (just for kicks) and it works. Flex is wanting the to be an html entity... So I was wondering, is this just bad programming on my part and I need to do something different, or is it a bug in Flex? -Nathan No virus found in this incoming message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.21/1456 - Release Date: 5/20/2008 6:45 AM No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.21/1456 - Release Date: 5/20/2008 6:45 AM
RE: [flexcoders] Flash Player 9.0.124.0 - Web Services Stopped Working
Without knowing your code details it would be hard to pinpoint exactly which change is causing your issues, but you should read the change log as 9.0.124 was a security update and RPC/SOAP calls are often the targets of security updates. HYPERLINK http://www.adobe.com/devnet/flashplayer/articles/flash_player9_security_upd ate.htmlhttp://www.adobe.com/devnet/flashplayer/articles/flash_player9_secu rity_update.html Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of byte.sensei Sent: Monday, April 14, 2008 1:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flash Player 9.0.124.0 - Web Services Stopped Working I've got a live Flex 3 site that uses SOAP web services. I've had a number of users over the weekend who updated to Flash Player 9.0.124.0 and now they can't get past the login screen -- it's like the login web service is not being called at all. The site works fine with version 9.0.115.0 (and older versions of Flash Player 9). Was there some type of change in 9.0.124.0 that would cause this type of issue? No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.13/1377 - Release Date: 4/14/2008 9:26 AM No virus found in this outgoing message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.13/1377 - Release Date: 4/14/2008 9:26 AM image001.jpgimage002.jpg
RE: [flexcoders] FB2 Keyboard Shortcut to insert variables/member names?
Control + Space For a list of other hotkeys, press Control+Shift+L Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Friday, March 21, 2008 3:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] FB2 Keyboard Shortcut to insert variables/member names? I looked in the Key Assist in Flexbuilder 2 and the help and online, couldn't find this shortcut. At least, wasn't obvious to me what it was called. Very useful if it exists: Anyone know if there is a keyboard shortcut in the code editor for inserting a variable or method name (FB2)? I would imagine you could hit a key combination and get a list of public and private variables in the class, as well as names of public and private functions, which you could select from, hit enter and FB would insert it at the cursor. I get tired of looking up at the top of my class and trying to remember what I called something and then either typing or copying and pasting - any way to do this? Thanks. Jason Merrill Bank of America GTO and Risk LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal HYPERLINK http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspxGTO Innovative Learning Blog HYPERLINK http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.aspx? List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http%3A%2F%2F sharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLists%2FPosts%2 FArchive%2Easpxsubscribe. No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.8/1337 - Release Date: 3/20/2008 8:10 PM No virus found in this outgoing message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.8/1337 - Release Date: 3/20/2008 8:10 PM image001.jpgimage002.jpg
RE: [flexcoders] Presenting at a user group meet regarding Flex + PHP...
Performance reasons alone are enough to put preference in the AMFPHP 1.9 plugin when dealing with flash/flex interfaces… though I will probably show how to set up dual gateways (one SOAP one AMFPHP) so interoperability is not lost. Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, March 14, 2008 7:19 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Presenting at a user group meet regarding Flex + PHP... On Thu, Mar 13, 2008 at 03:02:34PM -0600, Beau Scott wrote: If ya?ll have any other topic recommendations, I?m all ears J Using PHP's SoapServer class to expose PHP classes to Flex. No need for AMFPHP. And the resultant services communicate in a standard format and can be consumed by other environments aside from the Flash player. -Jeff No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.7/1328 - Release Date: 3/13/2008 11:31 AM No virus found in this outgoing message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.7/1328 - Release Date: 3/13/2008 11:31 AM image001.jpgimage002.jpg
RE: [flexcoders] Re: need help with XML predicate filtering
What does the actual XML look like? Do you by chance have a namespace in the xml that you haven’t set to use in flex? Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of hoytlee2000 Sent: Friday, March 14, 2008 2:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: need help with XML predicate filtering I tried that too and it came up empty too. I tried it without the klass node as I was miss reading the root, but that still didn't work. when I printout courseList.depts.dept.(name == needle) it returns all the name nodes like I expect but I want to get the klass node that is parented two levels up. Maybe it can't be done, most examples I've seen only return one parent node up from what they are searching for. be well, Hoyt --- In HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Did you try: courseList.klass.(depts.dept.name==needle) From: HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com [mailto:HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] On Behalf Of hoytlee2000 Sent: Thursday, March 13, 2008 7:04 PM To: HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com Subject: [flexcoders] Re: need help with XML predicate filtering Hmmm ... doesn't seem to work. When I use the parent() method nothing is returned: tempXMLList = courseList.klass.depts.dept.(name==needle).parent().parent() --- In HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: Immediate parent. So that would be depts. parent().parent() should return klass Tracy From: HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of hoytlee2000 Sent: Thursday, March 13, 2008 5:31 PM To: HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: need help with XML predicate filtering will that return it's immediate parent or the one all the way at the top? so tempXMLList = courseList.klass.depts.dept.(name==needle).parent() returns klass and not depts - right? Thanks, hoyt --- In HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: .parent() will return the parent node. Tracy From: HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of hoytlee2000 Sent: Thursday, March 13, 2008 3:53 AM To: HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] need help with XML predicate filtering Hello, I have an XML file which consists of a list of classes and it's attributes (teacher, length, category, etc., etc., ...) Classes can belong to different depts. I want to be able to grab all the classes and their attributes that are part of a certain dept. The dept nodes is a child of the class node. I can filter out the xml file to find all the nodes whose dept value equals the dept I am looking for, but I don't know how to return the main parent node. here is the xml file : klasses klass id=0 titleklass A/title length unit=hr1.5/length categorycore/category depts dept nameart/name /dept dept namepe/name /dept dept namemodeling/name /dept dept nameanimation/name /dept /depts /klass klass id=1 titleklass B/title length unit=hr1.5/length categorycore/category depts dept namer and d/name /dept dept nametd/name /dept dept namelighting/name /dept dept namematte painting/name /dept /depts /klass ... ... ... /klasses I get the xml file from: courseList = evt.result.klass // I want to get all klass objects that has art as one of the dept.name nodes var needle:String = art I try using this predicate filter but it only returns a XMLLIst that consists of nameneedle/name tempXMLList = courseList.klass.depts.dept.(name==needle) what I want returned is: klass ... ... ... /klass klass ...
[flexcoders] Presenting at a user group meet regarding Flex + PHP...
I’m getting ready to present present at a local PHP user group on using AMFPHP with Flex AIR. What would be some good shwag to bring? Does Adobe have any type of free marketing materials I could hand out? I’m planning on just a basic HOW-TO setup AMFPHP, and I’ll probably include integrating it with Cairngorm using some of the basic Cairngorm examples. If ya’ll have any other topic recommendations, I’m all ears J Thanks Beau Scott No virus found in this outgoing message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.7/1328 - Release Date: 3/13/2008 11:31 AM
[flexcoders] Kiosk support in AIR?
So the FAQ on the old labs site for AIR noted that kiosk support was planned, but it gave no mention of which specific kiosk-bits of functionality would be available. Anyone know if this made it in and if so what/where? (http://labs.adobe.com/wiki/index.php/AIR:Developer_FAQ#Can_I_create_CD-ROM_ or_kiosk_applications_that_leverage_Adobe_AIR.3F) I’m looking for a few specific settings like locking in full screen, disabling program exit (hotkey) and application switching – but would be curious also as to what else was put in. I imagine I could intercept some of that and force it to behave similarly, but there would be some platform-specific logic in there that would defeat the purpose of using a platform independent vm/framework… Thanks in advance, Beau Scott No virus found in this outgoing message. Checked by AVG. Version: 7.5.518 / Virus Database: 269.21.7/1327 - Release Date: 3/12/2008 1:27 PM
RE: [flexcoders] AS3 Q: unset member?
delete o.foo; Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Wednesday, March 05, 2008 8:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] AS3 Q: unset member? Is it possible to unset a variable? Say I have an object o = { foo : Bar } If I call o.foo = null then o.hasOwnProperty(foo) == true How do I make it return false (ie unset o.foo)? Can it be done without copying the object? Thanks in advance, -Josh -- Therefore, send not to know For whom the bell tolls, It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: HYPERLINK mailto:[EMAIL PROTECTED][EMAIL PROTECTED] No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date: 3/5/2008 9:50 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date: 3/5/2008 9:50 AM image001.jpgimage002.jpg
RE: [flexcoders] file upload
Nothing quite as convenient as a file input, but definitely doable. You’ll want to take a look at the FileReference object: HYPERLINK http://livedocs.adobe.com/flex/3/langref/flash/net/FileReference.htmlhttp: //livedocs.adobe.com/flex/3/langref/flash/net/FileReference.html Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chad Gray Sent: Tuesday, March 04, 2008 7:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] file upload Hello, I am new to Flex and I am wondering if there is a file upload control much like there is in HTML. input type=file Thanks Chad No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.3/1308 - Release Date: 3/3/2008 10:01 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.3/1308 - Release Date: 3/3/2008 10:01 AM image001.jpgimage002.jpg
RE: [flexcoders] A persistent logon system in flex?
Store it in a local SharedObject maybe? I’d make a hash that could be validated by whatever your authentication system is rather than the clear text user/pass though. Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mbhoisie Sent: Tuesday, March 04, 2008 11:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] A persistent logon system in flex? I'm trying to implement a remember me feature in a Flex/BlazeDS application. This is where users enter their credentials in a flex message box, and something identifying their logon session is stored on the flex client, even if they close and re-open the application. I've been looking at storing this information in attributes on FlexSession and FlexClient, but these are temporary, and any attributes get deleted when the application is closed. Has anyone been able to do this, without reverting to an ugly ajax bridge? The server-side is a simple tomcat servlet. Thanks! Mike No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.4/1310 - Release Date: 3/4/2008 8:35 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.4/1310 - Release Date: 3/4/2008 8:35 AM image001.jpgimage002.jpg
RE: [flexcoders] flexbuilder code formatter
Code beautifier. Aptana and JSEclipse both have great code hinting and highlighting. Beau -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Monday, March 03, 2008 3:17 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] flexbuilder code formatter On Friday 29 Feb 2008, Beau Scott wrote: If you find something that works, PLEASE let me know. I've resorted to trying to write an Eclipse AS3 formatter plug-in myself. Are you looking to build a 'code beautifier', or just something that can give basic syntax high lighting and insight ? -- Tom Chiverton Helping to competently industrialize total technologies on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders 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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.3/1308 - Release Date: 3/3/2008 10:01 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.3/1308 - Release Date: 3/3/2008 10:01 AM -- 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 3 API wall posters?
Yes, the released them a few weeks ago: HYPERLINK http://weblogs.macromedia.com/flexteam/archives/2008/02/sneak_peak_at_f.cfm http://weblogs.macromedia.com/flexteam/archives/2008/02/sneak_peak_at_f.cfm Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bruce Hopkins Sent: Monday, March 03, 2008 2:05 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 3 API wall posters? Hi all, I remember last year that Adobe created some very useful wall posters that showed the Flex 2 API. Are you guys planning to do the same for Flex 3? Thanks, Bruce No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.3/1308 - Release Date: 3/3/2008 10:01 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.3/1308 - Release Date: 3/3/2008 10:01 AM image001.jpgimage002.jpg
RE: [flexcoders] Access MySQL directly from Flex client
Providing direct access to your DB via a flex app over the web is extremely insecure, even in “safe intranents” – you’d be surprised what bored employees are capable of. Best approach is to use a thing service layer, possibly something like FlexCRUD(http://flexcrud.riaforge.org/blog/index.cfm/2007/5/5/Updated-to-ver sion-03-in-SVN) , it’s a little out of date and I personally have no experience with it, but have heard of some people using it with success. Honestly, even if you go the route of AMFPHP or a simple SOAP webservice layer (like PEAR’s Services_Webservice package), it’s really easy to create a service for your specific needs. AMFPHP is probably the easiest in the long term as it doesn’t require you to do a lot of XML parsing to access your data. However it is a bit more work up front. Setup is easy, but you have to create VO’s on both sides. Services_Webservice is just a standard SOAP wrapper for PHP. A little more involved to setup as it doesn’t have a default service broker (though it’s not hard to make one) but doesn’t require VO’s, but like I said, you have to parse through the XML in your client – not that it’s hard. Both methods involve creating PHP classes with public methods as your service interfaces. With AMFPHP you simply put these classes in the amfphp/classes directory. Services_Webservice you extend the Webservice class and load it through your broker. Hope this helps, Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shailesh Mangal Sent: Monday, March 03, 2008 4:57 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Access MySQL directly from Flex client I need to quickly put together a dashboard where the data will come from mysql. I would like to eliminate middile layer (if possible). The only mysql connector a href='HYPERLINK http://www.bobjim.com/2007/03/16/mysql-access-in-adobe-flex/http://www.bob jim.com/2007/03/16/mysql-access-in-adobe-flex/' article /a I came across doesnt have any source code. So I am concluding that this is not possible (yet). I am looking for next best options (thinest possible middle layer, possibly Ruby/Groovy/perl/python?) =Security and scalability are not of concern (as its within our safe intranet for a very small set of users). No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.3/1308 - Release Date: 3/3/2008 10:01 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.3/1308 - Release Date: 3/3/2008 10:01 AM image001.jpgimage002.jpg
RE: [flexcoders] Re: Flex Builder 3 vs SDK and Charting
You just have to include the charting SWC in your lib path (either the command line option or your custom flex-config.xml file) and make sure your charting and fb3 license code are in your flex-config.xml file. Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of krieger824 Sent: Monday, March 03, 2008 6:38 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex Builder 3 vs SDK and Charting Hi Matt, since you said that the charting libraries only come with Flex 3 Pro, is there a command-line only version of Flex 3 Pro available? And if not, does this mean it will not be possible to compile any charting projects without installing Flex Builder? I tried to look for an add-on package similar to the way it was done in Flex 2, but didn't seem to be able to find a download link. Thanks, oliver --- In HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Hi, Flex SDK does not include charting functionality on its own. Flex Builder Pro is what provides charting as of Flex 3, and that charting has been improved since Flex 2 with new features such as the Advanced DataGrid, data-oriented graphics API, etc. Matt On 2/27/08 8:59 AM, Troy Gilbert [EMAIL PROTECTED] wrote: It states that the Flex 3 SDK has more charting capabilities than the Flex Builder 3. I came across with the same impression. AFAIK, the Flex SDK and Flex Builder 3 Standard have the same capabilities (since Flex Builder 3 Standard uses the SDK!), and I believe Flex Builder 3 Pro has some additional capabilities, which I assume to be design view related or wizards, in regards to charting. Of course, my expectation until I saw that was that the Flex SDK stand-alone (free) doesn't include any charting, but who knows... I'd chalk it up to bad writing/marketing... Troy. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.3/1308 - Release Date: 3/3/2008 10:01 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.3/1308 - Release Date: 3/3/2008 10:01 AM image001.jpgimage002.jpg
RE: [flexcoders] flexbuilder code formatter
Have you tried Jalopy? Their site (and sales rep that I just emailed) says it doesn’t work with ActionScript. This was one feature of FB3 that I was REALLY hoping would make it. The only thing I’ve found that even remotely works well is PolyStyle, but it’s not a real IDE integration (you have to set it up as an external tool). HYPERLINK http://www.polystyle.com/integrations/eclipse.jsphttp://www.polystyle.com/ integrations/eclipse.jsp Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dsds99 Sent: Friday, February 29, 2008 9:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] flexbuilder code formatter I'm still very new to the eclipse environment found jalopi..but it's not free No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.1/1303 - Release Date: 2/28/2008 12:14 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.1/1303 - Release Date: 2/28/2008 12:14 PM image001.jpgimage002.jpg
RE: [flexcoders] flexbuilder code formatter
Similar, not identical. If you find something that works, PLEASE let me know. I've resorted to trying to write an Eclipse AS3 formatter plug-in myself. Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dsd Sds Sent: Friday, February 29, 2008 9:46 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] flexbuilder code formatter Oh, I assumed it would work with AS3 since it's identical to Java syntax - Original Message From: Beau Scott [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, February 29, 2008 11:21:20 AM Subject: RE: [flexcoders] flexbuilder code formatter Have you tried Jalopy? Their site (and sales rep that I just emailed) says it doesn?t work with ActionScript. This was one feature of FB3 that I was REALLY hoping would make it. The only thing I?ve found that even remotely works well is PolyStyle, but it?s not a real IDE integration (you have to set it up as an external tool). HYPERLINK http://www.polystyle.com/integrations/eclipse.jsp; \nhttp://www.polystyl e.com/integratio ns/eclipse. jsp Beau From: [EMAIL PROTECTED] HYPERLINK http://ups.com; \nups.com [mailto:flexcoders@ yahoogroups.. com] On Behalf Of dsds99 Sent: Friday, February 29, 2008 9:04 AM To: [EMAIL PROTECTED] HYPERLINK http://ups.com; \nups.com Subject: [flexcoders] flexbuilder code formatter I'm still very new to the eclipse environment found jalopi..but it's not free No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.1/1303 - Release Date: 2/28/2008 12:14 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.1/1303 - Release Date: 2/28/2008 12:14 PM _ Never miss a thing. HYPERLINK http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hsMake Yahoo your homepage. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.2/1304 - Release Date: 2/29/2008 8:18 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.2/1304 - Release Date: 2/29/2008 8:18 AM image001.jpgimage002.jpg
RE: [flexcoders] Re: flexbuilder code formatter
Does it play nice with FlexBuilder? Seems like I tried the AIR part of it last summer when it came out but didn’t like the way it messed around with Flex Builders file associations. (I actually use Aptana for all my AJAX development) I’ll give it a shot again, thanks J Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of uriel_tru Sent: Friday, February 29, 2008 11:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: flexbuilder code formatter Hey Beau- ever thought about using Aptana- it has an adobe AIR plugin and that's basically ActionScript 3 and MXML files. You might want to give it a shot? Just my opinion. HYPERLINK http://www.aptana.com/http://www.aptana.com/ -U.T. --- In HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com, Beau Scott [EMAIL PROTECTED] wrote: Similar, not identical. If you find something that works, PLEASE let me know. I've resorted to trying to write an Eclipse AS3 formatter plug-in myself. Beau From: HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com [mailto:HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] On Behalf Of Dsd Sds Sent: Friday, February 29, 2008 9:46 AM To: HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com Subject: Re: [flexcoders] flexbuilder code formatter Oh, I assumed it would work with AS3 since it's identical to Java syntax - Original Message From: Beau Scott [EMAIL PROTECTED] To: HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com Sent: Friday, February 29, 2008 11:21:20 AM Subject: RE: [flexcoders] flexbuilder code formatter Have you tried Jalopy? Their site (and sales rep that I just emailed) says it doesn?t work with ActionScript. This was one feature of FB3 that I was REALLY hoping would make it. The only thing I?ve found that even remotely works well is PolyStyle, but it?s not a real IDE integration (you have to set it up as an external tool). HYPERLINK HYPERLINK http://www.polystyle.com/integrations/eclipse.jsphttp://www.polystyle.com/ integrations/eclipse.jsp \HYPERLINK nhttp://www.polystylnhttp://www.polystyl e.com/integratio ns/eclipse. jsp Beau From: [EMAIL PROTECTED] HYPERLINK HYPERLINK http://ups.comhttp://ups.com; \nups.com [mailto:flexcoders@ yahoogroups.. com] On Behalf Of dsds99 Sent: Friday, February 29, 2008 9:04 AM To: [EMAIL PROTECTED] HYPERLINK HYPERLINK http://ups.comhttp://ups.com; \nups.com Subject: [flexcoders] flexbuilder code formatter I'm still very new to the eclipse environment found jalopi..but it's not free No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.1/1303 - Release Date: 2/28/2008 12:14 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.1/1303 - Release Date: 2/28/2008 12:14 PM _ Never miss a thing. HYPERLINK HYPERLINK http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hshttp://us.rd.yah oo.com/evt=51438/*http:/www.yahoo.com/r/hsMake Yahoo your homepage. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.2/1304 - Release Date: 2/29/2008 8:18 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.2/1304 - Release Date: 2/29/2008 8:18 AM No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.2/1304 - Release Date: 2/29/2008 8:18 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.2/1304 - Release Date: 2/29/2008 8:18 AM image001.jpgimage002.jpg
RE: [flexcoders] Dynamically Load Applications?
Can I do this type of dynamic loading/unloading in Flex Yes. Take a look at modules. I actually made a blog post illustrating this last week. HYPERLINK http://www.beauscott.com/2008/02/20/using-flex-modules-to-load-dynamic-appl ications-at-login/http://www.beauscott.com/2008/02/20/using-flex-modules-to -load-dynamic-applications-at-login/ My next step will be finding some training on Flex/Actionscript whether it be actual classes or books, any recommendations on this? Other than Adobe’s SDK documentation and developer handbooks (HYPERLINK http://opensource.adobe.com/wiki/display/flexsdk/Developer+Documentationht tp://opensource.adobe.com/wiki/display/flexsdk/Developer+Documentation ), the best resource I’ve found for advanced applications are online blogs: HYPERLINK http://blog.everythingflex.comhttp://blog.everythingflex.com HYPERLINK http://onflex.orghttp://onflex.org HYPERLINK http://www.bit-101.com/blog/http://www.bit-101.com/blog/ HYPERLINK http://www.herrodius.com/blog/http://www.herrodius.com/blog/ HYPERLINK http://theflashblog.comhttp://theflashblog.com (many more out there, these are just a few I frequent) There are a few mailing lists (this one, flexcomponents, and OSFlash) There are a few good ActionScript reference books out there: ActionScript Design Patterns (O’Rielly) ActionScript 3 Bible I have yet to see a Flex-specific book that offers sound advice for large-scale applications, like covering the dangers of data binding (argue what you will… Buzzword agrees with me: Binding is evil in large apps), overviews of good frameworks and architectures (Cairngorm vs. PureMVC, etc), and best practices for memory management and application size. I’m not saying there AREN’T any out there, I just haven’t found any yet. As far as classes go, I have no idea :-P Hope this helps J Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David C. Moody Sent: Wednesday, February 27, 2008 9:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Dynamically Load Applications? Hi guys, One more question and I think my company can make our decision of whether or not to use Flex. What we have is one large system that is composed and 100's of small programs. Under the current system we have a menu, and then once they choose a program from the menu it dynamically loads that program and then once they are finished with that program it completely closes it and opens the menu again. Can I do this type of dynamic loading/unloading in Flex? This way the user doesn't have to wait on 20 programs to be opened, when they only need to access one of them? I don't need an explanation of how at this moment, just if it's possible. My next step will be finding some training on Flex/Actionscript whether it be actual classes or books, any recommendations on this? Thanks, -David No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.1/1301 - Release Date: 2/27/2008 8:35 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.1/1301 - Release Date: 2/27/2008 8:35 AM image001.jpgimage002.jpg
RE: [flexcoders] SWF file size
Flex framework Flex 3 allows you to use a localy cached flex framework by specifying the flex framework as a RSL. HYPERLINK http://www.onflex.org/ted/2008/01/flex-3-framework-caching.phphttp://www.o nflex.org/ted/2008/01/flex-3-framework-caching.php To enable this, go to your Flex project’s properties, select “Flex Build Path”, then “Library Path”. Select the Flex 3 library, and change the Framework Linkage option to RSL. An empty application should be around 47k with this option enabled. Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of uriel_tru Sent: Wednesday, February 27, 2008 10:20 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] SWF file size I have an issue with Flex swf file size (as it seems many other people do too) and I stumbled onto something that I'm hoping I can get some help with. I have the following code in my flex application: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=HYPERLINK http://www.adobe.com/2006/mxmlhttp://www.adobe.com/2006/mxml; layout=absolute /mx:Application Can someone tell me why my .swf file is 123KB??? With nothing in it?? U.T. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.1/1301 - Release Date: 2/27/2008 8:35 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.1/1301 - Release Date: 2/27/2008 8:35 AM
RE: [flexcoders] Flex 3 and AIR 1 are now live!
Actually, it seems that the plug-in link is still broken: HYPERLINK http://www.adobe.com/cfusion/tdrc/index.cfm?product=flex_eclipseloc=en_us; http://www.adobe.com/cfusion/tdrc/index.cfm?product=flex_eclipseloc=en_us Flex Product Page - “Try Flex Builder 3” - “More Flex Downloads” - “Download Flex Builder Professional Plug-in” - 404! Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Sunday, February 24, 2008 10:39 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 3 and AIR 1 are now live! Which link specifically? We're jumping the gun a little, the site is still being pushed :-) On 2/25/08 12:35 AM, Beau Scott HYPERLINK mailto:beau.scott%40gmail.com[EMAIL PROTECTED] wrote: Download link is broken :( for flex builder 3 Beau From: HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com [mailto:HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Sunday, February 24, 2008 10:25 PM To: HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com Subject: [flexcoders] Flex 3 and AIR 1 are now live! HYPERLINK http://www.adobe.com/products/flexhttp://www.adobe.com/products/flex HYPERLINK http://www.adobe.com/products/airhttp://www.adobe.com/products/air And best of all: HYPERLINK http://opensource.adobe.com/flexsdkhttp://opensource.adobe.com/flexsdk! Matt No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.0/1296 - Release Date: 2/24/2008 12:19 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.0/1296 - Release Date: 2/24/2008 12:19 PM No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.0/1296 - Release Date: 2/24/2008 12:19 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.0/1296 - Release Date: 2/24/2008 12:19 PM image001.jpgimage002.jpg
RE: [flexcoders] No Serial Numbers for Flex Builder 3?
Good thing there’s a 60-day trial J From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Whitelock Sent: Monday, February 25, 2008 7:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] No Serial Numbers for Flex Builder 3? I purchased the upgrade to Flex Builder 3 Professional and after the order went through instead of a serial number all that I got was a message that said Contact Customer Service. I just got off of a 15 minute phone call with Customer Service and was told that it will take 24 to 48 hours before serial numbers are available. Supposedly I will receive an email with the serial number, but after many bad experiences with Adobe Customer Service, let's just say I'll believe it when I see it ;-) Anyway, just wanted to get the word out in case you buy Flex Builder 3 and expect to receive a serial number for the product at the time you make the purchase. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.0/1296 - Release Date: 2/24/2008 12:19 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.0/1296 - Release Date: 2/24/2008 12:19 PM image001.jpgimage002.jpg
RE: [flexcoders] Flex 3 and AIR 1 are now live!
Yeah, it’s working now J HYPERLINK http://www.adobe.com/cfusion/tdrc/index.cfm?product=flex_eclipseloc=en_us; http://www.adobe.com/cfusion/tdrc/index.cfm?product=flex_eclipseloc=en_us Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of VELO Sent: Monday, February 25, 2008 11:10 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 3 and AIR 1 are now live! Any news about the broken link? VELO On Mon, Feb 25, 2008 at 1:56 PM, Marvin Froeder HYPERLINK mailto:m%40rvin.info[EMAIL PROTECTED] wrote: So, any preview for plugin version? VELO 2008/2/25 Beau Scott HYPERLINK mailto:beau.scott%40gmail.com[EMAIL PROTECTED]: Actually, it seems that the plug-in link is still broken: HYPERLINK http://www.adobe.com/cfusion/tdrc/index.cfm?product=flex_eclipseloc=en_us; http://www.adobe.com/cfusion/tdrc/index.cfm?product=flex_eclipseloc=en_us Flex Product Page - Try Flex Builder 3 - More Flex Downloads - Download Flex Builder Professional Plug-in - 404! Beau No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.1/1297 - Release Date: 2/25/2008 9:22 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.1/1297 - Release Date: 2/25/2008 9:22 AM image001.jpgimage002.jpg
RE: [flexcoders] Flex 3 and AIR 1 are now live!
Download link is broken L for flex builder 3 Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Sunday, February 24, 2008 10:25 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 3 and AIR 1 are now live! HYPERLINK http://www.adobe.com/products/flexhttp://www.adobe.com/products/flex HYPERLINK http://www.adobe.com/products/airhttp://www.adobe.com/products/air And best of all: HYPERLINK http://opensource.adobe.com/flexsdkhttp://opensource.adobe.com/flexsdk! Matt No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.0/1296 - Release Date: 2/24/2008 12:19 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.0/1296 - Release Date: 2/24/2008 12:19 PM image001.jpgimage002.jpg
RE: [flexcoders] Flex 3 and AIR 1 are now live!
Nevermind, it’s working now ! Thanks and congrats! Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Sunday, February 24, 2008 10:25 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 3 and AIR 1 are now live! HYPERLINK http://www.adobe.com/products/flexhttp://www.adobe.com/products/flex HYPERLINK http://www.adobe.com/products/airhttp://www.adobe.com/products/air And best of all: HYPERLINK http://opensource.adobe.com/flexsdkhttp://opensource.adobe.com/flexsdk! Matt No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.0/1296 - Release Date: 2/24/2008 12:19 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.0/1296 - Release Date: 2/24/2008 12:19 PM image001.jpgimage002.jpg
RE: [flexcoders] Flex 3 and AIR 1 are now live!
The “Try it now” link from the main Flex Builder product page was giving a 404 for about 10 minutes after the product page was updated (I’ve been hitting F5 since for the last half hour waiting for it… J ) It’s working now however so no biggie. Thanks again. Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Sunday, February 24, 2008 10:39 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 3 and AIR 1 are now live! Which link specifically? We're jumping the gun a little, the site is still being pushed :-) On 2/25/08 12:35 AM, Beau Scott HYPERLINK mailto:beau.scott%40gmail.com[EMAIL PROTECTED] wrote: Download link is broken :( for flex builder 3 Beau From: HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com [mailto:HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Sunday, February 24, 2008 10:25 PM To: HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com Subject: [flexcoders] Flex 3 and AIR 1 are now live! HYPERLINK http://www.adobe.com/products/flexhttp://www.adobe.com/products/flex HYPERLINK http://www.adobe.com/products/airhttp://www.adobe.com/products/air And best of all: HYPERLINK http://opensource.adobe.com/flexsdkhttp://opensource.adobe.com/flexsdk! Matt No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.0/1296 - Release Date: 2/24/2008 12:19 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.0/1296 - Release Date: 2/24/2008 12:19 PM No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.0/1296 - Release Date: 2/24/2008 12:19 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.0/1296 - Release Date: 2/24/2008 12:19 PM image001.jpgimage002.jpg
RE: [flexcoders] HTTP service, XML with namespaces
Try this: public namespace itunesNS = http://www.itunes.com/;; use namespace itunesNS; Obviously you’d need to change what the itunes namespace value really is. Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bobby_world Sent: Friday, February 22, 2008 9:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] HTTP service, XML with namespaces Can someone post an example of how to get XML from an HTTP service that uses Namespace? I am trying to parse a RSS feed from a podcast with a namespace of itunes: Thanks Bobby No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.9/1291 - Release Date: 2/21/2008 11:05 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.9/1293 - Release Date: 2/22/2008 9:21 AM image003.jpgimage004.jpg
RE: [flexcoders] How to turn off exception messages in release version.
I’ve always wondered and have been too lazy to try, but if you don’t have the debug version of the flash play installed, do you still get the exception messages? Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Andrews Sent: Friday, February 22, 2008 10:43 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to turn off exception messages in release version. - Original Message - From: lytvynyuk HYPERLINK mailto:lytvynyuk%40yahoo.com[EMAIL PROTECTED] To: HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com Sent: Friday, February 22, 2008 5:40 PM Subject: [flexcoders] How to turn off exception messages in release version. How to turn off exception messages ( e.g. ActionScript errors ) in release version? Fix the errors? No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.9/1293 - Release Date: 2/22/2008 9:21 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.9/1293 - Release Date: 2/22/2008 9:21 AM image001.jpgimage002.jpg
RE: [flexcoders] Where did the value go?
maybe try event.currentTarget. True, your target could have changed, and using currentTarget will ensure that you are referencing the DataGrid. and how are you calling selectSlide if it is private or is that a mistake? If it’s all in the same MXML, it’s accessible as private. Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sherif Abdou Sent: Friday, February 22, 2008 3:57 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Where did the value go? maybe try event.currentTarget. and how are you calling selectSlide if it is private or is that a mistake? - Original Message From: justSteve [EMAIL PROTECTED] To: flexcoders flexcoders@yahoogroups.com Sent: Friday, February 22, 2008 4:05:30 PM Subject: [flexcoders] Where did the value go? I have a datagrid that should send it's selectItem value to a detail form. mx:DataGrid selectedItem= {selectedSlide} change=selectSlide (event.target. selectedItem as Slide) dataProvider= {slides} Placing a breakpoint on the change property and observing the event.target. selectedItem value shows the event is carrying the expected info. But when execution reaches the handler: public var selectedSlide: Slide; private function selectSlide( pSlide:Slide) :void { selectedSlide = pSlide ; // pSlide is now null. dispatchEvent( new Event(SELECT, true)); } the param is null. How do I go about figuring out where my error is? I reason that if there's something wrong with how I've typed 'Slide' I'd get a compile-time error. many thankx --steve... _ Looking for last minute shopping deals? HYPERLINK http://us.rd.yahoo.com/evt=51734/*http:/tools.search.yahoo.com/newsearch/ca tegory.php?category=shoppingFind them fast with Yahoo! Search. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.9/1293 - Release Date: 2/22/2008 9:21 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.9/1293 - Release Date: 2/22/2008 9:21 AM image001.jpgimage002.jpg
RE: [flexcoders] Where did the value go?
Your type cast might be failing, causing pSlide to be null. Try typing pSlide to Object and remove the type cast in the change event handler, this will at least give you an idea of what’s happening. Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of justSteve Sent: Friday, February 22, 2008 3:05 PM To: flexcoders Subject: [flexcoders] Where did the value go? I have a datagrid that should send it's selectItem value to a detail form. mx:DataGrid selectedItem={selectedSlide} change=selectSlide(event.target.selectedItem as Slide) dataProvider={slides} Placing a breakpoint on the change property and observing the event.target.selectedItem value shows the event is carrying the expected info. But when execution reaches the handler: public var selectedSlide:Slide; private function selectSlide(pSlide:Slide):void { selectedSlide = pSlide ; // pSlide is now null. dispatchEvent(new Event(SELECT, true)); } the param is null. How do I go about figuring out where my error is? I reason that if there's something wrong with how I've typed 'Slide' I'd get a compile-time error. many thankx --steve... No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.9/1293 - Release Date: 2/22/2008 9:21 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.9/1293 - Release Date: 2/22/2008 9:21 AM image001.jpgimage002.jpg
RE: [flexcoders] How do I navigate to an mxml file from a login file?
Howdy J You’re correct: states to manage this is probably a poor choice, as would using a ViewStack. The compiled file would be really large and very unmanageable. I actually started a blog post on this a while ago, but lost motivation to finish it until tonight. I cover the ups and downs of using ViewStacks/states, SWFLoaders and Modules, and provides a working example of how to use Modules. HYPERLINK http://www.beauscott.com/2008/02/20/using-flex-modules-to-load-dynamic-appl ications-at-login/http://www.beauscott.com/2008/02/20/using-flex-modules-to -load-dynamic-applications-at-login/ It’s rough, and might be buggy, but it’s at least illustrates the approach. Beau Scott _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sirickhoop Sent: Mittwoch, 20. Februar 2008 21:08 To: flexcoders@yahoogroups.com Subject: [flexcoders] How do I navigate to an mxml file from a login file? I've created a login that will send users in 1 of 3 direction (i.e. administrator, teacher, or student). I want each type of user to link to a separate mxml file because, if I use States, my file will become quite large and I don't want to have to navigate through long files when I'm coding. My question: How do I link to an another mxml file from the main.mxml file? Thanks! No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.8/1289 - Release Date: 2/20/2008 10:26 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.8/1289 - Release Date: 2/20/2008 10:26 AM image003.jpgimage004.jpg
RE: [flexcoders] closeButton.explicitHeight
Heh, good catch. Beta is as Beta does ;) Is it causing you errors or is it something you just noticed? Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Decoursey Sent: Thursday, February 21, 2008 11:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] closeButton.explicitHeight Adobe, Why have you done this in the Panel closeButton.explicitWidth = closeButton.explicitHeight = 16; Paul No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.9/1291 - Release Date: 2/21/2008 11:05 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.9/1291 - Release Date: 2/21/2008 11:05 AM image001.jpgimage002.jpg
RE: [flexcoders] CDATA XML element inside mxml
]] is the closing tag to the mx:Script’s escaped innards. mx:Script![[CDATA […] ]] /mx:Script The xml parser ignores all markup between the opening and first closing cdata tags, so even though it’s quoted it’s still recognized as a cdata closing tag. To get around it, try this: var tmpStr:XML = new XML(![CDATA[asdf]]+); Note that I’ve separated “]]” into “]]”+”” Beau Scott From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of hoytlee2000 Sent: Thursday, February 21, 2008 2:44 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] CDATA XML element inside mxml Hello, I'm getting mixed up on how the syntax to create a CDATA element inside the script block in the mxml file. I do this and I get a parse error: var tmpStr:XML = new XML(![CDATA[ + notes.text + ]]); xmlFile.notes.tag = tmpStr; results.text = xmlFile.toXMLString(); I tried to use a back slash to escape the and but that resulted in some inconsistent behavior with the second line when I read back the xml file as on the mac it reproduced the CDATA block and on the windows and linux side it removed the CDATA tags. Any help would be appreciated. Thanks, Hoyt No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.9/1291 - Release Date: 2/21/2008 11:05 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.9/1291 - Release Date: 2/21/2008 11:05 AM image001.jpgimage002.jpg
RE: [flexcoders] Error- textDecoration
Do you have a style declaration in your class called “textDecoration” at the top? [Style(name=”textDecoration” … If so, the error is saying that this style declaration has already been made in the parenting class UITextField Beau _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mixmi2004 Sent: Thursday, February 21, 2008 3:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Error- textDecoration Severity and DescriptionPath Resource Location Creation Time Id Declaration of style 'textDecoration' conflicts with previous declaration in C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\frameworks\libs\framework.swc(mx/core/UITextField). Thanks a lot for any help No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.9/1291 - Release Date: 2/21/2008 11:05 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.9/1291 - Release Date: 2/21/2008 11:05 AM image001.jpgimage002.jpg