Re: [flexcoders] Overlay container on panels
Hi, I ran through your code. Looks like you have not quite understood the concept of using mx:Canvas. Also I found that your layout is in total disarray! Use these guidelines for basic layout. 1. You use mx:HBox to layout components horizontally. 2. Use mx:VBox to layout components vertically 3. Use mx:Canvas to layout components over each other or you have real reason to moce around components on the stage. 4. For your requirement, I assume an accordian would be the best. 5. Try and avoid statically positioning/sizing components. Use percentages as much as possible. (I myself have started seeing the beauty of flexi/scalable layouts! and I believe this is what Flex makes your layout a lot more attractive) If I understand your requirement correctly, you want to just show and hide the shopping cart on click of a button. So do the following. Put all your code, EXCEPT the shopping cart in a VBox/HBox. Lets call it ALLOTHERCODE. And the shopping cart - CART Then your code should look like this. mx:Application .. mx:Canvas ALLOTHERCODE CART /mx:Canvas /mx:Application Let us know if it helps ... I suggest you work with a skeleton structure in the begining with just containers. Once you are happy with the result, populate the PieCharts, Datagrids, etc (typically how you would approach HTML page design) Regards Sree [EMAIL PROTECTED] wrote: I thought this would do it but I'm still getting the same problem. I have one canvas tag that wraps all my other code. I'm scratching my head on this one... If you could take a second look, I've included the modified code below: Also, a general layout question. Is it good practice to have one canvas for your entire application that you then nest other containers and components in? Just wondering... Thanks, Darius ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* initialize=doClick() mx:Style source=DallyStyle.css / mx:Script source=index4.as/ mx:Effect mx:WipeDown name=showCart show=false duration=300/ mx:WipeUp name=hideCart show=false duration=300/ /mx:Effect mx:RemoteObject id=ro endpoint=http://gx270dev.net/flashservices/gateway; source=Model.mUtilities.mUpdate.qry_UpdateAuthorization fault=mx.controls.Alert.show(event.fault.faultstring) showBusyCursor=true mx:method name=GetUpdateAuthorization result=doResult(event)/ /mx:RemoteObject mx:Canvas width=1000 height=534 backgroundColor=#336699 mx:Image x=2 y=3 source=Images/logo.swf / mx:PieChart id=Collections x=108 y=1 dataProvider={PaymentSources} showDataTips=false width=68 height=64 resizeEffect=Resize mx:series mx:Array mx:PieSeries labelPosition=inside field=Amount labelFunction=display/ /mx:Array /mx:series /mx:PieChart mx:Button x=7 y=40 width=50 label=Logout / mx:Button x=60 y=40 label={cart.visible?'Close':'Search'} width=50 click=cart.visible=!cart.visible/ mx:VBox id=cart backgroundColor=#EEF5EE borderStyle=solid marginTop=8 marginLeft=8 marginBottom=8 marginRight=8 visible=false showEffect=showCart hideEffect=hideCart x=62 y=41 mx:Label text=Search/ mx:DataGrid id=dg width=300 height=200 mx:columns mx:Array mx:DataGridColumn columnName=name headerText=Name width=200/ mx:DataGridColumn columnName=price headerText=Price width=100/ /mx:Array /mx:columns /mx:DataGrid /mx:VBox mx:Panel x=7 y=77 width=183 height=96 title=Alerts /mx:Panel mx:Panel x=193 y=26 width=779 title=Case Construct height=121 mx:DataGrid id=CaseConstruct width=769 height=83 mx:columns mx:Array mx:DataGridColumn headerText=Name columnName=Name / mx:DataGridColumn headerText=Status columnName=Status / mx:DataGridColumn headerText=Role columnName=Role / mx:DataGridColumn headerText=Residence columnName=Residence / mx:DataGridColumn headerText=SSN columnName=Ssn / mx:DataGridColumn headerText=Born columnName=Born / mx:DataGridColumn headerText=Aid columnName=Aid / mx:DataGridColumn headerText=Paternity columnName=Paternity / mx:DataGridColumn headerText=Relation columnName=Relation / mx:DataGridColumn headerText=Gender columnName=Gender / /mx:Array /mx:columns /mx:DataGrid /mx:Panel mx:Panel x=411 y=291 width=183 title=Updates height=198 !--mx:DataGrid id=Updates width=166 height=156 mouseDown=showWindow(true) wordWrap=true-- mx:DataGrid id=Updates width=166 height=156 mouseDown=showWindow(true) wordWrap=true mx:columns mx:Array mx:DataGridColumn
Re: [flexcoders] Flex And .NET
I m new to Flex, could you elaborate more on what you mean by "right steps".Igor Costa [EMAIL PROTECTED] wrote: Well, following the right steps to write your mxml code will generatefor any version2005/7/27, priya_uvce [EMAIL PROTECTED]: We are using Flex 1.5, which will be accessing.NET assemblies through Flash Remoting. The macromedia site says that Flex 2.0 will do away with Flash Remoting for .NET. How should we design our application so that they are minimal changes while migrating from Flex 1.5 to Flex 2.0 -- 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 -- Igor Costawww.igorcosta.comwww.macromedia.com/go/team Start your day with Yahoo! - make it your home page -- 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] Re: OT: Flex Team Macromedia :)
Sorry to disagree but even if I don't post comments,checking MossyBlog is one of my dayly tasks (at least twice a day just to be sure I didn't miss a thing). :p João Fernandes --- In flexcoders@yahoogroups.com, Rey Bango [EMAIL PROTECTED] wrote: Yep, I'm the one that keeps your page views and uniques at a consistent level! :o) Rey... Scott Barnes wrote: On 7/27/05, Rey Bango [EMAIL PROTECTED] wrote: BTW, I love your blog bud. You post some very good articles. Everytime I read it, it makes me want to dump CF, spark up FlexBuilder and get knee deep in Flex. :o) So you're the one! (reading the blog, always wondered who you were ehhehe). Thanks, I try to keep coffee-high-based-ramblings to a point where maybe a point can be made.. I get asked often in interviews, how do you find the time to post to the blog so often - my secret.. 2 cups of coffee back to back and i'm off, rambling away (much like now) while coding... i call it the zone. -- http://www.ReyBango.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Custom Error Page
Matt, I copied web.xml from the flex.war file and still get the message about the custom error page. I have also setup another flex environment on my customers server, for production, and the message is appearing there also. These are the relevant lines from my own web.xml servlet servlet-nameFlexErrorServlet/servlet-name servlet-classflex.bootstrap.BootstrapServlet/servlet-class init-param param-nameservlet.class/param-name param-valueflex.compiler.ErrorPageServlet/param-value /init-param /servlet servlet-mapping servlet-nameFlexErrorServlet/servlet-name url-pattern/flex-error/url-pattern /servlet-mapping Andrew --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Not really, it's a servlet. Make sure you have FlexErrorServlet entries in your web.xml, maybe you merged web.xml and didn't copy everything over? Check the web.xml that comes with flex.war and see if all the error entries are in your server's version. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of greenfishinwater Sent: Wednesday, July 27, 2005 2:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Custom Error Page My flex server seems to be working fine, I have had no issues with that. Is it possible to extract the error pages from an existing war file and copy them to my flex server? Andrew --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Maybe you have a bad WAR? The custom error page is used to deliver the nice looking error pages. Seems like it isn't finding it which might mean that the flex jars aren't loading up? I don't know of more off-hand. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of greenfishinwater Sent: Tuesday, July 26, 2005 8:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Custom Error Page I have only just got back to Flex development after a few months away. For my Flkex development server I am getting the message warning Custom error page /flex-error could not be loaded. Maybe Ive had this message for a long time but I only just noticed it. What does it mean and how can I fix it. Thank you Andrew -- 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 Computer software testing http://groups.yahoo.com/gads?t=msk=Computer+software+testingw1=Comput er+software+testingw2=Macromedia+flexw3=Developmentw4=Software+develo perc=4s=93.sig=kh2CguJwmatU5oBXjFo9Rg Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Computer+softwar e+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s= 93.sig=dAUcEV7do91-wrRtVS641g Development http://groups.yahoo.com/gads?t=msk=Developmentw1=Computer+software+te stingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93. sig=AlxNUQBOI7Io7S7nhmxV0Q Software developer http://groups.yahoo.com/gads?t=msk=Software+developerw1=Computer+soft ware+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4 s=93.sig=QWIit8JayomoIHLVkV3FDg YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * 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:
[flexcoders] Re: Combo Box Quirk or Bug
How do you do the data binding to the textbox, can either of the 3 combo boxes populate the text field? I do something similar where I display the description from the combo box: mx:Model id=selectedDescriptions selForecastAge{forecastAgeCBO.selectedItem.label}/selForecastAge Then my label has: mx:Label text=Use: {selectedDescriptions.selForecastAge} x=10 y=625 width=260 / Andrew --- In flexcoders@yahoogroups.com, charlespaz1 [EMAIL PROTECTED] wrote: I have 3 editable combo boxes in a panel and when an item is selected, nothing appears in the text box. When an item is selected a second time, it works properly. Is this just a quirk of the Editable combobox or is this a bug? -- 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] Returning an object Array from .NET to Flex
Hi all, I want to return an object array from .NET to Flex, and bind the datagrid with the same. I have created an Array variable in ActionScript which will recieve the object array from .NET. I bind this array variable to the DataGrid. The array I am returning is an array of objects of say an Employee class which I have created. This Employee class is Serializable. Am I missing out something? -- 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] Databinding to a webservice from within a component
Hi, First person, a new flex developer, so bare with me! Im using a webservice defined in index.mxml called eventsService. Now I previously had a datagrid within this file which had the dataprovider set as: service_Events.GetEventDetails.result.diffgram.NewDataSet.Table This all worked fine. Problem is, I now want to separate my app into components. How do I now access that service? Ive tried mx.core.Application.application.service_Events.GetEventDetails.result.diffgram.NewDataSet.Table, however I get the changes to unknown property.. warning, and the datagrid wont update. Whats the best way to do this? Cheers, Steve -- 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 Computer software testing Macromedia flex Development Software developer 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] Databinding to a webservice from within a component
My experience is that it is always nice to store the result in a variable. Bind this variable to event.result from the webservice. Access this variable from any component anywhere. INDEX.MXML mx:Script var eventDetailsResult; mx:Script mx:WebService id="service_Events wsdl="..." showBusyCursor="true" mx:operation name="GetEventDetails" result="eventDetailsResult=event.result" ... component dataSource={eventDetailsResult} COMPONENT.MXML mx:Script var dataSource; mx:Script mx:DataGrid dataProvider={dataSource} Hope this helps! Regards Sree PS: I am wondering how could you bind "service_Events.GetEventDetails.result" IF your webService ID is indeed eventsService as you mention! Steve Cox wrote: Hi, First person, a new flex developer, so bare with me! Im using a webservice defined in index.mxml called eventsService. Now I previously had a datagrid within this file which had the dataprovider set as: service_Events.GetEventDetails.result.diffgram.NewDataSet.Table This all worked fine. Problem is, I now want to separate my app into components. How do I now access that service? Ive tried mx.core.Application.application.service_Events.GetEventDetails.result.diffgram.NewDataSet.Table, however I get the changes to unknown property.. warning, and the datagrid wont update. Whats the best way to do this? Cheers, Steve -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Databinding to a webservice from within a component
Thanks, Sorry, the service was infact called service_Events, just screwed up the email! Thanks for your reply, just realized how stupid I was! Steve -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sreejith Unnikrishnan Sent: 28 July 2005 14:13 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Databinding to a webservice from within a component My experience is that it is always nice to store the result in a variable. Bind this variable to event.result from the webservice. Access this variable from any component anywhere. INDEX.MXML mx:Script var eventDetailsResult; mx:Script mx:WebService id=service_Events wsdl=... showBusyCursor=true mx:operation name=GetEventDetails result=eventDetailsResult=event.result ... component dataSource={eventDetailsResult} COMPONENT.MXML mx:Script var dataSource; mx:Script mx:DataGrid dataProvider={dataSource} Hope this helps! Regards Sree PS: I am wondering how could you bind service_Events.GetEventDetails.result IF your webService ID is indeed eventsService as you mention! Steve Cox wrote: Hi, First person, a new flex developer, so bare with me! Im using a webservice defined in index.mxml called eventsService. Now I previously had a datagrid within this file which had the dataprovider set as: service_Events.GetEventDetails.result.diffgram.NewDataSet.Table This all worked fine. Problem is, I now want to separate my app into components. How do I now access that service? Ive tried mx.core.Application.application.service_Events.GetEventDetails.result.diffgram.NewDataSet.Table, however I get the changes to unknown property.. warning, and the datagrid wont update. Whats the best way to do this? Cheers, Steve -- 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 Computer software testing Macromedia flex Development Software developer 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] programatically change headerColors? Re: Control Bar Background Color
How would you programatically change headerColors and footerColors? Need some examples... I'm assuming it involves setStyle somehow? Thx, -Steve --- In flexcoders@yahoogroups.com, jwc_wensan [EMAIL PROTECTED] wrote: Andrew: Yes, I was using the headerColors attribute and was placing it in the CSS file. Since the ControlBar was/is a separate control, I did not think of it as the footer of the Panel, even though, it actually is displayed that way. This works. Thanks for the help. Jack --- In flexcoders@yahoogroups.com, Andrew Spaulding [EMAIL PROTECTED] wrote: I assume you used the headerColors attribute on the panel to change the header colours. The Panel component also has a footerColors style. The footerColors style is an array of two colours used to the draw footer background (the area for the ControlBar). use it like this: mx:Panel width=100% height=100% headerColors=[#44, #FF] footerColors=[#FF, #44] mx:ControlBar / /mx:Panel You can also use the footer-colours and header-colors tag in your css style declarations. Cheers, Andrew Spaulding www.flexdaddy.info --- In flexcoders@yahoogroups.com, jwc_wensan [EMAIL PROTECTED] wrote: Good Afternoon: In my code I have changed the headerColor of the Panel and want to change the ControlBar background color to match. I changed the background color to match, but it did not work. I then read this from livedocs: The mx:ControlBar container inherits all the properties of its parent classes. Note: Although the ControlBar container inherits the borderStyle, backgroundColor, and backgroundImage styles from the HBox container, you cannot set them. * Does this mean we are stuck with the Flex default background color for the ControlBar? Is there a workaround? Thanks, Jack -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex and Databases
Hi Ahmed, Flex can't directly connect to databases (Oracle,MSSQL,Access,Excel sheets,etc,etc). In Flex you have 3 ways to access data: Webservices, HTTP services and RemoteObjects. This 3 ways are the only available to retrieve/insert/update/delete data. If you want to connect to Access database, one way is to use HTTP services and point them to some scripting technology (PHP,ASP???) When the first data connection kit was available to flash (before data components were available) there was a sample application with ASP pages that allowed those operations. To be honest, why connect Flex to a mdb database? I mean, a 15K license to create an application with a mdb database ... it's simply odd... João Fernandes --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: Dear Sir, I would like to ask about Flex and Databases. Recently, I tried so hardly to create Flex and Database Project, I used a XML Database, with a MXML file, posting and reading from it, and also Flash ActionScript .AS file. But I always have problems in compiling the .Java file. I tried also to connect the MXML file to a Microsoft Access Database .MDB file instead of XML , but I couldn't. I wish you can help me in creating a project contains MXML and MDB with AS or ASP or whatever Script File you prefer. The attached Excel Sheet File is the sheet we are using now to enter our data, mentioning that this sheet is shared for many members , so they can all enter data at the same time. I am trying hardly to move this Excel Sheet and develop it to be a Microsoft Access Database .MDB , and enter the data in it using a form in a MXML page. Please, if you can help me in anyway , I will be so grateful to you. Best regards, [EMAIL PROTECTED] -- Message sent from the Unlimited Mail Free Services Platform. http://www.unlimitedmail.net -- -- 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] programatically change headerColors? Re: Control Bar Background Color
Hi Steve, Yep, you're on the right track, it does involve use of the setStyle method. Use the following to retrieve the current settings if need be - myPanel.getStyle('headerColor'); Setting the header colours requires an array, so it would be done like this - myPanel.setStyle('headerColors',[0xFF,0xFF]); The same concept applies to all other styles. Hope this helps! Andrew Spaulding www.flexdaddy.info --- In flexcoders@yahoogroups.com, stevenkeys2003 [EMAIL PROTECTED] wrote: How would you programatically change headerColors and footerColors? Need some examples... I'm assuming it involves setStyle somehow? Thx, -Steve --- In flexcoders@yahoogroups.com, jwc_wensan [EMAIL PROTECTED] wrote: Andrew: Yes, I was using the headerColors attribute and was placing it in the CSS file. Since the ControlBar was/is a separate control, I did not think of it as the footer of the Panel, even though, it actually is displayed that way. This works. Thanks for the help. Jack --- In flexcoders@yahoogroups.com, Andrew Spaulding [EMAIL PROTECTED] wrote: I assume you used the headerColors attribute on the panel to change the header colours. The Panel component also has a footerColors style. The footerColors style is an array of two colours used to the draw footer background (the area for the ControlBar). use it like this: mx:Panel width=100% height=100% headerColors=[#44, #FF] footerColors=[#FF, #44] mx:ControlBar / /mx:Panel You can also use the footer-colours and header-colors tag in your css style declarations. Cheers, Andrew Spaulding www.flexdaddy.info --- In flexcoders@yahoogroups.com, jwc_wensan [EMAIL PROTECTED] wrote: Good Afternoon: In my code I have changed the headerColor of the Panel and want to change the ControlBar background color to match. I changed the background color to match, but it did not work. I then read this from livedocs: The mx:ControlBar container inherits all the properties of its parent classes. Note: Although the ControlBar container inherits the borderStyle, backgroundColor, and backgroundImage styles from the HBox container, you cannot set them. * Does this mean we are stuck with the Flex default background color for the ControlBar? Is there a workaround? Thanks, Jack -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Flex and Databases
Why did you buy a Flex license if you havent even invested the time or money to upgrade from an excel spreadsheet to a database of any kind? If updgrading to a database why not use a real database like SQL Server or something similar rather then Access? Why are you trying to build it yourself if you have no knowledge of any web languages? (ColdFusion, ASP, PHP etc.) If you need this done I am available to work on it part time for an hourly rate. From: [EMAIL PROTECTED]Reply-To: flexcoders@yahoogroups.comTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex and DatabasesDate: Thu, 28 Jul 2005 06:52:57 GMTDear Sir,I would like to ask about Flex and Databases.Recently, I tried so hardly to create Flex and DatabaseProject, I used a XML Database, with a MXML file, posting andreading from it, and also Flash ActionScript ".AS" file. ButI always have problems in compiling the ".Java" file.I tried also to connect the MXML file to a Microsoft AccessDatabase ".MDB" file instead of "XML" , but I couldnt.I wish you can help me in creating a project contains MXMLand MDB with "AS" or "ASP" or whatever Script File you prefer.The attached Excel Sheet File is the sheet we are using nowto enter our data, mentioning that this sheet is shared formany members , so they can all enter data at the same time. Iam trying hardly to move this Excel Sheet and develop it tobe a Microsoft Access Database ".MDB" , and enter the data init using a form in a "MXML" page.Please, if you can help me in anyway , I will be so gratefulto you.Best regards,[EMAIL PROTECTED]--Message sent from theUnlimited Mail Free Services Platform.http://www.unlimitedmail.net-- TaskSummary.xls -- 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] Re: Combo Box Quirk or Bug
It is not a seperate text field, but the combo boxes' own text fields that they won't fill in. The data is bound by setting the data provider to an Array of strings. function assignData() { var arrData:Array = new Array(string1, String2); assetMFR.dataProvider = arrData; } mx:ComboBox id=assetMFR editable=true / Typing in an entry works fine, however, selecting an entry from the drop down list doesn't work at all until you do it a second time. --- In flexcoders@yahoogroups.com, greenfishinwater [EMAIL PROTECTED] wrote: How do you do the data binding to the textbox, can either of the 3 combo boxes populate the text field? I do something similar where I display the description from the combo box: mx:Model id=selectedDescriptions selForecastAge{forecastAgeCBO.selectedItem.label}/selForecastAge Then my label has: mx:Label text=Use: {selectedDescriptions.selForecastAge} x=10 y=625 width=260 / Andrew --- In flexcoders@yahoogroups.com, charlespaz1 [EMAIL PROTECTED] wrote: I have 3 editable combo boxes in a panel and when an item is selected, nothing appears in the text box. When an item is selected a second time, it works properly. Is this just a quirk of the Editable combobox or is this a bug? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex and Databases
right? An awefully big expensive sledge-hammer to open a small pecan, eh? DK On 7/28/05, Kelly R [EMAIL PROTECTED] wrote: Why did you buy a Flex license if you havent even invested the time or money to upgrade from an excel spreadsheet to a database of any kind? If updgrading to a database why not use a real database like SQL Server or something similar rather then Access? Why are you trying to build it yourself if you have no knowledge of any web languages? (ColdFusion, ASP, PHP etc.) If you need this done I am available to work on it part time for an hourly rate. From: [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex and Databases Date: Thu, 28 Jul 2005 06:52:57 GMT Dear Sir, I would like to ask about Flex and Databases. Recently, I tried so hardly to create Flex and Database Project, I used a XML Database, with a MXML file, posting and reading from it, and also Flash ActionScript .AS file. But I always have problems in compiling the .Java file. I tried also to connect the MXML file to a Microsoft Access Database .MDB file instead of XML , but I couldn't. I wish you can help me in creating a project contains MXML and MDB with AS or ASP or whatever Script File you prefer. The attached Excel Sheet File is the sheet we are using now to enter our data, mentioning that this sheet is shared for many members , so they can all enter data at the same time. I am trying hardly to move this Excel Sheet and develop it to be a Microsoft Access Database .MDB , and enter the data in it using a form in a MXML page. Please, if you can help me in anyway , I will be so grateful to you. Best regards, [EMAIL PROTECTED] -- Message sent from the Unlimited Mail Free Services Platform. http://www.unlimitedmail.net -- TaskSummary.xls -- 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. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex and Databases
Maybe he's got a developer edition, or is building a demo/proof of concept app which needs a quick and dirty solution like MS Access? Don't scare the guy off just yet guys hehe. Andrew Spaulding www.flexdaddy.info --- In flexcoders@yahoogroups.com, Douglas Knudsen [EMAIL PROTECTED] wrote: right? An awefully big expensive sledge-hammer to open a small pecan, eh? DK On 7/28/05, Kelly R [EMAIL PROTECTED] wrote: Why did you buy a Flex license if you havent even invested the time or money to upgrade from an excel spreadsheet to a database of any kind? If updgrading to a database why not use a real database like SQL Server or something similar rather then Access? Why are you trying to build it yourself if you have no knowledge of any web languages? (ColdFusion, ASP, PHP etc.) If you need this done I am available to work on it part time for an hourly rate. From: [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex and Databases Date: Thu, 28 Jul 2005 06:52:57 GMT Dear Sir, I would like to ask about Flex and Databases. Recently, I tried so hardly to create Flex and Database Project, I used a XML Database, with a MXML file, posting and reading from it, and also Flash ActionScript .AS file. But I always have problems in compiling the .Java file. I tried also to connect the MXML file to a Microsoft Access Database .MDB file instead of XML , but I couldn't. I wish you can help me in creating a project contains MXML and MDB with AS or ASP or whatever Script File you prefer. The attached Excel Sheet File is the sheet we are using now to enter our data, mentioning that this sheet is shared for many members , so they can all enter data at the same time. I am trying hardly to move this Excel Sheet and develop it to be a Microsoft Access Database .MDB , and enter the data in it using a form in a MXML page. Please, if you can help me in anyway , I will be so grateful to you. Best regards, [EMAIL PROTECTED] -- Message sent from the Unlimited Mail Free Services Platform. http://www.unlimitedmail.net -- TaskSummary.xls -- 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. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- 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] Form Control focus and Default Button
Hello Flexcoders, Im working on a simple login form and attempting to accomplish the following: + Assign a default button to login so after page loads and you hit enter the form submits, no need to click in to the page. + Assign selection to the first of the two text fields that have no text, otherwise focus should be on the button. I have made a few attempts but I have not been able to get it all working, only some of the functionality here and there. Thanks for any help, Allen www.prismix.com/ ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml initialize=checkLoginFormForSelection(); mx:Script![CDATA[ private function checkLoginFormForSelection() : Void { if (email.text.length == 0) { email.setFocus(email); Selection.setSelection(1,1) return; } if (password.text.length == 0) { password.setFocus(password); Selection.setSelection(1,1) return; } } ]]/mx:Script mx:Panel title=Login Form Focus defaultButton=login mx:Form mx:FormItem label=Email mx:TextInput id=email text=[EMAIL PROTECTED]/ /mx:FormItem mx:FormItem label=Password mx:TextInput id=password text=/ /mx:FormItem /mx:Form mx:Button click=mx.controls.Alert.show('You just logged in'); label=Login id=login/ /mx:Panel /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 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. -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.9.5 - Release Date: 25/07/2005
RE: [flexcoders] Re: Flex and Databases
You can actually connect directly to SQL server by turning on the web listener and pass your SQL statements in an HTTP request. It is pretty easy to do and reduces the overhead of another layer. Jeff Founder Flex Authority http://www.flexauthority.com We are actively seeking contributors for the site. Have a sample that you want to share with the world? Send it to us! From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of joao_m_fernandes Sent: Thursday, July 28, 2005 7:27 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex and Databases Hi Ahmed, Flex can't directly connect to databases (Oracle,MSSQL,Access,Excel sheets,etc,etc). In Flex you have 3 ways to access data: Webservices, HTTP services and RemoteObjects. This 3 ways are the only available to retrieve/insert/update/delete data. If you want to connect to Access database, one way is to use HTTP services and point them to some scripting technology (PHP,ASP???) When the first data connection kit was available to flash (before data components were available) there was a sample application with ASP pages that allowed those operations. To be honest, why connect Flex to a mdb database? I mean, a 15K license to create an application with a mdb database ... it's simply odd... João Fernandes --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: Dear Sir, I would like to ask about Flex and Databases. Recently, I tried so hardly to create Flex and Database Project, I used a XML Database, with a MXML file, posting and reading from it, and also Flash ActionScript .AS file. But I always have problems in compiling the .Java file. I tried also to connect the MXML file to a Microsoft Access Database .MDB file instead of XML , but I couldn't. I wish you can help me in creating a project contains MXML and MDB with AS or ASP or whatever Script File you prefer. The attached Excel Sheet File is the sheet we are using now to enter our data, mentioning that this sheet is shared for many members , so they can all enter data at the same time. I am trying hardly to move this Excel Sheet and develop it to be a Microsoft Access Database .MDB , and enter the data in it using a form in a MXML page. Please, if you can help me in anyway , I will be so grateful to you. Best regards, [EMAIL PROTECTED] -- Message sent from the Unlimited Mail Free Services Platform. http://www.unlimitedmail.net -- -- 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 Computer software testing Macromedia flex Development Software developer 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] Encode media files to FLV in real-time from a web page
I just concluded writing an article for Flex Authority that shows off the power of On2s Flix Engine. This product takes an input file and outputs to SWF or FLV. This is truly a must read article for anyone interested in merging media with your current Flex application. http://www.flexauthority.com/articlesArchive/FlixEngine.cfm Let me know what you think. Jeff Founder Flex Authority http://www.flexauthority.com We are actively seeking contributors for the site. Have a sample that you want to share with the world? Send it to us! -- 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 Computer software testing Macromedia flex Development Software developer 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] Form Control focus and Default Button
I've got it working, just made a few changes to your code: * I got a handle on the focus manager before setting focus * defaultButton as attribute of Form, not panel. Otherwise, all is well. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; creationComplete=checkLoginFormForSelection(); mx:Script![CDATA[ private function checkLoginFormForSelection() : Void{ var fm = getFocusManager(); if (email.length == 0) { fm.setFocus(email); Selection.setSelection(1,1) return; } if (password.length == 0) { fm.setFocus(password); Selection.setSelection(1,1) return; } } ]]/mx:Script mx:Panel title=Login Form Focus mx:Form defaultButton=login mx:FormItem label=Email mx:TextInput id=email text=[EMAIL PROTECTED]/ /mx:FormItem mx:FormItem label=Password mx:TextInput id=password text=/ /mx:FormItem /mx:Form mx:Button click=mx.controls.Alert.show('You just logged in'); label=Login id=login/ /mx:Panel /mx:Application At 12:04 PM 7/28/2005, Allen Manning wrote: Hello Flexcoders, I'm working on a simple login form and attempting to accomplish the following: + Assign a default button to login so after page loads and you hit enter the form submits, no need to click in to the page. + Assign selection to the first of the two text fields that have no text, otherwise focus should be on the button. I have made a few attempts but I have not been able to get it all working, only some of the functionality here and there. Thanks for any help, Allen http://www.prismix.com/www.prismix.com/ ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; initialize=checkLoginFormForSelection(); mx:Script![CDATA[ private function checkLoginFormForSelection() : Void { if (email.text.length == 0) { email.setFocus(email); Selection.setSelection(1,1) return; } if (password.text.length == 0) { password.setFocus(password); Selection.setSelection(1,1) return; } } ]]/mx:Script mx:Panel title=Login Form Focus defaultButton=login mx:Form mx:FormItem label=Email mx:TextInput id=email text=[EMAIL PROTECTED]/ /mx:FormItem mx:FormItem label=Password mx:TextInput id=password text=/ /mx:FormItem /mx:Form mx:Button click=mx.controls.Alert.show('You just logged in'); label=Login id=login/ /mx:Panel /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com -- YAHOO! GROUPS LINKS * Visit your group http://groups.yahoo.com/group/flexcodersflexcoders on the web. * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED][EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. -- -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.9.5 - Release Date: 25/07/2005 -- 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] Form Control focus and Default Button
Jeff, Thanks so much for this. Is there any way that I can set it up so I don't need to click - in to the page. So I could just hit refresh and then enter and the form is submitted? Allen www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Tapper Sent: 28 July 2005 17:39 To: flexcoders@yahoogroups.com; flexcoders@yahoogroups.com Subject: Re: [flexcoders] Form Control focus and Default Button I've got it working, just made a few changes to your code: * I got a handle on the focus manager before setting focus * defaultButton as attribute of Form, not panel. Otherwise, all is well. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; creationComplete=checkLoginFormForSelection(); mx:Script![CDATA[ private function checkLoginFormForSelection() : Void{ var fm = getFocusManager(); if (email.length == 0) { fm.setFocus(email); Selection.setSelection(1,1) return; } if (password.length == 0) { fm.setFocus(password); Selection.setSelection(1,1) return; } } ]]/mx:Script mx:Panel title=Login Form Focus mx:Form defaultButton=login mx:FormItem label=Email mx:TextInput id=email text=[EMAIL PROTECTED]/ /mx:FormItem mx:FormItem label=Password mx:TextInput id=password text=/ /mx:FormItem /mx:Form mx:Button click=mx.controls.Alert.show('You just logged in'); label=Login id=login/ /mx:Panel /mx:Application At 12:04 PM 7/28/2005, Allen Manning wrote: Hello Flexcoders, I'm working on a simple login form and attempting to accomplish the following: + Assign a default button to login so after page loads and you hit enter the form submits, no need to click in to the page. + Assign selection to the first of the two text fields that have no text, otherwise focus should be on the button. I have made a few attempts but I have not been able to get it all working, only some of the functionality here and there. Thanks for any help, Allen http://www.prismix.com/www.prismix.com/ ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; initialize=checkLoginFormForSelection(); mx:Script![CDATA[ private function checkLoginFormForSelection() : Void { if (email.text.length == 0) { email.setFocus(email); Selection.setSelection(1,1) return; } if (password.text.length == 0) { password.setFocus(password); Selection.setSelection(1,1) return; } } ]]/mx:Script mx:Panel title=Login Form Focus defaultButton=login mx:Form mx:FormItem label=Email mx:TextInput id=email text=[EMAIL PROTECTED]/ /mx:FormItem mx:FormItem label=Password mx:TextInput id=password text=/ /mx:FormItem /mx:Form mx:Button click=mx.controls.Alert.show('You just logged in'); label=Login id=login/ /mx:Panel /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://gr oups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-a rchive.com/flexcoders%40yahoogroups.com -- YAHOO! GROUPS LINKS * Visit your group http://groups.yahoo.com/group/flexcodersflexcoders on the web. * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED]flexcoder [EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. -- -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.9.5 - Release Date: 25/07/2005 -- 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 -- Incoming mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.9.5 - Release Date: 25/07/2005 -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.9.5 - Release Date: 25/07/2005 -- 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
RE: [flexcoders] Re: Flex and Databases
Not trying to scare anyone. Just trying to make him aware that there might need to be a little more thought involved in the overall process. We are all beginnersat some pointbut tough love speeds up the learning process sometimes. From: "Andrew Spaulding" [EMAIL PROTECTED]Reply-To: flexcoders@yahoogroups.comTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: Flex and DatabasesDate: Thu, 28 Jul 2005 15:36:40 -Maybe he's got a developer edition, or is building a demo/proof ofconcept app which needs a quick and dirty solution like MS Access?Don't scare the guy off just yet guys hehe.Andrew Spauldingwww.flexdaddy.info--- In flexcoders@yahoogroups.com, Douglas Knudsen[EMAIL PROTECTED] wrote: right? An awefully big expensive sledge-hammer to open a smallpecan, eh? DK On 7/28/05, Kelly R [EMAIL PROTECTED] wrote: Why did you buy a Flex license if you havent even invested thetime or money to upgrade from an excel spreadsheet to a database of any kind? If updgrading to a database why not use a real database like SQLServer or something similar rather then Access? Why are you trying to build it yourself if you have no knowledgeof any web languages? (ColdFusion, ASP, PHP etc.) If you need this done I am available to work on it part time foran hourly rate. From: [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex and Databases Date: Thu, 28 Jul 2005 06:52:57 GMT Dear Sir, I would like to ask about Flex and Databases. Recently, I tried so hardly to create Flex and Database Project, I used a XML Database, with a MXML file, posting and reading from it, and also Flash ActionScript ".AS" file. But I always have problems in compiling the ".Java" file. I tried also to connect the MXML file to a Microsoft Access Database ".MDB" file instead of "XML" , but I couldn't. I wish you can help me in creating a project contains MXML and MDB with "AS" or "ASP" or whatever Script File you prefer. The attached Excel Sheet File is the sheet we are using now to enter our data, mentioning that this sheet is shared for many members , so they can all enter data at the same time. I am trying hardly to move this Excel Sheet and develop it to be a Microsoft Access Database ".MDB" , and enter the data in it using a form in a "MXML" page. Please, if you can help me in anyway , I will be so grateful to you. Best regards, [EMAIL PROTECTED] -- Message sent from the Unlimited Mail Free Services Platform. http://www.unlimitedmail.net --TaskSummary.xls-- 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. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- 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 Computer software testing Macromedia flex Development Software developer 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] COLUMNCHART + REPEATER
Hi everybody, I try to generate 4 charts thanks to the REPEATER object but I partially success. Can you help me to success totally... The chart contains the good values, the legend generates the good labels et the defined colors. The problem is to get the value for the both axis (in this case : day and resources)et to have the same color for the chart and its corresponding label. Thanks very much for your help! // METHOD : Create the data for the Chart public function setOverviewThree():Array{var tempArray:Array = new Array();var arrDay:Array = new Array();arrDay = setTheLastThirtyDays(30);// Call a methode which gives the last 30 daysfrom todayfor (var i:Number=0; i30; i++){var resources_i:Number = Math.ceil(20*Math.random());var o:Object = new Object();o.day = arrDay[i];o.resources = resources_i;tempArray.push(o);}tempArray.sort(0, 2);return tempArray;} // METHOD : Create the data for the 4 charts public function createChart():Array{var tempArray:Array = new Array();var arrTitle:Array = new Array();arrTitle = ["NAME1", "NAME2", "NAME3", "NAME4"];var arrData:Array = new Array();arrData = [setOverviewThree(), setOverviewThree(), setOverviewThree(), setOverviewThree()];var arrColors:Array = new Array();arrColors = [0x99, 0x99, 0x669966, 0xCC99FF];var arrLabels:Array = new Array();arrLabels = ["name1", "name2", "name3", "name4"];for (var i:Number=0; iarrTitle.length; i++){var o:Object = new Object();o.title = arrTitle[i];o.chartData = arrData[i];var labels:String = arrLabels[i];var fill:SolidColor = new SolidColor(arrColors[i]);var stroke:Stroke = new Stroke(0x00);o.legend=[{ label:labels, fill:fill, stroke:stroke}];tempArray.push(o);}return tempArray;} // MXML FILE mx:Repeaterid="rpCharts"dataProvider="{ arrCharts }" cp:CustomizedTextid="txtChart"styleName="text"text="{ arrCharts[rpCharts.currentIndex].title }"width="100%" /mx:Spacerheight="6" /!-- CHART WITH ONE DATA COLUMN --cp:CustomizedHBoxid="chbxChartOneColumn"visible="true"width="100%"height="100%"verticalAlign="middle"horizontalGap="0"mx:ColumnChartid="ccChartOneColumn"styleName="chart"x="20"height="160"width="100%"minWidth="500"visible="true"dataProvider="{ arrCharts[rpCharts.currentIndex].chartData }"// Here is the dataProvider [it works]mouseClickData="{ setDashboard( event ) }"showDataTips="true"!--mx:horizontalAxismx:CategoryAxisname="day"dataProvider="{ arrCharts[rpCharts.currentIndex].chartData.day }"// Here is the dataProvider [it doesn't work]categoryField="day" //mx:horizontalAxis--mx:horizontalAxisRenderermx:AxisRenderertitle="date" styleName="chart"labelGap="4" //mx:horizontalAxisRenderer!--mx:verticalAxismx:CategoryAxisname="resources"dataProvider="{ arrCharts[rpCharts.currentIndex].chartData.resources }"// Here is the dataProvider [it doesn't work]categoryField="resources" //mx:verticalAxis--mx:verticalAxisRenderermx:AxisRenderertitle="date" styleName="chart"labelGap="8" //mx:verticalAxisRenderermx:seriesmx:Arraymx:ColumnSeriesyField="resources"styleName="chart"showDataEffect="Fade"xField="day" name="resources"mx:fillmx:SolidColor color="{ arrCharts[rpCharts.currentIndex].legend }" /// Here is the colum color definition [it doesn't work]/mx:fill/mx:ColumnSeriesmx:LineSeriesyField="resources"styleName="chart"showDataEffect="Fade"xField="day"name="resources" //mx:Array/mx:series/mx:ColumnChartmx:LegenddataProvider="{ arrCharts[rpCharts.currentIndex].legend }"// Here is thelegen color definition [it works]width="140"height="120"styleName="legend"direction="vertical" /mx:Legend/cp:CustomizedHBox /mx:Repeater ** Coface facilite les echanges entre les entreprises partout dans le monde. Pour cela, elle offre a toutes les entreprises des solutions pour gerer, financer et proteger leur poste client, en leur permettant d'externaliser tout ou partie de la gestion et des risques lies a leurs relations commerciales. Coface est notee AA par Fitch Ratings et Aa3 par Moody's. Pour en savoir plus, http://www.coface.fr Coface facilitates business-to-business commerce worldwide. It offers all size companies an array of solutions to manage, finance, and protect their accounts receivables affording them the option of fully or partly outsourcing trade relationship management and attendant risks. Coface is rated AA by Fitch ratings and Aa3 by Moody's. More about Coface, http://www.coface.com WARNING : - Soyez conscient que notre systeme Anti-Spam peut parfois rejeter des messages, soit parce que certains mots et types de fichiers ne sont pas acceptes, ou bien parce que le mail n'a pas ete identifie correctement. - Be aware that from time to time our Anti-Spam system may reject mails either because some words and types of files are not allowed or because mails are
RE: [flexcoders] Form Control focus and Default Button
That might require a bit of javaScript to make sure the browser has focus, im not sure that there is much you could do within flex to get that. At 12:52 PM 7/28/2005, you wrote: Jeff, Thanks so much for this. Is there any way that I can set it up so I don't need to click - in to the page. So I could just hit refresh and then enter and the form is submitted? Allen www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Tapper Sent: 28 July 2005 17:39 To: flexcoders@yahoogroups.com; flexcoders@yahoogroups.com Subject: Re: [flexcoders] Form Control focus and Default Button I've got it working, just made a few changes to your code: * I got a handle on the focus manager before setting focus * defaultButton as attribute of Form, not panel. Otherwise, all is well. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; creationComplete=checkLoginFormForSelection(); mx:Script![CDATA[ private function checkLoginFormForSelection() : Void{ var fm = getFocusManager(); if (email.length == 0) { fm.setFocus(email); Selection.setSelection(1,1) return; } if (password.length == 0) { fm.setFocus(password); Selection.setSelection(1,1) return; } } ]]/mx:Script mx:Panel title=Login Form Focus mx:Form defaultButton=login mx:FormItem label=Email mx:TextInput id=email text=[EMAIL PROTECTED]/ /mx:FormItem mx:FormItem label=Password mx:TextInput id=password text=/ /mx:FormItem /mx:Form mx:Button click=mx.controls.Alert.show('You just logged in'); label=Login id=login/ /mx:Panel /mx:Application At 12:04 PM 7/28/2005, Allen Manning wrote: Hello Flexcoders, I'm working on a simple login form and attempting to accomplish the following: + Assign a default button to login so after page loads and you hit enter the form submits, no need to click in to the page. + Assign selection to the first of the two text fields that have no text, otherwise focus should be on the button. I have made a few attempts but I have not been able to get it all working, only some of the functionality here and there. Thanks for any help, Allen http://www.prismix.com/www.prismix.com/ ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; initialize=checkLoginFormForSelection(); mx:Script![CDATA[ private function checkLoginFormForSelection() : Void { if (email.text.length == 0) { email.setFocus(email); Selection.setSelection(1,1) return; } if (password.text.length == 0) { password.setFocus(password); Selection.setSelection(1,1) return; } } ]]/mx:Script mx:Panel title=Login Form Focus defaultButton=login mx:Form mx:FormItem label=Email mx:TextInput id=email text=[EMAIL PROTECTED]/ /mx:FormItem mx:FormItem label=Password mx:TextInput id=password text=/ /mx:FormItem /mx:Form mx:Button click=mx.controls.Alert.show('You just logged in'); label=Login id=login/ /mx:Panel /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://gr oups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-a rchive.com/flexcoders%40yahoogroups.com -- YAHOO! GROUPS LINKS * Visit your group http://groups.yahoo.com/group/flexcodersflexcoders on the web. * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED]flexcoder [EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. -- -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.9.5 - Release Date: 25/07/2005 -- 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 -- Incoming mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.9.5 - Release Date: 25/07/2005 -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus
Re: [flexcoders] Returning an object Array from .NET to Flex
Are you using webservices?On 7/28/05, priya_uvce [EMAIL PROTECTED] wrote: Hi all,I want to return an object array from .NET to Flex, and bind thedatagrid with the same.I have created an Array variable in ActionScript which will recieve theobject array from .NET.I bind this array variable to the DataGrid. The array I am returning is an array of objects of say an Employeeclass which I have created. This Employee class is Serializable.Am I missing out something?--Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer 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] Form Control focus and Default Button
Thanks jeff. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Tapper Sent: 28 July 2005 18:05 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Form Control focus and Default Button That might require a bit of javaScript to make sure the browser has focus, im not sure that there is much you could do within flex to get that. At 12:52 PM 7/28/2005, you wrote: Jeff, Thanks so much for this. Is there any way that I can set it up so I don't need to click - in to the page. So I could just hit refresh and then enter and the form is submitted? Allen www.prismix.com/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Tapper Sent: 28 July 2005 17:39 To: flexcoders@yahoogroups.com; flexcoders@yahoogroups.com Subject: Re: [flexcoders] Form Control focus and Default Button I've got it working, just made a few changes to your code: * I got a handle on the focus manager before setting focus * defaultButton as attribute of Form, not panel. Otherwise, all is well. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; creationComplete=checkLoginFormForSelection(); mx:Script![CDATA[ private function checkLoginFormForSelection() : Void{ var fm = getFocusManager(); if (email.length == 0) { fm.setFocus(email); Selection.setSelection(1,1) return; } if (password.length == 0) { fm.setFocus(password); Selection.setSelection(1,1) return; } } ]]/mx:Script mx:Panel title=Login Form Focus mx:Form defaultButton=login mx:FormItem label=Email mx:TextInput id=email text=[EMAIL PROTECTED]/ /mx:FormItem mx:FormItem label=Password mx:TextInput id=password text=/ /mx:FormItem /mx:Form mx:Button click=mx.controls.Alert.show('You just logged in'); label=Login id=login/ /mx:Panel /mx:Application At 12:04 PM 7/28/2005, Allen Manning wrote: Hello Flexcoders, I'm working on a simple login form and attempting to accomplish the following: + Assign a default button to login so after page loads and you hit enter the form submits, no need to click in to the page. + Assign selection to the first of the two text fields that have no text, otherwise focus should be on the button. I have made a few attempts but I have not been able to get it all working, only some of the functionality here and there. Thanks for any help, Allen http://www.prismix.com/www.prismix.com/ ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; initialize=checkLoginFormForSelection(); mx:Script![CDATA[ private function checkLoginFormForSelection() : Void { if (email.text.length == 0) { email.setFocus(email); Selection.setSelection(1,1) return; } if (password.text.length == 0) { password.setFocus(password); Selection.setSelection(1,1) return; } } ]]/mx:Script mx:Panel title=Login Form Focus defaultButton=login mx:Form mx:FormItem label=Email mx:TextInput id=email text=[EMAIL PROTECTED]/ /mx:FormItem mx:FormItem label=Password mx:TextInput id=password text=/ /mx:FormItem /mx:Form mx:Button click=mx.controls.Alert.show('You just logged in'); label=Login id=login/ /mx:Panel /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://gr oups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-a rchive.com/flexcoders%40yahoogroups.com -- YAHOO! GROUPS LINKS * Visit your group http://groups.yahoo.com/group/flexcodersflexcoders on the web. * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED]flexcode r [EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. -- -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.269 / Virus Database: 267.9.5 - Release Date: 25/07/2005 -- 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
Re: [flexcoders] Event Handlers inside custom components
On 7/28/05, Archibald Scatflinger [EMAIL PROTECTED] wrote: I do not want to use implicit getter/setters because I want the components property to be bindable. To make the component's property bindable, specify a ChangeEvent for the property and dispatch the event when the value changes. e.g. ?xml version=1.0? mx:Box xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* mx:Label text={labelText} / mx:Script // Storage for 'labelText' property private var _labelText:String = ; [ChangeEvent(labelTextChange)] public function get labelText():String { return _labelText; } public function set labelText(value:String):Void { if (value != _labelText) { _labelText = value; dispatchEvent({type: labelTextChange}); } } /mx:Script /mx:Box When labelText is modified, the component dispatches an event to trigger binding. Check out the generated AS to see how this works. Manish -- 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] Form visibility question
On 7/28/05, Jeff Beeman [EMAIL PROTECTED] wrote: Right now, we've got ActionScript turning the visibility of the form items on and off depending on answers to previous questions. The problem is that the form items still take up physical space. The behavior we'd like would have the form item not only be invisible but also not take up space. ... Jesse and Allen have already answered your question, but I'd like to point out that the behaviour you're looking for is similar to HTML/CSS display: none. You could build something fancy to achieve that. http://manish.revise.org/2005/06/controlling-flex-application-layout.html Of course, just setting width/height to 0 would serve your purpose for now. Manish -- 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] FlashPlayer 8 beta and scriptTimeLimit
Title: FlashPlayer 8 beta and scriptTimeLimit FP8 seems to not be honoring my ScriptTimeLimit setting. Same SWF, probably even locally cached, since I just installed the player, then restarted my app. I will see if anything changes this behavior. BTW, it appears to be about 30% faster on this ridiculously intense AS process. Tracy -- 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 Computer software testing Macromedia flex Development Software developer 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] Why can't I package my components
Hey everyone, gotta simple stupid question, whose answer is ducking me. I making an application, and I am putting customized components in packages. I can use the xmlns=* and reference components that are in the same package from each other. But when I try to reference a component in another package, it gives me the Dont know how to parse element.. error at compilation time. Right now I have a Main.mxml, which resides in the root directory. Then I have a package called search, which house the search components. Within this package, I have about 5 customized components. Within that search directory, I have a testingMain app which I use the namespace xmlns=*, and then I am able to use those components in there. Now, from Main.mxml, in the root, when I try xmlns:srch=search.*, and then try srch:SearchTabs. It gives me the error stating it doesnt know how to parse that element. Ive tried setting a manifest file, pointing to all the classe in that dir, and modified the flex-config compiler section to create another namespace, pointing to this directory, to no avail. What am I doing wrong? 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] XML Load
Title: XML Load Hi All, I am trying to load XML in a class's method, which is called by my Flex app after the app loads and have onLoad function to process the XML once it loads. Code: -- public function loadPLMS():Void{ tacticsXML.load( [URL] ); tacticsXML. success ) { Alert.show( tacticsXML.parentNode.toString() ); } The Alert doesn't show me anything. If I try to dump success, it does show me "true". Am I doing anything wrong here? 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 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] Problem with auto-selecting Tree Node
Hello, All. I've searched through the email archives and haven't really found anything exactly solving the problem I'm having... Basically, I have a Tree that lists out an e-learning course, with each unit being the root nodes, with their pages living inside of them. What I want is to pass in the query string something like ?unit=1page=1 in order to have the system pre-select the unit and page you've chosen elsewhere to view.My first problem is that when referring to the variables as _root.unit and _root.page (I'm a flash developer, cut me some slack!) I'm getting the variables fine, except they're typed as String and when I add them together, I get the number 11 (the string "1" concatenated with the string "1" instead of the 1 being added to 1 to get 2).That's my first problem; I'm received query string variables typed incorrectly. My second problem is that even if I skip this step and try and force my tree to open the specified unit (which works), and THEN tell the Tree to set the selectedNode to to the correct node index, it's just pre-selected the root node at that index instead of the node nested in the open unit. Now, when I debug this and actually click the correct node at the correct index, I get back the index I'm setting the selectedNode to, so basically I assume that the selectedNode is being set BEFORE I open the correct unit node, even though I call it after a redraw() after I set the node open. My code is below: public function selectDefaultUnit(event){ if(!_root.unit){ _root.unit = 0; } if(!_root.page){ _root.page = 0; } var unitNode:Object = event.target.getTreeNodeAt(_root.unit); event.target.setIsOpen(unitNode,true,true,false); event.target.redraw(); // maybe this is unnecessary, but it won't hurt, right? var pageIndex:Number = _root.unit + _root.page; // this is the code that gets me the strings concatenated with eachother var pageNode:Object = event.target.getNodeDisplayedAt(3); // i'm setting 3 here by hand for debugging purposes event.target.selectedNode = pageNode; debugObject(pageIndex,false);// my debug method event.target.redraw(); // redraws to show the selections. if i don't do this, the tree doesn't show something as being selected until i mouseover it a few times }Thanks!!! Kevin Conboy Lead UI Engineer / Office Dullard SpireMedia® Inspired Technology. Inspired Results. vox: 303.620.9974 ext 316 fax: 303.629.6385 [EMAIL PROTECTED] www.spiremedia.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.
Re: [flexcoders] Event Handlers inside custom components
I actually figured this out right after I asked but I did it a different way. It does basically the same thing though. Here is an example: !My application page (TestApp.mxml)-- - ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns:Weee="*" initialize="SetVar()" mx:Script ![CDATA[ function SetVar(){ MyTest.MyValue = "Rararararar"; } ]] /mx:Script Weee:MyTestComp id="MyTest" / /mx:Application - !My component file (MyTestComp.mxml)-- - ?xml version="1.0" encoding="utf-8"? mx:VBox xmlns:mx="http://www.macromedia.com/2003/mxml" width="400" height="400" mx:Script ![CDATA[ var MyValue:String = "BlahBlah" function set MyOtherValue(NewValue):Void { mx.core.Application.alert('The new value is: '+MyValue); } ]] /mx:Script mx:Binding source="MyValue" destination="MyOtherValue" / /mx:VBox - From: Manish Jethani [EMAIL PROTECTED]Reply-To: flexcoders@yahoogroups.comTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Event Handlers inside custom componentsDate: Thu, 28 Jul 2005 23:12:51 +0530On 7/28/05, Archibald Scatflinger [EMAIL PROTECTED] wrote: I do not want to use implicit getter/setters because I want the components property to be bindable.To make the component's property bindable, specify a "ChangeEvent" forthe property and dispatch the event when the value changes.e.g.?xml version="1.0"?mx:Box xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*" mx:Label text="{labelText}" / mx:Script // Storage for 'labelText' property private var _labelText:String = ""; [ChangeEvent("labelTextChange")] public function get labelText():String { return _labelText; } public function set labelText(value:String):Void { if (value != _labelText) { _labelText = value; dispatchEvent({type: "labelTextChange"}); } } /mx:Script/mx:BoxWhen labelText is modified, the component dispatches an event totrigger binding. Check out the generated AS to see how this works.Manish -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] XML Load
Sounds like a scoping issue, try this instead: public function loadPLMS():Void{ tacticsXML.load( URL ); tacticsXML.onLoad = mx.utils.Delegate.create(this,doLoad); } function doLoad( success ) { if(success){ Alert.show( tacticsXML.parentNode.toString() ); } } At 02:22 PM 7/28/2005, Mehdi, Agha wrote: Hi All, I am trying to load XML in a class's method, which is called by my Flex app after the app loads and have onLoad function to process the XML once it loads. Code: -- public function loadPLMS():Void{ tacticsXML.load( [URL] ); tacticsXML.onLoad = function( success ) { Alert.show( tacticsXML.parentNode.toString() ); } The Alert doesn't show me anything. If I try to dump success, it does show me true. Am I doing anything wrong here? 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.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com -- YAHOO! GROUPS LINKS * Visit your group http://groups.yahoo.com/group/flexcodersflexcoders on the web. * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED][EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] sound problem: onSoundComplete
Just trying to bump this problem up - still looking for a solution. I've tried a bunch of different combinations to make the onSoundComplete method work, none of which do the trick. The docs - which perhaps were repurposed from Flash - make no mention of the scoping issue. Anyone have suggestions or a hello world level example? - Tom At 01:51 PM 7/27/2005, you wrote: Dirk, thanks for the suggestion - but still no luck. Same problem: sound plays, no onSoundComplete execution. Were you able to get this to work? Here's my revised code: function startSound(currentSound) { feedback.text += currentSound+ playing now; glow.alpha = 100; var snd:Sound = new Sound(); snd.attachSound(currentSound); snd.onSoundComplete = mx.utils.Delegate.create(this, soundStopped); snd.start(); } function soundStopped() { glow.alpha = 0; feedback.text += stopping now; } At 09:37 AM 7/27/2005, you wrote: There's still a scoping problem. Try this: function startSound(currentSound) { feedback.text += currentSound+ playing now; glow.alpha = 100; var snd:Sound = new Sound(); snd.attachSound(currentSound); snd.onSoundComplete = mx.utils.Delegate.create(this, soundStopped); snd.start(); } function soundStopped() { glow.alpha = 0; feedback.text += stopping now; } Dirk. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Fitzpatrick Sent: Wednesday, July 27, 2005 2:26 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] sound problem: onSoundComplete Matt - I made your modification in my code, and still have the same problem: sound plays OK, but the onSoundComplete actions (trace and reset alpha) never take place. Here's the modified code: function startSound(currentSound) { feedback.text += currentSound+ playing now; glow.alpha = 100; var snd:Sound = new Sound(); snd.attachSound(currentSound); snd.onSoundComplete = mx.utils.Delegate.create(this, function() { glow.alpha = 0; feedback.text += stopping now; }); snd.start(); } Any other ideas? - Tom At 09:41 PM 7/26/2005, you wrote: snd.onSoundComplete = mx.utils.Delegate.create(this, function() { //same body here }); You're having scoping problems. Matt -- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Fitzpatrick Sent: Tuesday, July 26, 2005 2:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] sound problem: onSoundComplete Trying to get onSoundComplete() to work - but it never seems to get called. Here's the code I'm working with: function startSound(currentSound) { feedback.text += currentSound+ playing now; glow.alpha = 100; var snd:Sound = new Sound(); snd.attachSound(currentSound); snd.onSoundComplete = function() { glow.alpha = 0; feedback.text += stopping now; } snd.start(); } The currentSound parameter is the name of an mp3. The startSound function is called as the change event from a comboBox used to select the sound to be played. The sound gets played just fine, but the onSoundComplete function never executes. The feedback.text mechanism is a trace - and the text stopping now never gets called. The glow object is an imported .swf whose alpha is supposed to change when the sound is complete. - Tom -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp: //groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.ma il-archive.com/flexcoders%40yahoogroups.com -- YAHOO! GROUPS LINKS * Visit your group http://groups.yahoo.com/group/flexcodersflexcoders on the web. * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED]fle [EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. -- -- Flexcoders Mailing
[flexcoders] programatically change headerColors? Re: Control Bar Background Color
Nevermind.. got it.. setStyle(headerColors, [0xFF,0x94FA6A]); --- In flexcoders@yahoogroups.com, stevenkeys2003 [EMAIL PROTECTED] wrote: How would you programatically change headerColors and footerColors? Need some examples... I'm assuming it involves setStyle somehow? Thx, -Steve --- In flexcoders@yahoogroups.com, jwc_wensan [EMAIL PROTECTED] wrote: Andrew: Yes, I was using the headerColors attribute and was placing it in the CSS file. Since the ControlBar was/is a separate control, I did not think of it as the footer of the Panel, even though, it actually is displayed that way. This works. Thanks for the help. Jack --- In flexcoders@yahoogroups.com, Andrew Spaulding [EMAIL PROTECTED] wrote: I assume you used the headerColors attribute on the panel to change the header colours. The Panel component also has a footerColors style. The footerColors style is an array of two colours used to the draw footer background (the area for the ControlBar). use it like this: mx:Panel width=100% height=100% headerColors=[#44, #FF] footerColors=[#FF, #44] mx:ControlBar / /mx:Panel You can also use the footer-colours and header-colors tag in your css style declarations. Cheers, Andrew Spaulding www.flexdaddy.info --- In flexcoders@yahoogroups.com, jwc_wensan [EMAIL PROTECTED] wrote: Good Afternoon: In my code I have changed the headerColor of the Panel and want to change the ControlBar background color to match. I changed the background color to match, but it did not work. I then read this from livedocs: The mx:ControlBar container inherits all the properties of its parent classes. Note: Although the ControlBar container inherits the borderStyle, backgroundColor, and backgroundImage styles from the HBox container, you cannot set them. * Does this mean we are stuck with the Flex default background color for the ControlBar? Is there a workaround? Thanks, Jack -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Combo Box Quirk or Bug
maybe it is because you have not called the function assign data, as it is in here that the dataprovider binding is setup. Why not set the binding up on the combo: mx:ComboBox id=assetMFR editable=true dataProvider={arrData}/ and make sure that the array arrData, is defined outside of the function Andrew --- In flexcoders@yahoogroups.com, charlespaz1 [EMAIL PROTECTED] wrote: It is not a seperate text field, but the combo boxes' own text fields that they won't fill in. The data is bound by setting the data provider to an Array of strings. function assignData() { var arrData:Array = new Array(string1, String2); assetMFR.dataProvider = arrData; } mx:ComboBox id=assetMFR editable=true / Typing in an entry works fine, however, selecting an entry from the drop down list doesn't work at all until you do it a second time. --- In flexcoders@yahoogroups.com, greenfishinwater [EMAIL PROTECTED] wrote: How do you do the data binding to the textbox, can either of the 3 combo boxes populate the text field? I do something similar where I display the description from the combo box: mx:Model id=selectedDescriptions selForecastAge{forecastAgeCBO.selectedItem.label}/selForecastAge Then my label has: mx:Label text=Use: {selectedDescriptions.selForecastAge} x=10 y=625 width=260 / Andrew --- In flexcoders@yahoogroups.com, charlespaz1 [EMAIL PROTECTED] wrote: I have 3 editable combo boxes in a panel and when an item is selected, nothing appears in the text box. When an item is selected a second time, it works properly. Is this just a quirk of the Editable combobox or is this a bug? -- 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] sound problem: onSoundComplete
I'm having no problems with this. To test, just replace the url variable with some local sound on your machine. One key difference to note, im using loadSound rather than attachSound. Not sure why that matters, but it might ?xml version=1.0 encoding=iso-8859-1? mx:Application width=800 height=600 xmlns:mx=http://www.macromedia.com/2003/mxml; creationComplete=appInit() mx:Script ![CDATA[ var snd:Sound; function appInit() { var url = Simpsons.mp3; startSound(url); } function startSound(currentSound){ feedback.text += currentSound+ playing now; snd = new Sound(); snd.loadSound(currentSound); snd.onLoad = mx.utils.Delegate.create(this, playSound); snd.onSoundComplete = mx.utils.Delegate.create(this, soundStopped); snd.start(); } function playSound(){ snd.start(); } function soundStopped(){ mx.controls.Alert.show(stopped); feedback.text += stopping now; } ]] /mx:Script mx:Label id=feedback / /mx:Application At 02:47 PM 7/28/2005, Tom Fitzpatrick wrote: Just trying to bump this problem up - still looking for a solution. I've tried a bunch of different combinations to make the onSoundComplete method work, none of which do the trick. The docs - which perhaps were repurposed from Flash - make no mention of the scoping issue. Anyone have suggestions or a hello world level example? - Tom At 01:51 PM 7/27/2005, you wrote: Dirk, thanks for the suggestion - but still no luck. Same problem: sound plays, no onSoundComplete execution. Were you able to get this to work? Here's my revised code: function startSound(currentSound) { feedback.text += currentSound+ playing now; glow.alpha = 100; var snd:Sound = new Sound(); snd.attachSound(currentSound); snd.onSoundComplete = mx.utils.Delegate.create(this, soundStopped); snd.start(); } function soundStopped() { glow.alpha = 0; feedback.text += stopping now; } At 09:37 AM 7/27/2005, you wrote: There's still a scoping problem. Try this: function startSound(currentSound) { feedback.text += currentSound+ playing now; glow.alpha = 100; var snd:Sound = new Sound(); snd.attachSound(currentSound); snd.onSoundComplete = mx.utils.Delegate.create(this, soundStopped); snd.start(); } function soundStopped() { glow.alpha = 0; feedback.text += stopping now; } Dirk. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Fitzpatrick Sent: Wednesday, July 27, 2005 2:26 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] sound problem: onSoundComplete Matt - I made your modification in my code, and still have the same problem: sound plays OK, but the onSoundComplete actions (trace and reset alpha) never take place. Here's the modified code: function startSound(currentSound) { feedback.text += currentSound+ playing now; glow.alpha = 100; var snd:Sound = new Sound(); snd.attachSound(currentSound); snd.onSoundComplete = mx.utils.Delegate.create(this, function() { glow.alpha = 0; feedback.text += stopping now; }); snd.start(); } Any other ideas? - Tom At 09:41 PM 7/26/2005, you wrote: snd.onSoundComplete = mx.utils.Delegate.create(this, function() { //same body here }); You're having scoping problems. Matt -- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Fitzpatrick Sent: Tuesday, July 26, 2005 2:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] sound problem: onSoundComplete Trying to get onSoundComplete() to work - but it never seems to get called. Here's the code I'm working with: function startSound(currentSound) { feedback.text += currentSound+ playing now; glow.alpha = 100; var
Re: [flexcoders] sound problem: onSoundComplete
loadSound will load an mp3 file external to the SWF. attachSound will play a sound that has been embedded in the SWF file. - Original Message - From: Jeff Tapper [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 28, 2005 3:10 PM Subject: RE: [flexcoders] sound problem: onSoundComplete I'm having no problems with this. To test, just replace the url variable with some local sound on your machine. One key difference to note, im using loadSound rather than attachSound. Not sure why that matters, but it might ?xml version=1.0 encoding=iso-8859-1? mx:Application width=800 height=600 xmlns:mx=http://www.macromedia.com/2003/mxml; creationComplete=appInit() mx:Script ![CDATA[ var snd:Sound; function appInit() { var url = Simpsons.mp3; startSound(url); } function startSound(currentSound){ feedback.text += currentSound+ playing now; snd = new Sound(); snd.loadSound(currentSound); snd.onLoad = mx.utils.Delegate.create(this, playSound); snd.onSoundComplete = mx.utils.Delegate.create(this, soundStopped); snd.start(); } function playSound(){ snd.start(); } function soundStopped(){ mx.controls.Alert.show(stopped); feedback.text += stopping now; } ]] /mx:Script mx:Label id=feedback / /mx:Application At 02:47 PM 7/28/2005, Tom Fitzpatrick wrote: Just trying to bump this problem up - still looking for a solution. I've tried a bunch of different combinations to make the onSoundComplete method work, none of which do the trick. The docs - which perhaps were repurposed from Flash - make no mention of the scoping issue. Anyone have suggestions or a hello world level example? - Tom At 01:51 PM 7/27/2005, you wrote: Dirk, thanks for the suggestion - but still no luck. Same problem: sound plays, no onSoundComplete execution. Were you able to get this to work? Here's my revised code: function startSound(currentSound) { feedback.text += currentSound+ playing now; glow.alpha = 100; var snd:Sound = new Sound(); snd.attachSound(currentSound); snd.onSoundComplete = mx.utils.Delegate.create(this, soundStopped); snd.start(); } function soundStopped() { glow.alpha = 0; feedback.text += stopping now; } At 09:37 AM 7/27/2005, you wrote: There's still a scoping problem. Try this: function startSound(currentSound) { feedback.text += currentSound+ playing now; glow.alpha = 100; var snd:Sound = new Sound(); snd.attachSound(currentSound); snd.onSoundComplete = mx.utils.Delegate.create(this, soundStopped); snd.start(); } function soundStopped() { glow.alpha = 0; feedback.text += stopping now; } Dirk. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Fitzpatrick Sent: Wednesday, July 27, 2005 2:26 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] sound problem: onSoundComplete Matt - I made your modification in my code, and still have the same problem: sound plays OK, but the onSoundComplete actions (trace and reset alpha) never take place. Here's the modified code: function startSound(currentSound) { feedback.text += currentSound+ playing now; glow.alpha = 100; var snd:Sound = new Sound(); snd.attachSound(currentSound); snd.onSoundComplete = mx.utils.Delegate.create(this, function() { glow.alpha = 0; feedback.text += stopping now; }); snd.start(); } Any other ideas? - Tom At 09:41 PM 7/26/2005, you wrote: snd.onSoundComplete = mx.utils.Delegate.create(this, function() { //same body here }); You're having scoping problems. Matt -- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Fitzpatrick Sent: Tuesday, July 26, 2005 2:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] sound problem:
Re: [flexcoders] sound problem: onSoundComplete
Good enough, heres an example reworked using an embeded sound. onSoundComplete still fires flawlessly. Perhaps the problem was that Tom had the Sound variable scoped locally to the function, while I have mine accessible to the whole class. ?xml version=1.0 encoding=iso-8859-1? mx:Application width=800 height=600 xmlns:mx=http://www.macromedia.com/2003/mxml; creationComplete=appInit() mx:Script ![CDATA[ [Embed('Simpsons.mp3')] var url:String; var snd:Sound; function appInit() { startSound(url); } function startSound(currentSound){ feedback.text += currentSound+ playing now; snd = new Sound(); snd.attachSound(currentSound); snd.onLoad = mx.utils.Delegate.create(this, playSound); snd.onSoundComplete = mx.utils.Delegate.create(this, soundStopped); snd.start(); } function playSound(){ snd.start(); } function soundStopped(){ mx.controls.Alert.show(stopped); feedback.text += stopping now; } ]] /mx:Script mx:Label id=feedback / /mx:Application At 03:15 PM 7/28/2005, you wrote: loadSound will load an mp3 file external to the SWF. attachSound will play a sound that has been embedded in the SWF file. - Original Message - From: Jeff Tapper [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 28, 2005 3:10 PM Subject: RE: [flexcoders] sound problem: onSoundComplete I'm having no problems with this. To test, just replace the url variable with some local sound on your machine. One key difference to note, im using loadSound rather than attachSound. Not sure why that matters, but it might ?xml version=1.0 encoding=iso-8859-1? mx:Application width=800 height=600 xmlns:mx=http://www.macromedia.com/2003/mxmlhttp://www.macromedia.com/2003/mxml; creationComplete=appInit() mx:Script ![CDATA[ var snd:Sound; function appInit() { var url = Simpsons.mp3; startSound(url); } function startSound(currentSound){ feedback.text += currentSound+ playing now; snd = new Sound(); snd.loadSound(currentSound); snd.onLoad = mx.utils.Delegate.create(this, playSound); snd.onSoundComplete = mx.utils.Delegate.create(this, soundStopped); snd.start(); } function playSound(){ snd.start(); } function soundStopped(){ mx.controls.Alert.show(stopped); feedback.text += stopping now; } ]] /mx:Script mx:Label id=feedback / /mx:Application At 02:47 PM 7/28/2005, Tom Fitzpatrick wrote: Just trying to bump this problem up - still looking for a solution. I've tried a bunch of different combinations to make the onSoundComplete method work, none of which do the trick. The docs - which perhaps were repurposed from Flash - make no mention of the scoping issue. Anyone have suggestions or a hello world level example? - Tom At 01:51 PM 7/27/2005, you wrote: Dirk, thanks for the suggestion - but still no luck. Same problem: sound plays, no onSoundComplete execution. Were you able to get this to work? Here's my revised code: function startSound(currentSound) { feedback.text += currentSound+ playing now; glow.alpha = 100; var snd:Sound = new Sound(); snd.attachSound(currentSound); snd.onSoundComplete = mx.utils.Delegate.create(this, soundStopped); snd.start(); } function soundStopped() { glow.alpha = 0; feedback.text += stopping now; } At 09:37 AM 7/27/2005, you wrote: There's still a scoping problem. Try this: function startSound(currentSound) { feedback.text += currentSound+ playing now; glow.alpha = 100; var snd:Sound = new Sound(); snd.attachSound(currentSound); snd.onSoundComplete = mx.utils.Delegate.create(this, soundStopped); snd.start(); } function soundStopped() { glow.alpha = 0; feedback.text += stopping now; } Dirk. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Fitzpatrick Sent: Wednesday, July
[flexcoders] flex developers needed - contract to perm - telecommute
hi guys looking for more flex developers (or skilled action scripters to convert to flex) for a 3-4 month contract and can convert to perm after (if you are willing). the work will be done 100% telecommute. rate and hours are open at this time also giving a $500 referral bonus, so if you know someone that is looking for a good opportunity and a kickin telecommute environment, pass it along! thanks Nate Nielsen [EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] sound problem: onSoundComplete
The Activation Object is the weirdest beast... XML LoadVars will both stay around AND fire their onLoad/onData events even if you declare them as local vars. While this is nice to save on member variables, no one knows what the heck garbage collection does with them, so doing things your way is recommended. ...still, I have in the past gotten onSoundComplete to work via a local var so not sure... - Original Message - From: Jeff Tapper [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 28, 2005 3:36 PM Subject: Re: [flexcoders] sound problem: onSoundComplete Good enough, heres an example reworked using an embeded sound. onSoundComplete still fires flawlessly. Perhaps the problem was that Tom had the Sound variable scoped locally to the function, while I have mine accessible to the whole class. ?xml version=1.0 encoding=iso-8859-1? mx:Application width=800 height=600 xmlns:mx=http://www.macromedia.com/2003/mxml; creationComplete=appInit() mx:Script ![CDATA[ [Embed('Simpsons.mp3')] var url:String; var snd:Sound; function appInit() { startSound(url); } function startSound(currentSound){ feedback.text += currentSound+ playing now; snd = new Sound(); snd.attachSound(currentSound); snd.onLoad = mx.utils.Delegate.create(this, playSound); snd.onSoundComplete = mx.utils.Delegate.create(this, soundStopped); snd.start(); } function playSound(){ snd.start(); } function soundStopped(){ mx.controls.Alert.show(stopped); feedback.text += stopping now; } ]] /mx:Script mx:Label id=feedback / /mx:Application At 03:15 PM 7/28/2005, you wrote: loadSound will load an mp3 file external to the SWF. attachSound will play a sound that has been embedded in the SWF file. - Original Message - From: Jeff Tapper [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 28, 2005 3:10 PM Subject: RE: [flexcoders] sound problem: onSoundComplete I'm having no problems with this. To test, just replace the url variable with some local sound on your machine. One key difference to note, im using loadSound rather than attachSound. Not sure why that matters, but it might ?xml version=1.0 encoding=iso-8859-1? mx:Application width=800 height=600 xmlns:mx=http://www.macromedia.com/2003/mxmlhttp://www.macromedia.com/2003/mxml; creationComplete=appInit() mx:Script ![CDATA[ var snd:Sound; function appInit() { var url = Simpsons.mp3; startSound(url); } function startSound(currentSound){ feedback.text += currentSound+ playing now; snd = new Sound(); snd.loadSound(currentSound); snd.onLoad = mx.utils.Delegate.create(this, playSound); snd.onSoundComplete = mx.utils.Delegate.create(this, soundStopped); snd.start(); } function playSound(){ snd.start(); } function soundStopped(){ mx.controls.Alert.show(stopped); feedback.text += stopping now; } ]] /mx:Script mx:Label id=feedback / /mx:Application At 02:47 PM 7/28/2005, Tom Fitzpatrick wrote: Just trying to bump this problem up - still looking for a solution. I've tried a bunch of different combinations to make the onSoundComplete method work, none of which do the trick. The docs - which perhaps were repurposed from Flash - make no mention of the scoping issue. Anyone have suggestions or a hello world level example? - Tom At 01:51 PM 7/27/2005, you wrote: Dirk, thanks for the suggestion - but still no luck. Same problem: sound plays, no onSoundComplete execution. Were you able to get this to work? Here's my revised code: function startSound(currentSound) { feedback.text += currentSound+ playing now; glow.alpha = 100; var snd:Sound = new Sound(); snd.attachSound(currentSound); snd.onSoundComplete = mx.utils.Delegate.create(this, soundStopped); snd.start(); } function soundStopped() { glow.alpha = 0; feedback.text += stopping now; } At 09:37 AM 7/27/2005, you wrote:
Re: [flexcoders] sound problem: onSoundComplete
As I say, not entirely sure why mine works when the original doesnt, but it works, which is good enough for now. At 03:49 PM 7/28/2005, you wrote: The Activation Object is the weirdest beast... XML LoadVars will both stay around AND fire their onLoad/onData events even if you declare them as local vars. While this is nice to save on member variables, no one knows what the heck garbage collection does with them, so doing things your way is recommended. ...still, I have in the past gotten onSoundComplete to work via a local var so not sure... - Original Message - From: Jeff Tapper [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 28, 2005 3:36 PM Subject: Re: [flexcoders] sound problem: onSoundComplete WARNING: The remainder of this message has not been transferred. The estimated size of this message is 41981 bytes. Click on the Retrieve From Server icon above and check mail again to get the whole thing. (If you're reading this in the preview pane, you'll need to open the message to see the icon.) If the Retrieve From Server icon is not showing, then this message is no longer on the server. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flex SAP Article in DevNet
Hi there, Did anyone take a look here http://www.macromedia.com/software/flex/whitepapers/pdf/sap_flex.pdf ? We actually use SAP and we are hopping to work with this new netweaver version but at the end of this document I noticed in the example some UI Components that aren't standard ones... Is this document already based in what Flex 2.0 will be able to provide as new UI Components or are those Custom Components ? I know that MM can't and won't talk about what Flex 2 will bring but I was wandering if this sample was based in Flex 1.5 or something like 1.75? ;) João Fernandes -- 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] menubar question
I'm just playing with the MenuBar component and I can't seem to figure out how to make the first menu flush with the left side of my app...there always seems to be a padding of 10 pixels before the start of the first menu item in the menu bar...I've tried setting a handful of attributes to 0 and none of them seem to move the first item flush to the left...I'm sure I'm an idiot and am overlooking something...anyone know how to heck to do this? I thought marginLeft=0 would do the trick...not so much. robert l. brueckmann senior web developer merlin securities 595 madison avenue new york, ny 10022 p: 212.822.4821 f: 212.822.4820 This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission. Merlin Securities, LLC is a registered broker-dealer. Services offered through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security. -- 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] sound problem: onSoundComplete
Hey - thanks Jeff and Jester. Another difference between Jeff's code and mine is that his uses the delegate to play the sound as well as to call the onSoundComplete method. I was curious why snd.start() was called twice. I removed the snd.start() call in the startSound() function and it worked - but the sound would not repeat (I added a button to repeatedly play the sound, instead of making it an initialization event). Adding the snd.start() back in allowed repeating. Not sure why this is the case. Also curious what performance difference - if any - there is between embedded and non-embedded sounds. I was able to get it to work both ways. Thanks again. - Tom At 03:55 PM 7/28/2005, you wrote: As I say, not entirely sure why mine works when the original doesnt, but it works, which is good enough for now. At 03:49 PM 7/28/2005, you wrote: The Activation Object is the weirdest beast... XML LoadVars will both stay around AND fire their onLoad/onData events even if you declare them as local vars. While this is nice to save on member variables, no one knows what the heck garbage collection does with them, so doing things your way is recommended. ...still, I have in the past gotten onSoundComplete to work via a local var so not sure... - Original Message - From: Jeff Tapper [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 28, 2005 3:36 PM Subject: Re: [flexcoders] sound problem: onSoundComplete WARNING: The remainder of this message has not been transferred. The estimated size of this message is 41981 bytes. Click on the Retrieve From Server icon above and check mail again to get the whole thing. (If you're reading this in the preview pane, you'll need to open the message to see the icon.) If the Retrieve From Server icon is not showing, then this message is no longer on the server. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Flex SAP Article in DevNet
They have 1.5 and built their components on top. No special build of Flex for the components. Their support relationship with us is probably pretty nice though J Note that I dont believe their license allows SAP customers to build Flex apps that use their version of Flex. You will need to buy a separate Flex license to build your own Flex pieces (I think). Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of joao_m_fernandes Sent: Thursday, July 28, 2005 1:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex SAP Article in DevNet Hi there, Did anyone take a look here http://www.macromedia.com/software/flex/whitepapers/pdf/sap_flex.pdf ? We actually use SAP and we are hopping to work with this new netweaver version but at the end of this document I noticed in the example some UI Components that aren't standard ones... Is this document already based in what Flex 2.0 will be able to provide as new UI Components or are those Custom Components ? I know that MM can't and won't talk about what Flex 2 will bring but I was wandering if this sample was based in Flex 1.5 or something like 1.75? ;) João Fernandes -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Extending custom components
Aaron, I need to do this same thing. Were you successful? care to share any hints? DK On 3/10/05, bhaq1972 [EMAIL PROTECTED] wrote: Just an idea add all the child controls in your base class using createchild (during the initialize event say) rather than in mxml. then that will leave you free to add controls to your extended component using mxml. hope this helps. btw: this scheduling system your writing. can you give more details. would it be for sale? etc. regards bod(bhaq1972) --- In flexcoders@yahoogroups.com, adk365 [EMAIL PROTECTED] wrote: Hello, I'm creating a scheduling system where users can drag events onto a weekly calendar and resize the events for how long they want to spend doing the activity. The events may be of many different types with different data/display needs, and so I'm creating a base clase, called scheduleItem, to handle drag-and-drop, resizing, tracking what time the event appears on the calendar, etc. I'm then extending that base class to display text and components specific to the type of event. (some may just have text, others may need combo boxes, etc.). The problem I have is that I can't add components to my base class (like the drag bar, resizer dot, or text for displaying the time) while at the same time allowing the extending classes to add additional components based on their needs. Does anyone have any suggestions for getting around this? Thanks for your help! Aaron Yahoo! Groups Links -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- 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] sound problem: onSoundComplete
attachSound I reckon has less overhead because the sound and header are already embedded in the SWF. Additionally, attachSound is a syncronous opertion, where as loadSound, both streaming and non, is asyncronous. attachSound requires a sound asset be embeded in your SWF, increasing compile time, final SWF size, and loading overhead. As such, the sound is immediaetly available first frame. loadSound requires the external file be mp3 only where as attachSound allows you to import a wide array of formats, with at least 3 different codecs to choose from. loadSound can load mp3's from dynamic sources as well where as attachSound is harcoded to internal assets (like http://www.server.com/myapp.cfm?getmp3file) vs. a true file.mp3. loadSound can undocumented connect to SHOUTCast/streaming mp3 servers. I use attachSound for button clicks and other UI sounds; quick, short. I use loadSound for background music, and long voice overs (if I don't care about syncronization, or have code to handle that for me). - Original Message - From: Tom Fitzpatrick [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 28, 2005 4:50 PM Subject: Re: [flexcoders] sound problem: onSoundComplete Hey - thanks Jeff and Jester. Another difference between Jeff's code and mine is that his uses the delegate to play the sound as well as to call the onSoundComplete method. I was curious why snd.start() was called twice. I removed the snd.start() call in the startSound() function and it worked - but the sound would not repeat (I added a button to repeatedly play the sound, instead of making it an initialization event). Adding the snd.start() back in allowed repeating. Not sure why this is the case. Also curious what performance difference - if any - there is between embedded and non-embedded sounds. I was able to get it to work both ways. Thanks again. - Tom At 03:55 PM 7/28/2005, you wrote: As I say, not entirely sure why mine works when the original doesnt, but it works, which is good enough for now. At 03:49 PM 7/28/2005, you wrote: The Activation Object is the weirdest beast... XML LoadVars will both stay around AND fire their onLoad/onData events even if you declare them as local vars. While this is nice to save on member variables, no one knows what the heck garbage collection does with them, so doing things your way is recommended. ...still, I have in the past gotten onSoundComplete to work via a local var so not sure... - Original Message - From: Jeff Tapper [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 28, 2005 3:36 PM Subject: Re: [flexcoders] sound problem: onSoundComplete WARNING: The remainder of this message has not been transferred. The estimated size of this message is 41981 bytes. Click on the Retrieve From Server icon above and check mail again to get the whole thing. (If you're reading this in the preview pane, you'll need to open the message to see the icon.) If the Retrieve From Server icon is not showing, then this message is no longer on the server. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex SAP Article in DevNet
Matt We already have our Flex 1.5 License for our Intranet. Anyway, if i'm not wrong (but not sure), SAP NetWeaver allows us to leverage any application in a SAP system. Like those BAPIs in the doc, SAP Costumers can build their own applications. We want this version of netweaver not for develop some custom application that has nothing to do with SAP but to use it with our current modules and custom programs. Something that could be great was the possibility do have SAP Reports in FlashPaper format...anyway, that's a SAP implementation question not a Flex one ;) João Fernandes --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: They have 1.5 and built their components on top. No special build of Flex for the components. Their support relationship with us is probably pretty nice though :-) Note that I don't believe their license allows SAP customers to build Flex apps that use their version of Flex. You will need to buy a separate Flex license to build your own Flex pieces (I think). Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of joao_m_fernandes Sent: Thursday, July 28, 2005 1:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex SAP Article in DevNet Hi there, Did anyone take a look here http://www.macromedia.com/software/flex/whitepapers/pdf/sap_flex.pdf ? We actually use SAP and we are hopping to work with this new netweaver version but at the end of this document I noticed in the example some UI Components that aren't standard ones... Is this document already based in what Flex 2.0 will be able to provide as new UI Components or are those Custom Components ? I know that MM can't and won't talk about what Flex 2 will bring but I was wandering if this sample was based in Flex 1.5 or something like 1.75? ;) João Fernandes -- 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/ . -- 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] attachSound vs. loadSound (was: onSoundComplete)
At 05:13 PM 7/28/2005, you wrote: attachSound I reckon has less overhead because the sound and header are already embedded in the SWF. Additionally, attachSound is a syncronous opertion, where as loadSound, both streaming and non, is asyncronous. attachSound requires a sound asset be embeded in your SWF, increasing compile time, final SWF size, and loading overhead. As such, the sound is immediaetly available first frame. My application will have a large number (200+) of very short sounds, which will need to be able to be played one at a time when needed. Will this work with attachSound without performance problems? Seems that attachSound only embeds one sound at a time, or am I misunderstanding this? Synchronization with visual events could be an issue as well. In reference to synchronization with loadSound, you refer to having code to handle that for me - can you be more specific? - Tom -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Macromedia Usability Test
Posting for Val who's having subscriber issues at the moment, do not reply to me: Hello, We are inviting people to come to our Macromedia Facilities at 601 Townsend Street in San Francisco to participate in a usability study. Our offices are accessible by public transportation and free garage parking is available. Interested? For this 90-minute time commitment, you will be awarded a cash gift of $90 or your choice of the following software: Macromedia Flash, Fireworks, Freehand, Captivate, Contribute or Dreamweaver. Please fill out the questionnaire below. If you don't hear back from us, this means that the openings for this particular usability study have been filled. We will keep your information on file, with your permission, for future studies. Note that we don't share any personal information you provide outside of Macromedia. Thanks for helping us keep our products best of breed! Macromedia Usability Team Macromedia, Inc. | 601 Townsend Street | San Francisco | 94103 *** Please reply off-list to this email (mailto: [EMAIL PROTECTED]) and type in between the brackets to indicate your choices. 1. What is your level of experience with Macromedia Flex? Please type an X between the brackets to indicate the best choice. [] I haven't used Flex [] I've played with Flex, but haven't done any serious work [] I've walked through the Flex examples and experimented with the components [] I've built a prototype or simple application using Flex [] I've partially built a complex application using Flex [] I've built one or more complex applications using Flex 2. What editor do you use most frequently to develop Flex applications? [] Flex Builder [] Eclipse [] IntelliJ [] Textpad/Notepad/other basic text editors [] Other, please list: ___ 3. Which of the following best describes your development style when coding Flex applications? [] I like to create quick solutions for immediate problems, focus on productivity, and learn as needed. [] I like to create long-lasting solutions for problems and learn while working on the solution. [] I like to create the most efficient solution to a given problem, and typically learn in advance before working on the solution. 4. Approximately what percentage of your time developing web applications do you spending developing using the following technologies? Please enter a percentage for each technology you use. [] ASP [] ASP.NET [] ColdFusion [] DHTML/Ajax [] Flash [] Flex [] Java [] JSP [] Lazslo [] PHP [] Visual Basic [] Other __ --- Schedule: Please mark the times you will be available; marking more times will increase your chances of being selected. All times are Pacific Standard Time. Thu, August 4th [] 9:00 am [] 11:00 am [] 1:00 pm [] 3:00 pm [] 5:00 pm Fri, August 5th [] 9:00 am [] 11:00 am [] 1:00 pm [] 3:00 pm [] 5:00 pm Please fill out your contact information below (all required): Name: Work Email: Work Phone: Company: Job Title: -- 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] attachSound vs. loadSound (was: onSoundComplete)
I'll answer your questions backwards with more information than you'd ever care to know. There are 2 types of sounds in a SWF (not counting Flash Lite's device sounds): Event and Streaming. Event sounds are not tied to the frame based engine of Flash. Therefore, they will play indenpendently of the Flash Player's frame rendering. Meaning, if you play your SWF on a slow system, Flash Player may drop (visual) frames to compensate, much like digital video does, but the sound will not stop, nor be re-synced. If you click a button, and expect it to play a sound, you really don't care if it's synced, so for this it works well. However, for eLearning (SWF's produced from Captivate (formerly RoboDemo)) and other voice over scenairos (or actual animation movies), it is integral that the sound be synced with visuals. I'm sure you may have seen some DVD's accidentally do this where the audio gets out of sync. This is unacceptable, and for this, Flash has Streaming sounds. They are called streams because they are embedded with Flash's frames, and since SWF's stream their frames down so you can immediately start playing them even if they haven't finished loading, so to must the entire sound... so it streams, whereas event sounds must be downloaded in their entirety (pretty sure about that last point). However, the only way to create Streaming sounds is using Flash. If you want to sync voice overs to presentations, you're only alternative is Captivate for Breeze. I'm not sure how Captivate makes its SWF's; if you import a CP file into Flash, they use event sounds which boggles my mind, because every Captivate SWF I've ever used syncs perfectly, which leads me believe they have code in there ensuring your Captivate SWF's sync to your audio. In essence, they coded their own timer engine to compensate (but I really really think they are using streaming sounds, it's just the Flash MX 2004 import messes up). So, that's the code scenario. I think Breeze, since it's recording an FLV, is just recording the events, like your power point slide changed, so when you play it back, that event fires at the appropriate time since it's embedded in the FLV. That's another example. Now, to answer your question, I'd use a Remote Shared Library in your case. Compile all of your sounds into a seperate SWF; like a DLL. This SWF will be included at runtime, and added to the total SWF's preload time, so even if your final app is only 180k, the sounds SWF file size will have to be downloaded fully before you can even use 1 sound. I'm sure in your case, though, that's ok. attachSound really means, Hey sound object, when you run your start method, please play this resource. The string parameter you pass into attachSound is just the linkaegID/resource name of the sound embedded in your Flex APP/SWF (in this case in a remote shared library SWF). That reminds me, can't remember if an RSL can have it's sounds used... I think it can.. hrm. Anyway, yeah, for you, attachSound is the way to go. If you need to play another sound, either call attachSound again, OR make a new sound object. You can only, currently, play 8 sounds at once in Flash. If the RSL solution doesn't work with 2 sounds as a test, then loadSound I guess would be ok. It'd be latent the first time you called it since the sound isn't cached on the user's cache, but the 2nd time it it would be... or you could just preload them. - Original Message - From: Tom Fitzpatrick [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 28, 2005 5:31 PM Subject: [flexcoders] attachSound vs. loadSound (was: onSoundComplete) At 05:13 PM 7/28/2005, you wrote: attachSound I reckon has less overhead because the sound and header are already embedded in the SWF. Additionally, attachSound is a syncronous opertion, where as loadSound, both streaming and non, is asyncronous. attachSound requires a sound asset be embeded in your SWF, increasing compile time, final SWF size, and loading overhead. As such, the sound is immediaetly available first frame. My application will have a large number (200+) of very short sounds, which will need to be able to be played one at a time when needed. Will this work with attachSound without performance problems? Seems that attachSound only embeds one sound at a time, or am I misunderstanding this? Synchronization with visual events could be an issue as well. In reference to synchronization with loadSound, you refer to having code to handle that for me - can you be more specific? - Tom -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- 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
Re: [flexcoders] menubar question
On 7/29/05, Robert Brueckmann [EMAIL PROTECTED] wrote: I'm just playing with the MenuBar component and I can't seem to figure out how to make the first menu flush with the left side of my app...there always seems to be a padding of 10 pixels before the start of the first menu item in the menu bar... The MenuBar is hard-coded to place the first MenuBarItem (and the dropdown) at 10 pixels. If you open up your FlexforFlash.zip (or go through fdb), you can see there's an internal '__marginWidth' variable whose value is set to 10. mx:MenuBar id=menubar dataProvider={myMenuData} __marginWidth=0 / ;-) Manish PS: Don't tell anybody. -- 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] Trouble Deploying on WebLogic 8.1 [ Brian Deitte ]
Hi Brian Are the internal bug numbers public, or are they only internal to Macromedia? Are there any work arounds for this bug besides deploying exploded? Thanks, Shahnavaz From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Brian Deitte Sent: Tuesday, July 26, 2005 9:40 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Trouble Deploying on WebLogic 8.1 Yes this is a known issue (internal bug number 93750). I believe this is documented but don't have a reference to it. -Brian From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dave Kuncl Sent: Tuesday, July 26, 2005 11:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Trouble Deploying on WebLogic 8.1 I am having trouble deploying a Flex web app on WebLogic. It deploys fine if I expand the war file and hot deploy, but when the app is bundled in a war file inside an ear file the servlets fail to load. Can a Flex web app only be deployed expanded on WebLogic? -- 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 Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] flex developers needed - contract to perm - telecommute
I am available about 20-25 hours a week (mostly weekends). I am currently working on a project for Ford and Honda so it would have to be when I am not at work. I am a skilled ColdFusion/Flex developer. Contact me if you want to know more. I also know someone else who would be interested but I will have to contact him to make sure. Thanks -Kelly -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, July 28, 2005 3:47 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] flex developers needed - contract to perm - telecommute hi guys looking for more flex developers (or skilled action scripters to convert to flex) for a 3-4 month contract and can convert to perm after (if you are willing). the work will be done 100% telecommute. rate and hours are open at this time also giving a $500 referral bonus, so if you know someone that is looking for a good opportunity and a kickin telecommute environment, pass it along! thanks Nate Nielsen [EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- 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] Overlay container on panels
Title: Message Thanks, Sree. That helps enormously. I'm still a bit confused by the HBox and VBox components. Should one treat the HBox as a row (i.e., tr), and a VBox as a cell (i.e., td)? For instance, if I want two panels to be side by side, do I put them in one HBox with two nested VBox? What would be the syntax for that? I can't wait till I get I2 Flex book in the mail. I need to review some basics before I move forward. Darius -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sreejith UnnikrishnanSent: Wednesday, July 27, 2005 11:11 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Overlay container on panelsHi, I ran through your code.Looks like you have not quite understood the concept of using mx:Canvas. Also I found that your layout is in total disarray!Use these guidelines for basic layout. 1. You use mx:HBox to layout components horizontally. 2. Use mx:VBox to layout components vertically 3. Use mx:Canvas to layout components over each other or you have real reason to moce around components on the stage. 4. For your requirement, I assume an accordian would be the best. 5. Try and avoid statically positioning/sizing components. Use percentages as much as possible. (I myself have started seeing the beauty of flexi/scalable layouts! and I believe this is what Flex makes your layout a lot more attractive)If I understand your requirement correctly, you want to just show and hide the shopping cart on click of a button.So do the following.Put all your code, EXCEPT the shopping cart in a VBox/HBox. Lets call it ALLOTHERCODE.And the shopping cart - CARTThen your code should look like this.mx:Application ..mx:CanvasALLOTHERCODECART/mx:Canvas/mx:ApplicationLet us know if it helps ...I suggest you work with a skeleton structure in the begining with just containers.Once you are happy with the result, populate the PieCharts, Datagrids, etc (typically how you would approach HTML page design)RegardsSree[EMAIL PROTECTED] wrote: I thought this would do it but I'm still getting the same problem. I have one canvas tag that wraps all my other code. I'm scratching my head on this one... If you could take a second look, I've included the modified code below: Also, a general layout question. Is it good practice to have one canvas for your entire application that you then nest other containers and components in? Just wondering... Thanks, Darius ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*" initialize="doClick()" mx:Style source="DallyStyle.css" / mx:Script source="index4.as"/ mx:Effect mx:WipeDown name="showCart" show="false" duration="300"/ mx:WipeUp name="hideCart" show="false" duration="300"/ /mx:Effect mx:RemoteObject id="ro" endpoint="http://gx270dev.net/flashservices/gateway" source="Model.mUtilities.mUpdate.qry_UpdateAuthorization" fault="mx.controls.Alert.show(event.fault.faultstring)" showBusyCursor="true" mx:method name="GetUpdateAuthorization" result="doResult(event)"/ /mx:RemoteObject mx:Canvas width="1000" height="534" backgroundColor="#336699" mx:Image x="2" y="3" source="Images/logo.swf" / mx:PieChart id="Collections" x="108" y="1" dataProvider="{PaymentSources}" showDataTips="false" width="68" height="64" resizeEffect="Resize" mx:series mx:Array mx:PieSeries labelPosition="inside" field="Amount" labelFunction="display"/ /mx:Array /mx:series /mx:PieChart mx:Button x="7" y="40" width="50" label="Logout" / mx:Button x="60" y="40" label="{cart.visible?'Close':'Search'}" width="50" click="cart.visible=!cart.visible"/ mx:VBox id="cart" backgroundColor="#EEF5EE" borderStyle="solid" marginTop="8" marginLeft="8" marginBottom="8" marginRight="8" visible="false" showEffect="showCart" hideEffect="hideCart" x="62" y="41" mx:Label text="Search"/ mx:DataGrid id="dg" width="300" height="200" mx:columns mx:Array mx:DataGridColumn columnName="name" headerText="Name" width="200"/ mx:DataGridColumn columnName="price" headerText="Price" width="100"/ /mx:Array /mx:columns /mx:DataGrid /mx:VBox mx:Panel x="7" y="77" width="183" height="96" title="Alerts" /mx:Panel mx:Panel x="193" y="26" width="779" title="Case Construct" height="121" mx:DataGrid id="CaseConstruct" width="769" height="83" mx:columns mx:Array mx:DataGridColumn headerText="Name" columnName="Name" / mx:DataGridColumn headerText="Status" columnName="Status" / mx:DataGridColumn headerText="Role" columnName="Role" / mx:DataGridColumn headerText="Residence" columnName="Residence" / mx:DataGridColumn headerText="SSN" columnName="Ssn" / mx:DataGridColumn headerText="Born"
[flexcoders] flex with coldfusion cfc's
I am still working with flex and my database structure. The question I have at hand is this. I have a coldfusion cfc that I have written, and would like to use it as my remote object. Right now I am still in the process of learning to bind the data from my cfc to my flex app. So here my my question. with the cfc I have pasted below. How would I bind the data from the called RO to form fields. So if I wanted fld_admin_log_new (from the cfc below) to be bound to the form field new adds. What would be the code to call the cfc and hte code to bind the cfc to that form field. mx:Form mx:FormItem label=New Additions mx:TextInput id=newAdds / /mx:FormItem /mx:Form -- 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] Trouble Deploying on WebLogic 8.1
Are the internal bug numbers public, or are they only internal to Macromedia? Are there any work arounds for this bug besides deploying exploded? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Brian Deitte Sent: Tuesday, July 26, 2005 9:40 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Trouble Deploying on WebLogic 8.1 Yes this is a known issue (internal bug number 93750). I believe this is documented but don't have a reference to it. -Brian From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dave Kuncl Sent: Tuesday, July 26, 2005 11:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Trouble Deploying on WebLogic 8.1 I am having trouble deploying a Flex web app on WebLogic. It deploys fine if I expand the war file and hot deploy, but when the app is bundled in a war file inside an ear file the servlets fail to load. Can a Flex web app only be deployed expanded on WebLogic? -- 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] Repeater
Title: Repeater Hi all, Is there anything wrong with the following code? mx:Repeater id=tactics dataProvider={plms.getDivision().getTactics() plms:header headerText={tactics.currentItem.getName()}/ mx:Repeater id=sTactics dataProvider=tactics.currentItem.getSubTactics() plms:row rowLabel={sTactics.currentItem.getName()} subTactics={subTactics}/ /mx:Repeater /mx:Repeater Where: plms.getDivision().getTactics() is an Array of Objects and each element of that array has getName() and getSubTactics() methods. I get the right result when I do this Alert.show(plms.getDivision().getTactics()[0].getSubTactics()[0].getName()); Any ideas? 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 Computer software testing Macromedia flex Development Software developer 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] Macromedia Usability Test?
apologies if this is a duplicate posting Hello, We are inviting people to come to our Macromedia Facilities at 601 Townsend Street in San Francisco to participate in a usability study. Our offices are accessible by public transportation and free garage parking is available. Interested? For this90-minute time commitment, you will be awarded a cash gift of $90 or your choice of the following software: Macromedia Flash, Fireworks, Freehand, Captivate, Contribute or Dreamweaver. Please fill out the questionnaire below. If you don't hear back from us, this means that the openings for this particular usability study have been filled. We will keep your information on file, with your permission, for future studies. Note that we don't share any personalinformation you provide outside of Macromedia. Thanks for helping us keep our products best of breed! Macromedia Usability TeamMacromedia, Inc. | 601 Townsend Street | San Francisco| 94103 *** Please replyoff-list to this email(mailto: [EMAIL PROTECTED]) andtype in between the brackets to indicate your choices. 1. What is your level of experience with Macromedia Flex? Please type an "X" between the brackets to indicate the best choice. [] I haven't used Flex [] I've played with Flex, but haven't done any serious work [] I've walked through the Flex examples and experimented with the components [] I've built a prototype or simple application using Flex [] I've partially built a complex application using Flex [] I've built one or more complex applications using Flex 2. What editor do you use most frequently to develop Flex applications? [] Flex Builder [] Eclipse [] IntelliJ [] Textpad/Notepad/other basic text editors [] Other, please list: ___ 3. Which of the following best describes your development style when coding Flex applications? [] I like to create quick solutions for immediate problems, focus on productivity, and learn as needed. [] I like to create long-lasting solutions for problems and learn while working on the solution. [] I like to create the most efficient solution to a given problem, and typically learn in advance before working on the solution. 4. Approximately what percentage of your time developing web applications do you spending developing using the following technologies? Please enter a percentage for each technology you use. [] ASP [] ASP.NET [] ColdFusion [] DHTML/Ajax [] Flash [] Flex [] Java [] JSP [] Lazslo [] PHP [] Visual Basic [] Other __ --- Schedule: Please mark the times you will be available; marking more times will increase your chances of being selected. All times are Pacific Standard Time. Thu, August 4th [] 9:00 am [] 11:00 am [] 1:00 pm [] 3:00 pm [] 5:00 pm Fri, August 5th [] 9:00 am [] 11:00 am [] 1:00 pm [] 3:00 pm [] 5:00 pm Please fill out your contact information below (all required): Name: Work Email: Work Phone: Company: Job Title: -- 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] Macromedia Usability Test?
Hello, We are inviting people to come to our Macromedia Facilities at 601 Townsend Street in San Francisco to participate in a usability study. Our offices are accessible by public transportation and free garage parking is available. Interested? For this90-minute time commitment, you will be awarded a cash gift of $90 or your choice of the following software: Macromedia Flash, Fireworks, Freehand, Captivate, Contribute or Dreamweaver. Please fill out the questionnaire below. If you don't hear back from us, this means that the openings for this particular usability study have been filled. We will keep your information on file, with your permission, for future studies. Note that we don't share any personalinformation you provide outside of Macromedia. Thanks for helping us keep our products best of breed! Macromedia Usability TeamMacromedia, Inc. | 601 Townsend Street | San Francisco| 94103 *** Please replyoff-list to this email(mailto: [EMAIL PROTECTED]) andtype in between the brackets to indicate your choices. 1. What is your level of experience with Macromedia Flex? Please type an "X" between the brackets to indicate the best choice. [] I haven't used Flex [] I've played with Flex, but haven't done any serious work [] I've walked through the Flex examples and experimented with the components [] I've built a prototype or simple application using Flex [] I've partially built a complex application using Flex [] I've built one or more complex applications using Flex 2. What editor do you use most frequently to develop Flex applications? [] Flex Builder [] Eclipse [] IntelliJ [] Textpad/Notepad/other basic text editors [] Other, please list: ___ 3. Which of the following best describes your development style when coding Flex applications? [] I like to create quick solutions for immediate problems, focus on productivity, and learn as needed. [] I like to create long-lasting solutions for problems and learn while working on the solution. [] I like to create the most efficient solution to a given problem, and typically learn in advance before working on the solution. 4. Approximately what percentage of your time developing web applications do you spending developing using the following technologies? Please enter a percentage for each technology you use. [] ASP [] ASP.NET [] ColdFusion [] DHTML/Ajax [] Flash [] Flex [] Java [] JSP [] Lazslo [] PHP [] Visual Basic [] Other __ --- Schedule: Please mark the times you will be available; marking more times will increase your chances of being selected. All times are Pacific Standard Time. Thu, August 4th [] 9:00 am [] 11:00 am [] 1:00 pm [] 3:00 pm [] 5:00 pm Fri, August 5th [] 9:00 am [] 11:00 am [] 1:00 pm [] 3:00 pm [] 5:00 pm Please fill out your contact information below (all required): Name: Work Email: Work Phone: Company: Job Title: -- 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 Computer software testing Macromedia flex Development Software developer 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] Event Handlers inside custom components
I actually figured this out right after I asked but I did it a different way. It does basically the same thing though. Here is an example: !My application page (TestApp.mxml)-- - ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns:Weee="*" initialize="SetVar()" mx:Script ![CDATA[ function SetVar(){ MyTest.MyValue = "Rararararar"; } ]] /mx:Script Weee:MyTestComp id="MyTest" / /mx:Application - !My component file (MyTestComp.mxml)-- - ?xml version="1.0" encoding="utf-8"? mx:VBox xmlns:mx="http://www.macromedia.com/2003/mxml" width="400" height="400" mx:Script ![CDATA[ var MyValue:String = "BlahBlah" function set MyOtherValue(NewValue):Void { mx.core.Application.alert('The new value is: '+MyValue); } ]] /mx:Script mx:Binding source="MyValue" destination="MyOtherValue" / /mx:VBox - From: Manish Jethani [EMAIL PROTECTED]Reply-To: flexcoders@yahoogroups.comTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Event Handlers inside custom componentsDate: Thu, 28 Jul 2005 23:12:51 +0530On 7/28/05, Archibald Scatflinger [EMAIL PROTECTED] wrote: I do not want to use implicit getter/setters because I want the components property to be bindable.To make the component's property bindable, specify a "ChangeEvent" forthe property and dispatch the event when the value changes.e.g.?xml version="1.0"?mx:Box xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*" mx:Label text="{labelText}" / mx:Script // Storage for 'labelText' property private var _labelText:String = ""; [ChangeEvent("labelTextChange")] public function get labelText():String { return _labelText; } public function set labelText(value:String):Void { if (value != _labelText) { _labelText = value; dispatchEvent({type: "labelTextChange"}); } } /mx:Script/mx:BoxWhen labelText is modified, the component dispatches an event totrigger binding. Check out the generated AS to see how this works.Manish -- 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 Computer software testing Macromedia flex Development Software developer 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] AutoTestFlash updated
Hi List, AutoTestFlash has just been updated: 1.3 Fixed bug with movieclips added statically in frames. Fixed bug loading from test file. 1.2 Support for multi level movies. 1.1 Ability to run saved scripts. Ability to capture test results on tested application. 1.0 First Release I have also updated documentation (syntax, flash8, etc...) on http://tiago.webstartpoint.net/flash/ Regards, Tiago -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] flex with coldfusion cfc's
Hi Jeremy, I didn't see a CFC attached. But in general you define an mx:RemoteObject, and in a really basic sense: ##jeremy.mxml mx:Application init=myRO.getSomething().send() mx:RemoteObject id=myRO endpoint=@ContextRoot()/flashservices/gateway source=jeremy mx:method name=getSomething result=newAdds.text=event.result/ /mx:RemoteObject mx:FormItem label=New Additions mx:TextInput id=newAdds / /mx:FormItem /mx:Form /mx:Application ### jeremy.cfc cfcomponent cffunction name=getSomething returnType=string access=remote cfreturn yo! /cffunction /cfcomponent Check out these articles: http://www.richinternet.de/blog/index.cfm?entry=831FE26E-0D70-9C2D-2549E1D1978CF1B0 http://www.bpurcell.org/blog/index.cfm?mode=entryentry=1013 http://www.bpurcell.org/blog/index.cfm?mode=entryentry=1019 http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19356 http://coldfusion.sys-con.com/read/47443.htm Jeremy Rottman wrote: I am still working with flex and my database structure. The question I have at hand is this. I have a coldfusion cfc that I have written, and would like to use it as my remote object. Right now I am still in the process of learning to bind the data from my cfc to my flex app. So here my my question. with the cfc I have pasted below. How would I bind the data from the called RO to form fields. So if I wanted fld_admin_log_new (from the cfc below) to be bound to the form field new adds. What would be the code to call the cfc and hte code to bind the cfc to that form field. mx:Form mx:FormItem label=New Additions mx:TextInput id=newAdds / /mx:FormItem /mx:Form -- 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] XML Load
Yeah it is scoping issue. I will suggest using HTTPService, if you are using MXML, HTTPService provides better mechanism to handle result and fault. Try use to use higher-level API instead of using low-level Flash Player APIs. Applications are more future compatible. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Tapper Sent: Friday, July 29, 2005 12:06 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] XML Load Sounds like a scoping issue, try this instead: public function loadPLMS():Void{ tacticsXML.load( URL ); tacticsXML.onLoad = mx.utils.Delegate.create(this,doLoad); } function doLoad( success ) { if(success){ Alert.show( tacticsXML.parentNode.toString() ); } } At 02:22 PM 7/28/2005, Mehdi, Agha wrote: Hi All, I am trying to load XML in a class's method, which is called by my Flex app after the app loads and have onLoad function to process the XML once it loads. Code: --- --- public function loadPLMS():Void{ tacticsXML.load( [URL] ); tacticsXML.onLoad = function( success ) { Alert.show( tacticsXML.parentNode.toString() ); } The Alert doesn't show me anything. If I try to dump success, it does show me true. Am I doing anything wrong here? 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.txthttp: //groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.ma il-archive.com/flexcoders%40yahoogroups.com -- YAHOO! GROUPS LINKS * Visit your group http://groups.yahoo.com/group/flexcodersflexcoders on the web. * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED]flexc [EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- 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] Overlay container on panels
"Should one treat the HBox as a row (i.e., tr), and a VBox as a cell (i.e., td)" No, do not take the HTML table example too far. Its really very simple. HBox will layout any number of components horizontally. Inversely, VBox lays out everything vertically. Regarding your question, if you want to put 2 panels side-by-side, you will just put those 2 panels in a HBox. mx:HBox width=100% height=100% mx:Panel width=50% height=100%/mx:Panel mx:Panel width=50% height=100%/mx:Panel /HBox The layout component that is very close to a "HTML table" is the mx:Grid. This container lets you arrange children as rows and columns. I suggest you read the Flex ActionScript and MXML API Reference Version 1.5 online at http://livedocs.macromedia.com/flex/15/asdocs_en/index.html and check out section on mx:containers. Invariably jump to http://livedocs.macromedia.com/flex/15/asdocs_en/mx/containers/index.html to get a good understanding of the containers. The best way to get up to speed on all Flex concepts is to thoroughly go through the Flex Samples that come with the installation. Regards Sree [EMAIL PROTECTED] wrote: Message Thanks, Sree. That helps enormously. I'm still a bit confused by the HBox and VBox components. Should one treat the HBox as a row (i.e., tr), and a VBox as a cell (i.e., td)? For instance, if I want two panels to be side by side, do I put them in one HBox with two nested VBox? What would be the syntax for that? I can't wait till I get I2 Flex book in the mail. I need to review some basics before I move forward. Darius -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Sreejith Unnikrishnan Sent: Wednesday, July 27, 2005 11:11 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Overlay container on panels Hi, I ran through your code. Looks like you have not quite understood the concept of using mx:Canvas. Also I found that your layout is in total disarray! Use these guidelines for basic layout. 1. You use mx:HBox to layout components horizontally. 2. Use mx:VBox to layout components vertically 3. Use mx:Canvas to layout components over each other or you have real reason to moce around components on the stage. 4. For your requirement, I assume an accordian would be the best. 5. Try and avoid statically positioning/sizing components. Use percentages as much as possible. (I myself have started seeing the beauty of flexi/scalable layouts! and I believe this is what Flex makes your layout a lot more attractive) If I understand your requirement correctly, you want to just show and hide the shopping cart on click of a button. So do the following. Put all your code, EXCEPT the shopping cart in a VBox/HBox. Lets call it ALLOTHERCODE. And the shopping cart - CART Then your code should look like this. mx:Application .. mx:Canvas ALLOTHERCODE CART /mx:Canvas /mx:Application Let us know if it helps ... I suggest you work with a skeleton structure in the begining with just containers. Once you are happy with the result, populate the PieCharts, Datagrids, etc (typically how you would approach HTML page design) Regards Sree [EMAIL PROTECTED] wrote: I thought this would do it but I'm still getting the same problem. I have one canvas tag that wraps all my other code. I'm scratching my head on this one... If you could take a second look, I've included the modified code below: Also, a general layout question. Is it good practice to have one canvas for your entire application that you then nest other containers and components in? Just wondering... Thanks, Darius ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*" initialize="doClick()" mx:Style source="DallyStyle.css" / mx:Script source="index4.as"/ mx:Effect mx:WipeDown name="showCart" show="false" duration="300"/ mx:WipeUp name="hideCart" show="false" duration="300"/ /mx:Effect mx:RemoteObject id="ro" endpoint="http://gx270dev.net/flashservices/gateway" source="Model.mUtilities.mUpdate.qry_UpdateAuthorization" fault="mx.controls.Alert.show(event.fault.faultstring)" showBusyCursor="true" mx:method name="GetUpdateAuthorization" result="doResult(event)"/ /mx:RemoteObject mx:Canvas width="1000" height="534" backgroundColor="#336699" mx:Image x="2" y="3" source="Images/logo.swf" / mx:PieChart id="Collections" x="108" y="1" dataProvider="{PaymentSources}" showDataTips="false" width="68" height="64" resizeEffect="Resize" mx:series mx:Array mx:PieSeries labelPosition="inside" field="Amount" labelFunction="display"/ /mx:Array /mx:series /mx:PieChart mx:Button x="7" y="40" width="50" label="Logout" / mx:Button x="60" y="40" label="{cart.visible?'Close':'Search'}" width="50" click="cart.visible=!cart.visible"/ mx:VBox id="cart"
RE: [flexcoders] Encode media files to FLV in real-time from a web page
I figured that I would bump this one more time for the night owls. Jeff Founder Flex Authority http://www.flexauthority.com We are actively seeking contributors for the site. Have a sample that you want to share with the world? Send it to us! From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeff Steiner Sent: Thursday, July 28, 2005 9:38 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Encode media files to FLV in real-time from a web page I just concluded writing an article for Flex Authority that shows off the power of On2s Flix Engine. This product takes an input file and outputs to SWF or FLV. This is truly a must read article for anyone interested in merging media with your current Flex application. http://www.flexauthority.com/articlesArchive/FlixEngine.cfm Let me know what you think. Jeff Founder Flex Authority http://www.flexauthority.com We are actively seeking contributors for the site. Have a sample that you want to share with the world? Send it to us! -- 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 Computer software testing Macromedia flex Development Software developer 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] Returning an object Array from .NET to Flex
no i m not using web services. I am just making a call to a .NET assembly.Clint Modien [EMAIL PROTECTED] wrote: Are you using webservices? On 7/28/05, priya_uvce [EMAIL PROTECTED] wrote: Hi all,I want to return an object array from .NET to Flex, and bind thedatagrid with the same.I have created an Array variable in ActionScript which will recieve theobject array from .NET.I bind this array variable to the DataGrid. The array I am returning is an array of objects of say an Employeeclass which I have created. This Employee class is Serializable.Am I missing out something?--Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ SPONSORED LINKS Computer software testing Macromedia flex Development Software developer Start your day with Yahoo! - make it your home page -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Returning an object Array from .NET to Flex
Priya, you should add as much details you can, preferably with pieces of code that you are willing to share (to help understand problem better) when you ask a question. Because the short answer to your question is NO. You are doing fine. That is indeed how you bind a result to a datagrid. A better answer would need better detailed question. Regards Sree priya s wrote: no i m not using web services. I am just making a call to a .NET assembly. */Clint Modien [EMAIL PROTECTED]/* wrote: Are you using webservices? On 7/28/05, *priya_uvce* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, I want to return an object array from .NET to Flex, and bind the datagrid with the same. I have created an Array variable in ActionScript which will recieve the object array from .NET. I bind this array variable to the DataGrid. The array I am returning is an array of objects of say an Employee class which I have created. This Employee class is Serializable. Am I missing out something? -- 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 http://groups.yahoo.com/group/flexcoders/ mailto:[EMAIL PROTECTED] SPONSORED LINKS Computer software testing http://groups.yahoo.com/gads?t=msk=Computer+software+testingw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=kh2CguJwmatU5oBXjFo9Rg Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=dAUcEV7do91-wrRtVS641g Development http://groups.yahoo.com/gads?t=msk=Developmentw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=AlxNUQBOI7Io7S7nhmxV0Q Software developer http://groups.yahoo.com/gads?t=msk=Software+developerw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=QWIit8JayomoIHLVkV3FDg Start your day with Yahoo! - make it your home page http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs -- 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 ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12hferuu0/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1122621988/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy/a./font ~- -- 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/