[flexcoders] Custom Component AC3 : Creating Scrolling Functionality
HI Everyone, I hope everyone is having a nice time. I want to create a Custom Component that i am plannign to extend from Panel. I want to create Scrolling feature in my component using two buttons. (I don't want the default Scrollbar thing). Can any1 tell me how I can implement this or tell me , whcih portion of the documentation or API, i need to refer. Thank You. - Need Mail bonding? Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users.
Re: [flexcoders] How to get Flex2 Maven Plugin?
You are correct, but I am away and not easily able to do so. I will update the examples when I get back from my travels next weekend or the following week. Thanks for the note. Christian. On 2/9/07 9:20 PM, Thijs Triemstra | Collab [EMAIL PROTECTED] wrote: Hi Cristian, The pom.xml below is a copy-paste of the example on your site, it also uses version '1.0-SNAPSHOT' and after reading your reply I realized that this should be '1.0-alpha-2' instead. Maybe you should modify the examples on your site or point out it needs to be changed to the most recent version.. cheers, Thijs Op 8-feb-2007, om 22:03 heeft Christian Gruber het volgende geschreven: Only versions 1.0-alpha-1 and 1.0-alpha-2 have been published. The snapshots are not published at present. I am currently on a two week trip away, and will be publishing further changes when I return, which will be available within a few hours of their publishing on ibiblio. In the mean-time, please feel free to e-mail me with comments, thoughts, missing features, problems, etc. Regards, Christian Gruber On 2/6/07 12:47 AM, Thijs Triemstra | Collab [EMAIL PROTECTED] wrote: I created a new project with maven and edited the pom.xml so it looks like this: project xmlns=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/POM/4.0.0 xmlns:xsi=http:// www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=http://maven. http://maven.apache.org/POM/4.0.0 apache.org/POM/4.0.0 http:// maven.apache.org/maven-v4_0_0.xsd modelVersion4.0.0/modelVersion groupIdnl.collab.flex.maven/groupId artifactIdflex-maven-test/artifactId packagingswf/packaging version1.0-SNAPSHOT/version properties flex.home/Developer/SDKs/Flex/flex.home /properties build plugins plugin groupIdnet.israfil.mojo/groupId artifactIdmaven-flex2-plugin/artifactId version1.0-SNAPSHOT/version extensionstrue/extensions configuration flexHome${flex.home}/flexHome useNetworktrue/useNetwork dataServicesConfigsrc/main/resources/services-config.xml/ dataServicesConfig mainmain.mxml/main /configuration /plugin /plugins /build dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies /project And when I try 'mvn compile' I get the error below. Is the plugin going to be available in the main repository (central)? How do I get the plugin to work? [INFO] Scanning for projects... [INFO] -- [ERROR] BUILD ERROR [INFO] -- [INFO] Failed to resolve artifact. GroupId: net.israfil.mojo ArtifactId: maven-flex2-plugin Version: 1.0-SNAPSHOT Reason: Unable to download the artifact from any repository net.israfil.mojo:maven-flex2-plugin:pom:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1. http://repo1.maven.org/maven2) maven.org/maven2) [INFO] -- [INFO] For more information, run Maven with the -e switch [INFO] -- [INFO] Total time: 1 second [INFO] Finished at: Mon Feb 05 23:40:52 CET 2007 [INFO] Final Memory: 1M/2M [INFO] -- Thanks, Thijs
Re: [flexcoders] mouseOver an element within a TileList problem
I don't really see problem in this. You just have to add event handler to handle itemRollOver event of your TileList. That's all. Handler may look like: protected function onItemRollOver(event : ListEvent) : void { someLabelUnderTheList.text = event.itemRenderer.data.name; } Or something like this. Here event.itemRenderer is list element you rolled over and event.itemRenderer.data is this elements data (from data provider). R. On 2/9/07, bensmith5774 [EMAIL PROTECTED] wrote: Hello, I hope someone can help me with my problem - I think I may be missing something rather obvious. I have a TileList populated with data (ArrayCollection). Underneath the TileList I have a blank area. When the user mouseOver's a row in the TileList I want some of that data (for example name, category) to appear in the blank area. This sounds rather straight forward but I having a bit of a hard time getting it to work. Is there a way to explicitly reference the currently mouseOver'd object so it can be displayed outside the TileList. item renderers and repeaters don't seem to help much as I'm trying to display the content OUTSIDE of the TileList. I've also tried using IViewCursor (cursor.current.name) but it only ever displays the first element of the ArrayCollection. Any ideas much appreciated. Iain.
re: [flexcoders] New to the group
Hey Pedro, Welcome to FlexCoders! I came into E4X with a background in XPath as well and think the biggest hurdle in learning E4X was understanding the methodology behind it. XPath is intended as a query language for XML. In contrast I think of E4X more like an object representation of XML. This means it can treat results a little differently based on the form of the XML , such as when you get results with only one subject node but not with multiple subject nodes. I've found that while I work with XPath from the top down, I get the best results from E4X when I check it from the inside out. Here's how the original query works out. idHTTPService.lastResult.record .( [EMAIL PROTECTED]c001) The inner most part is @id=c001. The main problem with this is that it uses the assignment (=) operator and not evaluation (==). This means that istead of looking for an id attribute value of c001, it's actually creating or overrideing the id attribute. So we'll change that to ==. idHTTPService.lastResult.record .( [EMAIL PROTECTED]c001) The next part to evaluate is [EMAIL PROTECTED]c001. The problem here is that while @id==c001 is meant as a filter, it's not in parenthesis. So we'll change that to subject.(@id==c001) . The rest works already, so here's the end result. idHTTPService.lastResult.record .( subject.(@id==c001)) It takes a little getting used to, but I've found that E4X can normally handle what I need it to do. Ben Stucki -- We're Hiring! Seeking a passionate developer to join our team building Flex based products. Position is in the Washington D.C. metro area. If interested contact [EMAIL PROTECTED] From: Pedro Pastor [EMAIL PROTECTED] Sent: Friday, February 09, 2007 6:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] New to the group Hello to all of you. I have just entered this group. I am quite new to those technologies (Flex 2 and ActionScript 3). After reading some documentation I'm doing some practising and I have some questions to this community. 1) E4X query language: I'm used to work with XPath for dealing with XML structures. I've tried to do some (not very complicated) queries using E4X BUT it seems like E4X doesn't work the same way (and it is far from fulfilling the XML queries needs). For example, given the following XML date: ROOT record data. /data subject id=c001/name subject id=c002BB/name subject id=c003CCC/name /record record data. /data
[flexcoders] Override owner in TreeItemRenderer
I need a send [EMAIL PROTECTED] to an owner (tree). I've extend Tree class and write function Tree.setPath(); But when I tried to use this function as owner.setPath Flex says Call to a possibly undefined method setPath through a reference with static type flash.display:DisplayObjectContainer.; How can I use this function? package CellRenderers { import mx.controls.treeClasses.*; import mx.collections.*; import flash.ui.ContextMenu; import flash.ui.ContextMenuItem; import flash.ui.ContextMenuBuiltInItems; import flash.events.ContextMenuEvent; import flash.events.ContextMenuEvent; import flash.events.MouseEvent; import ed.ETree; public class ETreeItemRenderer extends TreeItemRenderer { public function ETreeItemRenderer() { super(); this.addEventListener(MouseEvent.MOUSE_OVER, mouseOverEvent); } public function mouseOverEvent(event:MouseEvent):void { owner.setPath([EMAIL PROTECTED]); } } }
[flexcoders] Re: StartDrag() versus DragManager.doDrag()
The reason is simple, drag and drop could be a lot more complicated then it seems to be, most of the time startDrag()/stopDrag() is just too simple, directly handle the mouse down/move/up event gives you the most flexibility. point = DisplayObject(dragInitiator.systemManager.topLevelSystemManager).globalToLocal(point); var mouseX:Number = point.x; var mouseY:Number = point.y; x = mouseX - xOffset; y = mouseY - yOffset; This just begs the question, why??? Why go through all that instead of just using the startDrag that is a core method of the Sprite class? Just to offset the DragProxy slightly from the mouse pointer? I don't get it, why bloat (in my opinion) the code. From my understanding classes and methods that are actually compiled into the flash plugin (ie the flash.* package) run faster than those that are not (ie. the mx.* package). I don't understand why all the extra code is required to accomplish something the plugin already has the ability to do.
[flexcoders] Associative Array as dataProvider
Hi, I an writing an application based upon the MVC architecture. An associative array is the best datamodel for my application. I want to populate a list control on the basis of this datamodel. The list control accepts a dataprovider as a data source. An array can easily be made into a data provider using ArrayCollection. What would be the best way of converting an associative array(I'm using Object as an associative array) into a data provider? Thanks in Advance, Pankaj
[flexcoders] Re: AMFPHP explicitType error
Kevin, I'm in the same boat. I had to initialize my VO object in the constructor. So, in your getUserInfo(), you would do (using my VO): var teamData:TeamVO = new TeamVO(data.result); and in your VO: public function TeamVO(toSet:Object=null) { registerClassAlias(com.mikecrowe.all.vo.TeamVO, TeamVO); _uuid = UIDUtil.createUID(); if ( toSet ) { try { uuid = toSet.uuid; } catch ( e:Error ) { trace(Error setting uuid: +e); } try { id = toSet.id; } catch ( e:Error ) { trace(Error setting id: +e); } try { created_by = toSet.created_by; } catch ( e:Error ) { trace(Error setting created_by: +e); } try { created_on = parseDate(toSet.created_on); } catch ( e:Error ) { trace(Error setting created_on: +e); } try { updated_by = toSet.updated_by; } catch ( e:Error ) { trace(Error setting updated_by: +e); } try { updated_on = parseDate(toSet.updated_on); } catch ( e:Error ) { trace(Error setting updated_on: +e); } try { parent_id = toSet.parent_id; } catch ( e:Error ) { trace(Error setting parent_id: +e); } try { contact_id = toSet.contact_id; } catch ( e:Error ) { trace(Error setting contact_id: +e); } try { cat_id = toSet.cat_id; } catch ( e:Error ) { trace(Error setting cat_id: +e); } try { team_is_global = toSet.team_is_global; } catch ( e:Error ) { trace(Error setting team_is_global: +e); } try { team_organizat_personal = toSet.team_organizat_personal; } catch ( e:Error ) { trace(Error setting team_organizat_personal: +e); } try { team_abbreviation = toSet.team_abbreviation; } catch ( e:Error ) { trace(Error setting team_abbreviation: +e); } try { team_name = toSet.team_name; } catch ( e:Error ) { trace(Error setting team_name: +e); } try { team_emails = toSet.team_emails; } catch ( e:Error ) { trace(Error setting team_emails: +e); } } } Note: The individual try{} statements are important. I had it around all the assignments before, and it ends up not initializing. Additionally, I'm working on a templating system that creates all the VO objects, PHP objects, and a basic CRUD interface. It's crude now, but working for me. If you want to chat about it, IM me at mikecrowe (yahoo) or mike(a)mikeandkellycrowe(d)com (msn). Mike --- In flexcoders@yahoogroups.com, Kevin [EMAIL PROTECTED] wrote: I am still having some problems using explicitType with PHP Flex. I am trying to send a basic Object back from PHP to flex and have it map to a VO. I think I have it all set up correctly, but I continue to get an error: IN FLEX VO UserDataVO.as [RemoteClass(com.onefoot.dbocl.services.vo.users.UserDataVO)] IN PHP VO UserDataVO.php var $_explicitType = com.onefoot.dbocl.services.vo.users.UserDataVO; SEND FROM PHP public function getUserInfo(){ /* retrieve session variables from server */ $User = new UserDataVO(); $User-fullName = Test User; $User-firstName = Test; $User-lastName = User; return $User; } RECEIVE IN FLEX from getUserInfo() call public function result(data:Object):void { var userData:UserDataVO = data.result; } ERROR Type Coercion failed: cannot convert mx.utils::[EMAIL PROTECTED] to com.onefoot.dbocl.vo.users.UserDataVO. Thanks for the help! - Kevin
[flexcoders] Move from Flex Builder to command line/SDK -- how?
Hi folks, I'm developing on a system with only 512M of memory, and Eclipse just is annoying. I've tried tuning it, but it is still just slow. I'm at a stage where I'm developing in ActionScript now, and would love to move to compiling from the command line. How do I go about doing this? Up to now, I've only used flex-builder. I don't see any makefiles or other obvious ways to simply compiling from the command line. Can somebody point me in the right direction? TIA Mike
Re: [flexcoders] Move from Flex Builder to command line/SDK -- how?
You can use the mxmlc compiler and compile your apps OR you can use FlashDevelop which now is good for doing Flex 2 and AS3 coding. I have gotten this to work well and I like it. Go to flashdevelop.org as they have info on how to set this up. On 2/10/07, Mike Crowe [EMAIL PROTECTED] wrote: Hi folks, I'm developing on a system with only 512M of memory, and Eclipse just is annoying. I've tried tuning it, but it is still just slow. I'm at a stage where I'm developing in ActionScript now, and would love to move to compiling from the command line. How do I go about doing this? Up to now, I've only used flex-builder. I don't see any makefiles or other obvious ways to simply compiling from the command line. Can somebody point me in the right direction? TIA Mike -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Override owner in TreeItemRenderer
Hi, you need to; ExtendedTree(owner).setPath([EMAIL PROTECTED]); You have to cast. Peace, Mike On 2/10/07, syabro [EMAIL PROTECTED] wrote: I need a send [EMAIL PROTECTED] to an owner (tree). I've extend Tree class and write function Tree.setPath(); But when I tried to use this function as owner.setPath Flex says Call to a possibly undefined method setPath through a reference with static type flash.display:DisplayObjectContainer.; How can I use this function? package CellRenderers { import mx.controls.treeClasses.*; import mx.collections.*; import flash.ui.ContextMenu; import flash.ui.ContextMenuItem; import flash.ui.ContextMenuBuiltInItems; import flash.events.ContextMenuEvent; import flash.events.ContextMenuEvent; import flash.events.MouseEvent; import ed.ETree; public class ETreeItemRenderer extends TreeItemRenderer { public function ETreeItemRenderer() { super(); this.addEventListener(MouseEvent.MOUSE_OVER, mouseOverEvent); } public function mouseOverEvent(event:MouseEvent):void { owner.setPath([EMAIL PROTECTED]); } } } -- 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'.
Re: [flexcoders] Re: AMFPHP explicitType error
wow. this seems like a lot of work to just map a VO object. Makes me wonder if it is worth it. What's the point of mapping the objects if you have to do the conversion manually anyway? What is weird is that in another command, I have an array of VO's being returned from PHP which all map correctly using the $_explicitType variable. However, when i simply return only one VO object from PHP, then I get the error. I'll keep looking into this... Thanks, Kevin On Feb 10, 2007, at 8:15 AM, Mike Crowe wrote: Kevin, I'm in the same boat. I had to initialize my VO object in the constructor. So, in your getUserInfo(), you would do (using my VO): var teamData:TeamVO = new TeamVO(data.result); and in your VO: public function TeamVO(toSet:Object=null) { registerClassAlias(com.mikecrowe.all.vo.TeamVO, TeamVO); _uuid = UIDUtil.createUID(); if ( toSet ) { try { uuid = toSet.uuid; } catch ( e:Error ) { trace(Error setting uuid: +e); } try { id = toSet.id; } catch ( e:Error ) { trace(Error setting id: +e); } try { created_by = toSet.created_by; } catch ( e:Error ) { trace(Error setting created_by: +e); } try { created_on = parseDate(toSet.created_on); } catch ( e:Error ) { trace(Error setting created_on: +e); } try { updated_by = toSet.updated_by; } catch ( e:Error ) { trace(Error setting updated_by: +e); } try { updated_on = parseDate(toSet.updated_on); } catch ( e:Error ) { trace(Error setting updated_on: +e); } try { parent_id = toSet.parent_id; } catch ( e:Error ) { trace(Error setting parent_id: +e); } try { contact_id = toSet.contact_id; } catch ( e:Error ) { trace(Error setting contact_id: +e); } try { cat_id = toSet.cat_id; } catch ( e:Error ) { trace(Error setting cat_id: +e); } try { team_is_global = toSet.team_is_global; } catch ( e:Error ) { trace(Error setting team_is_global: +e); } try { team_organizat_personal = toSet.team_organizat_personal; } catch ( e:Error ) { trace(Error setting team_organizat_personal: +e); } try { team_abbreviation = toSet.team_abbreviation; } catch ( e:Error ) { trace(Error setting team_abbreviation: +e); } try { team_name = toSet.team_name; } catch ( e:Error ) { trace(Error setting team_name: +e); } try { team_emails = toSet.team_emails; } catch ( e:Error ) { trace(Error setting team_emails: +e); } } } Note: The individual try{} statements are important. I had it around all the assignments before, and it ends up not initializing. Additionally, I'm working on a templating system that creates all the VO objects, PHP objects, and a basic CRUD interface. It's crude now, but working for me. If you want to chat about it, IM me at mikecrowe (yahoo) or mike(a)mikeandkellycrowe(d)com (msn). Mike --- In flexcoders@yahoogroups.com, Kevin [EMAIL PROTECTED] wrote: I am still having some problems using explicitType with PHP Flex. I am trying to send a basic Object back from PHP to flex and have it map to a VO. I think I have it all set up correctly, but I continue to get an error: IN FLEX VO UserDataVO.as [RemoteClass(com.onefoot.dbocl.services.vo.users.UserDataVO)] IN PHP VO UserDataVO.php var $_explicitType = com.onefoot.dbocl.services.vo.users.UserDataVO; SEND FROM PHP public function getUserInfo(){ /* retrieve session variables from server */ $User = new UserDataVO(); $User-fullName = Test User; $User-firstName = Test; $User-lastName = User; return $User; } RECEIVE IN FLEX from getUserInfo() call public function result(data:Object):void { var userData:UserDataVO = data.result; } ERROR Type Coercion failed: cannot convert mx.utils::[EMAIL PROTECTED] to com.onefoot.dbocl.vo.users.UserDataVO. Thanks for the help! - Kevin
[flexcoders] Re: Move from Flex Builder to command line/SDK -- how?
Clint, I'm more asking how to invoke the mxmlc compiler on a flex project. Do I have to build up a Makefile or build.xml? Any automated way to start this? TIA Mike --- In flexcoders@yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: You can use the mxmlc compiler and compile your apps OR you can use FlashDevelop which now is good for doing Flex 2 and AS3 coding. I have gotten this to work well and I like it. Go to flashdevelop.org as they have info on how to set this up. On 2/10/07, Mike Crowe [EMAIL PROTECTED] wrote: Hi folks, I'm developing on a system with only 512M of memory, and Eclipse just is annoying. I've tried tuning it, but it is still just slow. I'm at a stage where I'm developing in ActionScript now, and would love to move to compiling from the command line. How do I go about doing this? Up to now, I've only used flex-builder. I don't see any makefiles or other obvious ways to simply compiling from the command line. Can somebody point me in the right direction? TIA Mike -- http://indeegrumpee.spaces.live.com/
[flexcoders] Re: TextInput - Incorrect focus behavior
Use a StringValidator that enables or disables fields based on the validity of the field in question. I use it all the time for forms where the submit button is disabled until all required fields are valid. I think using the focus/blur events are the wrong way to go about it. mx:StringValidator source={this.zipCodeInput} property=text minLength=1 valid=this.phoneNumberInput.enabled=true; invalid=this.phoneNumberInput.enabled=false; / Paul --- In flexcoders@yahoogroups.com, acooleagle [EMAIL PROTECTED] wrote: Thanks for responding - TextInput does not have a property selectable ... My intention is that I don't want the user to be able to leave the field until a certain value has been entered. --- In flexcoders@yahoogroups.com, superstella_uk superstella_uk@ wrote: --- In flexcoders@yahoogroups.com, acooleagle acooleagle@ wrote: Cant you just set the TextField.selectable = false ? Hi all, Seems to me that focus events in TextInputs are a bit out of whack. The test application below should never allow focus on the phoneNumberInput field, since its focusIn event immediately redirects focus back to the zipcodeInput field. However, the zipCodeInput field remains active (as indicated by the blue highlight) the phoneNumberInput retains the prompt (!!). This is a major problem for us as we would like the focus and the prompt to stay in the active field on occasions where the content of the field is invalid. As far as I am concerned this weird focus/prompt behavior is a bug. $5 million question now is : does anybody know a workaround? Thanks for all feedback, = Dirk ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Form mx:TextInput id=zipCodeInput / mx:TextInput id=phoneNumberInput focusIn=zipCodeInput.setFocus() / /mx:Form /mx:Application
[flexcoders] Cross domain confusion
I have written an application using Flex 2 builder, and on my local machine it works fine. The application goes out and reads various RSS feeds on demand, displays them and allows you to pick one you want to read. but when I deploy the .swf file I get this message RPC Fault faultString=Security error accessing url faultCode=Channel.Security.Error faultDetail=Destination: DefaultHTTP] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/ internal::faultHandler() at mx.rpc::Responder/fault() at mx.rpc::AsyncRequest/fault() at ::DirectHTTPMessageResponder/securityErrorHandler() at flash.events::EventDispatcher/ flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::redirectEvent() I believe the problem is a cross domain security issue, but when I read the documentation on the cross domain xml file, it says it has to be deployed on the server where the data resides, which I have NO control over. How do I do something as simple as read an rss sml file, something that is supposed to be allowed. Why does it work on my local machine but not when deployed that is not making any sense to me. Until I can demonstrate that we can in fact deploy .swf files using flash my company is refusing to allows it use, so this is rather critical.. thank john
[flexcoders] Can someone tell me what I am doing wrong.
Hello, I am new to Flex and am currently in the process of going through the Adobe Flex 2 Training from the Source book. Well everything was going along fine until lesson 11. I have been fighting with a compiler error 1120: Access of undefined property valueObjects. I have the correct import statements and have double-checked my code multiple times with that provided by the authors. I get the same error when I use the author's code. Could there be a configuration problem in my enviroment. up to this point, erverything compiles and runs as expected. The error occurs on the click event of the button. Please review the code below. I can provide further details once the questions start. thanks in advance. ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:Metadata [Event(name=productRemoved,type=events.ProductEvent)] /mx:Metadata mx:Script ![CDATA[ import events.ProductEvent; import valueObjects.ShoppingCart; import valueObjects.ShoppingCartItem; import valueObjects.Product; import mx.controls.dataGridClasses.DataGridColumn; [Bindable] public var cart:ShoppingCart; private function renderPriceLabel(item:ShoppingCartItem,dataField:DataGridColumn):String{ return $+String(item.subtotal); } public function removeItem(cartItem:ShoppingCartItem):void{ var prod:Product = cartItem.product; var e:ProductEvent = new ProductEvent(prod,productRemoved); this.dispatchEvent(e); } ]] /mx:Script mx:DataGrid id=cartView dataProvider={cart.aItems} width=100% height=100% editable=true draggableColumns=false variableRowHeight=true mx:columns mx:DataGridColumn dataField=product headerText=Product itemRenderer=renderer.ecomm.ProductName editable=false/ mx:DataGridColumn dataField=quantity itemEditor=mx.controls.NumericStepper editorDataField=value editable=true headerText=Quantity / mx:DataGridColumn dataField=subtotal headerText=Amount labelFunction=renderPriceLabel editable=false / mx:DataGridColumn editable=false mx:itemRenderer mx:Component mx:VBox mx:Button label=Remove click=outerDocument.removeItem(valueObjects.ShoppingCartItem(data))/ /mx:VBox /mx:Component /mx:itemRenderer /mx:DataGridColumn /mx:columns /mx:DataGrid /mx:VBox
Re: [flexcoders] Col chart will not display a single column, need at least two - bug? (Flex 2.01)
This is a pretty common problem people run into... When you do an xml get from a service... if you get back 2 or more elements it will be created as an array in AS2/AS3. But when that same service returns one element it will be deserialized as a single AS2/AS3 OBJECT. Import mx.utils.ArrayUtil and then run the result through ArrayUtil.toArray() first... like this: mx:ColumnChart dataProvider={ArrayUtil.toArray( httpGetYearlyPatentStats.lastResult.rsp.statistic)} On 2/8/07, coderdude2 [EMAIL PROTECTED] wrote: Hi, I'm using a column chart with my application. Works fine when displaying two or more columns, but if the dataProvider contains data for only one column, the column is not displayed. The only way I found to display it is to use a CategoryAxis, but that won't work for me because it skips missing years (if the data has values for 1984 and 1987 let's say, CategoryAxis doesn't know to display all the years in between on the axis). Here's the chart setup I'm using: mx:ColumnChart itemClick=chartClickHandler(event) id=colchartYearlyPatentStats maxColumnWidth=20 left=5 top=5 bottom=5 right=5 showDataTips=true dataProvider={httpGetYearlyPatentStats.lastResult.rsp.statistic} mx:series mx:ColumnSeries displayName= xField=year yField=count / /mx:series mx:horizontalAxis mx:LinearAxis maximumLabelPrecision=1 baseAtZero=false minorInterval=0 interval=1 alignLabelsToInterval=true/ /mx:horizontalAxis /mx:ColumnChart Thanks for any help!
[flexcoders] Re: How to measure a Menu before calling show()?
Thanks Doug. Interestingly enough, the public method UIComponent.validateNow() does exactly that (frameworks/source/mx/core/UIComponent.as): public function validateNow():void { UIComponentGlobals.layoutManager.validateClient(this); } But calling that still doesn't seem to set the width and height of the menu. I poked around the framework code a bit more, but before I got anywhere it occurred to me to just do this: var itemMenu:Menu = Menu.createMenu(null, menuData, true); itemMenu.iconField = icon; itemMenu.show(x, y); itemMenu.hide(); var x:Number = e.stageX; var y:Number = e.stageY; var width:Number = itemMenu.getExplicitOrMeasuredWidth(); var height:Number = itemMenu.getExplicitOrMeasuredHeight(); if (x + width this.stage.width) { // show menu to the left of the cursor x -= width; } if (y + height this.stage.height) { // show menu above the cursor y -= height; } itemMenu.show(x, y); That seems to work fine without any noticeable flicker (at least on my 3-year-old laptop). And yes, your scrollable menu looks great and I plan to use it! Regards, Karl --- In flexcoders@yahoogroups.com, Doug McCune [EMAIL PROTECTED] wrote: If you're comfortable looking at the source code for the framework classes, then check out the source of MenuBar.as at line 1574, see the showMenu() method. That has logic that repositions the menu so that it remains on the stage. You could use that code and re-purpose it a little to get it working for your situation. It looks like the key line in there is this: UIComponentGlobals.layoutManager.validateClient(menu, true); which will validate the size of the Menu before you then use the width and height to check the x and y position. Also, see if my Scrollable Menu component might fit your needs: http://dougmccune.com/blog/2007/01/26/even-better-scrollable-menus- for-flex/ -Doug karlgold wrote: I want to display a popup menu when the user clicks in a certain spot in application: private function showContextMenu(e:MouseEvent):void { var menuData:Array = new Array(); // populate menuData var itemMenu:Menu = Menu.createMenu(null, menuData, true); itemMenu.show(e.stageX, e.stageY); } This works fine. However, if the user clicks close to the bottom or right margin of the application, the menu is cut off. I'd like to do something like this: private function showContextMenu(e:MouseEvent):void { var menuData:Array = new Array(); // populate menuData var itemMenu:Menu = Menu.createMenu(null, menuData, true); // how to tell a Menu to measure its width and height before // displaying it? var x:Number = e.stageX; var y:Number = e.stageY; if (x + itemMenu.width this.stage.width) { // show menu to the left of the cursor x -= itemMenu.width; } if (y + itemMenu.height this.stage.height) { // show menu above the cursor y -= itemMenu.height; } itemMenu.show(x, y); } It appears that the width and height are 0 prior to calling show (). Is there any way to measure the menu before drawing it? Thanks, Karl
[flexcoders] Re: AMFPHP explicitType error
Interesting. I'm also using the renaun AMF0 templates. I wonder if that could be the problem. Have you moved to any AMF3 setups? --- In flexcoders@yahoogroups.com, Kevin [EMAIL PROTECTED] wrote: wow. this seems like a lot of work to just map a VO object. Makes me wonder if it is worth it. What's the point of mapping the objects if you have to do the conversion manually anyway? What is weird is that in another command, I have an array of VO's being returned from PHP which all map correctly using the $_explicitType variable. However, when i simply return only one VO object from PHP, then I get the error. I'll keep looking into this... Thanks, Kevin On Feb 10, 2007, at 8:15 AM, Mike Crowe wrote: Kevin, I'm in the same boat. I had to initialize my VO object in the constructor. So, in your getUserInfo(), you would do (using my VO): var teamData:TeamVO = new TeamVO(data.result); and in your VO: public function TeamVO(toSet:Object=null) { registerClassAlias(com.mikecrowe.all.vo.TeamVO, TeamVO); _uuid = UIDUtil.createUID(); if ( toSet ) { try { uuid = toSet.uuid; } catch ( e:Error ) { trace(Error setting uuid: +e); } try { id = toSet.id; } catch ( e:Error ) { trace(Error setting id: +e); } try { created_by = toSet.created_by; } catch ( e:Error ) { trace(Error setting created_by: +e); } try { created_on = parseDate(toSet.created_on); } catch ( e:Error ) { trace(Error setting created_on: +e); } try { updated_by = toSet.updated_by; } catch ( e:Error ) { trace(Error setting updated_by: +e); } try { updated_on = parseDate(toSet.updated_on); } catch ( e:Error ) { trace(Error setting updated_on: +e); } try { parent_id = toSet.parent_id; } catch ( e:Error ) { trace(Error setting parent_id: +e); } try { contact_id = toSet.contact_id; } catch ( e:Error ) { trace(Error setting contact_id: +e); } try { cat_id = toSet.cat_id; } catch ( e:Error ) { trace(Error setting cat_id: +e); } try { team_is_global = toSet.team_is_global; } catch ( e:Error ) { trace(Error setting team_is_global: +e); } try { team_organizat_personal = toSet.team_organizat_personal; } catch ( e:Error ) { trace(Error setting team_organizat_personal: +e); } try { team_abbreviation = toSet.team_abbreviation; } catch ( e:Error ) { trace(Error setting team_abbreviation: +e); } try { team_name = toSet.team_name; } catch ( e:Error ) { trace(Error setting team_name: +e); } try { team_emails = toSet.team_emails; } catch ( e:Error ) { trace(Error setting team_emails: +e); } } } Note: The individual try{} statements are important. I had it around all the assignments before, and it ends up not initializing. Additionally, I'm working on a templating system that creates all the VO objects, PHP objects, and a basic CRUD interface. It's crude now, but working for me. If you want to chat about it, IM me at mikecrowe (yahoo) or mike(a)mikeandkellycrowe(d)com (msn). Mike --- In flexcoders@yahoogroups.com, Kevin lists@ wrote: I am still having some problems using explicitType with PHP Flex. I am trying to send a basic Object back from PHP to flex and have it map to a VO. I think I have it all set up correctly, but I continue to get an error: IN FLEX VO UserDataVO.as [RemoteClass(com.onefoot.dbocl.services.vo.users.UserDataVO)] IN PHP VO UserDataVO.php var $_explicitType = com.onefoot.dbocl.services.vo.users.UserDataVO; SEND FROM PHP public function getUserInfo(){ /* retrieve session variables from server */ $User = new UserDataVO(); $User-fullName = Test User; $User-firstName = Test; $User-lastName = User; return $User; } RECEIVE IN FLEX from getUserInfo() call public function result(data:Object):void { var userData:UserDataVO = data.result; } ERROR Type Coercion failed: cannot convert mx.utils::[EMAIL PROTECTED] to com.onefoot.dbocl.vo.users.UserDataVO. Thanks for the help! - Kevin
[flexcoders] Flex Coding Guidelines
Folks, As my commitment to community I'm releasing, with DClick support, our Adobe Flex Coding Guidelines, a document about Flex (MXML and ActionScript) coding conventions that we use on a regular basis. The objective is clear: provide a common and consistent language to help code comprehension between developers. The practices established in this document are based on Java conventions, Flex 2 SDK and DClick team experience (including myself). By releasing this document, the idea is to help the community improve their Flex code by using coding conventions as well and hear feedback from community to continuously improve this document, that by now is a community asset. I'll be happy to have volunteers to form a committee or something to evolve this project further. This way, comments on this document (including the best practices) are very welcome! Involve yourself in this flexcoders thread, at the flexdev (listaflexdev.org - portuguese list on Flex) or at DClick weblog (http://blog.dclick.com.br/2007/02/10/adobe-flex-coding-guidelines/) English version: http://blog.dclick.com.br/wp-content/uploads/adobe-flex-coding-guidelines-v12-english.pdf Portuguese version: http://blog.dclick.com.br/wp-content/uploads/adobe-flex-coding-guidelines-v12-portugues.pdf Thanks, Fabio Terracini
Re: [flexcoders] Re: Move from Flex Builder to command line/SDK -- how?
most people use Ant to do auto builds, but I dont know anymore than that as I dont do it that way. On 2/10/07, Mike Crowe [EMAIL PROTECTED] wrote: Clint, I'm more asking how to invoke the mxmlc compiler on a flex project. Do I have to build up a Makefile or build.xml? Any automated way to start this? TIA Mike --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: You can use the mxmlc compiler and compile your apps OR you can use FlashDevelop which now is good for doing Flex 2 and AS3 coding. I have gotten this to work well and I like it. Go to flashdevelop.org as they have info on how to set this up. On 2/10/07, Mike Crowe [EMAIL PROTECTED] wrote: Hi folks, I'm developing on a system with only 512M of memory, and Eclipse just is annoying. I've tried tuning it, but it is still just slow. I'm at a stage where I'm developing in ActionScript now, and would love to move to compiling from the command line. How do I go about doing this? Up to now, I've only used flex-builder. I don't see any makefiles or other obvious ways to simply compiling from the command line. Can somebody point me in the right direction? TIA Mike -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Flex Coding Guidelines
Hi Fabio I think it is a good document, beside the whitespace paragraphs. Distribution of whitespace is always worth a discussion :) There is only one thing, that makes me wonder. If methods should start with a verb, why don't you prefer handleMouseClick() over mouseClickHandler() ? Cheers, Ralf. On 2/10/07, Fabio Terracini [EMAIL PROTECTED] wrote: Folks, As my commitment to community I'm releasing, with DClick support, our Adobe Flex Coding Guidelines, a document about Flex (MXML and ActionScript) coding conventions that we use on a regular basis. The objective is clear: provide a common and consistent language to help code comprehension between developers. The practices established in this document are based on Java conventions, Flex 2 SDK and DClick team experience (including myself). By releasing this document, the idea is to help the community improve their Flex code by using coding conventions as well and hear feedback from community to continuously improve this document, that by now is a community asset. I'll be happy to have volunteers to form a committee or something to evolve this project further. This way, comments on this document (including the best practices) are very welcome! Involve yourself in this flexcoders thread, at the flexdev (listaflexdev.org - portuguese list on Flex) or at DClick weblog (http://blog.dclick.com.br/2007/02/10/adobe-flex-coding-guidelines/ ) English version: http://blog.dclick.com.br/wp-content/uploads/adobe-flex-coding-guidelines-v12-english.pdf Portuguese version: http://blog.dclick.com.br/wp-content/uploads/adobe-flex-coding-guidelines-v12-portugues.pdf Thanks, Fabio Terracini -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
[flexcoders] Re: mouseOver an element within a TileList problem
Ahhh I see, well I did know I was missing something blindingly obvious and getting a bit fixated on mouseOver. Brilliant it works perfectly - thanks for your help. --- In flexcoders@yahoogroups.com, Roman Protsiuk [EMAIL PROTECTED] wrote: I don't really see problem in this. You just have to add event handler to handle itemRollOver event of your TileList. That's all. Handler may look like: protected function onItemRollOver(event : ListEvent) : void { someLabelUnderTheList.text = event.itemRenderer.data.name; } Or something like this. Here event.itemRenderer is list element you rolled over and event.itemRenderer.data is this elements data (from data provider). R. On 2/9/07, bensmith5774 [EMAIL PROTECTED] wrote: Hello, I hope someone can help me with my problem - I think I may be missing something rather obvious. I have a TileList populated with data (ArrayCollection). Underneath the TileList I have a blank area. When the user mouseOver's a row in the TileList I want some of that data (for example name, category) to appear in the blank area. This sounds rather straight forward but I having a bit of a hard time getting it to work. Is there a way to explicitly reference the currently mouseOver'd object so it can be displayed outside the TileList. item renderers and repeaters don't seem to help much as I'm trying to display the content OUTSIDE of the TileList. I've also tried using IViewCursor (cursor.current.name) but it only ever displays the first element of the ArrayCollection. Any ideas much appreciated. Iain.
Re: [flexcoders] Flex Coding Guidelines
Sincerely... Thank You. On 2/10/07, Fabio Terracini [EMAIL PROTECTED] wrote: Folks, As my commitment to community I'm releasing, with DClick support, our Adobe Flex Coding Guidelines, a document about Flex (MXML and ActionScript) coding conventions that we use on a regular basis. The objective is clear: provide a common and consistent language to help code comprehension between developers. The practices established in this document are based on Java conventions, Flex 2 SDK and DClick team experience (including myself). By releasing this document, the idea is to help the community improve their Flex code by using coding conventions as well and hear feedback from community to continuously improve this document, that by now is a community asset. I'll be happy to have volunteers to form a committee or something to evolve this project further. This way, comments on this document (including the best practices) are very welcome! Involve yourself in this flexcoders thread, at the flexdev (listaflexdev.org - portuguese list on Flex) or at DClick weblog (http://blog.dclick.com.br/2007/02/10/adobe-flex-coding-guidelines/ ) English version: http://blog.dclick.com.br/wp-content/uploads/adobe-flex-coding-guidelines-v12-english.pdf Portuguese version: http://blog.dclick.com.br/wp-content/uploads/adobe-flex-coding-guidelines-v12-portugues.pdf Thanks, Fabio Terracini
Re: [flexcoders] Re: Move from Flex Builder to command line/SDK -- how?
you could also look at the flex compiler shell on adobe labs. i know the TextMate editor (for osx) has support for launching the compiler also. On 10-feb-2007, at 17:57, Clint Tredway wrote: most people use Ant to do auto builds, but I dont know anymore than that as I dont do it that way. On 2/10/07, Mike Crowe [EMAIL PROTECTED] wrote: Clint, I'm more asking how to invoke the mxmlc compiler on a flex project. Do I have to build up a Makefile or build.xml? Any automated way to start this? TIA Mike
[flexcoders] filter AS syntax question
In this Flex/RemoteObject/CFC app I'm developing: http://66.219.52.136/simple/bin/simple.html I have two columns in my drivergrid 1) Product (which are single product name such as: TravelMate 8000) 2) RelatedProducts(comma separate string of product names such as: TravelMate 8000, TravelMate 8200, etc.) When the user selects a Product in the left productgrid, I want the filter to search the product column in the drivercollection for an exact match AND the relatedproducts column if the product name exists in the comma separated list. My filter works for product column just fine: private function filterByProduct( item:Object ) : Boolean { var ProductItem:Object = productgrid.selectedItem; if( ProductItem == null ) return false; return(ProductItem.Product == item.Product); } How do I modify it to also search the string in RelatedProducts column? I tried something like this, but I don't know Actionscript syntax well enough yet to get it to work: private function filterByProduct( item:Object ) : Boolean { var ProductItem:Object = productgrid.selectedItem; if( ProductItem == null ) return false; return(ProductItem.Product == item.Product OR ProductItem.Product ~= item.ProductRelatedProducts); } Can you help with the syntax? Any recommendations? I'm sorry if it takes a long time to load the data in the grids, next I need to address how to improve the remoteobject performance for large tables. Thanks! Don
Re: [flexcoders] Re: AMFPHP explicitType error
I am using AMFPHP 1.9 which I think uses AMF3. I think I zero'd in on the problem. If I have my PHP class only send strings, then the typing works (without any constructor conversion). However, when I try to map other data types, I get the error. I modified my UserDataVO to only contain string types, and I was able to easily map the PHP VO using the $_explicitType variable in PHP and the [RemoteClass] meta tag in Flex. I am now going to test some other data types and see which ones throw the Coercion error. I'll post when I have more info. In the mean time you may want to look at this other PHP/Flex list which has some good posts: http://groups.google.com/group/adobe_php_sdk/browse_thread/thread/ ac92eba7eb46632b The end of this thread explains the problems we are having...without any solution that I could find yet... - Kevin On Feb 10, 2007, at 11:32 AM, Mike Crowe wrote: Interesting. I'm also using the renaun AMF0 templates. I wonder if that could be the problem. Have you moved to any AMF3 setups? --- In flexcoders@yahoogroups.com, Kevin [EMAIL PROTECTED] wrote: wow. this seems like a lot of work to just map a VO object. Makes me wonder if it is worth it. What's the point of mapping the objects if you have to do the conversion manually anyway? What is weird is that in another command, I have an array of VO's being returned from PHP which all map correctly using the $_explicitType variable. However, when i simply return only one VO object from PHP, then I get the error. I'll keep looking into this... Thanks, Kevin On Feb 10, 2007, at 8:15 AM, Mike Crowe wrote: Kevin, I'm in the same boat. I had to initialize my VO object in the constructor. So, in your getUserInfo(), you would do (using my VO): var teamData:TeamVO = new TeamVO(data.result); and in your VO: public function TeamVO(toSet:Object=null) { registerClassAlias(com.mikecrowe.all.vo.TeamVO, TeamVO); _uuid = UIDUtil.createUID(); if ( toSet ) { try { uuid = toSet.uuid; } catch ( e:Error ) { trace(Error setting uuid: +e); } try { id = toSet.id; } catch ( e:Error ) { trace(Error setting id: +e); } try { created_by = toSet.created_by; } catch ( e:Error ) { trace(Error setting created_by: +e); } try { created_on = parseDate(toSet.created_on); } catch ( e:Error ) { trace(Error setting created_on: +e); } try { updated_by = toSet.updated_by; } catch ( e:Error ) { trace(Error setting updated_by: +e); } try { updated_on = parseDate(toSet.updated_on); } catch ( e:Error ) { trace(Error setting updated_on: +e); } try { parent_id = toSet.parent_id; } catch ( e:Error ) { trace(Error setting parent_id: +e); } try { contact_id = toSet.contact_id; } catch ( e:Error ) { trace(Error setting contact_id: +e); } try { cat_id = toSet.cat_id; } catch ( e:Error ) { trace(Error setting cat_id: +e); } try { team_is_global = toSet.team_is_global; } catch ( e:Error ) { trace(Error setting team_is_global: +e); } try { team_organizat_personal = toSet.team_organizat_personal; } catch ( e:Error ) { trace(Error setting team_organizat_personal: +e); } try { team_abbreviation = toSet.team_abbreviation; } catch ( e:Error ) { trace(Error setting team_abbreviation: +e); } try { team_name = toSet.team_name; } catch ( e:Error ) { trace(Error setting team_name: +e); } try { team_emails = toSet.team_emails; } catch ( e:Error ) { trace(Error setting team_emails: +e); } } } Note: The individual try{} statements are important. I had it around all the assignments before, and it ends up not initializing. Additionally, I'm working on a templating system that creates all the VO objects, PHP objects, and a basic CRUD interface. It's crude now, but working for me. If you want to chat about it, IM me at mikecrowe (yahoo) or mike(a)mikeandkellycrowe(d)com (msn). Mike --- In flexcoders@yahoogroups.com, Kevin lists@ wrote: I am still having some problems using explicitType with PHP Flex. I am trying to send a basic Object back from PHP to flex and have it map to a VO. I think I have it all set up correctly, but I continue to get an error: IN FLEX VO UserDataVO.as [RemoteClass(com.onefoot.dbocl.services.vo.users.UserDataVO)] IN PHP VO UserDataVO.php var $_explicitType = com.onefoot.dbocl.services.vo.users.UserDataVO; SEND FROM PHP public function getUserInfo(){ /* retrieve session variables from server */ $User = new UserDataVO(); $User-fullName = Test User; $User-firstName = Test; $User-lastName = User; return $User; } RECEIVE IN FLEX from getUserInfo() call public function result(data:Object):void { var userData:UserDataVO = data.result; } ERROR Type Coercion failed: cannot convert mx.utils::[EMAIL PROTECTED] to com.onefoot.dbocl.vo.users.UserDataVO. Thanks for the help! - Kevin
[flexcoders] Re: Refreshing Datagrid from pop up window
well im back with another problem... i followed your example private function sendResultHandler(evt:ResultEvent):void { dataProvider.addItem(ArrayUtil.toArray(evt.result)); dataProvider.refresh(); } however all it does is add a blank result to the datagrid but once i refresh using the browser the newly updated row appears interstingly i tried this: private function sendResultHandler(evt:ResultEvent):void { dataProvider = new ArrayCollection ( ArrayUtil.toArray(evt.result) ); dataProvider.addItem(ArrayUtil.toArray(evt.result)); dataProvider.refresh(); } obviously this completely wipes the data currently displayed on the datagrid but this acutally displays the newly updated item. this is how i've declared my data provider [Bindable] public var dataProvider:ArrayCollection = new ArrayCollection(); any ideas? anyone?
[flexcoders] Scroll Position
I have canvas whose content scrolls verticaly about 3 pages. However, I don't want this to always start at the top, but is dependant on the user. The question is, how do I set the vertical scroll position to something other than the top, while still allowing the user to scroll up or down as needed?
[flexcoders] Re: Self Signed Cert. For Secure SecureRTMPChannel
See if you have a keystore named cacerts under your Java installation folder, and if so add the key to that keystore as well. --- In flexcoders@yahoogroups.com, vitopn [EMAIL PROTECTED] wrote: Hi Doug, I'm fairly certain that the self-signed cert is in the keystore. (Doesn't keytool -genkey .. store the newly generated cert in the keystore?) I am doing a list and the flex2cert is in there. C:\Documents and Settings\vitopnkeytool -list -keystore C:\Tomcat\webapps\Presidio\WEB-INF\flex\.keystore Enter keystore password: changeit Keystore type: jks Keystore provider: SUN Your keystore contains 2 entries tomcat, Feb 8, 2007, keyEntry, Certificate fingerprint (MD5): FB:13:46:DE:C5:F9:BA:F7:D0:57:95:58:D5:AA:80:4F flex2cert, Feb 8, 2007, keyEntry, Certificate fingerprint (MD5): B5:8D:4C:DD:01:9B:09:01:3E:88:B9:90:4D:8F:70:6C Any other thoughts? Thank you, -Vito --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ wrote: Looks like you didn't add the self-signed certificate to the keystore. Check out the keytool -import command. http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/keytool.html#Comman\ ds http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/keytool.html#Comma\ nds http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/keytool.html#Comma\ nds --- In flexcoders@yahoogroups.com, vitopn vitopn@ wrote: What steps do I need to take to get a self signed certificate to work with SecureRTMPChannel? I generate the keystore file with something like this: keytool -genkey -alias flex2cert -dname CN=localhost, OU=Presidio, O=Presidio, L=San Francisco, S=California, C=CA -validity 3650 and configure the channel like this: channel-definition id=secureRTMP class=mx.messaging.channels.SecureRTMPChannel endpoint uri=rtmps://localhost:2099 class=flex.messaging.endpoints.SecureRTMPEndpoint / properties idle-timeout-minutes20/idle-timeout-minutes keystore-fileC:/Tomcat/webapps/Presidio/WEB-INF/flex/.keystore/keysto\ re-file keystore-passwordchangeit/keystore-password /properties /channel-definition The server starts and I see this in the console: [Flex][INFO] Endpoint secureRTMP created with security: None at URI: rtmps://localhost:2099 [Flex][WARN] The current license does not support clustering; clustering for all destinations is disabled. [Flex][INFO] RTMPS-Server listening on port:2099 [Flex][DEBUG] Created worker thread: RTMPS-Worker-0 [Flex][DEBUG] Created worker thread: RTMPS-Worker-1 [Flex][DEBUG] Created worker thread: RTMPS-Worker-2 [Flex][DEBUG] Created worker thread: RTMPS-Worker-3 When I try to connect I get this: 'secureRTMP' channel got status. (Object)#0 code = NetConnection.Connect.CertificateUntrustedSigner level = status Thank you, -Vito
[flexcoders] Cairngorm - fireing two events at the same time messes the results?
I have two Cairngorm events that trigger two commands which (using delegate) trigger two different web service methods. The problem is that both calls return the same result set (?). It seems that fireing two events at the same time causes this problem. Any suggestions? Thanks.
[flexcoders] Re: Cairngorm - fireing two events at the same time messes the results?
btw how am I supposed (for the sake of Cairngorm consistency) to handle calls that are not actions to user gestures, for instance: calling 3 web service methods for filling 3 combo boxes? Thx! --- In flexcoders@yahoogroups.com, Danko Kozar [EMAIL PROTECTED] wrote: I have two Cairngorm events that trigger two commands which (using delegate) trigger two different web service methods. The problem is that both calls return the same result set (?). It seems that fireing two events at the same time causes this problem. Any suggestions? Thanks.
[flexcoders] Need help getting the groupName of a radio button in a function
I have 2 sets of radio buttons with 2 different group names. I'm using them to do some filtering. The function is pretty basic and will work with both groups but I need to know what group is calling the function. Can someone please help me with the correct code to get the radioButtons groupName? public function filterByBLine(evt:ItemClickEvent):void { trace (evt.currentTarget.groupName); if (evt.currentTarget.selectedValue == All){ projectArray.filterFunction = null; projectArray.refresh(); } else { projectArray.filterFunction = DGFilter; projectArray.refresh(); } } mx:RadioButtonGroup id=businessLineRB itemClick=filterByBLine (event)/
Re: [flexcoders] New to the group
Hi everybody I'm studying E4X and I discover how it is powerfull. I agree with Ben: it is really objects. just one more detail: _/[EMAIL PROTECTED]toto means the element subject where the attribute id equals toto /subject id=toto .../subject /while subject.(@id==toto) means the element subject whith the included element id equals toto /subject... idtoto/id .../subject regards Hervé _ Ben Stucki a écrit : Hey Pedro, Welcome to FlexCoders! I came into E4X with a background in XPath as well and think the biggest hurdle in learning E4X was understanding the methodology behind it. XPath is intended as a query language for XML. In contrast I think of E4X more like an object representation of XML. This means it can treat results a little differently based on the form of the XML , such as when you get results with only one subject node but not with multiple subject nodes. I've found that while I work with XPath from the top down, I get the best results from E4X when I check it from the inside out. Here's how the original query works out. idHTTPService.lastResult.record .( [EMAIL PROTECTED]c001) The inner most part is @id=c001. The main problem with this is that it uses the assignment (=) operator and not evaluation (==). This means that istead of looking for an id attribute value of c001, it's actually creating or overrideing the id attribute. So we'll change that to ==. idHTTPService.lastResult.record .( [EMAIL PROTECTED]c001) The next part to evaluate is [EMAIL PROTECTED]c001. The problem here is that while @id==c001 is meant as a filter, it's not in parenthesis. So we'll change that to subject.(@id==c001) . The rest works already, so here's the end result. idHTTPService.lastResult.record .( subject.(@id==c001)) It takes a little getting used to, but I've found that E4X can normally handle what I need it to do. Ben Stucki -- We're Hiring! Seeking a passionate developer to join our team building Flex based products. Position is in the Washington D.C. metro area. If interested contact [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] *From*: Pedro Pastor [EMAIL PROTECTED] *Sent*: Friday, February 09, 2007 6:26 PM *To*: flexcoders@yahoogroups.com *Subject*: [flexcoders] New to the group Hello to all of you. I have just entered this group. I am quite new to those technologies (Flex 2 and ActionScript 3). After reading some documentation I'm doing some practising and I have some questions to this community. 1) E4X query language: I'm used to work with XPath for dealing with XML structures. I've tried to do some (not very complicated) queries using E4X BUT it seems like E4X doesn't work the same way (and it is far from fulfilling the XML queries needs). For example, given the following XML date: ROOT record data. /data subject id=c001/name subject id=c002BB/name subject id=c003CCC/name /record record data. /data subject id=c001/name subject id=c005H/name /record And so on... /ROOT Using an mx:HTTPService id=idHTTPService .. resultFormat=e4x And asking for: idHTTPService.lastResult.record .( [EMAIL PROTECTED]c001 mailto:[EMAIL PROTECTED]) this query only provides the record elements that have ONLY ONE subject child AND has an @id == c001. I mean, the record tags with more than one subject children always fail. -Is this the correct behaviour? -How can I perform such type of query? Thank you very much in advance. Pedro -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.32/677 - Release Date: 08/02/2007 21:04
Re: [flexcoders] Re: Refreshing Datagrid from pop up window
That's certainly interesting. I would try and debug the result of: ArrayUtil.toArray(evt.result)); To make sure the data is the correct type, and columns named correctly. Just a stab in the dark. I know the technique does work as I use it in my app - but you might just need to check your return values and make sure they are what you expect. Cheers, Adam - Original Message - From: munene_uk To: flexcoders@yahoogroups.com Sent: Sunday, February 11, 2007 4:44 AM Subject: [flexcoders] Re: Refreshing Datagrid from pop up window well im back with another problem... i followed your example private function sendResultHandler(evt:ResultEvent):void { dataProvider.addItem(ArrayUtil.toArray(evt.result)); dataProvider.refresh(); } however all it does is add a blank result to the datagrid but once i refresh using the browser the newly updated row appears interstingly i tried this: private function sendResultHandler(evt:ResultEvent):void { dataProvider = new ArrayCollection ( ArrayUtil.toArray(evt.result) ); dataProvider.addItem(ArrayUtil.toArray(evt.result)); dataProvider.refresh(); } obviously this completely wipes the data currently displayed on the datagrid but this acutally displays the newly updated item. this is how i've declared my data provider [Bindable] public var dataProvider:ArrayCollection = new ArrayCollection(); any ideas? anyone?
Re: [flexcoders] Re: Cairngorm - fireing two events at the same time messes the results?
You can certainly call multiple services at the same time. If you are having issues, I would first check to see what the concurrency is set to on the service as you will get different results depending on the setting being multiple, single, or last. As far as calling the services, you can use creationComplete to call a function that make the service calls. This is quite common in applications that I have built that need to have data populate on load. Rich On 2/10/07, Danko Kozar [EMAIL PROTECTED] wrote: btw how am I supposed (for the sake of Cairngorm consistency) to handle calls that are not actions to user gestures, for instance: calling 3 web service methods for filling 3 combo boxes? Thx! --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Danko Kozar [EMAIL PROTECTED] wrote: I have two Cairngorm events that trigger two commands which (using delegate) trigger two different web service methods. The problem is that both calls return the same result set (?). It seems that fireing two events at the same time causes this problem. Any suggestions? Thanks. -- Rich Tretola mx:EverythingFlex/ http://www.EverythingFlex.com
[flexcoders] How can I make the mx;Panel draggable?
Hi, I want to be able to drag this panel around sort of like a floating window. It should be able to be dragged and I guess dropped, not really like dragging a value from datagridA to datagridB but Just like in windows how you can drag a dialog box around I want to do the same in my app. How can I do this?? -Malik
[flexcoders] How can I make the mx;Panel draggable?
Hi, I want to be able to drag this panel around sort of like a floating window. It should be able to be dragged and I guess dropped, not really like dragging a value from datagridA to datagridB but Just like in windows how you can drag a dialog box around I want to do the same in my app. How can I do this?? -Malik
[flexcoders] Re: How can I make the mx;Panel draggable?
Hi, Somehow I have double posted, sorry about that, I am trying to make panel draggable via the title bar only. I meant to add that to my initial post. -westside --- In flexcoders@yahoogroups.com, malik_robinson [EMAIL PROTECTED] wrote: Hi, I want to be able to drag this panel around sort of like a floating window. It should be able to be dragged and I guess dropped, not really like dragging a value from datagridA to datagridB but Just like in windows how you can drag a dialog box around I want to do the same in my app. How can I do this?? -Malik
[flexcoders] Re: How can I make the mx;Panel draggable?
Hi, Somehow I have double posted, sorry about that, I am trying to make panel draggable via the title bar only. I meant to add that to my initial post. -westside --- In flexcoders@yahoogroups.com, malik_robinson [EMAIL PROTECTED] wrote: Hi, I want to be able to drag this panel around sort of like a floating window. It should be able to be dragged and I guess dropped, not really like dragging a value from datagridA to datagridB but Just like in windows how you can drag a dialog box around I want to do the same in my app. How can I do this?? -Malik
Re: [flexcoders] Scroll Position
May not be precise, but it should be something like: var myPos:uint = 250; myCan.verticalScrollPosition = myPos; -S On 2/10/07, jmfillman [EMAIL PROTECTED] wrote: I have canvas whose content scrolls verticaly about 3 pages. However, I don't want this to always start at the top, but is dependant on the user. The question is, how do I set the vertical scroll position to something other than the top, while still allowing the user to scroll up or down as needed? -- : : ) Scott
[flexcoders] Want the SWEETEST Flex theme(s) ever? Contest!
Thought my friends and fam here on the list would be very interested: --- Would you like an eye-popping, application differentiating, super fresh theme for your next RIA? Want an instant turn-key solution to give your app it's own unique look without needing to spend a million bucks (and hours) hiring a savvy designer? Don't want to spend the next two weeks locked in your closet trying to figure it out yourself- just to come up with something half-assed? Let's be serious, you want to continue focusing on what you do best - developing SWEET RIAs'. Now, finally... you can! Win your FREE, beautifully designed, professional Flex Theme: - We have some beautifully designed professional Flex themes that we've spent weeks and weeks developing. They are ready for instant use in your hot new world-changing RIAs'. We eat, drink, breath, and sleep shockingly beautiful UI design. HOW DO I WIN? Email me a quick note answering the following 10 questions: [EMAIL PROTECTED] WHATS THE PRIZE? One theme that you PERSONALLY can use however you see fit. That's right, you can even use it in corporate ($$$) applications with unrestricted usage. Anything you want, except selling the theme itself or distributing it to others. WHO WINS? I will select a lucky handful of people- heck maybe a bunch depending on how good your responses are! 10 SIMPLE QUESTIONS (please respond via EMAIL to be eligible - [EMAIL PROTECTED]): 1) On a scale of 1-10 (1 least, 10 the most) do you and your clients realize how critically important it is for your RIA's theme/look and feel to be visually different than others currently on the market? You: Your clients: 2) How many RIA's will you be working on in the coming year? 3) Percentage wise, will these apps be customer/public facing or employee facing? Customer/public: % Employee: % Other: % 4) Out of these, how many will require or benefit from a custom theme's look and feel? Require: % Benefit from: % 5) What kind of cost and time do you budget for an RIA's UI (user interface) theme / look and feel? Time: Cost: $ 6) How many design revisions does the theme/look and feel typically go through until the stake-holders give you the thumbs up? 7) How much MORE time and money do you typically end up spending on a RIA's theme/ look and feel than originally had anticipated? What does the total cost end up being? More time: More money: $ Total amount of time: Total cost: $ 8) What would you consider a fair price for a custom UI Theme designed and built uniquely for your application? Including all time required to consult with you or your client to determine the demographics, use cases, design direction, specifications, and all revisions. Specifically, to not even think about the UI Theme mess so you can focus specifically on the RIA development itself? a) $2+ b) $15000-$2 c) $1-$15000 d) $7500-$1 e) $5000-$7500 f) $3500-$5000 g) $2500-$3500 h) $1500-$2500 i) $750-$1500 j) $400-750 k) less than $400 9) What would you pay for a shared UI Theme? i.e.: a pre-built high-quality theme that is sold, but not necessarily used, to a limited or unlimited number of people as an instant solution. Limited: $__ Unlimited: $__ 10) What best describes you (pick all that apply): a) An individual consultant/freelancer b) In a company that offers RIA development services c) In a company that is interested in developing an RIA d) In a company that has built RIAs in the past e) a formally trained developer f) a formally trained designer g) management g) Other: Thats it! Thanks for the help and good luck! Chad
Re: [flexcoders] Want the SWEETEST Flex theme(s) ever? Contest!
Is there a site with these themes? I'm not sure if this is serious or not... if you're pushing Flex themes, why not show us? Brendan On 2/10/07, Chad [EMAIL PROTECTED] wrote: Thought my friends and fam here on the list would be very interested: --- Would you like an eye-popping, application differentiating, super fresh theme for your next RIA? Want an instant turn-key solution to give your app it's own unique look without needing to spend a million bucks (and hours) hiring a savvy designer? Don't want to spend the next two weeks locked in your closet trying to figure it out yourself- just to come up with something half-assed? Let's be serious, you want to continue focusing on what you do best - developing SWEET RIAs'. Now, finally... you can! Win your FREE, beautifully designed, professional Flex Theme: - We have some beautifully designed professional Flex themes that we've spent weeks and weeks developing. They are ready for instant use in your hot new world-changing RIAs'. We eat, drink, breath, and sleep shockingly beautiful UI design. HOW DO I WIN? Email me a quick note answering the following 10 questions: [EMAIL PROTECTED] m3_515hp%40NOSPAMOLA.yahoo.com WHATS THE PRIZE? One theme that you PERSONALLY can use however you see fit. That's right, you can even use it in corporate ($$$) applications with unrestricted usage. Anything you want, except selling the theme itself or distributing it to others. WHO WINS? I will select a lucky handful of people- heck maybe a bunch depending on how good your responses are! 10 SIMPLE QUESTIONS (please respond via EMAIL to be eligible - [EMAIL PROTECTED] m3_515hp%40NOSPAMOLA.yahoo.com): 1) On a scale of 1-10 (1 least, 10 the most) do you and your clients realize how critically important it is for your RIA's theme/look and feel to be visually different than others currently on the market? You: Your clients: 2) How many RIA's will you be working on in the coming year? 3) Percentage wise, will these apps be customer/public facing or employee facing? Customer/public: % Employee: % Other: % 4) Out of these, how many will require or benefit from a custom theme's look and feel? Require: % Benefit from: % 5) What kind of cost and time do you budget for an RIA's UI (user interface) theme / look and feel? Time: Cost: $ 6) How many design revisions does the theme/look and feel typically go through until the stake-holders give you the thumbs up? 7) How much MORE time and money do you typically end up spending on a RIA's theme/ look and feel than originally had anticipated? What does the total cost end up being? More time: More money: $ Total amount of time: Total cost: $ 8) What would you consider a fair price for a custom UI Theme designed and built uniquely for your application? Including all time required to consult with you or your client to determine the demographics, use cases, design direction, specifications, and all revisions. Specifically, to not even think about the UI Theme mess so you can focus specifically on the RIA development itself? a) $2+ b) $15000-$2 c) $1-$15000 d) $7500-$1 e) $5000-$7500 f) $3500-$5000 g) $2500-$3500 h) $1500-$2500 i) $750-$1500 j) $400-750 k) less than $400 9) What would you pay for a shared UI Theme? i.e.: a pre-built high-quality theme that is sold, but not necessarily used, to a limited or unlimited number of people as an instant solution. Limited: $__ Unlimited: $__ 10) What best describes you (pick all that apply): a) An individual consultant/freelancer b) In a company that offers RIA development services c) In a company that is interested in developing an RIA d) In a company that has built RIAs in the past e) a formally trained developer f) a formally trained designer g) management g) Other: Thats it! Thanks for the help and good luck! Chad -- Brendan Meutzner Stretch Media - RIA Adobe Flex Development [EMAIL PROTECTED] http://www.stretchmedia.ca
[flexcoders] Any tips on how to do enable only vertical Sprite Drag and Drop ?
Hello, Can anyone post a top on how to to enable only vertical Sprite Drag and Drop ? In other words, when the user drags a sprite, he can only drag it vertically accross the stage and not in any other direction ... !!! Thanks for the help, Sean.
Re: [flexcoders] Flex Coding Guidelines
Hi Fabio, The effort of bringing the coding guidelines in public is highly appreciated. Was looking for a compact guidelines stringent to actionscript coding from long time. Thanks, Amol. - Original Message From: Fabio Terracini [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, February 10, 2007 10:13:02 PM Subject: [flexcoders] Flex Coding Guidelines Folks, As my commitment to community I'm releasing, with DClick support, our Adobe Flex Coding Guidelines, a document about Flex (MXML and ActionScript) coding conventions that we use on a regular basis. The objective is clear: provide a common and consistent language to help code comprehension between developers. The practices established in this document are based on Java conventions, Flex 2 SDK and DClick team experience (including myself). By releasing this document, the idea is to help the community improve their Flex code by using coding conventions as well and hear feedback from community to continuously improve this document, that by now is a community asset. I'll be happy to have volunteers to form a committee or something to evolve this project further. This way, comments on this document (including the best practices) are very welcome! Involve yourself in this flexcoders thread, at the flexdev (listaflexdev. org - portuguese list on Flex) or at DClick weblog (http://blog. dclick.com. br/2007/02/ 10/adobe- flex-coding- guidelines/) English version: http://blog. dclick.com. br/wp-content/ uploads/adobe- flex-coding- guidelines- v12-english. pdf Portuguese version: http://blog. dclick.com. br/wp-content/ uploads/adobe- flex-coding- guidelines- v12-portugues. pdf Thanks, Fabio Terracini Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com
[flexcoders] Re: Move from Flex Builder to command line/SDK -- how?
But I'm still missing this: My project has a program.mxml file in the root directory, and then 40-50 files in com.crowe.view.*, com.crowe.vo.*, com.crowe.events.*, etc. What I don't yet see is how to invoke the compiler on these 40-50 files. I'm asking for a pointer to documents on how to set your system up. That's what I'm missing. TIA Mike --- In flexcoders@yahoogroups.com, Ilya Devèrs [EMAIL PROTECTED] wrote: you could also look at the flex compiler shell on adobe labs. i know the TextMate editor (for osx) has support for launching the compiler also. On 10-feb-2007, at 17:57, Clint Tredway wrote: most people use Ant to do auto builds, but I dont know anymore than that as I dont do it that way. On 2/10/07, Mike Crowe [EMAIL PROTECTED] wrote: Clint, I'm more asking how to invoke the mxmlc compiler on a flex project. Do I have to build up a Makefile or build.xml? Any automated way to start this? TIA Mike
[flexcoders] Re: Flex Coding Guidelines
Fabio, great work. --- In flexcoders@yahoogroups.com, Fabio Terracini [EMAIL PROTECTED] wrote: Folks, As my commitment to community I'm releasing, with DClick support, our Adobe Flex Coding Guidelines, a document about Flex (MXML and ActionScript) coding conventions that we use on a regular basis. The objective is clear: provide a common and consistent language to help code comprehension between developers. The practices established in this document are based on Java conventions, Flex 2 SDK and DClick team experience (including myself). By releasing this document, the idea is to help the community improve their Flex code by using coding conventions as well and hear feedback from community to continuously improve this document, that by now is a community asset. I'll be happy to have volunteers to form a committee or something to evolve this project further. This way, comments on this document (including the best practices) are very welcome! Involve yourself in this flexcoders thread, at the flexdev (listaflexdev.org - portuguese list on Flex) or at DClick weblog (http://blog.dclick.com.br/2007/02/10/adobe-flex-coding-guidelines/) English version: http://blog.dclick.com.br/wp-content/uploads/adobe-flex-coding-guidelines-v12-english.pdf Portuguese version: http://blog.dclick.com.br/wp-content/uploads/adobe-flex-coding-guidelines-v12-portugues.pdf Thanks, Fabio Terracini
[flexcoders] Re: New to the group
Hi Ben, Thank you very much for your response. Here you are my comments: 1) The = / == error is just a typing error in my e-mail. This symbol was properly set in my code. 2) I've tried your suggestion but it doesn't work. That query provides ALL the record elements in the XML tree. Using the very same code but removing the internal () for the (@id == c001) filter, it provides me with the matching record elements BUT only those having ONLY ONE subject children (and having @id = c001). 3) The point is I need to check (filter) at children level (subject) in order to get the appropriate parent node-set (record). That's very easy in XPath, but I'm getting quite confusing with E4X. I've been developing XML application form years, and I've been dealing with XML+XSLT+ some other dynamic HTML technologies and I find Flex+ActionScript is a big step forward in the client web application realm, but the way ActionScript deals with XML is a bit deceiving. Best regards, Pedro --- In flexcoders@yahoogroups.com, Ben Stucki [EMAIL PROTECTED] wrote: Hey Pedro, Welcome to FlexCoders! I came into E4X with a background in XPath as well and think the biggest hurdle in learning E4X was understanding the methodology behind it. XPath is intended as a query language for XML. In contrast I think of E4X more like an object representation of XML. This means it can treat results a little differently based on the form of the XML , such as when you get results with only one subject node but not with multiple subject nodes. I've found that while I work with XPath from the top down, I get the best results from E4X when I check it from the inside out. Here's how the original query works out. idHTTPService.lastResult.record .( [EMAIL PROTECTED]c001) The inner most part is @id=c001. The main problem with this is that it uses the assignment (=) operator and not evaluation (==). This means that istead of looking for an id attribute value of c001, it's actually creating or overrideing the id attribute. So we'll change that to ==. idHTTPService.lastResult.record .( [EMAIL PROTECTED]c001) The next part to evaluate is [EMAIL PROTECTED]c001. The problem here is that while @id==c001 is meant as a filter, it's not in parenthesis. So we'll change that to subject.(@id==c001) . The rest works already, so here's the end result. idHTTPService.lastResult.record .( subject.(@id==c001)) It takes a little getting used to, but I've found that E4X can normally handle what I need it to do. Ben Stucki
[flexcoders] highlighting a textarea
Hi all, does anybody know how's the best way to highlight specific words within a TextArea? I need to do this with SQL keywords. thanks -- André Rodrigues Pena LOCUS www.locus.com.br Blog www.techbreak.org
[flexcoders] Highlight and select all rows in datagrid by button.
I was able to select one row by doing myDataGrid.selectedIndex = 1; == index number of the row. However, I'm trying to create a button that select all rows in datagrid. I have tried following but no success.. private function selectAll() : void { for( var i:int = 0; i myDataProvider.length; i++ ){ myDataGrid.selectedIndices[i] = i; myDataGrid.selectedItems[i] = myDataProvider[i]; } } Any idea? any suggestion?
[flexcoders] Re: Cross domain confusion
Hi John, I'm new to Flex 2 and I have not an answer to this point. My message is also asking for help. I'm having the same error executing my Flex application on my local machine and trying to access an XML data file that's in a subdirectory of the /bin directory. The curious point is that if I upload all files (.html, .swf and .xml) to my department web server it works fine!!! I've been browsing the corresponding documentation. It says there shuold be a mms.cfg file granting permissions at: C:\windows\system32\macromed\flash\mms.cfg; on a default Windows XP installation), BUT I lack that file in my XP system!! I don't know if that's the cause for this error, but I supposed that by default an SWF file have granted access to a local data file. Could anybody out there clarify this point? Thank you very much in advance. Pedro --- In flexcoders@yahoogroups.com, John buono [EMAIL PROTECTED] wrote: I have written an application using Flex 2 builder, and on my local machine it works fine. The application goes out and reads various RSS feeds on demand, displays them and allows you to pick one you want to read. but when I deploy the .swf file I get this message RPC Fault faultString=Security error accessing url faultCode=Channel.Security.Error faultDetail=Destination: DefaultHTTP] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/ internal::faultHandler() at mx.rpc::Responder/fault() at mx.rpc::AsyncRequest/fault() at ::DirectHTTPMessageResponder/securityErrorHandler() at flash.events::EventDispatcher/ flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::redirectEvent() I believe the problem is a cross domain security issue, but when I read the documentation on the cross domain xml file, it says it has to be deployed on the server where the data resides, which I have NO control over. How do I do something as simple as read an rss sml file, something that is supposed to be allowed. Why does it work on my local machine but not when deployed that is not making any sense to me. Until I can demonstrate that we can in fact deploy .swf files using flash my company is refusing to allows it use, so this is rather critical.. thank john
[flexcoders] Command line to compile system (extracted from FlexBuilder?)
Hi folks, Is there a way to get the mxmlc command that FlexBuilder is executing somehow? I'm running low on resources, and want to compile from the command line. However, I can't seem to get a command line to work that produces a working .swf. Any way I can get it somehow? TIA Mike
Re: [flexcoders] Flex Builder to run faster
thanks for your support Shannon. That's what I'm gonna do On 2/10/07, Shannon Hicks [EMAIL PROTECTED] wrote: I don't think there's going to be any way to speed up Flex Builder. You could try using a different tool to edit you MXML/AS, and build it using the regular SDK. In other words, you might be better off getting by without using Flex Builder at all. Shan André Rodrigues Pena wrote: Hi all, I need to run Flex Builder in a computer that's not so fast with only 256 MB. Does anybody know something I can do so that my Flex Builder can run more seamlessly? even if I need to lose some features? I would appreciate any help thanks in advance -- André Rodrigues Pena LOCUS www.locus.com.br Blog www.techbreak.org -- André Rodrigues Pena LOCUS www.locus.com.br Blog www.techbreak.org
[flexcoders] Propagating Serverside Exception as Flex Fault
Hello, My Flex component is not displaying the correct Exception Message as thrown by the server side component which is a WebService.For example,the Webservice class throws an exception with message Customer ID must be uinque.However on flex side,the code below always shows HTTP request error. Alert.show(event.fault.faultString,fault); I have confirmed that the request to the server is successful and the service returns a SOAP fault with correct message. Please advice on how I could retrieve correct error/fault message from server in the Flex UI. Thankyou in advance. Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
[flexcoders] Newbie question about AMFPHP
Hi all, I'm justing starting with AMFPHP and I saw this sample code at the project's front-page function handleGetOrderList(re:ResultEvent) { var rs:RecordSet = RecordSet(re.result); for(var i = 0; i rs.length; i++) { var item = rs.getItemAt(i); //item is an object with keys orderid, status, etc. } } but RecordSet is not a AS3 native class. Isn't it? I didn't found it at the reference. How does it work? -- André Rodrigues Pena LOCUS www.locus.com.br Blog www.techbreak.org
[flexcoders] Re: DataGrid rendering
--- In flexcoders@yahoogroups.com, dontlament [EMAIL PROTECTED] wrote: I have a large dynamic datagrid with 4 dropdown filtering options to compare a large database of products. The design of the site and datagrid is calling for a lot of custom style. The issue I am having is there seems to be no mechanism to track when a datagrid has finished rendering, so I can hide it as the styles are applied, so I am getting a very ugly and clunky render of the datagrid. Has anyone had this issue before, or anyone have any suggestions on how to circumvent this problem? Anyone at all?
Re: [flexcoders] Re: Move from Flex Builder to command line/SDK -- how?
You can just drop the file on the mxmlc.exe icon.
Re: [flexcoders] Highlight and select all rows in datagrid by button.
This works for me: private function selectAll():void { var a:Array = [], i:Number; var num:Number = myDataProvider.length; for (i=0;inum;i++) a[i] = i; myDataGrid.selectedIndices = a; } Cheers, Adam - Original Message - From: ad9798 To: flexcoders@yahoogroups.com Sent: Sunday, February 11, 2007 11:14 AM Subject: [flexcoders] Highlight and select all rows in datagrid by button. I was able to select one row by doing myDataGrid.selectedIndex = 1; == index number of the row. However, I'm trying to create a button that select all rows in datagrid. I have tried following but no success.. private function selectAll() : void { for( var i:int = 0; i myDataProvider.length; i++ ){ myDataGrid.selectedIndices[i] = i; myDataGrid.selectedItems[i] = myDataProvider[i]; } } Any idea? any suggestion?
RE: [flexcoders] Command line to compile system (extracted from FlexBuilder?)
Hi Mike, Perhaps this will help you get started: http://livedocs.macromedia.com/flex/201/html/wwhelp/wwhimpl/common/html/ wwhelp.htm?context=LiveDocs_Book_Partsfile=apparch_116_14.html To automate with ant see below: http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks If you are running mxmlc and encountering problems please provide a more detailed description. Paul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Crowe Sent: Sunday, February 11, 2007 12:39 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Command line to compile system (extracted from FlexBuilder?) Hi folks, Is there a way to get the mxmlc command that FlexBuilder is executing somehow? I'm running low on resources, and want to compile from the command line. However, I can't seem to get a command line to work that produces a working .swf. Any way I can get it somehow? TIA Mike