Re: [flexcoders] pausing for given time
Carson Hager napisał(a): I believe what he's looking for is a way to suspend the executing thread as in Java's Thread.sleep(), etc. Unfortunately, given the asynch nature of the Flash player's engine, this is not possible. Carson Yey you're right that's what i wanted to achieve I've found the solution with setInterval and clearInterval krzysiek 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] WebService proxy strips all CRLF from SOAP requests
We need to send multiline text (entered into a TextArea) over SOAP but found that this does not work when using the Flex WebService proxy. When looking at the client side HTTP headers sent by the Flash client everything is ok and the SOAP message contains the correct CRLF sequence. Looking at the debug log of the WS proxy, the SOAP request to the endpoint URL created by the proxy contains no single CRLF. I think this is a bug. The proxy should not modify the data. Dirk. 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] WebService proxy strips all CRLF from SOAP requests
I had no problems with this. Could it be something in the debug writer of the WSD proxy? -- Joost -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dirk Eismann Sent: maandag 12 september 2005 12:03 To: flexcoders@yahoogroups.com Subject: [flexcoders] WebService proxy strips all CRLF from SOAP requests We need to send multiline text (entered into a TextArea) over SOAP but found that this does not work when using the Flex WebService proxy. When looking at the client side HTTP headers sent by the Flash client everything is ok and the SOAP message contains the correct CRLF sequence. Looking at the debug log of the WS proxy, the SOAP request to the endpoint URL created by the proxy contains no single CRLF. I think this is a bug. The proxy should not modify the data. Dirk. 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 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] pausing for given time
That's interesting. Everyone I've ever spoken with at MM said that putting the execution to sleep for a period of time was impossible. I'll have to look at those methods. What object are they on? Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY ext. 89 Mobile: 1.703.489.6466 Take PowerBuilder to the Web with EAF 4.0 http://www.cynergysystems.com/public/products/eaf -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Krzysztof Szlapinski Sent: Monday, September 12, 2005 2:15 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] pausing for given time Carson Hager napisał(a): I believe what he's looking for is a way to suspend the executing thread as in Java's Thread.sleep(), etc. Unfortunately, given the asynch nature of the Flash player's engine, this is not possible. Carson Yey you're right that's what i wanted to achieve I've found the solution with setInterval and clearInterval krzysiek 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 ~-- 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] OT: WebDU - 2006, Call for Papers
I'm not one for promoting needless noise, but felt this could be of great worth to folks here. The Successful MXDU (now called WebDU in favour of the Macromedia merger) is having a Call for Papers. Essentially this conference is a down under version of MAX only better (heh I'm biased). Its a laid-back yet educational conference centered around the Macromedia technology and you get a very interesting look into how folks are using the concepts (both Internationally and domestically). At any rate, there are a lot of talented Flex Coders here and would love to see you in the land responsible for Crocodile Hunter Steve Erwin (my apologies up front btw..we..just couldn't keep him contained within our borders) :) http://www.mxdu.com/go/papers I spoke at 2003 and walked away with some cool goodies, so that alone is worth the paper submission hehe (Speakers get in for free etc). I'll be nominating a paper on Practical guide to Skinning Flex so that's off limits hehe :) Back to your normal FLEX Coders channel. -- Regards,Scott Barneshttp://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 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] ViewStack Problem!
Hi All, I have a problem with ViewStack, when I click the first time on the first button that called a file, for example when I click on "SMET Team" button I want to get the "SmetPanelLeft.mxml" file and when I click on "Input Form" button I want to get the "InputPanelLeft.mxml" file. That work, but there is a problem the file display on the ViewStack over it self like a loop after clicking many times on the button it display the correct file. Can anybody help me and advice me with that problem? Many thanks Saleh Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. -- 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 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. Main.mxml Description: 3097075302-Main.mxml SmetPanelLeft.mxml Description: 2484319410-SmetPanelLeft.mxml InputPanelLeft.mxml Description: 1735446230-InputPanelLeft.mxml ReportPanelLeft.mxml Description: 3666302476-ReportPanelLeft.mxml @font-face { src:local(ARIAL); fontFamily: titleFont; } Application { marginTop: 10; marginBottom: 10; marginLeft: 10; marginRight: 10; } Panel { headerColors: #4C555E; footerColors: #4C555E,#4C555E; cornerRadius: 6; backgroundColor: #4C555E; dropShadow: true; panelBorderStyle: roundCorners; color: #FF; } TitleWindow { headerColors: #97D38A; cornerRadius: 6; dropShadow: false; color: #00; } Alert { headerColors: #97D38A; cornerRadius: 6; dropShadow: true; color: #00; } TabNavigator { backgroundColor: #4C555E; } TextInput { color: #00; } TextArea { color: #00; } Tab { fillColors: #2C2E31,#008090; selectedFillColors: #4C555E,#0f8090; textRollOverColor: #CBE9C4; textSelectedColor: #FF; } Button { cornerRadius: 3; borderThickness: 1; fillColors: #99, #99; themeColor: #14527A; color: #00; disabledColor: #99; border-color:#00CC66; } List { headerColors: #4C555E,#99; alternatingRowColors: #4C555E,#454C53; rollOverColor: #CBE9C4; selectionColor: #97D38A; backgroundColor: #4C555E; } DataGrid { headerColors: #4C555E,#99; alternatingRowColors: #4C555E,#454C53; rollOverColor: #CBE9C4; selectionColor: #97D38A; backgroundColor: #4C555E; } Spacer { backgroundColor: #99; } .title{ fontFamily: titleFont; fontSize: 20; color: #FF; } .ScrollBar { theme-color: #4C555E; } .MenuBar { color: #FF; backgroundAlpha: #4C555E; backgroundColor: #4C555E; backgroundDisabledColor: #4C555E; backgroundImage: #4C555E; backgroundSize: #4C555E; barColor: #4C555E; borderCapColor: #4C555E; borderColor: #4C555E; borderSides: #4C555E; borderStyle: #4C555E; borderThickness: #4C555E; cornerRadius: #4C555E; disabledColor: #4C555E; dropShadow: #4C555E; errorColor: #4C555E; fillColors: #4C555E; highlightColor: #4C555E; modalTransparency: #4C555E; scrollTrackColor: #4C555E; selectedFillColors: #4C555E; shadowCapColor: #4C555E; shadowColor: #4C555E; shadowDirection: #4C555E; shadowDistance: #4C555E; symbolBackgroundColor: #4C555E; symbolBackgroundDisabledColor: #4C555E; symbolBackgroundPressedColor: #4C555E; symbolColor: #4C555E; symbolDisabledColor: #4C555E; themeColor: #4C555E; }
[flexcoders] Re: Is there a LinkBar style similar to activeTab for tabNavigator
Thanks Saleh, I am already quite familiar with the CSS Style explorer but unfortunately it does not expose all the styles that are available for each component and what I'm trying to do is not a documented style that I have been able to find anyway. I suspect I will have to do it with some ActionScript and that was what I am looking for help with. But thanks for the response. Martin --- In flexcoders@yahoogroups.com, vnice Cute [EMAIL PROTECTED] wrote: Hello, Please try this URL http://weblogs.macromedia.com/mc/archives/FlexStyleExplorer.html that may help you to build your CSS file very easy. Thanks, Saleh delaquae [EMAIL PROTECTED] wrote: Is there any way for a LinkBar to approximate the activeTab style behaviour? Either with a style or via ActionScript? I need to set the background and text color for a link once it has been selected in order to visually indicate that it was selected/active. With a TabNavigator I was able to do this with: TabNavigator { horizontal-gap: 6; tab-height: 21; theme-color: #ff; background-color: #3399cc; } Tab { fill-colors: #cc, #f6; selected-fill-colors: #3399cc, #3399cc; color: #33; } ActiveTab { color: white; font-weight: bold; text-roll-over-color: white; } -- 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. - __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com 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] Custom Component Dynamic Data
I have built a custom City/State/Zip component to use throughout an application and, hopefully, throughout multiple applications. It consists of three ComboBoxes; if the user selects the state, it populates the city ComboBox with the cities for that state pulled from a database. Once the user selects a city, the zip codes for that city are then populated in the third ComboBox. It also works in reverse where the user can type in the zip code in the editable ComboBox and the State and City ComboBoxes are populated and selected with the appropriate data. Okay, all thats working. The application at hand is one where the user creates an event and selects the hotel for that event. Right now Im dealing only with the hotel data. There is a panel to list all the hotels in the database and a panel to edit that hotels data (along with panels for adding hotels, etc.). The application has a model to hold the data for the particular hotel being dealt with ( mx:Model id=HotelToEdit{roHotels.getHotel.result._items[0]}/mx:Model) I have the custom component dropped into my application on an edit form with the id=editCityStateZip and the data passed in so that is looks like: CityStateZip id=editCityStateZip state={HotelToEdit.HotelState} city={HotelToEdit.HotelCity} zip={HotelToEdit.HotelZip} / The user selects the hotel from the first panel, clicks a button that calls the RemoteObject (roHotels) that is used to pull the hotel data from the database and is directed to the Edit panel. Now, all of this is working so far. However, when the user goes back to the main panel that lists all the hotels, selects a new hotel, clicks the button and is sent back to the edit panel, all the data in that edit panel is updated except for the that in the CityStateZip component. Ive created a test function within the custom component to trace the data values for the city, state and zip variables and the correct ones are there in the component. It just seems that the function that picks the state in the state ComboBox, fn_pickState(stateName), (as this is the one that drives the others) gets fired before the data in model is changed or doesnt get fired after the initialization of the ComboBox. I call this function using the modelChanged event handler of the state ComboBox. Im also calling it using the resultHandler attribute of my RemoteObject. Ive also tried calling it with the function that loads the data for the edit panel and using the valueCommitted method of the state ComboBox. None of these are working. What am I missing here? How do I call my function after the data has been returned from the database and loaded into my data model? Im getting a huge headache from banging my head against the wall for two days! Please help! Thanks in advance, Brad -- 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] Setting a DataGrids MouseOver Status ?
Is there a way to set a datagrids mouseover status through actionscript ? I would like to keep my cellrenders mouseover status in synch with the listOwner. Rich Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Tomcat and Apache through mod_jk on Linux-HOWTO
I know how hard I struggled with these issues to get them working just right, and if I can simply post my steps and save others the same amount of time and effort, I'm glad to share. We can all benefit from each other's experiences, enabling all of us to reach farther faster than we could on our own. --- In flexcoders@yahoogroups.com, Steve Ocean [EMAIL PROTECTED] wrote: Just wanted to say thanks and good job! You've saved lots of people hours and hours of time. 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] about synchronization in retrieving data by using a httpservice
Are you using the call object to set an identifying token on your data call, and then using a result handler to process that call? If not see this link for some detail on the ACT pattern. http://www.cflex.net/showfaq.cfm?ChannelID=1faqType=#Question372 Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of xiankevin2005 Sent: Saturday, September 10, 2005 12:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] about synchronization in retrieving data by using a httpservice hi all, in my app,i need to retrieve data from different tables in the database and i have to divide the process into several steps.i send each request till the result of the previous step is received.but i think there're some problem due to synchronization all the same... i traced the result of each request.and i found some repeated results.. any help would be appreciated! thanks. kevin -- 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/
RE: [flexcoders] Re: main app build on the fly
Yes, you can set the url programmatically. That error usually means malformed xml. Verify your treeNav.xml file, be sure it has a single root node. Test with a stripped down xml file. Look at it in the console window or other debugger. Trace the tree xml result with toString(), to make sure you have the node and content you think. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ghislain Simard Sent: Sunday, September 11, 2005 12:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: main app build on the fly ok...here is what I tried. This could be ok if I can figured out what's wrong with my code. Error Message: HttpService Fault: A start tag had no corrresponding end tag. I initialized the app using xmlFeed.send()starts the HTTPService mx:HTTPService id=xmlFeed url=XML/treeNav.xml resultFormat=xml/ The Script: // this resultHandler is initiated by a RemoteObject result. // Put attention on the code in the switch. around xmlFeed.url... // I am trying to change the url in the HTTPService ...can I? function resultHandler(result):Void{ projID = ecranRO.affichage.result.PROJECTID; _global.projectID = projID; projectIDTitle.text = projID; if(result.NATURE == Neuf){ switch(result.VOCATIONREFERENCE){ case Hôtels et motels: xmlFeed.url = XML/treeNavExist.xml; xmlFeed.send(); //Is this refreshing the TreeNav break; } } } The MXML Code: !-- This code is bound to the XML from the HTTPService -- mx:Tree id=treeNav dataProvider={xmlFeed.result}/ --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: It's pretty difficult to get the app to load data before the rest initializes. I suppose what you could do is have your application not instantiate anything except for the data service, have the data service execute, and then in the result handler have it continue the instantiation of the children. You could do this very quickly using a ViewStack that has an empty VBox for its initial child, and then could make it a little more robust by looking into creationPolicy=none and other techniques. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ghislain Simard Sent: Saturday, September 10, 2005 6:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] main app build on the fly Hi, I am trying to get a navigation tree build on the fly based on the content in the database. My problem is when and where I should put the code to get the tree build before the app is initialize. 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 http://groups.yahoo.com/gads? t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Software+design+and+developmentw3=Macrome dia +flexw4=Software+development+best+practicec=4s=131.sig=FkTWphZzV9 mFu lU7V3u7pQ Software design and development http://groups.yahoo.com/gads? t=msk=Software+design+and+developmentw1= Web+site+design+developmentw2=Software+design+and+developmentw3=Mac rom edia+flexw4=Software+development+best+practicec=4s=131.sig=w0jnvy 4gy xC04c4dhRnw6A Macromedia flex http://groups.yahoo.com/gads? t=msk=Macromedia+flexw1=Web+site+design+ developmentw2=Software+design+and+developmentw3=Macromedia+flexw4= Sof tware+development+best+practicec=4s=131.sig=XXu7YeegB3Vi- 5Qngf6oNQ Software development best practice http://groups.yahoo.com/gads? t=msk=Software+development+best+practice w1=Web+site+design+developmentw2=Software+design+and+developmentw3= Mac romedia+flexw4=Software+development+best+practicec=4s=131.sig=ZT_ U6e _iPgXSriY_dI9nIg 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] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links 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:
RE: [flexcoders] pausing for given time
setInterval() does not pause exzecution, it just executes a function at a specified time interval. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: Monday, September 12, 2005 7:58 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] pausing for given time That's interesting. Everyone I've ever spoken with at MM said that putting the execution to sleep for a period of time was impossible. I'll have to look at those methods. What object are they on? Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY ext. 89 Mobile: 1.703.489.6466 Take PowerBuilder to the Web with EAF 4.0 http://www.cynergysystems.com/public/products/eaf -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Krzysztof Szlapinski Sent: Monday, September 12, 2005 2:15 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] pausing for given time Carson Hager napisał(a): I believe what he's looking for is a way to suspend the executing thread as in Java's Thread.sleep(), etc. Unfortunately, given the asynch nature of the Flash player's engine, this is not possible. Carson Yey you're right that's what i wanted to achieve I've found the solution with setInterval and clearInterval krzysiek 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 -- 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] pausing for given time
Title: Re: [flexcoders] pausing for given time That makes more sense. Thanks. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY ext. 89 Mobile: 1.703.489.6466 -Original Message- From: flexcoders@yahoogroups.com flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Sent: Mon Sep 12 12:54:38 2005 Subject: RE: [flexcoders] pausing for given time setInterval() does not pause exzecution, it just executes a function at a specified time interval. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Carson Hager Sent: Monday, September 12, 2005 7:58 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] pausing for given time That's interesting. Everyone I've ever spoken with at MM said that putting the execution to sleep for a period of time was impossible. I'll have to look at those methods. What object are they on? Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY ext. 89 Mobile: 1.703.489.6466 Take PowerBuilder to the Web with EAF 4.0 http://www.cynergysystems.com/public/products/eaf -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Krzysztof Szlapinski Sent: Monday, September 12, 2005 2:15 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] pausing for given time Carson Hager napisał(a): I believe what he's looking for is a way to suspend the executing thread as in Java's Thread.sleep(), etc. Unfortunately, given the asynch nature of the Flash player's engine, this is not possible. Carson Yey you're right that's what i wanted to achieve I've found the solution with setInterval and clearInterval krzysiek 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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ -- Flexcoders 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 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] Checkbox Cell Renderer
Title: Checkbox Cell Renderer Matt, Code is below. Can you please take a look at it and let me know what I am doing wrong? import mx.core.UIComponent import mx.controls.CheckBox class com.idt.pcmssearch.parametric.renderers.CheckCellRenderer extends UIComponent { var check : MovieClip; var listOwner : MovieClip; var getCellIndex : Function; var getDataLabel : Function; function CheckCellRenderer() { } function createChildren() : Void { check = createClassObject(CheckBox, check, 1, {styleName:this, owner:this}); check.addEventListener(click, this); size(); } function size() : Void { check.setSize(20, layoutHeight); check._x = (layoutWidth-20)/2; check._y = (layoutHeight-16)/2; } function setValue(str : String, currentItem : Object, sel : Boolean) : Void { //check._visible = (currentItem!=undefined); check.selected = currentItem[getDataLabel()]; } function getPreferredHeight() : Number { return 16; } function getPreferredWidth() : Number { return 20; } function click() { listOwner.editField( getCellIndex().itemIndex, getDataLabel(), check.selected ); } } Thanks Agha Mehdi IDT - eBusiness Program Manager From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Saturday, September 10, 2005 9:16 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Checkbox Cell Renderer Im guessing that you accidentally have a reference to something that is not being cleared in your renderer. Remember that the renderer is re-used for many items and as you scroll up and down it changes position. So maybe theres an instance variable in your renderer thats accidentally staying set, i.e., youre not clearing everything that you need to in your setValue method. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mehdi, Agha Sent: Friday, September 09, 2005 5:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Checkbox Cell Renderer Hi all, I have a weirdo thing going on with this renderer. When I check the checkbox in the grid, it automatically selects other checkboxes in the same grid randomly. The most interesting part is that when I scroll through the grid, it keeps checking/unchecking the boxes without any reason. Also, when I have some rows checked and I get new data in the grid, it keeps the boxes checked at previous indexes. Anyone ever ran into this issue? Thanks Agha Mehdi IDT - eBusiness Program Manager Work: 408.284.8239 Fax: 408.284.2766 -- 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 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] Gotchas with mod-proxy/mod_jk Flex
My mod_jk configuration has no problems with the samples or the source code view for the samples, UNTIL I install coldfusion. Coldfusion running standalone (in JRun) steals jsp calls, despite the redirect of the path to mod_jk. I modified AddHandler jrun-handler to not include .jsp and .jws, but JRun still takes over all jsp calls, and returns a License Exception error due to using Standard edition? My key is for CF6 Pro, but I'm guessing that version doesn't support serving JSP files. --- In flexcoders@yahoogroups.com, Eric Raymond [EMAIL PROTECTED] wrote: Now mod_jk has had problems with the flex proxy. Your mileage may vary: http://www.mail-archive.com/flexcoders@yahoogroups.com/msg05870.html It's been a while but I think there may have been some other issues with HttpSevices (but I'm not sure on this). We've worked around all of them, but we did have to deal with them unexpectedly. Surely others must have run into these roadblocks as well. Perhaps few are using the combination of tools we use: apache, mod_jk, tomcat, ssl, httpservice, custom authentication, etc. I've always reported these to customer service and logged them as bugs, so perhaps they will be addressed in a future version of Flex. Then again, these types of bugs so easily fall in a sea of finger pointing, non-trivial test case setups, and passing the buck. 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] setting value to datefield text..
I use change to set the value of the DateField but the text field accompanying it doesnt change. I havent tried the valueCommited event yet. I'll give it a try. On 9/10/05, Matt Chotin [EMAIL PROTECTED] wrote: Try change or valueCommitted maybe? Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Greg Morphis Sent: Friday, September 09, 2005 10:49 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] setting value to datefield text.. As per my previous post I've having problems trying to set the value of the textbox of the datefield component. I've tried mouseUp, mouseDown and offFocus. Is there a way of doing this so it's seemingly unnoticable to the user? I have a function that sets the selectedDate value.. function getNextSaturday(date) { // define variables var cMonth; var cYear; var cDay; var dayNum; var tempDate; // set variables cMonth = (date.getMonth()); cYear = date.getFullYear(); cDay = date.getDate(); dayNum = date.getDay(); // create date object for the next Saturday of the date chosen tempDate = new Date (cYear,cMonth,cDay + (6 - dayNum)); // set the datefield's value to your date object daDate.selectedDate = tempDate; //daDate.text=; } I know it's the text value you want to change but every event I try fails to change it. offFocus works however the user has to click elsewhere to see it's effect. The mouseDown and mouseUp, if they work they're changed back. I did notice the mouseUp works AFTER you select the value and then reclick on the datefield component. Is there an event I'm missing? Thanks! -- Auxilium meum a Domino -- 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. -- Auxilium meum a Domino 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] valueCommitted results in 3 alerts?
I took Matt's suggestion to using valueCommitted event to try to set the value of the text field of the DateField component. So to test it's functionality I did a simple alert.. mx:DateField id=daDate change=getNextSaturday(event.target.selectedDate); showToday=true valueCommitted=alert('hi'); / When ran, after I select the date from the dateField component I get a processor spike and 3 alerts, all say hi. I tried passing a string to the daDate.text of 'foo'. Nothing happens, and then the form becomes non responsive. I cannot click on the dateField calendar or text field. Anyone know why this is happening? !-- CODE -- mx:Script ![CDATA[ function getNextSaturday(date) { // define variables var cMonth; var cYear; var cDay; var dayNum; var tempDate; // set variables cMonth = (date.getMonth()); cYear = date.getFullYear(); cDay = date.getDate(); dayNum = date.getDay(); // create date object for the next Saturday of the date chosen tempDate = new Date (cYear,cMonth,cDay + (6 - dayNum)); // set the datefield's value to your date object daDate.selectedDate = tempDate; } ]] /mx:Script mx:DateField id=daDate change=getNextSaturday(event.target.selectedDate); showToday=true valueCommitted=alert('hi'); / -- Auxilium meum a Domino 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] Error: Flex HTTPService (JSP) and ColdFusion
I've isolated the HTTPService request errors in the Flex examples to an issue with ColdFusion's integrated JRun wanting to take over jsp execution. Changing AddHandler in Apache's configuration didn't make a difference, however, commenting out the following lines works: JRunConfig Serverstore /opt/coldfusion/runtime/lib/wsconfig/1/jrunserver.store JRunConfig Bootstrap 127.0.0.1:51010 Add either line back in and the HTTP server error pops up again. Pretty sad that Flex and CF just will not play nice together. We have a license for a full install of JRun, so I'll be testing that later today after I downgrade the server from JRE1.5 to 1.4 so I can install JRun. 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] pausing for given time
Tracy Spratt napisał(a): setInterval() does not pause exzecution, it just executes a function at a specified time interval. You're right but when used with clearInterval you can achieve something similar to pause. this is sample code (pausing for 2 seconds): function mystart(){ alert(And my heart will go on and on ... :)); clearInterval(intrvl); } var intrvl = setInterval(mystart,2000); krzysiek 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] Custom Component Instantiation Sequencing?
Hey all. I'm not really sure what to accurately name the topic of this relatively simple question - but I'll roll with Custom Component Instantiation Sequencing. - Got a Tab Navigator. - I have a generic component I made which I use in various locations. It generates a summary of some information depending on information passed to it. On Initialize it takes a username and calls a remote object to get back the appropriate data. This works fine when the main mxml file calls it, but when a custom component calls it the Initialize seems to occur before the databinding occurs. The problem I'm having is related to the timing of how this component is initialized. This works fine: mx:Canvas label="Canv1"/ comp:Summary id="s1" myUserName=""/ /mx:Canvas mx:Canvas label="Canv2"/ comp:MyComp/ comp:Summary id="s2" myUserName="{someVar}"/ /mx:Canvas S2 calls the remote object with the appropriate username, and gets back the data... This doesn't work fine: mx:Canvas label="Canv1"/ comp:Summary id="s1" myUserName=""/ /mx:Canvas mx:Canvas label="Canv2"/ comp:MyComp/ --- This component has comp:Summary id="s2" myUserName="{someVar}"/ inside it /mx:Canvas What happens is that the remote object is called before myUserName is set. myUserName in the S2 does get set appropriately, but not before the RO is called - hence returning back the wrong data. I tried playing around with creation policy settings, but no luck. Any thoughts? 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 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] pausing for given time
Sure. My point is just that you cannot use it to make *execution* wait/pause, in a function for example. Processing continues during the interval. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Krzysztof Szlapinski Sent: Monday, September 12, 2005 2:32 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] pausing for given time Tracy Spratt napisał(a): setInterval() does not pause exzecution, it just executes a function at a specified time interval. You're right but when used with clearInterval you can achieve something similar to pause. this is sample code (pausing for 2 seconds): function mystart(){ alert(And my heart will go on and on ... :)); clearInterval(intrvl); } var intrvl = setInterval(mystart,2000); krzysiek -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Setting focus on a specific cell.
Hi list, Is there a way to set focus on a specific cell of a datagrid to put the cell in edit mode? Thanks for any help. Omar Ramos System Developer -- 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 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] Custom Component Instantiation Sequencing?
Man... everytime I post to the list, I figure it out a few minutes later. Using creationComplete instead of initialize did the trick. What threw me off is it working fine being called from the main app, and the behavior changing when called from another component. Tariq Ahmed wrote: Hey all. I'm not really sure what to accurately name the topic of this relatively simple question - but I'll roll with Custom Component Instantiation Sequencing. - Got a Tab Navigator. - I have a generic component I made which I use in various locations. It generates a summary of some information depending on information passed to it. On Initialize it takes a username and calls a remote object to get back the appropriate data. This works fine when the main mxml file calls it, but when a custom component calls it the Initialize seems to occur before the databinding occurs. The problem I'm having is related to the timing of how this component is initialized. This works fine: mx:Canvas label="Canv1"/ comp:Summary id="s1" myUserName=""/ /mx:Canvas mx:Canvas label="Canv2"/ comp:MyComp/ comp:Summary id="s2" myUserName="{someVar}"/ /mx:Canvas S2 calls the remote object with the appropriate username, and gets back the data... This doesn't work fine: mx:Canvas label="Canv1"/ comp:Summary id="s1" myUserName=""/ /mx:Canvas mx:Canvas label="Canv2"/ comp:MyComp/ --- This component has comp:Summary id="s2" myUserName="{someVar}"/ inside it /mx:Canvas What happens is that the remote object is called before myUserName is set. myUserName in the S2 does get set appropriately, but not before the RO is called - hence returning back the wrong data. I tried playing around with creation policy settings, but no luck. Any thoughts? thanks! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS 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] Using a Repeater tag with an Array of VO's
Hi, I have a return from a remoteObject wich is an Array of VO's, the VO's have objects in them of which one is another Array of Vo's (the main Array is called TeamVO and the TeamVO has a variable inside it called players which is an array of playerVO's). I want to use a repeater to display the Managers and Players so I have done this: mx:Text text=Managers:/ mx:Repeater id=r dataProvider={myPojo.getTeams.result} mx:Label text={r.currentItem.teamName}/ mx:Label text={r.currentItem.manager}/ mx:Text text=Coaches:/ mx:Repeater id=r2 dataProvider={r.currentItem['players']} mx:Label text=x /mx:Repeater /mx:Repeater What do I put in the bit to get the players? The playerVO has one variable called player and it is a String (his name). Regards, Iain 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] pausing for given time
you're absolutely right - this is just a way to execute function once after given time. one can extend this code to something like this: var bool = true; function mystart(){ bool = false; clearInterval(intrvl); } var intrvl = setInterval(mystart,2000); while(bool){ // do noting } // here the rest of the code but there is still some execution going on in the while loop krzysiek Sure. My point is just that you cannot use it to make *execution* wait/pause, in a function for example. Processing continues during the interval. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Krzysztof Szlapinski Sent: Monday, September 12, 2005 2:32 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] pausing for given time Tracy Spratt napisał(a): setInterval() does not pause exzecution, it just executes a function at a specified time interval. You're right but when used with clearInterval you can achieve something similar to pause. this is sample code (pausing for 2 seconds): function mystart(){ alert(And my heart will go on and on ... :)); clearInterval(intrvl); } var intrvl = setInterval(mystart,2000); krzysiek -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- 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] Using a Repeater tag with an Array of VO's
How about: mx:Label text={r2.currentItem.name} Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Monday, September 12, 2005 3:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Using a Repeater tag with an Array of VO's Hi, I have a return from a remoteObject wich is an Array of VO's, the VO's have objects in them of which one is another Array of Vo's (the main Array is called TeamVO and the TeamVO has a variable inside it called players which is an array of playerVO's). I want to use a repeater to display the Managers and Players so I have done this: mx:Text text=Managers:/ mx:Repeater id=r dataProvider={myPojo.getTeams.result} mx:Label text={r.currentItem.teamName}/ mx:Label text={r.currentItem.manager}/ mx:Text text=Coaches:/ mx:Repeater id=r2 dataProvider={r.currentItem['players']} mx:Label text=x /mx:Repeater /mx:Repeater What do I put in the bit to get the players? The playerVO has one variable called player and it is a String (his name). Regards, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Using a Repeater tag with an Array of VO's
yeah, I tried that, but all I got was: Players: player player player player player. hmmmph. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: How about: mx:Label text={r2.currentItem.name} Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Monday, September 12, 2005 3:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Using a Repeater tag with an Array of VO's Hi, I have a return from a remoteObject wich is an Array of VO's, the VO's have objects in them of which one is another Array of Vo's (the main Array is called TeamVO and the TeamVO has a variable inside it called players which is an array of playerVO's). I want to use a repeater to display the Managers and Players so I have done this: mx:Text text=Managers:/ mx:Repeater id=r dataProvider={myPojo.getTeams.result} mx:Label text={r.currentItem.teamName}/ mx:Label text={r.currentItem.manager}/ mx:Text text=Players:/ mx:Repeater id=r2 dataProvider={r.currentItem['players']} mx:Label text=x /mx:Repeater /mx:Repeater What do I put in the bit to get the players? The playerVO has one variable called player and it is a String (his name). Regards, Iain -- 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/
RE: [flexcoders] Re: Using a Repeater tag with an Array of VO's
Doublecheck the data in the VO. In a result handler, try something like: trace(myPojo.getTeams.result[0].players[0].player) Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Monday, September 12, 2005 3:47 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Using a Repeater tag with an Array of VO's yeah, I tried that, but all I got was: Players: player player player player player. hmmmph. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: How about: mx:Label text={r2.currentItem.name} Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Monday, September 12, 2005 3:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Using a Repeater tag with an Array of VO's Hi, I have a return from a remoteObject wich is an Array of VO's, the VO's have objects in them of which one is another Array of Vo's (the main Array is called TeamVO and the TeamVO has a variable inside it called players which is an array of playerVO's). I want to use a repeater to display the Managers and Players so I have done this: mx:Text text=Managers:/ mx:Repeater id=r dataProvider={myPojo.getTeams.result} mx:Label text={r.currentItem.teamName}/ mx:Label text={r.currentItem.manager}/ mx:Text text=Players:/ mx:Repeater id=r2 dataProvider={r.currentItem['players']} mx:Label text=x /mx:Repeater /mx:Repeater What do I put in the bit to get the players? The playerVO has one variable called player and it is a String (his name). Regards, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- 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: Using a Repeater tag with an Array of VO's
Yip found it, it was a problem in the extraction from the database (forgot to put a teamVO.setPlayer(rs.getString(player)) and put a teamVO.setPlayer (player) instead, doh! All works now, but A repeater inside a tabNavigator VBox, why does the repeater fill the whole page and when you scroll down the repeater elements scroll up the whole page instead of inside the VBox of the tabNavigator Cheers, Iain --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Doublecheck the data in the VO. In a result handler, try something like: trace(myPojo.getTeams.result[0].players[0].player) Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Monday, September 12, 2005 3:47 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Using a Repeater tag with an Array of VO's yeah, I tried that, but all I got was: Players: player player player player player. hmmmph. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: How about: mx:Label text={r2.currentItem.name} Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Monday, September 12, 2005 3:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Using a Repeater tag with an Array of VO's Hi, I have a return from a remoteObject wich is an Array of VO's, the VO's have objects in them of which one is another Array of Vo's (the main Array is called TeamVO and the TeamVO has a variable inside it called players which is an array of playerVO's). I want to use a repeater to display the Managers and Players so I have done this: mx:Text text=Managers:/ mx:Repeater id=r dataProvider={myPojo.getTeams.result} mx:Label text={r.currentItem.teamName}/ mx:Label text={r.currentItem.manager}/ mx:Text text=Players:/ mx:Repeater id=r2 dataProvider={r.currentItem['players']} mx:Label text=x /mx:Repeater /mx:Repeater What do I put in the bit to get the players? The playerVO has one variable called player and it is a String (his name). Regards, Iain -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- 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] How to display CFC array of structures in a Flex datagrid?
Hi, I had the above process working at some point (with help from Flex coders on this message board), but for unknown reasons, it has stoped working. Quite simply, my CFC returns an array of structures and I'd like it to populate a data grid. Any help would be greatly appreciated. Many thanks, Darius Result Set returned by CFC --- Result (object #2) .[0] (object #3) ..Description: Services ..Function: Apply .[1] (object #4) ..Description: User Authorizations ..Function: Authorization .[10] (object #5) ..Description: location ..Function: Location .[11] (object #6) ..Description: CMS ..Function: CMS Flex code var RecordSetModel; private function doResult(event:Object):Void{ RecordSetModel = event.result._items; } mx:RemoteObject id=ro endpoint=http://gx270dev.net/flashservices/gateway; source=Model.mUtilities.mUpdate.fx_UpdateAuthorization fault=mx.controls.Alert.show(event.fault.faultstring) showBusyCursor=true mx:method name=invUpdateAuthorization result=doResult(event.result)/ /mx:RemoteObject mx:Panel width=100% title=Forms height=22% mx:DataGrid id=UpdatesDG width=166 height=156 wordWrap=true dataProvider={RecordSetModel} mx:columns mx:Array mx:DataGridColumn width=200 headerText=Update Form columnName=Function/ mx:DataGridColumn width=320 headerText=Description columnName=Description/ /mx:Array /mx:columns /mx:DataGrid mx:Button label=Get Records click=doClick()/ /mx:Panel 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] Question about remote objects
What are they and how are they used I am trying to understand them? -- 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 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] Question about remote objects
What are they and how are they used I am trying to understand them? -- 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 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] How to change the button's image after click
You can do this easily by setting button's toggle property to true and then changing the icon image by checking the value of button's selected property. See this example code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ [Embed(image1.jpg)] var img1:String; [Embed(image2.jpg)] var img2:String; private function checkToggle() { if (b1.selected) b1.icon = img2; else b1.icon = img1; } ]] /mx:Script mx:Button id=b1 toggle=true label=Button1 icon={img1} click=checkToggle()/ /mx:Application -Ashish -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Prasad Dhananjaya Sent: Sunday, September 11, 2005 9:58 PM To: FlexML Subject: [flexcoders] How to change the button's image after click Hi, I want to change the button's image(icon image) after click. (use this as toggle button) I tried several ways, but failed. Can someone tell me how to do this? thanks - ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ var first:String = true; function changeImage() { if (first==true){ but1.load('ob2.jpg'); first=false; } else { but1.load('ob1.jpg'); first=true; } } ]] /mx:Script mx:VBox mx:Button id=but1 click=changeImage() / /mx:VBox /mx:Application - 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 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] Bug in tabNavigator
Hi, I think I have found a bug in the tabNavigator. I have created a tabNavigator as per the documentation: It all works fine when it first compiles, but after you click the tabs a few times, the contents in the vBox start to scroll over the whole of the application. View an example here: http://www.shortbreadandhaggis.com:8080/panmure/home.mxml Instructions: Look at the about tab, scroll it , no problem, it's content is all contained within the VBox, now... click all the tabs once (quickly) from left to right, then go back to the about tab, now the text scrolls all the way down and up the page! (need to be above 800x600 res to see the bottom). I've changed the colors to black to make it more noticeable. Any ideas about this Iain 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: valueCommitted results in 3 alerts?
so I tried something else.. mx:DateField id=daDate change=getNextSaturday(event.target.selectedDate); showToday=true valueCommitted=setDate(); / caused the app to freeze up on me, however mx:DateField id=daDate change=getNextSaturday(event.target.selectedDate); showToday=true valueCommitted=setDate / !-- NO () -- Causes it to run that function. It still doesnt update the text of the dateField but it at least goes to the function now. Is this a bug in valueCommitted? On 9/12/05, Greg Morphis [EMAIL PROTECTED] wrote: I took Matt's suggestion to using valueCommitted event to try to set the value of the text field of the DateField component. So to test it's functionality I did a simple alert.. mx:DateField id=daDate change=getNextSaturday(event.target.selectedDate); showToday=true valueCommitted=alert('hi'); / When ran, after I select the date from the dateField component I get a processor spike and 3 alerts, all say hi. I tried passing a string to the daDate.text of 'foo'. Nothing happens, and then the form becomes non responsive. I cannot click on the dateField calendar or text field. Anyone know why this is happening? !-- CODE -- mx:Script ![CDATA[ function getNextSaturday(date) { // define variables var cMonth; var cYear; var cDay; var dayNum; var tempDate; // set variables cMonth = (date.getMonth()); cYear = date.getFullYear(); cDay = date.getDate(); dayNum = date.getDay(); // create date object for the next Saturday of the date chosen tempDate = new Date (cYear,cMonth,cDay + (6 - dayNum)); // set the datefield's value to your date object daDate.selectedDate = tempDate; } ]] /mx:Script mx:DateField id=daDate change=getNextSaturday(event.target.selectedDate); showToday=true valueCommitted=alert('hi'); / -- Auxilium meum a Domino -- Auxilium meum a Domino 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: Gotchas with mod-proxy/mod_jk Flex
Problem found. With JRun installed, it presumes to hog all JSP files, even those under the Tomca Webapps directory. By changing my apache configuration for JRun, it works. Issue and resolution posted in HOWTO. http://members.cox.net/midian/howto/apache+tomcat+mod_jk.htm --- In flexcoders@yahoogroups.com, charlespaz1 [EMAIL PROTECTED] wrote: My mod_jk configuration has no problems with the samples or the source code view for the samples, UNTIL I install coldfusion. Coldfusion running standalone (in JRun) steals jsp calls, despite the redirect of the path to mod_jk. I modified AddHandler jrun-handler to not include .jsp and .jws, but JRun still takes over all jsp calls, and returns a License Exception error due to using Standard edition? My key is for CF6 Pro, but I'm guessing that version doesn't support serving JSP files. 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: Error: Flex HTTPService (JSP) and ColdFusion
Problem found. With JRun installed, it presumes to hog all JSP files, even those under the Tomcat Webapps directory. By changing my apache configuration for JRun, it works. Issue and resolution posted in HOWTO. http://members.cox.net/midian/howto/apache+tomcat+mod_jk.htm --- In flexcoders@yahoogroups.com, charlespaz1 [EMAIL PROTECTED] wrote: I've isolated the HTTPService request errors in the Flex examples to an issue with ColdFusion's integrated JRun wanting to take over jsp execution. Changing AddHandler in Apache's configuration didn't make a difference, however, commenting out the following lines works: JRunConfig Serverstore /opt/coldfusion/runtime/lib/wsconfig/1/jrunserver.store JRunConfig Bootstrap 127.0.0.1:51010 Add either line back in and the HTTP server error pops up again. Pretty sad that Flex and CF just will not play nice together. We have a license for a full install of JRun, so I'll be testing that later today after I downgrade the server from JRE1.5 to 1.4 so I can install JRun. 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: Bug in tabNavigator
Hard to say what's going wrong there, I can see what's happening in your sample, but I wasn't able to reproduce something which behaves the same way on my side ;) Can you paste the mxml of your about-tab? --- In flexcoders@yahoogroups.com, digital_eyezed [EMAIL PROTECTED] wrote: Hi, I think I have found a bug in the tabNavigator. I have created a tabNavigator as per the documentation: It all works fine when it first compiles, but after you click the tabs a few times, the contents in the vBox start to scroll over the whole of the application. View an example here: http://www.shortbreadandhaggis.com:8080/panmure/home.mxml Instructions: Look at the about tab, scroll it , no problem, it's content is all contained within the VBox, now... click all the tabs once (quickly) from left to right, then go back to the about tab, now the text scrolls all the way down and up the page! (need to be above 800x600 res to see the bottom). I've changed the colors to black to make it more noticeable. Any ideas about this Iain Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Bug in tabNavigator
It has a repeater in it: mx:VBox hScrollPolicy=off label=About width=800 height=600 creationComplete=panmure.getTeams(); mx:Label text=Teams fontWeight=bold fontSize=18/ mx:Repeater id=r dataProvider={panmure.getTeams.result} mx:Label fontSize=16 fontWeight=bold color=#00 text={r.currentItem.teamName}/ mx:Label fontSize=14 color=#00 text=Manager: {r.currentItem.manager}/ mx:HBox width=100% horizontalAlign=left mx:Text color=#00 text=Coaches: fontSize=14/ mx:Repeater id=r2 dataProvider={r.currentItem['coaches']} mx:Label color=#00 text={r2.currentItem.coach} fontSize=14/ /mx:Repeater /mx:HBox mx:HBox horizontalAlign=left mx:Text color=#00 text=Players: fontSize=14/ mx:Repeater id=r3 dataProvider={r.currentItem['players']} mx:Label color=#00 text={r3.currentItem.player} fontSize=12/ /mx:Repeater /mx:HBox /mx:Repeater /mx:VBox I'm confused! --- In flexcoders@yahoogroups.com, Patrick [EMAIL PROTECTED] wrote: Hard to say what's going wrong there, I can see what's happening in your sample, but I wasn't able to reproduce something which behaves the same way on my side ;) Can you paste the mxml of your about-tab? --- In flexcoders@yahoogroups.com, digital_eyezed [EMAIL PROTECTED] wrote: Hi, I think I have found a bug in the tabNavigator. I have created a tabNavigator as per the documentation: It all works fine when it first compiles, but after you click the tabs a few times, the contents in the vBox start to scroll over the whole of the application. View an example here: http://www.shortbreadandhaggis.com:8080/panmure/home.mxml Instructions: Look at the about tab, scroll it , no problem, it's content is all contained within the VBox, now... click all the tabs once (quickly) from left to right, then go back to the about tab, now the text scrolls all the way down and up the page! (need to be above 800x600 res to see the bottom). I've changed the colors to black to make it more noticeable. Any ideas about this Iain 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] Datagrid columns resize
I have a datagrid on top of another datagrid. The bottom grid is for totals of the top grid. When I resize the a column in the top grid I want the bottom grid to adopt the new column width. Is this possible to do? I know I can call a function using columnStretch. So I guess I would need to know the correct actionscript syntax. Thanks 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: Question about remote objects
--- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: What are they and how are they used I am trying to understand them? The idea of Remote Objects is to have a client side proxy object which gives access to java objects that reside on the java application server on which flex is running. That way you can call plain (custom) java objects or JavaBeans which are located in the web application classpath: mx:Application creationComplete=remoteObject.outMethod()/ mx:RemoteObject id=remoteObject source=path.class/ mx:Label text={remoteObject.outMethod.result}/ Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Datagrid columns resize
This does it: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; backgroundColor=#FF mx:Script ![CDATA[ public function setWidth(event){ if (event.target == _level0.myGrid2){ myGrid.getColumnAt(event.columnIndex).width = myGrid2.getColumnAt(event.columnIndex).width ; } else if(event.target == _level0.myGrid){ myGrid2.getColumnAt(event.columnIndex).width = myGrid.getColumnAt(event.columnIndex).width ; } } ]] /mx:Script mx:DataGrid width=100% id=myGrid alternatingRowColors=[#CC,#FF] columnStretch=setWidth (event); marginBottom=0 mx:columns mx:Array mx:DataGridColumn headerText=Key cellRenderer=MyTotal/ mx:DataGridColumn headerText=Value/ mx:DataGridColumn headerText=Test/ mx:DataGridColumn headerText=Test2/ /mx:Array /mx:columns /mx:DataGrid mx:DataGrid rowHeight=30 width=100% borderThickness=0 vGridLineColor=#FF hGridLineColor=#FF id=myGrid2 columnStretch=setWidth(event); headerHeight=0 rowCount=1 mx:columns mx:Array mx:DataGridColumn / mx:DataGridColumn / mx:DataGridColumn cellRenderer=MyTotal/ mx:DataGridColumn / /mx:Array /mx:columns /mx:DataGrid /mx:Application --- In flexcoders@yahoogroups.com, Joe [EMAIL PROTECTED] wrote: I have a datagrid on top of another datagrid. The bottom grid is for totals of the top grid. When I resize the a column in the top grid I want the bottom grid to adopt the new column width. Is this possible to do? I know I can call a function using columnStretch. So I guess I would need to know the correct actionscript syntax. Thanks 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: Datagrid columns resize
Sorry, remove the cellrenderer: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; backgroundColor=#FF mx:Script ![CDATA[ public function setWidth(event){ if (event.target == _level0.myGrid2){ myGrid.getColumnAt(event.columnIndex).width = myGrid2.getColumnAt(event.columnIndex).width ; } else if(event.target == _level0.myGrid){ myGrid2.getColumnAt(event.columnIndex).width = myGrid.getColumnAt(event.columnIndex).width ; } } ]] /mx:Script mx:DataGrid width=100% id=myGrid alternatingRowColors=[#CC,#FF] columnStretch=setWidth (event); marginBottom=0 mx:columns mx:Array mx:DataGridColumn headerText=Key / mx:DataGridColumn headerText=Value/ mx:DataGridColumn headerText=Test/ mx:DataGridColumn headerText=Test2/ /mx:Array /mx:columns /mx:DataGrid mx:DataGrid rowHeight=30 width=100% borderThickness=0 vGridLineColor=#FF hGridLineColor=#FF id=myGrid2 columnStretch=setWidth(event); headerHeight=0 rowCount=1 mx:columns mx:Array mx:DataGridColumn / mx:DataGridColumn / mx:DataGridColumn / mx:DataGridColumn / /mx:Array /mx:columns /mx:DataGrid /mx:Application --- In flexcoders@yahoogroups.com, digital_eyezed [EMAIL PROTECTED] wrote: This does it: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; backgroundColor=#FF mx:Script ![CDATA[ public function setWidth(event){ if (event.target == _level0.myGrid2){ myGrid.getColumnAt(event.columnIndex).width = myGrid2.getColumnAt(event.columnIndex).width ; } else if(event.target == _level0.myGrid){ myGrid2.getColumnAt(event.columnIndex).width = myGrid.getColumnAt(event.columnIndex).width ; } } ]] /mx:Script mx:DataGrid width=100% id=myGrid alternatingRowColors=[#CC,#FF] columnStretch=setWidth (event); marginBottom=0 mx:columns mx:Array mx:DataGridColumn headerText=Key cellRenderer=MyTotal/ mx:DataGridColumn headerText=Value/ mx:DataGridColumn headerText=Test/ mx:DataGridColumn headerText=Test2/ /mx:Array /mx:columns /mx:DataGrid mx:DataGrid rowHeight=30 width=100% borderThickness=0 vGridLineColor=#FF hGridLineColor=#FF id=myGrid2 columnStretch=setWidth(event); headerHeight=0 rowCount=1 mx:columns mx:Array mx:DataGridColumn / mx:DataGridColumn / mx:DataGridColumn cellRenderer=MyTotal/ mx:DataGridColumn / /mx:Array /mx:columns /mx:DataGrid /mx:Application --- In flexcoders@yahoogroups.com, Joe [EMAIL PROTECTED] wrote: I have a datagrid on top of another datagrid. The bottom grid is for totals of the top grid. When I resize the a column in the top grid I want the bottom grid to adopt the new column width. Is this possible to do? I know I can call a function using columnStretch. So I guess I would need to know the correct actionscript syntax. Thanks 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: Is there a LinkBar style similar to activeTab for tabNavigator
You can't change the backgroundcolor of the selected link but you can change the color and font properties to show that its selected. Below is the sample code, where I'm changing the font color of the selected link to red and also making it bold. Hope this will help. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; width=600 height=600 mx:Script ![CDATA[ function doLinkBar(event){ for(var i=0; ievent.target.numChildren; i++){ var curItem = event.target.getChildAt(i); if (i==event.index) { curItem.setStyle(color, 0xFF); curItem.setStyle(fontWeight, 'bold'); }else{ curItem.setStyle(color, 0x00); curItem.setStyle(fontWeight, 'normal'); } } } ]] /mx:Script mx:LinkBar id=lb1 dataProvider={['Flex','Flash','Dreamweaver','Breeze']} click=doLinkBar(event)/ /mx:Application To show the selected link as red and bold when the page first loads, you can write an initialize event handler and change the link appearance of the default selected link in that function. -Ashish -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of delaquae Sent: Monday, September 12, 2005 7:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Is there a LinkBar style similar to activeTab for tabNavigator Thanks Saleh, I am already quite familiar with the CSS Style explorer but unfortunately it does not expose all the styles that are available for each component and what I'm trying to do is not a documented style that I have been able to find anyway. I suspect I will have to do it with some ActionScript and that was what I am looking for help with. But thanks for the response. Martin --- In flexcoders@yahoogroups.com, vnice Cute [EMAIL PROTECTED] wrote: Hello, Please try this URL http://weblogs.macromedia.com/mc/archives/FlexStyleExplorer.html that may help you to build your CSS file very easy. Thanks, Saleh delaquae [EMAIL PROTECTED] wrote: Is there any way for a LinkBar to approximate the activeTab style behaviour? Either with a style or via ActionScript? I need to set the background and text color for a link once it has been selected in order to visually indicate that it was selected/active. With a TabNavigator I was able to do this with: TabNavigator { horizontal-gap: 6; tab-height: 21; theme-color: #ff; background-color: #3399cc; } Tab { fill-colors: #cc, #f6; selected-fill-colors: #3399cc, #3399cc; color: #33; } ActiveTab { color: white; font-weight: bold; text-roll-over-color: white; } -- 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. - __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com 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 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] userlogin
Have you tried passing a NULL as your last argument? I know this sounds strange, but it works when using remote objects (AMF), not too sure if the same goes for cf web services. Thus your call in as will look like this: srv.qpUserLogin(usr, pss, NULL); And in your cfc arguments define a 'FlexNULL' or something similar: cffunction name=qpUserLogin access=remote hint=from tbl_smartPanel_users returnType=string output=false cfargument name=usr type=string required=true / cfargument name=pss type=string required=true / cfargument name=FlexNull type=any required=no default= !--- your code here --- /cffunction Post on it here: http://www.flexingcfmx.com/index.cfm?mode=entryentry=D36D5CE5-FB00-283B-A23 A89CB46949A4D Hope this helps :] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Tuesday, 13 September 2005 7:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] userlogin I am working on a simple test user login, and I am having a butt load of trouble with it. When I test the code, it tells me that element usr is undefined in my argument. You can see the file here. Does anyone know of a tutorial using cf? http://70.97.113.6/flex/ Here is my code. CF-- cffunction name=qpUserLogin access=remote hint=from tbl_smartPanel_users returnType=string output=false cfargument name=usr type=string required=true / cfargument name=pss type=string required=true / !-- Query for pulling userinfo based on what was passed from as -- cfquery name=qpGetLogin datasource=#application.dsn# select * from tbl_smartPanel_userList where fld_userlogin='#argument.usr#' and fld_userpass='#argument.pss#' /cfquery cfif qSecurity.recordcount gt 0 cfset access=T cfelse cfset access=F /cfif cfreturn access / /cffunction AS-- // ActionScript Document function qpUserLogin(usr, pss) { srv.qpUserLogin(usr, pss); } Flex-- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:WebService id=srv wsdl=http://70.97.113.6/test/smartPanel.cfc?wsdl; /mx:WebService mx:Script source=login.as / mx:Form mx:FormItem label=Username required=true mx:TextInput id=usr / /mx:FormItem mx:FormItem label=Password required=true mx:TextInput id=pss / /mx:FormItem /mx:Form mx:ControlBar horizontalAlign=right mx:Button label=Submit click=qpUserLogin(usr.text, pss.text); / /mx:ControlBar /mx:Application -- 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] How to create a binding from within an actionscript class file?
In my class file I call EventBroadcaster to dispatch an event that eventually retrieves a string into a Command.onResult(). I need that string back in my class file. So, I want to bind a variable in the class file to that onResult method. Could someone show me how to do this? Perhaps there is a way to instantiate mx:Binding in my class file some way, that would do it, but I can't figure it out. Or is there a better way (the right way) to do this without coupling the class file to the command file? Thanks, Libby Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: userlogin
Ok I think I got the log in working now, but the next question I have is how to to send them to a new page if they are logged in. --- In flexcoders@yahoogroups.com, Malcolm [EMAIL PROTECTED] wrote: Have you tried passing a NULL as your last argument? I know this sounds strange, but it works when using remote objects (AMF), not too sure if the same goes for cf web services. Thus your call in as will look like this: srv.qpUserLogin(usr, pss, NULL); And in your cfc arguments define a 'FlexNULL' or something similar: cffunction name=qpUserLogin access=remote hint=from tbl_smartPanel_users returnType=string output=false cfargument name=usr type=string required=true / cfargument name=pss type=string required=true / cfargument name=FlexNull type=any required=no default= !--- your code here --- /cffunction Post on it here: http://www.flexingcfmx.com/index.cfm?mode=entryentry=D36D5CE5-FB00-283B-A23 A89CB46949A4D Hope this helps :] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Tuesday, 13 September 2005 7:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] userlogin I am working on a simple test user login, and I am having a butt load of trouble with it. When I test the code, it tells me that element usr is undefined in my argument. You can see the file here. Does anyone know of a tutorial using cf? http://70.97.113.6/flex/ Here is my code. CF-- cffunction name=qpUserLogin access=remote hint=from tbl_smartPanel_users returnType=string output=false cfargument name=usr type=string required=true / cfargument name=pss type=string required=true / !-- Query for pulling userinfo based on what was passed from as -- cfquery name=qpGetLogin datasource=#application.dsn# select * from tbl_smartPanel_userList where fld_userlogin='#argument.usr#' and fld_userpass='#argument.pss#' /cfquery cfif qSecurity.recordcount gt 0 cfset access=T cfelse cfset access=F /cfif cfreturn access / /cffunction AS-- // ActionScript Document function qpUserLogin(usr, pss) { srv.qpUserLogin(usr, pss); } Flex-- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:WebService id=srv wsdl=http://70.97.113.6/test/smartPanel.cfc?wsdl; /mx:WebService mx:Script source=login.as / mx:Form mx:FormItem label=Username required=true mx:TextInput id=usr / /mx:FormItem mx:FormItem label=Password required=true mx:TextInput id=pss / /mx:FormItem /mx:Form mx:ControlBar horizontalAlign=right mx:Button label=Submit click=qpUserLogin(usr.text, pss.text); / /mx:ControlBar /mx:Application -- 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/
Re: [flexcoders] Re: Datagrid columns resize
Thank you, that's perfect. Would you be able to tell me the correct syntax to get compute the colums in the datagrid? thanks CONFIDENTIALITY STATEMENT - This message and any files or text attached to it are intended only for the recipients named above, and contain information that may be confidential or privileged. If you are not an intended recipient, you must not read, copy, use, or disclose this communication. Please also notify the sender by replying to this message, and then delete all copies of it from your system. Thank you. digital_eyezed [EMAIL PROTECTED] Sent by: flexcoders@yahoogroups.com 09/12/2005 03:26 PM Please respond to flexcoders@yahoogroups.com To flexcoders@yahoogroups.com cc Subject [flexcoders] Re: Datagrid columns resize Sorry, remove the cellrenderer: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml backgroundColor=#FF mx:Script ![CDATA[ public function setWidth(event){ if (event.target == _level0.myGrid2){ myGrid.getColumnAt(event.columnIndex).width = myGrid2.getColumnAt(event.columnIndex).width ; } else if(event.target == _level0.myGrid){ myGrid2.getColumnAt(event.columnIndex).width = myGrid.getColumnAt(event.columnIndex).width ; } } ]] /mx:Script mx:DataGrid width=100% id=myGrid alternatingRowColors=[#CC,#FF] columnStretch=setWidth (event); marginBottom=0 mx:columns mx:Array mx:DataGridColumn headerText=Key / mx:DataGridColumn headerText=Value/ mx:DataGridColumn headerText=Test/ mx:DataGridColumn headerText=Test2/ /mx:Array /mx:columns /mx:DataGrid mx:DataGrid rowHeight=30 width=100% borderThickness=0 vGridLineColor=#FF hGridLineColor=#FF id=myGrid2 columnStretch=setWidth(event); headerHeight=0 rowCount=1 mx:columns mx:Array mx:DataGridColumn / mx:DataGridColumn / mx:DataGridColumn / mx:DataGridColumn / /mx:Array /mx:columns /mx:DataGrid /mx:Application --- In flexcoders@yahoogroups.com, digital_eyezed [EMAIL PROTECTED] wrote: This does it: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml backgroundColor=#FF mx:Script ![CDATA[ public function setWidth(event){ if (event.target == _level0.myGrid2){ myGrid.getColumnAt(event.columnIndex).width = myGrid2.getColumnAt(event.columnIndex).width ; } else if(event.target == _level0.myGrid){ myGrid2.getColumnAt(event.columnIndex).width = myGrid.getColumnAt(event.columnIndex).width ; } } ]] /mx:Script mx:DataGrid width=100% id=myGrid alternatingRowColors=[#CC,#FF] columnStretch=setWidth (event); marginBottom=0 mx:columns mx:Array mx:DataGridColumn headerText=Key cellRenderer=MyTotal/ mx:DataGridColumn headerText=Value/ mx:DataGridColumn headerText=Test/ mx:DataGridColumn headerText=Test2/ /mx:Array /mx:columns /mx:DataGrid mx:DataGrid rowHeight=30 width=100% borderThickness=0 vGridLineColor=#FF hGridLineColor=#FF id=myGrid2 columnStretch=setWidth(event); headerHeight=0 rowCount=1 mx:columns mx:Array mx:DataGridColumn / mx:DataGridColumn / mx:DataGridColumn cellRenderer=MyTotal/ mx:DataGridColumn / /mx:Array /mx:columns /mx:DataGrid /mx:Application --- In flexcoders@yahoogroups.com, Joe [EMAIL PROTECTED] wrote: I have a datagrid on top of another datagrid. The bottom grid is for totals of the top grid. When I resize the a column in the top grid I want the bottom grid to adopt the new column width. Is this possible to do? I know I can call a function using columnStretch. So I guess I would need to know the correct actionscript syntax. Thanks 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 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!
RE: [flexcoders] Re: userlogin
Its easier if you name your arguments when you are sending them. It makes it less confusing. Thus your call in as will look like this: srv.qpUserLogin({usr:usrFormField.text, pss:pssFormField.text}); From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeremy Rottman Sent: Monday, September 12, 2005 7:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: userlogin Ok I think I got the log in working now, but the next question I have is how to to send them to a new page if they are logged in. --- In flexcoders@yahoogroups.com, Malcolm [EMAIL PROTECTED] wrote: Have you tried passing a NULL as your last argument? I know this sounds strange, but it works when using remote objects (AMF), not too sure if the same goes for cf web services. Thus your call in as will look like this: srv.qpUserLogin(usr, pss, NULL); And in your cfc arguments define a 'FlexNULL' or something similar: cffunction name=qpUserLogin access=remote hint=from tbl_smartPanel_users returnType=string output=false cfargument name=usr type=string required=true / cfargument name=pss type=string required=true / cfargument name=FlexNull type=any required=no default= !--- your code here --- /cffunction Post on it here: http://www.flexingcfmx.com/index.cfm?mode=entryentry=D36D5CE5-FB00-283B-A23 A89CB46949A4D Hope this helps :] -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeremy Rottman Sent: Tuesday, 13 September 2005 7:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] userlogin I am working on a simple test user login, and I am having a butt load of trouble with it. When I test the code, it tells me that element usr is undefined in my argument. You can see the file here. Does anyone know of a tutorial using cf? http://70.97.113.6/flex/ Here is my code. CF-- cffunction name=qpUserLogin access=remote hint=from tbl_smartPanel_users returnType=string output=false cfargument name=usr type=string required=true / cfargument name=pss type=string required=true / !-- Query for pulling userinfo based on what was passed from as -- cfquery name=qpGetLogin datasource=#application.dsn# select * from tbl_smartPanel_userList where fld_userlogin='#argument.usr#' and fld_userpass='#argument.pss#' /cfquery cfif qSecurity.recordcount gt 0 cfset access=T cfelse cfset access=F /cfif cfreturn access / /cffunction AS-- // ActionScript Document function qpUserLogin(usr, pss) { srv.qpUserLogin(usr, pss); } Flex-- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml mx:WebService id=srv wsdl=http://70.97.113.6/test/smartPanel.cfc?wsdl /mx:WebService mx:Script source=login.as / mx:Form mx:FormItem label=Username required=true mx:TextInput id=usr / /mx:FormItem mx:FormItem label=Password required=true mx:TextInput id=pss / /mx:FormItem /mx:Form mx:ControlBar horizontalAlign=right mx:Button label=Submit click=qpUserLogin(usr.text, pss.text); / /mx:ControlBar /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development 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] Re: userlogin
Hi there, one possible way is to set a viewstack that switchs between your login and your main application. You'll set your variable as false when you declare it and when getting the respose from login as logged you just need to set the variable = true. Then the bindings with do their work. mx:Viewstack selectedChild={someFunction(isLogged)} mx:SomeContainerWithLoginForm id=SomeContainerWithLoginForm/ mx:SomeContainerWithApplication id=SomeContainerWithApplication/ /mx:Viewstack ActionScript var isLogged:Boolean=false; function someFunction(logged:Boolean){ if (logged) { return SomeContainerWithApplication; }else{ return SomeContainerWithLoginForm; } } Regards, João Fernandes -Original Message- From: flexcoders@yahoogroups.com on behalf of Jeremy Rottman Sent: Tue 13-Sep-05 12:43 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: userlogin Ok I think I got the log in working now, but the next question I have is how to to send them to a new page if they are logged in. --- In flexcoders@yahoogroups.com, Malcolm [EMAIL PROTECTED] wrote: Have you tried passing a NULL as your last argument? I know this sounds strange, but it works when using remote objects (AMF), not too sure if the same goes for cf web services. Thus your call in as will look like this: srv.qpUserLogin(usr, pss, NULL); And in your cfc arguments define a 'FlexNULL' or something similar: cffunction name=qpUserLogin access=remote hint=from tbl_smartPanel_users returnType=string output=false cfargument name=usr type=string required=true / cfargument name=pss type=string required=true / cfargument name=FlexNull type=any required=no default= !--- your code here --- /cffunction Post on it here: http://www.flexingcfmx.com/index.cfm?mode=entryentry=D36D5CE5-FB00-283B-A23 A89CB46949A4D Hope this helps :] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Tuesday, 13 September 2005 7:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] userlogin I am working on a simple test user login, and I am having a butt load of trouble with it. When I test the code, it tells me that element usr is undefined in my argument. You can see the file here. Does anyone know of a tutorial using cf? http://70.97.113.6/flex/ Here is my code. CF-- cffunction name=qpUserLogin access=remote hint=from tbl_smartPanel_users returnType=string output=false cfargument name=usr type=string required=true / cfargument name=pss type=string required=true / !-- Query for pulling userinfo based on what was passed from as -- cfquery name=qpGetLogin datasource=#application.dsn# select * from tbl_smartPanel_userList where fld_userlogin='#argument.usr#' and fld_userpass='#argument.pss#' /cfquery cfif qSecurity.recordcount gt 0 cfset access=T cfelse cfset access=F /cfif cfreturn access / /cffunction AS-- // ActionScript Document function qpUserLogin(usr, pss) { srv.qpUserLogin(usr, pss); } Flex-- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:WebService id=srv wsdl=http://70.97.113.6/test/smartPanel.cfc?wsdl; /mx:WebService mx:Script source=login.as / mx:Form mx:FormItem label=Username required=true mx:TextInput id=usr / /mx:FormItem mx:FormItem label=Password required=true mx:TextInput id=pss / /mx:FormItem /mx:Form mx:ControlBar horizontalAlign=right mx:Button label=Submit click=qpUserLogin(usr.text, pss.text); / /mx:ControlBar /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS *Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. *To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] *Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List
RE: [flexcoders] Re: userlogin
Hello, Just chiming in. I use a login popup for my app. This comes back from the service with either the users configuration information as well as there security level, or it comes back with a message from the service stating that either the login was not found, or the password for that login was incorrect, it gives them 3 try's to get it right before closing out the login popup. I second the motion of using binding in this particular situation it works really well as I can just add the enabled portion to any control as in: enabled={UserLevel=StoreGuestLevel?true:false} enabled={UserLevel=StoreCashierLevel?true:false} enabled={UserLevel=StoreManagerLevel?true:false} This allows me to set the controls once and forget about it. Gawd!!! I love this Job!!! James -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of João Fernandes Sent: Monday, September 12, 2005 8:41 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: userlogin Hi there, one possible way is to set a viewstack that switchs between your login and your main application. You'll set your variable as false when you declare it and when getting the respose from login as logged you just need to set the variable = true. Then the bindings with do their work. mx:Viewstack selectedChild={someFunction(isLogged)} mx:SomeContainerWithLoginForm id=SomeContainerWithLoginForm/ mx:SomeContainerWithApplication id=SomeContainerWithApplication/ /mx:Viewstack ActionScript var isLogged:Boolean=false; function someFunction(logged:Boolean){ if (logged) { return SomeContainerWithApplication; }else{ return SomeContainerWithLoginForm; } } Regards, João Fernandes -Original Message- From: flexcoders@yahoogroups.com on behalf of Jeremy Rottman Sent: Tue 13-Sep-05 12:43 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: userlogin Ok I think I got the log in working now, but the next question I have is how to to send them to a new page if they are logged in. --- In flexcoders@yahoogroups.com, Malcolm [EMAIL PROTECTED] wrote: Have you tried passing a NULL as your last argument? I know this sounds strange, but it works when using remote objects (AMF), not too sure if the same goes for cf web services. Thus your call in as will look like this: srv.qpUserLogin(usr, pss, NULL); And in your cfc arguments define a 'FlexNULL' or something similar: cffunction name=qpUserLogin access=remote hint=from tbl_smartPanel_users returnType=string output=false cfargument name=usr type=string required=true / cfargument name=pss type=string required=true / cfargument name=FlexNull type=any required=no default= !--- your code here --- /cffunction Post on it here: http://www.flexingcfmx.com/index.cfm?mode=entryentry=D36D5CE5-FB00-283B-A23 A89CB46949A4D Hope this helps :] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Tuesday, 13 September 2005 7:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] userlogin I am working on a simple test user login, and I am having a butt load of trouble with it. When I test the code, it tells me that element usr is undefined in my argument. You can see the file here. Does anyone know of a tutorial using cf? http://70.97.113.6/flex/ Here is my code. CF-- cffunction name=qpUserLogin access=remote hint=from tbl_smartPanel_users returnType=string output=false cfargument name=usr type=string required=true / cfargument name=pss type=string required=true / !-- Query for pulling userinfo based on what was passed from as -- cfquery name=qpGetLogin datasource=#application.dsn# select * from tbl_smartPanel_userList where fld_userlogin='#argument.usr#' and fld_userpass='#argument.pss#' /cfquery cfif qSecurity.recordcount gt 0 cfset access=T cfelse cfset access=F /cfif cfreturn access / /cffunction AS-- // ActionScript Document function qpUserLogin(usr, pss) { srv.qpUserLogin(usr, pss); } Flex-- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:WebService id=srv wsdl=http://70.97.113.6/test/smartPanel.cfc?wsdl; /mx:WebService mx:Script source=login.as / mx:Form mx:FormItem label=Username required=true mx:TextInput id=usr / /mx:FormItem mx:FormItem label=Password required=true mx:TextInput id=pss / /mx:FormItem /mx:Form mx:ControlBar horizontalAlign=right mx:Button label=Submit click=qpUserLogin(usr.text, pss.text); / /mx:ControlBar /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: