[flexcoders] Re: Focusing cell on datagrid
the way you focus on a cell, is you have to set the datagrid focusedCell property. you could do the following. 1) always save the currentcell position in cellFocusIn 2) make the remoteobject call whenever the datagrid change is trigerred and set a boolean variable. (Now are you sure you want to make that remoteobject call after a DataGrid.change event. I dont think 'change' is trigerred if you use the tab key.) 3) then in back in your cellFocusIn function, check the value of this boolean. if its false, refocus back on your recently focused cell eg (untested) mx:Application mx:DataGrid id=dg cellFocusIn=doCellFocusIn change=doChange mx:Script var validationResult:Boolean; var myCell; function doChange() { //make your remoteobject call - return handler(returnDoChange()) } function returnDoChange() { validationResult = true or false } function doCellFocusIn(event) { if(validationResult || myCell == undefined) { myCell = {itemIndex:event.itemIndex, columnIndex:event.columnIndex}; } else { this.focusedCell = undefined; this.focusedCell = myCell; } see if something like this is any good for you. --- In flexcoders@yahoogroups.com, thisdudenamedjon [EMAIL PROTECTED] wrote: I'm sorry. Let me rephrase my question and make this a little simpler. I have an editable datagrid. Whenever the change event is called, I send the dataProvider to a remoteObject for validation. What I would like to do is to prevent the user from editing any other cell if the validation finds errors in the recently edited cell. I would like to force the focus to be on invalid cell until the error is corrected. I'm open to any suggestions on the best way to do this. Thank you. Jon --- In flexcoders@yahoogroups.com, bhaq1972 [EMAIL PROTECTED] wrote: I'm not sure if this is what your asking so i might be wrong after you've done your async remote object call and your focused on a combobox cellrenderer use this code (untested) //maybe in cellFocusIn? if(dg.cellEditor.className ==ComboBox) { dg.cellEditor.addEventListener(open, mx.utils.Delegate.create (this, doOpen)); } create a function in your page called do Open function doOpen(event) { event.target.close(); } so everytime someone opens the combobox cell renderer, it closes. --- In flexcoders@yahoogroups.com, thisdudenamedjon [EMAIL PROTECTED] wrote: I have a datagrid with several columns of cells that are editable and a custom combobox cell renderer. When a user edits a cell and leaves, I pass that entire row to a RemoteObject to do some validation. If there are errors, I want to keep that cell focused until the errors are corrected. Right now, I have implemented this using my datagrid's change and cellEdit listeners to simply dispose the celleditor and set focused cell to the errored cell. However, with my combobox, Mm invalid cell simply loses focus and I am able to access and change it. I do not want to allow access to this combobox while I still have an error. Can someone point me towards a more elegant solution or something to force the focus back onto the invalid cell when I access the combobox. 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/
RE: [flexcoders] titlewindow move end
You could use the mouseUp event to check when the window is released, the 'move' event will be triggered as the component is being dragged. Philippe Maegerman From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXLSent: samedi 8 octobre 2005 3:08To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] titlewindow move end move.my_panel.addEventListener("move", this);function move(){ trace("cracka moved!");}- Original Message - From: "Rajesh Jayabalan" [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Friday, October 07, 2005 7:38 PMSubject: [flexcoders] titlewindow move endHi,I want to findout where a titlewindow has moved? so that I can setthe position is the user has moved the titlebar outside the screen area. Does anyone know what event is generation when a move of titlewindowis ended and how to trap it.RegardsRajesh J--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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 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. --**STATEMENT OF CONFIDENTIALITY** This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.--
Re: [flexcoders] [Ann] Update on Sydney Dev Group Oct Meeting
bugga, i'm in Syd on wed :) oh well. Macromedia do use their own tools to promote finished software. The Studio8 online campaign was fantastic along with others i'm sure. What you all will be seeing on the 17th is a public ALPHA build of the FLEX 2.0 suite. This is the first time they have ever done something like this so quickly, so its all new territory. Who knows what they will do in terms of marketing behind this. The next gen FLEX suite is going to absorb millions more developers then their currenlty is available now. It will most likely done by word of mouth or show tell... Again, alpha... not even beta yet. On 10/10/05, James [EMAIL PROTECTED] wrote: Chris,I'm really surprised that a company such as Macromedia won't use it's owntechnology to get out the word. Doesn't it make more sense to use streamingvideo to get the word out? I mean really, a media company that refuses to use its resources...BTW - unless MM decides to send all of us poor slobsfrom the US to Australia for the conference, I guess be there or be...just doesn't apply.Nice to know what's going on James-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Chris Velevitch Sent: Sunday, October 09, 2005 6:59 PMTo: [EMAIL PROTECTED]Cc: Flash Developers List; Flashcoders mailing list; flexcoders@yahoogroups.comSubject: [flexcoders] [Ann] Update on Sydney Dev Group Oct MeetingI'm pleased to announce that Mark Blair of Macromedia will be presenting.We should be able to get a good picture on what's coming with Flex 2 and Flash Player 8.5.Note: All attendees are asked to observe the following restrictions:- No one can take photos / screenshots / recordings etc and blog themIn other words, be there or be ... Please also note that the meeting start promptly at 6:30pm so pleasearrive at 6.While FlashDev meetings are free and open to all it's best to RSVPtoday to help with the catering ( http://www.flashdev.org.au/rsvp).On 10/7/05, Chris Velevitch [EMAIL PROTECTED] wrote: Tue 11 October Flex 2 and Flash Player 8.5 6pm for 6:30 start at MLC School Burwood On the 6th of October, Macromedia announced Flex 2 and Flash Player 8.5. This is very short notice, but we'll try to give and overview based on some very sketchy and early details. While FlashDev meetings are free and open to all it's best to RSVP to help with catering. http://www.flashdev.org.au/program/Chris--Chris VelevitchManager - Sydney Flash Platform Developers Groupwww.flashdev.org.au--Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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 ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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/-- Regards,Scott Barnes http://www.mossyblog.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Datagrid bug, two rows selected at the same time.
Hello Flexcoders, If I could only give you a simple snippet which could reproduce this Mandelbug, it certainly would make my life easier. But alas, I can only give you a textual explanation with the hope that someone can help shed some light on this. Basically I have a datagrid in which I would like to have the first item selected after the data loads. I achieve this by databinding a function on the selectedIndex property like this: mx:DataGrid selectedIndex= { helper.getSelectedIndexInDatagrid( mFilterProvider.filteredData ) } / filteredData is a property of my filtering data provider. I databind to that so that the function gets called as the data comes in from the server side, or when client side filtering happens. getSelectedIndexInDatagrid is a rather straightforward function. It returns 0, and also sets a selectedItem property in the main view so that a details panel can render the data of the 0th item. It looks something like this: /** * Return back an item to the datagrid during databinding. * */ public function getSelectedIndexInDatagrid(filteredData):Number { view.selectedItem = filteredData.dataProvider.getItemAt( 0 ); return 0; } This works, mostly The data loads, the first item is selected and the selecteItem property of the view gets populated. If I try to select another row in the datagrid, the 0th selected row stays selected. Two rows highlighted at the same time. Note: the mutlipleSelect property is not set to true. I move my mouse over the 0th row and the selection disappears and all acts like normal. I need to solve this bug, and have tried numerous workarounds to no avail. Any suggestions will be warmly received. Best, al -- 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. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.13/126 - Release Date: 09/10/2005
RE: [flexcoders] Cairngorm 2.0
Hi Vinny, Cairngorm is an open-source project which is overseen by a committee (http://www.richinternetapps.com/archives/95.html). The acquisition of iteration::two by Macromedia does not change that. Cheers, Ali -- Alistair McLeod RIA Practice Director (EMEA) Macromedia Consulting [EMAIL PROTECTED] Office: +44 (0)131 338 6108 This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Vinny Timmermans Sent: 08 October 2005 12:45 To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairngorm 2.0 Steven, Now you and Ali have become payroll employees, bound to many company rules and regulations, and no longer independent entrepreneurs, what will be the effect on the next release of Cairngorm? Is cairngorm acquired by Macromedia as part of the deal? Will it become the standard MM framework for Flex development? Etc etc. Vinny 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 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] HttpService Push (Re: HTTPService timeout)
No not quite. That would be polling. I am *not* suggesting polling. What I am suggesting is using a Blocking Registration pattern to handle this. Basically you get Flex to make an HTTP request to say a servlet in your webserver. That http call will hang. Since the player makes an http request on its own thread, this hang has no impact on the UI. Now when the event occurs the servlet releases the hung connection, which returns data and the result handler on the client fires and delivers the event to the UI. Viola. Effectively server-push but without the major issues of server-push or true client-pull. This design has been tested in basically some of the biggest financial services applications in the world. Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY x85 --- In flexcoders@yahoogroups.com, Eric Raymond [EMAIL PROTECTED] wrote: Are you talking about the client repeatedly calling an HttpService via a timer? While that is more straight forward to execute and rather rock solid, I'm curious in what types of situations this is more scalable and has better quality of service than true server push. Or perhaps you were referring to some form of Http streaming ala Ajax? My understanding is that this was not possible in Flex. --- In flexcoders@yahoogroups.com, Dave Wolf [EMAIL PROTECTED] wrote: This is a very elegant way to handle server-push. It solves a myriad of issues that true server-push has. It is more scalable, has better quality of service, etc. You just need a servlet programmer who knows how to write thread safe code. Do note that each client will then tie up an HTTP thread, so you may need to allocate more in your server. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Friday, October 07, 2005 10:45 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] HTTPService timeout Currently HTTPService doesn't support a timeout on its own. You'll need to use your own mechanism with setInterval. 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] Please Help!!!!
I am new with flexand I am having problem understanding how I can communicate with the database (msyql). If there is someone that could help me understand how I can insert data to the database (mysql) using coldfusion and flexI would really appreciate it. A sample code will be great! Thank you in advance Alfie 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: Function using selectedChild does not like the argument I'm sending it
Solved this with: mx.core.Application.application.nextScreenName = eval (event.target.data); --- In flexcoders@yahoogroups.com, face7hill [EMAIL PROTECTED] wrote: Hi Everyone, I have a ViewStack with a bunch of screens in my Main.mxml app. On the first viewstack (mainViewStack.selectedChild=screen0) I'm calling a component (Screen0.mxml). Inside that component, I have a bunch of radio buttons. When a user clicks a radio button, the buttonClicked() function is called, which then assigns a value to my variable nextScreenName in my main app. The main app has a button (nextButton) which when clicked activates goToScreenName (nextScreenName). For some reason, the function goToScreenName(x) will not take the argument from the radio buttons even though it is being sent (I checked). I have a feeling that this is a variable typing problem. If I rewrite the function to use selectedIndex instead, and have the radio buttons broadcast numbers, it works fine. But it doesn't work with sending strings for selectedChild. Anybody have any ideas why? Thanks folks! !-- Main.mxml -- mx:Script ![CDATA[ var nextScreenName; function goToScreenName(x){ mainViewStack.selectedChild = x; } ]] /mx:Script mx:ViewStack id=mainViewStack Screen0 id=screen0 / Screen1 id=screen1 / Screen2 id=screen2 / Screen3 id=screen3 / Screen4 id=screen4 / /mx:ViewStack mx:Button id=nextButton label=Next click=goToScreenName (nextScreenName);/ !-- Screen0.mxml -- mx:Script ![CDATA[ function buttonClicked( event : Object ) : Void { //This does not work //mx.core.Application.application.nextScreenName = String (event.target.data); //This does not work either //mx.core.Application.application.nextScreenName = event.target.data; } ]] /mx:Script mx:RadioButton label=Screen 1 data=screen1 click=buttonClicked ( event );/ mx:RadioButton label=Screen 2 data=screen2 click=buttonClicked ( event );/ mx:RadioButton label=Screen 3 data=screen3 click=buttonClicked ( event );/ mx:RadioButton label=Screen 4 data=screen4 click=buttonClicked (event);/ 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] SOLVED: Re: Function using selectedChild does not like the argument...
--- In [EMAIL PROTECTED], face7hill [EMAIL PROTECTED] wrote: Hi Everyone, I have a ViewStack with a bunch of screens in my Main.mxml app. On the first viewstack (mainViewStack.selectedChild=screen0) I'm calling a component (Screen0.mxml). Inside that component, I have a bunch of radio buttons. When a user clicks a radio button, the buttonClicked() function is called, which then assigns a value to my variable nextScreenName in my main app. The main app has a button (nextButton) which when clicked activates goToScreenName (nextScreenName). For some reason, the function goToScreenName(x) will not take the argument from the radio buttons even though it is being sent (I checked). I have a feeling that this is a variable typing problem. If I rewrite the function to use selectedIndex instead, and have the radio buttons broadcast numbers, it works fine. But it doesn't work with sending strings for selectedChild. Anybody have any ideas why? Thanks folks! !-- Main.mxml -- mx:Script ![CDATA[ var nextScreenName; function goToScreenName(x){ mainViewStack.selectedChild = x; } ]] /mx:Script mx:ViewStack id=mainViewStack Screen0 id=screen0 / Screen1 id=screen1 / Screen2 id=screen2 / Screen3 id=screen3 / Screen4 id=screen4 / /mx:ViewStack mx:Button id=nextButton label=Next click=goToScreenName (nextScreenName);/ !-- Screen0.mxml -- mx:Script ![CDATA[ function buttonClicked( event : Object ) : Void { //This does not work //mx.core.Application.application.nextScreenName = String (event.target.data); //This does not work either //mx.core.Application.application.nextScreenName = event.target.data; } ]] /mx:Script mx:RadioButton label=Screen 1 data=screen1 click=buttonClicked ( event );/ mx:RadioButton label=Screen 2 data=screen2 click=buttonClicked ( event );/ mx:RadioButton label=Screen 3 data=screen3 click=buttonClicked ( event );/ mx:RadioButton label=Screen 4 data=screen4 click=buttonClicked (event);/ Ok, I solved this by: mx.core.Application.application.nextScreenName = eval (event.target.data); 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/
Re: [flexcoders] Re: getting to the selected Tree node
Hi David, The below code solves ur Prblem!!! mx.controls.Alert.show(Label:+event.target.selectedItem[backingObject].label) Just try it out!!! Good luck! On 10/10/05, David Aden [EMAIL PROTECTED] wrote: Oh, also tried: evt.target.selectedNode That does have a child backingObject which does have a child data but that's empty. d On 10/9/05, David Aden [EMAIL PROTECTED] wrote: I have been trying to get access to the item selected in a tree from the change event. I've tried the suggestion from the documentation of: evt.target.selectedItem.label evt.target.selectedItem.data I've also tried to go through the treeDataProvider: evt.target.treeDataProvider.getProperty (foo) [[[or getData()]]]with no luck -- it comes back as undefined. I seem to be gettign to the object as I can output: mx.controls.Alert.show( evt.target.id ); mx.controls.Alert.show(evt.type );but selectedItem doesn't seem to be available. The tree itself is pretty straightforward: mx:Tree id=securityTopNavSub width=100% height=0backgroundColor=0x3A4147 borderColor=0x3A4147change= topNavViewHelper.showSecurity( event ); mx:dataProvidermx:Array mx:Object data="" label=Systems / mx:Object data="" label=Documents / mx:Object data="" label=Incidents //mx:Array /mx:dataProvider /mx:TreeI'm geting to the showSecurity() method, but as mentioned above, selectedItem is not avaialble. It seems like it must be something ridiculously simple, but I'm missing it. Any suggestions welcome! d-- --David AdenWebworld Technologies -- --David AdenWebworld Technologies--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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 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.
AW: [flexcoders] PopupManager.createPopUp - varying the className argument
Hi Derrick, Maybe this helps you? You can construct class instances dynamically by getting the constructor for a class with mx.utils.ClassUtil.findClass(aClassName:String); But before you can do it, you have to register a class like this: Object.registerClass(TitleWindowTest, TitleWindowTest); Try the following example: ### TitleWindowTestCreator.mxml - File: ### ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; horizontalAlign=left mx:Script![CDATA[ import mx.containers.TitleWindow; import mx.managers.PopUpManager; private function showTitleWindow():Void { Object.registerClass(TitleWindowTest, TitleWindowTest); var testWindowName : String = TitleWindowTest; var oInitObj:Object = new Object(); oInitObj.title = Title Window Data; oInitObj.width = 600; oInitObj.height = 200; var titleWindowInstance:Object = TitleWindow(PopUpManager.createPopUp(this, mx.utils.ClassUtil.findClass(testWindowName), false, oInitObj, false)); titleWindowInstance.centerPopUp(this) } ]]/mx:Script mx:Button label=ShowTitleWindow click=showTitleWindow()/ /mx:Application ### TitleWindowTest.mxml - File: ### ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml; closeButton=true click=this.deletePopUp(); creationComplete= mx:HBox mx:Label text=Test Label width=150 / /mx:HBox /mx:TitleWindow -Ursprüngliche Nachricht- Von: Derrick Grigg [mailto:[EMAIL PROTECTED] Im Auftrag von Derrick Grigg Gesendet: Freitag, 7. Oktober 2005 20:13 An: flexcoders@yahoogroups.com Betreff: RE: [flexcoders] PopupManager.createPopUp - varying the className argument Thanks Matt and Jester No luck though. The background of my app goes white the first time this function gets called, and the app completely disappears the second time. If I put hard codeed class names in everything works. I have come up another solution that seems to work. Each option that calls the loadWin function is based on a class so instead of dispatching an event to loadWin I am having the class use popupmanager to open it's respective window. var win1: views.elements.image; var win2: views.elements.swf; var win3: views.elements.text; function loadWin(event){ var cn:String = views.elements.+ event.target.type; var initObj = { helpButton: true, stateButton: true, resizeButton: true, closeButton: true } var win = mx.managers.PopUpManager.createPopUp( _root, _global[cn], true, initObj, false ); win.centerPopUp(_root); } Thanks for the help though. From: flexcoders@yahoogroups.com on behalf of Matt Chotin Sent: Fri 07/10/2005 10:44 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] PopupManager.createPopUp - varying the className argument Also you need to make sure that the class still gets linked into your app. Create some dummy variables of the potential types that could be loaded: Var linkhelper1:MyWindow1; Var linkhelper2:MyWindow2; Etc. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Friday, October 07, 2005 7:38 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] PopupManager.createPopUp - varying the className argument Close! var yourClass:String = Pooki; PopUpManager.createPopUp(this, _global[yourClass], false); - Original Message - From: Derrick Grigg [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, October 07, 2005 10:04 AM Subject: RE: [flexcoders] PopupManager.createPopUp - varying the className argument Tried the string idea, no luck. The switch/if looks like the only way. I was hoping not to have to do that since I want to have a lot of variability on the user's window options but not luck apparenetly. Thanks. From: flexcoders@yahoogroups.com on behalf of Mink, Joseph Sent: Fri 07/10/2005 9:48 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] PopupManager.createPopUp - varying the className argument I would guess you could use a string...like, instead of ...createPopUp( _root, SomeClass, true, initObj, false ); maybe you could do createPopUp( _root, SomeClass, true, initObj, false ); But I
[flexcoders] Accessing the root of a custom component
Hi all, is there a workaround to the fact that id is not allowed on root node? How can I access the root node of a custom component to change its property? Best regards, Alban. *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager to [EMAIL PROTECTED] *** 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/
Re: [flexcoders] [Flex/Javascript] Javascript function not found when called from Flex
Hi Manish, I guess the below works out for U!!! Try it out!! Code for Mxml: ?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.macromedia.com/2003/mxmlmx:Script ![CDATA[import mx.controls.Alertfunction callJS(){Alert.show(Clicked on Btn)var someText = SomeText from FLex;getURL(_javascript_:jsFun('+someText+')); }]]/mx:Scriptmx:Canvasmx:Button label=click click=callJS()//mx:Canvas/mx:Application Code for embedding mxml in HTML and call JS !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//ENhttp://www.w3.org/TR/html4/loose.dtdhtmlhead meta http-equiv=Content-Type content=text/html; charset=iso-8859-1titleFlex n HTML/titlescript language=_javascript_function jsFun(txt){alert(txt) }/script/headbodyobject classid="" codebase="" href="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"> http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 width=200 height=200 param name=movie value=imageClick.mxml.swf param name=quality value=high embed src="" quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=200 height=200/embed/object/body/html The first block gives you the structure of Mxml code, a button that calls an AS function which uses to getURL() to call Js function. The sec block is just html page that has mxml embedded in it and js function (jsFun) that is being referred by AS. On 10/8/05, Manish Jethani [EMAIL PROTECTED] wrote: On 10/7/05, djok_fb [EMAIL PROTECTED] wrote: 1-Embed the mxml file in a HTML page: html head script type=_javascript_ function launchSpellChecker(someText) { alert(someText); } /script /head body[snip] 2- Write a AS function using getURL: function doSpellCheck( textToCheck ) { getURL(_javascript_:launchSpellChecker(' + textToCheck + ');void(0);); } 3- Link the function to a button The AS function is called but IE tells me Object not found. I tried with Firefox (w/ _javascript_ debugger) and it tells me: launchSpellChecker function not found.I don't see anything obviously wrong.What version of IE are you using? 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 ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] [Flex/Javascript] Javascript function not found when called from Flex
I found what was the problem, it comes from my HTML script tag: it's not type but langage. Sorry for bothering everybody. -Original Message- From: Manish Jethani [mailto:[EMAIL PROTECTED] Sent: vendredi, 7. octobre 2005 20:39 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] [Flex/Javascript] Javascript function not found when called from Flex On 10/7/05, djok_fb [EMAIL PROTECTED] wrote: 1-Embed the mxml file in a HTML page: html head script type=javascript function launchSpellChecker(someText) { alert(someText); } /script /head body [snip] 2- Write a AS function using getURL: function doSpellCheck( textToCheck ) { getURL(javascript:launchSpellChecker(' + textToCheck + ');void(0);); } 3- Link the function to a button The AS function is called but IE tells me Object not found. I tried with Firefox (w/ JavaScript debugger) and it tells me: launchSpellChecker function not found. I don't see anything obviously wrong. What version of IE are you using? -- 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 *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager to [EMAIL PROTECTED] *** 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/
RE: [flexcoders] [Flex/Javascript] Javascript function not found when called from Flex
I'm using IE 6.0SP1 and FireFox 1.06. I don't understand why it's not working, all the samples I see on the Internet are like my program. -Original Message- From: Manish Jethani [mailto:[EMAIL PROTECTED] Sent: vendredi, 7. octobre 2005 20:39 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] [Flex/Javascript] Javascript function not found when called from Flex On 10/7/05, djok_fb [EMAIL PROTECTED] wrote: 1-Embed the mxml file in a HTML page: html head script type=javascript function launchSpellChecker(someText) { alert(someText); } /script /head body [snip] 2- Write a AS function using getURL: function doSpellCheck( textToCheck ) { getURL(javascript:launchSpellChecker(' + textToCheck + ');void(0);); } 3- Link the function to a button The AS function is called but IE tells me Object not found. I tried with Firefox (w/ JavaScript debugger) and it tells me: launchSpellChecker function not found. I don't see anything obviously wrong. What version of IE are you using? -- 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 *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager to [EMAIL PROTECTED] *** 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/
RE: [flexcoders] Will browsers support FlashPlayer in the future?
Today the popularity of the Flash Player is hard to deny. Even Microsoft currently uses it in some of there latest web sites such as Microsoft @ 30 Anyway I think Microsoft would come under a lot of heat if they attempted to drop all use of it from there future browser releases and would be better off looking at other methods to promote their own products. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Dowdell Sent: Monday, 10 October 2005 3:00 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Will browsers support FlashPlayer in the future? Aldo Bucchi wrote: Is there a chance that any major browser might simply cut support for the Flash Player Plugin at some point? Anything's possible, but I do know that daily adoption of new Macromedia Flash Player greatly outweighs the new adoption of any browser or operating system. Here's the list of current distribution partners: http://www.macromedia.com/software/flashplayer/partners/ Here's a recent comparison of XP adoption rates: http://www.betanews.com/article/Windows_XP_Adoption_Rates_Slow/1118943913 Summary: In June05 WinXP had risen to 38% of enterprise use, compared to 48% for Win2000, in the years after XP's release in 2001. (In comparison, Macromedia Flash Player has historically hit 80% adoption within a year, and will likely quicken in the future with new auto-update.) Being included in default OS and browser installations is great, naturally, but consumers update their Flash capabilities much more quickly than they update their browsing or system capabilities. Do you feel that this information will be useful for your client...? jd -- John Dowdell . Macromedia Developer Support . San Francisco CA USA Weblog: http://www.macromedia.com/go/blog_jd Aggregator: http://www.macromedia.com/go/weblogs Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. -- 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] Can I use cftree theAnswerToMyProblems= OBJECT in FLEX???
If someone could enlighten me, I would really appreciate it. I've been hacking my brain over this for while. What I want to do is use a cftree format=object that is created in a CFC to populate my Flex tree. How do I transfer the cftree Object to Flex so I can use it as the dataProvider. I'm sorry if I'm being vague and if I need to post code I would be more then happy to.just want to say,Thanks! in advance. 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/
Re: [flexcoders] startDrag stopDrag?
Hi, This may solve ur prob. [This code is a block of class] obj here is same as _rect in your class. I guessyou need not use addEventListener... This works out!!! function createChildren():Void{obj = attachMovie(cir_sym,cir_sym,1)}function onMouseDown():Void{obj.startDrag()}function onMouseUp():Void{stopDrag() }Buzz back!! On 10/8/05, Mink, Joseph [EMAIL PROTECTED] wrote: Does anyone know how to get startDrag (...) and stopDrag (...) to workwith UIObjects in Flex?I know that in Flash the usage is typically: on(press) { startDrag(this,true);}on(release) { stopDrag();}But maybe it could work with our mouseDown and mouseUp events?I amcurrently trying it with this code, but it's not working: import mx.containers.Canvas;import mx.utils.Delegate;class Rect extends Canvas{ public var radius:Number; private var _rect:Object; /* Constructor. */ function Circle () { super (); addEventListener(mouseUp, Delegate.create(this,mouseUp)); addEventListener(mouseDown, Delegate.create(this,mouseDown)); } /* Instantiates all child objects. */ function createChildren():Void { trace (Begin Circle.createChildren ().); super.createChildren(); if (_rect == undefined) { _rect = createEmptyObject(square,getNextHighestDepth()); _rect.fillRect(0, 0, radius, radius, 0x00, 100); } trace (End Circle.createChildren().); } function mouseDown (event):Void { trace (Begin Circle.mouseDown ); /*_isMouseDown = true; _lastMouseX = mouseX; _lastMouseY = mouseY;*/ startDrag (this, true); trace (End Circle.mouseDown ); } function mouseUp(event):Void { trace (Begin Circle.mouseUp); //_isMouseDown = false; stopDrag (); trace (End Circle.mouseUp); }} 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 ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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 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] Converting string to xml in a model
Hello there, ive created a WebService in asp.net that contains a webmethod to read an xml file return as a string in Flex ive added the webservice. i wanted to convert the output string from the webservice to a xml when i used mx:WebService wsdl=http://localhost/WebService1/Service1.asmx?WSDL; id=webservice1 mx:operation name=getDocument mx:request/mx:request /mx:operation /mx:WebService mx:Model id=myData {webservice1.getDocument.result} /mx:Model mx:XML id=myXml {Convert2XML()} /mx:XML mx:Script ![CDATA[ function initialize_page(){ webservice1.getDocument.send(); my_xml=webservice1.getDocument.result; } function Convert2XML():XML{ var out_xml=new XML(); var out_xml.parseXml(webservice1.getDocument.result); return (out_xml) } ]] /mx:Script in flash the similar code returns me an XML object but in flex i'm not able to convert the string to the xml object please someone help me on this bye 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/
Re: [flexcoders] Re: calling a secured web service
Not yet, I was hoping it was some simple config issue on my part. Is _no one_ calling a secured web service? I did confirm last week that I could call it via CF, so it is a valid service. This is my second week now of trying to get this to work. Something so basic should _not_ be this much trouble. On 10/7/05, Dave Wolf [EMAIL PROTECTED] wrote: Have you tried putting the Apache SOAP TCPTunnel in between to see if the proper credentials are being sent from the proxy to the service? -- 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/
RE: [flexcoders] Re: calling a secured web service
Well we have it passing in our internal test suites J Have you turned on the debugging in flex-config.xml for the web-service-proxy? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Raymond Camden Sent: Monday, October 10, 2005 9:34 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: calling a secured web service Not yet, I was hoping it was some simple config issue on my part. Is _no one_ calling a secured web service? I did confirm last week that I could call it via CF, so it is a valid service. This is my second week now of trying to get this to work. Something so basic should _not_ be this much trouble. On 10/7/05, Dave Wolf [EMAIL PROTECTED] wrote: Have you tried putting the Apache SOAP TCPTunnel in between to see if the proper credentials are being sent from the proxy to the service? -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Please Help!!!!
Alfie, You need to talk to the server for that. I would look in the docs under Remote Object. Best, al -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of AlfrED Sent: 10 October 2005 03:08 To: flexcoders@yahoogroups.com Subject: [flexcoders] Please Help I am new with flexand I am having problem understanding how I can communicate with the database (msyql). If there is someone that could help me understand how I can insert data to the database (mysql) using coldfusion and flexI would really appreciate it. A sample code will be great! Thank you in advance Alfie -- 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 -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.13/126 - Release Date: 09/10/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.13/126 - Release Date: 09/10/2005 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] a bit OT...eclipse and templates and mxml files
ok, I'm using eclipse, the WST drop. I have the XML editor set to for mxml files. How do I create a standard template so that any time I create a new *.mxml file it uses this template? -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? 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/
RE: [flexcoders] Accessing the root of a custom component
You dont need an ID as the properties from the super class are within the this scope of the custom component..so if you extended the TextInput and wanted to set the text property: mx:TextInput creationComplete=setDefault() public function setDefault(){ //Sets the text property to a default value text=default } /mx:TextInput -Mike From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alban Soupper Sent: 10 October 2005 09:12 To: Flexcoders (E-mail) Subject: [flexcoders] Accessing the root of a custom component Hi all, is there a workaround to the fact that id is not allowed on root node? How can I access the root node of a custom component to change its property? Best regards, Alban. *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager to [EMAIL PROTECTED] *** -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] a bit OT...eclipse and templates and mxml files
Douglas Knudsen wrote: ok, I'm using eclipse, the WST drop. I have the XML editor set to for mxml files. How do I create a standard template so that any time I create a new *.mxml file it uses this template? Windows - Preferences Expand Web and XML, XML Files, click XML Templates, create a new template. In your .mxml file then, hit CTRL+Space, and then select the template name from the content assist dialog to have it auto-write the code for you. -d 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] Calling down?
I have an application and a custom component. I have a line like local:otdTab id=otdt / in the custom component I have created a function called public function initTech() But when I am in the upper level application and try to do otdt.initTech(); the system tells me initTech() is not a method. What's up? 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/
Re: [flexcoders] Re: calling a secured web service
Ahah. We are getting somewhere. So, in the flex-out log file, I see I'm getting an Authentication denied error, even though I'm passing in my credentials. Let me show you my config again, and maybe you can see what is wrong. Obviously the URL is changed, as is the U/P. named service name=foo allow-unnamed-accesstrue/allow-unnamed-access wsdlhttp://foo.com/foo.asmx?WSDL/wsdl run-as user=User password=pass / endpoints endpointhttp://foocom/foo.asmx/endpoint /endpoints /service /named So, why would run-as simply be ignored? I'm also including the relevant portion of the log file, again with URLs changed. Oh wait. I just noticed in the header it said it WAS sending the data for my User. Could it be something else? 10/10 10:30:43 INFO -- GET : http://foo.com/foo.asmx?WSDL 10/10 10:30:43 INFO -- Authentication header being sent for User 10/10 10:30:43 INFO -- Header in request: Keep-Alive : 300 10/10 10:30:43 INFO -- Header in request: User-Agent : Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 10/10 10:30:43 INFO -- Header in request: Connection : keep-alive 10/10 10:30:43 INFO -- Header in request: Accept-Charset : ISO-8859-1,utf-8;q=0.7,*;q=0.7 10/10 10:30:43 INFO -- Header in request: Accept-Language : en-us,en;q=0.5 10/10 10:30:43 INFO -- Header in request: --- : 10/10 10:30:43 INFO -- Header in request: Accept : text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 10/10 10:30:43 INFO -- Header in response: Date : Mon, 10 Oct 2005 15:31:50 GMT 10/10 10:30:43 INFO -- Header in response: Server : Microsoft-IIS/6.0 10/10 10:30:43 INFO -- Header in response: WWW-Authenticate : Negotiate 10/10 10:30:43 INFO -- Header in response: WWW-Authenticate : NTLM 10/10 10:30:43 INFO -- Header in response: WWW-Authenticate : Basic realm=staging1.spatialpoint.com 10/10 10:30:43 INFO -- Header in response: X-Powered-By : ASP.NET 10/10 10:30:43 INFO -- Header in response: X-AspNet-Version : 1.1.4322 10/10 10:30:43 INFO -- Header in response: Cache-Control : private 10/10 10:30:43 INFO -- Header in response: Content-Type : text/html; charset=utf-8 On 10/10/05, Matt Chotin [EMAIL PROTECTED] wrote: Well we have it passing in our internal test suites J Have you turned on the debugging in flex-config.xml for the web-service-proxy? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Raymond Camden Sent: Monday, October 10, 2005 9:34 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: calling a secured web service Not yet, I was hoping it was some simple config issue on my part. Is _no one_ calling a secured web service? I did confirm last week that I could call it via CF, so it is a valid service. This is my second week now of trying to get this to work. Something so basic should _not_ be this much trouble. On 10/7/05, Dave Wolf [EMAIL PROTECTED] wrote: Have you tried putting the Apache SOAP TCPTunnel in between to see if the proper credentials are being sent from the proxy to the service? -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- === Raymond Camden, Director of Development for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) Email: [EMAIL PROTECTED] Blog : ray.camdenfamily.com Yahoo IM : cfjedimaster My ally is the Force, and a powerful ally it is. - Yoda 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
RE: [flexcoders] Re: calling a secured web service
Well, can you send the rest of the relevant log? This is just showing the headers and nothing in there seems to point to a problem. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Raymond Camden Sent: Monday, October 10, 2005 11:37 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: calling a secured web service Ahah. We are getting somewhere. So, in the flex-out log file, I see I'm getting an Authentication denied error, even though I'm passing in my credentials. Let me show you my config again, and maybe you can see what is wrong. Obviously the URL is changed, as is the U/P. named service name=foo allow-unnamed-accesstrue/allow-unnamed-access wsdlhttp://foo.com/foo.asmx?WSDL/wsdl run-as user=User password=pass / endpoints endpointhttp://foocom/foo.asmx/endpoint /endpoints /service /named So, why would run-as simply be ignored? I'm also including the relevant portion of the log file, again with URLs changed. Oh wait. I just noticed in the header it said it WAS sending the data for my User. Could it be something else? 10/10 10:30:43 INFO -- GET : http://foo.com/foo.asmx?WSDL 10/10 10:30:43 INFO -- Authentication header being sent for User 10/10 10:30:43 INFO -- Header in request: Keep-Alive : 300 10/10 10:30:43 INFO -- Header in request: User-Agent : Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 10/10 10:30:43 INFO -- Header in request: Connection : keep-alive 10/10 10:30:43 INFO -- Header in request: Accept-Charset : ISO-8859-1,utf-8;q=0.7,*;q=0.7 10/10 10:30:43 INFO -- Header in request: Accept-Language : en-us,en;q=0.5 10/10 10:30:43 INFO -- Header in request: --- : 10/10 10:30:43 INFO -- Header in request: Accept : text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 10/10 10:30:43 INFO -- Header in response: Date : Mon, 10 Oct 2005 15:31:50 GMT 10/10 10:30:43 INFO -- Header in response: Server : Microsoft-IIS/6.0 10/10 10:30:43 INFO -- Header in response: WWW-Authenticate : Negotiate 10/10 10:30:43 INFO -- Header in response: WWW-Authenticate : NTLM 10/10 10:30:43 INFO -- Header in response: WWW-Authenticate : Basic realm=staging1.spatialpoint.com 10/10 10:30:43 INFO -- Header in response: X-Powered-By : ASP.NET 10/10 10:30:43 INFO -- Header in response: X-AspNet-Version : 1.1.4322 10/10 10:30:43 INFO -- Header in response: Cache-Control : private 10/10 10:30:43 INFO -- Header in response: Content-Type : text/html; charset=utf-8 On 10/10/05, Matt Chotin [EMAIL PROTECTED] wrote: Well we have it passing in our internal test suites J Have you turned on the debugging in flex-config.xml for the web-service-proxy? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Raymond Camden Sent: Monday, October 10, 2005 9:34 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: calling a secured web service Not yet, I was hoping it was some simple config issue on my part. Is _no one_ calling a secured web service? I did confirm last week that I could call it via CF, so it is a valid service. This is my second week now of trying to get this to work. Something so basic should _not_ be this much trouble. On 10/7/05, Dave Wolf [EMAIL PROTECTED] wrote: Have you tried putting the Apache SOAP TCPTunnel in between to see if the proper credentials are being sent from the proxy to the service? -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- === Raymond Camden, Director of Development for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) Email : [EMAIL PROTECTED] Blog : ray.camdenfamily.com Yahoo IM : cfjedimaster My ally is the Force, and a powerful ally it is. - Yoda -- 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] Highly classful architectures
Dear All, We are currently evaluating the possibilities to use Flex in our key internal support systems. As part of the evaluation we are looking specifically at a highly classful implementation and archictecture. I would be very curious for any feedback (pros/cons) etc in relation to using Flex in sucha high polymorphic envirnoment. Marc TeichtahlXB Networks BVDirector, EngineeringPhone: +31 (0)36 546 24 73Mobile: +31 (0)65 582 47 89[EMAIL PROTECTED]http://www.xb.nl From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of AlfrEDSent: maandag 10 oktober 2005 4:08To: flexcoders@yahoogroups.comSubject: [flexcoders] Please Help I am new with flexand I am having problem understanding how I can communicate with the database (msyql). If there is someone that could help me understand how I can insert data to the database (mysql) using coldfusion and flexI would really appreciate it. A sample code will be great! Thank you in advanceAlfie -- 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. Op dit e-mailbericht is een disclaimer van toepassing, welke te vinden is op http://www.xb.nl/disclaimer.html
Re: [flexcoders] a bit OT...eclipse and templates and mxml files
hmm, I do not have that option window preferences Web and XML XML Files XML Templates only has two items, line delimiter setting and encoding setting for new files. No way to add anything. (i do have this ability under HTM Templates though) Me thinks I have an earlier version of the WST maybe. In fact I read your blog about eclispe and mxml fiel editing and I do not get the design view on mxml files either. Time to update eclipse maybe. DK On 10/10/05, Darron J. Schall [EMAIL PROTECTED] wrote: Douglas Knudsen wrote: ok, I'm using eclipse, the WST drop. I have the XML editor set to for mxml files. How do I create a standard template so that any time I create a new *.mxml file it uses this template? Windows - Preferences Expand Web and XML, XML Files, click XML Templates, create a new template. In your .mxml file then, hit CTRL+Space, and then select the template name from the content assist dialog to have it auto-write the code for you. -d -- 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 -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? 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] Accessing the main Application Class
Dear all, I would like some advise as to the best method for accessing the main Application class from an external AS. I am trying to achieve a base class that is used by the main application class to supply authentication etc and to at runtime update components and containers in the main Application class. To date, I have had no success. Marc TeichtahlXB Networks BVDirector, EngineeringPhone: +31 (0)36 546 24 73Mobile: +31 (0)65 582 47 89[EMAIL PROTECTED]http://www.xb.nl -- 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. Op dit e-mailbericht is een disclaimer van toepassing, welke te vinden is op http://www.xb.nl/disclaimer.html
RE: [flexcoders] Accessing the main Application Class
mx.core.Application.application is reference to application. How are you trying to access it? -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Marc TeichtahlSent: Monday, October 10, 2005 9:31 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Accessing the main Application Class Dear all, I would like some advise as to the best method for accessing the main Application class from an external AS. I am trying to achieve a base class that is used by the main application class to supply authentication etc and to at runtime update components and containers in the main Application class. To date, I have had no success. Marc TeichtahlXB Networks BVDirector, EngineeringPhone: +31 (0)36 546 24 73Mobile: +31 (0)65 582 47 89[EMAIL PROTECTED]http://www.xb.nl Op dit e-mailbericht is een disclaimer van toepassing, welke te vinden is op http://www.xb.nl/disclaimer.html -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Calling down?
Hi, It should work. Can you post code custom component? -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Greg Johnson Sent: Monday, October 10, 2005 9:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Calling down? I have an application and a custom component. I have a line like local:otdTab id=otdt / in the custom component I have created a function called public function initTech() But when I am in the upper level application and try to do otdt.initTech(); the system tells me initTech() is not a method. What's up? -- 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/
Re: [flexcoders] Re: calling a secured web service
I responded to Matt offline with my log. He suggested that the web service provider turn off everything but Basic security. Once that was done, things started working great. (Time for a blog posting I think.) Thanks Matt! On 10/10/05, Matt Chotin [EMAIL PROTECTED] wrote: Well, can you send the rest of the relevant log? This is just showing the headers and nothing in there seems to point to a problem. -- === Raymond Camden, Director of Development for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) Email: [EMAIL PROTECTED] Blog : ray.camdenfamily.com Yahoo IM : cfjedimaster My ally is the Force, and a powerful ally it is. - Yoda 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/
RE: [flexcoders] Accessing the main Application Class
Abdul, Thanks for your quick reply I am passing in "this" in the Application intialize call and keeping this as an Object in the class. Marc TeichtahlXB Networks BVDirector, EngineeringPhone: +31 (0)36 546 24 73Mobile: +31 (0)65 582 47 89[EMAIL PROTECTED]http://www.xb.nl From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abdul QabizSent: maandag 10 oktober 2005 18:16To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Accessing the main Application Class mx.core.Application.application is reference to application. How are you trying to access it? -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Marc TeichtahlSent: Monday, October 10, 2005 9:31 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Accessing the main Application Class Dear all, I would like some advise as to the best method for accessing the main Application class from an external AS. I am trying to achieve a base class that is used by the main application class to supply authentication etc and to at runtime update components and containers in the main Application class. To date, I have had no success. Marc TeichtahlXB Networks BVDirector, EngineeringPhone: +31 (0)36 546 24 73Mobile: +31 (0)65 582 47 89[EMAIL PROTECTED]http://www.xb.nl Op dit e-mailbericht is een disclaimer van toepassing, welke te vinden is op http://www.xb.nl/disclaimer.html -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Accessing the main Application Class
On 10/10/05, Marc Teichtahl [EMAIL PROTECTED] wrote: I am passing in this in the Application intialize call and keeping this as an Object in the class. 'this' depends on context. Where's your initialize handler? Could you post some MXML/AS showing how you're passing the reference to your class? If your class is a component, you can also use the parentApplication property on it. 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: Calling down?
I just figured out what it was. Since for some reason Flex Builder doesn't seem to place nice with other apps including the server (I get major delays and lockups) I run it on a different computer. For some reason builder wasn't syncing correctly. Right now I am just trying to figure out why my webservice call in the component is throwing could not connect at me for WSDL --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Hi, It should work. Can you post code custom component? -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Greg Johnson Sent: Monday, October 10, 2005 9:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Calling down? I have an application and a custom component. I have a line like local:otdTab id=otdt / in the custom component I have created a function called public function initTech() But when I am in the upper level application and try to do otdt.initTech(); the system tells me initTech() is not a method. What's up? -- 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/
Re: [flexcoders] Converting string to xml in a model
On 10/10/05, gnaveenrajkumaar [EMAIL PROTECTED] wrote: var out_xml.parseXml(webservice1.getDocument.result); in flash the similar code returns me an XML object but in flex i'm not able to convert the string to the xml object It's parseXML (not parseXml) IIRC. 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/
RE: [flexcoders] Accessing the main Application Class
If you plan to bind to the reference in the sub-component(class), you will need to type the variable as the application file name(its class name). Typed as Object, the flex compiler wont be able to set up the event listener/dispatchers properly. I know that this interferes with your re-usability. Tracy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Marc Teichtahl Sent: Monday, October 10, 2005 12:27 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Accessing the main Application Class Abdul, Thanks for your quick reply I am passing in this in the Application intialize call and keeping this as an Object in the class. Marc Teichtahl XB Networks BV Director, Engineering Phone: +31 (0)36 546 24 73 Mobile: +31 (0)65 582 47 89 [EMAIL PROTECTED] http://www.xb.nl From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Abdul Qabiz Sent: maandag 10 oktober 2005 18:16 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Accessing the main Application Class mx.core.Application.application is reference to application. How are you trying to access it? -abdul From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Marc Teichtahl Sent: Monday, October 10, 2005 9:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Accessing the main Application Class Dear all, I would like some advise as to the best method for accessing the main Application class from an external AS. I am trying to achieve a base class that is used by the main application class to supply authentication etc and to at runtime update components and containers in the main Application class. To date, I have had no success. Marc Teichtahl XB Networks BV Director, Engineering Phone: +31 (0)36 546 24 73 Mobile: +31 (0)65 582 47 89 [EMAIL PROTECTED] http://www.xb.nl Op dit e-mailbericht is een disclaimer van toepassing, welke te vinden is op http://www.xb.nl/disclaimer.html -- 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] Reading the displayed value in a DataGrid - How to
I am using labelFunction for a column in a datagrid. How can I read the displayed value and not the real value directly from the dataGrid? I am also wondering how to get values from the DataGrid in general. I need to render the DataGrid to a HTML table, I mean, read columns and rows from the dataGrid and have a string with the HTML syntax. I could not find anything such as getRow, and then read each column. So I am selecting each Row and then using the selectedItem property. I know that I could use the function executed in labelFunction to reproduce the displayed value, but I am actually trying to extend the DataGrid class and add a method called getHTMLString for example. This would require to be agnostic of whether the column has a labelFunction or not. Any ideas? Thanks. --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and erase this e-mail message immediately. --- 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/
RE: [flexcoders] Converting string to xml in a model
Would you consider dropping the mx:Model step completely and just keep everything xml? I don't use WebServices much, but if it is returning an xml string then probably the result object is already an xml object. If it is really a string then use: var myXML:XML = mx.utils.XMLUtil.createXML(stringXML) Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gnaveenrajkumaar Sent: Monday, October 10, 2005 8:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Converting string to xml in a model Hello there, ive created a WebService in asp.net that contains a webmethod to read an xml file return as a string in Flex ive added the webservice. i wanted to convert the output string from the webservice to a xml when i used mx:WebService wsdl=http://localhost/WebService1/Service1.asmx?WSDL; id=webservice1 mx:operation name=getDocument mx:request/mx:request /mx:operation /mx:WebService mx:Model id=myData {webservice1.getDocument.result} /mx:Model mx:XML id=myXml {Convert2XML()} /mx:XML mx:Script ![CDATA[ function initialize_page(){ webservice1.getDocument.send(); my_xml=webservice1.getDocument.result; } function Convert2XML():XML{ var out_xml=new XML(); var out_xml.parseXml(webservice1.getDocument.result); return (out_xml) } ]] /mx:Script in flash the similar code returns me an XML object but in flex i'm not able to convert the string to the xml object please someone help me on this bye -- 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/
RE: [flexcoders] [Flex/Javascript] Javascript function not found when called from Flex
I use this regularly. Try dropping the second parameter in the getURL(), the ,void(0) Also test a simpler function, one that takes no args. Are there any script errors shown in the lower left corner of the browser? Create an error to make sure you are actually calling the wrapper you think you are. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stephane De Jonckheere Sent: Monday, October 10, 2005 3:03 AM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] [Flex/Javascript] Javascript function not found when called from Flex I'm using IE 6.0SP1 and FireFox 1.06. I don't understand why it's not working, all the samples I see on the Internet are like my program. -Original Message- From: Manish Jethani [mailto:[EMAIL PROTECTED] Sent: vendredi, 7. octobre 2005 20:39 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] [Flex/Javascript] Javascript function not found when called from Flex On 10/7/05, djok_fb [EMAIL PROTECTED] wrote: 1-Embed the mxml file in a HTML page: html head script type=javascript function launchSpellChecker(someText) { alert(someText); } /script /head body [snip] 2- Write a AS function using getURL: function doSpellCheck( textToCheck ) { getURL(javascript:launchSpellChecker(' + textToCheck + ');void(0);); } 3- Link the function to a button The AS function is called but IE tells me Object not found. I tried with Firefox (w/ JavaScript debugger) and it tells me: launchSpellChecker function not found. I don't see anything obviously wrong. What version of IE are you using? -- 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 *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager to [EMAIL PROTECTED] *** -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links 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/
RE: [flexcoders] Re: getting to the selected Tree node
The change event object is a reference to the selected node. So do: evt.getProperty (label) or evt.getProperty (foo) or evt.getData().foo Avoid using backingObject Tracy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ramu p Sent: Monday, October 10, 2005 3:17 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: getting to the selected Tree node Hi David, The below code solves ur Prblem!!! mx.controls.Alert.show(Label:+event.target.selectedItem[backingObject].label) Just try it out!!! Good luck! On 10/10/05, David Aden [EMAIL PROTECTED] wrote: Oh, also tried: evt.target.selectedNode That does have a child backingObject which does have a child data but that's empty. d On 10/9/05, David Aden [EMAIL PROTECTED] wrote: I have been trying to get access to the item selected in a tree from the change event. I've tried the suggestion from the documentation of: evt.target.selectedItem.label evt.target.selectedItem.data I've also tried to go through the treeDataProvider: evt.target.treeDataProvider.getProperty (foo) [[[or getData()]]] with no luck -- it comes back as undefined. I seem to be gettign to the object as I can output: mx.controls.Alert.show( evt.target.id ); mx.controls.Alert.show(evt.type ); but selectedItem doesn't seem to be available. The tree itself is pretty straightforward: mx:Tree id=securityTopNavSub width=100% height=0 backgroundColor=0x3A4147 borderColor=0x3A4147 change= topNavViewHelper.showSecurity( event ); mx:dataProvider mx:Array mx:Object data="" label=Systems / mx:Object data="" label=Documents / mx:Object data="" label=Incidents / /mx:Array /mx:dataProvider /mx:Tree I'm geting to the showSecurity() method, but as mentioned above, selectedItem is not avaialble. It seems like it must be something ridiculously simple, but I'm missing it. Any suggestions welcome! d -- -- David Aden Webworld Technologies -- -- David Aden Webworld Technologies -- 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 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] [Ann] Tonights Sydney Developers Group
Flex 2 and Flash Player 8.5 at 6 for 6:30 start (http://www.flashdev.org.au/program) Mark Blair of Macromedia is presenting. Note: All attendees are asked to observe the following restrictions:- No one can take photos / screenshots / recordings etc and blog them This could mean that Mark might give us some interesting information on the up-and-coming product lines. Please also note that the meeting start promptly at 6:30pm so please arrive at 6. While FlashDev meetings are free and open to all it's best to RSVP today to help with the catering (http://www.flashdev.org.au/rsvp). Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au 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] Harley-Davidson Customizer Live with Flex
Check it out at: http://www.harley-davidson.com/pr/gm/customizer/launchCustomizer.asp Congratulations to the team at WhitmannHart for creating this beautiful Flex app. Jeff Whatcott -- 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] Dynamic Column Chart.( First Post to group )
Hi, I have to add Series dynamically to my Column Chart. Also if possible I would like to change horizontalAxis dynamically. I am loading the data as Model in xml file. Please reply. --testGraph.mxml ?xml version=1.0 encoding=iso-8859-1? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; initialize=initChart(); mx:Script ![CDATA[ import mx.charts.series.ColumnSeries; import mx.charts.chartClasses.Axis; import mx.charts.AxisRenderer; import mx.charts.CategoryAxis; //import mx.charts.ColumnChart; import mx.charts.*; var dataSet : Array; var horizontalField : Array; function initChart(){ dataSet = stateData.state; } function addSeries() { estateTrendChart.series.removeAll(); var columnSeries = new ColumnSeries(); columnSeries.yField = dataSet.medianPrice; columnSeries.xField = dataSet.endDate; estateTrendChart.series.addItem(columnSeries); } ]]/mx:Script mx:Model id=stateData source=StateSFRMedianPrice.xml /mx:Model mx:Script source=chartFunctions.as /mx:Script mx:ColumnChart id=estateTrendChart dataProvider={dataSet} showDataTips=true width=80% height=80% mx:horizontalAxis mx:CategoryAxis dataProvider={dataSet} categoryField=endDate name=Month / /mx:horizontalAxis mx:verticalAxis mx:LinearAxis name=Price / /mx:verticalAxis mx:series mx:Array /mx:Array /mx:series /mx:ColumnChart mx:Button label=Clean click=addSeries(); /mx:Button /mx:Application -StateSFRMedianPrice.xml-- ?xml version=1.0 encoding=utf-8? data state nameCalifornia/name periodMonthly/period endDateJan-03/endDate medianPrice45/medianPrice /state state nameCalifornia/name periodMonthly/period endDateFeb-03/endDate medianPrice48/medianPrice /state state nameCalifornia/name periodMonthly/period endDateMar-03/endDate medianPrice55/medianPrice /state state nameCalifornia/name periodMonthly/period endDateApr-03/endDate medianPrice50/medianPrice /state state nameCalifornia/name periodMonthly/period endDateMay-03/endDate medianPrice50/medianPrice /state state nameCalifornia/name periodMonthly/period endDateJun-03/endDate medianPrice50/medianPrice /state state nameCalifornia/name periodMonthly/period endDateJul-03/endDate medianPrice36/medianPrice /state state nameCalifornia/name periodMonthly/period endDateAug-03/endDate medianPrice70/medianPrice /state state nameCalifornia/name periodMonthly/period endDateSep-03/endDate medianPrice45/medianPrice /state state nameCalifornia/name periodMonthly/period endDateOct-03/endDate medianPrice40/medianPrice /state state nameCalifornia/name periodMonthly/period endDateNov-03/endDate medianPrice35/medianPrice /state state nameCalifornia/name periodMonthly/period endDateDec-03/endDate medianPrice30/medianPrice /state /data 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] hi, i am new to flex, can any one help me how so go with it ?
hi I am kumar, from bangalore, INDIA. I am a flash user to a standard actionscript usage. now I would like to learn and deploy the power of flex. please any one help me in this. thanks in advance kumar 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] Binding a ComboBox to a ViewStack
Hi Everyone, Anybody have any luck binding a ViewStack as a dataProvider for a ComboBox? Is this even possible? I tried a couple of things but all I get is an empty ComboBox. Ideally, I'd like the ComboBox to use the label attribute from the ViewStack and use the ViewStack component id as the data field for the ComboBox. This seems like it would be pretty straight-forward but I have not been able to find anything in the docs/archives. Any guidance would be greatly appreciated! !-- ViewStackComboBox.mxml -- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:ComboBox id=mainComboBox dataProvider=mainViewStack.selectedChild / mx:ViewStack id=mainViewStack width=100% height=100% mx:HBox id=view1 label=View 1 mx:Label text=This is view 1/ /mx:HBox mx:HBox id=view2 label=View 2 mx:Label text=This is view 2/ /mx:HBox /mx:ViewStack /mx:Application 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/
Re: [flexcoders] Reading the displayed value in a DataGrid - How to
Let me reformulate my question. Usually you can use selectedItem. columnName to read the value of a row/column of a datagrid. This seems to work fine as shown in the Flex Sample Explorer ( example below). But how can you read the value of a computed column that was added in addition to the columns returned by the dataprovider? When I trace the selectedItem or getItemAt, I only get the dataprovider data and nothing else. mx:DataGrid id=dg width=100% height=100% dataProvider={employeeModel.employee} mx:columns mx:Array mx:DataGridColumn columnName=name headerText=Name/ mx:DataGridColumn columnName=phone headerText=Phone/ mx:DataGridColumn columnName=email headerText=Email/ !-- How can I read this? -- mx:DataGridColumn columnName=myComputedColumn headerText=All labelFunction=cocanateAll/ !-- No part of the dataprovider, but shows OK -- /mx:Array /mx:columns /mx:DataGrid mx:Form mx:FormItem label=Name mx:Label text={dg.selectedItem.name}/ /mx:FormItem mx:FormItem label=Email mx:Label text={dg.selectedItem.email}/ /mx:FormItem mx:FormItem label=Phone mx:Label text={dg.selectedItem.phone}/ /mx:FormItem !-- How can I read this? -- mx:FormItem label= mx:Label text={dg.selectedItem.myComputedColumn}/ !-- This doesn't work -- /mx:FormItem !-- -- Thanks, /mx:Form [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent by: cc: flexcoders@yahoogroups.comSubject: [flexcoders] Reading the displayed value in a DataGrid - How to 10/10/2005 12:45 PM Please respond to flexcoders I am using labelFunction for a column in a datagrid. How can I read the displayed value and not the real value directly from the dataGrid? I am also wondering how to get values from the DataGrid in general. I need to render the DataGrid to a HTML table, I mean, read columns and rows from the dataGrid and have a string with the HTML syntax. I could not find anything such as getRow, and then read each column. So I am selecting each Row and then using the selectedItem property. I know that I could use the function executed in labelFunction to reproduce the displayed value, but I am actually trying to extend the DataGrid class and add a method called getHTMLString for example. This would require to be agnostic of whether the column has a labelFunction or not. Any ideas? Thanks. --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and erase this e-mail message immediately. --- -- 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 --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the
RE: [flexcoders] Accessing the main Application Class
Abdul My code is import mx.containers.Panel class XBApplication { public var parent:Object; function XBApplication(pParent:Object) { parent = pParent; } function SetMainPanelText() { main_panel.title=test; } } ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* backgroundColor=#7D8FA8 mx:XML id=menu_items source=menu.xml/ XBApplication id=xbApp/ xbApp(this); !-- Insert the main panel container !-- mx:Panel id=main_panel width=100% height=100% xbApp.SetMainPanelText(); /mx:Panel /mx:Application Marc Teichtahl XB Networks BV Manager, Engineering Phone: +31 (0)36 546 24 73 Mobile: +31 (0)65 582 47 89 [EMAIL PROTECTED] http://www.xb.nl From: flexcoders@yahoogroups.com on behalf of Abdul Qabiz Sent: Mon 10/10/2005 6:16 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Accessing the main Application Class mx.core.Application.application is reference to application. How are you trying to access it? -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Marc Teichtahl Sent: Monday, October 10, 2005 9:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Accessing the main Application Class Dear all, I would like some advise as to the best method for accessing the main Application class from an external AS. I am trying to achieve a base class that is used by the main application class to supply authentication etc and to at runtime update components and containers in the main Application class. To date, I have had no success. Marc Teichtahl XB Networks BV Director, Engineering Phone: +31 (0)36 546 24 73 Mobile: +31 (0)65 582 47 89 [EMAIL PROTECTED] http://www.xb.nl http://www.xb.nl/ Op dit e-mailbericht is een disclaimer van toepassing, welke te vinden is op http://www.xb.nl/disclaimer.html -- 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+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=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+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+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/ . Op dit e-mailbericht is een disclaimer van toepassing, welke te vinden is op http://www.xb.nl/disclaimer.html 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/ winmail.dat