[flexcoders] Re: how open .doc (words )file
How would you gain access to the .doc XML? --- In flexcoders@yahoogroups.com, Weyert de Boer w...@... wrote: I would think that using the Word COM+ objects would be the easiest way to read Word documents. Of course, you can also only support the XML-based version of Word documents Office 2007. On 6/05/2009, at 6:23 PM, farid wl wrote: Hi Dear friends anybody knows how we can read and open .doc files in flex and convert it to pdf on fly with action scripts or php . I use of AMF to transfer value object between flex and php. PLease help me . BR farid valipour
[flexcoders] Re: Mimic IGoogle with Flex 3
This is over a year old but is way cooler than iGoogle. http://examples.adobe.com/flex3/devnet/dashboard/main.html --- In flexcoders@yahoogroups.com, thelordsince1984 lore...@... wrote: Hi, i would create an app that has the same functionality that igoogle provides.. in particular i would have same panels and drag and drop around a main panel with a layout like tilegrid or grid?And if i want to add panels at run time? Anybody knows a solution for this kind of problem? Thanks in advance Regards Lorenzo
[flexcoders] Re: Flex 3.3
So, 3.3 will *not* apply to eclipse FB plugin? Jeff --- In flexcoders@yahoogroups.com, Matt Chotin mcho...@... wrote: It's all bug fixes, and not a huge number of them. We're not going to have an associated Flex Builder release either, just the SDK (though we'll get the charts updated). Matt On 1/26/09 1:18 PM, tntomek tnto...@... wrote: Looks like we finally have official 3.3 SDK builds out. http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3 This seems to have been a relabeling as changes between last 3.2 build and 3.3 build are very minor. Does anyone know what features or changes 3.3 will bring us?
[flexcoders] Binding Question - ArrayCollection/ResourceBundle
Is it possible to have an ArrayCollection value updated by a resource bundle value. [Bindable] public var cbDP:ArrayCollection = new ArrayCollection(); cbDP.addItem( {label:ResourceManager.getInstance().getString('myResources','NAME') }); When changing locales at runtime, all label fields of flex components update but the ArrayCollection does not. Is the ResourceManager binding ignored on AC's? Is there another solution? Thanks, Jeff
[flexcoders] Re: AS ResourceBundle Keys with Args?
Let me clarify. I am trying to use argument placeholders in my ActionScript created Resource Bundle. In a .properties file, you would write: DISTANCE_FORMAT={0} miles So how would you do the same in ActionScript? The compiler does not like the curly braces {}? rb.content[DISTANCE_FORMAT] = {0} miles; //?? does not like {0} Thanks, Jeff --- In flexcoders@yahoogroups.com, securenetfreedom nv1...@... wrote: I am creating ActionScript ResourceBundles. Is possible to create a resource key/value via AS that allows arguments like: rb.content[DISTANCE_FORMAT] = {0} miles; I am getting key/value pairs from a database so I will be creating the RBs at runtime. So will be looping thru the result set with something like: rb.content[record[i].key] = {0} record[i].value; Thanks, Jeff
[flexcoders] Re: Binding Question - ArrayCollection/ResourceBundle
Thanks, Alex. So I assume a flex button listens for the locale change event and therefore updates it's label? Are you saying create say a LocaleArrayCollection class that dispatches the locale change event? Or are you saying create LocaleChangeDispatcher that dispatches the locale change event and the ArrayCollection would then update by virtue of the dispatched event? Thanks in advance. Jeff --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: You are defining dynamic objects and they are not bindable. If you had a class that dispatched an event when the locale changed then it should work. \ - Is it possible to have an ArrayCollection value updated by a resource bundle value. [Bindable] public var cbDP:ArrayCollection = new ArrayCollection(); cbDP.addItem( {label:ResourceManager.getInstance().getString('myResources','NAME') }); When changing locales at runtime, all label fields of flex components update but the ArrayCollection does not. Is the ResourceManager binding ignored on AC's? Is there another solution? Thanks, Jeff
[flexcoders] Update ArrayCollection on LocaleChain change
I am trying to update an ArrayCollection with new values from a localeChain change. Everything tied to an display control is changing properly, however, the ArrayCollection does not. I've tried the following three methods for accessing the resource, but none work. Is the ResourceManager binding ignored on AC's? Is there a solution? [Bindable] public var cbDP:ArrayCollection = new ArrayCollection(); cbDP.addItem( {label:Application.application.resourceManager.getString('myResources', 'FIRST_NAME'), data:0}); cbDP.addItem( {label:_resourceManager.getString('myResources', 'LAST_NAME'), data:1}); cbDP.addItem( {label:ResourceManager.getInstance().getString('myResources', 'PHONE'), data:2});
[flexcoders] AS ResourceBundle Keys with Args?
I am creating ActionScript ResourceBundles. Is possible to create a resource key/value via AS that allows arguments like: rb.content[DISTANCE_FORMAT] = {0} miles; I am getting key/value pairs from a database so I will be creating the RBs at runtime. So will be looping thru the result set with something like: rb.content[record[i].key] = {0} record[i].value; Thanks, Jeff
[flexcoders] Re: Air App Install options
-bump- Any ideas? --- In flexcoders@yahoogroups.com, securenetfreedom [EMAIL PROTECTED] wrote: Is there anyway to modify Air App install options like: * disabling or set default on 'Place Icon Desktop' option * disabling or set default on 'Start Application After Install' * Modifying the install dir to other than c:\Program Files (on Windows) Is there a way to embed passed parameters into the executable that's created by the AirApp Installer like: * MyAirApp.exe param1=something Thanks, Jeff
[flexcoders] Air App Install options
Is there anyway to modify Air App install options like: * disabling or set default on 'Place Icon Desktop' option * disabling or set default on 'Start Application After Install' * Modifying the install dir to other than c:\Program Files (on Windows) Is there a way to embed passed parameters into the executable that's created by the AirApp Installer like: * MyAirApp.exe param1=something Thanks, Jeff
[flexcoders] App Version?
How do I access my application's version at runtime? ... the one set in the descriptor file and used for updating versionv0.51/version. Thanks, Jeff
[flexcoders] Re: App Version?
For those of you who may want to know, I found I can get access to the entire descriptor file via: var descriptor:XML = NativeApplication.nativeApplication.applicationDescriptor; Jeff --- In flexcoders@yahoogroups.com, securenetfreedom [EMAIL PROTECTED] wrote: How do I access my application's version at runtime? ... the one set in the descriptor file and used for updating versionv0.51/version. Thanks, Jeff
[flexcoders] Re: Best Practice Data Binding
Josh, That's one of the better explanations I've seen on the subject. It fills the blanks left by http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_8.html. Thanks for the contribution. And BTW, the keyboard is a bad place to be while consuming adult beverages, partaking in a controlled substance, or after finishing a fight... it leaves a pretty ugly permanent mark on the post. ;) Jeff --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: Honestly, fucked if I know how I picked all this stuff up - it's just what I do. But if my explanation left something out, that's my fault for giving a shitty explanation. Tell me in detail what you're still confused about, and I'll try and explain it :) -Josh On Tue, Jul 1, 2008 at 11:14 PM, Rick Winscot [EMAIL PROTECTED] wrote: When working in mxml you can use the keep-generated-actionscript compiler option and in the 'generated' directory you will find a wealth of information! In short the answer you seek is before you! Finding the 'solution' is another story. Rick Winscot -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] Re: Best Practice Data Binding
Any thoughts? In an DataModel class what is the best way to bind data. 1) Make the Setter Bindable, or 2) Make the Getter Bindable and dispatch an event on the Setter? What are the advantages and disadvantages of each? // Binding #1 [Bindable] public function set foo(val:String):void{ _foo = val; } public function get foo():String{ return _foo; } // Binding #2 [Bindable(event=fooChanged)] public function get foo():String{ return _foo; } public function set foo(val:String):void{ _foo = val; dispatchEvent(new Event(MyDataModel.FOO_CHANGED)); }
[flexcoders] Re: Best Practice Data Binding
I found this page to be helpful but not authoritative (This is where I found the use of binding the setter); http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_8.ht\ ml http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_8.h\ tml // Binding #1 [Bindable] public function set shortNames(val:Boolean):void { ... } public function get shortNames():Boolean { ... } I did glean a trick for read-only binding for static data by using: public static const constString:String=A static const.; However, I still need to clear up one thing. Is it true that you can place [Bindable] meta data on either a setter of getter and have it bound to a View component? --- In flexcoders@yahoogroups.com, Doug McCune [EMAIL PROTECTED] wrote: If you define a getter and a setter you can add the [Bindable] metadata to either the getter or setter, it does the same thing either way. The only time you have to use a custom event to trigger the binding is when you have read-only properties (a getter but no setter). Doug On Fri, Jun 27, 2008 at 12:08 PM, securenetfreedom [EMAIL PROTECTED] wrote: Any thoughts? In an DataModel class what is the best way to bind data. 1) Make the Setter Bindable, or 2) Make the Getter Bindable and dispatch an event on the Setter? What are the advantages and disadvantages of each? // Binding #1 [Bindable] public function set foo(val:String):void{ _foo = val; } public function get foo():String{ return _foo; } // Binding #2 [Bindable(event=fooChanged)] public function get foo():String{ return _foo; } public function set foo(val:String):void{ _foo = val; dispatchEvent(new Event(MyDataModel.FOO_CHANGED)); }
[flexcoders] Best Practice Data Binding
In an DataModel class what is the best way to bind data. 1) Make the Setter Bindable, or 2) Make the Getter Bindable and dispatch an event on the Setter? What are the advantages and disadvantages of each? /* *Binding #1 * */ [Bindable] public function set foo(val:String):void{ _foo = val; } public function get foo():String{ return _foo; } /* *Binding #2 * */ [Bindable(event=fooChanged)] public function get foo():String { return _foo; } public function set foo(val:String):void { _foo = val; dispatchEvent(new Event(MyDataModel.FOO_CHANGED)); }
[flexcoders] Re: Help with updating a Tree when its dataprovider has changed.
Peter, e4x is the new XML access notation that complies with ECMA. It will make your life easy in your scenario by eliminating that ugly getChildren func and simplifying your code. In your case, here's how it would work: public function hideShowFilterFunc(item:Object):Boolean{ // item.name() is the name of the xml node, i.e. person if(item.name() == 'person'){ return true; }else if(item.name() == 'Department'){ // [EMAIL PROTECTED] is the attribute of the Department node // i.e. Department isDeptSales=1 // you may have to do an 'indexOf' if your Department nodes are incremented return [EMAIL PROTECTED] == 1; } return false; } --- In flexcoders@yahoogroups.com, hpeter96 [EMAIL PROTECTED] wrote: Hi Jeff, I'm not sure what you meant by using e4x to get to the sub-nodes - does that come in to play when I call the filterFunction ? Also I'm still not sure if I'm following you right Alex, what I did was change the dataDescriptor's getChildren() function to this : \ \ - override public function getChildren(node:Object, model:Object = null):ICollectionView { var childrenCollection:ICollectionView; var myCursor:IViewCursor;// = childrenCollection.createCursor(); childrenCollection = super.getChildren(node, model); if(childrenCollection != null) { childrenCollection.filterFunction = ff_childrenCollection; childrenCollection.refresh(); } return childrenCollection; }// END OF getChildren() // \ \ - And my filterfunction looks like this : // \ \ - //ff_childrenCollection() //filterfunction for the children of getChildren private function ff_childrenCollection(item:Object):Boolean { if(item.attribute(visibility) == '1') { return true; } return false; }// END OF ff_childrenCollection() // \ \ - Now when I'm updating my list, the CPU jumps to 100%, so it sounds like I'm in an endless loop. Plus the top level branches move around - for example, I updated a child under a branch at the top of the list and the branch moved down, 2 branches from the bottom. So before it would look like this : BEFORE Company | |-- Department 1 |-- Person |-- Person |-- etc.. | |-- Department 2 |-- Person |-- Person |-- etc.. | |-- Department 3 |-- Person |-- Person |-- etc.. | |-- Department 4 |-- Person |-- Person |-- etc.. | |-- Department 5 |-- Person |-- Person |-- etc.. | |-- Person |-- Person |-- etc.. AFTER : Company | |-- Department 2 |-- Person |-- Person |-- etc.. | |-- Department 3 |-- Person |-- Person |-- etc.. | |-- Department 1 it moved here from the top |-- Person |-- Person |-- etc.. | |-- Department 4 |-- Person |-- Person |-- etc.. | |-- Department 5 |-- Person |-- Person |-- etc.. | |-- Person |-- Person |-- etc..
[flexcoders] Re: Help with updating a Tree when its dataprovider has changed.
I might be able to help. I had a similar issue with XMLListCollection dataProvider for an AdvacncedDataGrid. The filter function works great and with lists in the 100's. You get the to sub nodes with e4x. Here's the filtering code: public function hideShowFilterFunc(item:Object):Boolean{ if(item.name() == 'category'){ return true; }else if(item.name() == 'item'){ return [EMAIL PROTECTED] == 1; } return true; } // Note setting filterFunction to 'null' does not work so, // I had to create a filter func returning true to show all public function showAllFilterFunc(item:Object):Boolean{ return true; } public function filterNotifs():void{ dg.dataProvider.filterFunction = hideShowFilterFunc; // invalidateProperties eliminates occassional cursor error dg.invalidateProperties(); // I'm using HeirarchialData so I have to refresh the dg's dp // verses the dp directly. dg.dataProvider.refresh(); } public function resetNotifs():void{ dg.dataProvider.filterFunction = showAllFilterFunc; dg.dataProvider.refresh(); } LMK, Jeff --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: getChildren is creating a separate collection for each branch and caching it. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of hpeter96 Sent: Friday, June 13, 2008 11:31 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Help with updating a Tree when its dataprovider has changed. I'm not sure if I understand correctly - Do you mean when I'm parsing the dataProvider, I should make a look that creates a separate XMLListCollection for each branch and apply the filterFunction before I append it to the dataProvider ? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Try applying the filter to each child collection. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of hpeter96 Sent: Friday, June 13, 2008 6:13 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Help with updating a Tree when its dataprovider has changed. I'm working on a tree control that has an XMLListCollection as its dataprovider. The dataprovider has a couple of branches and nodes that sort of look like this : Company | |-- Department |-- Person |-- Person |-- etc.. | |-- Department |-- Person |-- Person |-- etc.. | |-- Person |-- Person |! -- etc.. I'd like to have each Person node appear in the Tree depending on a 'visibility' flag. So if it is set, then the Person node would appear and if its not set, then the Person node won't appear. What I have right now is each Person node has an attribute called 'visibility' and when it is set to 'ModuleConstants.VISIBILITY_NONE', the tree's dataDescriptor removes them from the list with this override : // -- - override public function getChildren(node:Object, model:Object = null):ICollectionView { var childrenCollection:ICollectionView; var myCursor:IViewCursor;// = childrenCollection.createCursor(); childrenCo! llection = super.getChildren(node, model); if(childrenCollection != null) { myCursor = childrenCollection.createCursor(); while(!myCursor.afterLast) { // check to see if we want to show this node or not if(Number(myCursor.current.attribute(visibility)) == ModuleConstants.VISIBILITY_NONE) { myCursor.remove(); nb! sp; } else { myCursor.moveNext(); } } } return childrenCollection; } // END OF getChildren() // -- - When I want to show or remove a Person node during runtime, I have a function that : - goes to the specific Department branch and remove all the people nodes underneath it. - ! adds all of the Person nodes again, but sets the visibility fl! ag for t he Person nodes I want to appear. - calls the tree's invalidateList() and validateNow() functions respectively. This works fine for short lists, but once the Tree gets long enough that a vertical is needed, the tree control starts messing up the data and doesn't show all of the nodes. Department branches start disappearing and duplicates start appearing and disappearing - all a huge mess. I did a trace on the dataProvider (the XMLListCollection) and that is showing me the correct data - so it seems like the tree is the one having trouble keeping up with all these changes. Originally I wanted to filter
[flexcoders] Tricky dataProvider Refresh
When using a filter function on an AdvancedDataGrid whose dp is a HierarchicalData object derived from an XMLCollectionList passed into it, the dataprovider will not refresh by calling dp.refresh directly. So I tried datagrid.dataProvider.refresh() and it works until one of the row's criteria for filtering is changed and a subsequent filter request occurs. It throws 2 consecutive Invalid Bookmark runtime errors (see below). If I press 'Continue' on both errors, the filtering works properly. Error: Bookmark no longer valid. at ListCollectionViewCursor/seek()[E:\dev\3.0.x\frameworks\projects\framewo\ rk\src\mx\collections\ListCollectionView.as:2046] at mx.collections::HierarchicalCollectionViewCursor/get current()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\\ collections\HierarchicalCollectionViewCursor.as:198] at mx.collections::HierarchicalCollectionViewCursor/collectionChangeHandler\ ()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\collect\ ions\HierarchicalCollectionViewCursor.as:1056] mx:HTTPService id=svc url=data/notifications.xml resultFormat=e4x / mx:XMLListCollection id=dp source={svc.lastResult..category} / mx:HierarchicalData id=categories source={dp} / mx:AdvancedDataGrid id=dg dataProvider={categories} ... / public function aFilter():void{ dg.dataProvider.filterFunction = hideViewedNotifsFilterFunc; dg.dataProvider.refresh(); // addressing dataprovider directly below does not work //dp.filterFunction = hideViewedNotifsFilterFunc; //dp.refresh(); } Any ideas how to eliminate the runtime errors? Thanks, Jeff
[flexcoders] Re: Tricky dataProvider Refresh
I figured out the solution for anyone interested. After calling the filter func, call dg.invalidateProperties(), then call refresh(). public function aFilter():void{ dg.dataProvider.filterFunction = hideViewedNotifsFilterFunc; dg.invalidateProperties() dg.dataProvider.refresh(); } Jeff --- In flexcoders@yahoogroups.com, securenetfreedom [EMAIL PROTECTED] wrote: When using a filter function on an AdvancedDataGrid whose dp is a HierarchicalData object derived from an XMLCollectionList passed into it, the dataprovider will not refresh by calling dp.refresh directly. So I tried datagrid.dataProvider.refresh() and it works until one of the row's criteria for filtering is changed and a subsequent filter request occurs. It throws 2 consecutive Invalid Bookmark runtime errors (see below). If I press 'Continue' on both errors, the filtering works properly. Error: Bookmark no longer valid. at ListCollectionViewCursor/seek()[E:\dev\3.0.x\frameworks\projects\framewo\ rk\src\mx\collections\ListCollectionView.as:2046] at mx.collections::HierarchicalCollectionViewCursor/get current()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\\ collections\HierarchicalCollectionViewCursor.as:198] at mx.collections::HierarchicalCollectionViewCursor/collectionChangeHandler\ ()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\collect\ ions\HierarchicalCollectionViewCursor.as:1056] mx:HTTPService id=svc url=data/notifications.xml resultFormat=e4x / mx:XMLListCollection id=dp source={svc.lastResult..category} / mx:HierarchicalData id=categories source={dp} / mx:AdvancedDataGrid id=dg dataProvider={categories} ... / public function aFilter():void{ dg.dataProvider.filterFunction = hideViewedNotifsFilterFunc; dg.dataProvider.refresh(); // addressing dataprovider directly below does not work //dp.filterFunction = hideViewedNotifsFilterFunc; //dp.refresh(); } Any ideas how to eliminate the runtime errors? Thanks, Jeff
[flexcoders] Re: Datagrid format row
Thanks, Josh. --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: http://blog.mikenimer.com/index.cfm/2006/10/3/BackgroundRowColor-DataGrid-component -Josh On Tue, Jun 10, 2008 at 3:36 PM, securenetfreedom [EMAIL PROTECTED] wrote: How do you highlight the entire row of a datagrid or advanceddatagrid conditionally. For instance I want to set a row's background/highlight color to blue for prices under $100 and red for prices over $100. I've used the styleFunction on the ADG to color text conditionally but cannot get row highlight. Thanks, Jeff -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] AdvancedDataGrid ItemRenderer
I am using an ADG with HierarchicalData to group my data. I am using a checkbox item renderer that the user can check to archive the row. However, the checkbox is diplaying on every row and I need it to display only on the sub-set like below: Group | Archive | Title | Group1 --|-- chk --| Trains | --|-- chk --| Planes | Group2 --|-- chk --| Autos | I have tried setting the visibility of the Canvas (the base of the checkbox itemrenderer component) in the creationComplete handler and in the 'set data' method of the component which works on the first pass, but when scrolling the grid or expanding the nodes, results are inconsistent. private var _vis:Boolean; // called by creationComplete event public function init():void{ var nodeName:String = _listData[item].name(); _vis = (nodeName == item); this.visible = _vis; } override public function set data(value:Object):void { super.data = value; chkbox.selected = (value[_dataField] == true); this.visible = _vis; } Thanks for your input. Jeff
[flexcoders] Re: AdvancedDataGrid ItemRenderer
Tracy, Is it because creationComplete only happens once per visible row and the renderer is recycled on dg scroll, change, etc? What I desperately want to learn is how to know when to override a super's function - in this case updateDisplayList(). How would you know to do that verses invalidateList() or invalidateDisplayList()?? Is this learned by experience (such as how I am right now), or does one look at this code and intuitively know to override updateDisplayList? Does it become more apparent when you start disecting inherited classes? How is this learned? BTW, your input helped me arrive at a very elegant solution with native mxml - AdvancedDataGridRendererProvider: mx:AdvancedDataGrid ... mx:columns mx:AdvancedDataGridColumn headerText=Archive dataField=@archived width=50 id=archived_col / mx:AdvancedDataGridColumn ... / /mx:columns mx:rendererProviders mx:AdvancedDataGridRendererProvider column={archiveed_col} depth=2 renderer=renderers.CheckBoxItemRendererProvider/ /mx:rendererProviders /mx:AdvancedDataGrid The depth is the key - where 1 would be the Group node and 2 would be the first indentation or sub-set of data under the grouping. Even though I found a solution, I am still very interested in your thoughts on the learning approach query above. Thanks to all, Jeff --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: And remove that logic from the creationComplete handler entirely. Do you understand why? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gene_belor Sent: Tuesday, June 10, 2008 10:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: AdvancedDataGrid ItemRenderer override updateDisplayList(..) function and set visibility there as opposed to in set data(...). --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , securenetfreedom nv1000@ wrote: I am using an ADG with HierarchicalData to group my data. I am using a checkbox item renderer that the user can check to archive the row. However, the checkbox is diplaying on every row and I need it to display only on the sub-set like below: Group | Archive | Title | Group1 --|-- chk --| Trains | --|-- chk --| Planes | Group2 --|-- chk --| Autos | I have tried setting the visibility of the Canvas (the base of the checkbox itemrenderer component) in the creationComplete handler and in the 'set data' method of the component which works on the first pass, but when scrolling the grid or expanding the nodes, results are inconsistent. private var _vis:Boolean; // called by creationComplete event public function init():void{ var nodeName:String = _listData[item].name(); _vis = (nodeName == item); this.visible = _vis; } override public function set data(value:Object):void { super.data = value; chkbox.selected = (value[_dataField] == true); this.visible = _vis; } Thanks for your input. Jeff
[flexcoders] Datagrid format row
How do you highlight the entire row of a datagrid or advanceddatagrid conditionally. For instance I want to set a row's background/highlight color to blue for prices under $100 and red for prices over $100. I've used the styleFunction on the ADG to color text conditionally but cannot get row highlight. Thanks, Jeff
[flexcoders] Re: Fire itemRollOver
I figured it out using a combination of Key Event capture and selectedIndex. --- In flexcoders@yahoogroups.com, securenetfreedom [EMAIL PROTECTED] wrote: I have a combobox that opens onFocus. When using arrow keys I would like to fire the itemRollOver for each item in the list as the arrow key highlights it. This works well with mouse over, but not with arrow keys. Is there a simple solution? Thanks, Jeff
[flexcoders] Fire itemRollOver
I have a combobox that opens onFocus. When using arrow keys I would like to fire the itemRollOver for each item in the list as the arrow key highlights it. This works well with mouse over, but not with arrow keys. Is there a simple solution? Thanks, Jeff
[flexcoders] itemRenderer not updating
I have custom item render in a datagrid that is exhibiting unpredictable behavior. It does not update when scrolling the datagrid. Other times it does update, and other times it updates but on the wrong row. Here's the component: ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; horizontalScrollPolicy=off verticalScrollPolicy=off creationComplete=setItems(); mx:Script ![CDATA[ [Bindable] private var pct:Number; [Bindable] private var pct_str:String; [Embed(source=assets/flag_red.png)] [Bindable] public var red:Class; [Embed(source=assets/flag_green.png)] [Bindable] public var green:Class; private function setItems():void{ // checking for data=null is neccessary since grid is created // before dataprovider is populated via webservice if(data != null){ trace('data.Pct:'+ data.Pct); pct = Number(data.Pct); if(pct =85) img.source = green; if(pct 85) img.source = red; pct_str = renderPercentText(String(data.Pct)); this.updateDisplayList(this.unscaledWidth, this.unscaledHeight); } } private function renderPercentText(t:String):String { return String(percentFormatShort.format(t))+%; } // :: for testing only :: // this click handler will render the cell correctly the image is clicked private function setImg(e:Event):void{ setItems(); } ]] /mx:Script mx:NumberFormatter id=percentFormatShort precision=0 / mx:Image id=img width=16 height=16 right=0 click=setImg(event) / mx:Text id=txt text={pct_str} textAlign=right width=44 / /mx:HBox Thanks for your help. -Jeff
[flexcoders] Re: How to return data to a database back end and reference updates
timgerr, dg is the id of the datagrid. Jeff --- In flexcoders@yahoogroups.com, timgerr [EMAIL PROTECTED] wrote: Jeff, I am getting an error : var value:String = dg.dataProvider[e.rowIndex][field]; Access to undefined property dg. Not sure what to do, thanks timgerr mx:DataGrid id=dg change=onChange(event)/ private function onChange(e:DataGridEvent){ var field:String = e.dataField; var value:String = dg.dataProvider[e.rowIndex][field]; sendDataToPHP(field, value); } -Jeff --- In flexcoders@yahoogroups.com, timgerr tim.gallagher@ wrote: Hello all, I have a question on how to return data to a database back end. Here is my problem. I have a PHP and MySQL backend that I communicate to with a JSon request. So I have a populated datagrid and want to make a change (editable = true) and send that data back via a HTTPService post. So I post the data to my php page that is waiting the information but the problem is, I only have data, to referencing information. When I make a change in my database I will do an update but I have to reference something (update table set tochange = 'data' where reference = 'something ';) How do people update databases with changes in datagrids? Thanks for the help, timgerr
[flexcoders] Re: itemRenderer not updating
I found a VERY simple solution to this: I simply added dataChange=setItems() to the component definition. mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; horizontalScrollPolicy=off verticalScrollPolicy=off creationComplete=setItems(); dataChange=setItems() - Jeff --- In flexcoders@yahoogroups.com, Muzak [EMAIL PROTECTED] wrote: http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1. html - Original Message - From: securenetfreedom [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, May 11, 2008 8:44 AM Subject: [flexcoders] itemRenderer not updating I have custom item render in a datagrid that is exhibiting unpredictable behavior. It does not update when scrolling the datagrid. Other times it does update, and other times it updates but on the wrong row. Here's the component: ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; horizontalScrollPolicy=off verticalScrollPolicy=off creationComplete=setItems(); mx:Script ![CDATA[ [Bindable] private var pct:Number; [Bindable] private var pct_str:String; [Embed(source=assets/flag_red.png)] [Bindable] public var red:Class; [Embed(source=assets/flag_green.png)] [Bindable] public var green:Class; private function setItems():void{ // checking for data=null is neccessary since grid is created // before dataprovider is populated via webservice if(data != null){ trace('data.Pct:'+ data.Pct); pct = Number(data.Pct); if(pct =85) img.source = green; if(pct 85) img.source = red; pct_str = renderPercentText(String(data.Pct)); this.updateDisplayList(this.unscaledWidth, this.unscaledHeight); } } private function renderPercentText(t:String):String { return String(percentFormatShort.format(t))+%; } // :: for testing only :: // this click handler will render the cell correctly the image is clicked private function setImg(e:Event):void{ setItems(); } ]] /mx:Script mx:NumberFormatter id=percentFormatShort precision=0 / mx:Image id=img width=16 height=16 right=0 click=setImg(event) / mx:Text id=txt text={pct_str} textAlign=right width=44 / /mx:HBox Thanks for your help. -Jeff
[flexcoders] Re: Creating Pie chart Dynamically in Flex 3
In your mx:Script block try: import mx.charts.PieChart; public var pie:PieChart pie.dataProvider -Jeff --- In flexcoders@yahoogroups.com, fflexhelp [EMAIL PROTECTED] wrote: Hi I am trying to create pie charts dynamically. Var myPieChart:Piechart; in the init() { myPieChart=new PieChart(); myPieChart. it does not give the dataprovider for the pie chart.when you try creating the same chart using mxml tags it allows you to set dataProvider. } can someone please help me on this?
[flexcoders] Re: Cursor in a textinput and setFocus
This should do it: txt.setFocus(); -Jeff --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: textInput.setSelection(0,0) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nicolas Boulet-Lavoie Sent: Friday, May 09, 2008 7:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cursor in a textinput and setFocus Hello, How it is possible to place the cursor at the beginning of a text input? The setFocus method only places the focus on the control, not the cursor. Thanks Nicolas
[flexcoders] Re: How to return data to a database back end and reference updates
timgerr, Capture the field name and value pass it to the PHP page. mx:DataGrid id=dg change=onChange(event)/ private function onChange(e:DataGridEvent){ var field:String = e.dataField; var value:String = dg.dataProvider[e.rowIndex][field]; sendDataToPHP(field, value); } -Jeff --- In flexcoders@yahoogroups.com, timgerr [EMAIL PROTECTED] wrote: Hello all, I have a question on how to return data to a database back end. Here is my problem. I have a PHP and MySQL backend that I communicate to with a JSon request. So I have a populated datagrid and want to make a change (editable = true) and send that data back via a HTTPService post. So I post the data to my php page that is waiting the information but the problem is, I only have data, to referencing information. When I make a change in my database I will do an update but I have to reference something (update table set tochange = 'data' where reference = 'something ';) How do people update databases with changes in datagrids? Thanks for the help, timgerr
[flexcoders] Re: Soap XML doc passed to SoapDecoder.as
Ok, here we go... How do I instantiate a decoder:SOAPDecoder when it's an excluded class? [ExcludeClass] I would love to do this: import mx.rpc.soap.SOAPDecoder; decoder:SOAPDecoder = new SOAPDecoder(); serializedConent:SOAPResult = decoder.decode('SOAP-ENV...[xml stuff]/SOAP-ENV'); I appreciate your help thus far...really! I just need a kick in the right direction. Thanks, Jeff --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: decoder would be a SOAPDecoder, yeah. I think decode() is defined in IXMLDecoder or some such, and implemented in XMLDecoder. SOAPDecoder just provides the SOAP-specific decoding stuff, on top of a generic XSD-based xml - object decoder provided by XMLDecoder. I haven't poked around inside these much, but I've been up to my neck in the encoding side of the same activity recently fixing a bug in the way our Arrays were getting encoded by Flex - and I imagine it's very similar, just the reverse. -J
[flexcoders] Soap XML doc passed to SoapDecoder.as
Although unorthodox, I'm trying to take a pre-generated soap-formatted xml doc that's sitting in myData.xml on my server and pass it thru the mx.rpc.soap.SoapDecoder. Since I'm not formally calling a WebService to obtain the soap xml, but using URLLoader to retrieve the soap-formatted xml doc, I am not sure how to inject myData.xml into SoapDecoder. Any ideas welcome. Thanks in advance. Jeff
[flexcoders] Re: Soap XML doc passed to SoapDecoder.as
In your example, would 'decoder' be of type SOAPDecoder? To what class does the method decode() belong? Jeff --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: I'd guess decoder.decode() - You might need to provide it with the definitions built up from various XSDs though. I'd put some breakpoints on it, use a real service, and look into what it's doing normally. -J
[flexcoders] Datagrid Cell Edit Event update grid
When typing in a datagrid cell, I am capturing the datagrid's change event and then making calculations on other cells in that row. I've used both invalidateList and invalidateDisplayList after I make my calcs but it doesn't seem to update the text in the grid until I've tabbed out of that cell and tabbed out of a second cell. I would really like to do the calcs and see them update in the grid as I'm typing. Is there a better approach to for this? Thanks, Jeff
[flexcoders] Re: datagrid combobox label renderer
Thanks, Tim! Works well. It displays the combobox's label property in the Text field. However, I need to update the datagrid's dataprovider with the 'data' property of the combobox. Currently I'm capturing the grid's itemEditEnd event and grabbing event.itemRenderer.data.CostCode value and updating the grid's DP manually. Something tells me there's an easier way. Here's the dataGridColumn: mx:DataGridColumn headerText=Code dataField=CostCode itemEditor=controls.GridCBRenderer mx:itemRenderer mx:Component mx:Text selectable=false width=100% text={data.CostCode} / /mx:Component /mx:itemRenderer /mx:DataGridColumn Thanks for your help. Jeff --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Hi Jeff, Use the Label as the itemRenderer and the ComboBox as the itemEditor. -TH --- In flexcoders@yahoogroups.com, securenetfreedom nv1000@ wrote: Is there a way to combine a combobox/label cell renderer for a datagrid so that when the cell has NO focus is displays a label and when the cell takes focus the combobox takes visibility? I have a label renderer and combobox renderer but I can't seem to get them to work in tandem. Thanks in advance. Jeff
[flexcoders] Re: datagrid combobox label renderer
I tried using that earlier and got undesirable results: If I use editorDataField=data then the text field is populated with [object Object]. If I use editorDataField=data.CostCode then I get a runtime error that data.CostCode does not exist. Any ideas on how to use this properly? Thanks, Jeff --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Cool. Nothing wrong with using the itemEditEnd event. Works well if you need to message the data or update conditionally. A simpler way though, is to use the editorDataField propery. -TH --- In flexcoders@yahoogroups.com, securenetfreedom nv1000@ wrote: Thanks, Tim! Works well. It displays the combobox's label property in the Text field. However, I need to update the datagrid's dataprovider with the 'data' property of the combobox. Currently I'm capturing the grid's itemEditEnd event and grabbing event.itemRenderer.data.CostCode value and updating the grid's DP manually. Something tells me there's an easier way. Here's the dataGridColumn: mx:DataGridColumn headerText=Code dataField=CostCode itemEditor=controls.GridCBRenderer mx:itemRenderer mx:Component mx:Text selectable=false width=100% text={data.CostCode} / /mx:Component /mx:itemRenderer /mx:DataGridColumn Thanks for your help. Jeff --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Hi Jeff, Use the Label as the itemRenderer and the ComboBox as the itemEditor. -TH --- In flexcoders@yahoogroups.com, securenetfreedom nv1000@ wrote: Is there a way to combine a combobox/label cell renderer for a datagrid so that when the cell has NO focus is displays a label and when the cell takes focus the combobox takes visibility? I have a label renderer and combobox renderer but I can't seem to get them to work in tandem. Thanks in advance. Jeff
[flexcoders] Re: datagrid combobox label renderer
Tim, Thanks for all your help. I've decided to do away with the editorDataField and simply added an update function on the 'change' event inside the combobox itemEditor: private function update(event:ListEvent):void { data.CostCode = this.selectedItem.data; } Not sure if it's a good practice but I'm up and runnin'. Thanks again for your help. Jeff --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Yeah, there's some good examples in the help docs. In your itemEditor, create a public variable. The name of this variable is what you will put in the dataGridColumn editorDataField property. In your itemEditor, cast the selected item data to the public variable, on the comboBox change event. -TH --- In flexcoders@yahoogroups.com, securenetfreedom nv1000@ wrote: I tried using that earlier and got undesirable results: If I use editorDataField=data then the text field is populated with [object Object]. If I use editorDataField=data.CostCode then I get a runtime error that data.CostCode does not exist. Any ideas on how to use this properly? Thanks, Jeff --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Cool. Nothing wrong with using the itemEditEnd event. Works well if you need to message the data or update conditionally. A simpler way though, is to use the editorDataField propery. -TH --- In flexcoders@yahoogroups.com, securenetfreedom nv1000@ wrote: Thanks, Tim! Works well. It displays the combobox's label property in the Text field. However, I need to update the datagrid's dataprovider with the 'data' property of the combobox. Currently I'm capturing the grid's itemEditEnd event and grabbing event.itemRenderer.data.CostCode value and updating the grid's DP manually. Something tells me there's an easier way. Here's the dataGridColumn: mx:DataGridColumn headerText=Code dataField=CostCode itemEditor=controls.GridCBRenderer mx:itemRenderer mx:Component mx:Text selectable=false width=100% text={data.CostCode} / /mx:Component /mx:itemRenderer /mx:DataGridColumn Thanks for your help. Jeff --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Hi Jeff, Use the Label as the itemRenderer and the ComboBox as the itemEditor. -TH --- In flexcoders@yahoogroups.com, securenetfreedom nv1000@ wrote: Is there a way to combine a combobox/label cell renderer for a datagrid so that when the cell has NO focus is displays a label and when the cell takes focus the combobox takes visibility? I have a label renderer and combobox renderer but I can't seem to get them to work in tandem. Thanks in advance. Jeff
[flexcoders] datagrid combobox label renderer
Is there a way to combine a combobox/label cell renderer for a datagrid so that when the cell has NO focus is displays a label and when the cell takes focus the combobox takes visibility? I have a label renderer and combobox renderer but I can't seem to get them to work in tandem. Thanks in advance. Jeff
[flexcoders] Stack Chart ItemClick detail?
Is there a way to click on a stacked ColumnChart and receive data about the specific segment of ColumnChart stack that was clicked? I am using mx.charts.events.ChartItemEvent but I can't find anything in the event object that identifies the exact slice that was clicked. Thanks. Jeff
Re: [flexcoders] Flashvars not passing into flex?
!-- In the HTML source add this to the javascript func... -- AC_FL_RunContent( flashvars,'historyUrl=history.htm%3Flconid=' + lc_id + '', flashvars,myFlashVarValue=Hello from the html page, ... !-- In the object embed html source add... -- param name=flashvars value=myFlashVarValue=Hello from the html page/ embed flashvars=myFlashVarValue=Hello from the html page ... !-- In the .mxml app add this inside a script block... -- public var myFlashVarValue:String; private function initApp():void { // Catch FlashVars Here myFlashVarValue = Application.application.parameters.myFlashVarValue; // other init code here } Then make sure you call the initApp() with creationComplete=initApp() in the Application block. NOTE: If you alter your html application page, it will be over written each time you save your app. So save it under another name and test. Jeff --- In flexcoders@yahoogroups.com, Meaglith Ma [EMAIL PROTECTED] wrote: 1. object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 2. id=fileupload width=200 height=150 3. codebase=http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab; 4. param name=movie value=fileupload.swf / 5. param name=quality value=high / 6. param name=bgcolor value=#869ca7 / 7. param name=allowScriptAccess value=sameDomain / 8. embed src=fileupload.swf quality=high bgcolor=#869ca7 9. width=200 height=150 name=fileupload align=middle 10. play=true 11. loop=false 12. quality=high 13. allowScriptAccess=sameDomain 14. type=application/x-shockwave-flash 15. pluginspage=http://www.adobe.com/go/getflashplayer; 16. /embed 17. /object rumpleminzeflickr wrote: Hi there, i'm adding a flex app into an existing web page. I'm using macromedia dream weaver to link to the .swf, which is all good and the app displays. However the actualy flashvars don't get passed in. Any ideas? Many thanks, Brett script type=text/javascript AC_FL_RunContent ( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/ http://download.macromedia.com/pub/shockwave/cabs/flash/ swflash.cab#version=7,0,19,0','width','500','height','375','src','Flex FileUpload','quality','high','pluginspage','http://www.macromedia.com/ http://www.macromedia.com/ go/getflashplayer','movie','FlexFileUpload' ); //end AC code /scriptnoscriptobject classid=clsid:D27CDB6E-AE6D-11cf-96B8- 44455354 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swfl http://download.macromedia.com/pub/shockwave/cabs/flash/swfl ash.cab#version=7,0,19,0 width=500 height=375 param name=movie value=FlexFileUpload.swf param name=quality value=high param name=FlashVars value=test=true embed src=FlexFileUpload.swf FlashVars=test=true quality=high pluginspage=http://www.macromedia.com/go/getflashplayer http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=500 height=375/embed /object/noscript
[flexcoders] How do you access data.[param] in component?
I have a component comprised of a mx:Text field that is rendered in a datagrid. I am trying to access the data.name and the data.descr of the data that is bound to the component so that I can use both in one mx:Text field and not two. If I access them separately like this it works fine: mx:Text id=title_txt text={data.name} fontWeight=bold fontSize=10 paddingBottom=0 / mx:Text id=desc_txt text={data.descr} height=60 width=100% color=#77 fontSize=10 / However, if I try something like this, I get the error 'Error #1009: Cannot access a property or method of a null object reference.' mx:Script ![CDATA[ private function text_init():void { //title_txt.htmlText =b+data.name+/bbr+data.descr; var txt: String; var title:String = data.name; var desc:String = data.descr; title_txt.htmlText =b+title+/bbr+ desc; } ]] /mx:Script mx:Text id=title_txt fontSize=10 paddingBottom=0 initialize=text_init() / I have tried many different approaches and it seems Flex keeps heading me off at the pass. Any suggestions would be appreciated. Thanks, Jeff
[flexcoders] Trace?
I am coming from Flash Timeline Development to Flex (as opposed to coming from C#, Java, etc to Flex). So I have some catching up to do. One of the things I find most frustrating is the ability to so a simple trace statement, run the code and watch my traces in an output window. Is this possible or is Debug mode the only option? I would love any Debug tips as well. Thanks for your help. Jeff
[flexcoders] Re: Problem with DataGrid ItemRenderer
You may want to take a look at the following where the setter function is overridden to maintain sorting (which may help with the row height issue). http://www.returnundefined.com/2006/10/item-renderers-in-datagrids-a-primer-for-predictable-behavior/ Jeff --- In flexcoders@yahoogroups.com, pasflex [EMAIL PROTECTED] wrote: We have a datagrid that is using an item renderer that consists of an HBox implementing IDropInListItemRenderer with a few components in it. One of these components is a Text component used so some text can be wrapped. The problem is there are a few cases were the datagrid does not seem to size the cell properly to the item renderer. The easiest case to demonstrate is sorting the datagrid. The datagrid renders fine when first loaded but if a column is sorted the row heights no longer are variable, they are all the same height. Is there something else that needs to be in the item renderer? Here's some simplified code that demonstrates the problem (run it, then sort the columns to see the issue): ?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] private var dataSet:ArrayCollection = new ArrayCollection([{item:1, text:Some text}, {item:2, text:Some really long text that should wrap.}]); ]] /mx:Script mx:DataGrid dataProvider={dataSet} variableRowHeight=true width=200 mx:columns mx:DataGridColumn dataField=item/ mx:DataGridColumn dataField=text itemRenderer=MyRenderer/ /mx:columns /mx:DataGrid /mx:Application ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; implements=mx.controls.listClasses.IDropInListItemRenderer mx:Text id=myText width=100%/ mx:Script ![CDATA[ import mx.controls.dataGridClasses.DataGridListData; import mx.controls.listClasses.BaseListData; import mx.events.FlexEvent; [Bindable(dataChange)] private var _listData:BaseListData; public function get listData():BaseListData { return _listData; } public function set listData (value:BaseListData):void { _listData = value; dispatchEvent(new FlexEvent (FlexEvent.DATA_CHANGE)); } override protected function updateDisplayList (w:Number, h:Number):void { super.updateDisplayList(w, h); if (data != null ) { var ld:DataGridListData = DataGridListData(_listData); myText.text = ld.label; } } ]] /mx:Script /mx:HBox
[flexcoders] Re: Shouldn't we use Flex to built website
Usually the ones screaming the loudest about Flash or Flex being used as a website platform are the ones that fear that the antiquated web technologies that they are versed in are going to be replaced. If the client wants an all Flash/Flex website, give it to them as long as they know the pros and cons. Jeff Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Flex does not see Flash Player 9
I currently have FP 9.0.0.296 installed. When I try to test a Flex App I get the following message: c:\Windows\system32\Macromedia\Flash\Flash8a.ocx Flex Builder cannot locate the requried version of the Flash Player. You may need to install Flash Player 9.0 or reinstall Flex Builder. Intalled Flash Player Version 8,0,24,0 Required version: 9,0,0,0 I have tried all of the following: - Reinstalling Flex 2.0 (no prev versions installed) - Deleting Flash8a.ocx (actually, moving it to a temp dir) - C: regsvr32 c:\windows\system32\macromed\flash\flash9a.ocx Yet, when I call an html page with a swf that has the following code it shows 9.0.0.296: playerVersion = eval($version); Any help would be appreciated. Thanks, Jeff Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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/