[flexcoders] Re: Securely Interfacing Between Flex and Databases
I ask because security is not only a concern for my personal project, but also my employment responsibilities for my summer internship, so I want to hear how others deal with this issue. If you can help, I'd really appreciate the information. --- In flexcoders@yahoogroups.com, kenny14390 [EMAIL PROTECTED] wrote: I've been using the following method for accessing databases in Flex: -HTTPService component connects to a PHP page on the same server and sends any appropriate data values via the POST or GET method. -PHP page sets up a MySQL connection and performs the necessary operations. -PHP writes any appropriate output values to the page in XML format. -HTTPService component follows up with the result by calling an appropriate ActionScript function, passing in the ResultEvent for easy XML parsing. This method works for me, but is there an easier way? More importantly, is there a SECURER way? I fear that having these PHP files is not only redundant but it also poses a security risk for SQL injections or a sniffing man-in-the-middle attack. The data I'm sending back and forth is not all that important compared to banking information or something, but I'm still worried about security and it would be good to know the proper way to do a task like this. Is this the only way to connect to a database? Is there a more secure way? Thanks!
Re: [flexcoders] Why would mx.controls.NavBar.dataProvider not accept an array of DisplayObject? (3.0.0)
On 5/18/08, Fiouz [EMAIL PROTECTED] wrote: On Sat, May 17, 2008 at 6:24 PM, Manish Jethani [EMAIL PROTECTED] wrote: What is the reason behind throwing an error when an array of DisplayObject is given? Why would I have to wrap my DisplayObject instances in order to prevent this error? [snip] By design, the data provider should be just that -- a data provider. Throwing an error for objects of type DisplayObject is more of a saving developers from shooting themselves in the foot type of thing, which personally I'm no big fan of, but that's just the way it is now. It's unfortunate that it is prevented though, as my goal was to selectively display ViewStack children buttons (instead of a mere ViewStack binding that displays buttons for each child), i.e.: ButtonBar id=buttons/ ViewStack id=vs custom:Chart id=chart icons=/ custom:Grid id=grid icons=.../ custom:Form id=form/ !-- The buttonbar must NOT be able to select this child -- /ViewStack I wanted my button bar not to show the form button. Wrapping the view stack children into an array of plain objects is the only way to do that, from what I know. Perhaps this would be cool: ButtonBar id=buttons/ ViewStack id=vs custom:Chart id=chart icons=/ custom:Grid id=grid icons=.../ custom:Form id=form includeInNavigation=false / /ViewStack i.e. a property that can mark a view to not be included in any navigator controls. But I think another way to achieve that is to simply not add the view to the view stack. You can use states to declaratively add the form view only later when the application switches to that state.
[flexcoders] Re: Securely Interfacing Between Flex and Databases
Simply having SSL (https) enabled on your php webserver will help. Another methodology for accessing DB data is using AMFPHP (although I haven't used it myself). -Andrew
Re: [flexcoders] bug in setMonth() method?
parseDate.setMonth(++parseDate.month); Then that statement above gives different results to: ++parseDate.month parseDate.setMonth(parseDate.month); which gives: Sat Nov 1 00:00:00 GMT+ 2008 Sun Feb 1 00:00:00 GMT+ 2009 Mon Dec 1 00:00:00 GMT+ 2008 Sun Feb 1 00:00:00 GMT+ 2009 Thu Jan 1 00:00:00 GMT+ 2009 Sun (i.e. it behaves as you would expect) Shouldn't the two versions be executed the same way? - i.e. month is incremented from 11 to 0 by the ++month (causing the year rollover) and then this 0 is passed into setMonth which should just set it to 0 again and cause no rollover. The call to setMonth is superfluous (though personally I'd go with setDate(parseDate.month + 1)) but shouldn't actually be doing anything as in both above cases it's just being passed 0 and so should either cause a year rollover in both cases (which would be buggy but consistent) or in neither case, that it's different is a bit worrying. Stephen
[flexcoders] How to convert Powerpoint presentation tp Flex or Flash?
I have a ppt file and want to play it with Flex. Please give me a idea how to do this. Thanks Mark
Re: [flexcoders] How to convert Powerpoint presentation tp Flex or Flash?
Try Adobe Captivate by recording whole ppt and you can save it .swf as you like it. Hope this helps you. On Sun, May 18, 2008 at 7:00 PM, markflex2007 [EMAIL PROTECTED] wrote: I have a ppt file and want to play it with Flex. Please give me a idea how to do this. Thanks Mark -- Cheers, Krishna Read my blogs http://flashactions.wordpress.com http://stockthoughts.wordpress.com Gtalk:krshnaraj YahooIM:krishna.rajs Live Messenger: krishna.rajs Skype: krishna.rajs Linkedin: http://www.linkedin.com/in/krishnarajs Mobile: 0091.998.5013.316 Work Place: 0091.40.645.794.65 (9 AM to 5 PM IST)
[flexcoders] Re: DateChooser setting displayedMonth, displayedYear does nothing
Hi Alex, thanks for the reply. I made a simple test case, and could figure out why it is not working as expected- Can you shortly have look at this code: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=build() mx:Script ![CDATA[ [Bindable] private var _rangeStart:Date; [Bindable] private var _rangeStart_two:Date = new Date(2006,0,1); [Bindable] private var _rangeEnd:Date; [Bindable] private var _rangeEnd_two:Date = new Date(2007,0,1); private function build():void { _rangeStart = new Date(2006,0,1); _rangeEnd = new Date(2007,0,1); } ]] /mx:Script mx:Label text=Dates set in creation complete handler: doesn't work for me / mx:DateChooser selectableRange={{rangeStart : _rangeStart, rangeEnd :_rangeEnd}} displayedMonth=10 displayedYear=2006 / mx:Label text=Dates set initially: works for me / mx:DateChooser selectableRange={{rangeStart : _rangeStart_two, rangeEnd :_rangeEnd_two}} displayedMonth=10 displayedYear=2006 / /mx:Application Is that explainable ? Thank's _rico --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: I'd make a simple test case and see if it works there. Are you sure your compDateRange has two elements with valid values? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rleuthold Sent: Saturday, May 17, 2008 6:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DateChooser setting displayedMonth, displayedYear does nothing Hi, I have a DateChooser in a popUp window. If I set the displayedMonth and displayedYear properties on that DateChooser (after creating the popup), nothing happens. The display is still on the month and year previously selected/displayed. Does anybody have an idea ? code (parent comp): _datePickerWin = DateRangerPopUp(PopUpManager.createPopUp(Application.application as DisplayObject, DateRangerPopUp, true)); _datePickerWin.compDateRange = _dateRange; code (DateRangerPopup): public function set compDateRange(dateRange:Array):void { _compDateRange = dateRange; dateChooser.selectedRanges = [ {rangeStart: _compDateRange[0], rangeEnd: _compDateRange[1] }]; dateChooser.displayedMonth = _compDateRange[1].month; dateChooser.displayedYear = _compDateRange[1].fullYear; Thank's rico
[flexcoders] Re: bug in setMonth() method?
--- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: On Fri, May 16, 2008 at 11:10:21PM -0700, Alex Harui wrote: I would not guarantee results if you set values that are out of range. Flex seems targeted to the business world and we need all the date- management help we can get. Every aspect of parsing, validation, and math that you can think of will save us time and agony. I was a bit surprised at the lack of anything analagous to DateDiff and DateAdd in AS3. -Amy
[flexcoders] Re: bug in setMonth() method?
--- In flexcoders@yahoogroups.com, Stephen Allison [EMAIL PROTECTED] wrote: parseDate.setMonth(++parseDate.month); Then that statement above gives different results to: ++parseDate.month parseDate.setMonth(parseDate.month); which gives: Sat Nov 1 00:00:00 GMT+ 2008 Sun Feb 1 00:00:00 GMT+ 2009 Mon Dec 1 00:00:00 GMT+ 2008 Sun Feb 1 00:00:00 GMT+ 2009 Thu Jan 1 00:00:00 GMT+ 2009 Sun (i.e. it behaves as you would expect) Shouldn't the two versions be executed the same way? - i.e. month is incremented from 11 to 0 by the ++month (causing the year rollover) and then this 0 is passed into setMonth which should just set it to 0 again and cause no rollover. The call to setMonth is superfluous (though personally I'd go with setDate(parseDate.month + 1)) but shouldn't actually be doing anything as in both above cases it's just being passed 0 and so should either cause a year rollover in both cases (which would be buggy but consistent) or in neither case, that it's different is a bit worrying. See, I didn't realize you could just increment the month that way :- ). I thought that the setMonth() method was there in lieu of having a setter on month. -Amy
[flexcoders] Re: invalid column widths in DG before render.
Erik: I tried to set creationPolicy=all on a DataGrid but creationPolicy is not a valid attribute for DataGrid. I have creationPolicy=all set on the parent container, but it does not help on the DataGrid. I am using Flex 2.01, if that matters. Paul --- In flexcoders@yahoogroups.com, EECOLOR [EMAIL PROTECTED] wrote: In Flex, if a UI component has not been displayed, it has not yet measured it's size. This is what happens with the DataGrid as well. You could set the creationPolicy to all and wait for the creationComplete event before you retrieve the column widths and height. Greetz Erik On 5/16/08, aceoohay [EMAIL PROTECTED] wrote: I have written a bit of code that generates the xml needed to display an Excel Workbook with multiple worksheets. I have created a tabbed panel with 5 different grids one per panel. One of the features of the spreadsheet class is to grab the width of each column and create the same size column in Excel, this works well, except if the grid has not been displayed. In other words every tab that you display, the coresponding grid widths convert to Excel fine, the ones that you have not clicked get the data properly, but the sizes are very small, but not all the same size. To get the size of the column I use; Math.ceil(dg.columns[i].width) Any clues as to what might be going on, or better yet how to solve it? Paul
[flexcoders] AS addChild and tween/transition
Hey all -- trying to create a simple slideshow component in AS and I'm wondering how to best trigger a transition after an image load? Im taking an image URL from an XML list and creating a new image in AS, then adding it as child to the main canvas. Should I set it invisible, do an addListener for the complete function and do the trans there? Any pointers to transitions in flex in AS3 would be appreciated. Thanks.
[flexcoders] Glow effect duration -- time of a mouse over
Can anyone tell me how I can determine how long a person rests his/her mouse over a component? I would like to apply a Glow effect to a component while the user has his/her mouse on top of it. So I need this time interval for the Glow effect's duration attribute. Thanks
[flexcoders] Tree - Drag Drop - prevent drop into folder
I'm trying to prevent the 'drop' of a 'dragged' folder into an open folder but having no luck . I've looked @ the 'Spring Loaded Folders' http://www.flexibleexperiments.com/Flex/SpringLoadedFolders2/Sample.html which is almost there , but it still allows the drop if you position the source at the end of the 'drop folder' . Is there a way to get the 'parent' folder of the drop target ?
Re: [flexcoders] How to convert Powerpoint presentation tp Flex or Flash?
or else try this one http://www.sameshow.com/ppt2flash/convert-powerpoint-to-flash-manually.html On Sun, May 18, 2008 at 7:51 PM, krishna Raj [EMAIL PROTECTED] wrote: Try Adobe Captivate by recording whole ppt and you can save it .swf as you like it. Hope this helps you. On Sun, May 18, 2008 at 7:00 PM, markflex2007 [EMAIL PROTECTED] wrote: I have a ppt file and want to play it with Flex. Please give me a idea how to do this. Thanks Mark Messages in this topic http://groups.yahoo.com/group/flexcoders/message/113307;_ylc=X3oDMTM5YzFuOG1iBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRtc2dJZAMxMTMzMDcEc2VjA2Z0cgRzbGsDdnRwYwRzdGltZQMxMjExMTE3NDE2BHRwY0lkAzExMzMwNw--( 1) Reply (via web post) http://groups.yahoo.com/group/flexcoders/post;_ylc=X3oDMTJzZG1hMGcwBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRtc2dJZAMxMTMzMDcEc2VjA2Z0cgRzbGsDcnBseQRzdGltZQMxMjExMTE3NDE2?act=replymessageNum=113307| Start a new topic http://groups.yahoo.com/group/flexcoders/post;_ylc=X3oDMTJmbTNnOHVyBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNudHBjBHN0aW1lAzEyMTExMTc0MTY- Messageshttp://groups.yahoo.com/group/flexcoders/messages;_ylc=X3oDMTJmMzFhNjhsBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNtc2dzBHN0aW1lAzEyMTExMTc0MTY- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com [image: Yahoo! Groups]http://groups.yahoo.com/;_ylc=X3oDMTJlZnJ0M2NxBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNnZnAEc3RpbWUDMTIxMTExNzQxNg-- Change settings via the Webhttp://groups.yahoo.com/group/flexcoders/join;_ylc=X3oDMTJnZHB1dGt2BF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNzdG5ncwRzdGltZQMxMjExMTE3NDE2(Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest[EMAIL PROTECTED]:+Digest| Switch format to Traditional[EMAIL PROTECTED]:+Traditional Visit Your Group http://groups.yahoo.com/group/flexcoders;_ylc=X3oDMTJlbTRhNHNlBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNocGYEc3RpbWUDMTIxMTExNzQxNg--| Yahoo! Groups Terms of Use http://docs.yahoo.com/info/terms/ | Unsubscribe [EMAIL PROTECTED] Recent Activity - 73 New Membershttp://groups.yahoo.com/group/flexcoders/members;_ylc=X3oDMTJndnNtdjg3BF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDdnRsBHNsawN2bWJycwRzdGltZQMxMjExMTE3NDE2 Visit Your Group http://groups.yahoo.com/group/flexcoders;_ylc=X3oDMTJmdGxkbGlzBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDdnRsBHNsawN2Z2hwBHN0aW1lAzEyMTExMTc0MTY- Yahoo! Finance It's Now Personalhttp://us.ard.yahoo.com/SIG=13otcv8hj/M=493064.12016257.12445664.8674578/D=groups/S=1705007207:NC/Y=YAHOO/EXP=1211124616/L=/B=hUvBBNFJq2k-/J=127416909547/A=4507179/R=0/SIG=12de4rskk/*http://us.rd.yahoo.com/evt=50284/*http://finance.yahoo.com/personal-finance Guides, news, advice more. Find Balance on Yahoo! Groupshttp://us.ard.yahoo.com/SIG=13o63hkfr/M=493064.12016238.12823558.8674578/D=groups/S=1705007207:NC/Y=YAHOO/EXP=1211124616/L=/B=hkvBBNFJq2k-/J=127416909547/A=5286668/R=0/SIG=11in3uvr5/*http://new.groups.yahoo.com/planforabalancedlife manage nutrition, activity well-being. Give Things. Get Things.http://us.ard.yahoo.com/SIG=13odb8mih/M=493064.12016272.12948931.8674578/D=groups/S=1705007207:NC/Y=YAHOO/EXP=1211124616/L=/B=h0vBBNFJq2k-/J=127416909547/A=5327831/R=0/SIG=1129o14gc/*http://green.yahoo.com/earth-day It's free and it's good for the planet. . __
[flexcoders] Event Not Dispatched From TileWindow
Dear All I am trying to dispatch an event from tile window and i am capturing this event on parent container but event is not dispatching for some reason .Here is my code can u point out what is wrong here thanks in advance.. Parkash Arjan // This is my Event Class Code public class CloseMyTileWindowEvent extends Event { public static var CLICK:String = MY_TILE_WINDOW_CLICK_EVENT; public var str:Object; public function CloseMyTileWindowEvent( str:Object ) { super (CLICK, true, true); this.str = str; } } //This Is my Application Container ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete={init()} mx:Script ![CDATA[ import mx.managers.PopUpManager; public function init():void { addEventListener( CloseMyTileWindowEvent.CLICK, closeTileWindowEventHandler ); } public function closeTileWindowEventHandler():void { trace( TileWindowEventHandlede ); } public function showMtTileWindow():void { PopUpManager.createPopUp( this , MyTileWindow , true ); } ]] /mx:Script mx:Button label=Click-Me click={ showMtTileWindow() }/ /mx:Application //And This is my tile window which is dispatching event ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=400 height=300 mx:Script ![CDATA[ import mx.managers.PopUpManager; public function tileWindowButtonHandler():void { var evt:CloseMyTileWindowEvent = new CloseMyTileWindowEvent( null ) dispatchEvent( evt ); PopUpManager.removePopUp( this ); } ]] /mx:Script mx:Button click={ tileWindowButtonHandler() }/ /mx:TitleWindow
[flexcoders] Re: LinkBar Question, How to get LinkBar item details programmatically?
I'm not sure what link are you trying to open in a browser window. Where do you have the link (URL) you want to open stored? Claudiu --- In flexcoders@yahoogroups.com, vkc_nair [EMAIL PROTECTED] wrote: Hi All, How to get the data behind a LinkBar item (e.g URL) on right mouse click? I have a LinkBar with 4 different items and a ContextMenu attached to the LinkBar. When user right click on each link the contextmenu give the option to open the link in a Tab or an external Browser window. I want to pass the URL behind each link item programmatically to my contextmenu. Thanks VN
Re: [flexcoders] Re: How do I dispatch an everything PropertyChangeEvent on this?
I've done it that way before, although sometimes its better to create an updateAll() method, because now all of your bindings will fire when a single property changes since your entire class is Bindable on the same event. Just depends on exactly what the use case is, if your class is set up with the default Binding events you could use describeType in your updateAll method to dispatch a PropertyChangeEvent for each property in your class. On Fri, May 16, 2008 at 1:36 AM, Josh McDonald [EMAIL PROTECTED] wrote: Once again, two seconds after I post, the answer pops into my head... And as usual, the (simple) solution for anybody trawling the list in future: [Bindable(event=populated)] public class FooBar extends EventDispatcher { ... //Pay attention to me! dispatchEvent(new Event(populated)); -J On Fri, May 16, 2008 at 4:30 PM, Josh McDonald [EMAIL PROTECTED] wrote: Hi guys, Disclaimer: this is probably a stupid question, but I've been trying to figure this out for way too long! I've got some code that does all sorts of things to this.foo, this.bar, and this.baz etc etc. At the moment I'm dispatching several standard PropertyChangeEvents as I change fields. What I'd like to do is once I've finished all my voodoo, dispatch a single event that says everything needs to be updated, but I need to do it to this rather than on a reference in a parent object, as it's a non-visual component that has no idea where it sits in the object graph. I *know* there's a simple solution to this... -J -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] Re: invalid column widths in DG before render.
I am sorry, I don't know what I was thinking. DataGrid does indeed not have a creation policy. I am not sure which event will help you here. When I have some more time, I will see if I can find out. There is some time between setting the dataprovider and the columns having the correct width. You could try the change event, but I am not sure if that is of any help. Greetz Erik On 5/18/08, aceoohay [EMAIL PROTECTED] wrote: Erik: I tried to set creationPolicy=all on a DataGrid but creationPolicy is not a valid attribute for DataGrid. I have creationPolicy=all set on the parent container, but it does not help on the DataGrid. I am using Flex 2.01, if that matters. Paul
[flexcoders] Error
Can someone please help me with this error: ArgumentError: Error #2004: One of the parameters is invalid. at flash.display::Graphics/drawRect() at mx.controls::DataGrid/drawRowBackground() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DataGrid.a s:2967] at mx.controls::DataGrid/drawRowGraphics() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DataGrid.a s:2283] at mx.controls::DataGrid/drawRowBackgrounds() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DataGrid.a s:2242] at mx.controls::DataGrid/updateDisplayList() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DataGrid.a s:1503] at mx.controls.listClasses::ListBase/validateDisplayList() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\listClasse s\ListBase.as:3281] at mx.managers::LayoutManager/validateDisplayList() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutMana ger.as:602] at mx.managers::LayoutManager/doPhasedInstantiation() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutMana ger.as:675] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as :8460] at mx.core::UIComponent/callLaterDispatcher() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as :8403]
[flexcoders] How to set the e.currentTarget.selectedItem data to my own VO object?
Hi there, I was trying to figure out how to set my selected data to my VO object. so I could get the data anywehere in my application ( using cairngorm framework ). in the exaple code below, I would like to click the TileList and set the data in my TileListVO. it drove me mad :( I got an error msg of TypeError: Error #1034: Type Coercion failed: cannot convert mx.utils::[EMAIL PROTECTED] to TileListVO http://www.privatepaste.com/daxull81OV Thank you so much.
Re: [flexcoders] Trying to apply scale9grid to an image loaded at runtime
Scale-9 only works if parts of the image are fully within each of the 9 slices of the scale-9 grid. Which means that you'll have to separate your image into 9 different segments before applying the scale-9 grid, providing the grid 'lines and the 9 sections of the image match up precisely. You can do this the painful way by slicing up your image into 9 parts and importing each separately, or using BitmapData to do the same, which is more code involved. As for scale-9 for vectors, you might be interested in an article I wrote about using scale-9 for Flex skins: http://www.communitymx.com/abstract.cfm?cid=6C7D2 Hope that helps, ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 Tom Bray wrote: I need to be able to load an image, allow the user to specify the scale9grid values, and then scale the image. I've tried a bunch of different things but either the scale9grid values aren't used or I get an invalid parameter exception. Is it possible to do this? Thanks, Tom -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Cannot install featurecom.adobe.flexbuilder.feature.standalone 3.0.194161
just as a followup, installing the plug-in into Eclipse worked without a hitch. so there must be something in the stand-alone version that's throwing a wobbly. just to reiterate, FB3 stand-alone has been the only software that's failed to install using this profile. In other words, only blaming the level of admin privlages needed is not the full picture. I wonder what it's in the stand-alone installer to cause it to fail?
[flexcoders] run flex builder using Java 6 on mac?
Not sure if this is possible or not, but since apple released the Java 6 update recently, is there a way to have FlexBuilder use that instead?
[flexcoders] Re: Cannot install featurecom.adobe.flexbuilder.feature.standalone 3.0.194161
I might have found it: FB3 installer is having a fight with the network trying to get outside/phone home - and losing. I just tried the additional plug-in's software update (cfeclipse): Network connection problems encountered during search. Unable to access site: http://www.cfeclipse.org/update; [Server returned HTTP response code: 403 Forbidden for URL: http://www.cfeclipse.org/update.] it's a common problem with CS3 updates, Acrobat Reader and (I suspect) AIR runtime updates. At least (from what I've heard) the AIR runtime auto updates can be turned off...
Re: [flexcoders] Re: a simple question of BitmapData
I believe this should work. private var bitmapDataCopy:BitmapData; private var sourceBitmap:BitmapData; private function init():void { var imgLoad:Loader=new Loader(); imgLoad.contentLoaderInfo.addEventListener(Event.COMPLETE,init2); imgLoad.load(new URLRequest(assets/imagename.png)); } private function init2(e:Event):void { sourceBitmap = e.target.content.bitmapData as BitmapData; bitmapDataCopy = sourceImage.clone(); } On Sat, May 17, 2008 at 8:41 PM, Alex Harui [EMAIL PROTECTED] wrote: SWFLoader doesn't get going until you addChild it. If you use flash.display.Loader, you might be able to load w/o addChild -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *flexawesome *Sent:* Saturday, May 17, 2008 3:16 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: a simple question of BitmapData Hi there, I have updated the code ( enabled line5 ) and get the duplicate copy of gif file. Is there a way to prevent to use addChild but still can get the copy of the image? Cheers http://www.privatepaste.com/29lCTCERRY --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, flexawesome [EMAIL PROTECTED] wrote: Hi there, do you know how can I use it to duplicate the image? It seems doesn't work. any ideas? Thank you loader = new SWFLoader(); loader.addEventListener(Event.COMPLETE, Bitmapdata) loader.source = http://us.i1.yimg.com/us.yimg.com/i/us/nt/ma/ma_tech- grp_1.gif //addChild(loader); private function oBitmapdata(e:Event):void { var img:Image = new Image(); var data:BitmapData = Bitmap(loader.content).bitmapData; var bitmap:Bitmap = new Bitmap(data); img.addChild(bitmap) addChild(img); }
[flexcoders] Re: LinkBar Question, How to get LinkBar item details programmatically?
I want to read the content of the dataprovider when contextMenu appear. I get the information about the link (URL to open) on mouse click like below, to open the link in external browser window. //When user clicks link, pass execution to JavaScript function on hosting page. linkbar.addEventListener(ItemClickEvent.ITEM_CLICK, function (event:ItemClickEvent):void{ var prod:Product = event.item as Product; if (prod != null ExternalInterface.available) { ExternalInterface.call (launchExternalProduct, prod.id, prod.ssoEntryUri); } }); prod.id is the name of the product and prod.ssoEntryUri is the product URL. How do I get the same information on ContextMenu (Right Click). My linkbar and buttons are created like this private function initLinkBar(): void { var linkbar:LinkBar = new LinkBar(); linkbar.dataProvider = this.externalProducts.toArray(); linkbar.id =testlink; linkbar.addEventListener(ItemClickEvent.ITEM_CLICK, function (event:ItemClickEvent):void{ var prod:Product = event.item as Product; if (prod != null ExternalInterface.available) { ExternalInterface.call (launchExternalProduct, prod.id, prod.ssoEntryUri); } }); cb.height =40; cb.addChild(linkbar); } Thanks VN On May 16, 9:55 pm, smalik [EMAIL PROTECTED] wrote: It works. See the below code: - -- In flexcoders@yahoogroups.com, the_braniak [EMAIL PROTECTED] wrote: I'm not sure what link are you trying to open in a browser window. Where do you have the link (URL) you want to open stored? Claudiu --- In flexcoders@yahoogroups.com, vkc_nair vkc_nair@ wrote: Hi All, How to get the data behind a LinkBar item (e.g URL) on right mouse click? I have a LinkBar with 4 different items and a ContextMenu attached to the LinkBar. When user right click on each link the contextmenu give the option to open the link in a Tab or an external Browser window. I want to pass the URL behind each link item programmatically to my contextmenu. Thanks VN
Re: [flexcoders] Re: a simple question of BitmapData
Sorry error in it try the code below instead private var bitmapDataCopy:BitmapData; private var sourceBitmap:BitmapData; private function init():void { var imgLoad:Loader=new Loader(); imgLoad.contentLoaderInfo.addEventListener(Event.COMPLETE,init2); imgLoad.load(new URLRequest(assets/imagename.png)); } private function init2(e:Event):void { sourceBitmap = e.target.content.bitmapData as BitmapData; bitmapDataCopy = sourceBitmap.clone(); } On Sun, May 18, 2008 at 4:55 PM, Allan Pichler [EMAIL PROTECTED] wrote: I believe this should work. private var bitmapDataCopy:BitmapData; private var sourceBitmap:BitmapData; private function init():void { var imgLoad:Loader=new Loader(); imgLoad.contentLoaderInfo.addEventListener(Event.COMPLETE,init2); imgLoad.load(new URLRequest(assets/imagename.png)); } private function init2(e:Event):void { sourceBitmap = e.target.content.bitmapData as BitmapData; bitmapDataCopy = sourceImage.clone(); } On Sat, May 17, 2008 at 8:41 PM, Alex Harui [EMAIL PROTECTED] wrote: SWFLoader doesn't get going until you addChild it. If you use flash.display.Loader, you might be able to load w/o addChild -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *flexawesome *Sent:* Saturday, May 17, 2008 3:16 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: a simple question of BitmapData Hi there, I have updated the code ( enabled line5 ) and get the duplicate copy of gif file. Is there a way to prevent to use addChild but still can get the copy of the image? Cheers http://www.privatepaste.com/29lCTCERRY --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, flexawesome [EMAIL PROTECTED] wrote: Hi there, do you know how can I use it to duplicate the image? It seems doesn't work. any ideas? Thank you loader = new SWFLoader(); loader.addEventListener(Event.COMPLETE, Bitmapdata) loader.source = http://us.i1.yimg.com/us.yimg.com/i/us/nt/ma/ma_tech- grp_1.gif //addChild(loader); private function oBitmapdata(e:Event):void { var img:Image = new Image(); var data:BitmapData = Bitmap(loader.content).bitmapData; var bitmap:Bitmap = new Bitmap(data); img.addChild(bitmap) addChild(img); }
Re: [flexcoders] Re: How do I dispatch an everything PropertyChangeEvent on this?
Does this mean I will no longer receive any automatic updates (as in generated by the framework, rather than by my event dispatch code) at all when an individual member is updated, or that simply all members will be marked as changed when any one of them is? Cheers, -J On Mon, May 19, 2008 at 6:02 AM, Daniel Gold [EMAIL PROTECTED] wrote: I've done it that way before, although sometimes its better to create an updateAll() method, because now all of your bindings will fire when a single property changes since your entire class is Bindable on the same event. Just depends on exactly what the use case is, if your class is set up with the default Binding events you could use describeType in your updateAll method to dispatch a PropertyChangeEvent for each property in your class. On Fri, May 16, 2008 at 1:36 AM, Josh McDonald [EMAIL PROTECTED] wrote: Once again, two seconds after I post, the answer pops into my head... And as usual, the (simple) solution for anybody trawling the list in future: [Bindable(event=populated)] public class FooBar extends EventDispatcher { ... //Pay attention to me! dispatchEvent(new Event(populated)); -J On Fri, May 16, 2008 at 4:30 PM, Josh McDonald [EMAIL PROTECTED] wrote: Hi guys, Disclaimer: this is probably a stupid question, but I've been trying to figure this out for way too long! I've got some code that does all sorts of things to this.foo, this.bar, and this.baz etc etc. At the moment I'm dispatching several standard PropertyChangeEvents as I change fields. What I'd like to do is once I've finished all my voodoo, dispatch a single event that says everything needs to be updated, but I need to do it to this rather than on a reference in a parent object, as it's a non-visual component that has no idea where it sits in the object graph. I *know* there's a simple solution to this... -J -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] Re: a simple question of BitmapData
great, I may try this :) thanks Allan --- In flexcoders@yahoogroups.com, Allan Pichler [EMAIL PROTECTED] wrote: Sorry error in it try the code below instead private var bitmapDataCopy:BitmapData; private var sourceBitmap:BitmapData; private function init():void { var imgLoad:Loader=new Loader(); imgLoad.contentLoaderInfo.addEventListener (Event.COMPLETE,init2); imgLoad.load(new URLRequest(assets/imagename.png)); } private function init2(e:Event):void { sourceBitmap = e.target.content.bitmapData as BitmapData; bitmapDataCopy = sourceBitmap.clone(); } On Sun, May 18, 2008 at 4:55 PM, Allan Pichler [EMAIL PROTECTED] wrote: I believe this should work. private var bitmapDataCopy:BitmapData; private var sourceBitmap:BitmapData; private function init():void { var imgLoad:Loader=new Loader(); imgLoad.contentLoaderInfo.addEventListener (Event.COMPLETE,init2); imgLoad.load(new URLRequest(assets/imagename.png)); } private function init2(e:Event):void { sourceBitmap = e.target.content.bitmapData as BitmapData; bitmapDataCopy = sourceImage.clone(); } On Sat, May 17, 2008 at 8:41 PM, Alex Harui [EMAIL PROTECTED] wrote: SWFLoader doesn't get going until you addChild it. If you use flash.display.Loader, you might be able to load w/o addChild -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *flexawesome *Sent:* Saturday, May 17, 2008 3:16 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: a simple question of BitmapData Hi there, I have updated the code ( enabled line5 ) and get the duplicate copy of gif file. Is there a way to prevent to use addChild but still can get the copy of the image? Cheers http://www.privatepaste.com/29lCTCERRY --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, flexawesome flexawesome@ wrote: Hi there, do you know how can I use it to duplicate the image? It seems doesn't work. any ideas? Thank you loader = new SWFLoader(); loader.addEventListener(Event.COMPLETE, Bitmapdata) loader.source = http://us.i1.yimg.com/us.yimg.com/i/us/nt/ma/ma_tech- grp_1.gif //addChild(loader); private function oBitmapdata(e:Event):void { var img:Image = new Image(); var data:BitmapData = Bitmap(loader.content).bitmapData; var bitmap:Bitmap = new Bitmap(data); img.addChild(bitmap) addChild(img); }
Re: [flexcoders] Re: How do I dispatch an everything PropertyChangeEvent on this?
I don't usually make an entire class Bindable on a single event like you posted earlier, so I'm not 100% on this, but I'm pretty sure it won't auto-generate that event for you in your setters, so you would have to dispatch it manually, with the side effect that all of your other bindings would fire as well. I usually go the route of using the default Bindable event and then using describeType in my updateAll to generate the propertyChangeEvent so that I can still fire individual bindings without the overhead. I also cache the result of the describeType so that it will only happen once on each qualified class name as that method can be pretty heavy. On Sun, May 18, 2008 at 7:42 PM, Josh McDonald [EMAIL PROTECTED] wrote: Does this mean I will no longer receive any automatic updates (as in generated by the framework, rather than by my event dispatch code) at all when an individual member is updated, or that simply all members will be marked as changed when any one of them is? Cheers, -J On Mon, May 19, 2008 at 6:02 AM, Daniel Gold [EMAIL PROTECTED] wrote: I've done it that way before, although sometimes its better to create an updateAll() method, because now all of your bindings will fire when a single property changes since your entire class is Bindable on the same event. Just depends on exactly what the use case is, if your class is set up with the default Binding events you could use describeType in your updateAll method to dispatch a PropertyChangeEvent for each property in your class. On Fri, May 16, 2008 at 1:36 AM, Josh McDonald [EMAIL PROTECTED] wrote: Once again, two seconds after I post, the answer pops into my head... And as usual, the (simple) solution for anybody trawling the list in future: [Bindable(event=populated)] public class FooBar extends EventDispatcher { ... //Pay attention to me! dispatchEvent(new Event(populated)); -J On Fri, May 16, 2008 at 4:30 PM, Josh McDonald [EMAIL PROTECTED] wrote: Hi guys, Disclaimer: this is probably a stupid question, but I've been trying to figure this out for way too long! I've got some code that does all sorts of things to this.foo, this.bar, and this.baz etc etc. At the moment I'm dispatching several standard PropertyChangeEvents as I change fields. What I'd like to do is once I've finished all my voodoo, dispatch a single event that says everything needs to be updated, but I need to do it to this rather than on a reference in a parent object, as it's a non-visual component that has no idea where it sits in the object graph. I *know* there's a simple solution to this... -J -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] Re: URI has an authority component
we found the solution just by chance... check and delete some of the params in the flex builder shortcut, right now I can't remember which one was so you'll have to try Gus, are you sure this was the thing that fixed it? here's the args in the shortcut to my plug-in version of FlexBuilder. C:\Program Files\Eclipse\eclipse\eclipse.exe -showlocation -vm C:\Program Files\Adobe\Flex Builder 3 Plug-in\jre\bin\javaw.exe -vmargs -Xms128M -Xmx512M -XX:MaxPermSize=256M
Re: [flexcoders] Re: How do I dispatch an everything PropertyChangeEvent on this?
This is for a DTO that inherits some fairly complicated describeType-based auto-populate voodoo. It's already statically caching describeType info (based on a getQualifiedClassName key), so that's no worry, and I've already got all the info required for generating field-level change events as I go through. I might refactor it and go back to those events when I get some time. It needs to have some functionality pulled out into a generic reflection util class anyway eventually :) Cheers :) -J On Mon, May 19, 2008 at 11:18 AM, Daniel Gold [EMAIL PROTECTED] wrote: I don't usually make an entire class Bindable on a single event like you posted earlier, so I'm not 100% on this, but I'm pretty sure it won't auto-generate that event for you in your setters, so you would have to dispatch it manually, with the side effect that all of your other bindings would fire as well. I usually go the route of using the default Bindable event and then using describeType in my updateAll to generate the propertyChangeEvent so that I can still fire individual bindings without the overhead. I also cache the result of the describeType so that it will only happen once on each qualified class name as that method can be pretty heavy. On Sun, May 18, 2008 at 7:42 PM, Josh McDonald [EMAIL PROTECTED] wrote: Does this mean I will no longer receive any automatic updates (as in generated by the framework, rather than by my event dispatch code) at all when an individual member is updated, or that simply all members will be marked as changed when any one of them is? Cheers, -J On Mon, May 19, 2008 at 6:02 AM, Daniel Gold [EMAIL PROTECTED] wrote: I've done it that way before, although sometimes its better to create an updateAll() method, because now all of your bindings will fire when a single property changes since your entire class is Bindable on the same event. Just depends on exactly what the use case is, if your class is set up with the default Binding events you could use describeType in your updateAll method to dispatch a PropertyChangeEvent for each property in your class. On Fri, May 16, 2008 at 1:36 AM, Josh McDonald [EMAIL PROTECTED] wrote: Once again, two seconds after I post, the answer pops into my head... And as usual, the (simple) solution for anybody trawling the list in future: [Bindable(event=populated)] public class FooBar extends EventDispatcher { ... //Pay attention to me! dispatchEvent(new Event(populated)); -J On Fri, May 16, 2008 at 4:30 PM, Josh McDonald [EMAIL PROTECTED] wrote: Hi guys, Disclaimer: this is probably a stupid question, but I've been trying to figure this out for way too long! I've got some code that does all sorts of things to this.foo, this.bar, and this.baz etc etc. At the moment I'm dispatching several standard PropertyChangeEvents as I change fields. What I'd like to do is once I've finished all my voodoo, dispatch a single event that says everything needs to be updated, but I need to do it to this rather than on a reference in a parent object, as it's a non-visual component that has no idea where it sits in the object graph. I *know* there's a simple solution to this... -J -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] run flex builder using Java 6 on mac?
Java 6 on mac is currently incompatible with SWT, which is what Eclipse uses for its GUI, so It can't be done.\ -J On Mon, May 19, 2008 at 9:15 AM, Rich Rodecker [EMAIL PROTECTED] wrote: Not sure if this is possible or not, but since apple released the Java 6 update recently, is there a way to have FlexBuilder use that instead? -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] Re: URI has an authority component
for me it turns out to be a paths/UNC problem. recreating the project with a workspace that maps to a drive letter (in the case of Windoze) fixes it. more info here from the Ant lists: http://www.mail-archive.com/[EMAIL PROTECTED]/msg29534.html
[flexcoders] [ANN] Flex-mojos 1.0-RC2
Flex-mojos 1.0-RC2 is out. Just same fixes of problems found on 1.0-RC1. http://blog.flex-mojos.info/2008/05/19/flex-mojos-10-rc2/ VELO
[flexcoders] flex3 sdk and eclipse
Hi I'd like to set up my eclipse to work with the flex3 sdk...is that possible and if it is, how could I? Turorial or ideas are welcome. :) Gustavo
[flexcoders] Bindable tag question
Hi, I have been using Bindable tag for data providers in datagrid, list etc. The doc states that this ensures that the destination datagrid would reflect the change when the dataprovider is changed. But I have observed that even if I do not use the Bindable tag the datagrid is still updated when the dataprovider changes. Here is a simple example: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.collections.ArrayCollection; /*Bindable tag not added. Flex Builder gives a warning when the variable is referenced in the datagrid but it still works.*/ private var dp:ArrayCollection = new ArrayCollection([{index:1, word:Test1},{index:2, word:Test2}]) public function changeDataProvider():void { var obj1:Object = new Object(); obj1[index] = 1; obj1[word] = Modified Test1; dp.setItemAt(obj1,0); var obj2:Object = new Object(); obj2[index] = 3; obj2[word] = Test3; dp.addItem(obj2); } ]] /mx:Script mx:VBox mx:DataGrid dataProvider={dp}/ mx:Button click=changeDataProvider() label=Change data/ /mx:VBox /mx:Application In the above example the datagrid changes on the button click. Please let me know if I am missing somthing.
RE: [flexcoders] Error
Put it in the debugger, check the values. Maybe a row has shrunk too small or the DG is too narrow? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Sunday, May 18, 2008 1:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Error Can someone please help me with this error: ArgumentError: Error #2004: One of the parameters is invalid. at flash.display::Graphics/drawRect() at mx.controls::DataGrid/drawRowBackground() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DataGrid.a s:2967] at mx.controls::DataGrid/drawRowGraphics() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DataGrid.a s:2283] at mx.controls::DataGrid/drawRowBackgrounds() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DataGrid.a s:2242] at mx.controls::DataGrid/updateDisplayList() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\DataGrid.a s:1503] at mx.controls.listClasses::ListBase/validateDisplayList() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\listClasse s\ListBase.as:3281] at mx.managers::LayoutManager/validateDisplayList() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutMana ger.as:602] at mx.managers::LayoutManager/doPhasedInstantiation() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutMana ger.as:675] at Function/http://adobe.com/AS3/2006/builtin::apply http://adobe.com/AS3/2006/builtin::apply () at mx.core::UIComponent/callLaterDispatcher2() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as :8460] at mx.core::UIComponent/callLaterDispatcher() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as :8403]
RE: [flexcoders] Event Not Dispatched From TileWindow
Popups are not parented by the app so the event won't be seen the by app listener. IMHO, it is a bad practice to bubble like that. You should just get the reference to the popup from the PopUpManager and addEventListener to that. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Parjan Arjan Sent: Sunday, May 18, 2008 8:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Event Not Dispatched From TileWindow Dear All I am dispatching an event from tile window and i am capturing this event on parent container but event is not dispatching from tile window here is my code can u point out what is wrong here thanks in advance.. Parkash Arjan // This is my Event Class Code public class CloseMyTileWindowEvent extends Event { public static var CLICK:String = MY_TILE_WINDOW_CLICK_EVENT; public var str:Object; public function CloseMyTileWindowEvent( str:Object ) { super (CLICK, true, true); this.str = str; } } //This Is my Application Container ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete={init()} mx:Script ![CDATA[ import mx.managers.PopUpManager; public function init():void { addEventL! istener( CloseMyTileWindowEvent.CLICK, closeTileWindowEventHandler ); } public function closeTileWindowEventHandler():void { trace( TileWindowEventHandlede ); } public function showMtTileWindow():void { PopUpManager.createPopUp( this , MyTileWindow , true ); } ]] /mx:Script mx:Button label=Click-Me click={ showMtTileWindow() }/ /mx:Application //And This is my tile window which is dispatching event ?xml version=1.0 encoding=utf-8? mx:TitleWin! dow xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=400 height=300 mx:Script ![CDATA[ import mx.managers.PopUpManager; public function tileWindowButtonHandler():void { var evt:CloseMyTileWindowEvent = new CloseMyTileWindowEvent( null ) dispatchEvent( evt ); PopUpManager.removePopUp( this ); } ! nbsp; ]] /mx:Script mx:Button click={ tileWindowButtonHandler() }/ /mx:TitleWindow
RE: [flexcoders] Tree - Drag Drop - prevent drop into folder
Anywhere in an open folder (like its children) or just the open folder row? If you look at the Tree source you can see how to get parents of things that are visible, and you might be able to use that to call preventDefault on the drag event. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of iilsley Sent: Sunday, May 18, 2008 9:20 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tree - Drag Drop - prevent drop into folder I'm trying to prevent the 'drop' of a 'dragged' folder into an open folder but having no luck . I've looked @ the 'Spring Loaded Folders' http://www.flexibleexperiments.com/Flex/SpringLoadedFolders2/Sample.html http://www.flexibleexperiments.com/Flex/SpringLoadedFolders2/Sample.htm l which is almost there , but it still allows the drop if you position the source at the end of the 'drop folder' . Is there a way to get the 'parent' folder of the drop target ?
RE: [flexcoders] Re: DateChooser setting displayedMonth, displayedYear does nothing
I didn't run the code, but by looking at it, the selectableRange is bound to a plain old object which doesn't support binding. You should have seen a warning in the console at runtime. Thus at init time, the selectableRange is bogus and the displayedMonth/Year probably get screwed up as well. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rleuthold Sent: Sunday, May 18, 2008 8:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DateChooser setting displayedMonth, displayedYear does nothing Hi Alex, thanks for the reply. I made a simple test case, and could figure out why it is not working as expected- Can you shortly have look at this code: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml creationComplete=build() mx:Script ![CDATA[ [Bindable] private var _rangeStart:Date; [Bindable] private var _rangeStart_two:Date = new Date(2006,0,1); [Bindable] private var _rangeEnd:Date; [Bindable] private var _rangeEnd_two:Date = new Date(2007,0,1); private function build():void { _rangeStart = new Date(2006,0,1); _rangeEnd = new Date(2007,0,1); } ]] /mx:Script mx:Label text=Dates set in creation complete handler: doesn't work for me / mx:DateChooser selectableRange={{rangeStart : _rangeStart, rangeEnd :_rangeEnd}} displayedMonth=10 displayedYear=2006 / mx:Label text=Dates set initially: works for me / mx:DateChooser selectableRange={{rangeStart : _rangeStart_two, rangeEnd :_rangeEnd_two}} displayedMonth=10 displayedYear=2006 / /mx:Application Is that explainable ? Thank's _rico --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: I'd make a simple test case and see if it works there. Are you sure your compDateRange has two elements with valid values? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of rleuthold Sent: Saturday, May 17, 2008 6:05 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] DateChooser setting displayedMonth, displayedYear does nothing Hi, I have a DateChooser in a popUp window. If I set the displayedMonth and displayedYear properties on that DateChooser (after creating the popup), nothing happens. The display is still on the month and year previously selected/displayed. Does anybody have an idea ? code (parent comp): _datePickerWin = DateRangerPopUp(PopUpManager.createPopUp(Application.application as DisplayObject, DateRangerPopUp, true)); _datePickerWin.compDateRange = _dateRange; code (DateRangerPopup): public function set compDateRange(dateRange:Array):void { _compDateRange = dateRange; dateChooser.selectedRanges = [ {rangeStart: _compDateRange[0], rangeEnd: _compDateRange[1] }]; dateChooser.displayedMonth = _compDateRange[1].month; dateChooser.displayedYear = _compDateRange[1].fullYear; Thank's rico
Re: [flexcoders] Bindable tag question
If you call addItem(), updateItem(), etc, the PropertyChangedEvent is dispatched by the IList implementor (ie, ArrayCollection). But, if you have an IList of objects, and you do this: var company : Company = companyList.getItemAt(3) as Company; company.name = New name; then you'll only get the new data on screen if Company (or Company.name) is marked [Bindable] When you call the modifying methods on the dataprovider itself, then the change is marked as happening on the IList (and it dispatches the PropertyChangedEvent). But if you change the content of an object contained within that list, nobody knows about it unless you add the [Bindable]. [Bindable] is a compile-time decorator that dispatches the events on your behalf. If I'm making things muddier rather than clearer with that, let me know ;-) -J On Mon, May 19, 2008 at 2:01 PM, gaurav1146 [EMAIL PROTECTED] wrote: Hi, I have been using Bindable tag for data providers in datagrid, list etc. The doc states that this ensures that the destination datagrid would reflect the change when the dataprovider is changed. But I have observed that even if I do not use the Bindable tag the datagrid is still updated when the dataprovider changes. Here is a simple example: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.collections.ArrayCollection; /*Bindable tag not added. Flex Builder gives a warning when the variable is referenced in the datagrid but it still works.*/ private var dp:ArrayCollection = new ArrayCollection([{index:1, word:Test1},{index:2, word:Test2}]) public function changeDataProvider():void { var obj1:Object = new Object(); obj1[index] = 1; obj1[word] = Modified Test1; dp.setItemAt(obj1,0); var obj2:Object = new Object(); obj2[index] = 3; obj2[word] = Test3; dp.addItem(obj2); } ]] /mx:Script mx:VBox mx:DataGrid dataProvider={dp}/ mx:Button click=changeDataProvider() label=Change data/ /mx:VBox /mx:Application In the above example the datagrid changes on the button click. Please let me know if I am missing somthing. -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
RE: [flexcoders] TabBar and percentage width
Please post a test case. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Friday, May 16, 2008 4:04 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] TabBar and percentage width Hi, all; I have a tabbar that is in an HBox that is in an Application. The TabBar and the HBox are both set to 100%. If the window is wider than the natural width of the tabbar and I then resize it, then everything works as expected...the tab labels will truncate and everything will squish together to reflect the change. If I then close the browser at that width and relaunch the app, the tabs are all full size and extend off the edge of the page with no way to get to them (unless you resize the browser window). Is this expected behavior? TIA; Amy
[flexcoders] [ArrayElementType] warning
Hey guys, I'm getting this on MXML files referring to classes using [ArrayElementType] rather than in the classes themselves: [ArrayElementType](CompositeMapping)]: type CompositeMapping is unavailable. The CompositeMapping class is definitely referenced from the MXML file though: dao:CompositeDTO id=sppAggregate dao:mappings dao:CompositeMapping name=salaryPackagePayment dto={ payment }/ /dao:mappings /dao:CompositeDTO CompositeDTO.mappings is defined thus: [ArrayElementType(CompositeMapping)] public function set mappings(v : Array) : void { _mappings = v; } Should I not be decorating the setter method? Builder seems to understand and puts CompositeMapping at the top of the auto-complete popup when I'm entering the MXML. Obviously not immediately pressing, but I don't like warnings I don't understand, as it often means something's going to bite me in the near future ;-) Ideas? Cheers, -J -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] talk from one swf to another
Hi. Im using blazeds and a java backend. I have a swf that updates stuff on the server and thus in the database. My question is: Is it possible to have a second swf (using blazeds) that will listen for or subscribe to changes on a server object and have the server object push changes to the subscribed object. IOW. I want to have one swf respond to changes made with a different swf. Thanks. Kind regards. Luke. -- Luke Vanderfluit Analyst / Web Programmer e3Learning.com.au 08 8221 6422
Re: [flexcoders] talk from one swf to another
It sounds like you're looking for Adobe's Data Management feature (FDS/LCDS) which was not included in BlazeDS. The functionality of Data Management's client-side data synchronization can however be simulated using a messaging framework. On Sun, May 18, 2008 at 10:13 PM, Luke Vanderfluit [EMAIL PROTECTED] wrote: Hi. Im using blazeds and a java backend. I have a swf that updates stuff on the server and thus in the database. My question is: Is it possible to have a second swf (using blazeds) that will listen for or subscribe to changes on a server object and have the server object push changes to the subscribed object. IOW. I want to have one swf respond to changes made with a different swf. Thanks. Kind regards. Luke. -- Luke Vanderfluit Analyst / Web Programmer e3Learning.com.au 08 8221 6422 -- Thanks for reading. -Justin Flickr: http://www.flickr.com/photos/neopan/