[flexcoders] Re: Flex and Yahoo Pipes
--- In [EMAIL PROTECTED], shaun etherton [EMAIL PROTECTED] wrote: joshspooning wrote: I see. That's weird Yahoo has set there cross-domain wide open. I'll look into the docs. Do you mean I mean I need to allow yahoo's domain? --- In [EMAIL PROTECTED], huangnankun HuangNankun@ wrote: Its the security sandbox issue, read up the flex 2 docs about this. Alternatively, you can attach a security error handler to your http service and read the error msg yourself =) --- In [EMAIL PROTECTED], joshspooning joshspooning@ wrote: I am currently trying to build a Flex app for me to search for places to eat lunch at work. I'm stuck on my first step. I'm having a problem parsing the the pipes just to a DataGrid. When I use a local copy it works but when I use the Yahoo! copy, it comes up blank. If any one could help me see what's wrong I'd be happy. If i hit this url in firefox I get a blank page. url=http://pipes.yahooapis.com/pipes/pipe.run?location=Dallassearch=sandwhich_id=tEaG60rj2xGl7hOLn0artA_run=1_render=rss; shaun, Yahoo specified in their blog: http://blog.pipes.yahoo.com/2007/03/10/pipes-adds-flash-developer-support/ , to use yahooapis in stead of yahoo. I'm still reading up on security stuff. And I'm confused so if you could shine some light that would be great
RE: [flexcoders] Grid columns of fixed and equal width
Pretty please? Even a response telling me that it's a bonehead question and I'm a dolt for asking would tell me _something_. ;-) Thanks! -- Martin Cooper From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, April 10, 2007 11:41 AM To: [EMAIL PROTECTED] Subject: [flexcoders] Grid columns of fixed and equal width What is the right way to create a Grid that has a fixed number of columns of equal width? What I need is a fixed 3-column layout to which I can dynamically add cells. Regardless of the content of the cells, the column widths should remain the same. Also, the columns would need to resize when the Grid is resized. I'm basing this on the Grid layout because I also need the column spanning capability that Grid gives me. Any hints would be a great help in getting me going. For extra bonus points ... what I *really* want is something more like three VBoxes of equal width, so that the contents are not forced to align vertically, as with a Grid, but where I also get the column spanning that a Grid gives me. (This is more like newspaper layout, except that I don't care about content flowing from one column to the next.) However working with a Grid will get me going for now. Thanks very much! -- Martin Cooper
RE: [flexcoders] Grid columns of fixed and equal width
What happened when you gave each column the same fixed width? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, April 13, 2007 9:30 AM To: [EMAIL PROTECTED] Subject: RE: [flexcoders] Grid columns of fixed and equal width Pretty please? Even a response telling me that it's a bonehead question and I'm a dolt for asking would tell me _something_. ;-) Thanks! -- Martin Cooper From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, April 10, 2007 11:41 AM To: [EMAIL PROTECTED] Subject: [flexcoders] Grid columns of fixed and equal width What is the right way to create a Grid that has a fixed number of columns of equal width? What I need is a fixed 3-column layout to which I can dynamically add cells. Regardless of the content of the cells, the column widths should remain the same. Also, the columns would need to resize when the Grid is resized. I'm basing this on the Grid layout because I also need the column spanning capability that Grid gives me. Any hints would be a great help in getting me going. For extra bonus points ... what I *really* want is something more like three VBoxes of equal width, so that the contents are not forced to align vertically, as with a Grid, but where I also get the column spanning that a Grid gives me. (This is more like newspaper layout, except that I don't care about content flowing from one column to the next.) However working with a Grid will get me going for now. Thanks very much! -- Martin Cooper
RE: [flexcoders] Italics in datagrid cell
Check out the examples on my blog http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.ht ml From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of tsiesser Sent: Friday, April 13, 2007 1:49 PM To: [EMAIL PROTECTED] Subject: [flexcoders] Italics in datagrid cell Hi - I'm trying to display italics in a datagrid cell based on certain row criteria. I've created a custom itemRenderer in AS3 that derives from UIComponent and that contains a UITextField as a child. (This might seem a little over-complex for what I'm describing, but I have other use for doing it this way... :-)) I override commitProperties and do the following: override protected function commitProperties():void { super.commitProperties(); textField.text = ... // get text value from data (works okay) if (data data is MyClass MyClass(data).notAvailable) { textField.textColor = textField.getStyle(disabledColor); textField.setStyle(fontStyle, italic); } else { textField.textColor = textField.getStyle(color); textField.setStyle(fontStyle, normal); } } The result is that I *do* get the disabled color when appropriate, but I *don't* get the italics. Does anyone have any idea what's going on? Thanks in advance for your help!
RE: [flexcoders] variable change / call a function
You should be adding a listener to the array collection for CollectionEvent.COLLECTION_CHANGE, then check the .kind in the event handler From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of sgrace99 Sent: Thursday, April 12, 2007 11:36 PM To: [EMAIL PROTECTED] Subject: [flexcoders] variable change / call a function In my custom Component I have a public bindable array collection (tied to my model in my model locator). I want to call a function when the array collection changes. How can I detect a change in the array collection and call a function in my custom component? I don't want to bind it to component property. I need to call my custom function and perform several operations based on the new data. I have investigated adding a listener to the CollectionEventKind event...but didn't seem to work. Any thoughts? Have I overlooked the obvious? Thanks!
[flexcoders] DateTimeAxis problems
Hi Can anyone help with a problem I have with DatetimeAxis? I have some data which has some gaps over a time period for example, but not limited to, weekends and public holidays.I want to show the final chart without these gaps appearing on it.The problem is I must use this type of axis - does anyone have any suggestions ? Here's an example of how I used this axis: mx:DateTimeAxis Labelunits=months Dataunits=days / Thanks in advance.
[flexcoders] Uploading file to a java servlet.
Hi everyone, I'm wondering if anyone has actually write a servlet that becomes the URL target of a FileReference.upload() method. It seems that the uploaded file can be retrieved in the inputstream of the post request, i.e. in the inputstream of the Request in doPost() method. The problem is, there are lots of other data as well in that input stream (the actual file uploaded is in a form value called Filedata) and I don't know how to extract just the uploaded file so that I can store it in the machine where the servlet is. I tried using getParameter(Filedata) but it doesn't work. Does anyone know how to get around this problem? Many thanks in advance. Any help would be greatly appreciated. Cheers, Ivan.
[flexcoders] Graphical elements in a Flex dynamic list
Hello, I'm using SOAP services that generate XML result. I need to feed a Flex dynamic list with the XML result. I try to use the XMLCollection AS object and I display it in a DataGrid. But I've got some problems. I just need to insert graphical elements (ex: MXML checkbox) into the list. Example: - The first column is a checkbox (for selection of the line) - The second is the `name' column - Third is `date' -- |Select | Name | Date -- |X | Justin| 01/12/07 | | Martin| 01/15/07 |X | John | 01/17/07 -- I found a solution: - I create another MXML file with the checkbox and I insert it into the list With this solution I can't change the state of the checkbox (true or false) because I can't access to it with AS because it's in another file. There is another problem: when I scroll the list, the checkbox state is reinitialized (with the MXML state = 'false') and I can't check all the lines together. Have you got another solution? Thanks
[flexcoders] open source plug-in AS frame work ?
Greetings Flex coders, Is there an open source plug-in framework for AS/Flex that allows for new new components to be added to an exiting application? I have Google for it, but anything with AS or Flex and plug-in all seem to point to the Eclipse Flex builder plug-in. I am looking for something along the lines of http://jpf.sourceforge.net/index.html. -- Nick Rathke Scientific computing and Imaging Sr. Systems Administrator / Facility Manager [EMAIL PROTECTED] www.sci.utah.edu 801-587-9933 801-232-9729 **less is more only better**
[flexcoders] Re: Uploading file to a java servlet.
You might find http://projects.apache.org/projects/jakarta_commons_fileupload.html useful. Works fine for me. Peter --- In [EMAIL PROTECTED], ivansebastiansurya [EMAIL PROTECTED] wrote: Hi everyone, I'm wondering if anyone has actually write a servlet that becomes the URL target of a FileReference.upload() method. It seems that the uploaded file can be retrieved in the inputstream of the post request, i.e. in the inputstream of the Request in doPost() method. The problem is, there are lots of other data as well in that input stream (the actual file uploaded is in a form value called Filedata) and I don't know how to extract just the uploaded file so that I can store it in the machine where the servlet is. I tried using getParameter(Filedata) but it doesn't work. Does anyone know how to get around this problem? Many thanks in advance. Any help would be greatly appreciated. Cheers, Ivan.
[flexcoders] Structure and visual design techniques
I've been the reading helps docs and I've come to the conclution that the suggested technique for using graphical and animated elements in flex is render then using actionscript. This is all well and good, but I come from a Flash as 1.0 and 2.0 background, I'm used to having these graphical elements on the stage nested in MovieClips where I can easily access and edit them and visualy see the structure(tree if you like) of the swf. This also enables me to swap layers easily, move MovieClips up and down the tree, generate new MovieClip from graphics drawn in the IDE, all visualy! It seems to me that to develop heavily using actionscript in flex, it requires a lot of thought and design about the structre of the swf to be undertaken before actually coding anything. so.. I was just wondering what techniques etc people are using for this type of visualisation. Cheers Si
Re: [flexcoders] open source plug-in AS frame work ?
At 08:12 AM 4/14/2007, Nick Rathke wrote: Greetings Flex coders, Is there an open source plug-in framework for AS/Flex that allows for new new components to be added to an exiting application? Did you mean Executing application? You want to create new components on the fly as your app runs? Have you looked into AddChild? You can create visual components via ActionScript and and add them to a container using AddChild. You can even use the top level application as the container, so the 'start' state could have no components displayed. Additionally, you may want to look at the PopUpManager class. I have used it to display components dynamically. -- Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com Connecticut Macromedia User Group: http://www.ctmug.com
[flexcoders] Implementing a CheckBox array..
I posted this as a reply in one of my other questions, so I apologize in advance if I appear to be spamming things. I've modified the question, anyway. -- Hey all.. I just have a question about forms in FLEX 2: I've got a repeater populated by a list of musicians taken from an XML file. Each artist is represented by a checkbox and when a submit button is clicked, I want that array to be sent over to a php script. This is the vbox containing the artist info and checkbox: mx:VBox mx:Text text={artistRepeat.currentItem.name} / mx:Image source = {artistRepeat.currentItem.image} scaleContent=true / mx:CheckBox data={artistRepeat.currentItem.name} id=cBox click=modifyArray(Object) / mx:Text text={cBox.data} / /mx:VBox And the function for handling this is: public function modifyArray(item:Object):String{ if(cBox.data != null){ return artistlist.text; } return artistlist.text = (artist = +cBox.data+);; } This registers the artist as 'undefined'. Am I going the right direction here? Thanks, Tom. Again, i'm sorry if im being repetitive here.
Re: [flexcoders] open source plug-in AS frame work ?
If you mean you want to create components for distribution or want to have them available accros projects, look into creating swc files. http://livedocs.macromedia.com/flex/201/html/creating_comps_041_1.html http://livedocs.adobe.com/flex/201/html/building_overview_121_09.html http://livedocs.macromedia.com/flex/201/html/compilers_123_42.html Is this what you're after? regards, Muzak - Original Message - From: Nick Rathke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, April 14, 2007 2:12 PM Subject: [flexcoders] open source plug-in AS frame work ? Greetings Flex coders, Is there an open source plug-in framework for AS/Flex that allows for new new components to be added to an exiting application? I have Google for it, but anything with AS or Flex and plug-in all seem to point to the Eclipse Flex builder plug-in. I am looking for something along the lines of http://jpf.sourceforge.net/index.html. -- Nick Rathke
[flexcoders] How do I reference a class that is a few subdirectories below my application
I have a class under my application folder in Widgets/CustomClass/Custom.as How do I reference that in my application ? I tried using an import statement but I get an error access of undefined property custom in widgets/customclass. Thanks bruce
Re: [flexcoders] open source plug-in AS frame work ?
I bet he means 'plugins' like some web apps are starting to have. I think your answer is; You need to create a framework that has a public interface API. Once this api is set you can load any component/module at runtime and share within the specified ApplicationDomain. I am working on something similar for future projects and components of mine. But, making use of good interfaces is one way to start this without any destination in mind. IE IStyleClient. I could load a module at runtime and check it with if (module is IStyleClient) style = IStyleClient(module).getStyle('blah'); That is the simple point. One other thing you need is a map or start up expectation of what the app can handle. This means what interfaces the app is going to use. A little more complicated but, I am sure in the next 2 years this will become like a 'myspace' fad in Flex. Pretty sure and mark my words on this one. :) Peace, Mike On 14 Apr 2007 09:09:39 -0700, Muzak [EMAIL PROTECTED] wrote: If you mean you want to create components for distribution or want to have them available accros projects, look into creating swc files. http://livedocs.macromedia.com/flex/201/html/creating_comps_041_1.html http://livedocs.adobe.com/flex/201/html/building_overview_121_09.html http://livedocs.macromedia.com/flex/201/html/compilers_123_42.html Is this what you're after? regards, Muzak - Original Message - From: Nick Rathke [EMAIL PROTECTED] nick%40sci.utah.edu To: [EMAIL PROTECTED] flexcoders%40yahoogroups.com Sent: Saturday, April 14, 2007 2:12 PM Subject: [flexcoders] open source plug-in AS frame work ? Greetings Flex coders, Is there an open source plug-in framework for AS/Flex that allows for new new components to be added to an exiting application? I have Google for it, but anything with AS or Flex and plug-in all seem to point to the Eclipse Flex builder plug-in. I am looking for something along the lines of http://jpf.sourceforge.net/index.html. -- Nick Rathke -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] change Panel.titleIcon via actionscript
I am hoping someone could help me figure out how to change the Panel.titleIcon via AS during runtime. So far from the documentation, it looks like I have to use @Embed and cannot use a runtime loaded image. I tried creating a bindable object then manipulating that via AS, with no avail. Thanks in advance for your help.
[flexcoders] Re: how to substitute the old attachmovie()?
thanks, great help and tips, i got a lot to learn :) --- In [EMAIL PROTECTED], Derek Vadneau [EMAIL PROTECTED] wrote: Just do it the same way you did it in AS2. In your code you are attaching a movie and giving it a name of nomeMenu+i. Do the same for your AS3 code - don't assign the value to a local variable. If you did that in the AS2 code, you'd end up with the same issue. Also, instead of removing the submenuitems as you did in AS2, just remove the items from the display list. That way you don't have to create and destroy the items everytime. You can create them once, and then add them or remove them from the display list. It should make the process faster, especially if you're using getDefinitionByName. By the way, if you're know the class name in the function that you are using getDefinitionByName and instantiating the class, why not just instantiate the class? As in: import FlashClasses.MenuItem; ... [in your loop] var instance:MenuItem = this[nomeMenu+j] = new MenuItem(); On 10 Apr 2007 09:18:43 -0700, herklano [EMAIL PROTECTED] wrote: i am migrating a project from AS2 to AS3 and had a dynamically built menu and submenus like: item1 | item2 | item3 subitem1-1 | subitem1-2 | subitem1-3 and i used the attachmovie to generate it and to get the main movieclip from the library... for (var i:Number=0; i menuRecordSet.length; i++) { attachMovie('mc_text', nomeMenu+i, this.getNextHighestDepth(),{_x:mcXleft, _y:mcY}); } i allready managed to make the items using the getDefinitionByName() function, like this: for (var j:Number = 1; j =5; j++) { var classRef:Class = getDefinitionByName(FlashClasses.MenuItem) as Class; var instance:Object = new classRef(); addChild(instance) instance.x = 100 + (j*12); instance.y = 200; } and this works OK to create the submenuitems, but then i have to remove them when i click on another menuitem and create the new submenuitems. then how do i reference to those instances of the class MenuItem if they are automatically generated? with attachmovie i had a different reference to each one of the subitems and used that reference to remove them from stage and insert them again. -- Derek Vadneau
[flexcoders] Correct way to determine MP3 length in ms and determine when sound starts playi?
Hello, The flash.media.Sound class has a length property that says it contains the length of the current sound in milliseconds. 1) Is this the best, most accurate way to determine a sound length? 2) If so, do i need to wait for a certain amount of the track to be loaded and playing before accessing it and getting a correct value? 3) Is there an event to monitor that will tell me when a sound begins to play? If so, what is the event? Thanks.
[flexcoders] Zooming in on the x-axis of the AreaChart
Is this possible to do? any examples of this anywhere, thanks? Patrick