[flexcoders] Re: how to get data from DataGrid
Thx Tracy. I've solved it using ArrayCollection. KC -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Launching App Without Toolbars, Address Bar, etc.
You do it with _javascript_. Something like the followingwindow.open('somepage.htm','somewindow','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=1,width=800,height=600'); On 9/7/06, jburkett7 [EMAIL PROTECTED] wrote: Hello Everyone Sounds interesting. Any ideas on how this can work? J --- In flexcoders@yahoogroups.com, Jack Caldwell [EMAIL PROTECTED] wrote: Hi, Looking at Adobe's JamJar example . . . . http://labs.adobe.com/technologies/jamjar/ Is there a way to launch an application into the browser(IE) from FlexBuilder where it loads in the IE browser without the toolbar, address bar, menus, etc. I understand you can load the application/swf from a web page via _javascript_ - window.open. But for testing, it would be much easier from FlexBuilder. Can it be done from FlexBuilder? If so, what changes need to be made? Thanks, Jack __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: Fw: WatcherSetupUtil issue
Thank you for reply. I described allready that I create flex-library (.swc) for every component and I get needed classes using ApplicationDomain.getDefinition(). So SystemManager doesn't know about these classes and doesn't initialize binding for them. I had conversation with Manish Jethani and we found the solution - I can analyze catalog.xml for every swc, find all *WatcherSetupUtils and initialize them when I'm loading the library. But can you give me the reason why binding initialization is performed in the frameEndHandler? It's hard dependency of components to generated code and my issue it's the one of many possible bugs that such dependency can involve. It's a kind of logic that has to be executed before first load of the component (in static constructor emulation). --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: It'd be for any MXML class that has binding in it. So there must be errors with how binding is initializing based on how your system is set up. Are you using the techniques for modules that Roger mentioned in his blog postings? Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of maxym.hryniv Sent: Wednesday, September 06, 2006 11:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Fw: WatcherSetupUtil issue Hey!! Flex framework developers. Can you give some information about *WatcherSetupUtil.as? I really want for what it's generated? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , maxym.hryniv mokus@ wrote: Any ideas??? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , maxym.hryniv mokus@ wrote: Hi, coders. I'm trying to create multimodule (multi swf) application. I'm using next approach: I create flex library for every component. In runtime main application loads needed library then gets needed component definition using ApplicationDomain.getDefinition(). I have next issue: some of components are not properly initialized and null pointer exception is thrown. For each of these components flex generates _{packageName}_{className}WatcherSetupUtil.as class. Other components work fine. I found some logic in SystemManager that can correct this: // trace(initializing mixin + mixinList[i]); var c:Class = Class(getDefinitionByName(mixinList[i])); c[init](this); If I add such logic for every class that has *WatcherSetupUtil.as generated, everything works fine. Of course I can try to initialize *WatcherSetupUtil for every class that I get from external ApplicationDomain, but if component has child component with *WatcherSetupUtil it will not work. Because I cannot proxy child creation in mxml component. So the question is: How i can determine classes with *WatcherSetupUtil.as generated in runtime?, and What the *** is WatcherSetupUtil? I cannot find any reference in help, livedocs, flexcoders, google.. Thanx in advance for any help, ideas. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Public getter, private setter?
Matt, what has made Adobe depart from what is standard behaviour in other languages. I'm having trouble understanding any reason for this than perhaps an implementation issue (ie, we would have preferred to support independent visibility but we preferred to get it out the door without delay, since this is a relatively minor issue). Paul - Original Message - From: Matt Chotin To: flexcoders@yahoogroups.com Sent: Friday, September 08, 2006 4:48 AM Subject: RE: [flexcoders] Public getter, private setter? Its intentional right now that a getter/setter pair must have a matching visibility modifier. You cant change whether a variable is visible to the compiler based on whether its being read or being written. While we understand the use-case (and debated it internally ourselves) this is the approach were taking right now. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael SchmalleSent: Thursday, September 07, 2006 7:41 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Public getter, private setter? Hi,Ironically, I just ran into this same issue the other day.I had a post I didn't finish yesterday and what you just wrote about Java style was what I was going to say I did. :)This is just a guess but, I would be willing to bet this is a Player bug. If you think about the error, it is the same error you would get if you hadpublic function get height():Numberandpublic var height:Number;... ambiguousSo, I would bet this will be working, right around the time they make private constructors. ;-) Peace, Mikeprivate var _loadedState:int = ConfigModelLocator.LOAD_STATE_UNLOADED;[Bindable(event="loadStateChanged")] public function get loadState():int{return _loadedState;}private function set loadState(state:int):void{_loadedState = state;this.dispatchEvent(new Event("loadStateChanged")); } On 9/7/06, thunderstumpgesatwork thunder.stumpges@gmail.com wrote: Just wondering why I can't declare a property getter as public, andthe property setter as protected or private?When I do so, I get "1000 Ambiguous reference to loadState"Any work-arounds? I want to have the setter so that I can raise theproperty change event when I set the state, but I'd rather not make itpublic.thanks.Thundersee code:private var _loadedState:int = ConfigModelLocator.LOAD_STATE_UNLOADED;[Bindable(event="loadStateChanged")] public function get loadState():int{return _loadedState;}private function set loadState(state:int):void{_loadedState = state;this.dispatchEvent(new Event("loadStateChanged")); } -- What goes up, does come down. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: Dynamic assign itemRenderer to DataGridColumn
you will need to do little bit more. try this var textbox:ClassFactory = new ClassFactory(TextInput); textbox.properties = { text:Write something here... }; columna.itemRenderer = textbox; columna.rendererIsEditor=true; etc or you could always put write something here... into a global variable; create a myTextInput component which assigns the global variable string during the intialize event . --- In flexcoders@yahoogroups.com, Daniel [EMAIL PROTECTED] wrote: Ok, I get your idea, however, what if I need a custome component to be placed in the itemrenderer, so I can dynamically assing it special feature? Lets say I want to set the text attribute to Write something here... when the component initializes. Thanks! --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: var aux:TextInput = new TextInput(); columna.itemRenderer = aux as IFactory; can you do this instead columna.itemRenderer = new ClassFactory(TextInput); --- In flexcoders@yahoogroups.com, Daniel danboh@ wrote: Hello! This time Im trying to assing an itemRenderer to a DataGridColumn using this: -- var columna:DataGridColumn = new DataGridColumn(); columna.headerText = something columna.dataField = something else columna.editable = true; columna.rendererIsEditor = true; var aux:TextInput = new TextInput(); columna.itemRenderer = aux as IFactory; columna.editorDataField=text; -- The above code doesnt work, although it doesnt present any errors. The reason why I need to do that this way is that I can dynamically change properties in the itemRenderer. Any Ideas Thanks! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Flash Quiz in Flex
Have you been able to solve this problem by modifying the file? -sam On 9/6/06, flexnewbie06 [EMAIL PROTECTED] wrote: thanks for your thoughts...it is just a simple flash 8 quiz it wasn't made with flex.--- In flexcoders@yahoogroups.com, Samuel Reuben [EMAIL PROTECTED] wrote: I'm just guessing - but I think the references to the varibles must be changing or something like that... when you load it up - if it was made in flash.. If it was made in Flex2.0, I'd like to see the code that you are using - for the flex quiz. Thanks, -sam On 9/6/06, flexnewbie06 [EMAIL PROTECTED] wrote: Just wondering if anyone has any insight on this. I load a simple flash quiz in the SWFLoader component in my Flex app and the QuizTrack seems to stop keeping score. When the quiz comes to the last frame, where it calculates total wrong, total correct and total score they are all 0's. Running outside of Flex, of course this works fine. Any ideas? Thank you in advance! Jenn __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Problems getting started with flashvars and Application.application.parameters
I'm trying to get started with passing paramaters to a flex project initially based on livedocs Using the Application.application.parameters object and Using flashVars as source the mxml for project applicationParameters is mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=initVars() mx:Script![CDATA[ // Declare bindable properties in Application scope. [Bindable] public var myName:String; [Bindable] public var myHometown:String; // Assign values to new properties. private function initVars():void { myName = Application.application.parameters.myName; myHometown = Application.application.parameters.myHometown; } ]]/mx:Script mx:VBox mx:HBox mx:Label text=Name: / mx:Label text={myName} fontWeight=bold/ /mx:HBox mx:HBox mx:Label text=Hometown: / mx:Label text={myHometown} fontWeight=bold/ /mx:HBox /mx:VBox /mx:Application and I have amended the html wrapper with hardcoded values thus: object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 id=applicationParamaters width=100% height=100% codebase=http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab; param name=movie value=applicationParamaters.swf / param name=quality value=high / param name=bgcolor value=#869ca7 / param name=allowScriptAccess value=sameDomain / param name=flashVars value=myName=NickmyHometown=London param name=src value=FlashVarsValues.mxml.swf embed src=applicationParamaters.swf quality=high bgcolor=#869ca7 width=100% height=100% name=applicationParamaters align=middle play=true loop=false quality=high allowScriptAccess=sameDomain type=application/x-shockwave-flash pluginspage=http://www.adobe.com/go/getflashplayer; flashVars=myName=NickmyHometown=London src=FlashVarsValues.mxml.swf /embed /object However when I open the html page in a browser the variables do not appear Where am I going wrong -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Dynamic Checkboxes
Personally, and I'm no expert, my first thought would be to look at using the checkBoxes as an itemRenderer in one of the List based components you would have their properties determined by the dataProvider for the List and when you make changes to the dataProvider the checkBoxes as itemRenderers would reflect that - I think ;-) Have a look at the use of the checkboxes in the Restaurant Finder example that comes with Flex 2.0 - I suspect it might have something to take you in a useful direction. Sorry I can't be more specific, I'm learning too! Phil jobforkomputerman wrote: I am running into a bit of a problem here and could use a nudge to get going again. My problem is that I have a list of Users in a left hand panel of a HBox canvas. In the right hand panel I want to have a bunch of Security Roles the User can be assigned to. I want the right hand panel to show all of the Security Roles that are available, in a listing of checkboxes, but not have any of the boxes checked until I select a User from the list in the left hand panel. When I select a User from the list I want to have a check mark placed in all the boxes that the User is currently associated to. I.E. I have 4 security roles (Sec_Role_1, Sec_Role_2, Sec_Role_3, and Sec_Role_4) and User_A is associated to Sec_Role_2 and Sec_Role_3. When I select User_A from the list in the left hand panel I want a check to appear in the checkbox for Sec_Role_2 and Sec_Role_3 but not Sec_Role_1 or Sec_Role_4. Then I want to be able to make changes to the Security Role to User association (I.E. remove the check from Sec_Role_2 and put a check on Sec_Role_1), hit a button, and save the results back to my database. My questions are as follows. First of all I am not really sure if I should try to place the checkboxes inside a repeater or inside of a data grid using a rendering of a component inside a data grid. The second problem I am having is the list of Security Roles is created by one query (because the number of Security Roles can change) and the association between Security Roles and Users is created by another query. How do I first create the checkboxes and then loop through the second query to check or uncheck the checkboxes? Or do I need to write my CFC so it returns all Security Roless for each User along with if there is an association between the two or not? Any ideas on how I would accomplish this??? I've seen plenty of examples on how you use checkboxes to have forms do things but I haven't seen an example where the checkbox is reflecting data already in a database! Thanks in advance for any help you can offer!!! Have an Ordinary Day... KomputerMan ~|:-) -- __ Phil Marston Technology Enhanced Learning Centre for Learning Teaching University of Aberdeen Aberdeen AB24 3QY Email: [EMAIL PROTECTED] Tel: +44(0)1224 273329 Mob: +44(0)7798 723660 Web: http://www.abdn.ac.uk/clt/ __ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] AS3 Project directory structure question
I hope I'm not stating the obvious here, but have you declared the namespace in the application tag? e.g. mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:myproject="com.mysite.projectname.*" / mx:HBox myproject:MyComponent / /mx:HBox /mx:Application HTH Phil Dr Van Nostrand wrote: I'm working on an AS3 project, using FB2. It's a library. I want to include a separate "demos" folder within the project. The demos would use the library, for testing as I write it, and later as examples for people who will use the library. I can't seem to figure out how to have my application classes in the demo folder properly access the source of my library. My directory structure is: myproject --demos --com mysite --projectname All my library source files are in "projectname". I can only seem to get demo/test classes to work when they are at the top level within the myproject directory. Basically I would like to import com.mysite.projectname.* into the various test and demo classes within the demo folder. TIA (I accidentally posted this without a subject -- this is a repost, sorry if it appears twice) -- __ Phil Marston Technology Enhanced Learning Centre for Learning Teaching University of Aberdeen Aberdeen AB24 3QY Email: [EMAIL PROTECTED] Tel: +44(0)1224 273329 Mob: +44(0)7798 723660 Web: http://www.abdn.ac.uk/clt/ __ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: Cairngorm... Where should this go?
Hi BjornThanks for taking the time to throw some code into the discussion. The solution I ended up implementing was similar to the one you suggest. In my case the validation was simple, the user either supplies a number of answers to a question that is between the minimum and maximum allowed or they don't. My point here is that the validation message to the user is more or less predefined.In a more complicated scenario, say a name and address form, it would appear the model would get messy. Just the name field might have required, min max length and [a-z][A-Z] validation rules. Which of these rules is broken and on what field would need to be passed back to the view if you say, wanted to display an instruction to the user or color the appropriate textfield. Having engaged in this discussion I think I have now come to a solution for scenarios like this that would maintain the intent of the MVC pattern.On the model you would maintain a collection of objects such as this: public class ValidationFailedInfo { private var _propertyName:String; private var _message:String;public function get propertyName():String { return _propertyName; }public function get message():String { return _message; }public function ValidationFailedInfo(message:String, propertyName:String) { _message = message; _propertyName = propertyName; } }That would be populated/cleared by a validate() function (not shown but it just applies your rules to the properties of the model). You would also have a method such as: public function GetValidationMessages(propertyName:String):Array { validate(); var messageArr:Array = new Array(); var currValInfo:ValidationFailedInfo = null; for(var x:int = 0; x_validationInfoList.length; x++) { curValInfo = ValidationFailedInfo(_validationInfoList[x]); if(currValInfo.propertyName == propertyName) { messageArr.push(currValInfo.message); } } return messageArr; }You could use this to determine whether each field is valid and if not why not. All of the validation rules would remain in the model as would the message strings that you return. If for example your application supports 10 languages, storing all of the language logic in the view would be a maintenance nightmare wheras this would allow all of that to stay in the model.Thanks for all of your contributions. Can I also take the opportunity to say that this is the most welcoming and active group that I have participated in... Keep it up Graham--- In flexcoders@yahoogroups.com, "Bjorn Schultheiss" [EMAIL PROTECTED] wrote: Gladly, simple example. // view mx:Button label="submit" enabled="{model.formValidated}" / // model data Object public function set username(value:String):void { _username = value; validateForm() } private function validateForm():void { if (_username != undefined) formValidated = true; } This is code i've just typed, but the principle remains the same. Data drives the view via dataBinding. There are alternatives to the way you would structure your models and views but the principle remains the same. Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies _From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of grahampengelly Sent: Friday, 8 September 2006 12:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cairngorm... Where should this go?Thanks all for the discussion... So it seems the consensus is the validation, from a pattern purist point of view should sit in the model. Someone suggested a model.isDataValid property... This gives us an indication but how should we be communicating back to the view which data it is that is invalid and what is it that is invalid about it? Should the model dispatch a data invalid event that the view acts upon or a checkValid function that returns the data required to act? I know this is very much academic, particularly as since posting originally, I have implemented my validation that works perfectly well. I would be interested to hear Bjorn how you get your validation information back out of the model to display it in the view. Cheers... Graham Blog http://goingspare.wordpress.com--- In flexcoders@yahoogroups.com, "Bjorn Schultheiss" bjorn.schultheiss@ wrote: I'm going to fly kick this thread quickly. Validation relates to model, quite simply. Regards,Bjorn Schultheiss Senior Flash Developer QDC Technologies _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lostinrecursion Sent: Friday, 8 September 2006 6:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cairngorm... Where should this go?Sorry but I have to interject on this. Intsrestingly enough I asked a similar question some days ago and did not receive a response from a design pettern perspective, but from a "what works" perspective. I am actually 85% of the tim all about what works, so not there is anything wrong with it. But, I would
[flexcoders] Macromedia Flex 2.0 Charts Explorer
Hi All, I found this link and for some strange reasons it dosent load any content in my system. Is it got something to do with the Browser settings? The link is as follows - http://weblogs.macromedia.com/flex_samples/charts_explorer/explorer.html Regards, Pramod -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] ComboBox Multiple Selection
Hi Daniel, The combo box was not designed to do what you are trying to do. I suggest that you use a PopUpButton with a list popped up and you can set the allowMultipleSelection=true for the list. You will have to handle what happens when you make a selection(because everytime you select an item in the list it will close the pop up). An idea would be to put the list in a HBox and when your condition is satisfied(probably after selecting the desired number of items) call the close() method of the popUpButton which will close it for you. A simple example would look like this (for this one to close you'll have to select blue then (Ctrl+red)): ?xml version=1.0?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=assets.* backgroundColor=#FF width=600 height=600 mx:Script![CDATA[import mx.events.*;private var selectList:Array=new Array();private function listenItemSelect(event:ListEvent):void{ti.text=String(event.target.selectedIndices); ti1.text=;for ( var i:Object in event.target.selectedIndices){ti1.text+=String(event.target.selectedItems[i].label)+ ;}if (String(event.target.selectedIndices)==2,1){ myPopUpButton.label=ti1.text;myPopUpButton.close();}}]]/mx:Scriptmx:Button id=myButton label=Roll over this button to close the popUp of the PopUpButton rollOver= myPopUpButton.close() / mx:PopUpButton id=myPopUpButton label={ti1.text} mx:popUpmx:HBox mx:List id=myList allowMultipleSelection=true itemClick=listenItemSelect(event) mx:dataProvidermx:Arraymx:Object label=Black /mx:Object label=Blue /mx:Object label=Red /mx:Object label=Yellow / /mx:Array/mx:dataProvider/mx:List/mx:HBox /mx:popUp /mx:PopUpButton mx:Spacer height=150 / mx:TextInput id=ti / mx:TextInput id=ti1 text=Let's say Black //mx:ApplicationHope this helps, -sam On 9/6/06, Daniel [EMAIL PROTECTED] wrote: Im trying to create a multiple-selection combobox. I'll appreciate any help you can give. Thanks in advance. Daniel __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: Problem with Sortable Draggable DataGrid
This issue has been logged into our bugbase. Will get back to you once we have a resolution on the same.ThanksHarishOn 9/8/06, Harris Reynolds [EMAIL PROTECTED] wrote: Here's another question... when I drag a row to a different spot in the datagrid... how can I figure out where in the grid it landed? I need to be able to have a user drag and drop rows to order the datagrid to their liking and then be able to get the current order of the rows. Is this possible? ~harris --- In flexcoders@yahoogroups.com, Harris Reynolds [EMAIL PROTECTED] wrote: Hi there. I am having a problem with a DataGrid that allows users to drag items in the control to new positions with the list. Dragging items works when the control is initially loaded, but stops working after a column header is clicked that sorts the items using the default mechanism. Is there a way to have dragging items to other positions within the grid still work after sorting on the columns? thanks, ~harris __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: IE Only: Error #2032 (Flex 2.0)
What exactly were the guilty headers? What headers did you replace them with? Thanx, -Vito --- In flexcoders@yahoogroups.com, dadrobson [EMAIL PROTECTED] wrote: RESOLVED! The issue had to do with HTTP cache control headers generated by the Spring framework. These headers got past Firefox without issue, but they caused trouble with IE. The middle tier developer extended the SimpleFormController class in Spring, overriding handleRequestInternal() to generate headers that the browsers would accept. -Jim --- In flexcoders@yahoogroups.com, dadrobson jim.robson@ wrote: I have a complete app that is currently working fine when loaded in Firefox. However, in IE, some (but not all) HTTPService requests return the following error: Error: [IOErrorEvent type=ioError bubbles=false cancelable=false evenPhase=2 text=Error #2032: Stream Error. URL: http://localhost/pw/modifyProject.xml;] URL: http://localhost/pw/modifyProject.xml As you can see from the URL, I'm just running it on my own development machine. All URLs point to Localhost, so there shouldn't be any need for a crossdomain.xml file. Why is this happening on IE but not Firefox? What could cause this error (besides the cross-domain policy issue)? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Timeline Slider
I'm trying to figure out how to make a custom slider... at least I think it's going to be a custom slider. What I want is a slider that allows me to select a time range based on a 24 hour clock. Here are the requirements: -Two thums on the slider(min, max) -Min value of 00:00:00 -Max value of 23:59:59 The desired behavior is that if you move the min thumb to the right, it will increment the min value based on a clock (base-60 I guess). Also, moving the max thumb to the left will decrement the max value accordingly. The end result will be a time range (i.e. used to select all occurances of event X that lasted from 5 minutes to 4 hours and 30 minutes). I haven't been able to find anything in the API that seems to scream Go in this direction, so I was hoping someone might be able to clue me in. Thanks, Geoff -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] [Charts] Lineseries property showDataEffect
Good morning, I have a problem with a Lineseries object because I don't know how affect the property showDataEffect. (I use Flex 2.0) Part of code : mychart.series = null; var line:LineSeries = new LineSeries(); line.xField=String(event.result.series.lineseries.xfield); line.yField=String(event.result.series.lineseries.yfield); line.displayName=String(event.result.series.lineseries.name); line.form = curve; mychart.series.push(line); I try line.showDataEffect but it's undefinied property. Adrien -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Flex + .NET Web Services irritations
John: You might want to also check out JSON + .NET + Flex. I've written a tiny little little tutorial to help get people started at: http://blog.shrefler.net/?p=5 Sam On 9/5/06, John C. Bland II [EMAIL PROTECTED] wrote: FLIPPIN' NAMESPACEI set the namespace and I'm rollin'! Now I can finish this app. :-) Thanks. On 9/5/06, John C. Bland II [EMAIL PROTECTED] wrote: Which code are you referring to seeing? I can't pass the WS code or url. As for the Flex code, it is based 100% off of the livedocs example but with our url's, etc. We don't use .NET datasets. We are returning VO's (classes) or Listclassname. This is .NET 2.0 so generics are used semi-heavily.Thanks. On 9/5/06, Tim Hoff [EMAIL PROTECTED] wrote: Hi John, Without seeing the code, the first error seems E4X related. I'm not sure if this will help you with the second error, but natively Flex doesn't accept .Net datasets without receiving this error. If that's the case, you can solve this by casting the dataset to a class that is returned by the webservice. Here's an ASP.Net webservice code sample: http://www.cflex.net/showFileDetails.cfm?ObjectID=418Object=FileChannelID=1 -TH --- In [EMAIL PROTECTED] ups.com, John C. Bland II [EMAIL PROTECTED] wrote: Flex seems to have problems hitting .NET web services. Specifically, it has problems handling method overloads and, for whatever reason, can't seem to work with working .NET WS's. I setup the operation, etc just as examples showed to make sure my own knowledge wasn't lacking and it still didn't work right. The errors are as follows (extracted from my Google searches the other day): * The Proxy class does not implement getDescendants. It must be overridden by a subclass. * [WSDLError faultString=Element :SiteProvider_GetBySiteID not resolvable faultCode=WSDL.BadElement faultDetail=null] The second one is odd because I KNOW the method is there AND that it works. I can hit the wsdl with another tool and it works perfectly fine. Any ideas? -- John C. Bland II Chief Developer Katapult Media, Inc. - www.katapultmedia.com --- Biz Blog - http://blogs.katapultmedia.com/jb2 Personal Blog - http://blog.blandfamilyonline.com http://www.lifthimhigh.com - Christian Products for Those Bold Enough to Wear Them Home of FMUG.az - http://www.gotoands top.org Home of AZCFUG - http://www.azcfug.org -- John C. Bland IIChief DeveloperKatapult Media, Inc. - www.katapultmedia.com ---Biz Blog - http://blogs.katapultmedia.com/jb2Personal Blog - http://blog.blandfamilyonline.comhttp://www.lifthimhigh.com - Christian Products for Those Bold Enough to Wear Them Home of FMUG.az - http://www.gotoandstop.orgHome of AZCFUG - http://www.azcfug.org -- John C. Bland IIChief DeveloperKatapult Media, Inc. - www.katapultmedia.com---Biz Blog - http://blogs.katapultmedia.com/jb2Personal Blog - http://blog.blandfamilyonline.com http://www.lifthimhigh.com - Christian Products for Those Bold Enough to Wear Them Home of FMUG.az - http://www.gotoandstop.orgHome of AZCFUG - http://www.azcfug.org __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Binding to static properties
Does anyone know if its possible to bind to static properties of a class? I can't seem to get this to work. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Sorting data grid that has paging.
In order for you to sort and still have paging, you will need to do the sort server-side. Everytime you click sort, you will need to disable the default client-side sorting, and send the sort request to the server. Paging is built into Flex Data Services (FDS), but it is not a real paging solution, since it still need to get all 10K entries from the database (for example), cache all of that server-side. The only benefit is the network traffic, so you don't have to shove 10K through the network to your clients, but maybe 100s as needed. Then again it might not worth it. For small dataset, client side is much faster and much easier. For super super large dataset, you will kill your server with all the caching. Best solution i think is using Matt Chotin's Large Data Sets paging solution. You can read it here http://weblogs.macromedia.com/mchotin/archives/2004/03/large_data_sets .cfm. I'm trying to get it to work with Flex 2. If anyone has a solution, it would be super kooo. Vu -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Embeding Font unicodeRange Bug?
I found this bug as well ...If you define a Unicode range in your flex-config file, it will work. e.g.. languages language-range langBasic Latin/lang rangeU+0020-U+002F,U+0030-U+0039,U+003A-U+0040,U+0041-U+005A,U+005B-U+0060,U+0061-U+007A,U+007B-U+007E/range /language-range language-range langJapanese Kana/lang rangeU+3000-U+303F,U+3041-U+309F,U+30A0-U+30FF,U+FF61-U+FF9F/range /language-range !-- contains basic latin as well -- language-range langJapanese Kanji - Level 1/lang
Re: [flexcoders] Array Serialization .NET Web Service
Graham: Have you looked into JSON? It will take care of the serialization/deserialization for you. I've posted a tutorial that could help you get started Hope it helps http://blog.shrefler.net/ Sam On 9/7/06, grahampengelly [EMAIL PROTECTED] wrote: HiI have a .NET web service I am calling from Flex. One of the methods expects an object described in the following extract from the WSDL:s:complexType name=UserAnswers s:sequence s:element minOccurs=1 maxOccurs=1 name=UserId type=s:int/ s:element minOccurs=1 maxOccurs=1 name=ModuleId type=s:int/ s:element minOccurs=0 maxOccurs=1 name=ResponseIds type=tns:ArrayOfInt/ s:element minOccurs=0 maxOccurs=1 name=AuthenticationGuid type=s:string/ /s:sequence/s:complexType s:complexType name=ArrayOfInt s:sequence s:element minOccurs=0 maxOccurs=unbounded name=int type=s:int/ /s:sequence/s:complexTypeI am having trouble getting the array ResponseIds array to serialize properly from Flex. The test aspx page shows it like this in the request example: ResponseIds intint/int int int/int/ResponseIds...but when I examine the request sent from flex it is serializing the array like this: ns0:ResponseIds ns0:int22,24,28,30,32/ns0:int /ns0:ResponseIds...and obviously that isn't working. Is there any way I can affect the array serialization? I have examined as many posts on this topic as I can but can't seem to find an answer other than send xml instead of an object which I don't really want to do if I can help it. Thanks in advanceGraham __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] movable object?
do anyone got a good source on how to make objects movable under runtime? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Pre-compiled applications unable to access FDS based message queues
I'm having a similar problem, but in my case the path to services-config.xml is set. The app works fine with the web-tier compiler, but when I pre-compile it, I get the error pasted below. There is one line in the error message (below) that caught my eye. It's the message broker URI: http://localhost/messagebroker/amfpolling; Shouldn't the path to FDS be in there? I.E., http://localhost/path_to_FDS/messagebroker/amfpolling? If so, does anyone know how to set this? Is there a compiler argument for it? I haven't had any success locating this in the docs. ** Begin Error Message ** Client.Error.MessageSend Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed Send failed (mx.messaging.messages::ErrorMessage)#0 body = (Object)#1 clientId = (null) correlationId = C737E92B-DCA1-43B6-E259-8D6BE56F200C destination = extendedData = (null) faultCode = Client.Error.MessageSend faultDetail = Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed faultString = Send failed headers = (Object)#2 messageId = 8F8D3BE9-B6D2-6436-2DFE-8D6BE58E9CBA rootCause = (Object)#3 code = NetConnection.Call.Failed description = HTTP: Failed details = http://localhost/messagebroker/amfpolling; level = error timestamp = 0 timeToLive = 0 ** End Error Message ** --- In flexcoders@yahoogroups.com, Brian Dunphy [EMAIL PROTECTED] wrote: Think I just figured it out -- you need to add a -compiler.servicespath_to_services- config.xml to that line and it picks it up. Thanks for your help though! Much appreciated. Brian -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Array Serialization .NET Web Service
Hi Graham, While I've not experienced this exact problem, I did have a couple of issues very very similar to it, involving serializing an AS array into repeated nodes in the SOAP call. Adobe's support team has confirmed that the 3 issues I've run into are in fact bugs, and engineering is working on fixes. They said that the issues will hopefully be addressed with a hotfix in the coming weeks, and at the latest they'll be in the first maintenance release for Flex 2. Unfortunately, I believe constructing your arguments objects in XML is the only workaround (assuming your issue is a bug, which it sounds like it is). However, I found converting my code to this method was fairly painless. Make sure you check out the section on constructing XML in the docs. Ben --- In flexcoders@yahoogroups.com, grahampengelly [EMAIL PROTECTED] wrote: Hi I have a .NET web service I am calling from Flex. One of the methods expects an object described in the following extract from the WSDL: s:complexType name=UserAnswers s:sequence s:element minOccurs=1 maxOccurs=1 name=UserId type=s:int/ s:element minOccurs=1 maxOccurs=1 name=ModuleId type=s:int/ s:element minOccurs=0 maxOccurs=1 name=ResponseIds type=tns:ArrayOfInt/ s:element minOccurs=0 maxOccurs=1 name=AuthenticationGuid type=s:string/ /s:sequence /s:complexType s:complexType name=ArrayOfInt s:sequence s:element minOccurs=0 maxOccurs=unbounded name=int type=s:int/ /s:sequence /s:complexType I am having trouble getting the array ResponseIds array to serialize properly from Flex. The test aspx page shows it like this in the request example: ResponseIds intint/int intint/int /ResponseIds ...but when I examine the request sent from flex it is serializing the array like this: ns0:ResponseIds ns0:int22,24,28,30,32/ns0:int /ns0:ResponseIds ...and obviously that isn't working. Is there any way I can affect the array serialization? I have examined as many posts on this topic as I can but can't seem to find an answer other than send xml instead of an object which I don't really want to do if I can help it. Thanks in advance Graham -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Launching App Without Toolbars, Address Bar, etc.
Nick: I thought it could be done with javascript, but what I really wanted to know was how or if it could done from FlexBuilder. Can it? Thanks, J --- In flexcoders@yahoogroups.com, Nick Collins [EMAIL PROTECTED] wrote: You do it with javascript. Something like the following window.open('somepage.htm','somewindow', 'toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=1,w idth=800,height=600'); On 9/7/06, jburkett7 [EMAIL PROTECTED] wrote: Hello Everyone Sounds interesting. Any ideas on how this can work? J --- In flexcoders@yahoogroups.com flexcoders% 40yahoogroups.com, Jack Caldwell jwcaldwell@ wrote: Hi, Looking at Adobe's JamJar example . . . . http://labs.adobe.com/technologies/jamjar/ Is there a way to launch an application into the browser(IE) from FlexBuilder where it loads in the IE browser without the toolbar, address bar, menus, etc. I understand you can load the application/swf from a web page via javascript - window.open. But for testing, it would be much easier from FlexBuilder. Can it be done from FlexBuilder? If so, what changes need to be made? Thanks, Jack -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Newbie
Your first post to the list is moderated; then once you have posted once, your posts should go straight through - it's a simple anti-spam measure. However, for some reason some people's mail clients don't allow Yahoo! to recognise them the 2nd, 3rd, etc time they post -- so every post "appears" as their first post, and so all posts are moderated. When the (several) moderators spot this pattern, we'll go into admin panel and change you to unmoderated. If you think you're being moderated, just let us know and we'll fix your settings for you. Best, Steven Steven WebsterPractice Leader (Rich Internet Applications and LiveCycle)Adobe ConsultingWestpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 6108 m: +44 (0)7917 428 947[EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jburkett7Sent: 08 September 2006 04:51To: flexcoders@yahoogroups.comSubject: [flexcoders] Newbie Hello All,Just joined today.I went back and read posts over the past month or so.Question? Is there a "pecking order" as to whether a question is answered and how long it takes for a post to show up? I was interested in comments on a previous post, but have not seen any responses. I read where some people have had problems with posts not showing up or taking hours/days to do so. Also in some cases questions had not been answered. I realize everyone is busy, but I do not want to "offend" the powers that be when I have to ask a question.So, are these issues from other flexcoders a fluke or did I miss something?J __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: Array Serialization .NET Web Service
Thanks Ben SamI read the thread with the problems that you had Ben and wandered if mine was part of the same set of bugs. I have also now read your blog post Sam on the JSON set up which looks interesting. I'll have a further noodle and apply one of your suggestions.I use web services quite frequently but am not a SOAP expert. Is the way arrays are serialized part of the SOAP spec or is it something that is specified within the service contract I wonder... Either way, I'll get it working for now and see what gives with the next service release...Thanks againGrahamBLOG--- In flexcoders@yahoogroups.com, "ben.clinkinbeard" [EMAIL PROTECTED] wrote: Hi Graham, While I've not experienced this exact problem, I did have a couple of issues very very similar to it, involving serializing an AS array into repeated nodes in the SOAP call. Adobe's support team has confirmed that the 3 issues I've run into are in fact bugs, and engineering is working on fixes. They said that the issues will hopefully be addressed with a hotfix in the coming weeks, and at the latest they'll be in the first maintenance release for Flex 2. Unfortunately, I believe constructing your arguments objects in XML is the only workaround (assuming your issue is a bug, which it sounds like it is). However, I found converting my code to this method was fairly painless. Make sure you check out the section on constructing XML in the docs. Ben --- In flexcoders@yahoogroups.com, "grahampengelly" graham@ wrote: HiI have a .NET web service I am calling from Flex. One of the methods expects an object described in the following extract from the WSDL:s:complexType name="UserAnswers" s:sequence s:element minOccurs="1" maxOccurs="1" name="UserId" type="s:int"/ s:element minOccurs="1" maxOccurs="1" name="ModuleId" type="s:int"/ s:element minOccurs="0" maxOccurs="1" name="ResponseIds" type="tns:ArrayOfInt"/ s:element minOccurs="0" maxOccurs="1" name="AuthenticationGuid" type="s:string"/ /s:sequence /s:complexType s:complexType name="ArrayOfInt" s:sequence s:element minOccurs="0" maxOccurs="unbounded" name="int" type="s:int"/ /s:sequence /s:complexTypeI am having trouble getting the array ResponseIds array to serialize properly from Flex. The test aspx page shows it like this in the request example: ResponseIds intint/int intint/int /ResponseIds...but when I examine the request sent from flex it is serializing the array like this:ns0:ResponseIds ns0:int22,24,28,30,32/ns0:int /ns0:ResponseIds...and obviously that isn't working. Is there any way I can affect the array serialization? I have examined as many posts on this topic as I can but can't seem to find an answer other than send xml instead of an object which I don't really want to do if I can help it.Thanks in advanceGraham __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Public getter, private setter?
Hey Paul, I can't speak for Adobe, but in many other languages, accessors/mutators are simply conventions, not actual language constructs. Java, for example, has no understanding that a method is an accessor. It is merely a "bean" convention that getFoo/setFoo are getters and settors for Foo. So in many languages there is infinite freedom, but less language support. .NET, by contrast, is probably what you are comparing to with it's properties and property accessors. It might be useful to compare languages from a "desirability" standpoint, but it's often not helpful because languages are implemented differently, and each has its own implementation challenges. It's hard to say why Adobe went this way, but if accessors are more carefully managed by the language, it may be a much easier implementation to pair their access levels. regards, Christian. Paul Andrews wrote: Matt, what has made Adobe depart from what is standard behaviour in other languages. I'm having trouble understanding any reason for this than perhaps an implementation issue (ie, we would have preferred to support independent visibility but we preferred to get it out the door without delay, since this is a relatively minor issue). Paul - Original Message - From: Matt Chotin To: [EMAIL PROTECTED]ups.com Sent: Friday, September 08, 2006 4:48 AM Subject: RE: [flexcoders] Public getter, private setter? It’s intentional right now that a getter/setter pair must have a matching visibility modifier. You can’t change whether a variable is visible to the compiler based on whether it’s being read or being written. While we understand the use-case (and debated it internally ourselves) this is the approach we’re taking right now. -- christian gruber + process coach and architect Israfil Consulting Services Corporation email [EMAIL PROTECTED] + bus 905.640.1119 + mob 416.998.6023 __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Newbie
Possibly a fluky perspective - there are over 4000 members I think - I see over 100 messages a day so the list is very busy and things get missed or even forgotten. Also sometimes things just seem to get ignored when it's clear that someone hasn't even bothered to read the most basic documentation - there are about 5 or 7 pdfs of docs that come with Flex - while you couldn't be expected to know the 1000's of pages they amount to - it's worth looking at them for answers to your questions before coming to the list - I didn't even know they existed for ages! You can download them from here http://www.flex.org/ (on the left) and they are very good for a change. HTH Phil jburkett7 wrote: Hello All, Just joined today. I went back and read posts over the past month or so. Question? Is there a "pecking order" as to whether a question is answered and how long it takes for a post to show up? I was interested in comments on a previous post, but have not seen any responses. I read where some people have had problems with posts not showing up or taking hours/days to do so. Also in some cases questions had not been answered. I realize everyone is busy, but I do not want to "offend" the powers that be when I have to ask a question. So, are these issues from other flexcoders a fluke or did I miss something? J -- __ Phil Marston Technology Enhanced Learning Centre for Learning Teaching University of Aberdeen Aberdeen AB24 3QY Email: [EMAIL PROTECTED] Tel: +44(0)1224 273329 Mob: +44(0)7798 723660 Web: http://www.abdn.ac.uk/clt/ __ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: Dynamic assign itemRenderer to DataGridColumn
That was really helpful! I thank you for that. However, when I do this: - var dataprovider:Array = [{label:algoA1,data:algoA1},{label:algoB1,data:algoB1}]; columna.rendererIsEditor = true; var combo:ClassFactory = new ClassFactory(ComboBox); combo.properties = {dataProvider:dataprovider} columna.itemRenderer = combo; columna.editorDataField=selectedItem; -- For some reason the selectedItem attribute in the ComboBox doesn't work as editorDataField. This means that when de data is loaded, no value is selected according to the value of the dataProvider. Any ideas? Thanks! --- In flexcoders@yahoogroups.com, bhaq1972 [EMAIL PROTECTED] wrote: you will need to do little bit more. try this var textbox:ClassFactory = new ClassFactory(TextInput); textbox.properties = { text:Write something here... }; columna.itemRenderer = textbox; columna.rendererIsEditor=true; etc or you could always put write something here... into a global variable; create a myTextInput component which assigns the global variable string during the intialize event . --- In flexcoders@yahoogroups.com, Daniel danboh@ wrote: Ok, I get your idea, however, what if I need a custome component to be placed in the itemrenderer, so I can dynamically assing it special feature? Lets say I want to set the text attribute to Write something here... when the component initializes. Thanks! --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: var aux:TextInput = new TextInput(); columna.itemRenderer = aux as IFactory; can you do this instead columna.itemRenderer = new ClassFactory(TextInput); --- In flexcoders@yahoogroups.com, Daniel danboh@ wrote: Hello! This time Im trying to assing an itemRenderer to a DataGridColumn using this: -- var columna:DataGridColumn = new DataGridColumn(); columna.headerText = something columna.dataField = something else columna.editable = true; columna.rendererIsEditor = true; var aux:TextInput = new TextInput(); columna.itemRenderer = aux as IFactory; columna.editorDataField=text; -- The above code doesnt work, although it doesnt present any errors. The reason why I need to do that this way is that I can dynamically change properties in the itemRenderer. Any Ideas Thanks! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] File Download: Can scriptTimeLimit only be set globally?
Hi Michael, I’m not sure I follow …any chance you could provide some additional detail? I was thinking of trying a setInterval function while the client awaits download …not sure yet if that would fool the player into thinking its not hung. Stace From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle Sent: Thursday, September 07, 2006 10:04 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] File Download: Can scriptTimeLimit only be set globally? Hi, There is a work around with using the timer in a queue to give back cpu cycles to the cpu and trick the flash player that it is not locking up. I have a documenter that can easily do the flex framework, that takes 5 minutes from loading files, analyzing and rendering to server. Nothing locks up and you can actually move the cursor and semi use the app while it's doing it. Peace, Mike On 9/7/06, Stacy Young stacy.young@optimalpayments.com wrote: 60 seconds ??? Uh oh …I missed that, thanks for heads up. Stace AVIS IMPORTANT WARNING Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L’expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s’il est retransmis sans son autorisation. Si vous n’êtes pas le destinataire visé du présent message ou si vous l’avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l’expéditeur. This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] SOS! Fatal FDS Error!!!
Hey everyone, The production team at my work is flipping out at the fact that my FDS application keeps losing data. The application allows insertation of keywords and ads into a datagrid. In testing, we usually go in, test adding stuff, refresh, and check to see if the data's still there. This hasn't failed us yet. Once the application is used by the production team, they sit for hours with the application and intermitently add keywords and ads. The problem is randomly they'll find out that none of their information has saved (they're all equipped with the Flash Debugger Player, btw). They're getting pissed off and needing to take screenshots of their work just in case. I have a feeling it has to do with leaving the app open for so long, but that's just a hunch. PLEASE does anyone have any suggestions? We're using FDS with Hibernate, C3P0 for connection pooling, and EhCache for caching (we have a list of 500 or so clients thats loaded each time someone logs in). Two destinations - client list and keyword/ad. I hate knowing that data is being lost, and it's really causing my job performance to suffer. Should I look into transactions with JMX or something, due to all the keywords being added and subtracted from the database? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Dynamic assign itemRenderer to DataGridColumn
Not surecan you create a little test app, to demonstrate the problem (doesnt have to be a dynamically created datagridcolumn). are you saying the combobox renderer should be set to the datagrid's dataprovider? if that the case, one solution might be to create your own myComboBox (extending a ComboBox) and you override the data setter function. ...or someone else might have a better idea. regards bod --- In flexcoders@yahoogroups.com, Daniel [EMAIL PROTECTED] wrote: That was really helpful! I thank you for that. However, when I do this: - var dataprovider:Array = [{label:algoA1,data:algoA1},{label:algoB1,data:algoB1}]; columna.rendererIsEditor = true; var combo:ClassFactory = new ClassFactory(ComboBox); combo.properties = {dataProvider:dataprovider} columna.itemRenderer = combo; columna.editorDataField=selectedItem; -- For some reason the selectedItem attribute in the ComboBox doesn't work as editorDataField. This means that when de data is loaded, no value is selected according to the value of the dataProvider. Any ideas? Thanks! --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: you will need to do little bit more. try this var textbox:ClassFactory = new ClassFactory(TextInput); textbox.properties = { text:Write something here... }; columna.itemRenderer = textbox; columna.rendererIsEditor=true; etc or you could always put write something here... into a global variable; create a myTextInput component which assigns the global variable string during the intialize event . --- In flexcoders@yahoogroups.com, Daniel danboh@ wrote: Ok, I get your idea, however, what if I need a custome component to be placed in the itemrenderer, so I can dynamically assing it special feature? Lets say I want to set the text attribute to Write something here... when the component initializes. Thanks! --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: var aux:TextInput = new TextInput(); columna.itemRenderer = aux as IFactory; can you do this instead columna.itemRenderer = new ClassFactory(TextInput); --- In flexcoders@yahoogroups.com, Daniel danboh@ wrote: Hello! This time Im trying to assing an itemRenderer to a DataGridColumn using this: -- var columna:DataGridColumn = new DataGridColumn(); columna.headerText = something columna.dataField = something else columna.editable = true; columna.rendererIsEditor = true; var aux:TextInput = new TextInput(); columna.itemRenderer = aux as IFactory; columna.editorDataField=text; -- The above code doesnt work, although it doesnt present any errors. The reason why I need to do that this way is that I can dynamically change properties in the itemRenderer. Any Ideas Thanks! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Pre-compiled applications unable to access FDS based message queues
You need to provide mxmlc with the context root for the FDS application -compiler.context-root context-path Ie. compiler.context-root /flex Then you should see the correct path for the message broker endpoint in the console output. regards, peter From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of dadrobson Sent: Friday, September 08, 2006 9:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Pre-compiled applications unable to access FDS based message queues I'm having a similar problem, but in my case the path to services-config.xml is set. The app works fine with the web-tier compiler, but when I pre-compile it, I get the error pasted below. There is one line in the error message (below) that caught my eye. It's the message broker URI: http://localhost/messagebroker/amfpolling Shouldn't the path to FDS be in there? I.E., http://localhost/path_to_FDS/messagebroker/amfpolling? If so, does anyone know how to set this? Is there a compiler argument for it? I haven't had any success locating this in the docs. ** Begin Error Message ** Client.Error.MessageSend Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed Send failed (mx.messaging.messages::ErrorMessage)#0 body = (Object)#1 clientId = (null) correlationId = C737E92B-DCA1-43B6-E259-8D6BE56F200C destination = extendedData = (null) faultCode = Client.Error.MessageSend faultDetail = Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed faultString = Send failed headers = (Object)#2 messageId = 8F8D3BE9-B6D2-6436-2DFE-8D6BE58E9CBA rootCause = (Object)#3 code = NetConnection.Call.Failed description = HTTP: Failed details = http://localhost/messagebroker/amfpolling level = error timestamp = 0 timeToLive = 0 ** End Error Message ** --- In [EMAIL PROTECTED]ups.com, Brian Dunphy briandunphy@... wrote: Think I just figured it out -- you need to add a -compiler.servicespath_to_services- config.xml to that line and it picks it up. Thanks for your help though! Much appreciated. Brian __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] File Download: Can scriptTimeLimit only be set globally?
Ok,Before I go into detail, I use it for actual procssesing in the player.I am a bit confused on what you would use the setInterval() for.How about you just describe what exactly your program flow is so I can see if what I am saying applies to your situation. Peace, MikeOn 9/8/06, Stacy Young [EMAIL PROTECTED] wrote: Hi Michael, I'm not sure I follow …any chance you could provide some additional detail? I was thinking of trying a setInterval function while the client awaits download …not sure yet if that would fool the player into thinking its not hung. Stace From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of Michael Schmalle Sent: Thursday, September 07, 2006 10:04 PM To: [EMAIL PROTECTED]ups.com Subject: Re: [flexcoders] File Download: Can scriptTimeLimit only be set globally? Hi, There is a work around with using the timer in a queue to give back cpu cycles to the cpu and trick the flash player that it is not locking up. I have a documenter that can easily do the flex framework, that takes 5 minutes from loading files, analyzing and rendering to server. Nothing locks up and you can actually move the cursor and semi use the app while it's doing it. Peace, Mike On 9/7/06, Stacy Young [EMAIL PROTECTED] wrote: 60 seconds ??? Uh oh …I missed that, thanks for heads up. Stace AVIS IMPORTANT WARNING Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur. This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. -- What goes up, does come down. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] synchronization between server and client classes
Hello everyone, I am a Java/Php programmer and relatively new to flex. I have played around actionscript classes and event handling. I wonder if there is a way to avoid mannual data synchronization between server side beans and action script beans. I feel this is double work and should be avoided by some means to make the technology easily adaptable. Any comments? Best regards, Rahul -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] File Download: Can scriptTimeLimit only be set globally?
I’m using FileReference to initiate a file download from a servlet. Server-side in some cases may take 15+ mins to construct the file/report After a certain amount of secs (I think 30) flash player throws an exception that a script timeout has occurred Process is terminated -Stace From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle Sent: Friday, September 08, 2006 10:48 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] File Download: Can scriptTimeLimit only be set globally? Ok, Before I go into detail, I use it for actual procssesing in the player. I am a bit confused on what you would use the setInterval() for. How about you just describe what exactly your program flow is so I can see if what I am saying applies to your situation. Peace, Mike On 9/8/06, Stacy Young stacy.young@optimalpayments.com wrote: Hi Michael, I'm not sure I follow …any chance you could provide some additional detail? I was thinking of trying a setInterval function while the client awaits download …not sure yet if that would fool the player into thinking its not hung. Stace AVIS IMPORTANT WARNING Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L’expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s’il est retransmis sans son autorisation. Si vous n’êtes pas le destinataire visé du présent message ou si vous l’avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l’expéditeur. This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: Pre-compiled applications unable to access FDS based message queues
As somebody already pointed out, you need to use --compiler.services path_to_services-config.xml during compilation.-Metedadrobson [EMAIL PROTECTED] wrote: I'm having a similar problem, but in my case the path to services-config.xml is set. The app works fine with the web-tier compiler, but when I pre-compile it, I get the error pasted below. There is one line in the error message (below) that caught my eye. It's the message broker URI: "http://localhost/messagebroker/amfpolling" Shouldn't the path to FDS be in there? I.E., "http://localhost/path_to_FDS/messagebroker/amfpolling"? If so, does anyone know how to set this? Is there a compiler argument for it? I haven't had any success locating this in the docs. ** Begin Error Message ** Client.Error.MessageSend Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed Send failed (mx.messaging.messages::ErrorMessage)#0 body = (Object)#1 clientId = (null) correlationId = "C737E92B-DCA1-43B6-E259-8D6BE56F200C" destination = "" extendedData = (null) faultCode = "Client.Error.MessageSend" faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed" faultString = "Send failed" headers = (Object)#2 messageId = "8F8D3BE9-B6D2-6436-2DFE-8D6BE58E9CBA" rootCause = (Object)#3 code = "NetConnection.Call.Failed" description = "HTTP: Failed" details = "http://localhost/messagebroker/amfpolling" level = "error" timestamp = 0 timeToLive = 0 ** End Error Message ** --- In [EMAIL PROTECTED]ups.com, "Brian Dunphy" briandunphy@... wrote: Think I just figured it out -- you need to add a -compiler.servicespath_to_services- config.xml to that line and it picks it up.Thanks for your help though! Much appreciated.Brian All-new Yahoo! Mail - Fire up a more powerful email and get things done faster. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: Launching App Without Toolbars, Address Bar, etc.
I don't think FlexBuilder does it by default. But I am sure you can extend FlexBuilder by having some custom html templates...-abdulOn 9/8/06, jburkett7 [EMAIL PROTECTED] wrote: Nick: I thought it could be done with _javascript_, but what I really wanted to know was how or if it could done from FlexBuilder. Can it? Thanks, J --- In flexcoders@yahoogroups.com, Nick Collins [EMAIL PROTECTED] wrote: You do it with _javascript_. Something like the following window.open('somepage.htm','somewindow', 'toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=1,w idth=800,height=600'); On 9/7/06, jburkett7 [EMAIL PROTECTED] wrote: Hello Everyone Sounds interesting. Any ideas on how this can work? J --- In flexcoders@yahoogroups.com flexcoders% 40yahoogroups.com, Jack Caldwell jwcaldwell@ wrote: Hi, Looking at Adobe's JamJar example . . . . http://labs.adobe.com/technologies/jamjar/ Is there a way to launch an application into the browser(IE) from FlexBuilder where it loads in the IE browser without the toolbar, address bar, menus, etc. I understand you can load the application/swf from a web page via _javascript_ - window.open. But for testing, it would be much easier from FlexBuilder. Can it be done from FlexBuilder? If so, what changes need to be made? Thanks, Jack __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] movable object?
What you mean movable? Translation of sprites (visual objects)..You can move objects in absolute layout containers f.ex Canvas..Each visual object have x, y properties and you can change it to translate it to new position. You can use timer or enterFrame event to update the position of objects..If you are trying to achive some effects, I would suggest looking at effect classes in Flex 2. You might achieve things withoutwriting something from scratch.. -abdulOn 9/8/06, Thor [EMAIL PROTECTED] wrote: do anyone got a good source on how to make objects movable under runtime? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] File Download: Can scriptTimeLimit only be set globally?
Ah, I see, so you are waiting for a result handler right?Well, I don't think this would help becasue I was using proccessing in the player, like cutting loops into sectors.What exact part of the app is hanging Flash?, I am playing dumb here, is it the result handler? Peace, MikeOn 9/8/06, Stacy Young [EMAIL PROTECTED] wrote: I'm using FileReference to initiate a file download from a servlet. Server-side in some cases may take 15+ mins to construct the file/report After a certain amount of secs (I think 30) flash player throws an exception that a script timeout has occurred Process is terminated -Stace From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of Michael Schmalle Sent: Friday, September 08, 2006 10:48 AM To: [EMAIL PROTECTED]ups.com Subject: Re: [flexcoders] File Download: Can scriptTimeLimit only be set globally? Ok, Before I go into detail, I use it for actual procssesing in the player. I am a bit confused on what you would use the setInterval() for. How about you just describe what exactly your program flow is so I can see if what I am saying applies to your situation. Peace, Mike On 9/8/06, Stacy Young [EMAIL PROTECTED] wrote: Hi Michael, I'm not sure I follow …any chance you could provide some additional detail? I was thinking of trying a setInterval function while the client awaits download …not sure yet if that would fool the player into thinking its not hung. Stace AVIS IMPORTANT WARNING Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur. This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. -- What goes up, does come down. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: Pre-compiled applications unable to access FDS based message queues
Mete: As I noted in the first line of my post, I *did* set the path to services-config.xml. But the issue persists. Any other thoughts? Jim --- In flexcoders@yahoogroups.com, Mete Atamel [EMAIL PROTECTED] wrote: As somebody already pointed out, you need to use --compiler.services path_to_services-config.xml during compilation. -Mete dadrobson [EMAIL PROTECTED] wrote: I'm having a similar problem, but in my case the path to services-config.xml is set. The app works fine with the web-tier compiler, but when I pre-compile it, I get the error pasted below. There is one line in the error message (below) that caught my eye. It's the message broker URI: http://localhost/messagebroker/amfpolling; Shouldn't the path to FDS be in there? I.E., http://localhost/path_to_FDS/messagebroker/amfpolling? If so, does anyone know how to set this? Is there a compiler argument for it? I haven't had any success locating this in the docs. ** Begin Error Message ** Client.Error.MessageSend Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed Send failed (mx.messaging.messages::ErrorMessage)#0 body = (Object)#1 clientId = (null) correlationId = C737E92B-DCA1-43B6-E259-8D6BE56F200C destination = extendedData = (null) faultCode = Client.Error.MessageSend faultDetail = Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed faultString = Send failed headers = (Object)#2 messageId = 8F8D3BE9-B6D2-6436-2DFE-8D6BE58E9CBA rootCause = (Object)#3 code = NetConnection.Call.Failed description = HTTP: Failed details = http://localhost/messagebroker/amfpolling; level = error timestamp = 0 timeToLive = 0 ** End Error Message ** --- In flexcoders@yahoogroups.com, Brian Dunphy briandunphy@ wrote: Think I just figured it out -- you need to add a -compiler.servicespath_to_services- config.xml to that line and it picks it up. Thanks for your help though! Much appreciated. Brian - All-new Yahoo! Mail - Fire up a more powerful email and get things done faster. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] ControlBar
Hello all, is there a way to create a controlBar in a script and assign it to a Panel?? i´ve tryed the following with not success: mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; initialize=init (); layout=vertical width=100% height=100% mx:Script ![CDATA[ import mx.controls.Button; import mx.containers.HBox; import mx.containers.ControlBar; private function init():void { var btnSave:Button = new Button(); var cntrl:ControlBar = new ControlBar(); cntrl.addChild(btnSave); this.controlBar = cntrl; } ]] /mx:Script /mx:Panel -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Has anyone tried using a custom Component for a headerRender
Instead of extending mx:Label I would like to extend something like mx:Grid. My goal is to dynamically change the text value/values by using a grid's spacing capabilities while keeping a single column in the parent DataGrid. Rodney -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] File Download: Can scriptTimeLimit only be set globally?
To be honest at the moment I’m not sure what caused the script timeout exception …my last test actually worked (5 min download) Going to experiment some more and see if this was user error ;-) I appreciate the help! Stace From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle Sent: Friday, September 08, 2006 11:26 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] File Download: Can scriptTimeLimit only be set globally? Ah, I see, so you are waiting for a result handler right? Well, I don't think this would help becasue I was using proccessing in the player, like cutting loops into sectors. What exact part of the app is hanging Flash?, I am playing dumb here, is it the result handler? Peace, Mike On 9/8/06, Stacy Young stacy.young@optimalpayments.com wrote: I'm using FileReference to initiate a file download from a servlet. Server-side in some cases may take 15+ mins to construct the file/report After a certain amount of secs (I think 30) flash player throws an exception that a script timeout has occurred Process is terminated -Stace From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of Michael Schmalle Sent: Friday, September 08, 2006 10:48 AM To: [EMAIL PROTECTED]ups.com Subject: Re: [flexcoders] File Download: Can scriptTimeLimit only be set globally? Ok, Before I go into detail, I use it for actual procssesing in the player. I am a bit confused on what you would use the setInterval() for. How about you just describe what exactly your program flow is so I can see if what I am saying applies to your situation. Peace, Mike On 9/8/06, Stacy Young stacy.young@optimalpayments.com wrote: Hi Michael, I'm not sure I follow …any chance you could provide some additional detail? I was thinking of trying a setInterval function while the client awaits download …not sure yet if that would fool the player into thinking its not hung. Stace AVIS IMPORTANT WARNING Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur. This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. -- What goes up, does come down. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Why is import mandatory?
Ok, that explains. Its a pity though, especially if you want to do code generation. Thanks, Franck From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Thursday, September 07, 2006 10:42 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Why is import mandatory? I cant say why, but import IS mandatory, per the docs (migration pdf?), and the fully qualified path should only be used for disambiguation. Tracy From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Franck de Bruijn Sent: Thursday, September 07, 2006 3:27 PM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] Why is import mandatory? Hi, Just a small actionscript question. I have the following interface definition: package a.b.c { public interface SecurityWebservice { function findUser(userId:String):d.e.f.UserDto; } } It does not compile (1046: Type was not found), which I find strange since I specify the fully qualified name of the type. When I include the statement import d.e.f.UserDto; it compiles. Can someone explain why this is? Thanks, Franck __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Why is import mandatory?
For sure, this will come in later versions of the Builder. H maybe not for sure, but I truly hope so! From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Robert Stuttaford Sent: Thursday, September 07, 2006 11:11 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Why is import mandatory? I think they've gotten stricter onpackage usage now. Only places I see itnow are in the package and import statements.After converting 50 odd classes this week, I must admit it's cleaned the code up a bit. What I don't get is why we have to manually type import statements at all. It would be nice if Flex Builder (or the compiler itself) could pre-process the source and insert the appropriate imports for you, as well as when using Source Organize Imports, and just prompt you for any clashing classes. That'd be kinda neat. That way the imports are always complete and always nicely formatted, and lots of silly compiler errors are avoided. Robert From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy Spratt Sent: 07 September 2006 10:42 PM To: [EMAIL PROTECTED]ups.com Subject: RE: [flexcoders] Why is import mandatory? I cant say why, but import IS mandatory, per the docs (migration pdf?), and the fully qualified path should only be used for disambiguation. Tracy From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Franck de Bruijn Sent: Thursday, September 07, 2006 3:27 PM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] Why is import mandatory? Hi, Just a small actionscript question. I have the following interface definition: package a.b.c { public interface SecurityWebservice { function findUser(userId:String):d.e.f.UserDto; } } It does not compile (1046: Type was not found), which I find strange since I specify the fully qualified name of the type. When I include the statement import d.e.f.UserDto; it compiles. Can someone explain why this is? Thanks, Franck -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.1/440 - Release Date: 2006/09/06 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.1/440 - Release Date: 2006/09/06 __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Re: Pre-compiled applications unable to access FDS based message queues
Jim, Did you see my reply before Metes? Ill repost You need to provide mxmlc with the context root for the FDS application -compiler.context-root context-path Ie. compiler.context-root /flex Then you should see the correct path for the message broker endpoint in the console output. -peter From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of dadrobson Sent: Friday, September 08, 2006 11:26 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Pre-compiled applications unable to access FDS based message queues Mete: As I noted in the first line of my post, I *did* set the path to services-config.xml. But the issue persists. Any other thoughts? Jim --- In [EMAIL PROTECTED]ups.com, Mete Atamel meteatamel@... wrote: As somebody already pointed out, you need to use --compiler.services path_to_services-config.xml during compilation. -Mete dadrobson jim.robson@... wrote: I'm having a similar problem, but in my case the path to services-config.xml is set. The app works fine with the web-tier compiler, but when I pre-compile it, I get the error pasted below. There is one line in the error message (below) that caught my eye. It's the message broker URI: http://localhost/messagebroker/amfpolling Shouldn't the path to FDS be in there? I.E., http://localhost/path_to_FDS/messagebroker/amfpolling? If so, does anyone know how to set this? Is there a compiler argument for it? I haven't had any success locating this in the docs. ** Begin Error Message ** Client.Error.MessageSend Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed Send failed (mx.messaging.messages::ErrorMessage)#0 body = (Object)#1 clientId = (null) correlationId = C737E92B-DCA1-43B6-E259-8D6BE56F200C destination = extendedData = (null) faultCode = Client.Error.MessageSend faultDetail = Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed faultString = Send failed headers = (Object)#2 messageId = 8F8D3BE9-B6D2-6436-2DFE-8D6BE58E9CBA rootCause = (Object)#3 code = NetConnection.Call.Failed description = HTTP: Failed details = http://localhost/messagebroker/amfpolling level = error timestamp = 0 timeToLive = 0 ** End Error Message ** --- In [EMAIL PROTECTED]ups.com, Brian Dunphy briandunphy@ wrote: Think I just figured it out -- you need to add a -compiler.servicespath_to_services- config.xml to that line and it picks it up. Thanks for your help though! Much appreciated. Brian - All-new Yahoo! Mail - Fire up a more powerful email and get things done faster. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Creating forms at runtime
I'm trying to create a form based on certain restrictions that are returned from a ColdFusion CFC. I only want certain form elements to be rendered depending on these restrictions, and these restrictions will only be known at run time. Can anyone give me an example of how this might be achieved? I keep the restrictions in an array, so I need to loop through this array, and if a condition in this array is TRUE, then create the form item. Any help would be appreciated! Cheers, K. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Pre-compiled applications unable to access FDS based message queues
Ok. This is page 163 of Flex2 Build and Deploy guide: You must remember that the context root of an application is only valid in the context of a web application. If you are using the command-line compiler or the offline Flex Builder compiler, you must manually specify it using the context-root command line option, as the following example shows:$ mxmlc -context-root=http://www.mydomain.com MyApp.mxmlCould this be it?-Metedadrobson [EMAIL PROTECTED] wrote: Mete: As I noted in the first line of my post, I *did* set the path to services-config.xml. But the issue persists. Any other thoughts? Jim --- In [EMAIL PROTECTED]ups.com, Mete Atamel meteatamel@... wrote: As somebody already pointed out, you need to use --compiler.services path_to_services-config.xml during compilation.-Metedadrobson jim.robson@... wrote: I'm having a similar problem, but in my case the path to services-config.xml is set. The app works fine with the web-tier compiler, but when I pre-compile it, I get the error pasted below. There is one line in the error message (below) that caught my eye. It's the message broker URI: "http://localhost/messagebroker/amfpolling" Shouldn't the path to FDS be in there? I.E., "http://localhost/path_to_FDS/messagebroker/amfpolling"? If so, does anyone know how to set this? Is there a compiler argument for it? I haven't had any success locating this in the docs. ** Begin Error Message ** Client.Error.MessageSend Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed Send failed (mx.messaging.messages::ErrorMessage)#0 body = (Object)#1 clientId = (null) correlationId = "C737E92B-DCA1-43B6-E259-8D6BE56F200C" destination = "" extendedData = (null) faultCode = "Client.Error.MessageSend" faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed" faultString = "Send failed" headers = (Object)#2 messageId = "8F8D3BE9-B6D2-6436-2DFE-8D6BE58E9CBA" rootCause = (Object)#3 code = "NetConnection.Call.Failed" description = "HTTP: Failed" details = "http://localhost/messagebroker/amfpolling" level = "error" timestamp = 0 timeToLive = 0 ** End Error Message ** --- In [EMAIL PROTECTED]ups.com, "Brian Dunphy" briandunphy@ wrote: Think I just figured it out -- you need to add a-compiler.servicespath_to_services-config.xml to that line and it picks it up.Thanks for your help though! Much appreciated.Brian - All-new Yahoo! Mail - Fire up a more powerful email and get things done faster. Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Why is import mandatory?
Thanks, Matt. Im from the JAVA-area and there you dont need an import statement if you fully qualify your types. I more or less expected ActionScript to behave similarly. Good that you managed the wildcard thing, that helps in my case, although its a not-so-nice solution. Cheers, Franck From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Friday, September 08, 2006 5:47 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Why is import mandatory? You can learn more about the actual language construct in the directives section of the ES4 spec: http://developer.mozilla.org/es4/spec/chapter_16_directives.html The language designers decided that introducing a class into the system requires explicitly bringing it in (we actually had to fight for wildcard importing). I dont have a great justification for you, only that its intentional. Matt From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Franck de Bruijn Sent: Thursday, September 07, 2006 12:27 PM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] Why is import mandatory? Hi, Just a small actionscript question. I have the following interface definition: package a.b.c { public interface SecurityWebservice { function findUser(userId:String):d.e.f.UserDto; } } It does not compile (1046: Type was not found), which I find strange since I specify the fully qualified name of the type. When I include the statement import d.e.f.UserDto; it compiles. Can someone explain why this is? Thanks, Franck __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] [Charts] Lineseries property showDataEffect
showDataEffect is a style, not a property. so you need to setStyle(...) it. Also, don't push directly onto the chart series array. Instead, grab that value of series, push onto that, and reassign it back to series. See my earlier post on both topics. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of adrien.schwartzentruberSent: Thursday, September 07, 2006 11:57 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] [Charts] Lineseries property showDataEffect Good morning,I have a problem with a Lineseries object because I don't know how affect the property showDataEffect. (I use Flex 2.0)Part of code :mychart.series = null;var line:LineSeries = new LineSeries();line.xField=String(event.result.series.lineseries.xfield);line.yField=String(event.result.series.lineseries.yfield);line.displayName=String(event.result.series.lineseries.name);line.form = "curve";mychart.series.push(line);I try line.showDataEffect but it's undefinied property.Adrien __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] comparing substrings case sensitively?
I'm trying to look for instances of characters in a String, using myString.indexOf() I was hoping to find there was a case sensitivity flag in there, but there isn't so it finds "Todd" in the string "My name is todd", which is not what I want in this specific index. Anyone have an easy way to do this? Thanks! -- TC __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Data interpolation in ColumnSets
Bump. So, is it clear from this error message that this is the same bug, or is there a way around it? Thanks. - Tom Tom Fitzpatrick wrote: OK - assuming the right way to do this is to call the showDataEffect functon on the ColumnSet, here's the error message I receive: TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.charts.effects.effectClasses::SeriesInterpolateInstance/play() at mx.effects::EffectInstance/startEffect() at mx.effects.effectClasses::ParallelInstance/play() at mx.charts.chartClasses::ChartBase/::advanceEffectState() at mx.charts.chartClasses::ChartBase/mx.charts.chartClasses:ChartBase::updateDisplayList() at mx.charts.chartClasses::CartesianChart/mx.charts.chartClasses:CartesianChart::updateDisplayList() at mx.core::UIComponent/validateDisplayList() at mx.managers::LayoutManager/::validateDisplayList() at mx.managers::LayoutManager/::doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() The error alert is shown while the app is starting up. I get a different error when I call the showDataEffect function on the individual ColumnSeries in the ColumnSets. If that's helpful I can send that as well. - Tom Ely Greenfield wrote: Hi Tom. chances are you're running into the same bug (stacked series + interpolation effects) that a number of people have hit. Can you send a longer stack trace? Ely. -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] *On Behalf Of *Tom Fitzpatrick *Sent:* Thursday, September 07, 2006 5:07 AM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* [flexcoders] Data interpolation in ColumnSets I have a Cartesian chart containing two ColumnSeries in two ColumnSets, like this: mx:series mx:ColumnSet columnWidthRatio=.375 offset=-.21 type=stacked mx:ColumnSeries alpha=.6 yField=costs / mx:ColumnSeries alpha=.6 yField=oneTime/ /mx:ColumnSet mx:ColumnSet columnWidthRatio=.375 offset=0.21 type=stacked mx:ColumnSeries yField=revenue / mx:ColumnSeries yField=overhead / /mx:ColumnSet /mx:series My problem is that data interpolation doesn't seem to work in this context. I set up an interpolation like this: mx:SeriesInterpolate id=moveData duration=500 minimumElementDuration=200 elementOffset=0/ But when I try to call it either from the individual ColumnSeries or the ColumnSets, using: showDataEffect=moveData I get an error message: Cannot access a property or method of a null object reference. Can anyone spot the problem - or is this not possible in this setup? - Tom -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] ControlBar
If control-bar is not last child of Panel in MXML, it is rendererd as normal children. Which means, ControlBar as control-bar in Panel is special case and handled differently.If you want to add control-bar to Panel using ActionScript, you need to follow these steps:- 1) Add controlBar instance as last child in Panel2) call createComponentsFromDescriptors () method of Panel.ex: var controlBar:ControlBar = new ControlBar (); var button:Button = new Button (); button.label =Hey; controlBar.addChild (button); panel.addChild (controlBar); panel.createComponentsFromDescriptors (); That works but I learnt above by looking into Panel source code and by recalling things from ApplicationControlBar development process.. So please keep looking at other things also, may be there is better way.-abdulOn 9/8/06, gustavo.saume [EMAIL PROTECTED] wrote: Hello all, is there a way to create a controlBar in a script and assign it to a Panel?? i´ve tryed the following with not success: mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml initialize=init (); layout=vertical width=100% height=100% mx:Script ![CDATA[ import mx.controls.Button; import mx.containers.HBox; import mx.containers.ControlBar; private function init():void { var btnSave:Button = new Button(); var cntrl:ControlBar = new ControlBar(); cntrl.addChild(btnSave); this.controlBar = cntrl; } ]] /mx:Script /mx:Panel __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Data interpolation in ColumnSets
Hi Tom. I'm not sure, but that actually doesn't look like it's the same problem. Can you send me a simple 1-file sample offline? Thanks. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom FitzpatrickSent: Friday, September 08, 2006 9:50 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Data interpolation in ColumnSets Bump.So, is it clear from this error message that this is the same bug, or is there a way around it?Thanks.- TomTom Fitzpatrick wrote: OK - assuming the "right" way to do this is to call the showDataEffect functon on the ColumnSet, here's the error message I receive: TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.charts.effects.effectClasses::SeriesInterpolateInstance/play() at mx.effects::EffectInstance/startEffect() at mx.effects.effectClasses::ParallelInstance/play() at mx.charts.chartClasses::ChartBase/::advanceEffectState() at mx.charts.chartClasses::ChartBase/mx.charts.chartClasses:ChartBase::updateDisplayList() at mx.charts.chartClasses::CartesianChart/mx.charts.chartClasses:CartesianChart::updateDisplayList() at mx.core::UIComponent/validateDisplayList() at mx.managers::LayoutManager/::validateDisplayList() at mx.managers::LayoutManager/::doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() The error alert is shown while the app is starting up. I get a different error when I call the showDataEffect function on the individual ColumnSeries in the ColumnSets. If that's helpful I can send that as well. - Tom Ely Greenfield wrote: Hi Tom. chances are you're running into the same bug (stacked series + interpolation effects) that a number of people have hit. Can you send a longer stack trace? Ely. -- *From:* [EMAIL PROTECTED]ups.com mailto:flexcoders%40yahoogroups.com [mailto:[EMAIL PROTECTED]ups.com mailto:flexcoders%40yahoogroups.com] *On Behalf Of *Tom Fitzpatrick *Sent:* Thursday, September 07, 2006 5:07 AM *To:* [EMAIL PROTECTED]ups.com mailto:flexcoders%40yahoogroups.com *Subject:* [flexcoders] Data interpolation in ColumnSets I have a Cartesian chart containing two ColumnSeries in two ColumnSets, like this: mx:series mx:ColumnSet columnWidthRatio=".375" offset="-.21" type="stacked" mx:ColumnSeries alpha=".6" yField="costs" / mx:ColumnSeries alpha=".6" yField="oneTime"/ /mx:ColumnSet mx:ColumnSet columnWidthRatio=".375" offset="0.21" type="stacked" mx:ColumnSeries yField="revenue" / mx:ColumnSeries yField="overhead" / /mx:ColumnSet /mx:series My problem is that data interpolation doesn't seem to work in this context. I set up an interpolation like this: mx:SeriesInterpolate id="moveData" duration="500" minimumElementDuration="200" elementOffset="0"/ But when I try to call it either from the individual ColumnSeries or the ColumnSets, using: showDataEffect="moveData" I get an error message: "Cannot access a property or method of a null object reference." Can anyone spot the problem - or is this not possible in this setup? - Tom __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] ControlBar
How about this way:?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute initialize=init(); mx:Script![CDATA[import mx.controls.Button;import mx.containers.ControlBar;private function init():void{ var btnSave:Button = new Button(); btnSave.label = TestButton var cntrl:ControlBar = new ControlBar(); cntrl.addChild(btnSave); this.Test.addChild(cntrl)}]]/mx:Scriptmx:Panel id=Test mx:Label text=Testing/ /mx:Panel/mx:ApplicationRegardsRogerioOn 9/8/06, gustavo.saume [EMAIL PROTECTED] wrote: Hello all, is there a way to create a controlBar in a script and assign it to a Panel?? i´ve tryed the following with not success: mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml initialize=init (); layout=vertical width=100% height=100% mx:Script ![CDATA[ import mx.controls.Button; import mx.containers.HBox; import mx.containers.ControlBar; private function init():void { var btnSave:Button = new Button(); var cntrl:ControlBar = new ControlBar(); cntrl.addChild(btnSave); this.controlBar = cntrl; } ]] /mx:Script /mx:Panel __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Binding to static properties
Why would want to do that? Can you give the use-case?-abdulOn 9/8/06, Daniel Wabyick [EMAIL PROTECTED] wrote: Does anyone know if its possible to bind to static properties of a class? I can't seem to get this to work. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Error 1009 in Flex 2
I'm playing around with a remote object and in the handleResult function Flex is giving me this 1009 error when I try to refer to the variable I assigned to the event.result. If I do Alert.show(event.result[0].QUESTION.toString()); then I get the right result. However if I assign event.result to a variable, I get the error.. myData = event.result as Array; Alert.show(myData.length.toString()); bombs with the error TypeError: Error #1009: Cannot access a property or method of a null object reference. Here's my code.. [Bindable] public var myData:Array = new Array(); public function handleResult( event : ResultEvent ) : void{ myData = event.result as Array; Alert.show(myData.length.toString()); //Alert.show(event.result[0].QUESTION.toString()); } So what's Flex whining about? myData is declared, it's assigned.. it should work? Thanks! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Setting breakpoints while debugging?
Hi All, As far as I can see there's no way to set a breakpoint once I've started debugging. Is this correct? If not, how can I do this? TIA! Douglas -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Error 1009 in Flex 2
event.result must not be an array. when you are assigning it as Array it is returning null. use the debugger to determine the actual datatype of event.result. I would guess it is an ArrayCollection, not an Array. But it could be some other kind of list or object too. (XMLList, etc). Hard to tell without knowing where the data is coming from. Thunder --- In flexcoders@yahoogroups.com, Greg Morphis [EMAIL PROTECTED] wrote: I'm playing around with a remote object and in the handleResult function Flex is giving me this 1009 error when I try to refer to the variable I assigned to the event.result. If I do Alert.show(event.result[0].QUESTION.toString()); then I get the right result. However if I assign event.result to a variable, I get the error.. myData = event.result as Array; Alert.show(myData.length.toString()); bombs with the error TypeError: Error #1009: Cannot access a property or method of a null object reference. Here's my code.. [Bindable] public var myData:Array = new Array(); public function handleResult( event : ResultEvent ) : void{ myData = event.result as Array; Alert.show(myData.length.toString()); //Alert.show(event.result[0].QUESTION.toString()); } So what's Flex whining about? myData is declared, it's assigned.. it should work? Thanks! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] drawing api
I need to make a custom class that draws shapes but I cant seem to get the drawing api to work at all. In AS2 it was very simple, just using a beginFill and lineTos and wala. I see there are a lot of container classes (Sprite, DisplayObject, etc). How do I go about say just drawing a circle on my app? CHAD CALLAHAN PROGRAMMER T8DESIGN.COM | P 319.266.7574 - x195 | 877.T8IDEAS | F 888.290.4675 This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: Error 1009 in Flex 2
'event.result as Array' is returning null because event.result is not an Array. Is it an ArrayCollection or XML/XMLList perhaps? --- In flexcoders@yahoogroups.com, Greg Morphis [EMAIL PROTECTED] wrote: I'm playing around with a remote object and in the handleResult function Flex is giving me this 1009 error when I try to refer to the variable I assigned to the event.result. If I do Alert.show(event.result[0].QUESTION.toString()); then I get the right result. However if I assign event.result to a variable, I get the error.. myData = event.result as Array; Alert.show(myData.length.toString()); bombs with the error TypeError: Error #1009: Cannot access a property or method of a null object reference. Here's my code.. [Bindable] public var myData:Array = new Array(); public function handleResult( event : ResultEvent ) : void{ myData = event.result as Array; Alert.show(myData.length.toString()); //Alert.show(event.result[0].QUESTION.toString()); } So what's Flex whining about? myData is declared, it's assigned.. it should work? Thanks! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Error 1009 in Flex 2
Yeah, thats it.. it's not an Array, it's an Object.. once I changed that around it starting working fine. Thanks! On 9/8/06, thunderstumpgesatwork [EMAIL PROTECTED] wrote: event.result must not be an array. when you are assigning it as Array it is returning null. use the debugger to determine the actual datatype of event.result. I would guess it is an ArrayCollection, not an Array. But it could be some other kind of list or object too. (XMLList, etc). Hard to tell without knowing where the data is coming from. Thunder --- In flexcoders@yahoogroups.com, Greg Morphis [EMAIL PROTECTED] wrote: I'm playing around with a remote object and in the handleResult function Flex is giving me this 1009 error when I try to refer to the variable I assigned to the event.result. If I do Alert.show(event.result[0].QUESTION.toString()); then I get the right result. However if I assign event.result to a variable, I get the error.. myData = event.result as Array; Alert.show(myData.length.toString()); bombs with the error TypeError: Error #1009: Cannot access a property or method of a null object reference. Here's my code.. [Bindable] public var myData:Array = new Array(); public function handleResult( event : ResultEvent ) : void{ myData = event.result as Array; Alert.show(myData.length.toString()); //Alert.show(event.result[0].QUESTION.toString()); } So what's Flex whining about? myData is declared, it's assigned.. it should work? Thanks! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links (Yahoo! ID required) mailto:[EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Pre-compiled applications unable to access FDS based message queues
Peter and Mete: Thank you! You were right -the context root was the problem. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] synchronization between server and client classes
For Java, check out: http://joeberkovitz.com/blog/2006/04/14/xdoclet2-update Jeff From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of rahul_asanikar Sent: Friday, September 08, 2006 7:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] synchronization between server and client classes Hello everyone, I am a Java/Php programmer and relatively new to flex. I have played around actionscript classes and event handling. I wonder if there is a way to avoid mannual data synchronization between server side beans and action script beans. I feel this is double work and should be avoided by some means to make the technology easily adaptable. Any comments? Best regards, Rahul __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: Problems getting started with flashvars and Application.application.paramete
--- In flexcoders@yahoogroups.com, Adam Dorritie [EMAIL PROTECTED] wrote: On 9/8/06, yaagcur [EMAIL PROTECTED] wrote: I'm trying to get started with passing paramaters to a flex project initially based on livedocs Using the Application.application.parameters object and Using flashVars as source You might try reading the thread here: http://tech.groups.yahoo.com/group/flexcoders/message/49376 Thanks Adam - remarkably similar:) Not sure if that thread sorted Kyle out but I'm not quite clear how my HTML is falling short. How does the javascipt AC_FL_RunContent section need amending? The src and flashvars are already included -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: ControlBar
Thanks everybody... i've solve it using the addChild method... but it has to be the last child in order to work properly. --- In flexcoders@yahoogroups.com, Rogerio Gonzalez [EMAIL PROTECTED] wrote: How about this way: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute initialize=init(); mx:Script ![CDATA[ import mx.controls.Button; import mx.containers.ControlBar; private function init():void{ var btnSave:Button = new Button(); btnSave.label = TestButton var cntrl:ControlBar = new ControlBar(); cntrl.addChild(btnSave); this.Test.addChild(cntrl) } ]] /mx:Script mx:Panel id=Test mx:Label text=Testing/ /mx:Panel /mx:Application Regards Rogerio On 9/8/06, gustavo.saume [EMAIL PROTECTED] wrote: Hello all, is there a way to create a controlBar in a script and assign it to a Panel?? i´ve tryed the following with not success: mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; initialize=init (); layout=vertical width=100% height=100% mx:Script ![CDATA[ import mx.controls.Button; import mx.containers.HBox; import mx.containers.ControlBar; private function init():void { var btnSave:Button = new Button(); var cntrl:ControlBar = new ControlBar(); cntrl.addChild(btnSave); this.controlBar = cntrl; } ]] /mx:Script /mx:Panel -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] drawing api
check the Graphics class. every DisplayObject has a graphics property which holds an instance of the class for that object.On 9/8/06, Chad Callahan [EMAIL PROTECTED] wrote: I need to make a custom class that draws shapes but I can't seem to get the drawing api to work at all. In AS2 it was very simple, just using a beginFill and lineTo's and wala. I see there are a lot of "container" classes (Sprite, DisplayObject, etc). How do I go about say just drawing a circle on my app? CHAD CALLAHAN PROGRAMMER T8DESIGN.COM | P 319.266.7574 - x195 | 877.T8IDEAS | F 888.290.4675 This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Setting breakpoints while debugging?
Click the row in which you would like to have a breakpoint and press CTRL-SHIFT-B, or use Run-Toggle Breakpoint from the menu. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Douglas McCarroll Sent: Friday, September 08, 2006 7:05 PM To: flexcoders post Subject: [flexcoders] Setting breakpoints while debugging? Hi All, As far as I can see there's no way to set a breakpoint once I've started debugging. Is this correct? If not, how can I do this? TIA! Douglas __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] SOS! Fatal FDS Error!!!
Are you using RTMP? Are you using the data management services or just doing this all via remote object? If you are using RTMP, by default, there is an idle subscription timeout on the channel of 20 minutes. At this point, the client should receive a fault event and though it should auto-connect on the next attempt, it will be in a new FlexSession. Maybe there is some reason this process is not working properly? You can set this timeout to a small value (say 1 minute) for your testing to see if leaving the application idle for that time will reproduce the problem in your testing environment. If not, Id turn on some debug logging and get a big trace file of the activity so you can go back and figure out what is happening when a user reports that some data did not get saved (make sure you are logging the users name so you can find the trace of their activity). Possibly there is an exception or something when committing the transaction which is being swallowed someplace? Typically an error which would cause a failure to save some data would be propagated up to the user level and as a fault event so also make sure you are trapping fault events at the client level. Here is more info on session timeouts if you think that could be causing the problem (this is from a response to an earlier question) which might be helpful too. There are actually three timeout settings you may need to configure for FDS. There is the HTTP session timeout which is configured via your app servers settings. That controls the session timeout for HTTP based channels as you would expect. Any activity on the session for that web application will keep that session alive. This includes the polling requests which are initiated by that client so if your polling interval is more frequent than your app servers session timeout, your session will be kept alive. There is the idle-timeout-minutes attribute for RTMP channels which determines the session timeout for RTMP based channels. Any message sent or received over the channel will keep it alive. This will timeout if the connection is left idle. There is also the subscription timeout which you set for a given destination via the (poorly named) session-timeout tag underneath the network tag for that destination. If you set this to 0, the subscription timeout is the same as the session timeout. This is not the default though It defaults to 20 minutes. When this timeout expires, it sends a message to the client which tells it to unsubscribe from the channel. When a consumer unsubscribes, it also disconnects from the channel. So with the default session-timeout, a client which subscribes even using an AMF polling channel will get unsubscribed automatically which will stop the polling. That will allow the HTTP session to expire normally. If you are using Data Management Services and your destination is unsubscribed due to the subscription timeout, it causes your DataService to be disconnected. You can watch for properties change events on the connected flag or bind to that property on the DataService. If you are using the default you can watch for the connected property on your DataService to be set to false. Any message like fill, getItem, or commit which you invoke on the DataService will cause it to reconnect automatically. When you reconnect, the DataService automatically resubscribes for any fills, getItems or whatever which you have not explicitly released. Jeff From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of dreuimar Sent: Friday, September 08, 2006 7:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] SOS! Fatal FDS Error!!! Hey everyone, The production team at my work is flipping out at the fact that my FDS application keeps losing data. The application allows insertation of keywords and ads into a datagrid. In testing, we usually go in, test adding stuff, refresh, and check to see if the data's still there. This hasn't failed us yet. Once the application is used by the production team, they sit for hours with the application and intermitently add keywords and ads. The problem is randomly they'll find out that none of their information has saved (they're all equipped with the Flash Debugger Player, btw). They're getting pissed off and needing to take screenshots of their work just in case. I have a feeling it has to do with leaving the app open for so long, but that's just a hunch. PLEASE does anyone have any suggestions? We're using FDS with Hibernate, C3P0 for connection pooling, and EhCache for caching (we have a list of 500 or so clients thats loaded each time someone logs in). Two destinations - client list and keyword/ad. I hate knowing that data is being lost, and it's really causing my job performance to suffer. Should I look into transactions with JMX or something, due to all the keywords being added and subtracted from the database? __._,_.___ --
[flexcoders] Any way to define CategoryAxis label spacing?
I'm looking for a way to only display a few CategoryAxis labels (instead of all of them). Currently I have a labelFormat function that takes a unix timestamp, converts it to a shorter, more readable format, and then displays it on the horizontalAxis of the graph. The problem is that it's a time series area chart, and there are far too many data points (it ends up displaying all of the labels with an extremely small font). For instance, I would like to be able to display only the first, middle and last labels. Any ideas would be appreciated. Thanks, Brian -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] drawing api
One way to do it is to create a new UIComponent and then call addChild on it to add it to the display list: public function drawSomething():void { var circle:UIComponent = new UIComponent(); var xPos:Number = 100; var yPos:Number = 100; var radius:Number = 50; circle.graphics.beginFill(0xFF8800); circle.graphics.drawCircle(xPos, yPos, radius); myPanel.addChild(circle); } You can also create a new sprite and add it to the rawChildren list for a container: public function drawSquare():void { var s:Sprite = new Sprite(); myPanel.rawChildren.addChild(s); var g:Graphics = s.graphics; g.clear(); g.lineStyle(1,0x33CCFF,1.0); var fill:IFill = new SolidColor(0x9933CC,0.15); g.moveTo(x,y); fill.begin(g,new Rectangle(x,y,w,h)); g.lineTo(w,x); g.lineTo(w,h); g.lineTo(y,h); g.lineTo(x,y); fill.end(g); } hth, matt horn flex docs -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chad Callahan Sent: Friday, September 08, 2006 11:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] drawing api I need to make a custom class that draws shapes but I can't seem to get the drawing api to work at all. In AS2 it was very simple, just using a beginFill and lineTo's and wala. I see there are a lot of container classes (Sprite, DisplayObject, etc). How do I go about say just drawing a circle on my app? CHAD CALLAHAN PROGRAMMER T8DESIGN.COM | P 319.266.7574 - x195 | 877.T8IDEAS | F 888.290.4675 This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Problems getting started with flashvars and Application.application.paramete
I just did this myself today, so here is my solution: In the file html-template/index.template.html in the section else if (hasReqestedVersion) I modified the line with flashVars as follows: flashvars,'historyUrl=history.htm?lconid=' + lc_id +'' + 'wsPrefix=' + wsPrefix + '', The bold part is what I added. wsPrefix is a variable I initialized in the script a little bit above myself. HTH, Franck From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of yaagcur Sent: Friday, September 08, 2006 8:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Problems getting started with flashvars and Application.application.paramete --- In [EMAIL PROTECTED]ups.com, Adam Dorritie [EMAIL PROTECTED].. wrote: On 9/8/06, yaagcur [EMAIL PROTECTED] wrote: I'm trying to get started with passing paramaters to a flex project initially based on livedocs Using the Application.application.parameters object and Using flashVars as source You might try reading the thread here: http://tech.groups.yahoo.com/group/flexcoders/message/49376 Thanks Adam - remarkably similar:) Not sure if that thread sorted Kyle out but I'm not quite clear how my HTML is falling short. How does the javascipt AC_FL_RunContent section need amending? The src and flashvars are already included __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Any way to define CategoryAxis label spacing?
You could use a custom data provider to define the axis labels, as described here: http://livedocs.macromedia.com/flex/2/docs/1253.html Just set the labels you don't want to empty strings. hth, matt horn flex docs -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of klumikaze Sent: Friday, September 08, 2006 2:45 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Any way to define CategoryAxis label spacing? I'm looking for a way to only display a few CategoryAxis labels (instead of all of them). Currently I have a labelFormat function that takes a unix timestamp, converts it to a shorter, more readable format, and then displays it on the horizontalAxis of the graph. The problem is that it's a time series area chart, and there are far too many data points (it ends up displaying all of the labels with an extremely small font). For instance, I would like to be able to display only the first, middle and last labels. Any ideas would be appreciated. Thanks, Brian -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] drawing api
Chad, Search the docs on drawCircle(). Runnable example on the bottom of the Language Reference for Class Graphics: http://livedocs.macromedia.com/flex/2/langref/flash/display/Graphics.html You know the old saying ... RTM. As a courtesy to others on the list, please check the docs before posting. :-) g __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: Problems getting started with flashvars and Application.application.paramete
On 9/8/06, yaagcur [EMAIL PROTECTED] wrote: Thanks Adam - remarkably similar:) Not sure if that thread sorted Kyle out but I'm not quite clear how my HTML is falling short. How does the javascipt AC_FL_RunContent section need amending? The src and flashvars are already included Franck already provided the answer, but I'll say this much. The HTML object and embed are within the noscript portion of the page, in other words the portion of the page which will be executed if javascript is not available. The normal path for processing is to run the javascript AC_FL_RunContent() function. The reason you need to modify this is to include your own FlashVars, in addition to the ones already passed by the default template. In my case I use ColdFusion to dynamically insert FlashVars based upon the Flex application which is running, but all you really have to do is add your own variables. For example: } else if (hasRequestedVersion) { // if we've detected an acceptable version // embed the Flash Content SWF when all tests are passed AC_FL_RunContent( src, myFlexAppName, width, 100%, height, 100%, align, middle, id, myFlexAppName, quality, high, bgcolor, #ff, name, myFlexAppName, flashvars,'historyUrl=history.htm%3Flconid=' + lc_id + '', - Add something like this... flashvars,'myVar1=foomyVar2=bar', allowScriptAccess,sameDomain, type, application/x-shockwave-flash, pluginspage, http://www.adobe.com/go/getflashplayer; -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Any way to define CategoryAxis label spacing?
Two easy options: 1) set 'canDropLabels' on your axisRenderer to true. Then the axis will try to drop the labels instead of making them smaller. Since the axis doesn't generally know anything about the contents of a CategoryAxis, it can't assume that dropping category names won't lose important information. But in your case, since it's time data, it's safe to do so. 2) I don't remember off hte top of my head, but you might be able to return null from your labelFunction if you don't want a label displayed. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of klumikazeSent: Friday, September 08, 2006 11:45 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Any way to define CategoryAxis label spacing? I'm looking for a way to only display a few CategoryAxis labels(instead of all of them). Currently I have a labelFormat function that takes a unix timestamp,converts it to a shorter, more readable format, and then displays iton the horizontalAxis of the graph. The problem is that it's a timeseries area chart, and there are far too many data points (it ends updisplaying all of the labels with an extremely small font).For instance, I would like to be able to display only the first,middle and last labels.Any ideas would be appreciated.Thanks,Brian __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: loading whole Application
Yep I guess its all there if you dig around but for instance default colors of the lines on a multi-series chart didnt come out and hit me (though it probably will as soon as I send this message) --- In flexcoders@yahoogroups.com, Stephen Gilson [EMAIL PROTECTED] wrote: Were you not able to find this information in the API guide: http://livedocs.macromedia.com/flex/2/langref/ Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yaagcur Sent: Tuesday, August 29, 2006 7:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: loading whole Application As a side note, is there anywhere in the documentation that defaults can be found. Not just for things like this but for component colors etc. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: ViewStack and Tabnavigator have creationPolicy=none by default. You can set this to all and all the children will be instantiated when the app first loads. Be aware that this may degrade your user's experience by causing the app to load slowly. There are instanitation methods the give you more granular control over the children's rendering. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of arnold_charming Sent: Monday, August 28, 2006 12:20 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] loading whole Application Hi! How to load the whole application? I'm asking this because I'm using sevral viewstack and it is evident that the screens have to be loaded every time. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Datagrid: Setting verticalscrollposition to where selectedIndex is
I appreciate the response. However, what happens when grid1 is sorted differently than grid2? For example, an item (let's call it A) might exist at the top of grid1, but in grid2, A exists at the bottom (because the user has sorted the columns differently. In this case, setting the verticalScrollPositions the same won't help, because that'll put it at the top of grid2, which is wrong. It should be at the bottom. I basically want to do this: Set the scroll position in a grid so that the currently selected item is visible. Thoughts? -Jacob --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Hi Jacob, This should do the trick; without using a loop: public function keepSelected(event:ListEvent):void { if (grid1.selectedIndex = 0) { grid2.selectedItem = grid1.selectedItem; grid2.verticalScrollPosition = grid1.verticalScrollPosition; } } -TH --- In flexcoders@yahoogroups.com, j_sevlie jsevlie@ wrote: Hello all, I have a question about our favorite topic -- datagrids! This is with Flex 2. Let's say that I have 2 identical datagrids, both with the same dataprovider. What I want to accomplish is when a user selects something in datagrid1, I want that same item to be selected in datagrid2, INCLUDING scrolling down to where that item exists. Here's the code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.events.ListEvent; public function keepSelected(event:ListEvent):void { if (grid1.selectedIndex = 0) { var i:int, len:int; len = grid2.dataProvider.length; for (i=0; ilen; i++) { if (grid2.dataProvider[i].oid == grid1.selectedItem.oid) { grid2.selectedIndex = i; // -- [TODO -- // Figure out how to get the verticalScrollPosition set correctly. break; } } } } ]] /mx:Script mx:Array id=myData mx:Object oid=1 region=North newsales=50 usedsales=25 parts=15 accessories=10 / mx:Object oid=2 region=South newsales=40 usedsales=35 parts=10 accessories=15 / mx:Object oid=3 region=East newsales=65 usedsales=15 parts=10 accessories=10 / mx:Object oid=4 region=West newsales=60 usedsales=20 parts=15 accessories=5 / mx:Object oid=5 region=North_NEW newsales=50 usedsales=25 parts=15 accessories=10 / mx:Object oid=6 region=South_NEW newsales=40 usedsales=35 parts=10 accessories=15 / mx:Object oid=7 region=East_NEW newsales=65 usedsales=15 parts=10 accessories=10 / mx:Object oid=8 region=West_NEW newsales=60 usedsales=20 parts=15 accessories=5 / mx:Object oid=9 region=North_OLD newsales=50 usedsales=25 parts=15 accessories=10 / mx:Object oid=10 region=South_OLD newsales=40 usedsales=35 parts=10 accessories=15 / mx:Object oid=11 region=East_OLD newsales=65 usedsales=15 parts=10 accessories=10 / mx:Object oid=12 region=West_OLD newsales=60 usedsales=20 parts=15 accessories=5 / /mx:Array mx:DataGrid x=10 y=10 id=grid1 itemClick=keepSelected(event) height=199 dataProvider={myData} mx:columns mx:DataGridColumn headerText=Region dataField=region/ mx:DataGridColumn headerText=New Sales dataField=newsales/ mx:DataGridColumn headerText=Used Sales dataField=usedsales/ /mx:columns /mx:DataGrid mx:DataGrid x=320 y=10 id=grid2 height=199 dataProvider={myData} mx:columns mx:DataGridColumn headerText=Region dataField=region/ mx:DataGridColumn headerText=New Sales dataField=newsales/ mx:DataGridColumn headerText=Used Sales dataField=usedsales/ /mx:columns /mx:DataGrid /mx:Application --- Any ideas? I just want to scroll the user down to the place where the selectedItem is displayed. Is this even possible? Thanks, Jacob -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Cairngorm... Where should this go?
ok, stupid question, this is a great example, but how do you get this to utilise all those fancy vaildation messages in the Flex SDK. I'm talking about the ones that change the control to red borders and the fly-out error message. DKOn 9/8/06, grahampengelly [EMAIL PROTECTED] wrote: Hi BjornThanks for taking the time to throw some code into the discussion. The solution I ended up implementing was similar to the one you suggest. In my case the validation was simple, the user either supplies a number of answers to a question that is between the minimum and maximum allowed or they don't. My point here is that the validation message to the user is more or less predefined. In a more complicated scenario, say a name and address form, it would appear the model would get messy. Just the name field might have required, min max length and [a-z][A-Z] validation rules. Which of these rules is broken and on what field would need to be passed back to the view if you say, wanted to display an instruction to the user or color the appropriate textfield. Having engaged in this discussion I think I have now come to a solution for scenarios like this that would maintain the intent of the MVC pattern. On the model you would maintain a collection of objects such as this: public class ValidationFailedInfo { private var _propertyName:String; private var _message:String; public function get propertyName():String { return _propertyName; }public function get message():String { return _message; }public function ValidationFailedInfo(message:String, propertyName:String) { _message = message; _propertyName = propertyName; } } That would be populated/cleared by a validate() function (not shown but it just applies your rules to the properties of the model). You would also have a method such as: public function GetValidationMessages(propertyName:String):Array { validate(); var messageArr:Array = new Array(); var currValInfo:ValidationFailedInfo = null; for(var x:int = 0; x_validationInfoList.length; x++) { curValInfo = ValidationFailedInfo(_validationInfoList[x]); if(currValInfo.propertyName == propertyName) { messageArr.push (currValInfo.message); } } return messageArr; }You could use this to determine whether each field is valid and if not why not. All of the validation rules would remain in the model as would the message strings that you return. If for example your application supports 10 languages, storing all of the language logic in the view would be a maintenance nightmare wheras this would allow all of that to stay in the model. Thanks for all of your contributions. Can I also take the opportunity to say that this is the most welcoming and active group that I have participated in... Keep it up Graham--- In flexcoders@yahoogroups.com, Bjorn Schultheiss [EMAIL PROTECTED] wrote: Gladly, simple example. // view mx:Button label=submit enabled={model.formValidated} / // model data Object public function set username(value:String):void { _username = value; validateForm() } private function validateForm():void { if (_username != undefined) formValidated = true; } This is code i've just typed, but the principle remains the same. Data drives the view via dataBinding. There are alternatives to the way you would structure your models and views but the principle remains the same. Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies _From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of grahampengelly Sent: Friday, 8 September 2006 12:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cairngorm... Where should this go?Thanks all for the discussion... So it seems the consensus is the validation, from a pattern purist point of view should sit in the model. Someone suggested a model.isDataValid property... This gives us an indication but how should we be communicating back to the view which data it is that is invalid and what is it that is invalid about it? Should the model dispatch a data invalid event that the view acts upon or a checkValid function that returns the data required to act? I know this is very much academic, particularly as since posting originally, I have implemented my validation that works perfectly well. I would be interested to hear Bjorn how you get your validation information back out of the model to display it in the view. Cheers... Graham Blog http://goingspare.wordpress.com --- In flexcoders@yahoogroups.com, Bjorn Schultheiss bjorn.schultheiss@ wrote: I'm going to fly kick this thread quickly. Validation relates to model, quite simply. Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies _ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of lostinrecursion Sent: Friday, 8 September 2006 6:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cairngorm... Where should this
Re: [flexcoders] Any way to define CategoryAxis label spacing?
Thanks very much Ely, much appreciated.I knew I had seen this functionality before, but I had no idea where it was controlled from.Cheers,BrianOn 9/8/06, Ely Greenfield [EMAIL PROTECTED] wrote: Two easy options: 1) set 'canDropLabels' on your axisRenderer to true. Then the axis will try to drop the labels instead of making them smaller. Since the axis doesn't generally know anything about the contents of a CategoryAxis, it can't assume that dropping category names won't lose important information. But in your case, since it's time data, it's safe to do so. 2) I don't remember off hte top of my head, but you might be able to return null from your labelFunction if you don't want a label displayed. Ely. From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of klumikazeSent: Friday, September 08, 2006 11:45 AMTo: [EMAIL PROTECTED]ups.comSubject: [flexcoders] Any way to define CategoryAxis label spacing? I'm looking for a way to only display a few CategoryAxis labels(instead of all of them). Currently I have a labelFormat function that takes a unix timestamp,converts it to a shorter, more readable format, and then displays iton the horizontalAxis of the graph. The problem is that it's a timeseries area chart, and there are far too many data points (it ends updisplaying all of the labels with an extremely small font).For instance, I would like to be able to display only the first,middle and last labels.Any ideas would be appreciated.Thanks,Brian -- Brian Dunphy __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: Problems getting started with flashvars and Application.application.paramete
Thanks very much Franck and Adam - that solution worked fine As you can probably imagine that was a baby step towards a more dynamic solution so i was intrigued by your Cold Fusion reference, Adam What I would like to do is be able to launch the Flex page based on the paramaters chosen .e.g. name/hometown both from clicking on, say, a datagrid row in another Flex project - presumably via URLRequest and navigateToURL - or a standard link within an HTML page Looking at the documentation it appears as though either Flex data services(which I was not planning to use) or HttpServletRequest( which i have no experience with) might be required. Is there another way via ColdFusion? --- In flexcoders@yahoogroups.com, Adam Dorritie [EMAIL PROTECTED] wrote: On 9/8/06, yaagcur [EMAIL PROTECTED] wrote: Thanks Adam - remarkably similar:) Not sure if that thread sorted Kyle out but I'm not quite clear how my HTML is falling short. How does the javascipt AC_FL_RunContent section need amending? The src and flashvars are already included Franck already provided the answer, but I'll say this much. The HTML object and embed are within the noscript portion of the page, in other words the portion of the page which will be executed if javascript is not available. The normal path for processing is to run the javascript AC_FL_RunContent() function. The reason you need to modify this is to include your own FlashVars, in addition to the ones already passed by the default template. In my case I use ColdFusion to dynamically insert FlashVars based upon the Flex application which is running, but all you really have to do is add your own variables. For example: } else if (hasRequestedVersion) { // if we've detected an acceptable version // embed the Flash Content SWF when all tests are passed AC_FL_RunContent( src, myFlexAppName, width, 100%, height, 100%, align, middle, id, myFlexAppName, quality, high, bgcolor, #ff, name, myFlexAppName, flashvars,'historyUrl=history.htm%3Flconid=' + lc_id + '', - Add something like this... flashvars,'myVar1=foomyVar2=bar', allowScriptAccess,sameDomain, type, application/x-shockwave-flash, pluginspage, http://www.adobe.com/go/getflashplayer; -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Installation recommendations
I just got to the point where I thought I knew what I was doing when I did an install of Flex 1.5... and along comes v2.0, throwing me back to feeling like a complete installation newbie. Here's what I want to do: - serve a dev site on localhost:80 with Apache (specifically, WAMPserver 1.6) - connect ColdFusion to serve .cfm's and .cfc's from the webroot (port 80) - connect Flex 2.0 so that .mxml's are compiled at runtime (ala old school... the Compile application on the server when the page is viewed option), and well as be able to deploy generated .swf's from FlexBuilder (Compile application locally in Flex Builder)... again, all out of the webroot on port 80 - set up FDS - set up Cairngorm 2.0 My dev laptop isn't the beefiest thing on the block, so I'd like to go easy on resources (multiple instances of JRUN or other J2EE server probably would not be good). To that end I installed WAMP and installed ColdFusion with the integrated JRUN. That part works fine. But I'd like to deploy FDS directly into the JRUN that was installed with ColdFusion, rather than it's own separate beast. And the directory structure of the integrated JRUN is unusual when compared to other app servers; I'm not even sure where the deployment directory is, or how to map the various directories in the few installation docs that I've found to their JRUN counterparts. One kicker, I think, to this whole scenario is the fact that I want it all running off of port 80. While not essential, it would most closely mirror our production environment. Another kicker is massaging Apache to be able to serve .mxml files. I'm not even sure how to do that. Seeing as how there's no Flex server like there was with 1.5... what connector do I configure Apache to send .mxml to? FDS? Or is this not even possible anymore? Can anybody help with a step-by-step of put this in this directory, or provide a link to same? Or does anyone have a better suggestion for creating a slim (relatively) dev server with the above functionality? Thanks in advance! -Carl -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Ant task that reads the Flex Builder project files?
Anyone know of an Ant or NAnt task or even a command line program that can read and compile the Eclipse/Flex Builder project files? My idea is much like MSBuild or the solution task for NAnt that can inspect .NET solution and project files and build all dependencies defined in these files. Thanks, Lance __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: Datagrid: Setting verticalscrollposition to where selectedIndex is
Round two. You might want to adjust the position if the item is at the bottom of the list. public function keepSelected(event:ListEvent):void { if (grid1.selectedIndex = 0) { grid2.selectedItem = grid1.selectedItem; grid2.verticalScrollPosition = grid2.selectedIndex; } } -TH --- In flexcoders@yahoogroups.com, j_sevlie [EMAIL PROTECTED] wrote: I appreciate the response. However, what happens when grid1 is sorted differently than grid2? For example, an item (let's call it A) might exist at the top of grid1, but in grid2, A exists at the bottom (because the user has sorted the columns differently. In this case, setting the verticalScrollPositions the same won't help, because that'll put it at the top of grid2, which is wrong. It should be at the bottom. I basically want to do this: Set the scroll position in a grid so that the currently selected item is visible. Thoughts? -Jacob --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Hi Jacob, This should do the trick; without using a loop: public function keepSelected(event:ListEvent):void { if (grid1.selectedIndex = 0) { grid2.selectedItem = grid1.selectedItem; grid2.verticalScrollPosition = grid1.verticalScrollPosition; } } -TH --- In flexcoders@yahoogroups.com, j_sevlie jsevlie@ wrote: Hello all, I have a question about our favorite topic -- datagrids! This is with Flex 2. Let's say that I have 2 identical datagrids, both with the same dataprovider. What I want to accomplish is when a user selects something in datagrid1, I want that same item to be selected in datagrid2, INCLUDING scrolling down to where that item exists. Here's the code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.events.ListEvent; public function keepSelected(event:ListEvent):void { if (grid1.selectedIndex = 0) { var i:int, len:int; len = grid2.dataProvider.length; for (i=0; ilen; i++) { if (grid2.dataProvider[i].oid == grid1.selectedItem.oid) { grid2.selectedIndex = i; // -- [TODO -- // Figure out how to get the verticalScrollPosition set correctly. break; } } } } ]] /mx:Script mx:Array id=myData mx:Object oid=1 region=North newsales=50 usedsales=25 parts=15 accessories=10 / mx:Object oid=2 region=South newsales=40 usedsales=35 parts=10 accessories=15 / mx:Object oid=3 region=East newsales=65 usedsales=15 parts=10 accessories=10 / mx:Object oid=4 region=West newsales=60 usedsales=20 parts=15 accessories=5 / mx:Object oid=5 region=North_NEW newsales=50 usedsales=25 parts=15 accessories=10 / mx:Object oid=6 region=South_NEW newsales=40 usedsales=35 parts=10 accessories=15 / mx:Object oid=7 region=East_NEW newsales=65 usedsales=15 parts=10 accessories=10 / mx:Object oid=8 region=West_NEW newsales=60 usedsales=20 parts=15 accessories=5 / mx:Object oid=9 region=North_OLD newsales=50 usedsales=25 parts=15 accessories=10 / mx:Object oid=10 region=South_OLD newsales=40 usedsales=35 parts=10 accessories=15 / mx:Object oid=11 region=East_OLD newsales=65 usedsales=15 parts=10 accessories=10 / mx:Object oid=12 region=West_OLD newsales=60 usedsales=20 parts=15 accessories=5 / /mx:Array mx:DataGrid x=10 y=10 id=grid1 itemClick=keepSelected(event) height=199 dataProvider={myData} mx:columns mx:DataGridColumn headerText=Region dataField=region/ mx:DataGridColumn headerText=New Sales dataField=newsales/ mx:DataGridColumn headerText=Used Sales dataField=usedsales/ /mx:columns /mx:DataGrid mx:DataGrid x=320 y=10 id=grid2 height=199 dataProvider={myData} mx:columns mx:DataGridColumn headerText=Region dataField=region/ mx:DataGridColumn headerText=New Sales dataField=newsales/ mx:DataGridColumn headerText=Used Sales dataField=usedsales/ /mx:columns /mx:DataGrid /mx:Application --- Any ideas? I just want to scroll the user down to the place where the selectedItem is displayed. Is this even possible? Thanks, Jacob -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Tree item renderer's scrolling with mousewheel
I found that Ascii characters were sneaking in (thanks to our data input personnel using copy paste from excel). After stripping out the /n/r from the db it works and looks great. --- In flexcoders@yahoogroups.com, Marcel Fahle [EMAIL PROTECTED] wrote: Hi, did you found a solution on that in the meantime.. I got stucked on the same problem : ( Marcel lyon.james wrote: Unfortunately, it isn't the tree component thats scrolling out of place or incorrectly. What's scrolling out of our control are the labels inside the items inside the tree (which shouldn't scroll at all as the items are fixed sizes and. Needless to say that the Tree is fast becoming useless to us as a component if the labels can't be read :( --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Igor Costa igorcosta@ wrote: you can use a mx:Tree dataProvider={treeAdd} mouseWell=EventDispacherYours On 8/11/06, lyon.james james.lyon@ wrote: I've been working to populate a tree component with a dynamic dataprovider and now that it's working, I'm seeing some wierdity. The item renderers are scrolling with the mousewheel when I scroll the entire tree list. Also some labels seem out of place to start with. I filed a bug on this this morning, but I wanted to ask others if they've seen this behavior and if they've found a fix by using custom TreeItemRenderers. -- Igor Costa www.igorcosta.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Launching App Without Toolbars, Address Bar, etc.
Abdul I looked around in FlexBuilder and did not find anything. I use IE as my default browser and just click on run to load the app. Don't know how to create HTML template or how tell FlexBuilder to load one. Can you direct me to some docs or web site? Thanks, J --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: I don't think FlexBuilder does it by default. But I am sure you can extend FlexBuilder by having some custom html templates... -abdul On 9/8/06, jburkett7 [EMAIL PROTECTED] wrote: Nick: I thought it could be done with javascript, but what I really wanted to know was how or if it could done from FlexBuilder. Can it? Thanks, J --- In flexcoders@yahoogroups.com flexcoders% 40yahoogroups.com, Nick Collins ndcollins@ wrote: You do it with javascript. Something like the following window.open('somepage.htm','somewindow', 'toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=1,w idth=800,height=600'); On 9/7/06, jburkett7 jburkett7@ wrote: Hello Everyone Sounds interesting. Any ideas on how this can work? J --- In flexcoders@yahoogroups.com flexcoders% 40yahoogroups.comflexcoders% 40yahoogroups.com, Jack Caldwell jwcaldwell@ wrote: Hi, Looking at Adobe's JamJar example . . . . http://labs.adobe.com/technologies/jamjar/ Is there a way to launch an application into the browser (IE) from FlexBuilder where it loads in the IE browser without the toolbar, address bar, menus, etc. I understand you can load the application/swf from a web page via javascript - window.open. But for testing, it would be much easier from FlexBuilder. Can it be done from FlexBuilder? If so, what changes need to be made? Thanks, Jack -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Launching App Without Toolbars, Address Bar, etc.
Going back to the original question, if you launch jamjar without any parameters, you will have all of the browser menu options. You can then view source to see how they created the full screen effect. http://www.adobe.com/go/labs_jamjar_launch To add this kind of functionality to your site, modify the html template file in the html-template directory of your project. Or, you can use Abdul's _javascript_ injection class: http://www.abdulqabiz.com/blog/archives/macromedia_flex/a_mxml_componen.php http://www.abdulqabiz.com/blog/archives/macromedia_flex/ -TH --- In flexcoders@yahoogroups.com, "jburkett7" [EMAIL PROTECTED] wrote: Abdul I looked around in FlexBuilder and did not find anything. I use IE as my default browser and just click on run to load the app. Don't know how to create HTML template or how tell FlexBuilder to load one. Can you direct me to some docs or web site? Thanks, J --- In flexcoders@yahoogroups.com, "Abdul Qabiz" abdul.qabiz@ wrote: I don't think FlexBuilder does it by default. But I am sure you can extend FlexBuilder by having some custom html templates...-abdulOn 9/8/06, jburkett7 jburkett7@ wrote: Nick: I thought it could be done with _javascript_, but what I really wanted to know was how or if it could done from FlexBuilder. Can it? Thanks, J --- In flexcoders@yahoogroups.com flexcoders% 40yahoogroups.com, "Nick Collins" ndcollins@ wrote: You do it with _javascript_. Something like the following window.open('somepage.htm','somewindow', 'toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=1,w idth=800,height=600'); On 9/7/06, jburkett7 jburkett7@ wrote: Hello Everyone Sounds interesting. Any ideas on how this can work? J --- In flexcoders@yahoogroups.com flexcoders% 40yahoogroups.comflexcoders% 40yahoogroups.com, "Jack Caldwell" jwcaldwell@ wrote: Hi, Looking at Adobe's JamJar example . . . . http://labs.adobe.com/technologies/jamjar/ Is there a way to launch an application into the browser (IE) from FlexBuilder where it loads in the IE browser without the toolbar, address bar, menus, etc. I understand you can load the application/swf from a web page via _javascript_ - window.open. But for testing, it would be much easier from FlexBuilder. Can it be done from FlexBuilder? If so, what changes need to be made? Thanks, Jack __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: Cairngorm... Where should this go?
You are correct, It is a bit of a stupid question. TextField.setStyle('borderColor', 0xFF); TextField.setStyle('borderThickness', 2); Alert.show('FIX THIS FORM'); TextField.toolTip There are a heap of different ways Personal Implementation --- In flexcoders@yahoogroups.com, Douglas Knudsen [EMAIL PROTECTED] wrote: ok, stupid question, this is a great example, but how do you get this to utilise all those fancy vaildation messages in the Flex SDK. I'm talking about the ones that change the control to red borders and the fly-out error message. DK On 9/8/06, grahampengelly [EMAIL PROTECTED] wrote: Hi Bjorn Thanks for taking the time to throw some code into the discussion. The solution I ended up implementing was similar to the one you suggest. In my case the validation was simple, the user either supplies a number of answers to a question that is between the minimum and maximum allowed or they don't. My point here is that the validation message to the user is more or less predefined. In a more complicated scenario, say a name and address form, it would appear the model would get messy. Just the name field might have required, min max length and [a-z][A-Z] validation rules. Which of these rules is broken and on what field would need to be passed back to the view if you say, wanted to display an instruction to the user or color the appropriate textfield. Having engaged in this discussion I think I have now come to a solution for scenarios like this that would maintain the intent of the MVC pattern. On the model you would maintain a collection of objects such as this: public class ValidationFailedInfo { private var _propertyName:String; private var _message:String; public function get propertyName():String { return _propertyName; } public function get message():String { return _message; } public function ValidationFailedInfo(message:String, propertyName:String) { _message = message; _propertyName = propertyName; } } That would be populated/cleared by a validate() function (not shown but it just applies your rules to the properties of the model). You would also have a method such as: public function GetValidationMessages(propertyName:String):Array { validate(); var messageArr:Array = new Array(); var currValInfo:ValidationFailedInfo = null; for(var x:int = 0; x_validationInfoList.length; x++) { curValInfo = ValidationFailedInfo(_validationInfoList[x]); if(currValInfo.propertyName == propertyName) { messageArr.push(currValInfo.message); } } return messageArr; } You could use this to determine whether each field is valid and if not why not. All of the validation rules would remain in the model as would the message strings that you return. If for example your application supports 10 languages, storing all of the language logic in the view would be a maintenance nightmare wheras this would allow all of that to stay in the model. Thanks for all of your contributions. Can I also take the opportunity to say that this is the most welcoming and active group that I have participated in... Keep it up [image: :D] Graham --- In flexcoders@yahoogroups.com, Bjorn Schultheiss bjorn.schultheiss@ wrote: Gladly, simple example. // view mx:Button label=submit enabled={model.formValidated} / // model data Object public function set username(value:String):void { _username = value; validateForm() } private function validateForm():void { if (_username != undefined) formValidated = true; } This is code i've just typed, but the principle remains the same. Data drives the view via dataBinding. There are alternatives to the way you would structure your models and views but the principle remains the same. Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of grahampengelly Sent: Friday, 8 September 2006 12:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cairngorm... Where should this go? Thanks all for the discussion... So it seems the consensus is the validation, from a pattern purist point of view should sit in the model. Someone suggested a model.isDataValid property... This gives us an indication but how should we be communicating back to the view which data it is that is invalid and what is it that is invalid about it? Should the model dispatch a data invalid
[flexcoders] Re: Cairngorm... Where should this go?
No really so stupid. The default way would be to set the errorString of the control: myTextInput.errorString = Enter something here dummy!; This will automatically add the red border and display the red error message when the cursor is over the control. To remove the border and the message, simply clear the errorString. myTextInput.errorString = ; Bjorn, why so harsh? We all have to start somewhere. -TH --- In flexcoders@yahoogroups.com, bjorn.schultheiss [EMAIL PROTECTED] wrote: You are correct, It is a bit of a stupid question. TextField.setStyle('borderColor', 0xFF); TextField.setStyle('borderThickness', 2); Alert.show('FIX THIS FORM'); TextField.toolTip There are a heap of different ways Personal Implementation --- In flexcoders@yahoogroups.com, Douglas Knudsen douglasknudsen@ wrote: ok, stupid question, this is a great example, but how do you get this to utilise all those fancy vaildation messages in the Flex SDK. I'm talking about the ones that change the control to red borders and the fly-out error message. DK On 9/8/06, grahampengelly graham@ wrote: Hi Bjorn Thanks for taking the time to throw some code into the discussion. The solution I ended up implementing was similar to the one you suggest. In my case the validation was simple, the user either supplies a number of answers to a question that is between the minimum and maximum allowed or they don't. My point here is that the validation message to the user is more or less predefined. In a more complicated scenario, say a name and address form, it would appear the model would get messy. Just the name field might have required, min max length and [a-z][A-Z] validation rules. Which of these rules is broken and on what field would need to be passed back to the view if you say, wanted to display an instruction to the user or color the appropriate textfield. Having engaged in this discussion I think I have now come to a solution for scenarios like this that would maintain the intent of the MVC pattern. On the model you would maintain a collection of objects such as this: public class ValidationFailedInfo { private var _propertyName:String; private var _message:String; public function get propertyName():String { return _propertyName; } public function get message():String { return _message; } public function ValidationFailedInfo(message:String, propertyName:String) { _message = message; _propertyName = propertyName; } } That would be populated/cleared by a validate() function (not shown but it just applies your rules to the properties of the model). You would also have a method such as: public function GetValidationMessages(propertyName:String):Array { validate(); var messageArr:Array = new Array(); var currValInfo:ValidationFailedInfo = null; for(var x:int = 0; x_validationInfoList.length; x++) { curValInfo = ValidationFailedInfo(_validationInfoList[x]); if(currValInfo.propertyName == propertyName) { messageArr.push(currValInfo.message); } } return messageArr; } You could use this to determine whether each field is valid and if not why not. All of the validation rules would remain in the model as would the message strings that you return. If for example your application supports 10 languages, storing all of the language logic in the view would be a maintenance nightmare wheras this would allow all of that to stay in the model. Thanks for all of your contributions. Can I also take the opportunity to say that this is the most welcoming and active group that I have participated in... Keep it up [image: :D] Graham --- In flexcoders@yahoogroups.com, Bjorn Schultheiss bjorn.schultheiss@ wrote: Gladly, simple example. // view mx:Button label=submit enabled={model.formValidated} / // model data Object public function set username(value:String):void { _username = value; validateForm() } private function validateForm():void { if (_username != undefined) formValidated = true; } This is code i've just typed, but the principle remains the same. Data drives the view via dataBinding. There are alternatives to the way you would structure your models and views but the principle remains the same. Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies
[flexcoders] Re: Cairngorm... Where should this go?
Not really so stupid. The default way would be to set the errorString of the control: myTextInput.errorString = Enter something here dummy!; This will automatically add the red border and display the red error message when the cursor is over the control. To remove the border and the message, simply clear the errorString. myTextInput.errorString = ; Bjorn, why so harsh? We all have to start somewhere. -TH --- In flexcoders@yahoogroups.com, bjorn.schultheiss [EMAIL PROTECTED] wrote: You are correct, It is a bit of a stupid question. TextField.setStyle('borderColor', 0xFF); TextField.setStyle('borderThickness', 2); Alert.show('FIX THIS FORM'); TextField.toolTip There are a heap of different ways Personal Implementation --- In flexcoders@yahoogroups.com, Douglas Knudsen douglasknudsen@ wrote: ok, stupid question, this is a great example, but how do you get this to utilise all those fancy vaildation messages in the Flex SDK. I'm talking about the ones that change the control to red borders and the fly-out error message. DK On 9/8/06, grahampengelly graham@ wrote: Hi Bjorn Thanks for taking the time to throw some code into the discussion. The solution I ended up implementing was similar to the one you suggest. In my case the validation was simple, the user either supplies a number of answers to a question that is between the minimum and maximum allowed or they don't. My point here is that the validation message to the user is more or less predefined. In a more complicated scenario, say a name and address form, it would appear the model would get messy. Just the name field might have required, min max length and [a-z][A-Z] validation rules. Which of these rules is broken and on what field would need to be passed back to the view if you say, wanted to display an instruction to the user or color the appropriate textfield. Having engaged in this discussion I think I have now come to a solution for scenarios like this that would maintain the intent of the MVC pattern. On the model you would maintain a collection of objects such as this: public class ValidationFailedInfo { private var _propertyName:String; private var _message:String; public function get propertyName():String { return _propertyName; } public function get message():String { return _message; } public function ValidationFailedInfo(message:String, propertyName:String) { _message = message; _propertyName = propertyName; } } That would be populated/cleared by a validate() function (not shown but it just applies your rules to the properties of the model). You would also have a method such as: public function GetValidationMessages(propertyName:String):Array { validate(); var messageArr:Array = new Array(); var currValInfo:ValidationFailedInfo = null; for(var x:int = 0; x_validationInfoList.length; x++) { curValInfo = ValidationFailedInfo(_validationInfoList[x]); if(currValInfo.propertyName == propertyName) { messageArr.push(currValInfo.message); } } return messageArr; } You could use this to determine whether each field is valid and if not why not. All of the validation rules would remain in the model as would the message strings that you return. If for example your application supports 10 languages, storing all of the language logic in the view would be a maintenance nightmare wheras this would allow all of that to stay in the model. Thanks for all of your contributions. Can I also take the opportunity to say that this is the most welcoming and active group that I have participated in... Keep it up [image: :D] Graham --- In flexcoders@yahoogroups.com, Bjorn Schultheiss bjorn.schultheiss@ wrote: Gladly, simple example. // view mx:Button label=submit enabled={model.formValidated} / // model data Object public function set username(value:String):void { _username = value; validateForm() } private function validateForm():void { if (_username != undefined) formValidated = true; } This is code i've just typed, but the principle remains the same. Data drives the view via dataBinding. There are alternatives to the way you would structure your models and views but the principle remains the same. Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies
RE: [flexcoders] Public getter, private setter?
So actually we investigated further and it turns out this is a bug. The engineer on the language team said that using mixed visibility is supposed to be allowed (I was wrong, this happens occasionally). We have a bug filed. Thanks for pointing it out Thunder! J Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Christian Edward Gruber Sent: Friday, September 08, 2006 6:42 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Public getter, private setter? Hey Paul, I can't speak for Adobe, but in many other languages, accessors/mutators are simply conventions, not actual language constructs. Java, for example, has no understanding that a method is an accessor. It is merely a bean convention that getFoo/setFoo are getters and settors for Foo. So in many languages there is infinite freedom, but less language support. .NET, by contrast, is probably what you are comparing to with it's properties and property accessors. It might be useful to compare languages from a desirability standpoint, but it's often not helpful because languages are implemented differently, and each has its own implementation challenges. It's hard to say why Adobe went this way, but if accessors are more carefully managed by the language, it may be a much easier implementation to pair their access levels. regards, Christian. Paul Andrews wrote: Matt, what has made Adobe depart from what is standard behaviour in other languages. I'm having trouble understanding any reason for this than perhaps an implementation issue (ie, we would have preferred to support independent visibility but we preferred to get it out the door without delay, since this is a relatively minor issue). Paul - Original Message - From: Matt Chotin To: [EMAIL PROTECTED]ups.com Sent: Friday, September 08, 2006 4:48 AM Subject: RE: [flexcoders] Public getter, private setter? Its intentional right now that a getter/setter pair must have a matching visibility modifier. You cant change whether a variable is visible to the compiler based on whether its being read or being written. While we understand the use-case (and debated it internally ourselves) this is the approach were taking right now. -- christian gruber+ process coach and architect Israfil Consulting Services Corporation email[EMAIL PROTECTED]net+ bus 905.640.1119 + mob 416.998.6023 __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Macromedia Flex 2.0 Charts Explorer
That was meant for an old beta. We should take it down. The proper samples are all linked from the dev center: http://www.adobe.com/devnet/flex/?tab:samples=1 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pramod Sent: Friday, September 08, 2006 3:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Macromedia Flex 2.0 Charts Explorer Hi All, I found this link and for some strange reasons it dosent load any content in my system. Is it got something to do with the Browser settings? The link is as follows - http://weblogs.macromedia.com/flex_samples/charts_explorer/explorer.html Regards, Pramod __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Moving flexcoders to Google Groups- would you come along?
Hello all, Frustrations with Yahoo's boards seems to be a fairly universal sentiment here on flexcoders. The comments to Alistair McLeod's latest blog post (http://weblogs.macromedia.com/amcleod/archives/2006/09/flexcoders_post.cfm - discussing the explosion of growth flexcoders has seen recently) raised the issue of moving to Google Groups. Personally, I think it would be a great idea and am wondering if getting everyone to migrate is feasible. With things like Flex-oriented search bar add-ins (http://www.eyefodder.com/blog/2006/08/finding_flex_facts_faster.shtml#more) and smart Google searching (http://www.darronschall.com/weblog/archives/000240.cfm), I don't think migrating archived content is that big of a deal. So, would you come along? Thanks, Ben http://www.returnundefined.com/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Launching App Without Toolbars, Address Bar, etc.
Tim: Thanks for the info. I look at both. J --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Going back to the original question, if you launch jamjar without any parameters, you will have all of the browser menu options. You can then view source to see how they created the full screen effect. http://www.adobe.com/go/labs_jamjar_launch http://www.adobe.com/go/labs_jamjar_launch To add this kind of functionality to your site, modify the html template file in the html-template directory of your project. Or, you can use Abdul's javascript injection class: http://www.abdulqabiz.com/blog/archives/macromedia_flex/a_mxml_compon en.\ php http://www.abdulqabiz.com/blog/archives/macromedia_flex/a_mxml_compo nen\ .php http://www.abdulqabiz.com/blog/archives/macromedia_flex/ http://www.abdulqabiz.com/blog/archives/macromedia_flex/ -TH --- In flexcoders@yahoogroups.com, jburkett7 jburkett7@ wrote: Abdul I looked around in FlexBuilder and did not find anything. I use IE as my default browser and just click on run to load the app. Don't know how to create HTML template or how tell FlexBuilder to load one. Can you direct me to some docs or web site? Thanks, J --- In flexcoders@yahoogroups.com, Abdul Qabiz abdul.qabiz@ wrote: I don't think FlexBuilder does it by default. But I am sure you can extend FlexBuilder by having some custom html templates... -abdul On 9/8/06, jburkett7 jburkett7@ wrote: Nick: I thought it could be done with javascript, but what I really wanted to know was how or if it could done from FlexBuilder. Can it? Thanks, J --- In flexcoders@yahoogroups.com flexcoders% 40yahoogroups.com, Nick Collins ndcollins@ wrote: You do it with javascript. Something like the following window.open('somepage.htm','somewindow', 'toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=1,w idth=800,height=600'); On 9/7/06, jburkett7 jburkett7@ wrote: Hello Everyone Sounds interesting. Any ideas on how this can work? J --- In flexcoders@yahoogroups.com flexcoders% 40yahoogroups.comflexcoders% 40yahoogroups.com, Jack Caldwell jwcaldwell@ wrote: Hi, Looking at Adobe's JamJar example . . . . http://labs.adobe.com/technologies/jamjar/ Is there a way to launch an application into the browser (IE) from FlexBuilder where it loads in the IE browser without the toolbar, address bar, menus, etc. I understand you can load the application/swf from a web page via javascript - window.open. But for testing, it would be much easier from FlexBuilder. Can it be done from FlexBuilder? If so, what changes need to be made? Thanks, Jack -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Problems getting started with flashvars and Application.application.paramete
In my case, the parameter I add to my Flex app is simply calculated in the HTML wrapper page. If it needs to be more dynamic (as you point out), my recipe would be something like this (I use basic J2EE stuff): Somehow the server would receive an HttpServletRequest containing all information that you need to determine the Flex variables Render a JSP that is similar the the HTML wrapper page, with the exception that you add some parameters dynamically to the flashvars section. That should do the trick. Cheers, Franck From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of yaagcur Sent: Friday, September 08, 2006 10:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Problems getting started with flashvars and Application.application.paramete Thanks very much Franck and Adam - that solution worked fine As you can probably imagine that was a baby step towards a more dynamic solution so i was intrigued by your Cold Fusion reference, Adam What I would like to do is be able to launch the Flex page based on the paramaters chosen .e.g. name/hometown both from clicking on, say, a datagrid row in another Flex project - presumably via URLRequest and navigateToURL - or a standard link within an HTML page Looking at the documentation it appears as though either Flex data services(which I was not planning to use) or HttpServletRequest( which i have no experience with) might be required. Is there another way via ColdFusion? --- In [EMAIL PROTECTED]ups.com, Adam Dorritie [EMAIL PROTECTED].. wrote: On 9/8/06, yaagcur [EMAIL PROTECTED] wrote: Thanks Adam - remarkably similar:) Not sure if that thread sorted Kyle out but I'm not quite clear how my HTML is falling short. How does the javascipt AC_FL_RunContent section need amending? The src and flashvars are already included Franck already provided the answer, but I'll say this much. The HTML object and embed are within the noscript portion of the page, in other words the portion of the page which will be executed if _javascript_ is not available. The normal path for processing is to run the _javascript_ AC_FL_RunContent() function. The reason you need to modify this is to include your own FlashVars, in addition to the ones already passed by the default template. In my case I use ColdFusion to dynamically insert FlashVars based upon the Flex application which is running, but all you really have to do is add your own variables. For example: } else if (hasRequestedVersion) { // if we've detected an acceptable version // embed the Flash Content SWF when all tests are passed AC_FL_RunContent( src, myFlexAppName, width, 100%, height, 100%, align, middle, id, myFlexAppName, quality, high, bgcolor, #ff, name, myFlexAppName, flashvars,'historyUrl=history.htm%3Flconid=' + lc_id + '', - Add something like this... flashvars,'myVar1=foomyVar2=bar', allowScriptAccess,sameDomain, type, application/x-shockwave-flash, pluginspage, http://www.adobe.com/go/getflashplayer __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: Problems getting started with flashvars and Application.application.paramete
I tried it, and it works nice. Thanks for the tip. It keeps the page cleaner. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Adam Dorritie Sent: Friday, September 08, 2006 9:21 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Problems getting started with flashvars and Application.application.paramete On 9/8/06, yaagcur [EMAIL PROTECTED]com wrote: Thanks Adam - remarkably similar:) Not sure if that thread sorted Kyle out but I'm not quite clear how my HTML is falling short. How does the javascipt AC_FL_RunContent section need amending? The src and flashvars are already included Franck already provided the answer, but I'll say this much. The HTML object and embed are within the noscript portion of the page, in other words the portion of the page which will be executed if _javascript_ is not available. The normal path for processing is to run the _javascript_ AC_FL_RunContent() function. The reason you need to modify this is to include your own FlashVars, in addition to the ones already passed by the default template. In my case I use ColdFusion to dynamically insert FlashVars based upon the Flex application which is running, but all you really have to do is add your own variables. For example: } else if (hasRequestedVersion) { // if we've detected an acceptable version // embed the Flash Content SWF when all tests are passed AC_FL_RunContent( src, myFlexAppName, width, 100%, height, 100%, align, middle, id, myFlexAppName, quality, high, bgcolor, #ff, name, myFlexAppName, flashvars,'historyUrl=history.htm%3Flconid=' + lc_id + '', - Add something like this... flashvars,'myVar1=foomyVar2=bar', allowScriptAccess,sameDomain, type, application/x-shockwave-flash, pluginspage, http://www.adobe.com/go/getflashplayer __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___