[flexcoders] RESOLVED: VerifyError: Error #1053
The issue was resolved by uninstalling and reinstalling Flex Builder. Before resorting to this, I tried the following (without success, obviously): 1. Cleaned the workspace (multiple times) 2. Closed and restarted Flex Builder (multiple times) 3. Closed and reopened the project 4. Deleted and recreated the project 5. Uninstalled and reinstalled the Flash players 6. Shut down and restarted my laptop --- In flexcoders@yahoogroups.com, Jim Robson [EMAIL PROTECTED] wrote: Hey guys, I'm getting the error referenced in the subject line when I place any series effect anywhere in any application. I get it with SeriesInterpolate, SeriesSlide, and SeriesZoom tags. I also get it if I try to apply the effect in ActionScript using the setStyle method of a chart series (e.g. PieSeries, ColumnSeries) object. In fact, I get the same error even if the series effect tag is the only thing between mx:Application and /mx:Application! Anybody else run into this? I'm thinking that either my SDK, or my copy of Flex Builder, or my copy of Charting, or perhaps my Flash player, is corrupt. Please pass along any info or suggestions you may have. I'm pasting the complete error message plus a code sample below. Thanks -Jim Here's the complete error message: param 1 incompatible virt mx.effects::IEffectInstance mx.effects::TweenEffect/mx.effects:TweenEffect::initInstance() over mx.effects::EffectInstance mx.charts.effects::SeriesEffect/mx.charts.effects:SeriesEffect::initInstance () VerifyError: Error #1053: Illegal override of SeriesEffect in mx.charts.effects.SeriesEffect. at TestSeriesEffects/TestSeriesEffects::_SeriesInterpolate1_i() at TestSeriesEffects$iinit()[C:\projects\dhs\TestSeriesEffects\TestSeriesEffect s.mxml:25] at _TestSeriesEffects_mx_managers_SystemManager/create() at mx.managers::SystemManager/mx.managers:SystemManager::initializeTopLevelWind ow()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:2289] at mx.managers::SystemManager/mx.managers:SystemManager::docFrameHandler()[C:\d ev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:2214] [SWF] C:\projects\dhs\TestSeriesEffects\bin\TestSeriesEffects-debug.swf - 722,293 bytes after decompression === I first ran into the error when trying to use the effect in an app that I'm building for a customer. When I couldn't get around it, I tried it in various other apps, but kept getting the same error. I finally copied and pasted an entire sample app from the docs, and got the same result. Here's the sample app I used: ?xml version=1.0? !-- charts/SeriesInterpolateEffect.mxml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var items:ArrayCollection = new ArrayCollection([ {item: 2000}, {item: 3300}, {item: 3000}, {item: 2100}, {item: 3200} ]); public function addDataItem():void { // Add a randomly generated value to the data provider var n:Number = Math.random() * 3000; var o:Object = {item: n}; items.addItem(o); } ]]/mx:Script !-- Define chart effect -- mx:SeriesInterpolate id=rearrangeData duration=1000 minimumElementDuration=200 elementOffset=0 / mx:Panel title=Column Chart with Series Interpolate Effect mx:ColumnChart id=myChart dataProvider={items} mx:series mx:ColumnSeries yField=item displayName=Quantity showDataEffect=rearrangeData / /mx:series /mx:ColumnChart /mx:Panel mx:Button id=b1 click=addDataItem() label=Add Data Item/ /mx:Application
RE: [flexcoders] How to learn Caringorm
First - go ahead and read all six parts of Steven Webster's article. It is written at a high enough level that there's not much version-dependent information in it, and it's a very good introduction. Next - there's a neat tutorial that walks you through the steps of designing a Cairngorm app. It helps you to start thinking in Cairngorm: http://www.digimmersion.com/support/Flex%20UI%20Design%20For%20Cairngorm.pdf Third - I think you're on the right track to dig in to the examples. The Cairngorm Store is very helpful. Finally - start building something! It's the best way to learn. HTH Jim _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nate Pearson Sent: Wednesday, May 09, 2007 2:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to learn Caringorm IN SHORT: What is the best way to learn Caringorm? IN LONG: I want to learn Caringorm. I only make flex apps internally for my company. My problem is that everyone loves flex; I would call it scope creep but it's more like scope run. The bigger the apps get, the more visible they are and the more people want them. I am sold on the Caringorm method of separating things out and making it very modular. I am excited about learning it and I think it will make my more productive. Now my problem is the learning curve. I have visited caringormdocs.org. The first thing on the list is the six-part article from adobe consulting. I've read the first part and it raises my concerns when it talks about the upcoming release of flex 2 and it references Caringorm .99 (it's on 2.1 now!). I have 0 experience with Flex before version 2 and I'm afraid that learning an older version of the framework might hinder my development. The other two learning tools that they list are the Caringorm Diagram and the Caringorm Diagram Explorer. Now in theory I understand what is going on. In practice these diagrams don't help me implement the Caringorm framework. I feel they are geared more towards people who already have a good foundation. My third option is the examples. This is my next plan of attack, I'm going to go after the basic example and try to duplicate it in a project that I'm working on. So community; what do you guys think is the best way to learn Caringorm?
RE: [flexcoders] Binding on a singleton
I dont see how your Singleton ever gets initialized. Did you try this: === public static function get instance():TestClass { if(_instance == null){ _instance = new TestClass(); } return _instance; } Jim From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ecpmaz Sent: Monday, May 07, 2007 7:31 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Binding on a singleton Hi, I have a class implemented as a Singleton that get's initialized at any time (unknown...) - public class TestClass extends EventDispatcher { private static var _instance:TestClass; private static var currentIndex:int = 0; [Bindable] public var value:int; public function TestClass() { super(); _instance = this; _instance.value = currentIndex++; dispatchEvent(new Event(instanceChanged)); } [Bindable(event=instanceChanged)] public static function get instance():TestClass { return _instance; } public override function toString):String { return TestClass + value; } } -- I want any class to be able to monitor TestClass' instance change... How would I do that. I tried many things, all without results.. I would like to use it like that for instance : -- mx:Label text={TestClass.instance.toString()} / mx:Button click=new TestClass() / !-- hoping to chg Label's text -- -- How would you do that ? {Maz}
[flexcoders] VerifyError: Error #1053: Illegal override of SeriesEffect in mx.charts.effects.SeriesEffect
Hey guys, I'm getting the error referenced in the subject line when I place any series effect anywhere in any application. I get it with SeriesInterpolate, SeriesSlide, and SeriesZoom tags. I also get it if I try to apply the effect in ActionScript using the setStyle method of a chart series (e.g. PieSeries, ColumnSeries) object. In fact, I get the same error even if the series effect tag is the only thing between mx:Application and /mx:Application! Anybody else run into this? I'm thinking that either my SDK, or my copy of Flex Builder, or my copy of Charting, or perhaps my Flash player, is corrupt. Please pass along any info or suggestions you may have. I'm pasting the complete error message plus a code sample below. Thanks -Jim Here's the complete error message: param 1 incompatible virt mx.effects::IEffectInstance mx.effects::TweenEffect/mx.effects:TweenEffect::initInstance() over mx.effects::EffectInstance mx.charts.effects::SeriesEffect/mx.charts.effects:SeriesEffect::initInstance () VerifyError: Error #1053: Illegal override of SeriesEffect in mx.charts.effects.SeriesEffect. at TestSeriesEffects/TestSeriesEffects::_SeriesInterpolate1_i() at TestSeriesEffects$iinit()[C:\projects\dhs\TestSeriesEffects\TestSeriesEffect s.mxml:25] at _TestSeriesEffects_mx_managers_SystemManager/create() at mx.managers::SystemManager/mx.managers:SystemManager::initializeTopLevelWind ow()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:2289] at mx.managers::SystemManager/mx.managers:SystemManager::docFrameHandler()[C:\d ev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:2214] [SWF] C:\projects\dhs\TestSeriesEffects\bin\TestSeriesEffects-debug.swf - 722,293 bytes after decompression === I first ran into the error when trying to use the effect in an app that I'm building for a customer. When I couldn't get around it, I tried it in various other apps, but kept getting the same error. I finally copied and pasted an entire sample app from the docs, and got the same result. Here's the sample app I used: ?xml version=1.0? !-- charts/SeriesInterpolateEffect.mxml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var items:ArrayCollection = new ArrayCollection([ {item: 2000}, {item: 3300}, {item: 3000}, {item: 2100}, {item: 3200} ]); public function addDataItem():void { // Add a randomly generated value to the data provider var n:Number = Math.random() * 3000; var o:Object = {item: n}; items.addItem(o); } ]]/mx:Script !-- Define chart effect -- mx:SeriesInterpolate id=rearrangeData duration=1000 minimumElementDuration=200 elementOffset=0 / mx:Panel title=Column Chart with Series Interpolate Effect mx:ColumnChart id=myChart dataProvider={items} mx:series mx:ColumnSeries yField=item displayName=Quantity showDataEffect=rearrangeData / /mx:series /mx:ColumnChart /mx:Panel mx:Button id=b1 click=addDataItem() label=Add Data Item/ /mx:Application
Re: [flexcoders] Re: Okay, I know this is possible...DataGrid to Tree
Nate: If you don't want to extend Tree and override dragEnterHandler, then here's something else to try. In the tree instance's dragEnter handler, add some data with the format treeItems like so: var obj:Object = new Object(); event.dragSource.addData(obj,treeItems); It may seem klugey, but it works. -Jim On Tue, 24 Apr 2007 16:59:36 - Nate Pearson [EMAIL PROTECTED] wrote: Thanks for the response. I've read that document and from what I understand dragEnter doesn't have to do anything but have the dragmanager.acceptdragdrop. I have also looked at that list. If you take that same thing and turn it into a data grid it doesnt work. It's like there is some Datagrid to tree conspiracy going on On dragOver is where i would handle the difference between items and tree items. I can't however get that function to even fire since it won't allow drops... --- In flexcoders@yahoogroups.com, Stephen Gilson [EMAIL PROTECTED] wrote: While it is not exactly what you want, there is an example with runnable code in the updated Drag and Drop doc on the Flex Doc Blog that shows how to drag from a List to a DataGrid. It requires that you modify the dragged data as part of the drop to make it compatible with the DataGrid. http://blogs.adobe.com/flexdoc/drag_and_drop/ One thing to remember when writing the dragEnter handler is that for all controls except for Tree, the format string is items and the items implement the IDataProvider interface. For Tree controls the format string is treeItems and the items implement the ITreeDataProvider API interface. Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nate Pearson Sent: Monday, April 23, 2007 6:04 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Okay, I know this is possible...DataGrid to Tree Anyone? I'm trying to present a demo tomorrow, this is the thing I haven't figured out. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Nate Pearson napearson99@ wrote: ...but I haven't seen it yet! I've seen the code but when I run it it doesn't work! How do allow for a datagrid to drop into a tree? All i need it to do is have DragManger.acceptDragDrop(UIComponent(event.currentTarget)) on drag enter work! Everytime i do it I get a little red x. Anyone have any code/examples to show me? If you say override dragEnter and put DragManager.acceptDragDrop(UIComponent(event.currentTarget)) i wont believe you! ;). Seriously, I've worked on this all weekend to no avail :(. I'm going to dell taco now and I hope someone can help me by the time I'm back.
RE: [flexcoders] Helllp... Error message in a ComboBox ?!
Carlos, ComboBox does have an errorString parameter. http://livedocs.adobe.com/flex/2/langref/mx/controls/ComboBox.html#propertyS ummary Make sure to click the link to show inherited properties if they are hidden, and you'll see it. HTH Jim _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Humberto Sent: Tuesday, April 24, 2007 8:54 PM To: Lista - Flexcoders Subject: [flexcoders] Helllp... Error message in a ComboBox ?! Hi All, Firstly excuse my terrible English !!! I'm Brazilian. How to define error message in a ComboBox, because it doesn't have the property errorString ? Ex: In textInput use: field.errorString = error message; In a ComboBox as it would be? Thank's a lot !
[flexcoders] Re: RTE when using itemRenderers in DataGrid.
They don't generally respond unless they need some clarification from you. --- In flexcoders@yahoogroups.com, michael_ramirez44 [EMAIL PROTECTED] wrote: ... I have submitted this bug via the WishForm on Jan 10 but I have not recieved any response back not even an auto-response. Is there another place I can submit bugs? Michael Ramirez
[flexcoders] Re: Referring to created AS class from within MXML
David, I just re-read your original post, and I'm wondering what you mean by the following: when I try to create a class in the inline code of an mxml page The first time I read this, I assumed that you meant that you were instantiating a class in an MXML file. Is that what you meant? Or are you actually trying to write a class within the mx:Script block of an MXML file? If it's the latter, then that's your problem. You should create the AS class in its own separate file. -Jim --- In flexcoders@yahoogroups.com, David Steele [EMAIL PROTECTED] wrote: I now have the following, but I get the same error: import flash.display.Sprite; import flash.events.*; import flash.net.XMLSocket; public class socket extends UIComponent { ... - Original Message From: Jim Robson [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, January 9, 2007 10:58:54 AM Subject: [flexcoders] Re: Referring to created AS class from within MXML David, DisplayObjects (Sprite, Shape, Bitmap) can't generally be used directly in MXML. To be able to add a child using an MXML tag, you need to extend UIComponent. -Jim --- In [EMAIL PROTECTED] ups.com, David Steele stldvd@ wrote: I apologize for what must be an obvious question, but why when I try to create a class in the inline code of an mxml page do I get the 'Classes must not be nested' error? I'm trying to test a socket connection. I've got the socket code (which is a class); I know how to create mxml buttons etc. What I don't know is how to put the two together. I've created a new actionscript class file: package { import flash.display. *; import flash.events. *; import flash.net.XMLSocket ; public class socket extends Sprite { ... I've also got a document called socketTest.mxml. How do I refer to to my AS class from within socketTest.mxml? Do I need to explicitly place the two files somewhere? Thanks. _ _ _ _ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail. yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[flexcoders] Re: basic architecture question
Hi Jason, This syntax looks correct... currentState = targetComp.dataProvider[event.index].data; ... as long as targetComp.dataProvider[event.index].data gives the name of the state that you want. I noticed that you output this to a text field, so I assume that it's correct. So it's the usual check-for-empty-spaces-and-stuff-like-that. Another method is to use a TabNavigator in place of a Tab Bar, and use custom components for the individual tabs. Something like this: mx:TabNavigator jx:CustomComponent1 label=First Tab / jx:CustomComponent2 label=Second Tab / jx:CustomComponent3 label=Third Tab / /mx:TabNavigator Or you could re-use the same component with different data for each tab: mx:TabNavigator jx:CustomComponent1 label=First Tab dataObject={myArrayCollection.getItemAt(0)} / jx:CustomComponent1 label=Second Tab dataObject={myArrayCollection.getItemAt(1)} / jx:CustomComponent1 label=Third Tab dataObject={myArrayCollection.getItemAt(2)} / /mx:TabNavigator Either way, a nice thing about using the TabNavigator approach is that the Flash player doesn't load the contents of a tab into memory until the user clicks on the tab. This helps the app load faster, and saves client resources generally. I'm not sure if this also applies to states. -Jim --- In flexcoders@yahoogroups.com, Merrill, Jason [EMAIL PROTECTED] wrote: Thanks everyone for your help and ideas. Very useful. I have something working now, but not with a custom component, though Jim I will try out your ideas there. My next architecture question has to do with states and navigation. I have a TabBar I am trying to use to navigate between different states - different pages in my application which all look very different except the navigation piece. Is this the best way to handle switching between different screens? I was able to render the TabBar based on my data bindings without a problem, and I can register the event that the tab was clicked, but i was unable to get it to change states. I tried: private function tabClick(event:ItemClickEvent):void { var targetComp:TabBar = TabBar(event.currentTarget); forClick.text=label is: + event.label + index is: + event.index + capital is: + targetComp.dataProvider[event.index].data; currentState = targetComp.dataProvider[event.index].data; } Where .data is the name of the state I want to change to. What is the proper approach? Thanks! Jason Merrill Bank of America Learning Organizational Effectiveness
[flexcoders] Re: RTE when using itemRenderers in DataGrid.
Michael, I see the error. I created a project using your code, and when I compiled it, I got the same error. It's being thrown in ListBase.scrollVertically() at line 5346: numCols = listItems[i].length; According to the comments, protected var listItems is: * An Array of Arrays that contains * the itemRenderer instances that render each data provider item. * This is a two-dimensional row major array * (array of rows that are arrays of columns). Since the error indicates that A term is undefined and has no properties it seems that the function continues to loop after all of the itemRenderer instances have been evaluated, resulting in a null pointer exception. The loop is defined as follows: for (i = lockedRowCount; i rowCount; i++) So the loop continues for the length of rowCount, which is defined as follows: var rowCount:int = rowInfo.length; From all of this, it appears that rowInfo.length listItems.length, which evidently should not happen. Have you filed this as a bug report with Adobe? -Jim
[flexcoders] Re: RTE when using itemRenderers in DataGrid.
Here you go: http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
[flexcoders] Re: Maximum Precision of a Slider? (Flex 2)
Thanks for the suggestion; that is in fact what I did... http://tech.groups.yahoo.com/group/flexcoders/message/60688 :-)
[flexcoders] Flex 2.0.1: Updated from Beta to Full Release
Just ran the Windows updater. Everything went smoothly; all of my projects, settings, and preferences were preserved, and my currently-open projects still compile and run without issue. Even Subclipse survived this one, so I don't need to re-install it.
[flexcoders] Maximum Precision of a Slider? (Flex 2)
Anyone know what the maximum precision of a Slider component is? I'm building an app where the users need to manipulate values that are very small. For example, the range of possible values for one variable is 0.89 - 0.000100. When I set the Slider.minimum = 0.89 and the Slider.maximum = 0.000100, the Slider appears to interpret both values as zeroes. So the thumb sits at the left end of the slider, no matter what Slider.value is. And when you drag the thumb to the right, it snaps back to the left as soon as you release the mouse button. Does anyone have a way of overcoming this limitation? (Am I missing something obvious in the docs?)
[flexcoders] Re: Svn Flex
Lieven: In Flex Builder, go to Project Properties - Flex Compiler and deselect Copy non-embedded files to output directory Also - and more importantly - install the SVN Eclipse plugin (Subclipse). When you do that, Flex Builder becomes svn-aware, and stops doing stupid things with your working copy: http://subclipse.tigris.org/ HTH Jim --- In flexcoders@yahoogroups.com, Lieven Cardoen [EMAIL PROTECTED] wrote: Hi, When compiling a Flex project, Flex copies all files to bin folder, including hidden .svn folders. As a result, Tortoise goes crazy... Anyway to resolve this? Thx, Lieven Cardoen Lieven Cardoen Application developer indiegroup interactive digital experience engelse wandeling 2 k18 b8500 kortrijk
[flexcoders] Re: basic flex architecture questions
Jason, I think you're on the right track with your custom component idea. I think the best way to handle the dynamic data is with data binding. Let's take the image as an example. In the ActionScript of your custom component, you declare a bindable public variable to hold the source of your image: [Bindable] public var myImageSource:Class; Also in your custom component, you place your image tag where you want it, using binding syntax for your source attribute: mx:Image source={myImageSource} / In your main MXML file, you set the value of the public variable to the graphic asset that you want. For example, in the ActionScript of the main file you might have something like this: [Embed(source=assets/JoeSmith.png,mimeType=image/png)] [Bindable] public var myImageSource:Class; Then, if you use MXML to load your custom component, you would write something like this: myCustomComponent myImageSource={myImageSource} / There are lots of variations on this theme (for example, you could do it with all ActionScript and no MXML, etc.) but this is the basic idea. Data binding rocks. HTH -Jim --- In flexcoders@yahoogroups.com, Merrill, Jason [EMAIL PROTECTED] wrote: Newbie to Flex, (but not Flash/AS 2.0) so for me it's like a skier learning to snowboard. I have dabbled with Flex in the past, and recently went through all the lessons in the help docs, as well as read a lot of other things in there. I'm designing a Team Page - a site that shows people of the business unit as individual cards - like baseball cards. Each card will have elements like a photo of the person, a description of skillsets, and buttons to expand and change to a different state. Making that is easy with a custom component, but I'm having some struggle with the dynamic data part as it relates to the custom component - in other words, making the components generic and then settings the data for them later in my application. I thought I would make a generic person card with a placeholder for the photo and data - that would be a single component, and then in another main application MXML I would repeat that component over and over based on some XML data. Easy enough so far - the XML data isn't the problem. In Flex, I'm not sure how to add the image dynamically, or change the value of the image file reference for each component repeated - I can add an image tag easily enough in the component, but having a hard time not hard-coding the image reference. So I guess I have a few questions: 1. What's the best way to set up a generic image container for the image file be in the person card component and how would I set that in the main application MXML repeat region? Or is making the person card as a component not a good approach? Should I just describe the person card within the repeat region and not make it a custom component? 2. How do i set other variables in the custom components like label values? 3. Overall, what would be a good way to architect a site like this? I know how to create and change states, but unsure what should be a component and what should just described right in the main MXML. Jason Merrill Bank of America Learning Organizational Effectiveness Multimedia / eTools Team
[flexcoders] Re: Referring to created AS class from within MXML
David, DisplayObjects (Sprite, Shape, Bitmap) can't generally be used directly in MXML. To be able to add a child using an MXML tag, you need to extend UIComponent. -Jim --- In flexcoders@yahoogroups.com, David Steele [EMAIL PROTECTED] wrote: I apologize for what must be an obvious question, but why when I try to create a class in the inline code of an mxml page do I get the 'Classes must not be nested' error? I'm trying to test a socket connection. I've got the socket code (which is a class); I know how to create mxml buttons etc. What I don't know is how to put the two together. I've created a new actionscript class file: package { import flash.display.*; import flash.events.*; import flash.net.XMLSocket; public class socket extends Sprite { ... I've also got a document called socketTest.mxml. How do I refer to to my AS class from within socketTest.mxml? Do I need to explicitly place the two files somewhere? Thanks. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[flexcoders] Re: Maximum Precision of a Slider? (Flex 2)
Thanks David, That's essentially the solution that I used. Since every variable is different (some have ranges in the hundreds, while others have ranges in the ten-thousandths) I evaluate the default value of each variable, and multiply accordingly. Meanwhile, however, if the Slider has a native way of handling this, I'd sure like to know what it is! -Jim --- In flexcoders@yahoogroups.com, David Steele [EMAIL PROTECTED] wrote: Jim -- Looks like you're really going from 89 to 1000 if we lop off a few zeros. :) The slider has a labels array propery, which is an array of strings. So why not multiply your variable values by 100 -- you'd then effectively show the values moving from 89 to 1000. Your minimum value would be 89; your maximum would be 1000. The corresponding *labels*, though -- the numbers that appear on the slider -- you could set to be .89 - .000100 Hope this helps, David - Original Message From: Jim Robson [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, January 9, 2007 8:41:51 AM Subject: [flexcoders] Maximum Precision of a Slider? (Flex 2) Anyone know what the maximum precision of a Slider component is? I'm building an app where the users need to manipulate values that are very small. For example, the range of possible values for one variable is 0.89 - 0.000100. When I set the Slider.minimum = 0.89 and the Slider.maximum = 0.000100, the Slider appears to interpret both values as zeroes. So the thumb sits at the left end of the slider, no matter what Slider.value is. And when you drag the thumb to the right, it snaps back to the left as soon as you release the mouse button. Does anyone have a way of overcoming this limitation? (Am I missing something obvious in the docs?) __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[flexcoders] Resize children of a Tile container: Solved (sort of) but questions remain...
It took a while, but I finally discovered the cause of the problem: the set data() function for each renderer in the DataGrid is called every time one of the renderers is resized. Does anyone know why set data() is called? Here is more detail: 1) I extended the Tile container to use it as an item renderer inside a DataGrid 2) I overrode the set data() function of the Tile in order to add the correct number of children to the Tile based on the data (my thanks to a member of the Flex team at Adobe for this tip). 3) While adding the children, the size of the children is set based on the number of children. 4) I wrote code to dynamically resize the children based on user input. This obviously requires that the Tile be resized in order to display the children properly. But when the Tile is resized, the set data() function is called for every item renderer in the DataGrid, which in turn causes the children to be reset to their default size because of #2 above. If you're interested, you can access sample code at the URI referenced in the original message below. If anyone can shed some light on this, I would really appreciate it! -Jim --- In flexcoders@yahoogroups.com, Jim Robson [EMAIL PROTECTED] wrote: How do you dynamically resize the children in a Tile container? I don't have any problem setting the size when the children are initially added to the Tile. After that, however, they won't resize. I've posted a simple app that illustrates this issue (right-click to view source): http://robsondesign.com/flexcoders/TileRendererSample/TileRendererSample.html To use demo: Click on a dot to bring up a slider. As you can see in the source code, and verified in the trace statements, changing the slider changes the width and height of the dots in the selected item renderer. However, the display does not change, even though the width and height properties do change. If there's something in the docs about this, or if there's been a previous thread on this topic, please forgive me and point me to it. I wasn't able to find anything, but maybe I was using the wrong search terms. Thanks -Jim
[flexcoders] Re: image flickers when not found
Hey, Do the images exist in your file system? In other words, is Flex failing to find images that actually exist? If so, could the problem be that LoadImage() is sometimes invoked before the data is loaded? -Jim --- In flexcoders@yahoogroups.com, amigo_fd [EMAIL PROTECTED] wrote: Hello, I use a renderer to include an image in a grid. But some of the images don't exist, and then they keep flickering. Some stroboscopic strange effect. Any idea how I can detect if the image could load and prevent the strange effect ? This is the code of my renderer. ?xml version=1.0? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; horizontalAlign=center verticalGap=0 borderStyle=none mx:Script ![CDATA[ private function LoadImage():void { if (data != null) { ProductImage.source = ImageBaseUrl + 60/ + data.prodcode + .jpg; } } ]] /mx:Script mx:Image id=ProductImage height=60 render=LoadImage(); scaleContent=false/ /mx:VBox
[flexcoders] Re: Server Clock
Kumar, You could write a function to invoke whatever server-side technology you're using (ColdFusion, PHP, JSP, ASP) in order to access the server's system clock. -Jim --- In flexcoders@yahoogroups.com, KP [EMAIL PROTECTED] wrote: Hi All, Can we some how get the time of the server on our client machine. Kumar
[flexcoders] Re: Drag and drop between multiple nested TileLists - how to detect drag and dro
Rachel: If I understand your dilemma correctly, the following ideas may help. 1) Declare a variable to represent the container that you'll need to reference during the drag drop action, e.g.: private var _myParentContainer:TileList; 2) In your item renderer's creationComplete event handler, assign the value of the container to the variable, e.g.: _myParentContainer = this.parent.parent.parent.parent as TileList; (Use trace statements to help you determine how many .parent's you need; Flex inserts some intermediary objects that are not readily apparent.) 3) In the drag drop code, use the variable to reference the target container as needed: _myParentContainer.doSomethingCool(); 4) After the drag drop is complete, update the value of the variable to the item renderer's new container: _myParentContainer = this.parent.parent.parent.parent as TileList; It's hard to be more specific without seeing the actual code, but perhaps this will be enough to get you past the current obstacle. HTH -Jim
[flexcoders] Re: Graphs: Can you remove all x y axis information from a lineChart?
Hi Jason, You can do this using AxisRenderers, as follows: !-- Set look feel for y-axis -- mx:verticalAxisRenderer mx:AxisRenderer showLabels=false showLine=false tickPlacement=none / /mx:verticalAxisRenderer !-- Set look feel for x-axis -- mx:horizontalAxisRenderer mx:AxisRenderer showLabels=false showLine=false tickPlacement=none /mx:AxisRenderer /mx:horizontalAxisRenderer HTH Jim
[flexcoders] Re: expandable itemRenderer with state inside a list
Tracy: I think that your comments here address the question I was trying to ask in my post. This would seem to explain why the set data() function is called on resize: When the item renderer's contents are resized, the DataGrid needs to re-draw itself (just as it does on scrolling); your comments below seem to explain why the DataGrid calls set data() when it redraws itself. Thanks!!! -Jim --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: To make itemRenderer states work correctly during scrolling, you must update a dataProvider item property to record that state on user action, then in the set data() function, ( or in the updateDisplayList() function) you must read this state property and set the item renderer state accordingly. List-based controls re-use the same visual elements when you scroll, they just change the data. Tracy
[flexcoders] Re: Resize children of a Tile container: Solved (sort of) but questions remain..
Tracy, Thanks for the suggestion, but I don't think that it addresses the question. I'm not calling set data() when the objects are resized; the Flex framework calls it internally. My app is working correctly now, so I'm not looking for suggestions on how to make it work. Rather, I'm trying to understand *why* the Flex framework calls set data() whenever the contents of an item renderer are resized. I'm trying to gain a better understanding of Flex's inner workings, in order to aid future development. But I appreciate the thought! -Jim --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Perhaps you should look into using updateDisplayList() funtion to do the resizing instead of set data()? I am not good enough with item renderers to know for sure, or why, but I get the feeling that this is the method to use for some visual manipulations. There has been some discussion, search the archives. Tracy
[flexcoders] Resize children of a Tile container
How do you dynamically resize the children in a Tile container? I don't have any problem setting the size when the children are initially added to the Tile. After that, however, they won't resize. I've posted a simple app that illustrates this issue (right-click to view source): http://robsondesign.com/flexcoders/TileRendererSample/TileRendererSample.html To use demo: Click on a dot to bring up a slider. As you can see in the source code, and verified in the trace statements, changing the slider changes the width and height of the dots in the selected item renderer. However, the display does not change, even though the width and height properties do change. If there's something in the docs about this, or if there's been a previous thread on this topic, please forgive me and point me to it. I wasn't able to find anything, but maybe I was using the wrong search terms. Thanks -Jim
[flexcoders] Re: Pass Data or call function in another MXML file?
OK, so I can't count. I think Math is overrated, anyway. :-) Thanks, Tom -Jim --- In flexcoders@yahoogroups.com, Tom Sammons [EMAIL PROTECTED] wrote: just one little thing in Jim's setMasterDate function; AS date is the numeric value of the month, but it starts at offset 0, so you'll have to add 1 to it for proper display: MasterDate.text = d.month+1 + / + d.date + / + d.fullYear; --- tom -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Exposing Flex FDS to Flash; LocalConnection Performance Issues
We have a Flex 2 app that uses FDS, and it's working pretty well. What we want to do is make our engine available to business partners, so that they can develop their own UIs for our it. Ideally, they should be able to develop their UIs using Flash (we don't want to require them to use Flex). As a first step, I divided our working Flex app into 2 parts: Part 1) The UI elements (controls, charts, etc.) Part 2) The FDS code (RemoteObjects, etc.) These 2 parts talk to each other using LocalConnection objects. Everything works fine, except that performance takes a huge hit - to the point of being unacceptable. So I have two questions: 1. Is there a better way of accomplishing our goal than using LocalConnection objects? 2. Is it normal for LocalConnection objects to inflict a substantial performance penalty? -Jim -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: FDS and componentized development: Bug?
Hi Pete, The channel endpoint defined in services-config.xml already had a fully-qualified URI. So, following your advice, I dug through the documentation to find out how to create a ChannelSet in ActionScript and assign it to my RemoteObject. This worked (thank you!), but it's very disturbing, for a number of reasons... 1) Why is it necessary to specify an endpoint in ActionScript *only if* the FDS code resides in a separate class file? (Remember, the app worked fine without the AS endpoint when the FDS code was in the main application MXML file.) 2) Why should it ever be necessary to define an endpoint in ActionScript when the endpoint has already been defined in the XML configuration file? This is redundant, it invites errors, and introduces code-maintenance headaches. 3) If this is how Flex is designed to work, and it's not a bug, why isn't this made obvious in the documentation? It should be in large, bold letters somewhere: IF YOU WANT TO DEFINE YOUR REMOTE OBJECTS IN AN ACTIONSCRIPT CLASS FILE, YOU MUST SPECIFY THE CHANNEL ENDPOINTS. 4) The main attraction of FDS are their simplicity. They are supposed to be easy to learn and use, and save a lot of time and effort. When I have to spend hours tracking down a silly problem like this, my boss gets disgusted, and I don't blame him. Am I just over-reacting, or is something wrong here? -Jim (BTW: Pete, THANK YOU again for your help!!!) --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: Ok, what about the channel endpoints? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: FDS and componentized development: Bug?
Hi Pete, I appreciate your patience. I compile the app using Flex Builder. I have the services path parameter set in the Project Properties dialog, along with the context root parameter. I started with a clean build - in fact,it was an entirely new Flex Project. I re-start the app server (Tomcat) after every change to the config files. I discovered something interesting. The original ActionScript class extended Sprite. I changed this to Canvas, and now it works without setting the endpoint in ActionScript. So I now have what I originally wanted, except that I needed to extend Canvas to get it. Any idea why this might be the case? Did I miss something in the docs about this? Do you have any advice as to what might be the lightest-weight ActionScript class that I could extend that would have the desired functionality? The class I'm building has no visible presence at all. Here is what it needs to do: Create, invoke methods on, and subscribe to messages from RemoteObjects; Manipulate the data returned from the RemoteObjects; Dispatch events. Thanks again for the help. Jim --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: 1.) You should be able to use either the configuration file or a programmatic approach in ActionScript. 2.) It is not necessary. 3.) See 2. 4.) I understand, let's discuss. How did you compile your MXML app - are you using Flex Builder 2 or the command line compiler? In either of these situations you need to tell the compiler to include a services-config.xml file in the generated SWF. This can be achieved through a compiler argument called services in flex-config.xml or specified on the command line using the mxmlc argument: --services=c:/path/to/your/web-app/WEB-INF/flex/services-config.xml If you're using Flex Builder 2 I know I have better success if I force a clean and rebuild when I change the configuration file or command line settings. Alternatively, if you're relying on FDS's webtier compiler (i.e. you browse to a .mxml file and a servlet that ships with FDS compiles your mxml to SWF) this should already be looking for /WEB-INF/flex/services-config.xml by default. Finally, note that when you do change /WEB-INF/flex/services-config.xml you need to restart the web application for FDS to see the changes - although this is not related to your issue at compilation time. Pete -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Pass Data or call function in another MXML file?
Mike, You can use data binding to accomplish what you want to do (if I understand your question correctly). Take a look at the code below. You can see a working example with source code at http://robsondesign.com/flexcoders/globalDateDisplay/globalDateDisplay.html HTH Jim 1. Here's a slightly modified version of your MXML component (I didn't want to extend the Date class). I called it DateDisplay.mxml: ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=100% mx:Script![CDATA[ public function setMasterDate(d:Date):void { MasterDate.text = d.month + / + d.date + / + d.fullYear; } ]] /mx:Script mx:Label id=MasterDate text=October 13, 2006 fontFamily=Georgia fontSize=16 textAlign=left x=85 width=201.5 height=26 fontWeight=bold top=9/ /mx:Canvas 2. Here's another MXML component that invokes the setMasterDate method. It's called DateControl.mxml: ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=400 mx:Script ![CDATA[ public var dateDisplay:DateDisplay; ]] /mx:Script mx:DateChooser id=dateChooser x=25 y=100 / mx:Button id=button label=Go click=dateDisplay.setMasterDate(dateChooser.selectedDate) x=50 y=300 / /mx:Canvas 2. Here's the main application MXML file: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:local=* local:DateDisplay id=dateDisplay / local:DateControl id=dateControl dateDisplay={dateDisplay} / /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: FDS and componentized development: Bug?
It seems like initializing mx.messaging.config.LoaderConfig.url would have essentially the same drawback as setting the endpoint in ActionScript - it would create a situation where I would need to maintain the URL in ActionScript. Or am I misunderstanding you? In any case, I think it's OK to use Canvas as the base class, because it doesn't seem to add excessive weight to the app. But I am very much open to better ideas! Thanks for the explanation -Jim --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: I discovered something interesting. The original ActionScript class extended Sprite. I changed this to Canvas, and now it works without setting the endpoint in ActionScript. So I now have what I originally wanted, except that I needed to extend Canvas to get it. *lightbulb illuminates* I know what the problem is now. If your channel endpoint has relative tokens in them, such as {server.name} and {server.port}, then these need to be resolved at runtime based on the URL used to load the SWF. The way that the channel gets this information is through the mx.messaging.config.LoaderConfig.url property, which is initialized when the main mx.managers.SystemManager starts up (as it is the one that has access to the root DisplayObject.loaderInfo). So, if you do need to use Sprite, then you could either avoid the relative tokens in your XML config for the channel or we'll need to get you to initialize the mx.messaging.config.Loader config. Pete -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: FDS and componentized development: Bug?
Cool - thank you very much for all the help. Making good forward progress now. -Jim --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: I think Canvas is the way to go... Note that I meant that you could get the info from the Sprite.loaderInfo.loaderURL and set it on the mx.messaging.config.LoaderConfig.mx_internal::_url property, though this involves using a mx.core.mx_internal namespace which I don't believe is public and hence guaranteed to be supported going forward. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: FDS and componentized development: Bug?
Hi Peter, Thanks for the reply. No, there is only one SWF. I have a main application MXML file that imports an ActionScript class. The ActionScript class has the FDS code. -Jim --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: Do you mean you have a parent SWF that loads another SWF that contains FDS code? 1. Perhaps you have a relative channel endpoint specified in the config and/or a programmatically created channel set. Try using fully qualified URLs. Or perhaps you're loading the parent SWF from the file system instead of via a URL? 2. Channels enforce a protocol, so the AMFChannel, for instance, enforces that communication occurs over HTTP so it ensures the URL starts with http:// - perhaps its having trouble working out what the hostname and port are (hence why I asked about the relative versus absolute channel endpoint). -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Making the datagrid header background alpha 0
Hank, Did you try using headerStyleName? Something like this: DataGrid { headerStyleName: myHeaderStyle; } .myHeaderStyle{ backgroundAlpha: 0.0; } -Jim --- In flexcoders@yahoogroups.com, hank williams [EMAIL PROTECTED] wrote: I want to make my datagrid header transparent the way the body is, but there is no field for header alpha as far as I can see. I am sure I could make some kind of skin, but I havent much looked into skinning the datagrid and was wondering if there was some fairly easy way to acheive the effect I am looking for. Hank -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flex 2.0: Zoom effect with PopUpManager
I can't seem to get a pop-up window to zoom in consistently. Using the code below, the window zooms in nicely but its children never grow to full-size. Theargument passed to the function belowan MXML component that uses a TitleWindow as its base. The TitleWindow has a VBox containing a Tree and a couple of Buttons. The window zooms to full size, but the Tree gets to about 2/3 of its full size, and the labels in the buttonsdo not display properly until you mouse over the buttons. Other methods I've tried eitherdon't work at all, or work inconsistently.Is there an error in my code? Is there some property or method of the Zoom effect that I'm missing? Or is there a known issue with Zoom and PopUpManager used together? private function customZoom(o:Object):void { var a:Fade = new Fade(o);a.alphaFrom = 0.0;a.alphaTo = 1.0;a.duration = 500; var z:Zoom = new Zoom(o);z.zoomWidthFrom = 0.01;z.zoomWidthTo = 1.0;z.zoomHeightFrom = 0.01;z.zoomHeightTo = 1.0;z.duration = 500; var p:Parallel = new Parallel();p.addChild(a);p.addChild(z); p.play(); } __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] High Level: Actionscript Components vs. Importing Actionscript Classes
Evan: Good question! I think that the primary difference between a component and a class is how you use it. You import a class using the ActionScript import statement and then access the properties and methods of that class in your ActionScript code, whereas a component is declared using an MXML tag. Here's some stuff on building custom components: http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=Part3_CreateComps.html You may have already noticed that the documentation on writing an ActionScript class actually links back to the section on building components, which helps to make your point, that there isn't much difference between a component and a class: http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0418.html There are some classes (such as SimpleButton)that are accessible via ActionScript but not MXML tags. Apart from that, I don't think there is any difference between components and classes.If my understanding is lacking, I trust that others on the list will make necessary corrections. Jim From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Evan GiffordSent: Tuesday, June 20, 2006 2:03 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] High Level: Actionscript Components vs. Importing Actionscript Classes Wow .. .Im humbled to ask this question .. but the truth is I cant find an answer to this: In the LiveDocs article here: http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0453.html It states the 5 ways that actionscript can be worked into MXML. The first 3 I understand, basics like using actionscript in an event handler and embedding it into the MXML file. The last two though are confusing to me: Import ActionScript classes. Create ActionScript components. What is the difference between importing classes and Creating/Using actionscript components? Thanks Guys, Im honored to be a part of this list and hope to be able to contribute to it soon. -Evan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim HoffSent: Monday, June 19, 2006 7:38 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: Accordion state change? Instead of states, you can use a little binding, like:mx:Text x="10" y="10" text="{ScriptsAccordion.selectedChild.label} Page Text" width="218" id="text1"/Or, create an Array that contains the text that you want to display, in the same order as the Accordion children. You would then similarly bind like:text="{myArray[ScriptsAccordion.selectedIndex]}"-TH--- In [EMAIL PROTECTED]ups.com, Impudent1 [EMAIL PROTECTED].. wrote: I have been playing with flex a bit lately, doing the tutorials, some web examples from the blogs (ty all ;p ) I decided to try to rebuild a basic web page that currently lists all the scripts I created for After Effects in Flex2B3. What I am stuck on is trying to have an accordion navigator change the content in a specific canvas. I currently have setup states to do this. Thinking that I would be able to setup a function that would test the accordions selected id vs a list of states and change accordingly I setup the following: ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" mx:states mx:State name="BackBurnerSubmitUI" mx:SetProperty target="{text1}" name="text" value="Backburner page text"/ /mx:State mx:State name="BackupProject" mx:SetProperty target="{text1}" name="text" value="BackupProject page text"/ /mx:State mx:State name="Calc" mx:SetProperty target="{text1}" name="text" value="Calc page text"/ /mx:State mx:State name="DefaultFolders" mx:SetProperty target="{text1}" name="text" value="Default Folders page text"/ /mx:State mx:State name="DropFootageTime0" mx:SetProperty target="{text1}" name="text" value="DropFootage page text"/ /mx:State mx:State name="FilmCalc" mx:SetProperty target="{text1}" name="text" value="Filmcalc page text"/ /mx:State mx:State name="FontCollector" mx:SetProperty target="{text1}" name="text" value="Font collector page text"/ /mx:State mx:State name="GoWarpStatic" mx:SetProperty target="{text1}" name="text" value="Gowarp page text"/ /mx:State mx:State name="Gspot" mx:SetProperty target="{text1}" name="text" value="Gspot page text"/ /mx:State mx:State name="ImportExportLayouts" mx:SetProperty target="{text1}" name="text" value="Layouts page text"/ /mx:State mx:State name="ImportExportMRU" mx:SetProperty target="{text1}" name="text" value="MRU page text"/ /mx:State mx:State name="MusterBatchUI" mx:SetProperty target="{text1}" name="text" value="Musterbatch page text"/ /mx:State mx:State name="MusterSubmitUI" mx:SetProperty target="{text1}" name="text" value="Mustersubmit page text"/
[flexcoders] titleBar in TitleWindow (Panel) class
When subclassing the TitleWindow class, shouldn't it be possible to add a child to the titleBar UIComponent? Within the Panel class definition, children are added to the titleBar using the addChild method. However, when I attempt to do so in a subclass, the child does not display. Does anyone know why this is? Am I missing something (code below)? package com.eyestreet.widgets { import mx.containers.TitleWindow; import mx.controls.Image; import flash.display.DisplayObject; public class TitleWindowResizeable extends TitleWindow { [Embed(source=button-resize.png, mimeType=image/png)] private var clsButton:Class; private var imgButton:Image; private var dspButton:DisplayObject; public function TitleWindowResizeable(){ super(); imgButton = new Image(); imgButton.source = clsButton; } override protected function createChildren():void { super.createChildren(); //This does not display: dspButton = titleBar.addChild(imgButton); /* The following would display, but the image * gets trimmed by the panel's frame: * dspButton = titleBar.addChild(imgButton); */ } override protected function layoutChrome(unscaledWidth:Number, unscaledHeight:Number):void { super.layoutChrome(unscaledWidth, unscaledHeight); dspButton.x = unscaledWidth-30; dspButton.y = unscaledHeight-30; } } } 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/
RE: [flexcoders] titleBar in TitleWindow (Panel) class
Jeff: I think my Flash player must have become corrupted: when I try to view your sample in action, all I get is the Flex-gray background. http://flex2.tapper.net/flex2Demos/TestMaxRestorePanel.html Jim From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff TapperSent: Friday, June 16, 2006 10:32 AMTo: flexcoders@yahoogroups.com; flexcoders@yahoogroups.comSubject: Re: [flexcoders] titleBar in TitleWindow (Panel) class Try adding it to the rawChildren of the Panel, rather than directly to the titleBar.I've got an example of doing that here:http://jeff.mxdj.com/flex_2_maxrestorepanel_class.htmAt 10:21 AM 6/16/2006, Jim Robson wrote:When subclassing the TitleWindow class, shouldn't it be possible to add achild to the titleBar UIComponent? Within the Panel class definition,children are added to the titleBar using the addChild method. However, whenI attempt to do so in a subclass, the child does not display. Does anyoneknow why this is? Am I missing something (code below)?package com.eyestreet.widgets {import mx.containers.TitleWindow;import mx.controls.Image;import flash.display.DisplayObject;public class TitleWindowResizeable extends TitleWindow {[Embed(source="button-resize.png", mimeType="image/png")]private var clsButton:Class;private var imgButton:Image;private var dspButton:DisplayObject;public function TitleWindowResizeable(){super();imgButton = new Image();imgButton.source = clsButton;}override protected function createChildren():void {super.createChildren();//This does not display:dspButton = titleBar.addChild(imgButton);/* The following would display, but the image* gets trimmed by the panel's frame:* dspButton = titleBar.addChild(imgButton);*/}override protected function layoutChrome(unscaledWidth:Number,unscaledHeight:Number):void {super.layoutChrome(unscaledWidth, unscaledHeight);dspButton.x = unscaledWidth-30;dspButton.y = unscaledHeight-30;}}}No virus found in this incoming message.Checked by AVG Anti-Virus.Version: 7.1.394 / Virus Database: 268.9.0/367 - Release Date: 6/16/2006-- No virus found in this outgoing message.Checked by AVG Anti-Virus.Version: 7.1.394 / Virus Database: 268.9.0/367 - Release Date: 6/16/2006 __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: titleBar in TitleWindow (Panel) class
Mike Renaun: You nailed it!!! All I needed to do was call setActualSize! Thanks to both of you and to Jeff for helping out! Jim From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Renaun EricksonSent: Friday, June 16, 2006 10:50 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: titleBar in TitleWindow (Panel) class In the layoutChrome function add this line:imgButton.setActualSize( imgButton.getExplicitOrMeasuredWidth(),imgButton.getExplicitOrMeasuredHeight() );Renaun--- In [EMAIL PROTECTED]ups.com, "Jim Robson" jim.robson@... wrote: When subclassing the TitleWindow class, shouldn't it be possible toadd a child to the titleBar UIComponent? Within the Panel class definition, children are added to the titleBar using the addChild method.However, when I attempt to do so in a subclass, the child does not display. Doesanyone know why this is? Am I missing something (code below)? package com.eyestreet.widgets { import mx.containers.TitleWindow; import mx.controls.Image; import flash.display.DisplayObject; public class TitleWindowResizeable extends TitleWindow { [Embed(source="button-resize.png", mimeType="image/png")] private var clsButton:Class; private var imgButton:Image; private var dspButton:DisplayObject; public function TitleWindowResizeable(){ super(); imgButton = new Image(); imgButton.source = clsButton; } override protected function createChildren():void { super.createChildren(); //This does not display: dspButton = titleBar.addChild(imgButton); /* The following would display, but the image * gets trimmed by the panel's frame: * dspButton = titleBar.addChild(imgButton); */ } override protected function layoutChrome(unscaledWidth:Number, unscaledHeight:Number):void { super.layoutChrome(unscaledWidth, unscaledHeight); dspButton.x = unscaledWidth-30; dspButton.y = unscaledHeight-30; } } } __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] titleBar in TitleWindow (Panel) class
That's more like it :-) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff TapperSent: Friday, June 16, 2006 11:02 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] titleBar in TitleWindow (Panel) class Ah yeah, i probably still have a beta 2 build of it up there. I just dropped a b3 version of it here:http://flex2.tapper.net/flex2Demos/maxRestorePanel/Test_Panel.swfAt 10:47 AM 6/16/2006, you wrote:Jeff:I think my Flash player must have become corrupted: when I try to view your sample in action, all I get is the Flex-gray background.http://flex2.tapper.net/flex2Demos/TestMaxRestorePanel.htmlhttp://flex2.tapper.net/flex2Demos/TestMaxRestorePanel.htmlJim--From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Jeff TapperSent: Friday, June 16, 2006 10:32 AMTo: [EMAIL PROTECTED]ups.com; [EMAIL PROTECTED]ups.comSubject: Re: [flexcoders] titleBar in TitleWindow (Panel) classTry adding it to the rawChildren of the Panel, rather than directly to thetitleBar.I've got an example of doing that here:http://jeff.mxdj.com/flex_2_maxrestorepanel_class.htmhttp://jeff.mxdj.com/flex_2_maxrestorepanel_class.htmAt 10:21 AM 6/16/2006, Jim Robson wrote: When subclassing the TitleWindow class, shouldn't it be possible to add a child to the titleBar UIComponent? Within the Panel class definition, children are added to the titleBar using the addChild method. However, when I attempt to do so in a subclass, the child does not display. Does anyone know why this is? Am I missing something (code below)? package com.eyestreet.widgets { import mx.containers.TitleWindow; import mx.controls.Image; import flash.display.DisplayObject; public class TitleWindowResizeable extends TitleWindow { [Embed(source="button-resize.png", mimeType="image/png")] private var clsButton:Class; private var imgButton:Image; private var dspButton:DisplayObject; public function TitleWindowResizeable(){ super(); imgButton = new Image(); imgButton.source = clsButton; } override protected function createChildren():void { super.createChildren(); //This does not display: dspButton = titleBar.addChild(imgButton); /* The following would display, but the image * gets trimmed by the panel's frame: * dspButton = titleBar.addChild(imgButton); */ } override protected function layoutChrome(unscaledWidth:Number, unscaledHeight:Number):void { super.layoutChrome(unscaledWidth, unscaledHeight); dspButton.x = unscaledWidth-30; dspButton.y = unscaledHeight-30; } } }No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.9.0/367 - Release Date: 6/16/2006--No virus found in this outgoing message.Checked by AVG Anti-Virus.Version: 7.1.394 / Virus Database: 268.9.0/367 - Release Date: 6/16/2006No virus found in this incoming message.Checked by AVG Anti-Virus.Version: 7.1.394 / Virus Database: 268.9.0/367 - Release Date: 6/16/2006-- No virus found in this outgoing message.Checked by AVG Anti-Virus.Version: 7.1.394 / Virus Database: 268.9.0/367 - Release Date: 6/16/2006 __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] F2B3: Add Image to panel border?
Im trying extend the TitleWindow class: the goal is to add a small graphic to the lower right corner to be used as a resize button. This is something that should display outside of the windows contents. But no matter what Ive tried, the button gets obscured by whatever code the Container class uses to limit the size of its children. Ive pasted the current version of my code below. Anyone see what Im doing wrong? package { import mx.containers.TitleWindow; import mx.controls.Image; import flash.display.DisplayObject; public class TitleWindowResizeable extends TitleWindow { [Embed(source=button-resize.png, mimeType=image/png)] private var clsButton:Class; private var imgButton:Image; private var dspButton:DisplayObject; private var indButton:int; public function TitleWindowResizeable(){ super(); imgButton = new Image(); imgButton.source = clsButton; } override protected function createChildren():void { super.createChildren(); indButton = rawChildren.numChildren - 1; dspButton = rawChildren.addChildAt(imgButton,indButton); dspButton.x = 400; //this.width - 14; dspButton.y = 450; //this.height - 14; } } __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: Flex2B3 - LinkBar advice please
Did you try horizontalScrollPolicy ? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of bhaq1972 Sent: Wednesday, June 14, 2006 7:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex2B3 - LinkBar advice please i'm down to one problem. how can i supress the horizontalScrollBar from appearing. btw. the answer to problem 2 was hbox1.horizontalScrollPosition = hbox1.maxWidth;//not hbox1.width --- In [EMAIL PROTECTED]ups.com, bhaq1972 [EMAIL PROTECTED] wrote: I've modified my code to give me nearly what i want. Problems 1) if you keep clicking the 'Add' button (to create more viewstack children), the horizontal scroll bar appears after viewstack child9. how do i get rid of it? 2) my horizontalScrollPosition for the linkbar hbox is always to the right edge ie hbox1.horizontalScrollPosition = hbox1.width; this works upto viewstack child 15. after that it no longer works. any ideas? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Script ![CDATA[ import mx.containers.VBox; private var iCount:int = 4; private function addStuff():void { iCount++; var vbox1:VBox = new VBox(); vbox1.label = screen+iCount; vs1.addChild(vbox1); if(hbox1.horizontalScrollBar) { hbox1.horizontalScrollBar.visible = false; } hbox1.horizontalScrollPosition = hbox1.width; } ]] /mx:Script mx:Panel id=panel1 title=Click on 'Add' to add more links/viewstack children height=100% minWidth=0 width=100% horizontalScrollPolicy=off mx:HBox width=100% mx:Button label=Add click=addStuff()/ mx:HBox id=hbox1 minWidth=0 width=70% mx:LinkBar id=linkbar1 color=#FF fontWeight=bold minWidth=0 dataProvider=vs1 / /mx:HBox mx:Button label=LinkBar End Point/ /mx:HBox mx:ViewStack id=vs1 mx:VBox label=screen1/ mx:VBox label=screen2/ mx:VBox label=screen3/ mx:VBox label=screen4/ /mx:ViewStack /mx:Panel /mx:Application --- In [EMAIL PROTECTED]ups.com, bhaq1972 mbhaque@ wrote: I have a linkbar and a viewstack. I have limited width for the Linkbar. I have 2 issues someone may be able to help me on. 1) as more links are added to the link bar, i want to be able to see the end linkbuttons (if this was possible, i would do this linkbar.horizontalHorizontalPosition = linkbar.maxHorizontalPosition). 2) In the example below i want to able to move the linkbar left or right using the 2 buttons either side of it. any help would be appreciated bod (bhaq1972) mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Script ![CDATA[ import mx.containers.VBox; private var iCount:int = 4; private function addStuff():void { iCount++; var vbox1:VBox = new VBox(); vbox1.label = screen+iCount; vs1.addChild(vbox1); } ]] /mx:Script mx:Panel id=panel1 title=Click on 'Add' to add more links/viewstack children height=100% minWidth=0 width=100% horizontalScrollPolicy=off mx:HBox width=100% mx:Button label=Add click=addStuff()/ mx:Button label=lt; width=20/ mx:LinkBar id=linkbar1 color=#FF fontWeight=bold width=70% minWidth=0 dataProvider=vs1 / mx:Button label=gt; width=20/ /mx:HBox mx:ViewStack id=vs1 mx:VBox label=screen1/ mx:VBox label=screen2/ mx:VBox label=screen3/ mx:VBox label=screen4/ /mx:ViewStack /mx:Panel /mx:Application __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] dragging problem
Search the documents for drag and drop and youll find lots of information to get you going. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rajesh Deshmukh Sent: Wednesday, June 14, 2006 7:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] dragging problem Can anybody please tell me how to implement drag and drop on TitleWindow . Please help me out Regards Rajesh Deshmukh Multimedia- Programmer TechBooks | Maximize Learning __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] FB2B3: FlexUnit not showing stack trace
Im trying FlexUnit, and everything appears to be working correctly except that nothing appears in the stack trace field. Has anyone else experienced this? If so, how did you resolve it? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Excel Export
Thats great thanks! From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Steve Gustafson Sent: Wednesday, June 14, 2006 8:59 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Excel Export Jim, What I mean by true Excel files is a binary file that is native to Excel. Not a delimited text file, or HTML file that Excel can open. The difference is that by generating a true Excel file with POI-HSSF, you have the ability to: create multiple worksheets split and freeze panes draw shapes outlining set the data format of cells merge cells set print area color cells and text use formulas reference other cells and worksheets etc. etc. etc. Some of this can be done with HTML, but not all. Using CFCONTENT does not generate a binary Excel file, it simply sets the MIME type to application/msexcel but the file is still a text file that is either delimited or HTML. This may be more than the original poster was looking to do, and in many cases a CSV or HTML file is adequate, however POI-HSSF brings a whole 'nother level of power to using server data with Excel. Here is a link to Busy Develepors Guide to HSSF Features Gus On 6/13/06, Jim Robson [EMAIL PROTECTED] wrote: Steve, Not sure what you mean by true Excel files, but CF does natively provide the ability to generate .xls files using the cfcontent tag: http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentationfile=part_cfm.htm -Jim __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] show/hide panel borders (F2b3)
Hi Tom, I noticed the way the size of the panel contents changed in response to the change in border thickness, too. Im glad you found a solution to that thanks for posting it. Jim From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Fitzpatrick Sent: Tuesday, June 13, 2006 7:58 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] show/hide panel borders (F2b3) Hi Jim - Thanks for your answer and sample. My problem was in changing the borderStyle to none - that's what was messing up the panel layout. But then I ran into a different problem - demonstrated in your example as well - which is that changing the thickness of the border shrinks the contents of the panel and causes everything to move inward. What I wanted was a simple selection indicator that leaves everything inside the panel as is. What I ended up doing was surrounding the panel with a vbox that has all paddings set to zero and the same corner radius as the panel, and it's this border color that I'm changing. This leaves everything alone inside the panel. It does bring up yet another problem, though, which I'll address in a separate posting. - Tom Jim Robson wrote: Hey Tom, I can't reproduce your issue. Using the code below, the border toggles off and on, and the panel retains its rounded corners. Perhaps I misunderstood the nature of your question? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute borderStyle=solid mx:Script ![CDATA[ private var foo:Boolean = true private function swapBorder():void { if(foo){ //Remove border pnlUgly.setStyle(borderThickness,0); }else{ //Replace border pnlUgly.setStyle(borderThickness,2); pnlUgly.setStyle(borderColor,0xff8040); } foo = !foo; } ]] /mx:Script mx:Panel id=pnlUgly x=177 y=107 width=310 height=200 layout=absolute cornerRadius=10 borderStyle=solid borderThickness=2 borderColor=#ff8040 backgroundColor=#00ff00 title=Ugly Panel mx:Form x=10 y=10 mx:FormItem label=Label mx:TextInput/ /mx:FormItem mx:FormItem label=Label mx:ComboBox/mx:ComboBox /mx:FormItem mx:FormItem label=Label mx:Button label=Button click=swapBorder();/ /mx:FormItem /mx:Form /mx:Panel /mx:Application On Mon, 12 Jun 2006 16:51:59 -0400 Tom Fitzpatrick [EMAIL PROTECTED]os.com mailto:tom%40streamlinestudios.com wrote: Yes - I tried that. The problem is that the border, even when set to the panel's background color, interrupts it visually - overlaying the panel header, for example. It seems that what I need is to redraw or refresh the panel after the border is removed to restore the original look. I just don't know how to do that. - Tom Jim Robson wrote: Tom, Instead of removing the border, which seems to confuse the player, could you just toggle the border's color? When you want the border to disappear, change its color to the same color as the panel's background. Then change the color back when you want the border to be visible. Will that work? Jim On Mon, 12 Jun 2006 14:48:15 -0400 Tom Fitzpatrick [EMAIL PROTECTED]os.com mailto:tom%40streamlinestudios.com mailto:tom%40streamlinestudios.com wrote: I have a panel with corner radius set to 10. I'm trying to turn its border on and off programatically, toggling the border styles between solid and none, thickness between 2 and 0. The toggling is working fine, but when I hide the border after showing it once, I lose the panel's curved corner radius and its dropshadow. Is there some way to just turn the border on and off while still retaining the dropshadow and the look of the panel's corner radius? - Tom __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Excel Export
Its a Flex / ColdFusion app; the Excel exporting is probably done in ColdFusion. But you can check with the developer directly via his blog: http://www.drisgill.com/ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of vestcomprogrammer Sent: Monday, June 12, 2006 1:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Excel Export Does anyone know how to export to excel, like they do on the timetracker application on the showcase page on http://labs.adobe.com/showcase/. Thanks Bill __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Excel Export
Steve, Not sure what you mean by true Excel files, but CF does natively provide the ability to generate .xls files using the cfcontent tag: http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentationfile=part_cfm.htm -Jim From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Gustafson Sent: Tuesday, June 13, 2006 12:39 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Excel Export The Time Tracker application is not really exporting to excel. it is just saving HTML with a .xls extension. ColdFusion does not have a native way of generating true Excel files either. As far as I know, the two ways to create native excel files on the server side is using COM, or POI-HSSF. POI-HSSF is part of the Apache-Jakarta project, open source, and plays nicely with ColdFusion MX or any other J2EE server. Check it out here: POI-HSSF Gus On 6/12/06, vestcomprogrammer [EMAIL PROTECTED] wrote: Does anyone know how to export to excel, like they do on the timetracker application on the showcase page on http://labs.adobe.com/showcase/. Thanks Bill __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] show/hide panel borders (F2b3)
Tom, Instead of removing the border, which seems to confuse the player, could you just toggle the border's color? When you want the border to disappear, change its color to the same color as the panel's background. Then change the color back when you want the border to be visible. Will that work? Jim On Mon, 12 Jun 2006 14:48:15 -0400 Tom Fitzpatrick [EMAIL PROTECTED] wrote: I have a panel with corner radius set to 10. I'm trying to turn its border on and off programatically, toggling the border styles between solid and none, thickness between 2 and 0. The toggling is working fine, but when I hide the border after showing it once, I lose the panel's curved corner radius and its dropshadow. Is there some way to just turn the border on and off while still retaining the dropshadow and the look of the panel's corner radius? - Tom Yahoo! Groups Sponsor ~-- Protect your PC from spy ware with award winning anti spy technology. It's free. http://us.click.yahoo.com/97bhrC/LGxNAA/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/
Re: [flexcoders] show/hide panel borders (F2b3)
Hey Tom, I can't reproduce your issue. Using the code below, the border toggles off and on, and the panel retains its rounded corners. Perhaps I misunderstood the nature of your question? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute borderStyle=solid mx:Script ![CDATA[ private var foo:Boolean = true private function swapBorder():void { if(foo){ //Remove border pnlUgly.setStyle(borderThickness,0); }else{ //Replace border pnlUgly.setStyle(borderThickness,2); pnlUgly.setStyle(borderColor,0xff8040); } foo = !foo; } ]] /mx:Script mx:Panel id=pnlUgly x=177 y=107 width=310 height=200 layout=absolute cornerRadius=10 borderStyle=solid borderThickness=2 borderColor=#ff8040 backgroundColor=#00ff00 title=Ugly Panel mx:Form x=10 y=10 mx:FormItem label=Label mx:TextInput/ /mx:FormItem mx:FormItem label=Label mx:ComboBox/mx:ComboBox /mx:FormItem mx:FormItem label=Label mx:Button label=Button click=swapBorder();/ /mx:FormItem /mx:Form /mx:Panel /mx:Application On Mon, 12 Jun 2006 16:51:59 -0400 Tom Fitzpatrick [EMAIL PROTECTED] wrote: Yes - I tried that. The problem is that the border, even when set to the panel's background color, interrupts it visually - overlaying the panel header, for example. It seems that what I need is to redraw or refresh the panel after the border is removed to restore the original look. I just don't know how to do that. - Tom Jim Robson wrote: Tom, Instead of removing the border, which seems to confuse the player, could you just toggle the border's color? When you want the border to disappear, change its color to the same color as the panel's background. Then change the color back when you want the border to be visible. Will that work? Jim On Mon, 12 Jun 2006 14:48:15 -0400 Tom Fitzpatrick [EMAIL PROTECTED] mailto:tom%40streamlinestudios.com wrote: I have a panel with corner radius set to 10. I'm trying to turn its border on and off programatically, toggling the border styles between solid and none, thickness between 2 and 0. The toggling is working fine, but when I hide the border after showing it once, I lose the panel's curved corner radius and its dropshadow. Is there some way to just turn the border on and off while still retaining the dropshadow and the look of the panel's corner radius? - Tom Yahoo! Groups Sponsor ~-- Get to your groups with one click. Know instantly when new email arrives http://us.click.yahoo.com/.7bhrC/MGxNAA/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/
RE: [flexcoders] Is Adobe a reasonable business partner?
Hello all, I just want to confirm Matts note. Adobe has responded professionally and effectively to my concerns. Jim From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Thursday, June 08, 2006 4:58 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Is Adobe a reasonable business partner? Update: weve worked with Jim off-list to resolve his issues. If anyone else runs into probs dealing with support, service, or sales please let me know. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jim Robson Sent: Thursday, June 08, 2006 4:00 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Is Adobe a reasonable business partner? Ive been developing in Flash and CF for years, so I have some experience dealing with Macromedia, but Ive never had to deal with Adobe until now. So far, my impression is that the Adobe developers are great (although most of the ones Im aware of probably worked for Macromedia). However, I am not having good experiences with the customer service or sales personnel. Has anyone on the list had experience dealing with Adobe as a business partner? Flex is a very cool product, but I dont think its good to tolerate an unresponsive or arrogant vendor. What are your impressions? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [SPAM] [flexcoders] Event when Data is Loaded ?
Jean-Luc, How about if you initialize the DataGrids visible property to false until the data is loaded, and write a handler for the complete event of the URLLoader class that sets the DataGrids visible property to true when all the data is loaded? Would that work? Docs on the complete event: http://livedocs.macromedia.com/labs/1/flex/langref/flash/net/URLLoader.html#event:complete Jim From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jean-Luc ESSER Sent: Friday, June 09, 2006 6:29 AM To: flexcoders@yahoogroups.com Subject: [SPAM] [flexcoders] Event when Data is Loaded ? Hi there, I'm trying to show a component on stage only when its dataProvider hasfinished populating the component. Let's take for exemple a datagrid with an itemRenderer. How would i set my datagridproperty to visible only when all data from its dataProvider has been loaded and its itemRenderers have been layed out ? None of the events avalaible are made for that. Render Event would be the closest, but it's not made for that. Any ideas ? Best, Jean-Luc. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Event when Data is Loaded ?
Jean-Luc, How about if you initialize the DataGrids visible property to false until the data is loaded, and write a handler for the complete event of the URLLoader class that sets the DataGrids visible property to true when all the data is loaded? Would that work? Docs on the complete event: http://livedocs.macromedia.com/labs/1/flex/langref/flash/net/URLLoader.html#event:complete Jim From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jean-Luc ESSER Sent: Friday, June 09, 2006 8:47 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Event when Data is Loaded ? Nope, this won't work as the updateComplete event is dispatched xx times during the process ! No way to identify which one is the last one. Anyone ? JL - Original Message - From: Dirk Eismann To: flexcoders@yahoogroups.com Sent: Friday, June 09, 2006 2:04 PM Subject: RE: [flexcoders] Event when Data is Loaded ? You may want to try the updateComplete() event: mx:DataGrid updateComplete=doStuff() dataProvider={dp}/ this should get called after the DataGrid has updated itself due to internal commitProperties(), measure(), or updateDisplayList() calls. Dirk. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] F2B3: useHandCursor property of Text control
Per the docs, the useHandCursor property is inherited from the Sprite class. However, it doesnt seem to work on the Text control. When set to true, the mouse cursor remains an arrow instead of changing to a button when over the text field: mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. buttonMode=true selectable=false useHandCursor=true / What am I missing? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] F2B3: useHandCursor property of Text control
Hi Mike, Thanks for looking into this. I tried your suggestion, but the cursor still turns back into an arrow when it gets over the text field. My code is below; if I did not correctly follow your suggestion, please let me know where I went wrong: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Script ![CDATA[ private function onInit(event:Event):void { txtItem.mx_internal::textField.mouseEnabled = false; } ]] /mx:Script mx:VBox width=400 height=700 buttonMode=true useHandCursor=true mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. selectable=false / /mx:VBox /mx:Application From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle Sent: Friday, June 09, 2006 9:48 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] F2B3: useHandCursor property of Text control Hi, 1) the internal textfield has no useHandCursor property, this kills one hack. 2) Text control has no border, so there is nothing to hit when you set the component's useHandCursor to true. 3) The internal textfield is eating the event 4) wrap it with a VBOX or the like This does work ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=vertical creationComplete=onInit(event) mx:Script ![CDATA[ private function onInit(event:Event):void { txtItem.mx_internal::textField.mouseEnabled = false; } ]] /mx:Script mx:VBox buttonMode=true useHandCursor=true mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. selectable=false / /mx:VBox /mx:Application Adjust to what you need but, there is a hack here. Peace, Mike On 6/9/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote: I have the exact same problem, anddo not have a solution. If you put handCursor on a Box where you text resides, it does not work either. Best, JL - Original Message - From: Jim Robson To: flexcoders@yahoogroups.com Sent: Friday, June 09, 2006 3:18 PM Subject: [flexcoders] F2B3: useHandCursor property of Text control Per the docs, the useHandCursor property is inherited from the Sprite class. However, it doesn't seem to work on the Text control. When set to true, the mouse cursor remains an arrow instead of changing to a button when over the text field: mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. buttonMode=true selectable=false useHandCursor=true / What am I missing? -- What goes up, does come down. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] F2B3: useHandCursor property of Text control
Never mind my last post I had missed the creationComplete attribute in the Application tag. It works now! Thanks Mike! From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle Sent: Friday, June 09, 2006 9:48 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] F2B3: useHandCursor property of Text control Hi, 1) the internal textfield has no useHandCursor property, this kills one hack. 2) Text control has no border, so there is nothing to hit when you set the component's useHandCursor to true. 3) The internal textfield is eating the event 4) wrap it with a VBOX or the like This does work ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=vertical creationComplete=onInit(event) mx:Script ![CDATA[ private function onInit(event:Event):void { txtItem.mx_internal::textField.mouseEnabled = false; } ]] /mx:Script mx:VBox buttonMode=true useHandCursor=true mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. selectable=false / /mx:VBox /mx:Application Adjust to what you need but, there is a hack here. Peace, Mike On 6/9/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote: I have the exact same problem, anddo not have a solution. If you put handCursor on a Box where you text resides, it does not work either. Best, JL - Original Message - From: Jim Robson To: flexcoders@yahoogroups.com Sent: Friday, June 09, 2006 3:18 PM Subject: [flexcoders] F2B3: useHandCursor property of Text control Per the docs, the useHandCursor property is inherited from the Sprite class. However, it doesn't seem to work on the Text control. When set to true, the mouse cursor remains an arrow instead of changing to a button when over the text field: mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. buttonMode=true selectable=false useHandCursor=true / What am I missing? -- What goes up, does come down. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] F2B3: useHandCursor property of Text control
Peter: That works perfectly, and its not even a workaround! Thanks very much! Jim From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Peter Baird Sent: Friday, June 09, 2006 11:01 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] F2B3: useHandCursor property of Text control Manish Jenathi blogged about this a while back, but Im not seeing the blog entry anymore. Anyway, the following works, and I believe is the recommended approach: mx:Text width=100% text=hello useHandCursor=true buttonMode=true mouseChildren=false / Per Manishs explanation (as best I remember), the component needs to know that it has no mouseChildren to listen for. -Peter On 6/9/06 10:26 AM, Jim Robson [EMAIL PROTECTED] wrote: Hi Mike, Thanks for looking into this. I tried your suggestion, but the cursor still turns back into an arrow when it gets over the text field. My code is below; if I did not correctly follow your suggestion, please let me know where I went wrong: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Script ![CDATA[ private function onInit(event:Event):void { txtItem.mx_internal::textField.mouseEnabled = false; } ]] /mx:Script mx:VBox width=400 height=700 buttonMode=true useHandCursor=true mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. selectable=false / /mx:VBox /mx:Application From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Schmalle Sent: Friday, June 09, 2006 9:48 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] F2B3: useHandCursor property of Text control Hi, 1) the internal textfield has no useHandCursor property, this kills one hack. 2) Text control has no border, so there is nothing to hit when you set the component's useHandCursor to true. 3) The internal textfield is eating the event 4) wrap it with a VBOX or the like This does work ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=vertical creationComplete=onInit(event) mx:Script ![CDATA[ private function onInit(event:Event):void { txtItem.mx_internal::textField.mouseEnabled = false; } ]] /mx:Script mx:VBox buttonMode=true useHandCursor=true mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. selectable=false / /mx:VBox /mx:Application Adjust to what you need but, there is a hack here. Peace, Mike On 6/9/06, Jean-Luc ESSER [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I have the exact same problem, and do not have a solution. If you put handCursor on a Box where you text resides, it does not work either. Best, JL - Original Message - From: Jim Robson mailto:[EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, June 09, 2006 3:18 PM Subject: [flexcoders] F2B3: useHandCursor property of Text control Per the docs, the useHandCursor property is inherited from the Sprite class. However, it doesn't seem to work on the Text control. When set to true, the mouse cursor remains an arrow instead of changing to a button when over the text field: mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. buttonMode=true selectable=false useHandCursor=true / What am I missing? / \ PETER BAIRD 888/ \888 User Experience Consultant 88/ / \88 Adobe Consulting | Adobe Systems, Inc 8/ /8\ \8 275 Grove St. Newton, MA / /888\ \ Office: 617.219.2126 | Cell: 617.803.6804 \8\ AIM: pbaird00 | Y!IM: pbaird00 __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] F2B3: useHandCursor property of Text control
No problem, Mike, it happens all the time. The price I pay for having a first name embedded in my last name. J From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle Sent: Friday, June 09, 2006 11:07 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] F2B3: useHandCursor property of Text control opps, Jim, looked at your last name :) Mike On 6/9/06, Michael Schmalle [EMAIL PROTECTED] wrote: AH!!! That was one other thing I was going to try!!! mouseChildren. I couldn't get why it would matter. That is what you get for trying to multi-task. Rob, I gave it my best ;-) Peace, Mike On 6/9/06, Peter Baird [EMAIL PROTECTED] wrote: Manish Jenathi blogged about this a while back, but I'm not seeing the blog entry anymore. Anyway, the following works, and I believe is the recommended approach: mx:Text width=100% text=hello useHandCursor=true buttonMode=true mouseChildren=false / Per Manish's explanation (as best I remember), the component needs to know that it has no mouseChildren to listen for. -Peter On 6/9/06 10:26 AM, Jim Robson [EMAIL PROTECTED] wrote: Hi Mike, Thanks for looking into this. I tried your suggestion, but the cursor still turns back into an arrow when it gets over the text field. My code is below; if I did not correctly follow your suggestion, please let me know where I went wrong: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Script ![CDATA[ private function onInit(event:Event):void { txtItem.mx_internal::textField.mouseEnabled = false; } ]] /mx:Script mx:VBox width=400 height=700 buttonMode=true useHandCursor=true mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. selectable=false / /mx:VBox /mx:Application From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Schmalle Sent: Friday, June 09, 2006 9:48 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] F2B3: useHandCursor property of Text control Hi, 1) the internal textfield has no useHandCursor property, this kills one hack. 2) Text control has no border, so there is nothing to hit when you set the component's useHandCursor to true. 3) The internal textfield is eating the event 4) wrap it with a VBOX or the like This does work ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=vertical creationComplete=onInit(event) mx:Script ![CDATA[ private function onInit(event:Event):void { txtItem.mx_internal::textField.mouseEnabled = false; } ]] /mx:Script mx:VBox buttonMode=true useHandCursor=true mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. selectable=false / /mx:VBox /mx:Application Adjust to what you need but, there is a hack here. Peace, Mike On 6/9/06, Jean-Luc ESSER [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I have the exact same problem, and do not have a solution. If you put handCursor on a Box where you text resides, it does not work either. Best, JL - Original Message - From: Jim Robson mailto:[EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, June 09, 2006 3:18 PM Subject: [flexcoders] F2B3: useHandCursor property of Text control Per the docs, the useHandCursor property is inherited from the Sprite class. However, it doesn't seem to work on the Text control. When set to true, the mouse cursor remains an arrow instead of changing to a button when over the text field: mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. buttonMode=true selectable=false useHandCursor=true / What am I missing? / \ PETER BAIRD 888/ \888 User Experience Consultant 88/ / \88 Adobe Consulting | Adobe Systems, Inc 8/ /8\ \8 275 Grove St. Newton, MA / /888\ \ Office: 617.219.2126 | Cell: 617.803.6804 \8\ AIM: pbaird00 | Y!IM: pbaird00 -- What goes up, does come down. -- What goes up, does come down. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] ItemRenderer and Events
Can you just use the buttonMode and click attributes? ImageItemRenderer id=myImageItemRenderer buttonMode-true click=imageItemEventHandler(): From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of jpwarmer Sent: Friday, June 09, 2006 11:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ItemRenderer and Events Hi, I got a DataGrid with an ImageItemRenderer (that`s a custom component that shows an image on the cell). I want to dispatch an event when users click on the image. How can I do that??? TIA, JP __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Is Adobe a reasonable business partner?
Ive been developing in Flash and CF for years, so I have some experience dealing with Macromedia, but Ive never had to deal with Adobe until now. So far, my impression is that the Adobe developers are great (although most of the ones Im aware of probably worked for Macromedia). However, I am not having good experiences with the customer service or sales personnel. Has anyone on the list had experience dealing with Adobe as a business partner? Flex is a very cool product, but I dont think its good to tolerate an unresponsive or arrogant vendor. What are your impressions? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Flex2B3 - set the combobox selectedItem within an inline script
Set the editorDataField attribute: mx:DataGridColumn dataField=Text editorDataField=Text itemEditor={myCombo}/ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bhaq1972 Sent: Thursday, June 08, 2006 7:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2B3 - set the combobox selectedItem within an inline script I've got a Combobox component declared as an itemEditor in a datagrid. during its initialize i set its dataprovider. i then want to set its selecteditem or selectedIndex to be the same as datagrids dataprovider any ideas ? code ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Script ![CDATA[ [Bindable] public var dp:Array = [{ Artist:'Pavement', Album:'Slanted and Enchanted', Text:'two'}, { Artist:'Beatles', Album:'The Best Of', Text:'four' }, { Artist:'MrT', Album:'Gold Chains', Text:'five' }, { Artist:'Hasselhoff', Album:'Kit', Text:'two' }]; ]] /mx:Script mx:Component id=myCombo mx:ComboBox labelField=Text initialize=startUP () mx:Script ![CDATA[ public var dp2:Array = [{Text:'one', Code:'1'}, {Text:'two', Code:'2'}, {Text:'three', Code:'3'}, {Text:'four', Code:'4'}, {Text:'five', Code:'5'}]; private function startUP():void { //set the dataprovider this.dataProvider = dp2; //set the selectedindex/selectedItem here } ]] /mx:Script /mx:ComboBox /mx:Component mx:Text color=yellow width=70% text=how do i set the combo itemEditor selectedItem to be the same as the dg col value..within the inline component script/ mx:DataGrid id=dg dataProvider={dp} width=50% editable=true mx:columns mx:Array mx:DataGridColumn dataField=Artist headerText=Artist / mx:DataGridColumn dataField=Album headerText=Album / mx:DataGridColumn dataField=Text itemEditor={myCombo}/ /mx:Array /mx:columns /mx:DataGrid /mx:Application __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Remove selected items from an ArrayCollection / DataGrid?
I am trying to give users the ability to remove selected items from a DataGrid. The idea is that the user selects the items to remove, then clicks the Remove Selected button. The problem is that if the user selects more than one item, then not all of the selected items will be removed. If the user selects 3 items, the app usually removes 2 of them (although it occasionally only removes 1). If the user selects 4 items, it usually removes 3, and so forth. Can anyone see the problem in the code below? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Model id=mTest services service type=Plumbing cost=$100Fix leaky drain/service service type=Electrical cost=$200Wire stairwell lighting/service service type=Roofing cost=$300Install vent pipe boot/service service type=Carpentry cost=$400Replace entry door/service service type=Plumbing cost=$500Install bath tub/service service type=Electrical cost=$600Wire home office/service service type=Roofing cost=$700Install ice amp; water shield/service service type=Carpentry cost=$800Install sliding patio door/service /services /mx:Model mx:ArrayCollection id=acTest source={mTest.services.service} / mx:Script ![CDATA[ import mx.collections.ArrayCollection; private function removeSelected():void{ for(var i:int=0; idgTest.selectedIndices.length; i++){ acTest.removeItemAt(dgTest.selectedIndices[i]); } } ]] /mx:Script mx:VBox width=400 height=600 mx:DataGrid id=dgTest dataProvider={acTest} width=400 height=500 allowMultipleSelection=true mx:columns mx:DataGridColumn headerText=Type dataField=type / mx:DataGridColumn headerText=Service dataField=service / mx:DataGridColumn headerText=Cost dataField=cost / /mx:columns /mx:DataGrid mx:Button id=btnTest click=removeSelected(); label=Remove Selected / /mx:VBox /mx:Application __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] RE: Remove selected items from an ArrayCollection / DataGrid?
Correction: the app is actually removing of the selected items with each click of the button. The new version of the code below has additional items in the data model in order to make this easier to test. Any ideas? Am I just missing something obvious? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Model id=mTest services service type=Plumbing cost=$100 description=Fix leaky drain / service type=Electrical cost=$200 description=Wire stairwell lighting/ service type=Roofing cost=$300 description=Install vent pipe boot/ service type=Carpentry cost=$400 description=Replace entry door/ service type=Plumbing cost=$500 description=Install bath tub/ service type=Electrical cost=$600 description=Wire home office/ service type=Roofing cost=$700 description=Install ice amp; water shield/ service type=Carpentry cost=$800 description=Install sliding patio door/ service type=Plumbing cost=$900 description=Install hot tub/ service type=Electrical cost=$1000 description=Install service box/ service type=Roofing cost=$1100 description=Shingle one-car garage/ service type=Carpentry cost=%1200 description=Build small deck/ /services /mx:Model mx:ArrayCollection id=acTest source={mTest.services.service} / mx:Script ![CDATA[ import mx.collections.ArrayCollection; private function removeSelected():void{ for(var i:int = 0; i dgTest.selectedIndices.length; i++){ acTest.removeItemAt(dgTest.selectedIndices[i]); } } ]] /mx:Script mx:VBox width=400 height=600 mx:DataGrid id=dgTest dataProvider={acTest} width=400 height=500 allowMultipleSelection=true mx:columns mx:DataGridColumn headerText=Type dataField=type / mx:DataGridColumn headerText=Service dataField=description / mx:DataGridColumn headerText=Cost dataField=cost / /mx:columns /mx:DataGrid mx:Button id=btnTest click=removeSelected(); label=Remove Selected / /mx:VBox /mx:Application From: Jim Robson [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 9:14 AM To: 'flexcoders@yahoogroups.com' Subject: Remove selected items from an ArrayCollection / DataGrid? I am trying to give users the ability to remove selected items from a DataGrid. The idea is that the user selects the items to remove, then clicks the Remove Selected button. The problem is that if the user selects more than one item, then not all of the selected items will be removed. If the user selects 3 items, the app usually removes 2 of them (although it occasionally only removes 1). If the user selects 4 items, it usually removes 3, and so forth. Can anyone see the problem in the code below? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Model id=mTest services service type=Plumbing cost=$100Fix leaky drain/service service type=Electrical cost=$200Wire stairwell lighting/service service type=Roofing cost=$300Install vent pipe boot/service service type=Carpentry cost=$400Replace entry door/service service type=Plumbing cost=$500Install bath tub/service service type=Electrical cost=$600Wire home office/service service type=Roofing cost=$700Install ice amp; water shield/service service type=Carpentry cost=$800Install sliding patio door/service /services /mx:Model mx:ArrayCollection id=acTest source={mTest.services.service} / mx:Script ![CDATA[ import mx.collections.ArrayCollection; private function removeSelected():void{ for(var i:int=0; idgTest.selectedIndices.length; i++){ acTest.removeItemAt(dgTest.selectedIndices[i]); } } ]] /mx:Script mx:VBox width=400 height=600 mx:DataGrid id=dgTest dataProvider={acTest} width=400 height=500 allowMultipleSelection=true mx:columns mx:DataGridColumn headerText=Type dataField=type / mx:DataGridColumn headerText=Service dataField=service / mx:DataGridColumn headerText=Cost dataField=cost / /mx:columns /mx:DataGrid mx:Button id=btnTest click=removeSelected(); label=Remove Selected / /mx:VBox /mx:Application __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups
[flexcoders] selectedIndices are Strings???
I dont understand why DataGrid.selectedIndices returns an array of Strings. I thought that indices were generally integers. (For example, Array.indexOf returns an int.) Can anyone explain why the selected index of a DataGrid is a String? When dgTest is a DataGrid instance, the following code generates a compiler error: var arr:Array = dgTest.selectedIndices; for(var i:int in arr){ // do something } The error that the compiler returns is as follows: Implicit coercion of a value of type String to an unrelated type int. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: Remove selected items from an ArrayCollection / DataGrid?
Yes, I suspect youre on the right track (except for the fact that DataGrid indices are Strings see my other post on that subject). The other issue Ive encountered is that the array needs to be sorted from greatest to least. Thats what Im working on now. Of course, this is not straightforward either, because the DataGrid indices are strings! Thanks for the help!!! From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bhaq1972 Sent: Thursday, June 08, 2006 11:14 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Remove selected items from an ArrayCollection / DataGrid? i reckon your the selectedIndicis is changing and therefore cannot be relied upon within your for loop. try this. (as a starting point) private function removeSelected():void { var array1:Array = new Array(); for(var j:int;j dgTest.selectedIndices.length; j++) { var num1:int = dgTest.selectedIndices[j]; array1.push(num1); } for(var i:int = 0; i array1.length; i++) { acTest.removeItemAt(array1[i]); } } --- In [EMAIL PROTECTED]ups.com, Jim Robson jim.robson@... wrote: Correction: the app is actually removing ½ of the selected items with each click of the button. The new version of the code below has additional items in the data model in order to make this easier to test. Any ideas? Am I just missing something obvious? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Model id=mTest services service type=Plumbing cost=$100 description=Fix leaky drain / service type=Electrical cost=$200 description=Wire stairwell lighting/ service type=Roofing cost=$300 description=Install vent pipe boot/ service type=Carpentry cost=$400 description=Replace entry door/ service type=Plumbing cost=$500 description=Install bath tub/ service type=Electrical cost=$600 description=Wire home office/ service type=Roofing cost=$700 description=Install ice amp; water shield/ service type=Carpentry cost=$800 description=Install sliding patio door/ service type=Plumbing cost=$900 description=Install hot tub/ service type=Electrical cost=$1000 description=Install service box/ service type=Roofing cost=$1100 description=Shingle one-car garage/ service type=Carpentry cost=%1200 description=Build small deck/ /services /mx:Model mx:ArrayCollection id=acTest source={mTest.services.service} / mx:Script ![CDATA[ import mx.collections.ArrayCollection; private function removeSelected():void{ for(var i:int = 0; i dgTest.selectedIndices.length; i++){ acTest.removeItemAt(dgTest.selectedIndices[i]); } } ]] /mx:Script mx:VBox width=400 height=600 mx:DataGrid id=dgTest dataProvider={acTest} width=400 height=500 allowMultipleSelection=true mx:columns mx:DataGridColumn headerText=Type dataField=type / mx:DataGridColumn headerText=Service dataField=description / mx:DataGridColumn headerText=Cost dataField=cost / /mx:columns /mx:DataGrid mx:Button id=btnTest click=removeSelected(); label=Remove Selected / /mx:VBox /mx:Application _ From: Jim Robson [mailto:jim.[EMAIL PROTECTED].] Sent: Thursday, June 08, 2006 9:14 AM To: 'flexcoders@yahoogroups.com' Subject: Remove selected items from an ArrayCollection / DataGrid? I am trying to give users the ability to remove selected items from a DataGrid. The idea is that the user selects the items to remove, then clicks the Remove Selected button. The problem is that if the user selects more than one item, then not all of the selected items will be removed. If the user selects 3 items, the app usually removes 2 of them (although it occasionally only removes 1). If the user selects 4 items, it usually removes 3, and so forth. Can anyone see the problem in the code below? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Model id=mTest services service type=Plumbing cost=$100Fix leaky drain/service service type=Electrical cost=$200Wire stairwell lighting/service service type=Roofing cost=$300Install vent pipe boot/service service type=Carpentry cost=$400Replace entry door/service service type=Plumbing cost=$500Install bath tub/service service type=Electrical cost=$600Wire home office/service service type=Roofing cost=$700Install ice amp; water shield/service service type=Carpentry cost=$800Install sliding patio door/service /services /mx:Model mx:ArrayCollection id=acTest source={mTest.services.service} / mx:Script ![CDATA[ import mx.collections.ArrayCollection; private function removeSelected():void{ for(var i:int=0; idgTest.selectedIndices.length; i++){ acTest.removeItemAt(dgTest.selectedIndices[i]); } } ]] /mx:Script mx:VBox width
SOLVED - [flexcoders] Remove selected items from an ArrayCollection / DataGrid?
OK, below is the solution that I came up with. If anyone sees a simpler / better way, please let me know. Adobe engineers: I am guessing that removing items from a data grid is a common operation, in which case it seems like there should be a very simple and straightforward way of doing so. What am I missing? private function sortOnInt(strA:String, strB:String):int { var a:int = int(strA); var b:int = int(strB); var r:int = 0; if(a b) { r = -1; } else if(a b) { r = 1; } else if(a == b) { r = 0; } return r; } private function removeSelected(): void { var arr:Array = dgTest.selectedIndices; arr.sort(sortOnInt); for(var i:int = 0; i arr.length; i++){ acTest.removeItemAt(arr[i]); } } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Robson Sent: Thursday, June 08, 2006 11:21 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Remove selected items from an ArrayCollection / DataGrid? Yes, I suspect youre on the right track (except for the fact that DataGrid indices are Strings see my other post on that subject). The other issue Ive encountered is that the array needs to be sorted from greatest to least. Thats what Im working on now. Of course, this is not straightforward either, because the DataGrid indices are strings! Thanks for the help!!! From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bhaq1972 Sent: Thursday, June 08, 2006 11:14 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Remove selected items from an ArrayCollection / DataGrid? i reckon your the selectedIndicis is changing and therefore cannot be relied upon within your for loop. try this. (as a starting point) private function removeSelected():void { var array1:Array = new Array(); for(var j:int;j dgTest.selectedIndices.length; j++) { var num1:int = dgTest.selectedIndices[j]; array1.push(num1); } for(var i:int = 0; i array1.length; i++) { acTest.removeItemAt(array1[i]); } } --- In [EMAIL PROTECTED]ups.com, Jim Robson jim.robson@... wrote: Correction: the app is actually removing ½ of the selected items with each click of the button. The new version of the code below has additional items in the data model in order to make this easier to test. Any ideas? Am I just missing something obvious? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Model id=mTest services service type=Plumbing cost=$100 description=Fix leaky drain / service type=Electrical cost=$200 description=Wire stairwell lighting/ service type=Roofing cost=$300 description=Install vent pipe boot/ service type=Carpentry cost=$400 description=Replace entry door/ service type=Plumbing cost=$500 description=Install bath tub/ service type=Electrical cost=$600 description=Wire home office/ service type=Roofing cost=$700 description=Install ice amp; water shield/ service type=Carpentry cost=$800 description=Install sliding patio door/ service type=Plumbing cost=$900 description=Install hot tub/ service type=Electrical cost=$1000 description=Install service box/ service type=Roofing cost=$1100 description=Shingle one-car garage/ service type=Carpentry cost=%1200 description=Build small deck/ /services /mx:Model mx:ArrayCollection id=acTest source={mTest.services.service} / mx:Script ![CDATA[ import mx.collections.ArrayCollection; private function removeSelected():void{ for(var i:int = 0; i dgTest.selectedIndices.length; i++){ acTest.removeItemAt(dgTest.selectedIndices[i]); } } ]] /mx:Script mx:VBox width=400 height=600 mx:DataGrid id=dgTest dataProvider={acTest} width=400 height=500 allowMultipleSelection=true mx:columns mx:DataGridColumn headerText=Type dataField=type / mx:DataGridColumn headerText=Service dataField=description / mx:DataGridColumn headerText=Cost dataField=cost / /mx:columns /mx:DataGrid mx:Button id=btnTest click=removeSelected(); label=Remove Selected / /mx:VBox /mx:Application __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this g
RE: [flexcoders] beta3 -- Binding XML data to List Controls -- data binding experts?
This is what Ive done; its simple and it works mx:Model id=eventListData source=eventList.xml / mx:ArrayCollection id=acEventList source={eventListData.events.event} / mx:DataGridid=dgEventList dataProvider={acEventList} mx:columns mx:DataGridColumn headerText=Header01 dataField=element01 width=120 / mx:DataGridColumn headerText=Header04 dataField=element02 width=50 / mx:DataGridColumn headerText=Header03 dataField=element03 width=50 / /mx:columns /mx:DataGrid From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sufibaba Sent: Thursday, June 08, 2006 12:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] beta3 -- Binding XML data to List Controls -- data binding experts? Hi all, I have XML data that is being returned from a remoting service. I would like to bind this data directly to various List-based controls (As I understand it, List controls like Arrays/ArrayCollections). What is the best way to massage the incoming XML data so that it can be binded directly to List controls. Any insight is greatly Appreciated. Cheers, Tim __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] selectedIndices are Strings???
Thanks Tom, I believe array indices are ints, not strings. However, I also believe that datagrid indices are strings, because when I used the Array.sort() function on the DataGrid.selectedIndices array, the order was all messed up. For example, 10 came before 2. For that reason, I ended up writing a custom sort function to get around the issue. Thanks again! Jim From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Bray Sent: Thursday, June 08, 2006 1:07 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] selectedIndices are Strings??? Try either of these two options: for( var i:int; i arr.length; i++ ) { trace( arr[i] ); } //or for each( var i:int in arr ) { trace( i ); } The for...in loop that you're using is for iterating over the properties of objects, which it expects to evaluate as strings. So, in your for...in loop, the var i refers to the indices of the array, not the values you're looking for which are the selectedIndices of your dg. The for...each loop above is new to AS3 and is the simplest way to do what you want. HTH, Tom On 6/8/06, Jim Robson [EMAIL PROTECTED] wrote: I don't understand why DataGrid.selectedIndices returns an array of Strings. I thought that indices were generally integers. (For example, Array.indexOf returns an int.) Can anyone explain why the selected index of a DataGrid is a String? When dgTest is a DataGrid instance, the following code generates a compiler error: var arr:Array = dgTest.selectedIndices; for(var i:int in arr){ // do something } The error that the compiler returns is as follows: Implicit coercion of a value of type String to an unrelated type int. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] selectedIndices are Strings???
You know, I looked at that page in the docs this morning, but I guess my eyes just skipped right past that part. It seems decidedly counterintuitive, but I should be used to that by now; Ive been developing Flash apps for 6 years! Thank you for the help. Now I can go back and simplify my code! Jim From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Bray Sent: Thursday, June 08, 2006 1:26 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] selectedIndices are Strings??? From the docs on Array.sort(): All elements, whatever the data type, are sorted as if they were strings, so 100 precedes 99, because 1 is a lower string value than 9. But you can easily change the default sort behavior by doing this: arr.sort(Array.NUMERIC); -Tom On 6/8/06, Jim Robson [EMAIL PROTECTED] wrote: Thanks Tom, I believe array indices are ints, not strings. However, I also believe that datagrid indices are strings, because when I used the Array.sort() function on the DataGrid.selectedIndices array, the order was all messed up. For example, 10 came before 2. For that reason, I ended up writing a custom sort function to get around the issue. Thanks again! Jim From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Tom Bray Sent: Thursday, June 08, 2006 1:07 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] selectedIndices are Strings??? Try either of these two options: for( var i:int; i arr.length; i++ ) { trace( arr[i] ); } //or for each( var i:int in arr ) { trace( i ); } The for...in loop that you're using is for iterating over the properties of objects, which it expects to evaluate as strings. So, in your for...in loop, the var i refers to the indices of the array, not the values you're looking for which are the selectedIndices of your dg. The for...each loop above is new to AS3 and is the simplest way to do what you want. HTH, Tom On 6/8/06, Jim Robson [EMAIL PROTECTED] wrote: I don't understand why DataGrid.selectedIndices returns an array of Strings. I thought that indices were generally integers. (For example, Array.indexOf returns an int.) Can anyone explain why the selected index of a DataGrid is a String? When dgTest is a DataGrid instance, the following code generates a compiler error: var arr:Array = dgTest.selectedIndices; for(var i:int in arr){ // do something } The error that the compiler returns is as follows: Implicit coercion of a value of type String to an unrelated type int. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] selectedIndices are Strings???
Thanks Francis, Tom Bray also straightened me out on that. I was wrong, and I feel properly chastened. Thank you for the help! From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Francis Cheng Sent: Thursday, June 08, 2006 1:26 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] selectedIndices are Strings??? Dont forget that the Array.sort() method sorts using string values by default, so even when sorting an array of numbers or ints, they will be sorted as if they were strings. To get numeric sorting, so that 10 comes after 2, use the Array.NUMERIC sort option, e.g.: myArray.sort(Array.NUMERIC); Heres the relevant example from the ActionScript documentation for Array.sort(): The following code creates the Array object numbers with elements [3,5,100,34,10]. A call to sort() without any parameters sorts alphabetically, producing the undesired result [10,100,3,34,5]. To properly sort numeric values, you must pass the constant NUMERIC to the sort() method, which sorts numbers as follows: [3,5,10,34,100]. Note: The default behavior of the sort() function is to handle each entity as a string. The Array.NUMERIC argument does not actually convert other data types to the Number data type; it simply allows the sort algorithm to recognize numbers. var numbers:Array = new Array(3,5,100,34,10); trace(numbers); // 3,5,100,34,10 numbers.sort(); trace(numbers); // 10,100,3,34,5 numbers.sort(Array.NUMERIC); trace(numbers); // 3,5,10,34,100 Francis From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jim Robson Sent: Thursday, June 08, 2006 10:11 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] selectedIndices are Strings??? Thanks Tom, I believe array indices are ints, not strings. However, I also believe that datagrid indices are strings, because when I used the Array.sort() function on the DataGrid.selectedIndices array, the order was all messed up. For example, 10 came before 2. For that reason, I ended up writing a custom sort function to get around the issue. Thanks again! Jim From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tom Bray Sent: Thursday, June 08, 2006 1:07 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] selectedIndices are Strings??? Try either of these two options: for( var i:int; i arr.length; i++ ) { trace( arr[i] ); } //or for each( var i:int in arr ) { trace( i ); } The for...in loop that you're using is for iterating over the properties of objects, which it expects to evaluate as strings. So, in your for...in loop, the var i refers to the indices of the array, not the values you're looking for which are the selectedIndices of your dg. The for...each loop above is new to AS3 and is the simplest way to do what you want. HTH, Tom On 6/8/06, Jim Robson [EMAIL PROTECTED] wrote: I don't understand why DataGrid.selectedIndices returns an array of Strings. I thought that indices were generally integers. (For example, Array.indexOf returns an int.) Can anyone explain why the selected index of a DataGrid is a String? When dgTest is a DataGrid instance, the following code generates a compiler error: var arr:Array = dgTest.selectedIndices; for(var i:int in arr){ // do something } The error that the compiler returns is as follows: Implicit coercion of a value of type String to an unrelated type int. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] two tabnavigators with different tab colors?
I think you may be looking for tabStyleName: TabNavigator { fillColors: #FF, #CC; tabStyleName: myTabStyle; } .myTabStyle { fillColors: #FF, #CC; } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of shemeshkale Sent: Wednesday, June 07, 2006 8:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] two tabnavigators with different tab colors? hi, i have two TabNavigators in flex 1.5 i want to give each of them different tab colors. fillColors is not working on a TabNavigator but only on Tab in the style declartion. so how do i give each navigator different tab colors? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: two tabnavigators with different tab colors?
I think you have an extra dot in your CSS style definitions. There should be only one dot before each style name, as follows: .MyTabNavigator { background-color:#FF; tabStyleName: myTabStyle; } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of shemeshkale Sent: Wednesday, June 07, 2006 9:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: two tabnavigators with different tab colors? i thought of something like this but its not working! here is my code: what m i doing wrong? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml width=100% height=100% mx:Style ..MyTabNavigator { background-color:#FF; tabStyleName: myTabStyle; } ..MyTab { background-color:#0033FF; } ..myTabStyle { fill-colors: #ff, #ff; } /mx:Style mx:VBox width=100% height=100% mx:TabNavigator width=100% height=50% styleName=MyTabNavigator mx:HBox label=Tab title 1/mx:HBox mx:HBox label=Tab title 2/mx:HBox /mx:TabNavigator mx:TabNavigator width=100% height=50% styleName=MyTab mx:HBox label=Tab title 1 /mx:HBox mx:HBox label=Tab title 2/mx:HBox /mx:TabNavigator /mx:VBox /mx:Application --- In [EMAIL PROTECTED]ups.com, Jim Robson jim.robson@... wrote: I think you may be looking for tabStyleName: TabNavigator { fillColors: #FF, #CC; tabStyleName: myTabStyle; } .myTabStyle { fillColors: #FF, #CC; } _ From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of shemeshkale Sent: Wednesday, June 07, 2006 8:12 AM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] two tabnavigators with different tab colors? hi, i have two TabNavigators in flex 1.5 i want to give each of them different tab colors. fillColors is not working on a TabNavigator but only on Tab in the style declartion. so how do i give each navigator different tab colors? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Bug in Runtime Style Declarations
When setting the fill colors for a component class at runtime, Flex breaks. It's possible to set the fill colors for an instance, but not for a class. Take a look at the code below. The first function, setInstanceStyle, works fine. The second function, setClassStyle, causes the MenuBar to disappear and the buttons to stop working. It's possible to change other styles using the same method as is used in setClassStyle. For example, I can change background color, border color, and text styles using the same methodology as is used in setClassStyle. But when I try to set fillColors using that method, the component disappears and the program hangs. As far as I can tell, this is a bug. I haven't found any other mention of it, though. Does anyone have any more info on this? Am I missing something? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute mx:XML id=mainMenuData format=e4x source=mainMenu.xml / mx:Script ![CDATA[ import mx.styles.*; private var menuBarStyle:CSSStyleDeclaration = new CSSStyleDeclaration(menuBarStyle); private function setInstanceStyle(event:MouseEvent):void{ mainMenu.setStyle('fillColors',[0xCC,0xCC]); } private function setClassStyle(event:MouseEvent):void{ menuBarStyle.setStyle('fillColors',[0xCC,0xCC]); StyleManager.setStyleDeclaration('MenuBar',menuBarStyle,true); } ]] /mx:Script mx:MenuBar id=mainMenu dataProvider={mainMenuData.menuitem} labelField=@label width=100% / mx:Button id=instanceButton label=Set Instance Style click=setInstanceStyle(event); x=20 y=40 / mx:Button id=classButton label=Set Class Style click=setClassStyle(event); x=180 y=40 / /mx:Application !-- Here's the xml used for the menu (mainMenu.xml) -- ?xml version=1.0 encoding=utf-8? root menuitem label=File menuitem label=New / menuitem label=Open / menuitem label=Exit / /menuitem menuitem label=View menuitem label=Toolbars / menuitem label=Source / /menuitem menuitem label=Help menuitem label=Online Help / menuitem label=About Style Test / /menuitem /root __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: Accordian from XML: Repeater Woes
Thanks Doug I found posted a solution, but our posts crossed in cyberspace. Thanks again -Jim From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Doug Lowder Sent: Tuesday, June 06, 2006 12:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Accordian from XML: Repeater Woes That was a Flex 1.5 example. I'm not sure if the mx:Model tag is supported the same way in Flex 2.0, so that may be part of the problem. You should be able to use an array as the dataprovider for your repeater, just to get things going until you are able to read external XML. --- In [EMAIL PROTECTED]ups.com, dadrobson jim.robson@... wrote: I'm having lots of trouble using XML as a dataProvider for a Repeater component (Flex 2 B3), and from what I've seen of the other posts on the list, it appears that I'm not alone. I tried Doug Lowder's code below, thinking that it would help me to see what is wrong with my code. But when I compile Doug's code and run it, the Accordion appears as a blank white rectangle in the upper left corner of the screen: No buttons or labels of any kind are visible. In my own code, my intent is to use a Repeater to display instances of a custom component. When I could not get that to work, I tried just getting the Repeater to display Label components with their text set to the Repeater's currentIndex (cast to a String of course). But when I compile it and run it, nothing is displayed where the Labels should be. I'm not getting any compiler errors, but the app is simply blank where the Repeater should be giving me Labels. I've searched around, but I can't find anything in the Flex 2.0 docs or online that provides clear guidelines on how to use an external XML file with a Repeater. I don't have any trouble with other components (MenuBar, DataGrid, ComboBox, List). It's just the Repeater that I can't seem to figure out. Can anyone point me to a good resource for this? -Jim --- In [EMAIL PROTECTED]ups.com, Doug Lowder douglowder@ wrote: Building the accordion tabs is very easy. You'll need some extra work to create the children of the accordion; probably a custom component instead of the Canvas tag used in the below example. BTW, I think I got the basis for this sample code from someone's site, probably Jester's, but I couldn't find the direct link. Data.xml: --- xml header label=my header 1 / header label=my header 2 / header label=my header 3 / /xml app.mxml: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml width=100% height=100% mx:Model id=myXml source=Data.xml/ mx:Accordion height=300 width=200 mx:Repeater id=rp dataProvider={myXml.header} mx:Canvas height=100% width=100% label={rp.currentItem.label}/ /mx:Repeater /mx:Accordion /mx:Application Enjoy! Doug --- In [EMAIL PROTECTED]ups.com, alehrens axe130@ wrote: I'm a newbie to both Flex and FlexCoders... How would you go about populating an accordian tab/data from an XML file? Specifically, I have an XML file that contains a label, data and description. I'd like to use the label as the tab of the accordian, then show the data and description inside the accordian. Is there a clean and simple way to do this? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
SOLVED - RE: [flexcoders] Re: Accordian from XML: Repeater Woes
I finally figured out what was wrong. With MenuBar components, the external XML file has a root node root and it is ignored in the MXML code. However, for Repeater components, this does not work: on the contrary, it is necessary to specify the root node in the MXML code. So, the following slightly modified version of Dougs code works perfectly (notice the change to the value of the dataProvider attribute): ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute width=100% height=100% mx:Model id=myXml source=Data.xml/ mx:Accordion height=300 width=200 mx:Repeater id=rp dataProvider={myXml.xml.header} mx:Canvas height=100% width=100% label={rp.currentItem.label}/ /mx:Repeater /mx:Accordion /mx:Application !Data.xml xml header label=my header 1 / header label=my header 2 / header label=my header 3 / /xml From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of dadrobson Sent: Tuesday, June 06, 2006 10:34 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Accordian from XML: Repeater Woes I'm having lots of trouble using XML as a dataProvider for a Repeater component (Flex 2 B3), and from what I've seen of the other posts on the list, it appears that I'm not alone. I tried Doug Lowder's code below, thinking that it would help me to see what is wrong with my code. But when I compile Doug's code and run it, the Accordion appears as a blank white rectangle in the upper left corner of the screen: No buttons or labels of any kind are visible. In my own code, my intent is to use a Repeater to display instances of a custom component. When I could not get that to work, I tried just getting the Repeater to display Label components with their text set to the Repeater's currentIndex (cast to a String of course). But when I compile it and run it, nothing is displayed where the Labels should be. I'm not getting any compiler errors, but the app is simply blank where the Repeater should be giving me Labels. I've searched around, but I can't find anything in the Flex 2.0 docs or online that provides clear guidelines on how to use an external XML file with a Repeater. I don't have any trouble with other components (MenuBar, DataGrid, ComboBox, List). It's just the Repeater that I can't seem to figure out. Can anyone point me to a good resource for this? -Jim --- In [EMAIL PROTECTED]ups.com, Doug Lowder douglowder@... wrote: Building the accordion tabs is very easy. You'll need some extra work to create the children of the accordion; probably a custom component instead of the Canvas tag used in the below example. BTW, I think I got the basis for this sample code from someone's site, probably Jester's, but I couldn't find the direct link. Data.xml: --- xml header label=my header 1 / header label=my header 2 / header label=my header 3 / /xml app.mxml: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml width=100% height=100% mx:Model id=myXml source=Data.xml/ mx:Accordion height=300 width=200 mx:Repeater id=rp dataProvider={myXml.header} mx:Canvas height=100% width=100% label={rp.currentItem.label}/ /mx:Repeater /mx:Accordion /mx:Application Enjoy! Doug --- In [EMAIL PROTECTED]ups.com, alehrens axe130@ wrote: I'm a newbie to both Flex and FlexCoders... How would you go about populating an accordian tab/data from an XML file? Specifically, I have an XML file that contains a label, data and description. I'd like to use the label as the tab of the accordian, then show the data and description inside the accordian. Is there a clean and simple way to do this? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: FusionCharts under Flex
I wish Adobe would put some more people on Flex That would be great!!! From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jason Sent: Tuesday, June 06, 2006 12:53 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: FusionCharts under Flex Go to http://www.infosoftglobal.com/FusionCharts/Gallery.asp?gMenuItemId=3#ps and click on the charts under 2D/3D Column Charts. You'll see the animations I mean. And if you click on the FusionCharts Presentation Suite, you'll see what my boss REALLY went wild for. They use Flash to put a bit of Powerpoint-ish pizazz into the charts. Not really my thing as I'm more of a usability guy, but it does impress the suits. I managed to get the label rotation working. The help for labelRotation under mx.charts.AxisRenderer should have a big bold reference to the embedding thing. I went there first and only figured out the problem when I finally went to the Rotating axis elements example page. I think it's a good way to do it, but you have to admit that it's a bit of a learning curve compared to just setting a label rotation property and having it always work. I hear what you're saying about time. I wish Adobe would put some more people on Flex to just write examples and such. One good example is worth a whole page of documentation. Of course, that can get problematic when you're still redesigning some of it as you go along. :D --- In [EMAIL PROTECTED]ups.com, Ely Greenfield [EMAIL PROTECTED]. wrote: I hear you Jason, but there's only so many hours in the day. 3d bar/pie charts, Yeah, that's something we don't support. animations for when the chart loads Can you Describe what you're looking for? rotating axis labels Flex charts support those, if you use embedded fonts. Maybe it would help if you had a lot of samples where you implemented a lot of these features so people could just reuse your code instead of rewriting the renderers. Indeed it would. Only so many hours in the day though. I spend the late hours of the night ignoring my family and writing samples that I post on my blog. Let me know what you'd like to see and I'll put 'em on the list. Ely. http://www.quietlyscheming.com/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Local Flash (8) Player Installer
I think you need to obtain a redistribution license first (see below from Muzak of Flashcoders list) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Wednesday, May 03, 2006 3:39 PM To: Flashcoders mailing list Subject: Re: [FlashCoders] Build Flash8 installer You'll need to obtain a license first http://www.adobe.com/licensing/ http://www.adobe.com/licensing/distribution/ regards, Muzak From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott Langeberg Sent: Friday, June 02, 2006 10:45 AM To: flexcoders@yahoogroups.com; [EMAIL PROTECTED] Subject: [flexcoders] Local Flash (8) Player Installer Does anyone have a solution allowing for local installation of the Flash 8 player, instead of going to MM's site? Our problem is clients who have restricted user rights and may not be able to surf the internet, either. Thanks, : : ) Scott -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Finding coordinates from pop-up window
Hello all, I have a feeling that Im missing something obvious, but how do you determine the x and y coordinates - relative to the root application - of an object that resides within a component that is used as a pop-up window? The code below works perfectly if it resides in the root application: the list appears just to the right of the buttons. But when the same code is in a component that serves as a pop-up window, the list appears away up and to the left; i.e., the Flash player is taking the x and y coordinates of the button relative to the pop-up window, but using x and y coordinates relative to the root app to display the list. What am I missing? mx:Model id=ap projects item label=None data="" / item label=Mirkwood data="" June 2005 / item label=Loth Lorien data="" August 2005 / item label=Fangorn data="" September 2005 / item label=Dead Marshes data="" March 2005 / item label=Emyn Muil data="" January 2006 / /projects /mx:Model mx:ArrayCollection id=projectList source={ap.projects.item} / mx:Script ![CDATA[ import mx.managers.PopUpManager; import mx.controls.*; private var testList:mx.controls.List = new List(); private function testListPopUp(caller:Object):void{ testList.dataProvider = projectList; testList.x = caller.x+70; testList.y = caller.y; PopUpManager.addPopUp(testList,this,false); } private function testListRemove():void{ PopUpManager.removePopUp(testList); } ]] /mx:Script mx:Button id=test1 click=testListPopUp(test1); label=show x=100 y=100 / mx:Button id=test2 click=testListRemove(); label=hide x=100 y=125 / -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: AJAX versus Flex
Also I think for the Flash Platform to be a true platform, it really needs a platform XML dialect for UIs Isnt that what MXML is? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] flex2 Beta3 - slow to non existent document delivery
If you download the FlexBuilder beta, it comes with all the documentation in HTML format. Its a lot more pleasant than dealing with the PDFs. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of p b Sent: Friday, May 26, 2006 9:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] flex2 Beta3 - slow to non existent document delivery I'm trying to get up to speed and participate in the Flex2 Beta3 programme, but 'm having a difficult time doing so. Please forgive me if I'm bothering the group, but this is incredibly frustrating. I'm wondering if the folks at Adobe/Macromedia are up to speed on this document delivery issue? Whenever I try to access any of the Flex2 beta documentation I run into problems. Say for example I'd like to peruse the flex2_gettingstarted_pdf docs. I click on the appropriate link from within the release notes section at the labs site and it takes forever to load. When the document finally doescome back I get a few pages, that's it. When I try to scroll to a new page it takes literally 3 minutes to perform a page down if it occurs at all. Often the document just hangs. If I try to print the document, the process also hangs, w/o fail. I've tried printing perhaps 10 times over the last week at various times to no avail. The LiveDocs are no better. Thus the whole learning exercise becomes moot. While I have a 3mb broadband connection, I'm in the East near Toronto, and I fear, I'm doomed since I'm not at all proximal to your pops on the West coast. Im about ready to bail on the beta, its just too time consuming to tough it out. Any insight would be appreciated. (As an aside I can access literally thousands of pages of documentation at the Oracle site in a flash, (pardon aside). Their document delivery system works. If you Adobe folks wanna get the word out about your flex software, this has certainly got to improve quickly, IMHO. Thanks for your time. PB New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] View states problem in beta3
In Beta 3, target is changed to relativeTo: mx:AddChild relativeTo ={v1} From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of rama satoskar Sent: Friday, May 26, 2006 9:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] View states problem in beta3 hi all, is there a problem in the following code ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml !-- The Application class states property defines the view states. -- mx:states !-- Flex enters the newButton state when you click button b1 -- mx:State name=newButton !-- Add a Button child control to the v1 VBox control. -- mx:AddChild target={v1} mx:Button label=New Button / /mx:AddChild !-- Disable the Add a Button button to prevent adding more than one button. -- mx:SetProperty target={b1} name=enabled value=false / /mx:State /mx:states !-- The application's child controls define the base state. -- mx:VBox id=v1 mx:Button id=b1 label=Add a Button click=currentState='newButton'/ !-- clicking the following button returns Flex to the bas state. -- mx:Button label=Remove Added Button click=currentState=''/ /mx:VBox /mx:Application i seem to get a error each time saying: Error: Cannot add a child that is already parented. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: View states problem in beta3
Check the wiki: http://labs.adobe.com/wiki/index.php/Flex:Beta_2_to_Beta_3_Changes#Flex_2_changes_between_Beta_2_and_Beta_3 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of rama satoskar Sent: Friday, May 26, 2006 10:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: View states problem in beta3 can u explain me the difference between the two target and relativeto.i have installed beta3 but in the flex builder it shows both the options. --- In flexcoders@yahoogroups.com, Jim Robson [EMAIL PROTECTED] wrote: In Beta 3, target is changed to relativeTo: mx:AddChild relativeTo ={v1} _ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of rama satoskar Sent: Friday, May 26, 2006 9:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] View states problem in beta3 hi all, is there a problem in the following code ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml !-- The Application class states property defines the view states. -- mx:states !-- Flex enters the newButton state when you click button b1 -- mx:State name=newButton !-- Add a Button child control to the v1 VBox control. -- mx:AddChild target={v1} mx:Button label=New Button / /mx:AddChild !-- Disable the Add a Button button to prevent adding more than one button. -- mx:SetProperty target={b1} name=enabled value=false / /mx:State /mx:states !-- The application's child controls define the base state. -- mx:VBox id=v1 mx:Button id=b1 label=Add a Button click=currentState='newButton'/ !-- clicking the following button returns Flex to the bas state. -- mx:Button label=Remove Added Button click=currentState=''/ /mx:VBox /mx:Application i seem to get a error each time saying: Error: Cannot add a child that is already parented. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site +design+developmentw2=Computer+software+developmentw3=Software+design+and+ developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1 66.sig=L-4QTvxB_quFDtMyhrQaHQ site design development Computer http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+si te+design+developmentw2=Computer+software+developmentw3=Software+design+an d+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s =166.sig=lvQjSRfQDfWudJSe1lLjHw software development Software http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+design+ and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5 s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ design and development Macromedia http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+deve lopmentw2=Computer+software+developmentw3=Software+design+and+development w4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6n PIrz7_EpZI36cYzBjw flex Software http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=W eb+site+design+developmentw2=Computer+software+developmentw3=Software+desi gn+and+developmentw4=Macromedia+flexw5=Software+development+best+practice c=5s=166.sig=f89quyyulIDsnABLD6IXIw development best practice _ YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ Terms of Service. _ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: View states problem in beta3
Cool! From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of rama satoskar Sent: Friday, May 26, 2006 10:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: View states problem in beta3 Thanks JIMit worked!! --- In flexcoders@yahoogroups.com, Jim Robson [EMAIL PROTECTED] wrote: In Beta 3, target is changed to relativeTo: mx:AddChild relativeTo ={v1} _ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of rama satoskar Sent: Friday, May 26, 2006 9:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] View states problem in beta3 hi all, is there a problem in the following code ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml !-- The Application class states property defines the view states. -- mx:states !-- Flex enters the newButton state when you click button b1 -- mx:State name=newButton !-- Add a Button child control to the v1 VBox control. -- mx:AddChild target={v1} mx:Button label=New Button / /mx:AddChild !-- Disable the Add a Button button to prevent adding more than one button. -- mx:SetProperty target={b1} name=enabled value=false / /mx:State /mx:states !-- The application's child controls define the base state. -- mx:VBox id=v1 mx:Button id=b1 label=Add a Button click=currentState='newButton'/ !-- clicking the following button returns Flex to the bas state. -- mx:Button label=Remove Added Button click=currentState=''/ /mx:VBox /mx:Application i seem to get a error each time saying: Error: Cannot add a child that is already parented. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site +design+developmentw2=Computer+software+developmentw3=Software+design+and+ developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1 66.sig=L-4QTvxB_quFDtMyhrQaHQ site design development Computer http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+si te+design+developmentw2=Computer+software+developmentw3=Software+design+an d+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s =166.sig=lvQjSRfQDfWudJSe1lLjHw software development Software http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+design+ and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5 s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ design and development Macromedia http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+deve lopmentw2=Computer+software+developmentw3=Software+design+and+development w4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6n PIrz7_EpZI36cYzBjw flex Software http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=W eb+site+design+developmentw2=Computer+software+developmentw3=Software+desi gn+and+developmentw4=Macromedia+flexw5=Software+development+best+practice c=5s=166.sig=f89quyyulIDsnABLD6IXIw development best practice _ YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ Terms of Service. _ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: flex2 Beta3 - slow to non existent document delivery
PB, That is not correct. If you download FB2 Beta3 and install FlexBuilder, then click Help-Help Contents you get a full set of docs. I should know: I use them all day, every day. J Good luck, Jim From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of p b Sent: Friday, May 26, 2006 10:53 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: flex2 Beta3 - slow to non existent document delivery Rama, There is virtually no documentaion as part of the flex2 Beta download. There are samples, sure, but not documentation. None. There are documentation links embedded within the readme.htmlthat point back to various macromedia sites but they don't work. PB rama satoskar [EMAIL PROTECTED] wrote: Well there are samples for each and evry concept in the help documentation with some tutorials too. Try ur hand at it. Best of luck. -- In flexcoders@yahoogroups.com, p b [EMAIL PROTECTED] wrote: Alistair, Yes I have also tried this. I can't get one document to save, not one. It's very odd. I'm at my wits end. Another gentlemen suggested that there is documentation w the download. While I have the download, I haven't looked there yet to see what's available. That's a good idea! Does anyone know, are the tutorials and the like there? I really want to get up to speed on this but I'm currently hamstrung. Thanks to both of you, PB Alistair McLeod [EMAIL PROTECTED] wrote: Hi PB, Have you tried to save the pdf to your local file system, rather than downloading and reading it over the internet every time? Regards, Alistair - From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of p b Sent: 26 May 2006 14:25 To: flexcoders@yahoogroups.com Subject: [flexcoders] flex2 Beta3 - slow to non existent document delivery I'm trying to get up to speed and participate in the Flex2 Beta3 programme, but 'm having a difficult time doing so. Please forgive me if I'm bothering the group, but this is incredibly frustrating. I'm wondering if the folks at Adobe/Macromedia are up to speed on this document delivery issue? Whenever I try to access any of the Flex2 beta documentation I run into problems. Say for example I'd like to peruse the flex2_gettingstarted_pdf docs. I click on the appropriate link from within the release notes section at the labs site and it takes forever to load. When the document finally does come back I get a few pages, that's it. When I try to scroll to a new page it takes literally 3 minutes to perform a page down if it occurs at all. Often the document just hangs. If I try to print the document, the process also hangs, w/o fail. I've tried printing perhaps 10 times over the last week at various times to no avail. The LiveDocs are no better. Thus the whole learning exercise becomes moot. While I have a 3mb broadband connection, I'm in the East near Toronto, and I fear, I'm doomed since I'm not at all proximal to your pops on the West coast. I'm about ready to bail on the beta, it's just too time consuming to tough it out. Any insight would be appreciated. (As an aside I can access literally thousands of pages of documentation at the Oracle site in a flash, (pardon aside). Their document delivery system works. If you Adobe folks wanna get the word out about your flex software, this has certainly got to improve quickly, IMHO. Thanks for your time. PB - New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice - YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. - - Be a chatter box. Enjoy free PC-to-PC calls with Yahoo! Messenger with Voice. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development
RE: [flexcoders] AJAX versus Flex
OK, heres 2 more cents. My employer has a staff of very good Java developers who have been building leading-edge Web apps for years. Why did they hire yours truly a humble Flash developer? Because they could not get the UI results they wanted with any other tool. Dont get me wrong they had built some very cool interfaces using Ajax and other tools. However, even these did not have all of the slick effects that they wanted, nor did they work as smoothly or reliably as could be desired. Moreover, the developers were sick of having to deal with differing browser implementations. They saw apps built by other shops that had the quality of UIs that they wanted and all of these apps had Flash front ends. And when a Java shop decides to go with Flash UIs, Flex is the obvious choice. As a final note, my employer builds applications for the worlds largest customer. And this customer already has a significant investment in other Adobe / Macromedia technologies, such as ColdFusion. So it seems to me that Flex is here to stay. IMHO, once the new 2.0 builder gets into production, there will be no holding it down. Lots of other developers will love it as much as we do, and it will take off. Having said all of that, of course, it wont hurt for Adobe to launch a major marketing and PR campaign. J Best, Jim From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of jwc_wensan Sent: Thursday, May 25, 2006 11:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] AJAX versus Flex To all: Got this email today, http://ajax.sys-con.com/ and it got me to thinking. I may get blasted for this, but here goes . . . just my .0199 cents. Let me first say I believe 100% that the Flex platform is a better mousetrap. I am currently developing applications with Flex. I prefer Flex. However, you can not open a software magazine, newsletter, journal, article, etc. that doesn't reference something about AJAX. It's everywhere. Adobe's Flex gets an honorable mention. I have been in the software business for over 27 years. I have seen many companies come and go that had a better mousetrap. I also realize that most end users do not care if a desktop app is developed with Visual C++ or Visual Basic. So why would they care what a RIA app is developed with. Probably not. In the end it is the application not the engine. There seems to be a parallel between PCs with Windows and Apple/Macs. Many believe that the Mac is better, but Apple/Mac has less the 5% of the market. Can Adobe accept 5% market share? You also can not under estimate the impact when Microsoft releases Atlas. And no Robert I don't want to hear about how you hate MS or the evil empire. Fact is, tens of thousands of developers will and I say will use their product. What this also does is make it more difficult for developers to convince management that the Flex product is better. Especially when all they hear is AJAX this and AJAX that. AJAX is getting all the hype. Right or wrong these are the facts. They have essentially taken over the RIA landscape and claimed it as their own. My point . . . . Adobe you need to step up to the plate. If you think you can wait, then by the time you start you will be too far behind. You will be left behind always playing catch-up. If you want to reach that 1 million developer goal, it needs to start now. To be better and say you are better is not enough. If the industry has already declared AJAX as the RIA industry leader then it becomes too late. >From a market perception, look how AJAX has evolved in the last year. Compare that to Adobe Flex. Adobe you are asking developers to make a commitment to you, well I think you need to increase your commitment to us. Now is the time to promote to the industry and the general public as a whole about the value of Flex. Again, just my opinion. Sincerely, Jack -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] AJAX versus Flex
Uncle Sam From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Kelly @ Dekayd Media Inc. Sent: Thursday, May 25, 2006 1:58 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] AJAX versus Flex As a final note, my employer builds applications for the worlds largest customer. Fannie Mae? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Strange thing happening with Flex 2 Beta 3 (eclipse plugin) - possible bug?
I missed your original post, but this does look like a bug. The player doesnt seem to know what to do with the empty String tag. When I place anything in that first String tag (in addition to or instead of the empty space) the problem goes away. This works: mx:ComboBox width=150 id=comboSearchType mx:dataProvider mx:Array mx:StringSelect.../mx:String mx:StringBasic Info/mx:String mx:StringVM-Detail/mx:String mx:StringPaging/mx:String mx:StringTechData/mx:String mx:StringSimple Freedom/mx:String mx:StringSID/mx:String /mx:Array /mx:dataProvider This doesnt work: mx:ComboBox width=150 id=comboSearchType mx:dataProvider mx:Array mx:String /mx:String mx:StringBasic Info/mx:String mx:StringVM-Detail/mx:String mx:StringPaging/mx:String mx:StringTechData/mx:String mx:StringSimple Freedom/mx:String mx:StringSID/mx:String /mx:Array /mx:dataProvider From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Greg Morphis Sent: Wednesday, May 24, 2006 10:20 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Strange thing happening with Flex 2 Beta 3 (eclipse plugin) - possible bug? I changed it to using actionscript to populate the comboBox and all is well.. Still don't know what caused the below issue but it's corrected. On 5/22/06, Greg Morphis [EMAIL PROTECTED] wrote: I've got a combo box being populated via code: mx:ComboBox width=150 id=comboSearchType change=chg(event); mx:dataProvider mx:Array mx:String /mx:String mx:StringBasic Info/mx:String mx:StringVM-Detail/mx:String mx:StringPaging/mx:String mx:StringTechData/mx:String mx:StringSimple Freedom/mx:String mx:StringSID/mx:String /mx:Array /mx:dataProvider /mx:ComboBox Anyways, when I run this the first time I don't see the Simple Freedom entry (the space for it is there and if I click on it I see Simple Freedom in the combo box), if I scroll all the way up, Basic Info is blank, again, I can click on it and see it in the box, when I scroll back down SID is blank, the space for it is there and if I click on it I see it in the box. I can recreate the problem. Is this a bug? something up with the Plugin version or what? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Force a List to resize ? How ?
Jean-Luc: What happens when you set the height of the List component to a multiple of the number of items in the list? myList.height = numberOfItems * 17; Does the component resize correctly? Jim From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Luc ESSER Sent: Friday, May 19, 2006 5:38 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Force a List to resize ? How ? I have a VBox, no height specified (i want it to grow depending on his child). Inside this box i put a List with xx rows. How do i force my List to take the height of all its rows ? That is, i don't want my list to scroll, i want it to resize so it shows all rows, and returns its height to my VBox. It's been almost a full day now that i'm trying this ! I've been looking everywhere... I'm pulling my hair off ! Help ! Please ? Jean-Luc -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Meaning of xmlns=*?
Heidi, Someone who is more knowledgeable may be able to correct me, but I think that is just a placeholder sort of a reminder to define your own namespaces. Perhaps someone will clarify this for both of us. Jim From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fi_heidi Sent: Friday, May 19, 2006 8:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Meaning of xmlns=*? Hello, I'm relatively new to Flex, and I'm editing some code in an existing project where these xmlns=* declarations are scattered about in our components in addition to our own namespace declarations. To the best of my knowledge, all our our custom components are qualified with their namespace names in the mxml files. Being so, is this declaration necessary, and what exactly does it mean? The global namespace? Thanks, /Heidi -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Image or mouse event changes from Beta 2 - Beta 3?
Hello all, The following code worked in Beta 2: mx:Image id=laptop1 source={laptopImage} mouseMove=dragMe(event, laptop1, 'img', laptopImage);myoffset(laptop1); x=400 y=80/ The function dragMe() was taken from a drag-and-drop example in the documentation. It worked perfectly in Beta 2, and life was good. Now that Ive upgraded to Beta 3, however, I cant get any mouse event to work with these mx:Image tags. I have tried using different mouse events (mouseDown, click) to invoke different functions, including a simple function that does nothing but change the text in a text box. Nothing seems to work. The functions never get called. No exception is thrown. The Flash player (9 Beta 3) just seems to ignore the whole thing. Its enough to make me feel unloved. Did anything change with either the Image tag or mouse events between Beta 2 and Beta 3? Could it be the fact that the images are embedded SWFs? Has anyone experienced anything similar? Or am I just missing something obvious? Ive searched the Adobe labs wiki but cant find a reference to a change that appears to be relevant to this issue. Jim -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] RE: Image or mouse event changes from Beta 2 - Beta 3?
I sort of found the cause, but the solution is not satisfactory. I tried swapping a PNG for the SWF, and the code worked. So I decided to see if I could make the SWF work. The original file consisted of a button with nice rollover and down effects (i.e. a typical Flash button). I removed the mouse effects and changed the instance symbol behavior to MovieClip, and compiled it. The new SWF works with the Flex code listed below. However, Ive lost my nice mouse effects. L Adobe Flex Development Team: Is this a bug? I hope so, and that youll get a chance to fix it. It would be a shame if we cant use interactive Flash assets in our Flex applications! (In fact, one of the reasons that my company shied away from OpenLaszlo is that imported / embedded SWFs are not interactive.) From: Jim Robson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 16, 2006 10:24 AM To: 'flexcoders@yahoogroups.com' Subject: Image or mouse event changes from Beta 2 - Beta 3? Hello all, The following code worked in Beta 2: mx:Image id=laptop1 source={laptopImage} mouseMove=dragMe(event, laptop1, 'img', laptopImage);myoffset(laptop1); x=400 y=80/ The function dragMe() was taken from a drag-and-drop example in the documentation. It worked perfectly in Beta 2, and life was good. Now that Ive upgraded to Beta 3, however, I cant get any mouse event to work with these mx:Image tags. I have tried using different mouse events (mouseDown, click) to invoke different functions, including a simple function that does nothing but change the text in a text box. Nothing seems to work. The functions never get called. No exception is thrown. The Flash player (9 Beta 3) just seems to ignore the whole thing. Its enough to make me feel unloved. Did anything change with either the Image tag or mouse events between Beta 2 and Beta 3? Could it be the fact that the images are embedded SWFs? Has anyone experienced anything similar? Or am I just missing something obvious? Ive searched the Adobe labs wiki but cant find a reference to a change that appears to be relevant to this issue. Jim -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Random number or string utils?
UIDUtil.createUID(); Math.random(); From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas Sent: Wednesday, May 10, 2006 3:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Random number or string utils? I need to generate random numbers and strings... is this some AS class that already does this? Been looking but can't find it. Need it in Flex 2. Dimitrios Gianninas RIADeveloper Optimal Payments Inc. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.