[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/
[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: 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: 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] 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, Tracy Spratt [EMAIL PROTECTED] 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:[EMAIL PROTECTED] On Behalf Of arnold_charming Sent: Monday, August 28, 2006 12:20 PM To: flexcoders@yahoogroups.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/ * 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: Identifying line series for datatip function
Thanks v much That set me on the correct path --- In flexcoders@yahoogroups.com, pasflex [EMAIL PROTECTED] wrote: try trace (LineSeries(h.element).yField) --- In flexcoders@yahoogroups.com, yaagcur agcur@ wrote: To elaborate I want to do something like public function dtFunc(h:HitData):String { trace (h.chartItem.element.yField); } but there is no property yField You used to be able to do obj.hitData.chartItem.element.yField but I think that is no longer available and the chartItemEvent also has not proven the answer to date --- In flexcoders@yahoogroups.com, yaagcur agcur@ wrote: On a line chart with multiple series, I wish to have a datatip function that differs according to which line is hit but I'm having difficulty identifying the property that would tell me that Any help much appreciated -- 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] Anyways to have no Accordion panel showing?
i.e. just have the buttons showing -- 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: Identifying line series for datatip function
To elaborate I want to do something like public function dtFunc(h:HitData):String { trace (h.chartItem.element.yField); } but there is no property yField You used to be able to do obj.hitData.chartItem.element.yField but I think that is no longer available and the chartItemEvent also has not proven the answer to date --- In flexcoders@yahoogroups.com, yaagcur [EMAIL PROTECTED] wrote: On a line chart with multiple series, I wish to have a datatip function that differs according to which line is hit but I'm having difficulty identifying the property that would tell me that Any help much appreciated -- 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: Changing State via VBox
Cheers --- In flexcoders@yahoogroups.com, e baggg [EMAIL PROTECTED] wrote: You need to put the click event on the Accordion. The click event really should call a method which can set the state based on which one was clicked. mx:Accordion click=currentState='Details' mx:VBox.. yaagcur [EMAIL PROTECTED] wrote: I have a vbox within an accordion which when I click on I require to change the stae of the application. I have tried mx:VBox click=currentState='Details' without luck I've played around with putting it in an outside function but cannot get the right answer as of yet Any help much appreciated - Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. -- 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] Identifying line series for datatip function
On a line chart with multiple series, I wish to have a datatip function that differs according to which line is hit but I'm having difficulty identifying the property that would tell me that Any help much appreciated -- 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] Changing State via VBox
I have a vbox within an accordion which when I click on I require to change the stae of the application. I have tried mx:VBox click=currentState='Details' without luck I've played around with putting it in an outside function but cannot get the right answer as of yet Any help much appreciated -- 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: Charting Dilemma....can anyone help?
I'm no expert but what I do for roll overs is import mx.charts.HitData; and in the function do something like private function formatDataTip(h:HitData) : String { return h.item.Publication etc. } --- In flexcoders@yahoogroups.com, Joshua Lingwai [EMAIL PROTECTED] wrote: Im receiving the following run time error when the mouse rolls over one of my charts: ReferenceError: Error #1069: Property hitData not found on mx.charts.HitData and there is no default value. at Chart1/::formatDataTip() at mx.charts.chartClasses::ChartBase/::invokeDTFunction() at mx.charts::HitData/get displayText() at mx.charts.chartClasses::DataTip/set data() at mx.charts.chartClasses::ChartBase/::updateDataTipToMatchHitSet() at mx.charts.chartClasses::ChartBase/::processRollEvents() at mx.charts.chartClasses::ChartBase/::mouseMoveHandler() Here is a section of code I believe is causing the error: private function formatDataTip(obj : Object) : String { var name : String = obj.hitData.item.Publication; var revenue:Number = obj.hitData.item.Size; return bPublication: +name+/bbrSize: + revenue; } Any help would be greatly appreciated Thanks Josh [EMAIL PROTECTED] _ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ -- 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: How do I implement HTML wrapper for loading several SWF files
Sorry Tom but I'm missing something here Do you mean the view source? That just gives me one object with embed src=explorer.swf --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 10 August 2006 00:52, yaagcur wrote: This looks like it might be what I'm after but unfortunately the 'view source' does not appear to be enabled. Any chance of that being amended or is there another similar example with code out there You want the HTML source of the page, not the Flash source - and this is just sat on the disk. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.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: FlexBuilder refusing to Build newer versions of .mxml files !!!
Brian may have provided you with the solution but I had same problem and hacked it by creating a new mxml file and copy-pasting the code from the problem file. That always seems to work AndyC -- In flexcoders@yahoogroups.com, Brian Holmes [EMAIL PROTECTED] wrote: Mike, I had the same problem when I first started using FlexBuilder. What I found was that I had closed the Problems window and couldn't see the errors that were being generated so it looked like it didn't compile and I kept getting file not found errors. Don't know if that's your problem, but that's what I did. Good luck. Brian. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Anderson Sent: Tuesday, August 08, 2006 1:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] FlexBuilder refusing to Build newer versions of .mxml files !!! Hello All, After compiling my default application a few times (and that number can change randomly), FlexBuilder refuses to re-compile my application after subsequent changes to my source code - so I end up seeing the same darn ..swf - time after time. And shutting down FlexBuilder, and restarting has no effect whatsoever either. This is getting exceedingly irritating, because when debugging an app, you always want to change a little code, and then retest it immediately afterwards. So, in theory, I could literally fix the problem with the very next build - but I'd never know it for several builds - because I am not seeing the newer version of the .swf file. Man, I can't convey to you all how peeved I am getting right now... AND after running a Clean on my project, then I get a file not found message, when trying to run the application. Well, no sh** Sherlock - that's what happens when the Compiler doesn't build the .swf file - after deleting it from the deployment directory, previous to the newer build. This is getting really out of control, and I am pleading with you all, to share any similar experiences with me - so that I can get to the bottom of what's going on. Many thanks in advance for any help regarding this, Mike -- 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 *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. *** -- 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] How do I implement HTML wrapper for loading several SWF files
I'm looking for the best way to manage several mxml applications on a web page - probably calling them via a menu One approach mentioned in the docs is Another approach to loading multiple small SWF files rather than one large one is to use the HTML wrapper to provide a framework for loading the SWF files. The Samples Explorer, which is included with Flex 2 SDK, uses HTML frames to load many smaller applications, one at a time This looks like it might be what I'm after but unfortunately the 'view source' does not appear to be enabled. Any chance of that being amended or is there another similar example with code out there Cheers -- 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: Avoiding Multiple Browser Windows/Tags -I s it possible?
Perfect. Thanks --- In flexcoders@yahoogroups.com, Xavi Beumala [EMAIL PROTECTED] wrote: Hi yaagcur, you can set it up in Firefox. Go to Tools - Options - Tabs and then check the radiobutton open links from other applications to the most recent tab/window. Hope that helps X. On 7/30/06, yaagcur [EMAIL PROTECTED] wrote: Each time I run a project it opens a new tab in Firefox. After a few of these are lined up, the project takes much longer to run Is there anyways to get round this in FlexBuilder so that the previous window is used and I dont have to keep closing tabs? cheers -- 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 -- 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] Avoiding Multiple Browser Windows/Tags -I s it possible?
Each time I run a project it opens a new tab in Firefox. After a few of these are lined up, the project takes much longer to run Is there anyways to get round this in FlexBuilder so that the previous window is used and I dont have to keep closing tabs? cheers -- 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] Problems binding results of mx:WebService
I have been using mx:RemoteObject to obtain data via a cfc with returntype query The result comes back as result = mx.collections.ArrayCollection with a list of Objects each with a set of properties which I turn into a bindable ArrayCollection via myAC = new ArrayCollection(mx.utils.ArrayUtil.toArray(event.result)) I then use myAC as the dataProvider for a dataGrid. However, when I use mx:WebService for a similar process, the result is returned as an Array with a list of mx.utils.ObjectProxy each with a set of properties I'm having trouble getting at this data so I can bind it to the dataGrid Any idea what I should be doing - and why RemoteObject and WebService present data differently Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: arrayCollection.addItemAt How to?
You are quite right. setItemAt does knock out a line I should have mentioned that I am trying to construct a reusable combobox component Anyways this seems to do the trick teams.addItemAt({FRANCHNAME:'All Teams',FRANCHID:'All'},0); this.selectedIndex=0; re. prompt. I believe they changed how it works during development so that now it is just for info - but I may be wrong I also found a relevant thread at feed-squirrel http://www.feed-squirrel.com/blog/index.cfm/2006/6/15/Flex-2-Puzzle-No-2-The-Answers --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: The setItemAt() method will replace the item at the specified index, if there is one; addItemAt() adds a new item. Make sure setItemAt() is what you really want by verifying the contents of your combobox. Last time I checked, the prompt item was selectable just like any other item, and much easier to declare. --- In flexcoders@yahoogroups.com, yaagcur agcur@ wrote: Thanks guys I think that what I actually needed is teams.setItemAt({FRANCHNAME:'All Teams',FRANCHID:'All'},0); This sets the extra row in the correct place and displays it as the default. I believe prompt would not be a selectable item and would be more appropriate if a 'Please Select a team' was needed --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ wrote: The addItemAt() function takes an object as the first parameter, not an array of objects. So you'd want: teams.addItemAt( {FRANCHNAME:'All Teams',FRANCHID:'All'} , 0); As Oscar states, there's a prompt property of ComboBox you can use to add that extra row. --- In flexcoders@yahoogroups.com, yaagcur agcur@ wrote: I return a recordset and create a new arraycollection just fine but wish to add an extra row at the top . The following just produces an [object, Object] result in the combo box I populate for the additional entry public function myFunction(event:ResultEvent):void { trace (results returned); teams = new ArrayCollection(mx.utils.ArrayUtil.toArray (event.result.source)); teams.addItemAt([{FRANCHNAME:'All Teams',FRANCHID:'All'}],0); // FRANCHNAME and FRANCHID are the two properties in the object teams.refresh(); } I would also like the combobox to show the new All teams as default in the combobox cheers Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] arrayCollection.addItemAt How to?
I return a recordset and create a new arraycollection just fine but wish to add an extra row at the top . The following just produces an [object, Object] result in the combo box I populate for the additional entry public function myFunction(event:ResultEvent):void { trace (results returned); teams = new ArrayCollection(mx.utils.ArrayUtil.toArray(event.result.source)); teams.addItemAt([{FRANCHNAME:'All Teams',FRANCHID:'All'}],0); // FRANCHNAME and FRANCHID are the two properties in the object teams.refresh(); } I would also like the combobox to show the new All teams as default in the combobox cheers Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: arrayCollection.addItemAt How to?
Thanks guys I think that what I actually needed is teams.setItemAt({FRANCHNAME:'All Teams',FRANCHID:'All'},0); This sets the extra row in the correct place and displays it as the default. I believe prompt would not be a selectable item and would be more appropriate if a 'Please Select a team' was needed --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: The addItemAt() function takes an object as the first parameter, not an array of objects. So you'd want: teams.addItemAt( {FRANCHNAME:'All Teams',FRANCHID:'All'} , 0); As Oscar states, there's a prompt property of ComboBox you can use to add that extra row. --- In flexcoders@yahoogroups.com, yaagcur agcur@ wrote: I return a recordset and create a new arraycollection just fine but wish to add an extra row at the top . The following just produces an [object, Object] result in the combo box I populate for the additional entry public function myFunction(event:ResultEvent):void { trace (results returned); teams = new ArrayCollection(mx.utils.ArrayUtil.toArray(event.result.source)); teams.addItemAt([{FRANCHNAME:'All Teams',FRANCHID:'All'}],0); // FRANCHNAME and FRANCHID are the two properties in the object teams.refresh(); } I would also like the combobox to show the new All teams as default in the combobox cheers -- 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: CF Flash Remoting project results in Jrun servlet error
Bjorn You are spot on. It is not building the directory - at least not in the right place So although I am setting defaults of flex root folder: C:\CFusionMX7\wwwroot flex server url: http://localhost:8500/ It is actually writing the bin folder to the default for the project contents viz. C:\Documents and Settings\Owner\My Documents\Flex Builder 2. As if it was a basic project. The beta had no problem splitting the two folders So if I now have a URL of file:///C:/Documents%20and%20Settings/Owner/My%20Documents/Flex%20Builder%202/test/bin/test.html the page works Alternatively and the right approach presumably, I can create a new output folder (test/bin) in the wizard. Otherwise there is a warning that the output folder is not a subfolder of the server root Then I can successfully run http://localhost:8500/test/bin/test.html However, I did not previously go to that page. Unless there's something specifically odd about my setup I'm not at all clear why Adobe do not default the bin directory to the server root. I definitely did not need to go through this rigmarole in the betas I don't think its building the directory. You will need to confirm that it exists in wwwroot/test/bin/ Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yaagcur Sent: Tuesday, 4 July 2006 11:20 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] CF Flash Remoting project results in Jrun servlet error If I attempt to set up a project using the above wizard, running the project in a browser e.g http://localhost: http://localhost:8500/test/bin/main.html 8500/test/bin/main.html produces the error 404 /test/bin/main.html. This applies even if I am not attempting any remoting e.g just putting a button on the page. The same project done in the basic method produces the correct outcome If I add the additional compiler argument -services C:\CFusionMX7\wwwroot\WEB-INF\flex\services-config.xml -locale en_US to a basic project, the page loads correctly. However I cannot make any remote connections work - just get busy cursor Any ideas on what I can do. Is there a log file somewhere I should be accessing. I cannot determine its whereabouts Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] CF Flash Remoting project results in Jrun servlet error
If I attempt to set up a project using the above wizard, running the project in a browser e.g http://localhost:8500/test/bin/main.html produces the error 404 /test/bin/main.html. This applies even if I am not attempting any remoting e.g just putting a button on the page. The same project done in the basic method produces the correct outcome If I add the additional compiler argument -services C:\CFusionMX7\wwwroot\WEB-INF\flex\services-config.xml -locale en_US to a basic project, the page loads correctly. However I cannot make any remote connections work - just get busy cursor Any ideas on what I can do. Is there a log file somewhere I should be accessing. I cannot determine its whereabouts Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Deploying to remote server - Blank page results F2B3
I have a project which I wish to test on the net Works OK locally but when I copy the html and swf files to my host all I get is a blank page. The files are up there for sure. I use mx:RemoteObject destination=ColdFusion... in the MXML but do not think this is problem as I get the same by deploying one of the sample lessons provided by Adobe -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Extra characters found after end of program (Flex 2 beta 1)
I've had this error a couple of times and have never been able to solve it There are no characters I can find after the mxml file referenced and the line number location listed is neither at end of the program nor contains irrelevant characters In the Problems panel the resource shows the folder name (not an mxml file) and the folder name is blank Any idea whats going on. I cannot compile the file and can only get round this by setting up a different folder -- 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: Extra characters found after end of program (Flex 2 beta 1)
I think I found it. there was an extra rightbrace in program Not at given line number though --- In flexcoders@yahoogroups.com, yaagcur [EMAIL PROTECTED] wrote: I've had this error a couple of times and have never been able to solve it There are no characters I can find after the mxml file referenced and the line number location listed is neither at end of the program nor contains irrelevant characters In the Problems panel the resource shows the folder name (not an mxml file) and the folder name is blank Any idea whats going on. I cannot compile the file and can only get round this by setting up a different folder -- 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] Any way to combine clustered and stacked in a column chart (Flex 2) ?
It's all in the Subject Line An example would be a soccer players goals by year stacking how he scored e.g left foot,right foot, header alongside another stack of play scored from e.g open play, corner, penalty etc. Cheers -- 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: Datagrid row highlighting and locking (Flex2)
--- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: Oh, I forgot to add, your renderer needs to implement the IDropInListItemRenderer interface. VBox implements=mx.controls.listclasses.IDropInListItemRenderer ... ... This gives error Interface method 'get listData' in namespace 'mx.controls.listclasses:IDropInListItemRenderer' not implemented by class 'careerRowRenderer' Or you can simply access the property directly instead of going through `listData.dataField` mx:Label text={dataObject.propertyIWantToAccess]} So I set this to e.g dataObject.Year and it works for the year column Is there someway I can set an array of properties - I note you show one square bracket - if so my attempts have failed to date. Or do I need to have a seperate cell renderer for each column Cheers -- 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: Datagrid row highlighting and locking (Flex2)
Okay, when you said color, I think this is what you were looking for: color={dataObject.totalsRow ? 'red' : 'white'} No it is the background I want changed. However the above example with color also causes the results to go so something is awry My cell renderer(careerRowRenderer) is this mx:VBox xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* backgroundColor={dataObject.totalsRow ? 'red' : 'blue'}/ and a relevant column in the datagrid mx:DataGridColumn headerText=Year columnName=YEAR width=60 cellRenderer=careerRowRenderer/ I just get a red bar on the total row, blue on the others - no Year showing any more. However, when I click on the cell I get [object Object]. Removing the cellRenderer property shows the data again The datagrid is withing a vbox(to show title) which itself is in an accordion - if that has any relevance Make the totals row the first one in the data provider, and set the DataGrid's lockedRowCount to 1. I reset the totalsRow to row one and applied the lockedRowCount=1 but on scrolling down the row is not locked Incidentally any reason why you cannot set lockedRowCount={dp.length}. I tried that and it gave a line above the last (total) row but removed the scroll bar Andrew -- 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: Datagrid row highlighting and locking (Flex2)
--- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 3/12/06, yaagcur [EMAIL PROTECTED] wrote: So where exactly does your VBox display the data? You need to have something like a Label in there. mx:Label text={dataObject[DataGridListData(listData).dataField]} ok. There is nothing in livedocs I could find and I could not relate the ref docs to the above. As you can tell, I am a bit at sea here. Just pasting in tha above gives me a 'undefined property listData error. Do I need to be putting some variables in here or is that all taken care of by the dataObject? Does lockedRowCount=2 work? (I forgot if it starts at 0 or 1) Yes it does. Looks good -- 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] Datagrid row highlighting and locking (Flex2)
I have a datagrid where the final row is a sum of the others Is there anyway of setting its color to be different in order to highlight it. The dataprovider is an arraycollection Also is it feasible to lock the row a la columns? Cheers -- 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: Datagrid row highlighting and locking (Flex2)
--- In flexcoders@yahoogroups.com, Manish Jethani thams for swift response manish Assuming the special row in the data provider is marked with a flag, you can use conditional formatting, like so: !-- cell renderer -- VBox backgroundColor={dataObject.totalsRow ? 'red' : 'white'} This works fine but obliterates the cell entry Unfortunately rows can be locked only from the top. I assume you want to lock this row as the last row in the data grid, and that's not possible (or maybe it's possible with some hacks, but I haven't tried). I'd like to try this out ie locking at top How would I go about it 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/
[flexcoders] Re: Flex and URL variables
http://livedocs.macromedia.com/flex/20beta1/docs/1300.html covers this topic However, although it works if you pass the URL as a .swf, if you try .html (which is presumably what you want) then it fails Hope someone can explain how to do this in Flex 2.0 as it would be a great feature Andy Clark --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: In Flex 2, the Application instance has a parameters property with name/value pairs for the URL parameters and FlashVars. So in an Application script you would just access parameters.number and it would be 3. From other scripts, you would use Application.application.parameters.number. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Thursday, March 02, 2006 2:55 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex and URL variables Flex 1.5 or 2? - Original Message - From: Jonathan Miranda mailto:[EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, March 02, 2006 5:49 PM Subject: [flexcoders] Flex and URL variables Alright, I've done this with Flash before but I'm wondering how similar it is. Let's say I start my app @ http://mysite.com/index.mxml?number=3 What's the easiest way to get that 3 into a variable in Flex? Using FlashVars in the embed/object tags and then somehow do mx.core.application.Application.number as my variable? _ Jonathan Miranda Flexible Master of the Web Try not to become a man of success, but a man of value. - Albert Einstein HealthGrades http://www.healthgrades.com/ : Guiding America to Better Healthcare(tm) NASDAQ: HGRD w (720) 963-3832 c (707) 761-0868 [EMAIL PROTECTED] _ The message contains confidential and/or legally privileged information and is intended for use only by the indicated addressee. If you are not the named addressee you should not disseminate, distribute, or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmissions cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software+d esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1= Web+site+design+developmentw2=Computer+software+developmentw3=Software +design+and+developmentw4=Macromedia+flexw5=Software+development+best+ practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+ developmentw2=Computer+software+developmentw3=Software+design+and+deve lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1 66.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msk=Software+development+best+practice; w1=Web+site+design+developmentw2=Computer+software+developmentw3=Softw are+design+and+developmentw4=Macromedia+flexw5=Software+development+be st+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- 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
[flexcoders] How do I send checkbox results via cfc (flex 2)
I have many checkboxes whose selections I want to send to an MS SQL database with datatype fields , bit (0 or 1) but am having a couple of problems A ticked checkbox provides a cb1.selected = true An unchecked gives cb2.selected = null (although I - presumably mistakenly - thought from the docs it defaulted to false). This appears to happen even if I set selected=false in the mx:CheckBox The CFC has cfargument name=view type=boolean so cannot accept true or false anyways Help appreciated. 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/
[flexcoders] Re: Problem creating Listener (Flex 2)
--- In flexcoders@yahoogroups.com, Matt Horn [EMAIL PROTECTED] wrote: On 1/27/06, yaagcur [EMAIL PROTECTED] wrote: I currently have a tile list which, when clicked on, correctly calls a function mx:TileList id=myTiles dataProvider={myData} listItemRenderer=ThumbNail itemClick=imageClicked() / function createListener():Void { myOtherTiles.addEventListener(MouseEvent.CLICK, myClickListener); } Manish wrote: You're looking for itemClick instead of click (MouseEvent.CLICK). I think either will work You're calling createListener() at some point, right? Try adding it to the creationComplete event of the app tag: mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; height=100% backgroundColor=#FF creationComplete=createListener() matt Matt . That would have been a good plan! Also MouseEventType rather than MouseEvent was needed -- 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] Problem creating Listener (Flex 2)
I currently have a tile list which, when clicked on, correctly calls a function mx:TileList id=myTiles dataProvider={myData} listItemRenderer=ThumbNail itemClick=imageClicked() / I wish to alternatively set up a listener mx:TileList id=myOtherTiles dataProvider={myData} listItemRenderer=ThumbNail / function createListener():Void { myOtherTiles.addEventListener(MouseEvent.CLICK, myClickListener); } function myClickListener(e:MouseEvent):Void { trace (A thumbnail was clicked); } No errors occur (though I do get a warning that the functions have been scoped to Images:Internal) but the myClickListener function is not called -- 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] Comment colors flex 2
Is there any way to set up unique colors for different types of comments which I would like to add e.g Original designers Added Clarification To Do list -- 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] Errors in lines that do not exist (Flex 2)
I have just returned to a project which I thought was working to date but am getting the followin errors Unexpected token Line 496 Expecting rightbrace before end of program Line 1787 The file is 171 lines in toto Not sure what unexpected token is and all leftbraces appear to have corresponding rightbraces Can someone elucidate? -- 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: Sourcing an image using a variable in URL (Flex 2)
Thanks that worked great --- In flexcoders@yahoogroups.com, Deepa Subramaniam [EMAIL PROTECTED] wrote: Hi - You can use databinding to plug in your photoID dynamically. mx:Script var photoID:Number = 1234; /mx:Script mx:Image id=myImage source=http://www.mySite.com/pictures/{String(photoID)}.jpg / -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yaagcur Sent: Friday, January 20, 2006 10:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Sourcing an image using a variable in URL (Flex 2) I have a line mx:Image id=myImage source=http://www.mySite.com/pictures/1234.jpg/ which I want to generalise using a variable photoID to something like mx:Image id=myImage source=http://www.mySite.com/pictures/+photoID+.jpg/ This produces a compile error as the appears before end of URL. I tried the quot; option but just get the broken image icon as a result Any ideas what correct dode is , please -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS * Visit your group flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders 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] Translating Checkbox true/false results (Flex 2.0)
I am using the results of a form to update a database via a coldfusion cfc using a webservice and mx:model How do I best go about translating the result of checkboxes e.g red.selected = true, large.selected=false into the 0's an 1's needed for the corresponding database columns? -- 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: How to reference fields in
Thanks Matt Touch wood its working now --- In flexcoders@yahoogroups.com, yaagcur [EMAIL PROTECTED] wrote: I have a parent mxml which includes a child MXML included in it 'inputForm' In the main mxml is it possible to refer to fields in the child I want to refer to the textfield of a textInput with an id of headLine in a model such as mx:Model id=myInputForm headlineModel{headLine.text}/headlineModel /mx:Model This produces a compilation error of Access of undefined property headLine If I try headlineModel{inputForm.headLine.text}/headlineModel I get a runtime error Property headLine not found on class inputForm and there is no default value -- 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] Missing posts
Unless I'm blind, a couple of posts I made on the 11th haven't yet appeared on the archive, although there are some there posted a day later and they do appear on the yahoo groups site? -- 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: Flex webservice to CFC
Try plain text (no quotes) - worked for me --- In flexcoders@yahoogroups.com, kjlinboomer [EMAIL PROTECTED] wrote: Hello, I am trying to call a CF component from flex using mx:WebService. I am having trouble sending arguments to the component. I get an Array of input arguments did not contain a required parameter at position 0 error. I have tried putting the argument as a single quote as seen below and in double quotes and as a flash var but they all return the same error. If I use a component that requires no arguments then I get a return value and it works fine. Any help with this would be very much appreciated. Below is my mxml for the web service declaration and below that is the CFC code both are in very simple form as I am just trying to get this to work. mx:WebService id=dataFunctions wsdl=http://192.168.168.4:8500/keith/components/reportingNew.cfc?wsdl; showBusyCursor=true mx:operation name=myFunction result=alert(event.result); mx:request myArgument'test'/myArgument /mx:request /mx:operation /mx:WebService cfcomponent cffunction name=myFunction access=remote returntype=string cfargument name=myArgument type=string required=yes cfset myResult=foo cfreturn myResult /cffunction /cfcomponent Thanks, Keith -- 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: Data Grid headers
Thanks Joan. I'll look into that I was hoping there was something like a dataGridRow that you could put atop the grid with relevant properties like th in an HTML Table but i guess if you put things like 'headertext' in the datagridcolumn that is a conflicting approach --- In flexcoders@yahoogroups.com, Joan Tan [EMAIL PROTECTED] wrote: I'm not sure if this will get you what you need, but consider using the headerRenderer property of the DataGrid to create a custom header for a regular datagrid. This pretty much allows you to put anything you want in a datagrid header. Joan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yaagcur Sent: Friday, December 16, 2005 2:40 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Data Grid headers Couple of points a) It seems to me that if I textAlign=right a DataGridColumn then the column header automatically follows that designation even if I want it to be textAlign=center and have entered it so in DataGrid b) How can I have two rows of headers so that the lower row can be a subdivision of higher one e.g Goals Scored Home Away 16 8 .... -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software+d esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1= Web+site+design+developmentw2=Computer+software+developmentw3=Software +design+and+developmentw4=Macromedia+flexw5=Software+development+best+ practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+ developmentw2=Computer+software+developmentw3=Software+design+and+deve lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1 66.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msk=Software+development+best+practice; w1=Web+site+design+developmentw2=Computer+software+developmentw3=Softw are+design+and+developmentw4=Macromedia+flexw5=Software+development+be st+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Sponsor ~-- 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Why is editable=true necessary to allow cellPress events (2.0)
Really? I just checked my application editable=false clicking gets no action editable=true clicking performs as required --- In flexcoders@yahoogroups.com, Joan Tan [EMAIL PROTECTED] wrote: Its not required for editable=true to get cellPress events. - Joan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yaagcur Sent: Sunday, December 18, 2005 2:47 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Why is editable=true necessary to allow cellPress events (2.0) Or am I mistaken? No big deal but what is the common functionality -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software+d esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1= Web+site+design+developmentw2=Computer+software+developmentw3=Software +design+and+developmentw4=Macromedia+flexw5=Software+development+best+ practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+ developmentw2=Computer+software+developmentw3=Software+design+and+deve lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1 66.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msk=Software+development+best+practice; w1=Web+site+design+developmentw2=Computer+software+developmentw3=Softw are+design+and+developmentw4=Macromedia+flexw5=Software+development+be st+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Why is editable=true necessary to allow cellPress events (2.0)
Well not those docs certainly as I'm talking flex 2 (see title) This appears more relevant http://livedocs.macromedia.com/labs/1/flex/wwhelp/wwhimpl/js/html/wwhelp.htm?href=1531.html --- In flexcoders@yahoogroups.com, Sreejith Unnikrishnan [EMAIL PROTECTED] wrote: Open the livedocs .. http://livedocs.macromedia.com/flex/15/asdocs_en/ Click on DataGrid Scroll Down to the end of the page Look at the second sample ... I bet you didnt bother to check the docs first! yaagcur wrote: Really? I just checked my application editable=false clicking gets no action editable=true clicking performs as required --- In flexcoders@yahoogroups.com, Joan Tan [EMAIL PROTECTED] wrote: Its not required for editable=true to get cellPress events. - Joan Yahoo! Groups Sponsor ~-- Most low income homes are not online. Make a difference this holiday season! http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Passing request data into Flex applications
I raised this in the livedocspage but have not received an answerCan parameters be passed via an html rather than swf URL?e.g I would like to have something likehttp://www.mysite.com?player=Jeter as a link to lead to a pagerelating to that player's data -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: DataGrid rowcount (2.0)
having to add an extra row to take account of the header seems counter-intuitive It still leaves a blank row unless I turn the scrollbar off --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 12/19/05, yaagcur [EMAIL PROTECTED] wrote: I have a datagrid which I want populated by data which I know has 20 records If I set rowcount=20 , I get 19 showing with a scroll bar. Scrolling down gives me the final row of data plus another empty row I don't remember exactly, but I think 'rowCount' includes the header. Manish Yahoo! Groups Sponsor ~-- Most low income homes are not online. Make a difference this holiday season! http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Data Grid headers
= columnNumber; columnNumber++; dc2.headerText = subColumn; // dc.setStyle(textAlign, center); dc2.columnName = Column_+column.ColumnID+_+subColumn; dc2.width = columnWidth; lowerGrid.addColumn(dc2); } } } ModelLocator.as --- class ModelLocator { public static var rootObj; public static var data:Array; } On 12/16/05, yaagcur [EMAIL PROTECTED] wrote: Couple of points a) It seems to me that if I textAlign=right a DataGridColumn then the column header automatically follows that designation even if I want it to be textAlign=center and have entered it so in DataGrid b) How can I have two rows of headers so that the lower row can be a subdivision of higher one e.g Goals Scored Home Away 16 8 .... -- 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! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Why is editable=true necessary to allow cellPress events (2.0)
Or am I mistaken? No big deal but what is the common functionality Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] dateChooser (2.0) start date
How would I go about extending back the earliest date the calendar can access? The default just goes back to 1900 Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] DataGrid rowcount (2.0)
I have a datagrid which I want populated by data which I know has 20 records If I set rowcount=20 , I get 19 showing with a scroll bar. Scrolling down gives me the final row of data plus another empty row Setting vScrollPolicy=off just gives 19 rows Am I doing something wrong or is this a bug? Yahoo! Groups Sponsor ~-- Most low income homes are not online. Make a difference this holiday season! http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Data Grid headers
Couple of points a) It seems to me that if I textAlign=right a DataGridColumn then the column header automatically follows that designation even if I want it to be textAlign=center and have entered it so in DataGrid b) How can I have two rows of headers so that the lower row can be a subdivision of higher one e.g Goals Scored Home Away 16 8 .... Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Adding Item to a ComboBox
I was hoping that turning a query into an array via a result handler was such a common practice that someone could quickly set me straight For the record I get compiler errors on this line public var cities:IList = new ArrayCollection({mx.utils.ArrayUtil.toArray(result)}); of Expecting colon before dot Expecting primary expression before rightbrace Expecting rightbrace before semicolon I attempted to what had worked in AS2 private var myObj:Object = result; private var cities:Array = new Array; private var i:Number = 0; for (i=0; imyObj.length; i++) { cities.push({CITY:myObj.getItemAt(i)}) } and got runtime error Error #1006: Call attempted on an object that is not a function. --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 11/18/05, yaagcur [EMAIL PROTECTED] wrote: My attempts to date have ended in failure What kind of failure? When you report that something isn't working, please also explain what you mean by that. Compiler error? Runtime error? Nothing Happens (TM)? public function citiesResultHandler(result:Object) { public var myIList:IList = new ArrayCollection({mx.utils.ArrayUtil.toArray(ContactService.getCities.result)}); // The function to change the collection, and therefore the Array. myIList.addItemAt(All Cities, 0); } Any chance you could point out the errors in the above function I believe that's the compiler's job (AS3 is strongly typed and all that jazz for a reason) :) Okay, honest, I don't know much about the collection API, but I know you have to add an item to the collection (the list's dataProvider property). You have the documentation. Good luck! Manish Yahoo! Groups Sponsor ~-- Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Adding Item to a ComboBox
Thanks Manish. I appreciate your logic re the prompt and am keen to do it the model-view architecture way. I just do not know how to handle the result of the CF query As I explained at the beginning of the thread I want to replace my current mx:ArrayCollection id=cities source={mx.utils.ArrayUtil.toArray(ContactService.getCities.result)} / approach with one that allows me to do addItem My attempts to date have ended in failure e.g. public function citiesResultHandler(result:Object) { public var myIList:IList = new ArrayCollection({mx.utils.ArrayUtil.toArray(ContactService.getCities.result)}); // The function to change the collection, and therefore the Array. myIList.addItemAt(All Cities, 0); } Any chance you could point out the errors in the above function --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 11/18/05, yaagcur [EMAIL PROTECTED] wrote: Several points of clarification please 1) OK so as I understand it, in the final version of Flex 2 prompt will just be for info and will not be bindable, right? If so, is it being replaced by an alternative for easy addition of another item? Yes, you can call addItem on the ComboBox's data provider. That's the easiest way. 2) Using the current alphs I can add an item e.g. 'All States' However, when I try to add it to a combobox which has been populated from a webservice and uses a labelField=STATE then I get the error 'Property STATE not found on Object and there is no default value' Yes, that's a bug I've seen and fixed. The fix was to make the prompt property behave like a prompt rather than like a call to addItem. 3) Is it possible to add more than one prompt e.g Western States, Eastern States and if so how What's the use case? There's only enough space to display one prompt on the ComboBox. You _could_ have a multiline prompt if you want, but it's going to be one prompt in the end (not multiple prompts). 4) Would I be better off going back to using a function and ,if so, how does the post in my original code need to be amended If you want to add an item to the ComboBox, you have to add one to the data provider. That's the model-view architecture, that's how it works. Manish Yahoo! Groups Sponsor ~-- 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/WpTY2A/izNLAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Adding Item to a ComboBox
Several points of clarification please 1) OK so as I understand it, in the final version of Flex 2 prompt will just be for info and will not be bindable, right? If so, is it being replaced by an alternative for easy addition of another item? 2) Using the current alphs I can add an item e.g. 'All States' However, when I try to add it to a combobox which has been populated from a webservice and uses a labelField=STATE then I get the error 'Property STATE not found on Object and there is no default value' 3) Is it possible to add more than one prompt e.g Western States, Eastern States and if so how 4) Would I be better off going back to using a function and ,if so, how does the post in my original code need to be amended Thansk for any help --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 11/17/05, yaagcur [EMAIL PROTECTED] wrote: Though I note from a recent thread that it is not it its final version (fLex2) Yes, the prompt property in Flex 2 will not update the data provider. It'll just display a prompt when nothing in the combobox is selected. If you use the Alpha 1 build though it still works like Flex 1.5. Manish Yahoo! Groups Sponsor ~-- Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex Charting Components 2 distribution
Could I put in a plea for an all-in-one price or at least making the combined cost $1000 It seems to me that charts are fundamental to Flex - many of your house examples incorporate them - and to treat something so core as an add-on is a bit like buying a car for $10,000 and then being told the seats are extra Remember you got the pricing model wrong once already --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: I think the plan at the moment is separately, pricing hasn't been announced. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Cascais Sent: Monday, November 14, 2005 11:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Charting Components 2 distribution Will Flex Builder 2 include the Flex Charting Components 2 or will these be sold separately? If they are to be sold separately, could anyone point me to any [pricing] info regarding this? Thanks, -- Daniel Cascais Tel: +56 (0)2 4589495 Cel: +56 (0)9 9417355 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Sponsor ~-- Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Adding Item to a ComboBox
I currently successfully webservice in a list of schools which I place in a Combobox The key code being a)mx:operation name=getCities b)mx:ArrayCollection id=cities source={mx.utils.ArrayUtil.toArray(ContactService.getCities.result)} / c)mx:ComboBox id=cities_cb dataProvider={cities} labelField=CITY width=150/mx:ComboBox I want to be able to add extra items e.g All Cities I have tried to follow the livedocs example http://livedocs.macromedia.com/labs/1/flex/wwhelp/wwhimpl/js/html/wwhelp.htm?href=0531.html updating an array using the IList interface but am getting multiple errors when I try adding a function to do addItemAt a)mx:operation name=getCities result=citiesResultHandler(event.result) b)public function citiesResultHandler(result:Object) { public var myIList:IList = new ArrayCollection({mx.utils.ArrayUtil.toArray(ContactService.getCities.result)}); // The function to change the collection, and therefore the Array. myIList.addItemAt(All Cities, 0); } c) mx:ComboBox id=cities_cb dataProvider={myIList} labelField=CITY width=150/mx:ComboBox Obviously I am using the wrong terminology in the function Yahoo! Groups Sponsor ~-- Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Internal Build problem (FLEX 2)
I am getting a problem An internal build error has occured Checking the error log it states Warning: valueOf is not a function What should I be looking for I have no valueOf string in the code Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Reverse yaxis (FLEX 2)
Thanks Ely for the hack The pre-multiplying is straightforward and combined with adding mx:LinearAxis minimum=-22 maximum=-1/ gives me the chart I am looking for but the axis looks a bit tacky with all the negative numbers However, I am having trouble appling a labelFunction Attempting to adapt the example in livedocs http://livedocs.macromedia.com/labs/1/flex/1287.html public function defineLabel(catName:String):String { return catName + '04; } getting an error Type Coersion failed: cannot convert 22 to String I have played around with bringing the data across both as a string and a number but cannot seem to get it right -even get the same error when brought in as number and replace string with number as to instances above e.g. public function makePositive(catName:Number):Number { return -1*catName; } Incidentally, do you know if therr are there plans to incorporate a reverse axis option in later releases or somewhere I could add it to a wish list --- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] wrote: No, the axes don't really support inversion. The easiest way would probably be: 1) pre-multiply your values by -1. 2) put a labelFunction on your vertical AxisRenderer that multiplies the label value by -1 to make it look like it's positive. 3) if you want datatips, you'll have to add a dataTipFunction to do the same. Ely. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yaagcur Sent: Friday, November 04, 2005 9:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Reverse yaxis (FLEX 2) Importance: High I want to do a chart which is a ranking of team's position (y axis) in a league over time (x-axis). I would like to reverse the y axis so that if a team is improving over time (say from rank 4 to rank 2) the graph shows an upward movement rather than the downward movement that results from a straight input of the data Unsurprisngly, just having a lower maximum than minimum in the LinearAxis does not do the trick Is this possible another way? Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Chart types (Flex 2)
I am looking to present graphically data on a list of baseball players longevity at a club e.g all New York Yankees players who were at the club at a particular date say 1960 would show those who had careers from 1955-1961 and 1960-1970 etc. I want to have the y axis listing the player names and the x axis showing years. The graph would show each players length of career as a band How would I best go about this in Flex 2. I have played around with the hi-lo chart to some degree of success but that has the axes in the opposite way to my requirements Is there some standard chart I could use? The livedocs article on custom charts has yet to be written Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Yahoo Maps, Flex 2 option
Type annotation is not a compile-time constant:YahooMap looks like Flex error 1046 --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: Can you paste the error exactly? - Original Message - From: yaagcur [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, November 05, 2005 11:23 AM Subject: [flexcoders] Yahoo Maps, Flex 2 option I have the API working fine on 1.5 but although Yahoo quote you'll need Macromedia Flex 1.5 or higher I get a type annotation error when attempting in the 2 alpha I'm guessing the classes need to be AS3 compliant and we need to wait for Yahoo to provide an update Or is there anything that can be done in the interim -- 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! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Yahoo Maps, Flex 2 option
I have the API working fine on 1.5 but although Yahoo quote you'll need Macromedia Flex 1.5 or higher I get a type annotation error when attempting in the 2 alpha I'm guessing the classes need to be AS3 compliant and we need to wait for Yahoo to provide an update Or is there anything that can be done in the interim Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Reverse yaxis (FLEX 2)
I want to do a chart which is a ranking of team's position (y axis) in a league over time (x-axis). I would like to reverse the y axis so that if a team is improving over time (say from rank 4 to rank 2) the graph shows an upward movement rather than the downward movement that results from a straight input of the data Unsurprisngly, just having a lower maximum than minimum in the LinearAxis does not do the trick Is this possible another way? Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: problem adapting to FLEX 2 on defining variables
Yep. That would be no problem. But I want to do other stuff like set a title based on a combination of the result fields. It also bugging me that I cannot get a handle on something pretty basic :) --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: So why not take that array collection that worked and assign to the DataGrid? That's what DataGrid expects now. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yaagcur Sent: Wednesday, November 02, 2005 8:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] problem adapting to FLEX 2 on defining variables I had the following working OK in FLEX 1.5 mx:Script ![CDATA[ var gridResult:Object function getPlayersResultHandler(result):Void { gridResult=result; // other stuff } ]] /mx:Script mx:DataGrid dataProvider={gridResult} However I am finding it impossible to duplicate in FLEX2/AS3 I have tried various alternatives e.g [BINDABLE] public var myTest:Object - which gives me a no type declaration error Placing the variable within the resulthandler gives an access of undefined property error (predictably I suppose) in the mx:DataGrid The data is coming across OK because if I alternatively do mx:ArrayCollection id=gridResult source={mx.utils.ArrayUtil.toArray(ContactService.getPlayers.result)} / I can populate fine And also putting breakpoints in the resulthandler I get debug results e.g result=[](0x6c5c746) [0] Object FULLNAME=Joe Blow -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexc=4s=126.sig=ynjozILdtUiijfLjiz 5l1Q Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software+d esign+and+developmentw4=Macromedia+flexc=4s=126.sig=i_RMdAMzxP1R8fB7 NcnaqQ Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1= Web+site+design+developmentw2=Computer+software+developmentw3=Software +design+and+developmentw4=Macromedia+flexc=4s=126.sig=4g8hODKyQov1GX OxaXG2Sg Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+ developmentw2=Computer+software+developmentw3=Software+design+and+deve lopmentw4=Macromedia+flexc=4s=126.sig=hhODNnONza_qi3x2OWe-Qg YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: FLEX 2. What happens on Alpha expiry
Thanks for the info, Phil Will there be an increase in build speed? That's a drag for buggy newbies like me --- In flexcoders@yahoogroups.com, Philip Costa [EMAIL PROTECTED] wrote: We'll release another build before the alpha expires. Phil Costa Sr. Product Manager Macromedia -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yaagcur Sent: 02 November 2005 15:50 To: flexcoders@yahoogroups.com Subject: [flexcoders] FLEX 2. What happens on Alpha expiry My copy expires in less than four months well before projected product release For those not selected for the beta program will the alpha be extended? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexc=4s=126.sig=ynjozILdtUiijfLjiz 5l1Q Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software+d esign+and+developmentw4=Macromedia+flexc=4s=126.sig=i_RMdAMzxP1R8fB7 NcnaqQ Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1= Web+site+design+developmentw2=Computer+software+developmentw3=Software +design+and+developmentw4=Macromedia+flexc=4s=126.sig=4g8hODKyQov1GX OxaXG2Sg Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+ developmentw2=Computer+software+developmentw3=Software+design+and+deve lopmentw4=Macromedia+flexc=4s=126.sig=hhODNnONza_qi3x2OWe-Qg YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] FLEX 2. What happens on Alpha expiry
My copy expires in less than four months well before projected product release For those not selected for the beta program will the alpha be extended? Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Referencing a combobox label (FLEX 2)
Thanks Matt. So simple --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: If you are passing in strings to the ComboBox then you want to use startYear.selectedItem, if you pass in objects that have label properties you want to use startYear.selectedItem.label. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yaagcur Sent: Friday, October 28, 2005 3:41 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Referencing a combobox label (FLEX 2) I'm still struggling with this If I create an array e.g. private var startYear:Array= [{label:2005 }, {label:2004 }, {label:2003} ]; then startYear.selectedItem.label gives me say 2005 correctly If I, alternatively, create an extended combobox a la the illustration in livedocs http://livedocs.macromedia.com/labs/1/flex/wwhelp/wwhimpl/js/html/wwhelp .htm?href=1531.html mx:dataProvider mx:String2005/mx:String mx:String2004/mx:String mx:String2003/mx:String /mx:dataProvider The resulting use of the combobox with id =startYearpopulates correctly but I get the error Property label not found on Object and there is no default value Any suggestions most welcome --- In flexcoders@yahoogroups.com, yaagcur [EMAIL PROTECTED] wrote: Deepa Thanks for suggestion tried that and got error on initializtion of 'Property label not found on Object and there is no default value' and when I selected a year fom the comboBox the error that the required parameter was not found Passing constants or the value of a text field as paramaters do work Just cannot pick up the combo label --- In flexcoders@yahoogroups.com, Deepa Subramaniam [EMAIL PROTECTED] wrote: Hi- Try startYear.selectedItem.label in your Model. Deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yaagcur Sent: Wednesday, October 26, 2005 11:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Referencing a combobox label (FLEX 2) I am trying to get the value selected from an extended combobox into a model which I subsequently use as a parameter in a webservice The relevant pieces of code I am trying are Form MyComp:testYearsComboBox id=startYear / Model mx:Model id=myFormModel minYearModel{startYear.label}/minYearModel WebService mx:operation name=getQuery mx:request startYear{myFormModel.minYearModel}/startYear /mx:request /mx:operation I am getting this error 'Access of undefined property label through a reference with static type ' -- 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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexc=4s=126.sig=ynjozILdtUiijfLjiz 5l1Q Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software+d esign+and+developmentw4=Macromedia+flexc=4s=126.sig=i_RMdAMzxP1R8fB7 NcnaqQ Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1= Web+site+design+developmentw2=Computer+software+developmentw3=Software +design+and+developmentw4=Macromedia+flexc=4s=126.sig=4g8hODKyQov1GX OxaXG2Sg Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+ developmentw2=Computer+software+developmentw3=Software+design+and+deve lopmentw4=Macromedia+flexc=4s=126.sig=hhODNnONza_qi3x2OWe-Qg YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
[flexcoders] Re: Referencing a combobox label (FLEX 2)
Deepa Thanks for suggestion tried that and got error on initializtion of 'Property label not found on Object and there is no default value' and when I selected a year fom the comboBox the error that the required parameter was not found Passing constants or the value of a text field as paramaters do work Just cannot pick up the combo label --- In flexcoders@yahoogroups.com, Deepa Subramaniam [EMAIL PROTECTED] wrote: Hi- Try startYear.selectedItem.label in your Model. Deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yaagcur Sent: Wednesday, October 26, 2005 11:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Referencing a combobox label (FLEX 2) I am trying to get the value selected from an extended combobox into a model which I subsequently use as a parameter in a webservice The relevant pieces of code I am trying are Form MyComp:testYearsComboBox id=startYear / Model mx:Model id=myFormModel minYearModel{startYear.label}/minYearModel WebService mx:operation name=getQuery mx:request startYear{myFormModel.minYearModel}/startYear /mx:request /mx:operation I am getting this error 'Access of undefined property label through a reference with static type ' -- 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! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex 2. Chart Installation problems
Matt Thanks for replying - I have got some livedocs examples working now I guess my problem was that I was just transposing the 1.5 chart examples. Hopefully there will be an update for 2.0 soon (inc drilldown on stacked charts) Andrew --- In flexcoders@yahoogroups.com, Matt Horn [EMAIL PROTECTED] wrote: What happens if you create a simple chart from scratch (there are plenty of examples in the doc)? Is it that the sample is not working or no charts at all are working? And when you say appropriate directories can you be more specific? Tnks, Matt Horn -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yaagcur Sent: Sunday, October 23, 2005 5:39 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 2. Chart Installation problems Sorry if this a repost but cannot see it on the list from yesterday I've extracted the charts.swc and categories.xml to the appropriate directories and copied the BarBasic.mxml and regiondata.xml files from the chartexplorer to a new project However when I run the mxml with no changes I just get a blank chart. No errors in debugging so presumably it is seeing the xml data OK Anyone else having problems or could point me in tight direction Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM -- --~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flex 2. Chart Installation problems
Sorry if this a repost but cannot see it on the list from yesterday I've extracted the charts.swc and categories.xml to the appropriate directories and copied the BarBasic.mxml and regiondata.xml files from the chartexplorer to a new project However when I run the mxml with no changes I just get a blank chart. No errors in debugging so presumably it is seeing the xml data OK Anyone else having problems or could point me in tight direction Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Hiding a datgrid column
Thanks guys. All your points were very helpful One more thing. If I use Deepa's solution how do I change the attributes of the column e.g headertext, width --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Performance wise, removing the DataGrid column, as Deepa showed, might be relatively more efficient. Where as having column with zero-width might still take memory.. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Tuesday, October 11, 2005 5:24 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Hiding a datgrid column As I recall, setting a column's width to zero works pretty well for hiding it. I haven't tried this recently. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Deepa Subramaniam Sent: Tuesday, October 11, 2005 6:54 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Hiding a datgrid column Yes - You would want to do listen to your checkbox's click event and then programmatically add or remove columns by using the API provided by the DataGrid component. Below is something very simple and not too reusable, but you get the point.. mx:Script import mx.controls.gridclasses.*; var dp:Array = [{label:label1, data:data, bool:true}, {label:label2, data:data, bool:true}, {label:label3, data:data, bool:false}, {label:label4, data:data, bool:false}]; public function changeDGCols(e):Void { if (e.target.selected) { var col:Object = new DataGridColumn(bool); dg.addColumnAt(0, col); } if (!e.target.selected) { dg.removeColumnAt(0); } } /mx:Script mx:CheckBox label=show boolean column click=changeDGCols(event);/ mx:DataGrid id=dg dataProvider={dp} width=200 mx:columns mx:Array mx:DataGridColumn columnName=label / /mx:Array /mx:columns /mx:DataGrid -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yaagcur Sent: Tuesday, October 11, 2005 2:20 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Hiding a datgrid column Is there any wasy that a user can determine which columns are shown in a datagrid via, say, a check box control -- 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 -- 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 -- 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! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Hiding a datgrid column
Is there any wasy that a user can determine which columns are shown in a datagrid via, say, a check box control Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Sorting a datagrid by column in a numeric way...?
I use this function. I think it was from this list function sortGrid(a, b, index) { var result; var field; var field = yourDataGrid.columns[index].columnName; var i1 = a[field]; var i2 = b[field]; var i1 = Number(a); var i2 = Number(b); if (i1 == i2) result = 0; else if (i1 i2) result = -1; else result = 1; return result; } and then put sortCompareFunction=sortGrid in relevant datagridcolumns --- In flexcoders@yahoogroups.com, jrab2999 [EMAIL PROTECTED] wrote: Hi again, I have a datagrid with 3 cols. Col 1 + 2 consists of alphanumerical values, col 3 has numerical values. The default sort is alphanumeric. How to change the sort of col 3 to a numerical way? Cannot find anything about it in docs. Best regards, Jurek Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Charting
If anyone is interested.. I sorted it Forgotten to add a line in the function chartArray=new Array(); --- In flexcoders@yahoogroups.com, yaagcur [EMAIL PROTECTED] wrote: Bit Johnny-come-lately, but I'm trying to do the same thing Not from a computing background, but did something similar to this in Flash which seemed to work ![CDATA[ var v:Object var chartArray:Array var i:Number function ResultHandler(result):Void { v = result; for (i=0; iv.length; i++) { chartArray.push({field1:v.getItemAt(i).field1,fiel d2:v.getItemAt(i).field2}); } } ]] If I use v as the dataprovider for a datagrid everything works fine In a chart, only the field showing as a categoryField works So I am trying to construct an Array but the chartArray does not seem to form as I have set it up Anyone know where I'm going wrong? --- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] wrote: Rich -- the charts will work fine on objects instead of xml, but they are written to work only off of a flat array of objects. As you have discovered, there is no way to point a particular series to look down into a nested reference in the dataprovider for its data. This is a great feature request, so if you want to submit it to the wish list that would be great. In the meantime, you'll have to masssage your data into a flat list, either on the client or the server, before displaying it in the chart. Ely. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod [EMAIL PROTECTED] On Behalf Of Rich Tretola Sent: Thursday, June 16, 2005 5:42 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Charting Importance: High Has anyone done any charting with complex objects or are all using only basic xml for charting data ? Rich On 6/15/05, Rich Tretola [EMAIL PROTECTED] wrote: All of the macromedia examples are using xml for their datasource and then hard coding the node name into the column series. Example: XML: data result month=Jan-04 average=203443 apple224254/apple orange221819/orange banana164256/banana /result result month=Feb-04 average=180365 apple191012/apple orange217965/orange banana132120/banana /result /data Column Series: mx:series mx:Array mx:ColumnSeries yField=apple name=Apple/ mx:ColumnSeries yField=orange name=Orange/ mx:ColumnSeries yField=banana name=Banana/ /mx:Array /mx:series Is there anyway to use a dataprovider specific to the ColumnSeries Array or wrap the ColumnSeries tag with a repeater ? I can't seem to get either to work. My data consists of an array of year objects with a sub array of quarter objects. Object FiscalYear: year:String revenue:Number: 10 Array: quarters Object Quarter: year:String: quarter:String revenue:Number I want to have a grouped chart with a grouping for each year that has 4 columns representing each quarter. Rich Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Cannot get Remote objects connection
Did a quick search of archives without luck but bear with me if this has already been answered I am trying to get data returned from a CFC on a remote machine (the same problem applies on a local machine) I have done this successfully with Flash thus NetServices.setDefaultGatewayUrl(http://www.mysit e.com/flashservices/gateway); gatewayConnnection = NetServices.createGatewayConnection(); mlb = gatewayConnnection.getService(mlc.mlbSQL, this); mlb.getTeams(); However, attempting to duplicate this in Flex, the remote call is made according to the FlexBuilder but there is no response The relevant part of the code I use is mx:RemoteObject id=test source=mlc.mlbSQL endpoint=http://www.mysite.com/flashservices/gateway; result=teamList=event.result showBusyCursor=true /mx:RemoteObject mx:Button label=Get Teams click=test.getTeams()/ I have place the mxml file in the samples directory and amended the flex-config.xml file remote-objectswhitelistunnamedsource*/source and for good measure http-service-proxywhitelist unnamedurlhttp://*/url Can you plese point out what I'm doing incorrectly Thanks Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Cannot get Remote objects connection
--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: How are you determining that there is no response? via the Network Monitor Instead of assigning the result directly to a variable, call a handler function. Then put a breakpoint in that function. I tried something like this mx:Script ![CDATA[ var playerList:Object; function onGetData(event:Object):Void { playerList = event.result; } function TestEffectHandler(): Void { var counter:Number; var tempCounter:Number = 0;; for (counter=0; counter5; counter++) { tempCounter=counter+tempCounter; trace(Counter = + counter); } } ]] /mx:Script mx:RemoteObject id=test endpoint=http://www.majorleaguecharts.com/flashservices/gateway; source=mlc.mlbSQL showBusyCursor=true mx:method name=GetData result=onGetData(event) / mx:method name=TestDeBugger result=onGetData(event) / /mx:RemoteObject Not sure if this would work but nothing got shown in the flex\logs\flex.log file or in command window. I'm not sure my debugger is working properly However, in the flashlog.text file there was some activity including *** Security Sandbox Violation *** at (Frame 1 of Layer Name Layer 1:2) Connection to http://www.majorleaguecharts.com/flashservices/gateway halted - not permitted from http://localhost:/samples/explorer/data/myRemoteObjectDemorevised.mxml.swf?networkCapturePort= As another responder mentioned the crossdomains.xml might that be the problem? I may need to do remote to my own CF server Also, enable remote object debugging in flex-config, see what that shows, in the flex server command window, or in the logs. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yaagcur Sent: Monday, October 03, 2005 9:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cannot get Remote objects connection Did a quick search of archives without luck but bear with me if this has already been answered I am trying to get data returned from a CFC on a remote machine (the same problem applies on a local machine) I have done this successfully with Flash thus NetServices.setDefaultGatewayUrl(http://www.mysit e.com/flashservices/gateway); gatewayConnnection = NetServices.createGatewayConnection(); mlb = gatewayConnnection.getService(mlc.mlbSQL, this); mlb.getTeams(); However, attempting to duplicate this in Flex, the remote call is made according to the FlexBuilder but there is no response The relevant part of the code I use is mx:RemoteObject id=test source=mlc.mlbSQL endpoint=http://www.mysite.com/flashservices/gateway; result=teamList=event.result showBusyCursor=true /mx:RemoteObject mx:Button label=Get Teams click=test.getTeams()/ I have place the mxml file in the samples directory and amended the flex-config.xml file remote-objectswhitelistunnamedsource*/source and for good measure http-service-proxywhitelist unnamedurlhttp://*/url Can you plese point out what I'm doing incorrectly 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! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Cannot get Remote objects connection
Thanks for the suggestion. I'll do a search. The call is to a remote site and I'm getting an error *** Security Sandbox Violation *** at (Frame 1 of Layer Name Layer 1:2) Connection to http://www.majorleaguecharts.com/flashservices/gateway halted - not permitted from http://localhost:/samples/explorer/data/myRemoteObjectDemorevised.mxml.swf?networkCapturePort= which suggests that may be the problem? I would have to switch connection to my own CF server by the look of it where I have control of that file --- In flexcoders@yahoogroups.com, Dave Carabetta [EMAIL PROTECTED] wrote: On 10/3/05, yaagcur [EMAIL PROTECTED] wrote: Did a quick search of archives without luck but bear with me if this has already been answered I am trying to get data returned from a CFC on a remote machine (the same problem applies on a local machine) I have done this successfully with Flash thus NetServices.setDefaultGatewayUrl(http://www.mysit e.com/flashservices/gateway); gatewayConnnection = NetServices.createGatewayConnection(); mlb = gatewayConnnection.getService(mlc.mlbSQL, this); mlb.getTeams(); However, attempting to duplicate this in Flex, the remote call is made according to the FlexBuilder but there is no response The relevant part of the code I use is mx:RemoteObject id=test source=mlc.mlbSQL endpoint=http://www.mysite.com/flashservices/gateway; result=teamList=event.result showBusyCursor=true /mx:RemoteObject mx:Button label=Get Teams click=test.getTeams()/ I have place the mxml file in the samples directory and amended the flex-config.xml file remote-objectswhitelistunnamedsource*/source and for good measure http-service-proxywhitelist unnamedurlhttp://*/url Can you plese point out what I'm doing incorrectly Thanks Did you properly create your crossdomain.xml file on the ColdFusion server so that it will accept AMF calls? Search the archives for more info, as this one has been covered many times. Also, if you're using CFMX pre-7.01, then put a ? at the end of the gateway URL due to a gateway caching bug that was in previous versions, like so: http://www.mysite.com/flashservices/gateway? Regards, Dave. Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/