[flexcoders] (unknown)
How can i develop sound recorder (like windows sound recorder) in flash. The user speaks from mic/headphone and flash record the sound.
Re: [flexcoders] accessing styles of children
for (var i:int = 0; i numChildren; i++) { StyleClient(videoButtonBox.getChildAt(i)).setStyle(backgroundColor,#FF) } 1180: Call to a possibly undefined method StyleClient. Thanks, but I don't get it. Please explain. Alex Harui wrote: It is if you cast everything correctly IStyleClient(videoButtonBox.getChildAt(i)).setStyle(…). The compile is trying to help you out so the return types of methods and properties are important From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, July 21, 2008 10:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] accessing styles of children videoButtonBox. is an VBox with HBoxes for children. How do I change styles as I iterate thru children? videoButtonBox.getChildAt(i).setStyle() is not a function. var numChildren:Number = videoButtonBox.numChildren; for (var i:int = 0; i numChildren; i++) { videoButtonBox.getChildAt(i) } This page talks about rawChildren as a way to access styles, but I have read it 10 times and I have no idea what they are trying to describe. -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: SoundMixer.computeSpectrum
Have no one else ran into this problem? -Shaq --- In flexcoders@yahoogroups.com, Shaq [EMAIL PROTECTED] wrote: Say I have two soundchannel objects each playing different music/files. Is there a way to call computeSpectrum on each channel instead of a global computeSpectrum? I would like to display the spectrum for both channels in two different graphs. Any suggestions would be appreciated. -Shaq
[flexcoders] Re: Animated dashed lines
--- In flexcoders@yahoogroups.com, havardfl [EMAIL PROTECTED] wrote: In a project I'm working on I would like to represent data flowing through the system with dashed/dotted lines moving between two or more points. I've done one implementation using the lineGradientStyle function to create dashes. This works, but I'm not pleased with the CPU load while the script is running. I'd like to draw 100+ lines, and my method of doing it isn't cutting it. Does anyone know a great way of drawing animated dashed/dotted lines without using much CPU time? This is my implementation btw: static public function DrawStippledShape2(g:Graphics, points:Array, pattern:Array=null, alphas:Array=null, colors:Array=null, thicknesses:Array=null, offset:Number=0):void { g.moveTo(points[0].x, points[0].y); var pat2:Array = []; var patsum:Number = 0; for each (var p:Number in pattern){ patsum += p; } for (var i:int = 0 ; i pattern.length ; i++){ pat2[i] = pattern[i] / patsum * 255; } for (var i:int = 1 ; i points.length ; i++){ var p1:Point = points[i-1]; var p2:Point = points[i]; var m:Matrix = new Matrix; var ptemp:Point = p2.subtract(p1); var rot:Number = (Math.atan2(ptemp.y, ptemp.x)); m.createGradientBox(patsum,patsum,0,offset, offset); //note(rot.toString()); m.rotate(rot); g.lineStyle(5,0); g.lineGradientStyle( GradientType.LINEAR, colors, alphas, pat2, m, SpreadMethod.REFLECT, InterpolationMethod.LINEAR_RGB); //g.beginGradientFill(GradientType.RADIAL, [0xFF, 0x00FF00], [1,1], [0,128],m); g.lineTo(p2.x, p2.y); } }
[flexcoders] Re: Filter an ArrayCollection into an ItemRender
Thanks, Scott. Taking this way, i have another doubt. How can i refer (inside a item renderer) to the data.Url inherited from the dataprovider in the main application (index.mxml)? --- In flexcoders@yahoogroups.com, Scott Bachman [EMAIL PROTECTED] wrote: The syntax you tried is e4x (ECMAscript for XML) and only works with XML data. For an ArrayCollection you could use a filterFunction to filter the data. Check out, for instance, http://www.boyzoid.com/blog/index.cfm/2006/10/19/Filtering-Data-in-Flex or the filterFunction property of ArrayCollection in the Flex documentation. Scott On Mon, Jul 21, 2008 at 9:28 AM, luis_roman_am [EMAIL PROTECTED] wrote: Hi people! Situation as follows: MYARRAYCOLLECTION (Example fields) - TITLE - URL INDEX.MXML - TILELIST - DataProvider={MyArrayCollection} - ItemRenderer =MyRenderer MYRENDERER.MXML - LABEL (data.TITLE) (WORKS FINE) - LINECHART -DataProvider=Application.application.MyArrayCollection} (PROBLEM HERE) THe problem is: How can i filter linechart inside MYRENDERER.MXML the dataprovider to receive only data for the items with his URL? I tried something like: -DataProvider=Application.application.MyArrayCollection.(@Url=data.Url)} but this throws me the following error: Error #1123: Filter operator not supported on type mx.arraycollections. Please Help!!
[flexcoders] Image stack flipping thingie
Anybody know of a component which stacks up a list of images (visually) and allows the user to flip through them? It has been used in the eBay desktop app (Air). It shows the images as being visually stacked and when clicked animates to the next image by flipping the top image to the bottom. Tnx in advance. Ben
[flexcoders] Re: I do not like flex 3 any more!!!!
Hehe totally agree with you, I'm realy look forward to Flex4 and FlashPlayer10 --- In flexcoders@yahoogroups.com, hworke [EMAIL PROTECTED] wrote: See this presentation by Ely. You will know why: http://tv.adobe.com/#v=http%3A//adobe.edgeboss.net/flash/adobe/adobetvpr\ od/adc_presents/64_adc_018.flv%3Frss_feedid%3D1216%26xmlvers%3D2
[flexcoders] Re: Flex Dashboard
Hi In this project of your, do you store the module as byte in the db ? --- In flexcoders@yahoogroups.com, gjessup1 [EMAIL PROTECTED] wrote: Added a code project for those interested http://code.google.com/p/flex-dashboard/ --- In flexcoders@yahoogroups.com, gjessup1 gregjessup@ wrote: Hey all, I have been watching this group for a while and figured many of you could benefit from a project I started called the Flex Dashboard. The google group is http://groups.google.com/group/flex-dashboard Its basically a database driven module loader. It is currently using MSSQL Server as the DB, but the table script is available online, so could easily be changed to use the DB of your choice. Its a work in progress, but getting a community involved usually helps a project grow much faster. I am using Weborb to invoke the DB calls using C#. This could be changed. Would like to see it become very dynamic over time. Please head over and have a look. Looking to create a community that can make this a great product everyone can use. http://groups.google.com/group/flex-dashboard
[flexcoders] Re: Highlight cell from context menu
Not a chance? --- In flexcoders@yahoogroups.com, markgoldin_2000 [EMAIL PROTECTED] wrote: Is there a way of highlighting a cell that was right mouse clicked on right before contextmenu showed up? Thanks
Re: [flexcoders] Re: Filter an ArrayCollection into an ItemRender
I'm not sure I understand your question. You can certainly refer to data.Url inside the item renderer. If you mean using a filterFunction with data.Url, you would have to apply it inside you're item renderer and most likely make a copy of your original ArrayCollection in each itemRenderer to apply the filterFunction to so that each renderer is filtered without affecting the others. Scott On Tue, Jul 22, 2008 at 4:00 AM, luis_roman_am [EMAIL PROTECTED] wrote: Thanks, Scott. Taking this way, i have another doubt. How can i refer (inside a item renderer) to the data.Url inherited from the dataprovider in the main application (index.mxml)? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Scott Bachman [EMAIL PROTECTED] wrote: The syntax you tried is e4x (ECMAscript for XML) and only works with XML data. For an ArrayCollection you could use a filterFunction to filter the data. Check out, for instance, http://www.boyzoid.com/blog/index.cfm/2006/10/19/Filtering-Data-in-Flex or the filterFunction property of ArrayCollection in the Flex documentation. Scott On Mon, Jul 21, 2008 at 9:28 AM, luis_roman_am [EMAIL PROTECTED] wrote: Hi people! Situation as follows: MYARRAYCOLLECTION (Example fields) - TITLE - URL INDEX.MXML - TILELIST - DataProvider={MyArrayCollection} - ItemRenderer =MyRenderer MYRENDERER.MXML - LABEL (data.TITLE) (WORKS FINE) - LINECHART -DataProvider=Application.application.MyArrayCollection} (PROBLEM HERE) THe problem is: How can i filter linechart inside MYRENDERER.MXML the dataprovider to receive only data for the items with his URL? I tried something like: -DataProvider=Application.application.MyArrayCollection.(@Url=data.Url)} but this throws me the following error: Error #1123: Filter operator not supported on type mx.arraycollections. Please Help!!
Re: [flexcoders] accessing styles of children
Alex's email clearly said IStyleClient with a capital I in front. You'll also need to import it at the top of your file if FlexBuilder doesn't do it for you: import mx.styles.IStyleClient. Since getChildAt returns a generic DisplayObject, you have to cast it to a more specific type to be able to call setStyle. If none of this makes sense to you, you probably need to do some reading up on the object-oriented programming concept called polymorphism. Scott On Tue, Jul 22, 2008 at 2:34 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: for (var i:int = 0; i numChildren; i++) { StyleClient(videoButtonBox.getChildAt(i)).setStyle(backgroundColor,#FF) } 1180: Call to a possibly undefined method StyleClient. Thanks, but I don't get it. Please explain. Alex Harui wrote: It is if you cast everything correctly IStyleClient(videoButtonBox.getChildAt(i)).setStyle(…). The compile is trying to help you out so the return types of methods and properties are important From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, July 21, 2008 10:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] accessing styles of children videoButtonBox. is an VBox with HBoxes for children. How do I change styles as I iterate thru children? videoButtonBox.getChildAt(i).setStyle() is not a function. var numChildren:Number = videoButtonBox.numChildren; for (var i:int = 0; i numChildren; i++) { videoButtonBox.getChildAt(i) } This page talks about rawChildren as a way to access styles, but I have read it 10 times and I have no idea what they are trying to describe. -- 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
Re: [flexcoders] ArrayCollection filterFunction only gets called on root item
The filterFunction only applies to the ArrayCollection. By hierarchy, I assume you mean you have an ArrayCollection that contains ArrayCollections. In other words, objects in your original ArrayCollection have, say, a children ArrayCollection. In order to do what you're describing, you would have to set the filterFunction on each of these child's filterFunction and each of there's, etc. In the past, I have done something like this to achieve what you're talking about: public function filterMenuItems(filter:IMenuFilter):void { if (children) { // need to clear all filters first, otherwise hidden higher levels won't come back children.filterFunction = null; children.refresh(); for (var i:int=0; i children.length; i++) { if (children.getItemAt(i) is Menu) { Menu(children.getItemAt(i)).filterMenuItems(filter); } } children.filterFunction = filter.menuItemFilter; children.refresh(); } } Here, a Menu is filtered by calling it's filterMenuItems method with a filter object, traversing down through other Menu's children (via the recursive call) setting the filterFunction. Scott On Mon, Jul 21, 2008 at 5:55 PM, Greg Hess [EMAIL PROTECTED] wrote: Hi All, I have a tree control who's data provider is an ArrayCollection holding a single File object I defined. The File object represents the root of a remote file system hierarchy that has children getter that supports the tree control and each child is rendered in the tree with an ItemRenderer. The tree control displays the File hierarchy well and it traverses the data providers children as expected. However, filter does not. I wanted to apply a filter to the data provider so only directory items are displayed. I specified the filterFunction and refresh the dataProvider but it only gets called on the first root node and not the data model hierarchy and each item that gets rendered in the tree. Should I have implemented a special interface so the tree or data provider can properly filter the object hierarchy? What am I doing wrong? Any help much appreciated. -Greg
[flexcoders] ItemRenderer
Hi, Having a problem with using an itemRenderer in datagrid column, the custom column appears correctly but whenever I dynamically change the dataProvider I get a repeat of the custom column and as I'm potentially using a dataProvider with a different schema to the initially loaded schema I then get a mixture of the old schema and current schema fields. It all appears to work correctly though if I don't create the custom column. See code below for creating custom column which is created when I get the data result(onResult) and also the code for the itemRenderer (ButtonAddToPlaylist). Thanks, Mike private function onResult(event:ResultEvent):void { // Get the result this.dgEventListings.dataProvider = event.result; // Add the 'Add to playlist' column var dgc:DataGridColumn = new DataGridColumn(); dgc.headerText = ; dgc.width = 26; dgc.itemRenderer = new ButtonAddToPlaylist(); var cols:Array = this.dgEventListings.columns; cols.push(dgc); this.dgEventListings.columns = cols; this.dgEventListings.validateNow(); this.dgEventListings.addEventListener (AddPlaylistClipEvent.ADD_TO_PLAYLIST, AddPlaylistClip); // Set the title var myParent:SuperPanel = SuperPanel(this.parent); myParent.title = StringUtil.substitute({0} - Events Listing,cboSessions.selectedItem.label); } ButtonAddToPlaylist.mxml --- ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; width=16 height=16 horizontalAlign=center verticalAlign=middle implements=mx.controls.listClasses.IDropInListItemRenderer, mx.core.IFactory mx:Metadata [Event(name=AddPlaylistClip)] /mx:Metadata mx:Script ![CDATA[ import mx.controls.dataGridClasses.DataGridListData; import mx.controls.listClasses.BaseListData; import mx.events.FlexEvent; private var _data:Object; private var _listData : BaseListData; public function newInstance():* { return new ButtonAddToPlaylist(); } override public function set data(value:Object):void { _data = value; invalidateProperties(); dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE)); } override public function get data():Object { return _data; } public function get listData() : BaseListData { return _listData; } public function set listData( value : BaseListData ) : void { _listData = value; } override protected function commitProperties():void { super.commitProperties(); } override protected function updateDisplayList (unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList (unscaledWidth,unscaledHeight); } private function AddClipToPlaylist():void { dispatchEvent(new AddPlaylistClipEvent(data)); } ]] /mx:Script mx:Image source=@Embed('images/add.png') buttonMode=true toolTip=Add this clip to the current Playlist height=16 width=16
[flexcoders] mx:repeater RangeError when recycleChildren=true
Hi, I'm having an issue using an mx:repeater to display the tabs inside an mx:TabNavigator. Using recycleChildren=true seems to have a problem when the underlying dataProvider (an ArrayCollection) is changed. I've reduced the problem down to the following code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var a:ArrayCollection = new ArrayCollection([1,2,3]); ]] /mx:Script mx:Button click=a.addItem(4) label=Add tab / mx:TabNavigator mx:Repeater id=rptr dataProvider={a} recycleChildren=true mx:VBox label={rptr.currentItem.valueOf()} width=200 / /mx:Repeater /mx:TabNavigator /mx:Application Clicking the button results in RangeError: Error #2006: The supplied index is out of bounds. When recycleChildren=false I don't get the error. Has anybody got any suggestions on this one? Cheers, Stu
[flexcoders] Trigger updateDisplayList
What are the ways of triggering that event programmatically? Thanks
[flexcoders] Re: remoteObject questions (just to understand it better)
As I understand this (And I am no expert yet), you can explicitly set parameters for RemoteObjects or you can set them using XML (In files like services-config.xml and remoting-config.xml). In your case you don't have any config file(s) so the destination would be meaningless. Normally this would generate an error but as you set the other parameters explicitly, the destination parameter is ignored. If you remove the endpoint parameter you will see the error - something like Destination HelloWorldDDD not found and the application does not set any default destinations. --- In flexcoders@yahoogroups.com, dnk [EMAIL PROTECTED] wrote: Hi there, just a few quick questions regarding remoteObject (trying to understand it better now that I have it running) 1) What is the purpose of the destination parameter? I have a working remoteObject (with AMFPHP) and I just put anything in the destination parameter, and it always works. Now obviously if i remove it, the remoteObject stops working. In my examples, I did it without a services-config.xml file. IE - mx:RemoteObject id=roService showBusyCursor=true source=HelloWorld destination=HelloWorldDDD endpoint=http://www.domain.com:80/amfphp/gateway.php/ 2) With imports, what is the difference between: mx.rpc.remoting.mxml.RemoteObject and mx.rpc.remoting.RemoteObject 3) In my services.mxml file I have: ?xml version=1.0 encoding=utf-8? cairngorm:ServiceLocator xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:cairngorm=com.adobe.cairngorm.business.* mx:RemoteObject id=roService showBusyCursor=true source=HelloWorld destination=HelloWorldDDD endpoint=http://apps.bajamining.com:80/gw/gateway.php/ /cairngorm:ServiceLocator Which one of those RemoteObjects is it using? (SInce there are no imports)? 4) Does it default to AMF3? Thanks! Dustin
Re: [flexcoders] Trigger updateDisplayList
Hi, updateDisplayList() is a method. You would call invalidateDisplayList() and the next frame, updateDisplayList() will be called AFTER measure() if invalidateSize() was called OR measurements became invalid for some other reason. Mike On Tue, Jul 22, 2008 at 8:25 AM, markgoldin_2000 [EMAIL PROTECTED] wrote: What are the ways of triggering that event programmatically? Thanks -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] How to Print the text in a Text Area Component
I am trying to print the contents of a text area component. If I just do addPage(Component Name) it works but it prints the whole conponent including the scrollbars, on the page. I just want the text. If I try to put the component name.text in addPage() (i.e. addPage (TextArea.text), I get a 1067: Implicit coercion of a value of type String to an unrelated type flash.display:Sprite. error. Does anyone know how to do this? Any help would be greatly appreciated. Dave
[flexcoders] Preloading a config XML along with Flex framework preloader
Hi All, I need to pre-load some configuration XML before I could paint my application stage. Is there any way I can pre-load this along with the Flex framework and app loading process? (When we see the Loading box animation) Best, Vipin
Re: [flexcoders] accessing styles of children
Thanks for explaining. IStyleClient(videoButtonBox.getChildAt(i)).setStyle(…). I didn't think it was an I, I actually tried |StyleClient(videoButton.. Scott Bachman wrote: Alex's email clearly said IStyleClient with a capital I in front. You'll also need to import it at the top of your file if FlexBuilder doesn't do it for you: import mx.styles.IStyleClient. Since getChildAt returns a generic DisplayObject, you have to cast it to a more specific type to be able to call setStyle. If none of this makes sense to you, you probably need to do some reading up on the object-oriented programming concept called polymorphism. Scott On Tue, Jul 22, 2008 at 2:34 AM, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: for (var i:int = 0; i numChildren; i++) { StyleClient(videoButtonBox.getChildAt(i)).setStyle(backgroundColor,#FF) } 1180: Call to a possibly undefined method StyleClient. Thanks, but I don't get it. Please explain. Alex Harui wrote: It is if you cast everything correctly IStyleClient(videoButtonBox.getChildAt(i)).setStyle(…). The compile is trying to help you out so the return types of methods and properties are important From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2008 10:14 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders] accessing styles of children videoButtonBox. is an VBox with HBoxes for children. How do I change styles as I iterate thru children? videoButtonBox.getChildAt(i).setStyle() is not a function. var numChildren:Number = videoButtonBox.numChildren; for (var i:int = 0; i numChildren; i++) { videoButtonBox.getChildAt(i) } This page talks about rawChildren as a way to access styles, but I have read it 10 times and I have no idea what they are trying to describe. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links (Yahoo! ID required) mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.5.3/1565 - Release Date: 7/21/2008 6:36 PM -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: referencing embedded images inside AdvancedDataGridGroupItemRenderer
--- In flexcoders@yahoogroups.com, Brandon Krakowsky [EMAIL PROTECTED] wrote: I've embedded some images like so: [Embed(source=images/image1.png)] private var image1:Class; [Embed(source=images/image2.png)] private var image2:Class; I can't seem to reference these class names from a String like so: override public function set data(value:Object):void { img = new Image; img.source = getDefinitionByName(value.icon) as Class; //getDefinitionByName is part of flash.utils package img.width = 22; img.height = 22; addChild(img); } I also tried the following: value.icon as Class Class(value.icon) Why not just use an iconFunction? -Amy
[flexcoders] XMLListCollection and swapping DataGrid items
I have a datagrid that is fed by an XMLListCollection dataprovider. I am trying to impliment a 'move up' / 'move down' feature with arrows so a user can reorder rows in the datagrid. I know reordering can be done via drag and drop, but does anyone have an example of what would effectively be a method looking like as follows: XMLListCollection.swapItems(item1Index:int, item2Index:int); //where the method effectively takes the items at the given indexes and swaps them round The idea being that you change the List Collection and the datagrid reflects these changes automatically (as is standard behaviour with dataproviders). I can ALMOST get it working but i think it doesnt like more than one change to the collection at once and it may require a eventListener for the second part of teh swap. Any ideas / examples?
[flexcoders] Re: Filter an ArrayCollection into an ItemRender
Lets try to add more info. Theres a TileList with a ItemRenderer. The ItemRenderer code is: mx:Script ![CDATA[ import mx.core.Application; import mx.collections.ArrayCollection; [Bindable] private var collectionData:ArrayCollection; private function init():void { collectionData = MyArrayCollection collectionData.filterFunction= filterUrl; collectionData.refresh(); } private function filterUrl(item:Object):Boolean { return item.Url == data.Url; } ]] /mx:Script MyArrayCollection has (example)200 arrays with lot of data and some of them (example, 50 of them) have the same url value (url=www.test.com) . The linearChart has as dataprovider collectionData. I want to filter the item renderer (and his linearchart) with this. The problem is that when i launch the app the tilelist and the itemrenderer repeat the same linearchart in all the renderers. I know im close!! Please help! --- In flexcoders@yahoogroups.com, Scott Bachman [EMAIL PROTECTED] wrote: I'm not sure I understand your question. You can certainly refer to data.Url inside the item renderer. If you mean using a filterFunction with data.Url, you would have to apply it inside you're item renderer and most likely make a copy of your original ArrayCollection in each itemRenderer to apply the filterFunction to so that each renderer is filtered without affecting the others. Scott On Tue, Jul 22, 2008 at 4:00 AM, luis_roman_am [EMAIL PROTECTED] wrote: Thanks, Scott. Taking this way, i have another doubt. How can i refer (inside a item renderer) to the data.Url inherited from the dataprovider in the main application (index.mxml)? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Scott Bachman scott.bachman@ wrote: The syntax you tried is e4x (ECMAscript for XML) and only works with XML data. For an ArrayCollection you could use a filterFunction to filter the data. Check out, for instance, http://www.boyzoid.com/blog/index.cfm/2006/10/19/Filtering-Data-in-Flex or the filterFunction property of ArrayCollection in the Flex documentation. Scott On Mon, Jul 21, 2008 at 9:28 AM, luis_roman_am luis_roman_am@ wrote: Hi people! Situation as follows: MYARRAYCOLLECTION (Example fields) - TITLE - URL INDEX.MXML - TILELIST - DataProvider={MyArrayCollection} - ItemRenderer =MyRenderer MYRENDERER.MXML - LABEL (data.TITLE) (WORKS FINE) - LINECHART -DataProvider=Application.application.MyArrayCollection} (PROBLEM HERE) THe problem is: How can i filter linechart inside MYRENDERER.MXML the dataprovider to receive only data for the items with his URL? I tried something like: -DataProvider=Application.application.MyArrayCollection.(@Url=data.Url)} but this throws me the following error: Error #1123: Filter operator not supported on type mx.arraycollections. Please Help!!
[flexcoders] NetConnection, Flex and FMS video problem.
I'm trying to connect to an FMS video stream -- but having no luck. I'm popping Alerts on all the NetStatusHandlers - and I not only get Connection.Success but I also get NetStream.Play.Start as the final alert - but no video is appearing on stage. Also even though I'm making a new Object for the nsClient things aren't being alerted on the on_msMeta stuff -- Can someone PLEASE point out what I'm doing wrong, or show me code that works? Appreciated. -- Current Code below --- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=init() mx:Script ![CDATA[ import mx.utils.ObjectUtil; import flash.display.Sprite; import flash.events.NetStatusEvent; import flash.events.SecurityErrorEvent; import flash.media.Video; import flash.net.NetConnection; import flash.net.NetStream; import flash.events.Event; import mx.controls.Alert; private var connection:NetConnection; private var stream:NetStream; private var streamLink:String = rtmp://scribestud.fc.llnwd.net/ scribestud/_definst_; private var linkName:String = live; private var video:Video = new Video(); public function init():void { NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; connection = new NetConnection(); connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler); connection.connect(streamLink); } private function netStatusHandler(event:NetStatusEvent):void { Alert.show(event.info.code); switch (event.info.code) { case NetConnection.Connect.Success: connectStream(); break; case NetStream.Play.StreamNotFound: Alert.show(Stream not found: + linkName); break; } } private function securityErrorHandler(event:SecurityErrorEvent):void { trace(securityErrorHandler: + event); } private function connectStream():void { stream = new NetStream(connection); stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); var nsClient:Object = {}; nsClient.onMetaData = ns_onMetaData; nsClient.onCuePoint = ns_onCuePoint; video.attachNetStream(stream); stream.play(linkName); stream.client = nsClient; //uic.setActualSize(320,240); uic.addChild(video); // addChild(video); } private function ns_onMetaData(item:Object):void{ Alert.show(got meta); video.width = item.width; video.height = item.height; uic.width = video.width; uic.height = video.height; Alert.show(video.width + : + video.height); } private function ns_onCuePoint(item:Object):void{ Alert.show(cue point); } ]] /mx:Script mx:Panel id=panel visible=true width=320 height=240 mx:UIComponent id=uic width=320 height=240 / /mx:Panel /mx:Application
[flexcoders] Re: Aligning images in TileList itemRenderer
Hi Amy, Thanks for sticking with me. Here is my item renderer code: = ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; horizontalScrollPolicy=off verticalScrollPolicy=off height=250 width=100 mx:Image source=assets/{data.product_image} width=100 verticalAlign=bottom/ /mx:HBox == --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: What is the code of your itemRenderer?
[flexcoders] Re: Aligning images in TileList itemRenderer
Thanks Alex. Can you tak a look at the code in the renderer and tell me if there's anything I should change? == ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; horizontalScrollPolicy=off verticalScrollPolicy=off height=250 width=100 mx:Image source=assets/{data.product_image} width=100 verticalAlign=bottom/ /mx:HBox == --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: No, the dimensions of each renderer will be the same. You can tweak where the image is displayed if it is too small, but if it is too large, it'll probably just overlay something else. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lelander Sent: Saturday, July 19, 2008 3:05 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Aligning images in TileList itemRenderer HI Alex, I'm using TileList. Can the image be contolled within the renderer so that it appears that the images work with different heights, even though the renderer (vbox in my case) is the same size? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: A tileLists renderers must all be the same width/height. Are you using List or TileList? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of lelander Sent: Friday, July 18, 2008 6:56 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Aligning images in TileList itemRenderer Hello! I'm working on an app that allows users to drag variable height images from a List onto a shelf; think of it as something like variable height spines of books on a shelf. All the widths can be the same. Can I align the images to bottom in my custom mxml item renderer? When I set verticalAlign=bottom in the item renderer, the images cut off in the TileList. Thanks in advance for any insights you can give. JP
RE: [flexcoders] Re: Aligning images in TileList itemRenderer
I think you can just do ?xml version=1.0 encoding=utf-8? mx:Image xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml verticalAlign=bottom height=250 width=100 and set the TileList's labelField=product_image From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lelander Sent: Tuesday, July 22, 2008 8:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Aligning images in TileList itemRenderer Thanks Alex. Can you tak a look at the code in the renderer and tell me if there's anything I should change? == ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml horizontalScrollPolicy=off verticalScrollPolicy=off height=250 width=100 mx:Image source=assets/{data.product_image} width=100 verticalAlign=bottom/ /mx:HBox == --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: No, the dimensions of each renderer will be the same. You can tweak where the image is displayed if it is too small, but if it is too large, it'll probably just overlay something else. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of lelander Sent: Saturday, July 19, 2008 3:05 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Aligning images in TileList itemRenderer HI Alex, I'm using TileList. Can the image be contolled within the renderer so that it appears that the images work with different heights, even though the renderer (vbox in my case) is the same size? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: A tileLists renderers must all be the same width/height. Are you using List or TileList? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of lelander Sent: Friday, July 18, 2008 6:56 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Aligning images in TileList itemRenderer Hello! I'm working on an app that allows users to drag variable height images from a List onto a shelf; think of it as something like variable height spines of books on a shelf. All the widths can be the same. Can I align the images to bottom in my custom mxml item renderer? When I set verticalAlign=bottom in the item renderer, the images cut off in the TileList. Thanks in advance for any insights you can give. JP
RE: [flexcoders] HBox verticalGap
mx:Spacer width=20 / Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, July 21, 2008 8:18 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] HBox verticalGap I thought of that but since my box has a border it won't work. I guess I could wrap it in another box but I was hoping to avoid that. Alex Harui wrote: paddingTop
RE: [flexcoders] Re: Highlight cell from context menu
Most folks select instead of highlight. There should be examples in the archives From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Tuesday, July 22, 2008 3:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Highlight cell from context menu Not a chance? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , markgoldin_2000 [EMAIL PROTECTED] wrote: Is there a way of highlighting a cell that was right mouse clicked on right before contextmenu showed up? Thanks
[flexcoders] Re: Smooth main chart drag effect on Google Finance
Just a quick follow up to this. You can create a smooth-drag effect by changing the values on the axes rather than modifying the dataset for the chart - this will give a pixel-by-pixel drag effect. See Ely Greenfield's Interactive Bubble Chart at [1] for an example. There are a few downsides though: 1) Edges are only drawn between points within the chart, so you always have a gap between the last point and the edge of the chart. 2) There's a problem with the default AxisRenderer that this technique exposes. I've made another post about that at [2]. The example in that post uses a BubbleChart, but all the principals apply to LineCharts too. Matt. [1] http://www.quietlyscheming.com/blog/charts/interactive-bubble-chart/ [2] http://tech.groups.yahoo.com/group/flexcoders/message/118194
Re: [flexcoders] Re: Filter an ArrayCollection into an ItemRender
You need to call collectionData.refresh() when the data property changes for the itemRenderer. One way to do it would be: mx:Binding source=data destination=dataChanged/ then add the method: private function dataChanged(data:Object):void { collectionData.refresh(); } Hopefully that does it. Scott On Tue, Jul 22, 2008 at 10:23 AM, luis_roman_am [EMAIL PROTECTED] wrote: Lets try to add more info. Theres a TileList with a ItemRenderer. The ItemRenderer code is: mx:Script ![CDATA[ import mx.core.Application; import mx.collections.ArrayCollection; [Bindable] private var collectionData:ArrayCollection; private function init():void { collectionData = MyArrayCollection collectionData.filterFunction= filterUrl; collectionData.refresh(); } private function filterUrl(item:Object):Boolean { return item.Url == data.Url; } ]] /mx:Script MyArrayCollection has (example)200 arrays with lot of data and some of them (example, 50 of them) have the same url value (url=www.test.com) . The linearChart has as dataprovider collectionData. I want to filter the item renderer (and his linearchart) with this. The problem is that when i launch the app the tilelist and the itemrenderer repeat the same linearchart in all the renderers. I know im close!! Please help! --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Scott Bachman [EMAIL PROTECTED] wrote: I'm not sure I understand your question. You can certainly refer to data.Url inside the item renderer. If you mean using a filterFunction with data.Url, you would have to apply it inside you're item renderer and most likely make a copy of your original ArrayCollection in each itemRenderer to apply the filterFunction to so that each renderer is filtered without affecting the others. Scott On Tue, Jul 22, 2008 at 4:00 AM, luis_roman_am [EMAIL PROTECTED] wrote: Thanks, Scott. Taking this way, i have another doubt. How can i refer (inside a item renderer) to the data.Url inherited from the dataprovider in the main application (index.mxml)? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Scott Bachman scott.bachman@ wrote: The syntax you tried is e4x (ECMAscript for XML) and only works with XML data. For an ArrayCollection you could use a filterFunction to filter the data. Check out, for instance, http://www.boyzoid.com/blog/index.cfm/2006/10/19/Filtering-Data-in-Flex or the filterFunction property of ArrayCollection in the Flex documentation. Scott On Mon, Jul 21, 2008 at 9:28 AM, luis_roman_am luis_roman_am@ wrote: Hi people! Situation as follows: MYARRAYCOLLECTION (Example fields) - TITLE - URL INDEX.MXML - TILELIST - DataProvider={MyArrayCollection} - ItemRenderer =MyRenderer MYRENDERER.MXML - LABEL (data.TITLE) (WORKS FINE) - LINECHART -DataProvider=Application.application.MyArrayCollection} (PROBLEM HERE) THe problem is: How can i filter linechart inside MYRENDERER.MXML the dataprovider to receive only data for the items with his URL? I tried something like: -DataProvider=Application.application.MyArrayCollection.(@Url=data.Url)} but this throws me the following error: Error #1123: Filter operator not supported on type mx.arraycollections. Please Help!!
RE: [flexcoders] HBox verticalGap
Sorry, ignore this, I didn't see the other post. since my box has a border it won't work are you sure that is correct? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Tuesday, July 22, 2008 11:28 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] HBox verticalGap mx:Spacer width=20 / Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, July 21, 2008 8:18 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] HBox verticalGap I thought of that but since my box has a border it won't work. I guess I could wrap it in another box but I was hoping to avoid that. Alex Harui wrote: paddingTop
RE: [flexcoders] XMLListCollection and swapping DataGrid items
If you are moving up or down (resequencing), then you don't want to swap. You should be able to use removeItemAt(), which returns a reference to the item removed, and addItemAt() to re-insert it. You may need to manipulate the indexes if you move an item down, because removing the item causes the indexes to adjust. If you really want to swap, you should be able to do that also, again paying attention to the indexes. If you use the AC API, the UI should refresh itself. What issues are you having? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tony.grimes57 Sent: Tuesday, July 22, 2008 10:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] XMLListCollection and swapping DataGrid items I have a datagrid that is fed by an XMLListCollection dataprovider. I am trying to impliment a 'move up' / 'move down' feature with arrows so a user can reorder rows in the datagrid. I know reordering can be done via drag and drop, but does anyone have an example of what would effectively be a method looking like as follows: XMLListCollection.swapItems(item1Index:int, item2Index:int); //where the method effectively takes the items at the given indexes and swaps them round The idea being that you change the List Collection and the datagrid reflects these changes automatically (as is standard behaviour with dataproviders). I can ALMOST get it working but i think it doesnt like more than one change to the collection at once and it may require a eventListener for the second part of teh swap. Any ideas / examples?
Re: [flexcoders] Re: referencing embedded images inside AdvancedDataGridGroupItemRenderer
Amy: It seems easier this way since I'm using a dataprovider which is updated often, changing the icon. Right now I'm using a switch statement which tests value.icon and returns the proper embedded image class name. I'm confused as to why I can't convert the String the image1 to Class image1. Seems easy enough, but nothing works. Thanks, Brandon - Original Message From: Amy [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, July 22, 2008 10:04:34 AM Subject: [flexcoders] Re: referencing embedded images inside AdvancedDataGridGroupItemRenderer --- In [EMAIL PROTECTED] ups.com, Brandon Krakowsky krakowskyb@ ... wrote: I've embedded some images like so: [Embed(source= images/image1. png)] private var image1:Class; [Embed(source= images/image2. png)] private var image2:Class; I can't seem to reference these class names from a String like so: override public function set data(value:Object) :void { img = new Image; img.source = getDefinitionByName (value.icon) as Class; //getDefinitionByNa me is part of flash.utils package img.width = 22; img.height = 22; addChild(img) ; } I also tried the following: value.icon as Class Class(value. icon) Why not just use an iconFunction? -Amy
[flexcoders] String Data Type Maximum Size
What is the maximum size of the String data type? Thanks, JB
[flexcoders] Re: changing project settings
Just add config files to the project and change your compiler settings to point to the config file(s)... or Create RemoteObject instances and explicitly set the properties. All that the setting does in the project wizard is add the most used items (Like config files) to your project and setup the compiler settings for you. --- In flexcoders@yahoogroups.com, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: Hi all, i started a project and at the time i didn't need a server, but now i do. is there a way to modify the settings to use a server after the fact? thanks and cheers percy
[flexcoders] PrintAdvancedDataGrid Infuriation!!
Folks, I have a strange one here. I am attempting to use the PrintAdvancedDataGrid control to print my grid. When I copy and run the entire example on adobe's website (http://livedocs.adobe.com/flex/3/html/help.html?content=printing_5.html) and run it locally...then print...it works fine. But when I paste the function into my own code, tie it to my ADG and print, I get a gray box. The only difference I can see between their example and my code is that they are using an array for their data source while I have an XMLList. Anyone have ANY idea what the heck is going on here? I found a posting on the web where someone else ran into this problem but there was no resolution. Thanks, Adrian
[flexcoders] Re: Filter an ArrayCollection into an ItemRender
--- In flexcoders@yahoogroups.com, luis_roman_am [EMAIL PROTECTED] wrote: Lets try to add more info. Theres a TileList with a ItemRenderer. The ItemRenderer code is: mx:Script ![CDATA[ import mx.core.Application; import mx.collections.ArrayCollection; [Bindable] private var collectionData:ArrayCollection; private function init():void { collectionData = MyArrayCollection collectionData.filterFunction= filterUrl; collectionData.refresh(); } private function filterUrl(item:Object):Boolean { return item.Url == data.Url; } ]] /mx:Script You don't say how your variable MyArrayCollection is being set, but I suspect you're just using a reference to the _same_ ArrayCollection in all itemRenderers. Try something like this: collectionData= new ArrayCollection(MyCollection.source); HTH; Amy
[flexcoders] asdoc - generate core framework documentation
Hi, I have tried to generate the documentation in the core framework using the following command as descriped in the flex 3 documentation: asdoc -source-path frameworks -namespace http://framework frameworks/core-framework-manifest.xml -doc-namespaces http://framework The problem is, that there is no core-framework-manifest.xml file in my 3.0.0 flex sdk. Can anybody tell me how to generate these docs? I have managed to generate the documentation for my own projects, but I want to include the docs for the core framework too. Thanks John
[flexcoders] Re: Highlight cell from context menu
Select is fine too. All I want is to change a color of a cell that was clicked with a right mouse, thus when a user selects an action from the popup menu the cell will become diffrent in color. Searched this forum, did not find anything. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Most folks select instead of highlight. There should be examples in the archives From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Tuesday, July 22, 2008 3:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Highlight cell from context menu Not a chance? --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , markgoldin_2000 markgoldin_2000@ wrote: Is there a way of highlighting a cell that was right mouse clicked on right before contextmenu showed up? Thanks
[flexcoders] 3D Column Chart - Is there a way to set the item update order?
I'm building a 3D column chart and am finding that I need to draw the columns in a specific order other than the default, which appears to be by series. Things go just fine until the z-order depth is greater than the distance between the series. Once that occurs, the potential exists for things to go south. Images of the problem are here: http://picasaweb.google.com/eddieberman/Flex/photo#5225608935449236386 and the preferred result here: http://picasaweb.google.com/eddieberman/Flex/photo#5225608932592265602 My question is - Is there a way to define, or otherwise take over the drawing order of the ColumnSeriesItems? I want to draw the columns in the order they appear from left to right, but Flex seems to want to draw by order of series - first Series1, then Series2, then Series3, etc. In looking through the Adobe source code, I haven't found a way around this - yet. Thanks in advance for anyone who might have clues to share.
[flexcoders] Re: referencing embedded images inside AdvancedDataGridGroupItemRenderer
--- In flexcoders@yahoogroups.com, Brandon Krakowsky [EMAIL PROTECTED] wrote: Amy: It seems easier this way since I'm using a dataprovider which is updated often, changing the icon. Right now I'm using a switch statement which tests value.icon and returns the proper embedded image class name. I'm confused as to why I can't convert the String the image1 to Class image1. Seems easy enough, but nothing works. That's what iconFunctions are for. But you could try img.source = this[value.icon]; HTH; Amy
[flexcoders] Re: Aligning images in TileList itemRenderer
--- In flexcoders@yahoogroups.com, lelander [EMAIL PROTECTED] wrote: Hi Amy, Thanks for sticking with me. Here is my item renderer code: = ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; horizontalScrollPolicy=off verticalScrollPolicy=off height=250 width=100 mx:Image source=assets/{data.product_image} width=100 verticalAlign=bottom/ /mx:HBox == I see you're hard-coding the width and height of your itemrenderer. Is that sufficiently large to adequately display the largest image in the data set? If so, it might be that something has gone wonky with the way the list is measuring your component (lists often adjust this depending on the size constraints you've used). You may have to override measure() and reaffirm to the List that this is the size you actually do want. This will look something like: override protected function measure():void{ super.measure(); measuredWidth=this.getExplicitOrMeasuredWidth (); measuredHeight=this.getExplicitOrMeasuredHeight(); } HTH; Amy
[flexcoders] Real Multicolumn Form in Flex
Hi all, Does anyone have already implemented a multicolumn form in Flex? Before you point me to Google (GIYF), I already tried all solutions available, including the most known ones: - http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailsproductId=2postId=9644 - http://jc.pontaza.com/wp/?p=77 - My own Let me first describe the each ones: Adobe's: It plays really nice, until you need to define an item that occupies more than a single row. There's no colSpan (as in HTML), but there's rowSpan for column. Potanza's: Weird, really weird solution. It only accepts column organization if you use its FormGroup class. Inspecting source, you'll see that FormGroup extends Form, and the entire idea behind a single Form is down. My automate script pick each FormItem (or any other class that I define) and incorporate all children picking its value depending on children class instance. Sounds big and yes, it is. The issue is that this automation ignores other Forms. So if you define a nested form inside the one you're calling, all fields internally defined are ignored. Mine: I used a simple HBox and made Box children inside. It did everything I wanted, except label spacing. The form inputs does not left align to the higher one, and becomes horrible. I switched then to Grid, and the same issue happened again. Now, I ask the same question again does anyone have already implemented a *real* multicolumn form in Flex? If possible could you share the source or swc file? Thanks in advance, Best regards, -- Guilherme Blanco - Web Developer CBC - Certified Bindows Consultant Cell Phone: +55 (16) 9166-6902 MSN: [EMAIL PROTECTED] URL: http://blog.bisna.com Rio de Janeiro - RJ/Brazil
[flexcoders] Re: Real Multicolumn Form in Flex
Also, I forgot to mention that Adobe's solution does not respect the width of each column. In my test, the first column width around 60% and the second column 40%. Regards, On Tue, Jul 22, 2008 at 2:02 PM, Guilherme Blanco [EMAIL PROTECTED] wrote: Hi all, Does anyone have already implemented a multicolumn form in Flex? Before you point me to Google (GIYF), I already tried all solutions available, including the most known ones: - http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailsproductId=2postId=9644 - http://jc.pontaza.com/wp/?p=77 - My own Let me first describe the each ones: Adobe's: It plays really nice, until you need to define an item that occupies more than a single row. There's no colSpan (as in HTML), but there's rowSpan for column. Potanza's: Weird, really weird solution. It only accepts column organization if you use its FormGroup class. Inspecting source, you'll see that FormGroup extends Form, and the entire idea behind a single Form is down. My automate script pick each FormItem (or any other class that I define) and incorporate all children picking its value depending on children class instance. Sounds big and yes, it is. The issue is that this automation ignores other Forms. So if you define a nested form inside the one you're calling, all fields internally defined are ignored. Mine: I used a simple HBox and made Box children inside. It did everything I wanted, except label spacing. The form inputs does not left align to the higher one, and becomes horrible. I switched then to Grid, and the same issue happened again. Now, I ask the same question again does anyone have already implemented a *real* multicolumn form in Flex? If possible could you share the source or swc file? Thanks in advance, Best regards, -- Guilherme Blanco - Web Developer CBC - Certified Bindows Consultant Cell Phone: +55 (16) 9166-6902 MSN: [EMAIL PROTECTED] URL: http://blog.bisna.com Rio de Janeiro - RJ/Brazil -- Guilherme Blanco - Web Developer CBC - Certified Bindows Consultant Cell Phone: +55 (16) 9166-6902 MSN: [EMAIL PROTECTED] URL: http://blog.bisna.com Rio de Janeiro - RJ/Brazil
[flexcoders] CheckBox Question, want to confirm before toggle
When someone clicks on the checkbox, I want them to confirm before the checkbox is toggled. Basically, how can I have the click on the checkbox not toggle it, and ill toggle it myself... ?
[flexcoders] Self-resizing flex apps
Let's say I want to have a flex app expand to include new content. One way to do this is to make a call to JavaScript to resize the container. Is there a way to do it entirely within the app?
[flexcoders] How do I make a flex app transparent?
Is there a way to make a flex app transparent, and have its events pass through to underlying javascript? For example, there's a flex app that takes up the entire window. There are a couple controls in one corner, but otherwise, you can see through the app to the html page below. The html page contains a button, which can be pressed, dispite the app on top of it. Thanks
RE: [flexcoders] Re: Highlight cell from context menu
What did you search for? I think right-click might find something. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Tuesday, July 22, 2008 9:31 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Highlight cell from context menu Select is fine too. All I want is to change a color of a cell that was clicked with a right mouse, thus when a user selects an action from the popup menu the cell will become diffrent in color. Searched this forum, did not find anything. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Most folks select instead of highlight. There should be examples in the archives From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of markgoldin_2000 Sent: Tuesday, July 22, 2008 3:39 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Highlight cell from context menu Not a chance? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com , markgoldin_2000 markgoldin_2000@ wrote: Is there a way of highlighting a cell that was right mouse clicked on right before contextmenu showed up? Thanks
RE: [flexcoders] String Data Type Maximum Size
Pretty sure there isn't one, you'll just run out of memory From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jurgen Beck Sent: Tuesday, July 22, 2008 9:00 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] String Data Type Maximum Size What is the maximum size of the String data type? Thanks, JB
Re: [flexcoders] HBox verticalGap
It puts a gap between the top border and the contents, (instead of between the top border and the top of the application) which is doesn't work for me. I wrapped it in another box without a border and gave it a top padidng. That works, but it seems like a hack. Tracy Spratt wrote: “since my box has a border it won't work” are you sure that is correct? Tracy -- 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 * 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] How do I make a flex app transparent?
You should be able to, as flash can by setting an attribute in the html I don't remember what it is at the moment On Jul 22, 2008, at 9:40 AM, whatabrain wrote: Is there a way to make a flex app transparent, and have its events pass through to underlying javascript? For example, there's a flex app that takes up the entire window. There are a couple controls in one corner, but otherwise, you can see through the app to the html page below. The html page contains a button, which can be pressed, dispite the app on top of it. Thanks
RE: [flexcoders] HBox verticalGap
Ah, ok, that would be controlled by the parent container. Wrapping in another box is probably the best solution. Canvas would work too. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 1:38 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] HBox verticalGap It puts a gap between the top border and the contents, (instead of between the top border and the top of the application) which is doesn't work for me. I wrapped it in another box without a border and gave it a top padidng. That works, but it seems like a hack. Tracy Spratt wrote: since my box has a border it won't work are you sure that is correct? Tracy -- 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
Re: [flexcoders] Re: changing project settings
it appears easier to do if FB3 than FB2...using remoteobject means you need a destination...which is set in the config...is there a way to specify a destination without it being in a config...if so that would work out for me... thanks percy On Tue, Jul 22, 2008 at 8:53 AM, valdhor [EMAIL PROTECTED] wrote: Just add config files to the project and change your compiler settings to point to the config file(s)... or Create RemoteObject instances and explicitly set the properties. All that the setting does in the project wizard is add the most used items (Like config files) to your project and setup the compiler settings for you. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: Hi all, i started a project and at the time i didn't need a server, but now i do. is there a way to modify the settings to use a server after the fact? thanks and cheers percy
[flexcoders] Background radial gradient?
Hello. Is it possible to assign a radial gradient to the application? Thanks.
[flexcoders] parallel coordinates component with Flex3
Hi, I'm looking for a start point on how to implement a paraller coordinates component for multidimensional visualization with Flex 3 and AS. So far, I've found only Java examples. Someone working on something similar or in the same problem? Thanks, Marcela
Re: [flexcoders] Browser scrollbars not working properly with percentage sizing of application
Did you have any luck figuring out a solution? Also interested in this On Mon, Apr 28, 2008 at 6:54 PM, dannyvenier [EMAIL PROTECTED] wrote: Hi, I'm hoping someone else has suffered through this problem and can save me some additional agony. My objective is to have a flex app use 100% sizing to maximize to size of browser, and to set min-height and min-width to set a point at which the application content does not shrink any further and scrollbars on the browser kick in. Sounds simple? Here's some sample application code setting up an app this way, with a VBox inside the application to hold content of some kind: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx= http://www.adobe.com/2006/mxml; layout= absolute horizontalScrollPolicy= off verticalScrollPolicy= off width= 100% height= 100% minWidth= 950 minHeight= 600 mx:VBox x= 10 y=10 width= 100% height= 100% verticalAlign= top /mx:VBox /mx:Application I have not messed much with the default html-template that is generated. I have added a min-height and min-width style property to the body style. style body { min-height: 600px; min-width: 950px; } / style The result is not as I expected- the browser (firefox) opens and when larger than the minimum width and height specified, it has no scrollbars, which is as expected. When it is dragged below the minimum size thresholds, scrollbars appear in both vertical and horizontal directions. So far, so good. However, when I shrink the window in the vertical direction, then use the scrollbar to scroll to the lower content, anything below (in the vertical direction) the current size of the browser has been clipped and I get whitespace. Scrolling horizontally works fine and I can navigate out to the right but the vertical scrolling is hosed. I tried using the overflow:scroll and overflow:auto in the html template but it bought me nothing. The outcome was only partly consistent between IE7 and firefox, at least for this set of properties and conditons. Neither one worked properly. IE often had the scrollbar rails, but not the control slider part. My objective is to have the scrollbars operating in the browser rather than in the application container itself. Has anyone managed to get browser scrollbars working for this kind of 100% sizing flex app? If so, I'd really appreciate any insight. thanks, Danny
RE: [flexcoders] runtime localization
keeping Flex and LCDS locale related swc on server SWCs are used only at compile time. Are you actually trying to load resource module SWFs? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Parag Metha Sent: Monday, July 21, 2008 9:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] runtime localization Hi All, I am working on runtime localization. I am using Flex 3 and LCDS 2.5. I have few resource bundles specific to application along with some resource bundles in Flex SDK and LCDS. When compile all resource bundles (specific to my app, Flex, LCDS) into a single swf/swc, the application is works properly even in runtime it is able to find all resource bundles. But, When compile only application specific resource bundles into a swf/swc and keeping Flex and LCDS locale related swc on server and try to run the application it is giving error; Error: Could not find resource bundle data At mx.resources::ResourceBundle$/getResourceBundle()[C:\Work\flex\sdk\frame works\projects\framework\src\mx\resources\ResourceBundle.as:143] at mx.data.utils::ResourceTranslator$cinit() at global$init()[C:\depot\flex\branches\enterprise_bridgeman\frameworks\mx\ data\utils\ResourceTranslator.as:30] at mx.data.utils::SerializationProxy$cinit() at global$init()[C:\depot\flex\branches\enterprise_bridgeman\frameworks\mx\ data\utils\SerializationProxy.as:51] at _RIA_FlexInit$/init() at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::d ocFrameHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\manag ers\SystemManager.as:2324] I am looking for compiling only application specific resource bundle and want to use Flex and LCDS locale specific resource bundle as it is. Have any one came across such situation. Any help will be appreciated. Thanks in advance. Regards, Parag DISCLAIMER == This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
RE: [flexcoders] what is vellum in flex4?
This is the new Text Component Library (formerly known as Vellum; name still subject to change). This library is a set of AS3 classes, currently packaged into the SWCs named text_xxx.swc, that sit on top of the Flash Text Engine (FTE) in Flash Player 10. Together these replace the old TextField, and they support improved typography, bidirectional (left-to-right and right-to-left) text, and an object-oriented text model. All new Gumbo components use these new-and-improved text classes rather than TextField. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sherif Abdou Sent: Monday, July 21, 2008 9:39 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] what is vellum in flex4? the namespace is vellum:http://vellum/prerelease, i spent an hour trying to just see what i can do with it but nothing is going up on the screen. it looks like html tags that are native in flash player but i have no idea how to use it since i searched and there is nothing on it. Anyone know how to use it? and also the xmlns:edit=text.edit.* namespace tried and nothing goes on screen.
[flexcoders] PrintAdvancedDataGrid Infuriation!! - More Information
Some additional information: Just for shiggles, I pulled the example data source and panel creation into my program using the same function and the print of the example ADG worked fine. The only difference between their data and mine is that they are using an ArrayCollection while I am using XML. I've even changed it to an XMLListCollection and the print still gives me a gray box. Here is my data creation: [Bindable] private var memberReportDataFeed:XMLListCollection; private function reportDataFeedResult(event:ResultEvent):void { memberRpt.dataProvider = event.result; } Clearly the problem is not in the function but rather a conflict in data types or so it seems. I have to use the XML as its data coming from our .net side via a web service. Any ideas here would be greatly appreciated. Adrian Folks, I have a strange one here. I am attempting to use the PrintAdvancedDataGrid control to print my grid. When I copy and run the entire example on adobe's website (http://livedocs.adobe.com/flex/3/html/help.html?content=printing_5.html) and run it locally...then print...it works fine. But when I paste the function into my own code, tie it to my ADG and print, I get a gray box. The only difference I can see between their example and my code is that they are using an array for their data source while I have an XMLList. Anyone have ANY idea what the heck is going on here? I found a posting on the web where someone else ran into this problem but there was no resolution. Thanks, Adrian
[flexcoders] Re: changing project settings
I don't normally do it that way but yes, just set the source and the endpoint and Bob's your auntie ;-} --- In flexcoders@yahoogroups.com, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: it appears easier to do if FB3 than FB2...using remoteobject means you need a destination...which is set in the config...is there a way to specify a destination without it being in a config...if so that would work out for me... thanks percy On Tue, Jul 22, 2008 at 8:53 AM, valdhor [EMAIL PROTECTED] wrote: Just add config files to the project and change your compiler settings to point to the config file(s)... or Create RemoteObject instances and explicitly set the properties. All that the setting does in the project wizard is add the most used items (Like config files) to your project and setup the compiler settings for you. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, [p e r c e p t i c o n] percepticon@ wrote: Hi all, i started a project and at the time i didn't need a server, but now i do. is there a way to modify the settings to use a server after the fact? thanks and cheers percy
Re: [flexcoders] Re: Filter an ArrayCollection into an ItemRender
You need to call collectionData.refresh() when the data property changes for the itemRenderer. One way to do it would be: I always wonder what's the best practice for this. I would think that collections would have this built into them... why would one want to put a filter function on a collection and not use it when the collection was updated/changed? At the very least, it seems like a good candidate for a flag (refreshOnChange, for example). mx:Binding source=data destination=dataChanged/ then add the method: private function dataChanged(data:Object):void { collectionData.refresh(); } I thought I had seen something like this but couldn't find a mention of it in the docs for the binding tag... so, destination can be a method that's called when data is changed? Does it need to be a setter (like BindingUtils)? Troy.
[flexcoders] how to override a public var, or put it in an interface?
I want to make a class that works with both DataGridColumn and AdvancedDataGridColumn. Each of these has a dataField property. I have subclassed each, and they both implement a common interface. In the interface, I have function set dataField(value:String):void function get dataField():String I get the error Interface method get dataField ... is implemented with an incompatible signature So, if I try to override it in the subclass, I get incompatible override Is there a good way to do this? I guess I could leave it out of the interface and cast it as an object to work with dataField, but that's kind of lame.
[flexcoders] Re: how to override a public var, or put it in an interface?
Oh, I forgot to mention. The reason why the interface doesn't work is because it was implemented as a public var instead of an accessor. On Tue, Jul 22, 2008 at 12:50 PM, Sean Clark Hess [EMAIL PROTECTED] wrote: I want to make a class that works with both DataGridColumn and AdvancedDataGridColumn. Each of these has a dataField property. I have subclassed each, and they both implement a common interface. In the interface, I have function set dataField(value:String):void function get dataField():String I get the error Interface method get dataField ... is implemented with an incompatible signature So, if I try to override it in the subclass, I get incompatible override Is there a good way to do this? I guess I could leave it out of the interface and cast it as an object to work with dataField, but that's kind of lame.
RE: [flexcoders] CheckBox Question, want to confirm before toggle
There's probably a way involving stopImmediatePropagation, but why not just let them check it and then confirm and uncheck it if not confirmed? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tchredeemed Sent: Tuesday, July 22, 2008 10:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] CheckBox Question, want to confirm before toggle When someone clicks on the checkbox, I want them to confirm before the checkbox is toggled. Basically, how can I have the click on the checkbox not toggle it, and ill toggle it myself... ?
RE: [flexcoders] Re: Filter an ArrayCollection into an ItemRender
In theory, if you have [Bindable] or [Managed] items in the collection, or call itemUpdated appropriately, you do not need to call refresh() again when an item's properties change. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Troy Gilbert Sent: Tuesday, July 22, 2008 11:49 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Filter an ArrayCollection into an ItemRender You need to call collectionData.refresh() when the data property changes for the itemRenderer. One way to do it would be: I always wonder what's the best practice for this. I would think that collections would have this built into them... why would one want to put a filter function on a collection and not use it when the collection was updated/changed? At the very least, it seems like a good candidate for a flag (refreshOnChange, for example). mx:Binding source=data destination=dataChanged/ then add the method: private function dataChanged(data:Object):void { collectionData.refresh(); } I thought I had seen something like this but couldn't find a mention of it in the docs for the binding tag... so, destination can be a method that's called when data is changed? Does it need to be a setter (like BindingUtils)? Troy.
[flexcoders] Re: Self-resizing flex apps
I don't think Flex can do it - but here's something you should look at regarding: http://www.thinkswedish.com/#ContentHolder:feed=blogEntries:0=entriesDa te+1=0+2=20+3=Sep+4=2007 --- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: Let's say I want to have a flex app expand to include new content. One way to do this is to make a call to JavaScript to resize the container. Is there a way to do it entirely within the app?
Re: [flexcoders] Re: Filter an ArrayCollection into an ItemRender
Oops... I misread the source code. Actually, in the one place where I had used it it was bound to an implicit setter, like this: private function set dataChanged(data:Object):void { collectionData.refresh(); } On Tue, Jul 22, 2008 at 2:48 PM, Troy Gilbert [EMAIL PROTECTED] wrote: You need to call collectionData.refresh() when the data property changes for the itemRenderer. One way to do it would be: I always wonder what's the best practice for this. I would think that collections would have this built into them... why would one want to put a filter function on a collection and not use it when the collection was updated/changed? At the very least, it seems like a good candidate for a flag (refreshOnChange, for example). mx:Binding source=data destination=dataChanged/ then add the method: private function dataChanged(data:Object):void { collectionData.refresh(); } I thought I had seen something like this but couldn't find a mention of it in the docs for the binding tag... so, destination can be a method that's called when data is changed? Does it need to be a setter (like BindingUtils)? Troy.
Re: [flexcoders] Re: Filter an ArrayCollection into an ItemRender
But in this case it's not an item in the ArrayCollection that changed, but instead the criteria you want to filter with, so you need to refresh manually, unless I'm missing something. Scott On Tue, Jul 22, 2008 at 3:11 PM, Alex Harui [EMAIL PROTECTED] wrote: In theory, if you have [Bindable] or [Managed] items in the collection, or call itemUpdated appropriately, you do not need to call refresh() again when an item's properties change. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Troy Gilbert *Sent:* Tuesday, July 22, 2008 11:49 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Filter an ArrayCollection into an ItemRender You need to call collectionData.refresh() when the data property changes for the itemRenderer. One way to do it would be: I always wonder what's the best practice for this. I would think that collections would have this built into them... why would one want to put a filter function on a collection and not use it when the collection was updated/changed? At the very least, it seems like a good candidate for a flag (refreshOnChange, for example). mx:Binding source=data destination=dataChanged/ then add the method: private function dataChanged(data:Object):void { collectionData.refresh(); } I thought I had seen something like this but couldn't find a mention of it in the docs for the binding tag... so, destination can be a method that's called when data is changed? Does it need to be a setter (like BindingUtils)? Troy.
[flexcoders] Smooth Marquee
I tried to scroll images from right to left using DHTML, but the scrolling was choppy and it didn't look right. I want to do this in Flex, but I'm not sure where to start. The application needs to; - take a list of images (maybe in an HBox) - smoothly scroll from right to left - repeat the loop after the entire list has been scrolled This application will be a Flex equivalent of the deprecated marquee HTML tag. Has anyone does this before? Any resources online that you could direct me to? Any tips to get started? Thanks!
RE: [flexcoders] Re: how to override a public var, or put it in an interface?
You can't switch a var to a get/set pair. You can override its default value though. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sean Clark Hess Sent: Tuesday, July 22, 2008 11:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: how to override a public var, or put it in an interface? Oh, I forgot to mention. The reason why the interface doesn't work is because it was implemented as a public var instead of an accessor. On Tue, Jul 22, 2008 at 12:50 PM, Sean Clark Hess [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I want to make a class that works with both DataGridColumn and AdvancedDataGridColumn. Each of these has a dataField property. I have subclassed each, and they both implement a common interface. In the interface, I have function set dataField(value:String):void function get dataField():String I get the error Interface method get dataField ... is implemented with an incompatible signature So, if I try to override it in the subclass, I get incompatible override Is there a good way to do this? I guess I could leave it out of the interface and cast it as an object to work with dataField, but that's kind of lame.
Re: [flexcoders] Re: how to override a public var, or put it in an interface?
Thanks Alex. I'm trying to use this interface as a common type. Any way to do that? Right now I have to cast it as an object, or create a wrapper accessor for dataField On Tue, Jul 22, 2008 at 1:30 PM, Alex Harui [EMAIL PROTECTED] wrote: You can't switch a var to a get/set pair. You can override its default value though. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Sean Clark Hess *Sent:* Tuesday, July 22, 2008 11:51 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: how to override a public var, or put it in an interface? Oh, I forgot to mention. The reason why the interface doesn't work is because it was implemented as a public var instead of an accessor. On Tue, Jul 22, 2008 at 12:50 PM, Sean Clark Hess [EMAIL PROTECTED] wrote: I want to make a class that works with both DataGridColumn and AdvancedDataGridColumn. Each of these has a dataField property. I have subclassed each, and they both implement a common interface. In the interface, I have function set dataField(value:String):void function get dataField():String I get the error Interface method get dataField ... is implemented with an incompatible signature So, if I try to override it in the subclass, I get incompatible override Is there a good way to do this? I guess I could leave it out of the interface and cast it as an object to work with dataField, but that's kind of lame.
[flexcoders] Re: Aligning images in TileList itemRenderer
Hi Amy, thanks a ton for your help. It turns out, all I needed to do was make the item renderer out of the image tag instead of enclosing in the vbox.. and presto, all is well. Thanks! I'm off to the races! JP --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, lelander lelander@ wrote: Hi Amy, Thanks for sticking with me. Here is my item renderer code: = ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; horizontalScrollPolicy=off verticalScrollPolicy=off height=250 width=100 mx:Image source=assets/{data.product_image} width=100 verticalAlign=bottom/ /mx:HBox == I see you're hard-coding the width and height of your itemrenderer. Is that sufficiently large to adequately display the largest image in the data set? If so, it might be that something has gone wonky with the way the list is measuring your component (lists often adjust this depending on the size constraints you've used). You may have to override measure() and reaffirm to the List that this is the size you actually do want. This will look something like: override protected function measure():void{ super.measure(); measuredWidth=this.getExplicitOrMeasuredWidth (); measuredHeight=this.getExplicitOrMeasuredHeight(); } HTH; Amy
[flexcoders] Got Error #2032: Stream Error invoking web service for IE6 and IE7
I am using Flex 2.0. I have been getting Error #2032: Stream Error on both IE6 and IE7 (but not Firefox) when I have mulitple UIs up in multiple IE browsers that invoke an operation of a web service. My web service uses Apache Axis 1.2 and it's deployed to jboss server. Here are the steps that will reproduce the #2032 error: 1. Bring up my Flex UI on one IE browser and login successfully. Once logged in sucessfully, the UI will call the getEvents() webservice call with a timeout of 10s. If the server has any updates it will return the results right away. Else, it will wait for 10s to be up and returns with no data to update. After the UI receives the response it will then call getEvents() again. This will just go on indefintely for the UI to get new updates. 2. Bring up my Flex UI on another new IE browser (on the same machine as in step 1) and login succesfully again. Same as in step 1, the UI will call the getEvents() webservice call to get new server updates if any. 3. Using any of the UI (either in step 1 or 2), make some modifications to the data and submit to the server. The modified data got submitted sucessfully. When one of the UIs calls getEvents() it will get Error #2032 in the fault handler. Notes: I used Charles, TCP Monitor, and WireShark and I saw the getEvents() response coming back successfullly with valid SOAP response and the status code is 200 OK. I have searched the web with nothing relevant to this. I have read that maybe it has to do with the famous browser limitation of 2 http connections. If it is, it works fine with Firefox even if I have 5 browsers up. Isn't Firefox has 2 connections limit as well? It works perfectly fine if I have one and only one IE browser per client host.I even changed the http connections limit for IE to 10 and still experiencing the same problem when I have 2 IEs up on the same machine. Any helps/suggestions is greatly APPRECIATED for I have banged my head on this problem for the past 4 days. Thanks, Thu
[flexcoders] Re: Aligning images in TileList itemRenderer
You are my hero. That was it, pretty much! 1000 thank yous! Will you be at MAX? JP --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: I think you can just do ?xml version=1.0 encoding=utf-8? mx:Image xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml verticalAlign=bottom height=250 width=100 and set the TileList's labelField=product_image From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lelander Sent: Tuesday, July 22, 2008 8:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Aligning images in TileList itemRenderer Thanks Alex. Can you tak a look at the code in the renderer and tell me if there's anything I should change? == ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml horizontalScrollPolicy=off verticalScrollPolicy=off height=250 width=100 mx:Image source=assets/{data.product_image} width=100 verticalAlign=bottom/ /mx:HBox == --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: No, the dimensions of each renderer will be the same. You can tweak where the image is displayed if it is too small, but if it is too large, it'll probably just overlay something else. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of lelander Sent: Saturday, July 19, 2008 3:05 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Aligning images in TileList itemRenderer HI Alex, I'm using TileList. Can the image be contolled within the renderer so that it appears that the images work with different heights, even though the renderer (vbox in my case) is the same size? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: A tileLists renderers must all be the same width/height. Are you using List or TileList? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of lelander Sent: Friday, July 18, 2008 6:56 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Aligning images in TileList itemRenderer Hello! I'm working on an app that allows users to drag variable height images from a List onto a shelf; think of it as something like variable height spines of books on a shelf. All the widths can be the same. Can I align the images to bottom in my custom mxml item renderer? When I set verticalAlign=bottom in the item renderer, the images cut off in the TileList. Thanks in advance for any insights you can give. JP
[flexcoders] Re: How do I make a flex app transparent?
I found the answer. Set the wmode parameter to transparent. Now I just need to figure out how to play with the z-order. The underlying javascript is always on top. --- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: Is there a way to make a flex app transparent, and have its events pass through to underlying javascript? For example, there's a flex app that takes up the entire window. There are a couple controls in one corner, but otherwise, you can see through the app to the html page below. The html page contains a button, which can be pressed, dispite the app on top of it. Thanks
RE: [flexcoders] Re: how to override a public var, or put it in an interface?
You'll probably need a wrapper From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sean Clark Hess Sent: Tuesday, July 22, 2008 12:33 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: how to override a public var, or put it in an interface? Thanks Alex. I'm trying to use this interface as a common type. Any way to do that? Right now I have to cast it as an object, or create a wrapper accessor for dataField On Tue, Jul 22, 2008 at 1:30 PM, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: You can't switch a var to a get/set pair. You can override its default value though. From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Sean Clark Hess Sent: Tuesday, July 22, 2008 11:51 AM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders] Re: how to override a public var, or put it in an interface? Oh, I forgot to mention. The reason why the interface doesn't work is because it was implemented as a public var instead of an accessor. On Tue, Jul 22, 2008 at 12:50 PM, Sean Clark Hess [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I want to make a class that works with both DataGridColumn and AdvancedDataGridColumn. Each of these has a dataField property. I have subclassed each, and they both implement a common interface. In the interface, I have function set dataField(value:String):void function get dataField():String I get the error Interface method get dataField ... is implemented with an incompatible signature So, if I try to override it in the subclass, I get incompatible override Is there a good way to do this? I guess I could leave it out of the interface and cast it as an object to work with dataField, but that's kind of lame.
RE: [flexcoders] Re: Aligning images in TileList itemRenderer
Yes and 360Flex in San Jose From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lelander Sent: Tuesday, July 22, 2008 12:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Aligning images in TileList itemRenderer You are my hero. That was it, pretty much! 1000 thank yous! Will you be at MAX? JP --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: I think you can just do ?xml version=1.0 encoding=utf-8? mx:Image xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml verticalAlign=bottom height=250 width=100 and set the TileList's labelField=product_image From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of lelander Sent: Tuesday, July 22, 2008 8:01 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Aligning images in TileList itemRenderer Thanks Alex. Can you tak a look at the code in the renderer and tell me if there's anything I should change? == ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml horizontalScrollPolicy=off verticalScrollPolicy=off height=250 width=100 mx:Image source=assets/{data.product_image} width=100 verticalAlign=bottom/ /mx:HBox == --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: No, the dimensions of each renderer will be the same. You can tweak where the image is displayed if it is too small, but if it is too large, it'll probably just overlay something else. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of lelander Sent: Saturday, July 19, 2008 3:05 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Aligning images in TileList itemRenderer HI Alex, I'm using TileList. Can the image be contolled within the renderer so that it appears that the images work with different heights, even though the renderer (vbox in my case) is the same size? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: A tileLists renderers must all be the same width/height. Are you using List or TileList? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of lelander Sent: Friday, July 18, 2008 6:56 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Aligning images in TileList itemRenderer Hello! I'm working on an app that allows users to drag variable height images from a List onto a shelf; think of it as something like variable height spines of books on a shelf. All the widths can be the same. Can I align the images to bottom in my custom mxml item renderer? When I set verticalAlign=bottom in the item renderer, the images cut off in the TileList. Thanks in advance for any insights you can give. JP
[flexcoders] Changing the color of a textinput
I am creating an textinput and I was wondering how to change the color of it. I am doing this dynamically, here is what I am doing: private var txt:TextInput = new TextInput(); txt.maxChars = 255; addChild(txt); There is no option to change the color, do I have to use css to do this? Thanks, timgerr
Re: [flexcoders] Re: referencing embedded images inside AdvancedDataGridGroupItemRenderer
Amy, I can't seem to get the iconFunction to work with the ADG. As per the docs, This property is ignored by data grid controls. It compiles but it IS in fact ignored. Do you use the groupIconFunction? Thanks again, Brandon - Original Message From: Amy [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, July 22, 2008 12:40:15 PM Subject: [flexcoders] Re: referencing embedded images inside AdvancedDataGridGroupItemRenderer --- In [EMAIL PROTECTED] ups.com, Brandon Krakowsky krakowskyb@ ... wrote: Amy: It seems easier this way since I'm using a dataprovider which is updated often, changing the icon. Right now I'm using a switch statement which tests value.icon and returns the proper embedded image class name. I'm confused as to why I can't convert the String the image1 to Class image1. Seems easy enough, but nothing works. That's what iconFunctions are for. But you could try img.source = this[value.icon] ; HTH; Amy
Re: [flexcoders] Changing the color of a textinput
Styles, not properties, are used to change attributes such as color: http://livedocs.adobe.com/flex/201/langref/mx/controls/TextInput.html#styleSummary Use the setStyle() method to change color. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: timgerr [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Changing the color of a textinput Date: Tue, 22 Jul 2008 20:59:43 - I am creating an textinput and I was wondering how to change the color of it. I am doing this dynamically, here is what I am doing: private var txt:TextInput = new TextInput(); txt.maxChars = 255; addChild(txt); There is no option to change the color, do I have to use css to do this? Thanks, timgerr
[flexcoders] Why is my swf so big?
Probably an old question, but I didn't find anything useful by searching the group. I'm using the trial version of Flex Builder 3 Standard. I create a new Flex project, and, without writing any code, export a release build. The swf file size is 147KB. Then I create a project that contains nothing but an empty DataGrid. The file size grows to 242KB! Throw in an AdvancedDataGrid, and it's up to 300KB. Is there anything I can do to reduce the size? Even 147KB seems huge for an empty app. And why does DataGrid pump it up so much? I heard that the Flex framework was included in the Flash 9 runtime. If that's true, adding a DataGrid should have no effect on output size.
[flexcoders] Upgrading or uninstalling AIR installations
Does anyone have any ideas or workarounds for the inability to silently update or uninstall an AIR app? Allow me to explain.. The documentation for redistributing the AIR runtime and silently installing an AIR application says that you *cannot* silently upgrade an application because of a possible security risk. Fair enough, but when bundling the AIR runtime installer and my AIR app embedded in another installer, *I* know if the version I'm about to install is newer or not. So I'd like to update the existing AIR app or uninstall it and then install the new version. I can think of a few ways: 1.) Don't use the silent installer. This seems like a bad idea; I want to force an installation directory and do an automated installation for enterprise deployments. 2.) Delete the existing application and then run the silent installer. This doesn't seem like a great idea. 3.) Convince Adobe to allow for silent upgrades or uninstalls. [ Let me make my argument for allowing for silent upgrades or uninstalls: People doing deployments know what they want, even in the case where its an old version. ] Does anyone have any additional ideas other than the 3 above?
Re: [flexcoders] Re: changing project settings
you must be from the midwest :) On Tue, Jul 22, 2008 at 11:42 AM, valdhor [EMAIL PROTECTED] wrote: I don't normally do it that way but yes, just set the source and the endpoint and Bob's your auntie ;-} --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: it appears easier to do if FB3 than FB2...using remoteobject means you need a destination...which is set in the config...is there a way to specify a destination without it being in a config...if so that would work out for me... thanks percy On Tue, Jul 22, 2008 at 8:53 AM, valdhor [EMAIL PROTECTED] wrote: Just add config files to the project and change your compiler settings to point to the config file(s)... or Create RemoteObject instances and explicitly set the properties. All that the setting does in the project wizard is add the most used items (Like config files) to your project and setup the compiler settings for you. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, [p e r c e p t i c o n] percepticon@ wrote: Hi all, i started a project and at the time i didn't need a server, but now i do. is there a way to modify the settings to use a server after the fact? thanks and cheers percy
[flexcoders] Re: Trigger updateDisplayList
I am doing cellreference.invalidateDisplayList() but it's getting into updateDisplayList. --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, updateDisplayList() is a method. You would call invalidateDisplayList() and the next frame, updateDisplayList() will be called AFTER measure() if invalidateSize() was called OR measurements became invalid for some other reason. Mike On Tue, Jul 22, 2008 at 8:25 AM, markgoldin_2000 [EMAIL PROTECTED] wrote: What are the ways of triggering that event programmatically? Thanks -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
RE: [flexcoders] Why is my swf so big?
If you turn on the shared RSL, it will shrink the swf significantly. Frameworks tend to be heavy, especially if the focus is on RAD. Just look at any MFC app. DG brings in the collections subsystem, ADG brings in hierarchical collections. The framework is not included in the Flash 9 runtime. It has to be downloaded by some app into that user's browser, then other apps can use it. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of whatabrain Sent: Tuesday, July 22, 2008 2:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Why is my swf so big? Probably an old question, but I didn't find anything useful by searching the group. I'm using the trial version of Flex Builder 3 Standard. I create a new Flex project, and, without writing any code, export a release build. The swf file size is 147KB. Then I create a project that contains nothing but an empty DataGrid. The file size grows to 242KB! Throw in an AdvancedDataGrid, and it's up to 300KB. Is there anything I can do to reduce the size? Even 147KB seems huge for an empty app. And why does DataGrid pump it up so much? I heard that the Flex framework was included in the Flash 9 runtime. If that's true, adding a DataGrid should have no effect on output size.
Re: [flexcoders] Re: changing project settings
sorry but i get this... [MessagingError message='A destination name must be specified.'] percy On Tue, Jul 22, 2008 at 3:00 PM, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: you must be from the midwest :) On Tue, Jul 22, 2008 at 11:42 AM, valdhor [EMAIL PROTECTED] wrote: I don't normally do it that way but yes, just set the source and the endpoint and Bob's your auntie ;-} --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: it appears easier to do if FB3 than FB2...using remoteobject means you need a destination...which is set in the config...is there a way to specify a destination without it being in a config...if so that would work out for me... thanks percy On Tue, Jul 22, 2008 at 8:53 AM, valdhor [EMAIL PROTECTED] wrote: Just add config files to the project and change your compiler settings to point to the config file(s)... or Create RemoteObject instances and explicitly set the properties. All that the setting does in the project wizard is add the most used items (Like config files) to your project and setup the compiler settings for you. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, [p e r c e p t i c o n] percepticon@ wrote: Hi all, i started a project and at the time i didn't need a server, but now i do. is there a way to modify the settings to use a server after the fact? thanks and cheers percy
RE: [flexcoders] what is vellum in flex4?
By the way, where did you find the namespace vellum:http://vellum/prerelease being used? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Tuesday, July 22, 2008 11:40 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] what is vellum in flex4? This is the new Text Component Library (formerly known as Vellum; name still subject to change). This library is a set of AS3 classes, currently packaged into the SWCs named text_xxx.swc, that sit on top of the Flash Text Engine (FTE) in Flash Player 10. Together these replace the old TextField, and they support improved typography, bidirectional (left-to-right and right-to-left) text, and an object-oriented text model. All new Gumbo components use these new-and-improved text classes rather than TextField. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sherif Abdou Sent: Monday, July 21, 2008 9:39 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] what is vellum in flex4? the namespace is vellum:http://vellum/prerelease, i spent an hour trying to just see what i can do with it but nothing is going up on the screen. it looks like html tags that are native in flash player but i have no idea how to use it since i searched and there is nothing on it. Anyone know how to use it? and also the xmlns:edit=text.edit.* namespace tried and nothing goes on screen.
Re: [flexcoders] Re: Filter an ArrayCollection into an ItemRender
In theory, if you have [Bindable] or [Managed] items in the collection, or call itemUpdated appropriately, you do not need to call refresh() again when an item's properties change. I was wondering about the binding of the ArrayCollection itself, not the elements it contains (which works as expected). I'm wondering if folks just do what Scott suggested, i.e. add a mx:Binding statement on the collection and have it call refresh, or is there a different pattern, something more concise? For example, if I have a component that needs a filtered view of a collection, I just pass the collection through a mx:ListCollectionView first: mx:ListCollectionView id=filteredCollection source={myBigCollection} filterFunction={myCustomFilterFunc} / mx:List dataProvider={filteredCollection} / The annoyance is that with just that code my filter function never gets called and my list gets the whole, unfiltered collection. In other words, refresh() doesn't get called when the source property of a ListCollectionView changes, just when the *contents* of a ListCollectionView's source changes. And that just seems odd to me... and feels like a bad abstraction/API as it requires me to always wire up some method for calling refresh when the view's source changes. When would I ever *not* want to refresh my collection in that scenario? I'd think that specifying a filter function *implies* you want the view to be filtered, always. Is Scott's approach the most common idiom for this? Troy.
[flexcoders] Icon Click and iconFunction on ListItemRenderer
I am using a simple List with icons and labelText using the iconFunction and labelfunction respectively ...is there a way to tell on mylist.itemClick if the user has clicked on the icon or the labelText ? Both ListEvent.target and ListEvent.currentTarget are mx.controls.List ...is there any other property i can look at ? I even tried my own simple MyListItemRenderer but myClickHandler is not invoked! public class MyListItemRenderer extends ListItemRenderer { private function myClickHandler(e:MouseEvent):void{ trace('myClickHandler invoked'); } override protected function commitProperties():void{ super.commitProperties(); if(icon){ trace('icon is NOT null'); icon.addEventListener(MouseEvent.CLICK,myClickHandler); } else { trace(' icon is null'); } } }
[flexcoders] Flash Player Express Install and Upgrade Conversion
Recently, I began tracking conversion on Express install upgrades and the numbers have been less then spectacular. I'm using SWFObject 1.5 and express install and I'm only seeing about 30% of users upgrade once prompted and 30% are hitting cancel while the rest appear to navigate away. I modified the playerProductInstall to track when it loads, and all of the built in callbacks. My sample size is pretty large at this point 5000 prompts a day out of a 100,000 viewers when trying to push users to 9.0.115. I will be the 1st to admit my users are less then technically savvy. I read the articles about Best Practices on flash detection and don't see much different from an end-user perspective out there. Now that I look at the process in light of these numbers there has to be a better methodology. Anyone have any thoughts on how to go about improving these numbers? Specifically: Can I change the look of the express install dialog? In light of these numbers it now looks to me like it is the same size as standard RECTANGE ad unit that wants to trick you into installing spyware. I know I could put something in front of the dialog but I don's see extra clicks improving things. Can I trigger the browser plug-in install messaging on a minor dot release level? Anyone have thoughts on a better way of convincing users to upgrade?
[flexcoders] Encapsulating a custom flex component?
Newbish question... but after searching on google, I can't get a concise answer. Is it possible to encapsulate (mark private) components within a Flex component? So I have custom MXML component (ResourcesTree) that has a Tree inside of it. I don't want the Tree to directly be available outside the ResourcesTree Component. Any input?
Re: [flexcoders] Encapsulating a custom flex component?
Not in MXML components. -Josh On Wed, Jul 23, 2008 at 9:53 AM, Nate Beck [EMAIL PROTECTED] wrote: Newbish question... but after searching on google, I can't get a concise answer. Is it possible to encapsulate (mark private) components within a Flex component? So I have custom MXML component (ResourcesTree) that has a Tree inside of it. I don't want the Tree to directly be available outside the ResourcesTree Component. Any input? -- 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 -- 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] Why is my swf so big?
ADG also brings in the largest classes in the Flex framework. I just did a link report on one of my projects and here are some of the results for the ADG-related classes (I stopped at classes under 1k cause who really cares). This is the output of a link report on a non-optimized swf (so the #s are probably not accurate to what you would see in a production swf). AdvancedDataGrid - 103.1 k AdvancedListBase - 93.2 k AdvancedDataGridBaseEx - 87.6 k AdvancedDataGridBase - 28.2 k AdvancedDataGridColumn - 12.8 k AdvancedDataGridHeaderRenderer - 10.5 k AdvancedDataGridSortItemRenderer - 6.4 k AdvancedDataGridDragProxy - 3.6 k AdvancedListBaseContentHolder - 2.7 k AdvancedDataGridColumnGroup - 2.5 k AdvancedDataGridEvent - 2.4 k AdvancedDataGridHeaderHorizontalSeparator - 1.5 k AdvancedDataGridHeaderInfo - 1.3 k AdvancedDataGridBaseSelectionPending - 1.3 k AdvancedDataGridListData - 1.2 k AdvancedDataGridBaseSelectionData - 1 k IAdvancedDataGridRendererProvider - 1 k Then there are the hierarchical collection classes: HierarchicalCollectionView - 17.7 k HierarchicalCollectionViewCursor - 12 k HierarchicalData - 2.7 k IHierarchicalCollectionView - 2.7 k IHierarchicalData - 1,1 k So yeah, AdvancedDataGrid is 8,433 lines of code. If you add up the top 4 classes in the list above (AdvancedDataGrid, AdvancedListBase, AdvancedDataGridEx, and AdvancedDataGridBase) you get a whopping total of 26,521 lines of code. It makes me cry. So be aware. Doug On Tue, Jul 22, 2008 at 3:54 PM, Alex Harui [EMAIL PROTECTED] wrote: If you turn on the shared RSL, it will shrink the swf significantly. Frameworks tend to be heavy, especially if the focus is on RAD. Just look at any MFC app. DG brings in the collections subsystem, ADG brings in hierarchical collections. The framework is not included in the Flash 9 runtime. It has to be downloaded by some app into that user's browser, then other apps can use it. -Alex -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *whatabrain *Sent:* Tuesday, July 22, 2008 2:09 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Why is my swf so big? Probably an old question, but I didn't find anything useful by searching the group. I'm using the trial version of Flex Builder 3 Standard. I create a new Flex project, and, without writing any code, export a release build. The swf file size is 147KB. Then I create a project that contains nothing but an empty DataGrid. The file size grows to 242KB! Throw in an AdvancedDataGrid, and it's up to 300KB. Is there anything I can do to reduce the size? Even 147KB seems huge for an empty app. And why does DataGrid pump it up so much? I heard that the Flex framework was included in the Flash 9 runtime. If that's true, adding a DataGrid should have no effect on output size.
[flexcoders] Re: referencing embedded images inside AdvancedDataGridGroupItemRenderer
--- In flexcoders@yahoogroups.com, Brandon Krakowsky [EMAIL PROTECTED] wrote: Amy, I can't seem to get the iconFunction to work with the ADG. As per the docs, This property is ignored by data grid controls. It compiles but it IS in fact ignored. Do you use the groupIconFunction? The iconFunction is not ignored by the _Advanced_ Data Grid. I can tell you this, because I use it successfully in a project I just finished. here's a snippet of my code //show appropriate menu icon based on state ond //nature of item private function menuIcon(item:Object):Class{ if (item is TaskUID){ var taskItem:TaskUID = item as TaskUID; switch (taskItem.isComplete) { case Task.NOT_STARTED: return icnEmpty; case Task.STARTED: return icnStarted; case Task.COMPLETE: return icnComplete; } } else if (item is MenuContainer){ var containerItem:MenuContainer = item as MenuContainer; switch (containerItem.runMode) { case 'Normal': return icnNormal; case 'Review': return icnReview; case 'Analysis': return icnAnalysis; } } return null; } The MXML looks like this: mx:AdvancedDataGrid id=menuADG showHeaders=false width=100% itemRenderer=com.magnoliamultimedia.views.ADGGroupItemRendere rPatch groupItemRenderer=com.magnoliamultimedia.views.ADGGroupItemRe ndererPatch fontSize=14 rowCount={_menuRows} styleFunction=styleMenuItems iconFunction=menuIcon verticalGridLines=false itemClick=onMenuItemClick(event) defaultLeafIcon={null} folderClosedIcon={null} folderOpenIcon={null} mx:dataProvider mx:HierarchicalData source={_allTasks} / /mx:dataProvider mx:columns mx:AdvancedDataGridColumn dataField=desc labelFunction=menuADGItemLabel styleFunction=styleMenuItems width=400 / mx:AdvancedDataGridColumn dataField=taskDate mx:formatter mx:DateFormatter formatString=EEE, D / /mx:formatter /mx:AdvancedDataGridColumn /mx:columns /mx:AdvancedDataGrid
[flexcoders] rendering problem
I'm not sure how many of you guys had this problem before but for some reason im getting a rendering problem with forms and datagrid and i have no ideia how to solve it. Check this example the first part is the right one, after i scroll up and down, it gets all mess up. http://www.enilsson.com/assets/examples/rendering.png This one is how it deformed the datagrids. http://www.enilsson.com/assets/examples/rendering2.png Any idea how to fix that? it's killing me. raf
Re: [flexcoders] what is vellum in flex4?
Flex 4 Release build that is in the trunk. - Original Message From: Gordon Smith [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, July 22, 2008 6:13:41 PM Subject: RE: [flexcoders] what is vellum in flex4? By the way, where did you find the namespace vellum:http: //vellum/ prerelease being used? Gordon Smith Adobe Flex SDK Team From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Gordon Smith Sent: Tuesday, July 22, 2008 11:40 AM To: [EMAIL PROTECTED] ups.com Subject: RE: [flexcoders] what is vellum in flex4? This is the new Text Component Library (formerly known as Vellum; name still subject to change). This library is a set of AS3 classes, currently packaged into the SWCs named text_xxx.swc, that sit on top of the Flash Text Engine (FTE) in Flash Player 10. Together these replace the old TextField, and they support improved typography, bidirectional (left-to-right and right-to-left) text, and an object-oriented text model. All new Gumbo components use these new-and-improved text classes rather than TextField. Gordon Smith Adobe Flex SDK Team From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Sherif Abdou Sent: Monday, July 21, 2008 9:39 PM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] what is vellum in flex4? the namespace is vellum:http: //vellum/ prerelease, i spent an hour trying to just see what i can do with it but nothing is going up on the screen. it looks like html tags that are native in flash player but i have no idea how to use it since i searched and there is nothing on it. Anyone know how to use it? and also the xmlns:edit= text.edit. * namespace tried and nothing goes on screen.
Re: [flexcoders] what is vellum in flex4?
if you do vellum then your going to get all the stuff in the namespace - Original Message From: Gordon Smith [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, July 22, 2008 6:13:41 PM Subject: RE: [flexcoders] what is vellum in flex4? By the way, where did you find the namespace vellum:http: //vellum/ prerelease being used? Gordon Smith Adobe Flex SDK Team From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Gordon Smith Sent: Tuesday, July 22, 2008 11:40 AM To: [EMAIL PROTECTED] ups.com Subject: RE: [flexcoders] what is vellum in flex4? This is the new Text Component Library (formerly known as Vellum; name still subject to change). This library is a set of AS3 classes, currently packaged into the SWCs named text_xxx.swc, that sit on top of the Flash Text Engine (FTE) in Flash Player 10. Together these replace the old TextField, and they support improved typography, bidirectional (left-to-right and right-to-left) text, and an object-oriented text model. All new Gumbo components use these new-and-improved text classes rather than TextField. Gordon Smith Adobe Flex SDK Team From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Sherif Abdou Sent: Monday, July 21, 2008 9:39 PM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] what is vellum in flex4? the namespace is vellum:http: //vellum/ prerelease, i spent an hour trying to just see what i can do with it but nothing is going up on the screen. it looks like html tags that are native in flash player but i have no idea how to use it since i searched and there is nothing on it. Anyone know how to use it? and also the xmlns:edit= text.edit. * namespace tried and nothing goes on screen.
[flexcoders] running flex\samples\explorer\build.bat
I'm trying to run the build.bat file in the \samples\explorer directoy. It worked fine on one machine, but on my dev machine I get the following errors: Loading configuration file C:\flex_sdk\frameworks\flex-config.xml Error: class org.apache.xerces.util.XMLAttributesMMImpl$AttributeMMImpl cannot access its superclass org.apache.xerces.util.XMLAttributesImpl$Attribute java.lang.IllegalAccessError: class org.apache.xerces.util.XMLAttributesMMImpl$AttributeMM Impl cannot access its superclass org.apache.xerces.util.XMLAttributesImpl$Attribute at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) ... I have tried ant1.7.1, 1.7.0 and 1.6.5 as suggested elsewhere, but no joy. My dev machine has more stuff installed (Apache Ant and Tomcat, Xalan, Xerces, to name a few) than the lightweight laptop that the .bat file worked on. What can I do to get this task to run? Thanks in advance. Louise
RE: [flexcoders] what is vellum in flex4?
What file did you find it in? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sherif Abdou Sent: Tuesday, July 22, 2008 8:43 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] what is vellum in flex4? Flex 4 Release build that is in the trunk. - Original Message From: Gordon Smith [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, July 22, 2008 6:13:41 PM Subject: RE: [flexcoders] what is vellum in flex4? By the way, where did you find the namespace vellum:http: //vellum/ prerelease being used? Gordon Smith Adobe http://www.adobe.com/ Flex SDK Team From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Gordon Smith Sent: Tuesday, July 22, 2008 11:40 AM To: [EMAIL PROTECTED] ups.com Subject: RE: [flexcoders] what is vellum in flex4? This is the new Text Component Library (formerly known as Vellum; name still subject to change). This library is a set of AS3 classes, currently packaged into the SWCs named text_xxx.swc, that sit on top of the Flash Text Engine (FTE) in Flash Player 10. Together these replace the old TextField, and they support improved typography, bidirectional (left-to-right and right-to-left) text, and an object-oriented text model. All new Gumbo components use these new-and-improved text classes rather than TextField. Gordon Smith Adobe Flex SDK Team From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Sherif Abdou Sent: Monday, July 21, 2008 9:39 PM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] what is vellum in flex4? the namespace is vellum:http: //vellum/ prerelease, i spent an hour trying to just see what i can do with it but nothing is going up on the screen. it looks like html tags that are native in flash player but i have no idea how to use it since i searched and there is nothing on it. Anyone know how to use it? and also the xmlns:edit= text.edit. * namespace tried and nothing goes on screen.