RE: [Flashcoders] AS3 - XML Filter by Date
Thank you, that helped a lot. For anyone else trying to filter by date, here's the line of code: var today:Date = new Date(); var showXML:XMLList = result_xml.item.(new Date(date.toString()) = today); Thanks, Doug Coning Senior Flash / ASP.Net Developer Webize Interactive Media 345 Massachusetts Avenue Indianapolis, Indiana dcon...@webize.com -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hershberger Sent: Monday, March 09, 2009 5:02 PM To: Flash Coders List Subject: Re: [Flashcoders] AS3 - XML Filter by Date You can filter XML with arbitrary boolean functions, so the answer is definitely yes. See http://livedocs.adobe.com/flex/3/html/13_Working_with_XML_08.html#131880 One of the examples there shows XML stored in var x with a list of employee id=23/ type elements, and you can use this syntax to get an XMLList of employees with id attributes over 300: x.employee.(@id 300) Similarly, if you had a birthdate field stored as milliseconds since 1970 you could filter on that like so: x.employee.(new Date(@birthdate).getFullYear() == 2000) to return a list of employees who were born in the year 2000. (Presumably a short list. :-) Dave On Mon, Mar 9, 2009 at 1:07 PM, Eric E. Dolecki edole...@gmail.com wrote: I suppose if the XML has that kind of data in it you could. On Mon, Mar 9, 2009 at 12:02 PM, Doug Coning dcon...@webize.com wrote: Greetings everyone, In AS3, can you filter xml by a date value or range? Thanks, Doug Coning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3 - XML Filter by Date
Greetings everyone, In AS3, can you filter xml by a date value or range? Thanks, Doug Coning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: Flex vs. Flash
How about Silverlight or AJAX, haven't heard any arguments for them ;-) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Increase Recursion Level?
Is there an actionscript command that can increase the recursion level within a flash movie? I have a legitimate method that calls itself and may exceed the 256 recursion limitiation. Or, is it just best not to use recursion in Flash? Thanks, Doug ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Increase Recursion Level?
Yeah, I found a parameter you could pass into the SWF file that would change the recursion level, but wanted to see if I could do it programmatically through AS. I was using recursion to load assets into a swf. I have an array of assets that needed to be loaded into a SWF file. I've set up a function that would pop an element off the load array and then load the asset. Upon completion of the load, it would call the function again if the load array's length 0. I will change my code to use an onEnterFrame event instead to invoke the calls one at a time... Thanks, Doug -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Wednesday, October 01, 2008 2:22 PM To: Flash Coders List Subject: RE: [Flashcoders] Increase Recursion Level? I think recursion limits are set at the Flash player level, but not at the published .swf level, so even if you could increase it (I don't think you can), the end user could not change it. I could be wrong. I don't know if it's necessarily a huge no-no, but I would say it would be recommended to avoid recursion as much as possible - puts a ton of strain on the processor and the player. What are you using recursion for? Jason Merrill Bank of America GCIB Staff Support LLD Instructional Technology Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog subscribe. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doug Coning Sent: Wednesday, October 01, 2008 1:59 PM To: Flash Coders List Subject: [Flashcoders] Increase Recursion Level? Is there an actionscript command that can increase the recursion level within a flash movie? I have a legitimate method that calls itself and may exceed the 256 recursion limitiation. Or, is it just best not to use recursion in Flash? Thanks, Doug ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Resizing Flash Windows with Loaded JPGs?
Greetings everyone, I have a Flash web site in which I need flash to resize depending on the user's browser window size. However, the flash file dynamically loads images and FLVs. Is there a simple way to have flash automatically take a 950 X 600 size file and reduce it to fit in a smaller browser window? Will the images and videos resize as well. Or do I need to accomplish this task dynamically in actionscript by getting the reduction percentage and applying to the size of my images? Thanks, Doug Conin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: Resizing Flash Windows with Loaded JPGs?
Nevermind. Figured out that I was using a class that was overriding the Stage.scaleMode and thus, the resize wouldn't work... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doug Coning Sent: Tuesday, September 16, 2008 1:35 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Resizing Flash Windows with Loaded JPGs? Greetings everyone, I have a Flash web site in which I need flash to resize depending on the user's browser window size. However, the flash file dynamically loads images and FLVs. Is there a simple way to have flash automatically take a 950 X 600 size file and reduce it to fit in a smaller browser window? Will the images and videos resize as well. Or do I need to accomplish this task dynamically in actionscript by getting the reduction percentage and applying to the size of my images? Thanks, Doug Conin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Video CuePoints
Greetings everyone, When adding CuePoints through ActionScript to a Video, do you have to use FLVPlayback component, or can CuePoints be added to a Video Symbol that you added to a stage? Thanks, Doug Coning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Prevent Enter Key Playback?
I have a flash swf that plays to a certain frame and then stops. Then with JavaScript, I have HTML tell the flash player to play a demo later on. However, if the swf file has the focus in the browser and the user presses enter, it begins to play. I've tried capturing the enter key unsuccessfully to prevent it from playing. Is there a way to prevent Enter Key from playing the movie when the swf has the focus? Thanks, Doug Coning Senior Web Development Programmer FORUM Solutions [EMAIL PROTECTED] This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Team Foundation Server
Thanks, I believe Dreamweaver is suppose to work with TFS through MSSCCI Provider interface, but I haven't discovered how to set it up... Doug Coning Senior Web Development Programmer FORUM Solutions [EMAIL PROTECTED] Adobe Flash Certified Expert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Wednesday, July 25, 2007 7:16 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Team Foundation Server AFAIK, Flash source control only works with VSS 6. regards, Muzak - Original Message - From: Doug Coning [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, July 25, 2007 4:12 PM Subject: [Flashcoders] Team Foundation Server Greetings All, Is anyone using Flash with Team Foundation Server for source control? If so, do you mind sharing the steps it took to setup the connection to TFS? Thanks, Doug Coning ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Team Foundation Server
Greetings All, Is anyone using Flash with Team Foundation Server for source control? If so, do you mind sharing the steps it took to setup the connection to TFS? Thanks, Doug Coning Senior Web Development Programmer FORUM Solutions [EMAIL PROTECTED] This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] FileReference: View Content?
Is there a way to access the content that is uploaded via FileReference without sending it to a server? I want to allow a user to upload an XML into a swf file. The upload command sends the data to a remote server, but the swf file is what needs the data. I have parsed through the results and can't see the data. Does anyone know of a way to perform FileReference.Browse and then view the text or xml in Flash without uploading it to the server first? Thanks, Doug Coning Senior Web Development Programmer FORUM Solutions [EMAIL PROTECTED] This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ [EMAIL PROTECTED] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash Player Communication Error?
Good Morning, I have a sample SWF file that I've been provided by a client that when opened, connects to a data source via XML Socket. I have created a similar SWF file that communicates with their data source via XML Socket, however when my SWF file is opened, it shows the Macromedia Flash Player has stopped a potentially unsafe operation error and requires that the file be set in the global settings as a trusted site. Their file does not trigger this error. I have looked at the original ActionScript code and can't see the difference. Could the error be triggered by the version that the swf is compiled at? Why would one swf file trigger the error and another not, even though they are calling the same data source and are in the same directory? Any feedback is much appreciated!!! Doug Coning Senior Web Development Programmer FORUM Solutions [EMAIL PROTECTED] This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ [EMAIL PROTECTED] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
FW: [Flashcoders] Flash 8 Certification Study Tips?
Thank you to everyone for their assistance in helping me pass the Flash 8 Certification. I found your suggestions very helpful! I spent a day and a half studying through both Flash 8 Bible and Flash 8 ActionScript Bible. As an application developer who spends 95% of my time working with Components, Web Services, XML and classes, I found the design, video and audio questions to be challenging. If you are in the same boat as I was as a coder, I'd recommend spending time looking at the video, audio and design features. One of the things that I thought was interesting is that the test is titled Macromedia Flash(r) Professional 8 Exam. However, the logo I was able to download upon passing the certification and registering states Flash 8 Designer. As a developer, I personally would prefer if it just stated Flash 8 Certified. Just my opinion... Thanks everyone for your help. Doug Coning Adobe Certified Flash Expert :) -Original Message- From: Doug Coning Sent: Wednesday, December 20, 2006 10:05 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Flash 8 Certification Study Tips? Excellent! Thank you for the link. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JOR Sent: Wednesday, December 20, 2006 9:23 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Flash 8 Certification Study Tips? Hey Doug, I wrote a little about my experience with the exam on my blog. http://www.jamesor.com/2006/10/04/aryadobecertifiedexpertspushme/ Good luck with your test! James James O'Reilly - Consultant Adobe Certified Flash Expert http://www.jamesor.com Design * Code * Train Doug Coning wrote: Greetings All, I'm preparing to take the Flash 8 Certification and was wondering if anyone who has already taken the test had any study tips on areas that you wished you may have been more prepared for? Thanks, Doug Coning Senior Web Development Programmer FORUM Solutions [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash 8 Certification Study Tips?
Greetings All, I'm preparing to take the Flash 8 Certification and was wondering if anyone who has already taken the test had any study tips on areas that you wished you may have been more prepared for? Thanks, Doug Coning Senior Web Development Programmer FORUM Solutions [EMAIL PROTECTED] This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Flash 8 Certification Study Tips?
Excellent! Thank you for the link. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JOR Sent: Wednesday, December 20, 2006 9:23 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Flash 8 Certification Study Tips? Hey Doug, I wrote a little about my experience with the exam on my blog. http://www.jamesor.com/2006/10/04/aryadobecertifiedexpertspushme/ Good luck with your test! James James O'Reilly - Consultant Adobe Certified Flash Expert http://www.jamesor.com Design * Code * Train Doug Coning wrote: Greetings All, I'm preparing to take the Flash 8 Certification and was wondering if anyone who has already taken the test had any study tips on areas that you wished you may have been more prepared for? Thanks, Doug Coning Senior Web Development Programmer FORUM Solutions [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] TEXT Fields Speed
Greetings Everyone, I have an application that relies heavily on Web Services to perform actions. In the application, I have a function that allows the user to view the XML, so that they can copy it out of the Text field and modify it in an XML editor and then import it back in. This works great for our implementation folks. However, on large XML (821K) results from the Web Service, it takes upwards of a couple of minutes to just set the text in the text field to the XML. I put a timer on each step of the function and I am receiving the XML back from the Web Service in a couple of seconds. However, when I perform the following code, it takes literally 2 minutes: export_txt.text = AppType_xml.toString(); Is there a way to speed this process up? I originally was using the TextArea component and then have recently switched to just Dynamic Text Fields. I use this XML for other things throughout the Application where I parse it and set lists and datagrid. But when I do this, again it only takes seconds, not minutes. Any suggestions as how to display this XML in a text field faster? Thanks, Doug Coning Senior Web Development Programmer FORUM Solutions [EMAIL PROTECTED] This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Compare Decimal Point Value?
I'm scratching my head over this. Not sure what I'm doing wrong? I need to compare a decimal value of a numeric field to see if it contains a specific value of 0.3. Here is some sample code: var num:Number = 2.3; var num2:Number = num - int(num); var num3:Number = 0.3; trace(num); // 2.3 trace(num2); // 0.3 trace(num3); // 0.3 trace(num2 == num3);// false trace(num2 num3);// false trace(num2 num3);// true Why doesn't 0.3 equal 0.3? I've replaced int with Math.floor(), and it still doesn't work. I need to get the value after the decimal point and see if it equals 0.3. Thanks for your help. Doug Coning Senior Web Development Programmer FORUM Solutions [EMAIL PROTECTED] This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Compare Decimal Point Value?
Is there a better way to get the decimal value if flash is returning .299? The decimal value will always be either .1, .2 or .3. It will not exceed that. I just need to test for a .3 value. Any ideas? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of T. Michael Keesey Sent: Wednesday, December 06, 2006 3:23 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Compare Decimal Point Value? In Flash 9, I get this for the traces: 2.3 0.2998 0.3 false false true Good old-fashioned floating point precision error. Instead of testing if they are equal, You could test if the difference between them is very small, e.g.: trace(Math.abs(num2 - num3) 0.1); // true On 12/6/06, Doug Coning [EMAIL PROTECTED] wrote: I'm scratching my head over this. Not sure what I'm doing wrong? I need to compare a decimal value of a numeric field to see if it contains a specific value of 0.3. Here is some sample code: var num:Number = 2.3; var num2:Number = num - int(num); var num3:Number = 0.3; trace(num); // 2.3 trace(num2); // 0.3 trace(num3); // 0.3 trace(num2 == num3);// false trace(num2 num3);// false trace(num2 num3);// true Why doesn't 0.3 equal 0.3? I've replaced int with Math.floor(), and it still doesn't work. I need to get the value after the decimal point and see if it equals 0.3. Thanks for your help. Doug Coning Senior Web Development Programmer FORUM Solutions [EMAIL PROTECTED] This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- T. Michael Keesey The Dinosauricon: http://dino.lm.com Parry Carney: http://parryandcarney.com ISPN Forum: http://www.phylonames.org/forum/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Compare Decimal Point Value?
Yeah, I tried Math.round, but the floating point issue remains. Math.round does remove the decimal values, but will round it. That's why I was using Math.floor. In other languages that I've worked with, abs or absolute actually returns the whole number and truncates the decimal value. I wished flash's Math.abs would remove a whole number... Thanks and good suggestion in casting as a string. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ Sent: Wednesday, December 06, 2006 3:39 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Compare Decimal Point Value? Math.round(myNum * 10); :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doug Coning Sent: Wednesday, December 06, 2006 12:32 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Compare Decimal Point Value? Is there a better way to get the decimal value if flash is returning .299? The decimal value will always be either .1, .2 or .3. It will not exceed that. I just need to test for a .3 value. Any ideas? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of T. Michael Keesey Sent: Wednesday, December 06, 2006 3:23 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Compare Decimal Point Value? In Flash 9, I get this for the traces: 2.3 0.2998 0.3 false false true Good old-fashioned floating point precision error. Instead of testing if they are equal, You could test if the difference between them is very small, e.g.: trace(Math.abs(num2 - num3) 0.1); // true On 12/6/06, Doug Coning [EMAIL PROTECTED] wrote: I'm scratching my head over this. Not sure what I'm doing wrong? I need to compare a decimal value of a numeric field to see if it contains a specific value of 0.3. Here is some sample code: var num:Number = 2.3; var num2:Number = num - int(num); var num3:Number = 0.3; trace(num); // 2.3 trace(num2); // 0.3 trace(num3); // 0.3 trace(num2 == num3);// false trace(num2 num3);// false trace(num2 num3);// true Why doesn't 0.3 equal 0.3? I've replaced int with Math.floor(), and it still doesn't work. I need to get the value after the decimal point and see if it equals 0.3. Thanks for your help. Doug Coning Senior Web Development Programmer FORUM Solutions [EMAIL PROTECTED] This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- T. Michael Keesey The Dinosauricon: http://dino.lm.com Parry Carney: http://parryandcarney.com ISPN Forum: http://www.phylonames.org/forum/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms
RE: [Flashcoders] Re: Flashcoders Digest, Vol 23, Issue 13
Excellent suggestion. Didn't think about splitting into an array. Good idea. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Olson Sent: Wednesday, December 06, 2006 3:48 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Re: Flashcoders Digest, Vol 23, Issue 13 Another way to tackle it as well is to split it and compare the 2nd element of the split array. var num:Number = 2.3; var split:Array = String(num).split(.); trace(3 == split[1]); On 12/6/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Message: 21 Date: Wed, 6 Dec 2006 12:22:43 -0800 From: T. Michael Keesey [EMAIL PROTECTED] Subject: Re: [Flashcoders] Compare Decimal Point Value? To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=UTF-8; format=flowed In Flash 9, I get this for the traces: 2.3 0.2998 0.3 false false true Good old-fashioned floating point precision error. Instead of testing if they are equal, You could test if the difference between them is very small, e.g.: trace(Math.abs(num2 - num3) 0.1); // true On 12/6/06, Doug Coning [EMAIL PROTECTED] wrote: I'm scratching my head over this. Not sure what I'm doing wrong? I need to compare a decimal value of a numeric field to see if it contains a specific value of 0.3. Here is some sample code: var num:Number = 2.3; var num2:Number = num - int(num); var num3:Number = 0.3; trace(num); // 2.3 trace(num2); // 0.3 trace(num3); // 0.3 trace(num2 == num3);// false trace(num2 num3);// false trace(num2 num3);// true Why doesn't 0.3 equal 0.3? I've replaced int with Math.floor(), and it still doesn't work. I need to get the value after the decimal point and see if it equals 0.3. Thanks for your help. Doug Coning Senior Web Development Programmer FORUM Solutions [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] find same label
I actually like using associative arrays to test for duplicate values. Something like this: var findItem_array:Array = new Array(); for (var i = 0; i my_cb.dataProvider.length; i++){ if(findItem_array[my_cb.dataProvider[i].label){ my_cb.removeItemAt(i); i--; } else { findItem_array[my_cb.dataProvider[i].label] = true; } } The above is pseudo code and but the theory should work. DC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Buff Sent: Monday, October 23, 2006 11:33 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] find same label Hi I'll do something like this. First create a empty array. Then loop into your ComboBox like I show you before. Each step of the loop, test if the value is allready in the array. There is no method of array class to do that, but you can cast the array as string and use the method indexOf of the string class, something like this: if (myArray.toString().indexOf(myValue)==-1) { ... -1 means that the value is not in the string, then it's the first occurence of this value. So push the value into the array for futur test and push also this value into your second ComboBox. If the value appears again, indexOf will return a positiv or 0 number, then it's not pushed into your second ComboBox. David Buff - Original Message - From: Laurent CUCHET [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, October 23, 2006 12:28 PM Subject: [Flashcoders] find same label Is there a way to find same la bel in a combobox and let only one same label ?? my_cb.addItem({data:1, label:One}); my_cb.addItem({data:2, label:Two}); my_cb.addItem({data:3, label:One}); my_cb.addItem({data:4, label:Two}); var cbListener:Object = new Object(); cbListener.change = function (evt_obj:Object) { trace(Currently selected item is: + evt_obj.target.selectedItem.label); } my_cb.addEventListener(change, cbListener); ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Moving to AS2, array always undefined
Stephen, is that A2 standard way for initializing an object or is that old A1 style? Thanks, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ Sent: Tuesday, October 10, 2006 2:24 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Moving to AS2, array always undefined I prefer myArray = []; and myObject = {}; But that's just me. :) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Direct ODBC connectivity?
Does anyone know of a flash component that allows direct connectivity between flash and an ODBC source? Is this an impossibility? I know that I could probably write a web service to pull the data, but wanted to see if there was a component that allows me to point to any odbc data source and then pass in the sql query? I imagine this is not possible, but thought I'd ask before ruling it out. Thanks, Doug Coning Senior Web Development Programmer FORUM Solutions [EMAIL PROTECTED] This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Q:Change publish path dynamically
I use a config.xml file to store URLs in so that I can change them on the fly. Just load the config file first. Doug Coning -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, September 25, 2006 4:29 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Q:Change publish path dynamically Hi Does anyone know if there is a way to change the publish path dynamically? This would be really useful if working with the same FLA in different test environments instead of manually having to change the publish settings...time consuming with projects involving lots of fla's. Thanks Jim Bachalo [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca ...all improvisation is life in search of a style. - Bruce Mau,'LifeStyle' ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] DECODE XML Encoded Characters?
Alright, what am I doing wrong? I have tried over and over to decode an XML string, but Flash won't decode it. The XML is returning special Characters (') encoded. I have tried to use escape, unescape, encode, decode and I can't get anything to convert the encoded text to its character representation. Here is the node: ConfigParamValueSpecial Characters - amp; quot; apos; lt; gt; /ConfigParamValue var str:String = String(XPath.selectNodes(MyXML_cs.getResults(), //ConfigParamValue/text())[0]); I've tried: trace(A: + escape(str));// Special Character - amp; quot; apos; lt; gt; trace(B: + unescape(str)); // Special Character - amp; quot; apos; lt; gt; trace(C: + decode(str));// Special%20Character%20%2D%20%26amp%3B%20%20%26quot%3B%20%20%26apos%3B%20 %20%26lt%3B%20%20%26gt%3B%20%20 trace(D: + encode(str));// Special Character - amp; quot; apos; lt; gt; I'd greatly appreciate if someone could let me know how to decode this text! Thank you! Doug Coning Senior Web Development Programmer FORUM Solutions [EMAIL PROTECTED] This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] DECODE XML Encoded Characters?
Thanks Jason, Yes, this does parse it correctly not so much because of the parseXML step, but because of the nodeValue. I've been using the XPath class to return my XML by using the selectNodes method. Apparently, this doesn't parse the xml in the same manner as the nodeValue function does. I wonder if there is a way to get the XPath class to return the XML in the decoded manner like the nodeValue method does? Thanks again! Doug Coning -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Monday, September 25, 2006 11:23 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] DECODE XML Encoded Characters? If this is related at all, or helps any, this is what I use to decode entities from an XML string - someone on this list suggested using XML.parseXML() private function decodeEntities(entityString:String):String { var x:XML = new XML(n+entityString+/n); x.parseXML(); return x.firstChild.firstChild.nodeValue; }; Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Doug Coning Sent: Monday, September 25, 2006 11:16 AM To: Flashcoders mailing list Subject: [Flashcoders] DECODE XML Encoded Characters? Alright, what am I doing wrong? I have tried over and over to decode an XML string, but Flash won't decode it. The XML is returning special Characters (') encoded. I have tried to use escape, unescape, encode, decode and I can't get anything to convert the encoded text to its character representation. Here is the node: ConfigParamValueSpecial Characters - amp; quot; apos; lt; gt; /ConfigParamValue var str:String = String(XPath.selectNodes(MyXML_cs.getResults(), //ConfigParamValue/text())[0]); I've tried: trace(A: + escape(str));// Special Character - amp; quot; apos; lt; gt; trace(B: + unescape(str)); // Special Character - amp; quot; apos; lt; gt; trace(C: + decode(str));// Special%20Character%20%2D%20%26amp%3B%20%20%26quot%3B%20%20%26apos%3B %20 %20%26lt%3B%20%20%26gt%3B%20%20 trace(D: + encode(str));// Special Character - amp; quot; apos; lt; gt; I'd greatly appreciate if someone could let me know how to decode this text! Thank you! Doug Coning Senior Web Development Programmer FORUM Solutions [EMAIL PROTECTED] This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] DECODE XML Encoded Characters?
Yes please. I use extensive use of the XPath class and would appreciate it. Thanks, Doug Coning -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Monday, September 25, 2006 12:20 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] DECODE XML Encoded Characters? That decodeEntities function is actually taken from a class I wrote to overcome some annoyances with xfactorstudios Xpath implementation. So in part of the class I just use that private function as needed in a getString function I wrote which returns a string (also works with CDATA): public function getString(path:String, CDATA:Boolean):String{ var returnValue:String; if(CDATA){ returnValue = XMLNode(XPath.selectNodes(this.XMLObj, path+/text())[0]).nodeValue; }else{ returnValue = String(XPath.selectNodes(this.XMLObj, path)[0]); } return decodeEntities(returnValue); }; I can send you the class offlist if you like. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Doug Coning Sent: Monday, September 25, 2006 12:12 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] DECODE XML Encoded Characters? Thanks Jason, Yes, this does parse it correctly not so much because of the parseXML step, but because of the nodeValue. I've been using the XPath class to return my XML by using the selectNodes method. Apparently, this doesn't parse the xml in the same manner as the nodeValue function does. I wonder if there is a way to get the XPath class to return the XML in the decoded manner like the nodeValue method does? Thanks again! Doug Coning -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Monday, September 25, 2006 11:23 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] DECODE XML Encoded Characters? If this is related at all, or helps any, this is what I use to decode entities from an XML string - someone on this list suggested using XML.parseXML() private function decodeEntities(entityString:String):String { var x:XML = new XML(n+entityString+/n); x.parseXML(); return x.firstChild.firstChild.nodeValue; }; Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Doug Coning Sent: Monday, September 25, 2006 11:16 AM To: Flashcoders mailing list Subject: [Flashcoders] DECODE XML Encoded Characters? Alright, what am I doing wrong? I have tried over and over to decode an XML string, but Flash won't decode it. The XML is returning special Characters (') encoded. I have tried to use escape, unescape, encode, decode and I can't get anything to convert the encoded text to its character representation. Here is the node: ConfigParamValueSpecial Characters - amp; quot; apos; lt; gt; /ConfigParamValue var str:String = String(XPath.selectNodes(MyXML_cs.getResults(), //ConfigParamValue/text())[0]); I've tried: trace(A: + escape(str));// Special Character - amp; quot; apos; lt; gt; trace(B: + unescape(str)); // Special Character - amp; quot; apos; lt; gt; trace(C: + decode(str));// Special%20Character%20%2D%20%26amp%3B%20%20%26quot%3B%20%20%26apos% 3B %20 %20%26lt%3B%20%20%26gt%3B%20%20 trace(D: + encode(str));// Special Character - amp; quot; apos; lt; gt; I'd greatly appreciate if someone could let me know how to decode this text! Thank you! Doug Coning Senior Web Development Programmer FORUM Solutions [EMAIL PROTECTED] This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply
[Flashcoders] Flash Player 9 Issues?
Greetings all, We have been noticing that with several of our clients' products that we delivered their swf files for Flash Player 7, are now causing problems with Flash Player 9. In Internet Explorer, when they are performing various functions that call web services, IE will stop and Popup an error window that states: The following add-on was running when this problem occurred: File Flash9.ocx.The swf files or content have NOT changed on our end. So, we rolled their flash players back to Flash Player 8 r24 and the same processes that crash consistently with 9, work fine with 8. Has anyone else had any problems with Flash Player 9? Any suggestions? Thanks, Doug Coning Senior Web Development Programmer FORUM Solutions [EMAIL PROTECTED] This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Flash Player 9 Issues?
I had the user check their IE, and they are still on IE 6. We are having this problem with several different users at different companies. The problem only occurs with Flash Player 9. When we uninstall the player and reinstall 8, we have no problems. Thanks, Doug Coning -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Dowdell Sent: Friday, September 15, 2006 2:25 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Flash Player 9 Issues? Thanks for including the error text. When I did a web search on phrase The following add-on was running when this problem occurred, I pulled up a Microsoft technote which referred to IE7 beta: http://support.microsoft.com/kb/920082/en-us But I see in the search results that lots of people have similar error reports, for lots of different modules, including various versions of Flash Player. If memory serves, that term add-on is only used for Microsoft Internet Explorer 7 betas... is the person with this problem running a beta browser, and if so, is it Microsoft's current version? jd ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] ListBox component, get Data (2nd Value)?!
Try this: lista.addItem ({label:categorias[n + 1], data:categorias[n + 0], otherData:categorias[n + 3]}); Lista.selectedItem.otherData; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of MJorge Sent: Friday, September 01, 2006 10:47 AM To: Flashcoders mailing list Subject: [Flashcoders] ListBox component, get Data (2nd Value)?! Need a tiny help here folks, I have a listBox which i am inserting items with one label and two values of data in it. Like this: lista.addItem (categorias[n + 1], categorias[n + 0], categorias[n + 3]); Now, how can i get the value of my data (2nd one) ?! At first i haded only one value in the data and was doing this: foto = _root.categoria1.lista.getItemAt (z).data; (which was (is) working, but now i need to had another value, how can i get the second one?) Thanks, -- Mário Jorge Icq: 164987050 Msn: [EMAIL PROTECTED] Blog: http://www.beedigital.net/blog ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] ListBox component, get Data (2nd Value)?!
Sorry, try this: trace(Lista.selectedItem.data); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doug Coning Sent: Friday, September 01, 2006 11:11 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] ListBox component, get Data (2nd Value)?! Try this: lista.addItem ({label:categorias[n + 1], data:categorias[n + 0], otherData:categorias[n + 3]}); Lista.selectedItem.otherData; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of MJorge Sent: Friday, September 01, 2006 10:47 AM To: Flashcoders mailing list Subject: [Flashcoders] ListBox component, get Data (2nd Value)?! Need a tiny help here folks, I have a listBox which i am inserting items with one label and two values of data in it. Like this: lista.addItem (categorias[n + 1], categorias[n + 0], categorias[n + 3]); Now, how can i get the value of my data (2nd one) ?! At first i haded only one value in the data and was doing this: foto = _root.categoria1.lista.getItemAt (z).data; (which was (is) working, but now i need to had another value, how can i get the second one?) Thanks, -- Mário Jorge Icq: 164987050 Msn: [EMAIL PROTECTED] Blog: http://www.beedigital.net/blog ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Speed up Datagrids
I've created an RIA application that depends heavily upon the Enhanced Datagrid. I like the datagrid quite a bit, however, each time a window opens, it can take upwards of 10 seconds for the datagrid to instantiate, and this is testing with small bits of data (Nothing more than 40 records). I load the data by using the .dataProvider method which comes back from the server very quickly. Most of my datagrids only have 1 to 4 columns, so the column sizes are not the problem. Yes, a lot of them have cell renderers which I'm putting in a checkbox, button or image. Once the datagrid loads, it runs very well. I just don't think the user is going to like waiting 10 to 15 seconds everytime they open a window in flash that has a datagrid. Does anyone have any successful strategies for speeding up the datagrid component? Does anyone know if the List component is faster than the datagrid component for showing simple data? Thanks, Doug Coning FORUM Solutions Senior Web Software Developer This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] trying to call a function passed as an argument
This is how I do it: var functA:Function = function(){ trace(A); } var functB:Function = function(){ trace(B); } function performFunctions(funct:Function){ funct(); } performFunctions(functA); performFunctions(functB); Doug Coning Senior Web Development Programmer FORUM Solutions, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Elie Zananiri Sent: Thursday, June 29, 2006 3:22 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] trying to call a function passed as an argument Hi all, I have this method where I need to call a function passed as an argument (kind of like in setInterval()) and I don't understand the documentation and can't get it to work. First of all, I don't understand how to pass the function as a parameter. Am I passing a String or an actual Function object? Can I pass a Function with parameters? Do I have to write the parentheses in the parameter? Next, how do I call this function? The Function.call() function requires a parameter but I don't get what it does... Thanks for the help! -Elie Here is the structure I have: class Bar { public Bar() { } public function doLast(bString:String) { trace(the second string is +bString); } } class Foo { var bar:Bar; public Foo() { bar = new Bar(); doFirst(hello, world, bar.doLast); } public function doFirst(aString:String, bString:String, aFunction:Function) { trace(the first string is +aString); // call the second function here ??? aFunction.call(??); } } ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Object Listener?
Greetings, Is there an object listener that will trigger if ANY item within the object is modified? I know watch will trigger if a specific attribute is modified, however, I want to trigger an event if any of the attributes within an object is modified. My Object is a complex object. I contains arrays that contain more objects, that contain more arrays. I don't want to have to add event listeners for each array and item within my object. Does a single object listener exist that will recognize any change within an object, no matter how deep it is? Thank you very much! Doug Coning Senior Web Development Programmer FORUM Solutions, LLC This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Object Listener?
Good thought, if only I set up my object to be part of a class. Bummer... So, does anyone know if there is an event listener that can be triggered if an object is modified? Thanks, Doug Coning Senior Web Development Programmer FORUM Solutions, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of jcanistrum Sent: Monday, June 12, 2006 10:09 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Object Listener? wouldn´t be possible to dispacth some proprietary Event of your class after some attribute changing ? mainly if the attributes only could be changed through the Class setters ??? just a guess 2006/6/12, janosch [EMAIL PROTECTED]: No, such thing does not exist. Perhaps you can use __resolve or getters and setters to hook in the getting of properties, and invalidate then your object. But with this, you will lose type-safety. Greetings, Janosch Doug Coning schrieb: Greetings, Is there an object listener that will trigger if ANY item within the object is modified? I know watch will trigger if a specific attribute is modified, however, I want to trigger an event if any of the attributes within an object is modified. My Object is a complex object. I contains arrays that contain more objects, that contain more arrays. I don't want to have to add event listeners for each array and item within my object. Does a single object listener exist that will recognize any change within an object, no matter how deep it is? Thank you very much! Doug Coning Senior Web Development Programmer FORUM Solutions, LLC This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- João Carlos ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Validating Zip Code for Tax Purposes
Never done it before, but have you considered finding a Web Service provider that does it for you and all you have to do is pass it the variables? Here's one I found quickly doing a google search: http://www.strikeiron.com/ProductDetail.aspx?p=105 By using a web service provider to manage this for you, then you don't have to worry about tax codes and law changes. No liability! Doug Coning Senior Web Development Programmer FORUM Solutions, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Digital Rust Sent: Friday, June 09, 2006 11:42 AM To: Flashcoders mailing list Subject: [Flashcoders] Validating Zip Code for Tax Purposes Hi, everyone I'm building an ecommerce site and need to calculate state tax for California based upon user input in a zip code field. Has anyone done this before? Would you possibly have some example code or point me in the right direction? Thanks, Dave ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Flash SWF Loading fine, but Remoting hangs...
Jim, Curious, did the individual that had the problem have the same version of Flash Player? I'm sure you checked that out, but that is a curious problem... Doug Coning Senior Web Development Programmer FORUM Solutions, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Jim Robson Sent: Friday, June 09, 2006 12:44 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Flash SWF Loading fine, but Remoting hangs... I don't know whether this applies to your situation but... We had a similar issue that was caused by anomalies in the data (believe it or not). It was a billing system built in Flash with a ColdFusion middle tier and a SQL Server backend. When one particular user pulled up certain accounts, the Flash UI would freeze on her. I know this doesn't make sense, but we solved it by analyzing the data in the accounts in question and looking for anomalies. We removed these anomalies, and sure enough the user's problem disappeared. We never figured out why these anomalies affected the Flash player, nor did we figure out why they *didn't* affect anyone else's player except for that one user. But the same issue arose with several different client accounts and that same user. -Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Anderson Sent: Friday, June 09, 2006 12:23 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Flash SWF Loading fine, but Remoting hangs... Yes, it's the SAME 5% of the users - So there must be something in common with all these people. Please keep those comments coming :) I need all the help I can get right now! Many thanks! Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Friday, June 09, 2006 11:22 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] Flash SWF Loading fine, but Remoting hangs... Do the 5% have the same http: browsing capabilities as the 95%? I had a similar issue and found out because I was new here, and even though I could browse to most web sites, unknown to me my http access was somewhat restricted until I was granted full, regular access. Are there any possible http access restrictions on these users for some reason? JavaScript document.write method to write out the Flash Object tags - That shouldn't have anything to do with it since you said the application starts - so they are past the Javascript at that point. It sounds like the Remoting call is failing for those users for some reason. And is it always the same 5% or is it 5% of random users? If it's random, I have also had problems with network blips because someone else was working on an application at the time or whatever. If it's always the same 5% then it seems to be due to something specific to their configuration and not a network blip. Anyway, things to think about. Jason Merrill Bank of America Learning Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Mike Anderson Sent: Friday, June 09, 2006 11:57 AM To: Flashcoders mailing list Subject: [Flashcoders] Flash SWF Loading fine, but Remoting hangs... Hello All, I have a very intense problem, that must be addressed ASAP - our users are getting really angry :( We have a typical AS 2.0 Flash Application to view maps - and we are using Remoting w/ColdFusion in order to send our data back and forth. For only like 5% of the users, the application starts and loads completely with all it's related controls. BUT when the time comes for the initial Remoting call to the server (which populates all the dropdowns, etc.) it just hangs indefinitely - and we just can't figure out what is going on. The other 95% of the user base is working perfect! We have had comments regarding security settings, etc. so I know some users may have problems there, and some have Corporate Firewall problems - but that type of issue has to be addressed with the Admin person. We are using the JavaScript document.write method to write out the Flash Object tags - in order to circumvent the Click to Activate this control problem. What issues are we not seeing, or taking into consideration, which would affect this 5% of the user base? Also, a quick note, we are running ColdFusion on Port 80 - so there are no other port issues that I am aware of (in case some users were blocking port 8500). I was confident that if we ran everything on Port 80, that this app would be friendly to all Firewalls. Thanks in advance, for any advice you can throw my way. Mike ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Alert Component Cutting off Text
Greetings! Has anyone discovered a workaround on the Alert Component cutting off long text? I use the Alert Component to show database and web service errors returned to the user, so I can't necessarily control the size of the response. The Alert Component will cut off long text (less than 200 characters...) and doesn't wrap the text around. I've added \n\n... to the end of my string and can see it in the alert, it just cuts off the string passed in and doesn't wrap text. I'm creating the Alert call from within another class. The alert shows, it just cuts off text... Any suggestion? Thanks, Doug Coning Senior Web Development Programmer FORUM Solutions, LLC This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] XML Parsing
Isn't attributes quicker because flash has to create an object for each node in the XML? On my projects, attributes are much, much faster to parse large file sizes with. Also, XPATH works faster on attributes(IMO)! Also, another tip that you may have already figured out, if you can control the names of the attributes, then have Flash just loop through the attributes like the code below to parse out all the values. This is very fast to code and to parse, but another benefit is if you add additional attributes, you don't have to remap those. They will be brought in automatically! var parsedData:Array = new Array(); for(i = 0; i myXML_array.length; i++){ var newObj:Object = new Object(); for (var attr in myXML_array[i].attributes){ newObj[attr] = myXML_array[i].attributes; } parsedData.push(newObj); } Doug Coning Senior Web Development Programmer FORUM Solutions, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Robert Chyko Sent: Monday, June 05, 2006 10:57 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] XML Parsing I believe it used to be, but anymore the difference is negligible. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ash Warren Sent: Monday, June 05, 2006 10:56 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] XML Parsing I have heard also (have not tested myself) that parsing attributes is much quicker as well. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ron Wheeler Sent: Monday, June 05, 2006 9:07 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] XML Parsing If it was up to me, I would redo the XML to be a bit more concise and more standard. layers layer name=LayerOne assets asset width=20 height=10 xPos=50 yPos=30 name=somename0.bmp / asset width=20 height=10 xPos=50 yPos=30 name=somename1.bmp/ /assets /layer layer name=LayerTwo assets asset width=20 height=10 xPos=50 yPos=30 name=somename2.bmp / /assets /layer /layers This will parse better. It is probably easier to create. You can parse this into a Layers Object which is a collection (array) of Layer objects. The Layer Object has a name (LayerOne) and a list of Asset Objects as propertie.s The Asset Object has properties which correspond to the XML attributes(width, height, etc.). The total layers is redundant since it is only the length of the Layers Object array of Layers. function getLayerCount(){return layersList.length;} If you are stuck with your existing XMl, you can still use the same object structure once you have parsed it but will have a more complicated parse since you have these LayerOne, LayerTwo trees which will have to be recognized in your parse. With XPath, this will be a PITA. If you write your own parse, you can probably make some assumptions about the tree structure which will avoid having to write a lot of code to deal with LayerOne, etc. By dynamic, we mean that you just store the whole XML string and parse it each time you want some information. If you can not fix your XML structure, dynamic parsing will likely be too expensive and you should parse the XML once into an object hierarchy and work with the objects. Ron Sajid Saiyed wrote: Hi, I have an XML like this: root totalLayers number5/number /totalLayers LayerOne asset namesomename0.bmp/name width20/width height10/height xPos50/xPos yPos30/yPos /asset asset namesomename1.bmp/name width20/width height10/height xPos50/xPos yPos30/yPos /asset /LayerOne Layertwo asset namesomename2.bmp/name width20/width height10/height xPos50/xPos yPos30/yPos /asset /LayerTwo /root I want to use XPATH or something similar to create dynamic arrays/string and store values respectivele like this: String: totalLayers = 5; LayerOne and LayerTwo will be a multidimentional array LayerOne[[asset[name,width,height,xpos,ypos]][asset[name,width,height,xp os,y pos]]...] LayerTwo[[asset[name,width,height,xpos,ypos]][asset[name,width,height,xp os,y pos]]...] etc... Any hint or suggestion...? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders
[Flashcoders] Get Original Variable's Name in Function?
Greetings all, Is it possible to retrieve the name of the variable passed into a function? For instance: function myFunct(str:String){ // GET ORIGINAL NAME of str? } var foo:String = ABC; var moo:String = DEF; myFunct(foo); myFunct(moo); In the above, how can myFunct know that the first call was sent 'foo' and the second call was sent 'moo'? Thanks, Doug Coning Senior Web Development Programmer FORUM Solutions, LLC This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Get Original Variable's Name in Function?
I'm trying to create a _root level trace function where I can simply pass a variable to a protoype function and it prints out the variable name and value. Here is the pseudocode for what I want to do: MovieClip.prototype.TraceThis = function(str){ Trace(str.Name + : + str.Value); } var myVar:String = This is my value; TraceThis(myVar); Simple function that would save time when developing by allowing me to just pass a variable and it would spit out both the name and value without me always typing it out (trace(myVar = + myVar). I guess I'm lazy... Doug Coning Senior Web Development Programmer FORUM Solutions, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Tim Stickland Sent: Tuesday, May 30, 2006 8:57 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Get Original Variable's Name in Function? On 5/30/06, Doug Coning [EMAIL PROTECTED] wrote: function myFunct(str:String){ // GET ORIGINAL NAME of str? } var foo:String = ABC; var moo:String = DEF; myFunct(foo); myFunct(moo); In the above, how can myFunct know that the first call was sent 'foo' and the second call was sent 'moo'? I guess the easiest way is to pass a string reference: function myFunct(str:String, varName:String){ trace(varName+ has value of +str); } var foo:String = ABC; var moo:String = DEF; myFunct(foo, foo); myFunct(moo, moo); That probably isn't what you're trying to achieve though. What exactly are you trying to do? Tim ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Get Original Variable's Name in Function?
Nothing heinously wrong. See other post for how I'd like to be able to trace the original name of the variable for tracking purposes... Thanks, Doug Coning Senior Web Development Programmer FORUM Solutions, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of John Mark Hawley Sent: Tuesday, May 30, 2006 9:10 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Get Original Variable's Name in Function? Why would you need to know the variable name? It sounds like something has gone heinously wrong with your code if this need is popping up. Doug Coning wrote: Greetings all, Is it possible to retrieve the name of the variable passed into a function? For instance: function myFunct(str:String){ // GET ORIGINAL NAME of str? } var foo:String = ABC; var moo:String = DEF; myFunct(foo); myFunct(moo); In the above, how can myFunct know that the first call was sent 'foo' and the second call was sent 'moo'? Thanks, Doug Coning Senior Web Development Programmer FORUM Solutions, LLC This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Get Original Variable's Name in Function?
I thought I couldn't do it, but wanted to ask before ruling it out... Thanks! Doug Coning Senior Web Development Programmer FORUM Solutions, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Lee McColl-Sylvester Sent: Tuesday, May 30, 2006 9:32 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] Get Original Variable's Name in Function? The problem here is, if the variable is not constructed as the property of an object, then the name is not kept. For example: class MyClass { public var pvar:String = fine; public function MyClass() { var lvar:String = not fine; tracethis(lvar); tracethis(pvar); } } While pvar will have its name somewhere in the instanced objects, the lvar will not. This is because flash will drop the naming as its scope is at the function level and so is not important. Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doug Coning Sent: 30 May 2006 14:15 To: Flashcoders mailing list Subject: RE: [Flashcoders] Get Original Variable's Name in Function? Nothing heinously wrong. See other post for how I'd like to be able to trace the original name of the variable for tracking purposes... Thanks, Doug Coning Senior Web Development Programmer FORUM Solutions, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of John Mark Hawley Sent: Tuesday, May 30, 2006 9:10 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Get Original Variable's Name in Function? Why would you need to know the variable name? It sounds like something has gone heinously wrong with your code if this need is popping up. Doug Coning wrote: Greetings all, Is it possible to retrieve the name of the variable passed into a function? For instance: function myFunct(str:String){ // GET ORIGINAL NAME of str? } var foo:String = ABC; var moo:String = DEF; myFunct(foo); myFunct(moo); In the above, how can myFunct know that the first call was sent 'foo' and the second call was sent 'moo'? Thanks, Doug Coning Senior Web Development Programmer FORUM Solutions, LLC This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http
RE: [Flashcoders] Flex vs. Flash IDE
Diddo! I'd love to hear some discussion on this... Doug Coning Senior Web Development Programmer FORUM Solutions, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Kevin Newman Sent: Tuesday, May 23, 2006 11:10 AM To: Flashcoders mailing list Subject: [Flashcoders] Flex vs. Flash IDE Hello all, So what are the opinions regarding Flex vs. Flash IDE? Which do you guys prefer, and why? I've been looking into Flex 2.0, and so far I like what I'm seeing. But I'd love to hear some opinions from this list. :-) Thanks, Kevin N. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Flex vs. Flash IDE
I was looking at the components that make up the Flex environment and noticed that Charting is now a separate component. The promo mentions that charting will work seamlessly with Flex Data Services. Does this mean that it won't work with Web Services? Do you have to use the Data Services to use charts? Doug Coning Senior Web Development Programmer FORUM Solutions, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Muzak Sent: Tuesday, May 23, 2006 1:10 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Flex vs. Flash IDE Personally I think a far more important question is how (well) Flex and Flash will work together, because now we'll have 2 IDE's to work with. For a long time there have been 2 (or more) type of Flash users: developers and designers. And with each new (Flash) version the gap between the 2 became bigger. Now with the release of Flex2 both type of users will be able to focus better on what they're good at, working with an IDE they feel comfortable with. Maybe one downside for certain developers will be that we'll have to own/use both. I'm thinking of freelancers like myself. regards, Muzak - Original Message - From: Kevin Newman [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, May 23, 2006 5:09 PM Subject: [Flashcoders] Flex vs. Flash IDE Hello all, So what are the opinions regarding Flex vs. Flash IDE? Which do you guys prefer, and why? I've been looking into Flex 2.0, and so far I like what I'm seeing. But I'd love to hear some opinions from this list. :-) Thanks, Kevin N. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Flex vs. Flash IDE
This may be a dumb question, but has anyone ever developed a project in Flex and towards the end decided that Flash would have been a better tool for the project? Or vice-a-versa? If so, why? I'm trying to determine if there are any pitfalls of deciding to use Flex over Flash for larger projects. Hope that makes sense... Doug Coning Senior Web Development Programmer FORUM Solutions, LLC This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Listener: 'Best Practice'
Greetings Experts, I'm writing to ask a 'best practice' question for how I should add a Stage Listener to trigger a function that resizes components nested throughout my project to fit inside the resized window. Which of these is considered 'best practice'? 1) Attach a single Stage Listener to the _root level that triggers a single function, which in turns, calls a resize function in every MovieClip that I need to resize an object? OR 2) Place a Stage listener in each and every Movie Clip that contains an object that will need to be resized so that it is triggered in the movie clip? OR 3) Does it not matter? Thank you, thank you, thank you... Doug Coning Senior Web Development Programmer FORUM Solutions, LLC This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Business Plan?
Business Plan Pro is a great tool to help you think through each of the components involved in creating an accurate business plan and forecast: http://www.paloalto.com/ Doug Coning Senior Web Development Programmer FORUM Solutions, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Loren R. Elks Sent: Wednesday, May 10, 2006 8:07 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Business Plan? Hi: I have a member of my user group that is interested in starting his web design business. He asked me if I knew of anyone who had a business plan he could model after. I don't have one. Anyone have a business plan he could use and resources (links, etc.) for building this type of business plan? Sincerely, Loren ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Class Dropdowns in Flash
I believe I read somewhere, but can't locate it, where you can add a feature that allows the properties of custom created classes to show in Flash when you are developing. I'd like to add some frequently used classes so that when I type the class out: myClass.myMethod, that the methods for the class show. Is this possible? How would I do this? Thanks, Doug Coning Senior Web Development Programmer FORUM Solutions, LLC This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Out of curiosity, XPath and String Datatype Oddity
Yes, I have come across this as well and always use: String(XPath.selectNodes(temp_xml,myPath/text())[0]) Doug Coning Software Developer FORUM Solutions, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Mike Boutin Sent: Tuesday, December 20, 2005 1:43 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Out of curiosity, XPath and String Datatype Oddity Maybe something like this may help? myText=XMLNode((XPath.selectNodes(myxml,myNodePath/mynode())[0])).node Va lue; Mike Boutin Merrill, Jason wrote: AFAIK, XPath.selectNodes() returns an Array. How do you use Xpath to return node values then? Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Johan Lopes Sent: Tuesday, December 20, 2005 1:07 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Out of curiosity, XPath and String Datatype Oddity Hi Jason, AFAIK, XPath.selectNodes() returns an Array. snippet from the docs /** 10 *selectNodes 11 * 12 *returns an array of nodes that match the given XPath 13 *expression using the the XMLNode (context) as the 14 *starting context for the expression. 15 * 16 *This is the description 17 *@param (XMLNode)context 18 *@param (String)XPath expression 19 *@return (Array) matching nodes 20 */ 21 static function selectNodes(context,path:String):Array{ 22 return XPathParser.parseQuery(context,path) 23 } 24 /snippet from the docs HTH, /Johan On 12/20/05, Merrill, Jason [EMAIL PROTECTED] wrote: I'm asking this more out of curiosity than necessity, but the responses to this thread may help be avoid some headaches in the future. Been using xfactorstudio's Xpath classes with great success. However, I have found an odd thing - sometimes I have to cast what I thought was already string, to a String in order for a V2 component to accept the value. For example, **This does not work: var thisVideo:String = XPath.selectNodes(content_xml, thecontentpath/@videoUrl); video_mc.mediaPlayer.setMedia(thisVideo);//does not work Even though no compiler errors and a trace on the var thisVideo traces the proper string (media/video/Welcome.flv) - or what I thought was a string, the video in the MediaPlayback component does not play.--- **So instead, when casting to String first, this works: var thisVideo:String = String(XPath.selectNodes(content_xml, thecontentpath/@videoUrl)); video_mc.mediaPlayer.setMedia(thisVideo);.//works Why? What type of object was the Xpath value before I cast it to a string? This makes sense for numbers in an XML file, but for Strings??? The kicker is I can send other XPath values I don't cast to strings first to text fields, textAreas, and they show up fine. So is it something quirky with V2 components as well? Thanks. Jason Merrill | E-Learning Solutions | icfconsulting.com NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Integrating Flash with ASP.Net
Greetings All, I was wondering if someone could point me in the right direction for having Flash integrate with an ASP.Net environment. Specifically, I want my Flash swf file to be able to access field values in an ASP.Net Form that the swf file will reside in? Furthermore, is it possible to access C# functions within the page? If someone could point me in the right direction I'd greatly appreciate the headstart... Thanks, Doug Coning Software Developer FORUM Solutions, LLC This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] WebService Class Help
Greetings! I'm trying to setup a WebService class to handle multiple operations. Some operations will have many parameters, while others may have none. However, I'm having problems figuring out how to pass either an array or an object to the WebService class. Below is an example that sends 2 strings. How could I change the code below to pass an array containing the two country strings and then pass that into the callback object? import mx.services.WebService; // VARIABLES var country1:String = USA; var country2:String = Canada; // WEB SERVICE function WebCall(str1:String, str2:String){ var WSDL_URL:String = http://www.xmethods.net/sd/2001/CurrencyExchangeService.wsdl;; var wsExRate:WebService = new WebService(WSDL_URL); var oCallback:Object = wsExRate.getRate(country1, country2); oCallback.onResult = function(nRate):Void { trace(Rate for + country1 + to + country2 + = + nRate); }; } WebCall(country1, country2); THANKS FOR ANY HELP!!! Doug Coning Software Developer FORUM Solutions, LLC This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] WebService Class Help
I found my own answer in using arguments to determine the amount of parameters passed then setting up a switch statement to select the correct call... Doug Coning Software Developer FORUM Solutions, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Doug Coning Sent: Tuesday, November 15, 2005 10:21 AM To: Flashcoders mailing list Subject: [Flashcoders] WebService Class Help Greetings! I'm trying to setup a WebService class to handle multiple operations. Some operations will have many parameters, while others may have none. However, I'm having problems figuring out how to pass either an array or an object to the WebService class. Below is an example that sends 2 strings. How could I change the code below to pass an array containing the two country strings and then pass that into the callback object? import mx.services.WebService; // VARIABLES var country1:String = USA; var country2:String = Canada; // WEB SERVICE function WebCall(str1:String, str2:String){ var WSDL_URL:String = http://www.xmethods.net/sd/2001/CurrencyExchangeService.wsdl;; var wsExRate:WebService = new WebService(WSDL_URL); var oCallback:Object = wsExRate.getRate(country1, country2); oCallback.onResult = function(nRate):Void { trace(Rate for + country1 + to + country2 + = + nRate); }; } WebCall(country1, country2); THANKS FOR ANY HELP!!! Doug Coning Software Developer FORUM Solutions, LLC This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flash Certification
Greetings All, My company is encouraging all its developers to pursue certification over the next year in their realms of expertise. I know that there have been several threads on the legitimacy of certification and I'm not trying to revisit that discussion. Instead, I'd like to ask if anyone know the plans for certifications now that Flash 8 is out (i.e. will there be a Flash 8 certification test?) and also is Adobe going to continue the flash certification process when Flash becomes Adobe Flash? Thanks, Doug Coning Software Developer FORUM Solutions, LLC This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Flash Certification
Thanks. I agree with your assessment. Doug Coning Software Developer FORUM Solutions, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, November 04, 2005 8:55 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Flash Certification Good morning... :) I don't think there is many people who can actually answer your question on that Adobe matter, but I am 100% sure that Macromedia will have a certificate for F8... (If not, I'll give you one of my certificates... I've got plenty...) I don't know about the power of the certificate though... I do have several from F6 days and I am sure it has done some magic(?) when I was landing my current job but I don't know how powerful it was or how powerful it can be if I am looking for a new job... I mainly took the test because of my personal fulfillment nothing more nothing less... and I think that's pretty much how the certificate works for most of the people... Just my 2 cents on this... Jason - Original Message - From: Doug Coning [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, November 04, 2005 8:12 AM Subject: [Flashcoders] Flash Certification Greetings All, My company is encouraging all its developers to pursue certification over the next year in their realms of expertise. I know that there have been several threads on the legitimacy of certification and I'm not trying to revisit that discussion. Instead, I'd like to ask if anyone know the plans for certifications now that Flash 8 is out (i.e. will there be a Flash 8 certification test?) and also is Adobe going to continue the flash certification process when Flash becomes Adobe Flash? Thanks, Doug Coning Software Developer FORUM Solutions, LLC ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] XPath Error...
It allows you to query the 'first' child, but not any other children... Doug Coning Software Developer FORUM Solutions, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Chris Wilcox Sent: Thursday, November 03, 2005 8:30 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] XPath Error... Hmm... it works if you nest the predicate bit to... //product[colors[clr= 'green']] ...apparently (after quick google) this is legal XPath. Chris Wilcox Bounce Digital Ltd 12 Goslett Yard | London | WC2H 0EQ UK T +44(0)207 478 4488 | www.bouncedigital.co.uk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doug Coning Sent: 03 November 2005 12:13 To: Flashcoders mailing list Subject: [Flashcoders] XPath Error... Has anone encountered the following error that doesn't allow you to query child nodes of a particular node? Here is the sample code. Sorry for the wrapping: --- import com.xfactorstudio.xml.xpath.*; _global.XPath = XPath; // XML var myStr:String = productsproductflag0/flagcolorsclrgreen/clr/colorscolo rsclrred/clr/colorsnameItem 1/nameprice19.95/price/productproductflag1/flagcolorscl rblue/clrclrred/clr/colorsnamePlate/nameprice12.95/price /productproductcolorsclrsilver/clr/colorsflag0/flagnam eSpoon/nameprice4.95/price/product/products; var myXML:XML = new XML(myStr); trace(myXML: + myXML); // Query 1 var result1_array:Array = XPath.selectNodes(myXML,//product[colors/clr = 'green']); trace(\nGreen Results:\t + result1_array); trace(Result Length:\t\t + result1_array.length); // Query 2 var result2_array:Array = XPath.selectNodes(myXML,//product[colors/clr = 'red']); trace(\nRed Results:\t + result2_array); trace(Result Length:\t\t + result2_array.length); Doug Coning Software Developer FORUM Solutions, LLC This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders __ This email has been scanned by the MessageLabs Email Security System. __ __ This email has been scanned by the MessageLabs Email Security System. __ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] XPath Error...
You are correct. Yes, it allows you to query if you nest the child node. Thank you very much Doug Coning Software Developer FORUM Solutions, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Chris Wilcox Sent: Thursday, November 03, 2005 8:30 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] XPath Error... Hmm... it works if you nest the predicate bit to... //product[colors[clr= 'green']] ...apparently (after quick google) this is legal XPath. Chris Wilcox Bounce Digital Ltd 12 Goslett Yard | London | WC2H 0EQ UK T +44(0)207 478 4488 | www.bouncedigital.co.uk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doug Coning Sent: 03 November 2005 12:13 To: Flashcoders mailing list Subject: [Flashcoders] XPath Error... Has anone encountered the following error that doesn't allow you to query child nodes of a particular node? Here is the sample code. Sorry for the wrapping: --- import com.xfactorstudio.xml.xpath.*; _global.XPath = XPath; // XML var myStr:String = productsproductflag0/flagcolorsclrgreen/clr/colorscolo rsclrred/clr/colorsnameItem 1/nameprice19.95/price/productproductflag1/flagcolorscl rblue/clrclrred/clr/colorsnamePlate/nameprice12.95/price /productproductcolorsclrsilver/clr/colorsflag0/flagnam eSpoon/nameprice4.95/price/product/products; var myXML:XML = new XML(myStr); trace(myXML: + myXML); // Query 1 var result1_array:Array = XPath.selectNodes(myXML,//product[colors/clr = 'green']); trace(\nGreen Results:\t + result1_array); trace(Result Length:\t\t + result1_array.length); // Query 2 var result2_array:Array = XPath.selectNodes(myXML,//product[colors/clr = 'red']); trace(\nRed Results:\t + result2_array); trace(Result Length:\t\t + result2_array.length); Doug Coning Software Developer FORUM Solutions, LLC This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders __ This email has been scanned by the MessageLabs Email Security System. __ __ This email has been scanned by the MessageLabs Email Security System. __ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] XPath Query HELP!
Thank you very much. It works great... Doug Coning Software Developer FORUM Solutions, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Tim Beynart Sent: Wednesday, November 02, 2005 10:41 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] XPath Query HELP! I could not resist finding out what was wrong, here's the fix I came up with: Line 70 of com.xfactorstudio.xml.xpath.XPathUtils reads: for (var i=1 ; i=max ; i+=2) It should say i=max to accommodate 1 character text node values. Make that change and your query will work. - - - - - - - - - - - - Tim Beynart Athens, GA, USA - - - - - - - - - - - - -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Beynart Sent: Wednesday, November 02, 2005 10:22 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] XPath Query HELP! Look at the class com.xfactorstudio.xml.xpath.types.Predicate line 266, add these traces: static function isEqualTo(val1, val2):Boolean{ trace(EQUALS::+val1+ , +val2) var values = Predicate.convertForComparison(val1, val2); for (var i in values){ trace(i+ : +values[i]); } return (values.val1 == values.val2); } You will see that the convertForComparison method is not working correctly for some reason. I don't have time to continue looking at this, I hope this gets you on the right path (har har). - - - - - - - - - - - - Tim Beynart Athens, GA, USA - - - - - - - - - - - - ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] XPath Query HELP!
Grant, Thank you very much for your help on this! Doug Coning Software Developer FORUM Solutions, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, November 01, 2005 2:18 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] XPath Query HELP! doug, do you have a better xml string, the one in your example is not valid xml and the flag you mentioned is not in it... grant - Original Message - From: Doug Coning [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: 11/1/05 2:11 PM Subject: [Flashcoders] XPath Query HELP! I am trying to run a query using xfactorstudio to find all the elements where a flag (bit) is set to '1' or true. However, I have been unsuccessful at getting the class to return any items when trying to query on the node. When I use the Xpath.selectNodes() function and pass the queries below, nothing works. Please help! Here's a sample: import com.xfactorstudio.xml.xpath.*; _global.XPath = XPath; var myStr:String = 0Item 119.951Plate 12.950Spoon4.95; var myXML:XML = new XML(myStr); trace(This works: \t\t + XPath.selectNodes(myXML,/products/product[name = 'Plate'])); trace(This doesn't work: + XPath.selectNodes(myXML,/products/product[flag = '1'])); trace(This doesn't work: + XPath.selectNodes(myXML,/products/product[flag = 1])); trace(This doesn't work: + XPath.selectNodes(myXML,/products/product[flag 0])); Thanks, Doug Coning Software Developer FORUM Solutions, LLC This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Flash project FLP files are useless
Yeah, I use it all the time to organize my projects. We also have MS Visual Sourcesafe and it work very nicely for versioning! In fact I like how it works for versioning much better than Dreamweaver. Dreamweaver's versioning code is really buggy! Doug Coning Software Developer FORUM Solutions, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Gregory_GOusable Sent: Tuesday, November 01, 2005 12:47 AM To: Flashcoders mailing list Subject: [Flashcoders] Flash project FLP files are useless Hello Flashcoders, From time to time I'm trying to find improvements for work process ;-) So, I tried Flash Projects feature/panel of MX 2004 Pro. And... found it useless: - to use version-control, one need MS Visual SourceSafe Client version 6 installed. Besides, it doesn't make sense if you work alone. - to manage projects, I don't need it either. I use SciTE/Flash for editing .as files and Flash authoring only for drawing and assembling the swf. In fact, now I use #include file_name or ext. classes instead of all_code_in_one_frame approach even for small projects. Question: Have anyone found any use of Flash Projects feature/panel? Maybe in Flash 8? Of course, excluding version control for workgroups. Thanks. -- Best regards, Gregory_GOusable http://GOusable.com Flash components development. Usability services. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] XPath bug?
I believe we may have stumbled across another bug or issue of the Xpath application (Unless I'm doing something wrong). The code below shows a sample product xml document where I am trying to return nodes based upon a value in a child node. In the sample if the user wanted to return all products that are red, the Xpath doesn't return it properly. I have tested and retested the xpath that I'm using in an XML editor and it works. Thank you ahead of time for you help... If someone knows how to get around this, I'd appreciate your help! Thanks, Doug Coning Software Developer FORUM Solutions, LLC - import com.xfactorstudio.xml.xpath.*; _global.XPath = XPath; // XML var myStr:String = productsproductflag0/flagcolorsclrgreen/clr/colorscolo rsclrred/clr/colorsnameItem 1/nameprice19.95/price/productproductflag1/flagcolorscl rblue/clrclrred/clr/colorsnamePlate/nameprice12.95/price /productproductcolorsclrsilver/clr/colorsflag0/flagnam eSpoon/nameprice4.95/price/product/products; var myXML:XML = new XML(myStr); trace(myXML: + myXML); // Query 1 var result1_array:Array = XPath.selectNodes(myXML,//product[colors/clr = 'green']); trace(\nGreen Results:\t + result1_array); trace(Result Length:\t\t + result1_array.length); // Query 2 var result2_array:Array = XPath.selectNodes(myXML,//product[colors/clr = 'red']); trace(\nRed Results:\t + result2_array);// Doesn't work! trace(Result Length:\t\t + result2_array.length);// Doesn't work! This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Extending WebService Class
I'm trying to create a class that extends the WebService Class: class CentralService extends mx.services.WebService { } Everytime I try to instantiate the class like such: var cs:CentralService = new CentralService(); I get the following error: Error opening URL file:///C|/flash/undefined Any suggestion on what I'm doing wrong? Thanks, Doug Coning Software Developer FORUM Solutions, LLC This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders