[Flashcoders] Interesting problem - doesn't work without call to trace.
Hi, I've come across this a few times in my own code, but haven't seen it mentioned online - though it's a difficult thing to google for. In the following function, if the trace at the top is present, formData traces a load of XML and select1 also traces a load of XML. If I comment out the top trace, formData still traces the same pile of XML but select1 traces null! public function testMakeModelFilterWorks():void { trace(); default xml namespace = NAMESPACE; var select1:XML = formData..select1[2]; trace(formData=, formData); trace(select1:, select1); // etc default xml namespace = null; } Any ideas? I'm getting fed up of leaving 'trace();//don't delete me' at the top of functions. (I don't think it's a timing thing, if I put a 10-item increment-a-variable loop in there instead of a trace the E4X still fails.) t. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Interesting problem - E4X query doesn't work without call to trace.
Hi, I've come across this a few times in my own code, but haven't seen it mentioned online - though it's a difficult thing to google for. In the following function, if the trace at the top is present, formData traces a load of XML and select1 also traces a load of XML. If I comment out the top trace, formData still traces the same pile of XML but select1 traces null! public function testMakeModelFilterWorks():void { trace(); default xml namespace = NAMESPACE; var select1:XML = formData..select1[2]; trace(formData=, formData); trace(select1:, select1); // etc default xml namespace = null; } Any ideas? I'm getting fed up of leaving 'trace();//don't delete me' at the top of functions. (I don't think it's a timing thing, if I put a 10-item increment-a-variable loop in there instead of a trace the E4X still fails.) Oh.. Flex (3) compiler, not a flash IDE. t. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Interesting problem - doesn't work without call to trace.
Well, it becomes a null - so if I do select1.toString() in the trace I just get a runtime error.. And I don't want to turn the results of my query into a string, because I need it as an XML ref. 2009/4/17 Glen Pike g...@engineeredarts.co.uk Have you tried the toString or toXMLString for this - check the XML class for the proper function name... Glen Tim Hawkins wrote: Hi Matt, No, afraid not.. I actually use the select1 variable elsewhere, so it's not just that trace which is the problem. Thanks for the suggestion though! 2009/4/17 Matt S. mattsp...@gmail.com Does it make a difference if you write the trace as : trace(formData=+formData); trace(select1:+ select1); On 4/17/09, Tim Hawkins tim...@googlemail.com wrote: Hi, I've come across this a few times in my own code, but haven't seen it mentioned online - though it's a difficult thing to google for. In the following function, if the trace at the top is present, formData traces a load of XML and select1 also traces a load of XML. If I comment out the top trace, formData still traces the same pile of XML but select1 traces null! public function testMakeModelFilterWorks():void { trace(); default xml namespace = NAMESPACE; var select1:XML = formData..select1[2]; trace(formData=, formData); trace(select1:, select1); // etc default xml namespace = null; } Any ideas? I'm getting fed up of leaving 'trace();//don't delete me' at the top of functions. (I don't think it's a timing thing, if I put a 10-item increment-a-variable loop in there instead of a trace the E4X still fails.) t. ___ 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
Re: [Flashcoders] AS statement this[testStudent + i] in JAVA ?
Awesome. Thanks guys. The HashTable class ended up being especially useful. Stupid me thought there was eval() functionality in a Compiled language... ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS statement this[testStudent + i] in JAVA ?
Apologies in advance if this is a bit off topic but are there any ActionScripters who know Java on here? I'm just starting out with Java and I'm stuck. In Actionscript you can write a for loop and have something like this: * for (var i:int=0;i**myStudnts.length;i++){ this[testStudent** + i] = new Student(); }* I'm having trouble expressing the left part of the statement -- *this[myStudent + i]* -- using Java. Any suggestions? Here's where I'm at with the Java code: *private static Student testStudent1, testStudent2, testStudent3, testStudent4, testStudent5; private static String[][] myStudnts = {{...}, {...}, **{...}, **{...}**, {...}**}; ... public static void main(String[] args){ **initStudents(); } public static void initStudents(){ for(int i=0; imyStudnts.length; i++){ // NOT COMPILING SO FAR: / (Student)(testStudent+(i+1)) = new Student(myStudnts[i][0], myStudnts[i][1], myStudnts[i][2], myStudnts[i][3], myStudnts[i][4], myStudnts[i][5]); } ** } *Again, sorry if this is a bit off-topic and thank you for taking the time to read this. - Tim ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best Practices for Flash Video and Flash Site Delivery AS3
Hi David, The site seems to work fine on a G4, Flash 9,0,124 on Firefox 2 and Safari 3. The video is a bit choppy at the beginning but that's common on this old system. I watched 4 to 5 videos and in each browser and had nor problems loading pages afterwards. I got the rainbow wheel for 30 seconds or so when what looked like the Google API-based map loaded on the IL MO WC Venue page. Do you have all of your listeners removed when they're not needed? Google Flash 9 or AS3 memory leak. My guess would be to read everything you can find on Garbage Collection in AS3, starting with these: http://gskinner.com/blog/archives/2008/04/failure_to_unlo.html http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html Hope this helps (I know that feeling), Tim On Thu, Jul 24, 2008 at 3:02 PM, David Rogers [EMAIL PROTECTED] wrote: Hello All, This is a long one, but PLEASE, PLEASE, read and help Please view the site at: www.hennessyroach.com Best, Davido ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] DART external SWFs/.as?
Thanks for getting back to me on this, Manuel. That was reassuring. On Tue, Jul 22, 2008 at 1:02 PM, Manuel Ponce de Leon [EMAIL PROTECTED] wrote: Hi Tim, I just happen to work for DoubleClick/Google :)... ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash CMS
Hi Paul, I've recently played around with Drupal as well because it's open source, built on PHP/MySQL and I've seen AMFPHP, SWFaddress, SWFobject modules for it. HOWEVER -- I started messing with Drupal 6.3, since the latest version is Drupal 7, but quickly realized that if I wanted a fuller list of free 3rd party modules I might have to use Drupal 5.x (5.8 last I heard). AMFPHP is now part of the Services module. Hope this helps. On Thu, Jul 3, 2008 at 4:35 AM, Sunil Jolly [EMAIL PROTECTED] wrote: I've used Drupal with the AMFPHP module very successfully. S ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] load 500 by 500 from db in flash
I'd make sure your sql is tuned really well (I'm not a SQL expert so I always seek somebody that is), make sure you are only returning data you need (don' t return columns with data you don't need, SELECT * can be evil), and failing all that (and failing moving to remoting or something), partition your calls so that you don't do it all at once (first call for range A-M, then N-Z, or some such partition scheme that works). On Oct 20, 2007, at 6:01 PM, Rich Rainbolt wrote: On Oct 19, 2007, at 8:29 AM, CARABUS-Plus wrote: Im using FLASHSQL to load data in flash from php db Theres is too much data to load, how can I do to load 500 by 500 result ? Thank you myFlashSQL.Execute(SELECT * FROM NP_socs_nancy WHERE soc_09 = \+categ_var+\ ORDER BY soc_01); Laurent And the listener : var myListener1:Object = new Object(); myListener1.dataLoaded = function(success:Boolean, xmldata:XML) { if (success) { trace(xmldata); if (comStatus == loading) { display.removeAllColumns(); display.columnNames = [Spécialité, Nom, Ville]; display.getColumnAt(0).width = 120; display.getColumnAt(1).width = 100; display.getColumnAt(2).width = 115; var dat:Array = new Array(); _root.finder_txt.text = il y a +xmldata.firstChild.childNodes[3].childNodes.length+ réponses; for (var i:Number = 0; ixmldata.firstChild.childNodes[3].childNodes.length; i++) { dat.push({Spécialité:unescape(xmldata.firstChild.childNodes [3].childNodes[i] .childNodes[14].childNodes), Nom:unescape(xmldata.firstChild.childNodes[3].childNodes [i].childNodes[4].ch ildNodes),Ville:unescape(xmldata.firstChild.childNodes [3].childNodes[i].chil dNodes[8].childNodes),Tel:unescape(xmldata.firstChild.childNodes [3].childNod es[i].childNodes[9].childNodes),Fax:unescape (xmldata.firstChild.childNodes[3 ].childNodes[i].childNodes[10].childNodes),CP:unescape (xmldata.firstChild.ch ildNodes[3].childNodes[i].childNodes[7].childNodes), Rue:unescape(xmldata.firstChild.childNodes[3].childNodes [i].childNodes[6].ch ildNodes),eMail:unescape(xmldata.firstChild.childNodes [3].childNodes[i].chil dNodes[11].childNodes), lat:unescape(xmldata.firstChild.childNodes[3].childNodes [i].childNodes[16].c hildNodes),lon:unescape(xmldata.firstChild.childNodes[3].childNodes [i].child Nodes[17].childNodes),lic:unescape(xmldata.firstChild.childNodes [3].childNod es[i].childNodes[19].childNodes)}); } display.dataProvider = dat; } else if (comStatus == sending) { msg = Data Sent Successfully. You can now reload!; } } }; ___ 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 Tim Consolazio [EMAIL PROTECTED]  ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Dashboard - Flash Developer(s) wanted
We're seeking flash developers interested in short term in-house contract positions and full-time positions. If you're looking for a place to break-out and actually utilize your skill set to its full potential check us out. Overview: You will work within the programming department and with the creative team to develop a wide range of rich media projects. Skills: * Proficient using ActionScript 2.0+ * Fundamental OOP knowledge * Ability to execute high quality work on both a design and technical level * Knowledge of possibilities and limitations of the interactive space * Solid organization, time management skills and communication skills * XML * HTML, CSS, JavaScript would be an asset but not necessary //Tim Arney Studio Manager Dashboard - Driving Brand Communications 355 Adelaide Street West, Suite 200 Toronto, Ontario. M5V 1S2 ph 416.504.4422 fax 416.504.6644 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.dashboard.ca http://www.dashboard.ca PROPRIETARY WARNING The information contained herein is Proprietary to Dashboard Brand Communications and may not be used, reproduced or disclosed to others except as specifically permitted in writing by the originator of the information. The recipient (s) of this information, by its retention and use agrees to protect the same and the information contained therein from loss, theft or compromise. If you have received this message in error, or are not the named recipient(s), please immediately notify the sender and delete this e-mail message. ___ 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] toronto flash developer
Dashboard is seeking a fulltime flash developer to join our growing team For details - http://www.dashboard.ca/?section=jobs http://www.youtube.com/watch?v=BuS3jHZN4SI ___ 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] What don't I understand about the display list?
If you're doing this in the same frame, the fact that the object is no longer on the displaylist may not have been updated yet. Try moving the code throwing the error into the childRemove event. Daniel Thompson wrote: Why will the following error be thrown? Shouldn't the displayObject be null? try { removeChild(getChildByName(background)); } catch (typeError:TypeError) { // do nothing } var displayObject:DisplayObject = getChildByName(background); if (displayObject) { throw new Error(Why!?!); } ___ 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] Re: Flashcoders Digest, Vol 24, Issue 42
The embed attribute can actually be used in a number of different ways in Flex, both as an attribute and as an inline parameter when setting your source (say, for an image). The issue is documented in the flex builder documentation pretty thoroughly. Check out the documentation for the Image component. [EMAIL PROTECTED] wrote: Send Flashcoders mailing list submissions to flashcoders@chattyfig.figleaf.com To subscribe or unsubscribe via the World Wide Web, visit http://chattyfig.figleaf.com/mailman/listinfo/flashcoders or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of Flashcoders digest... Today's Topics: 1. Re: Multi-dimensional array problems in classes (slangeberg) 2. questions about [embed] in AS3 (August Gresens) 3. ASBroadcaster deprecated in AS3 ? (Stephen Ford) 4. Re: iTunes-encoded mp3's duration doesn't show up in ID3 from Flash (Marlon Harrison) 5. Re: ASBroadcaster deprecated in AS3 ? (Francis Chary) 6. Re: questions about [embed] in AS3 ([EMAIL PROTECTED]) 7. Re: questions about [embed] in AS3 (Fumio Nonaka) 8. Flashlite for Windows mobile 4 (Eric Priou) 9. Q:The case for Functional vs OOP programming ([EMAIL PROTECTED]) -- Message: 1 Date: Sat, 20 Jan 2007 14:41:52 -0600 From: slangeberg [EMAIL PROTECTED] Subject: Re: [Flashcoders] Multi-dimensional array problems in classes To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed I agree with previous, however, it is good to deal with references in classes. Best design for your 2D array depends on what it's intended for?: var reactionStoichiometry:Array = new Array (); public function addItem( newArr:Array ):Number { //returns len(?) return reactionStoichiometry.push( newArr ); } used like: var yorObject:YourClass = new YourClass(); var newArr:Array = new Array (1, 3, 2, 0), yorObject.addItem( newArr ); yorObject.addItem( new Array( 1,2,1,0 ) ); ...etc -Scott On 1/20/07, Ron Wheeler [EMAIL PROTECTED] wrote: BTW, Classes love Objects of all types regardless of the arrays. Just a hint. Often multi-dimensional arrays are just crying out to be single arrays of objects and if their wish is granted, your code becomes amazingly small and elegant as your reward for granting their wish. Help make an array's wish become true!!! If you pass this on to 6 programmers in the next 24 hours, you will be granted good karma for a year. Ron Stan Vassilev wrote: When you assign dynamic or more complex values, and especially if you don't want this array to be shared (by reference) to all instances of the class, it's best to initialize in the constructor. There aren't any limitations on multidim. arrays in objects, classes, or objects in classes and so on. I suspect the particular syntax you used was not correct, hence your issues. It'd help to post this instead. Regards, Stan Vassilev - Original Message - From: Gareth Hudson [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Saturday, January 20, 2007 2:02 PM Subject: [Flashcoders] Multi-dimensional array problems in classes Hi there, Does anyone know if it we are supposed to use multi-dimensional arrays (an array consisting of arrays) within a class? If so, what is the best, legal way to create them? The only way I have managed to do it is by this method: var reactionStoichiometry:Array = new Array ( new Array (1, 3, 2, 0), new Array (1, 2, 1, 0), new Array (2, 1, 2, 0), new Array (2, 0, 1, 3), new Array (2, 0, 2, 1), new Array (1, 0, 1, 1), new Array (1, 1, 2, 0), new Array (1, 1, 2, 0), new Array (1, 1, 1, 1)); Any other ways of creating them give me a compile error saying that they are not allowed within a class. I need to assign these values dynamically, the above ones a for testing, and would prefer to do it by addressing the locations in the main array by position number for inserting the other arrays within it. Classes don't seem to like Objects containing arrays either. Many thanks, Gareth Hudson. ___ 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
[Flashcoders] JOB TORONTO ON. CANADA - fulltime flash developer
Dashboard is currently seeking fulltime flash developer(s). If your interested or would like more info contact me with your resume and links. //Tim Arney Studio Manager [EMAIL PROTECTED] www.dashboard.ca ___ 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] How to make changes to a parent class
Hi When dealing with a class (Class A) that is extended by a number of other classes (Child 1, Child2...), each of which has their own non-inherited properties and methods, what is the general consensus on the best way to add a parameter to the constructor of the parent class? The problem I'm currently facing is that if I extend Class A and modify the constructor to accept an extra argument (Class A-ext), then Child 1 needs to extend Class A-ext so it can pass the new argument through in its super() call. But then I need to duplicate all non-inherited properties and methods of Child 1 into the newly created extended version of Child 1. So it seems to me that I either edit the original classes directly, which makes them potentially incompatible with the same codebase deployed on other projects, or I duplicate them and have two sets of almost identical code to maintain. Anyone got any suggestions for best practice when it comes to this sort of thing? Thanks Tim -- Tim Stickland Include Digital | Director 2nd Floor, 145-157 St. John Street, London EC1V 4PY tel: +44 (0) 20 7526 4611 web: http://www.include-digital.com blog: http://blog.include-digital.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
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
Re: [Flashcoders] rss feed
Isn't the URL of the XML file for the RSS-feed always the same? Than you can write a php script which creates that xml file and link to it from the flash movie... On 4/6/06, MetaArt [EMAIL PROTECTED] wrote: I have dev a full Flash website, and I need to add the chance to access to RSS for users. So, what I need is a 'clean' way to give (quickly) the feed rss URL within Flash movie. Any suggest? Enrico Tomaselli + web designer + [EMAIL PROTECTED] http://www.metatad.it ___ 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] Flash 8 Projectors under OS 9
Projectors I've created under Flash MX2004 run fine on OS 9 where as Projectors created under Flash 8 won't run on OS 9. I know the minimum requirement for Flash Player 8 is OS X, but is it possible to create a OS 9 compatible projector in Flash 8 or do I have to recompile in MX2004? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] How to get colour of text formatted with CSS
Hi Does anyone know if it's possible to read the text colour specified in an externally loaded CSS style? Cheers Tim ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How to get colour of text formatted with CSS
Excellent, thanks Nikolaj On 11/29/05, Nikolaj Selvik [EMAIL PROTECTED] wrote: var yourStyle:Object = yourStyleSheet.getStyle(yourStyleName); then get yourStyle.[color]; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Stickland Sent: den 29 november 2005 14:14 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] How to get colour of text formatted with CSS Hi Does anyone know if it's possible to read the text colour specified in an externally loaded CSS style? Cheers Tim ___ 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
Re: [Flashcoders] AS2, compiler errors...
Hi Greg Thanks for the reply, but I don't think either of these are the issues. This is the constructor of UserInteractionPanel: public function UserInteractionPanel (controller:PanelController, panelObj:Object) {} And here's a version of GameoverPanel with all but the constructor removed: class GameoverPanel extends UserInteractionPanel { public function GameoverPanel(controller:PanelController, panelObj:Object) { // Call the super() constructor passing it the panel object. super(controller, panelObj); // Populate the panel contents. this.populatePanel(); } } Any other ideas? I seem unable to ever create a project involving AS2 classes without getting syntax errors when error checking. These often don't stop the classes compiling and the application running properly, but they're a pain. Cheers Tim On 11/17/05, Gregory_GOusable [EMAIL PROTECTED] wrote: Check the following: 1) class GameoverPanel extends UserInteractionPanel ... Make sure you have extends word 2) To use super(controller, panelObj); , you must have 2 parameters in the construstor of UserInteractionPanel class. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS2, compiler errors...
True to form (in my experience anyway), I've just gone in to the classes to amend them using some of your suggestions and they're now not throwing any errors... I just don't get it. One thing that I noticed in your example code was that you called methods of the parent class using super.method() rather than this.method(). I wasn't aware you could do that, but it certainly makes reading the code more straightforward. Thanks! On 11/17/05, NEILHIGHLEY.COM http://NEILHIGHLEY.COM [EMAIL PROTECTED] wrote: All I can think of is that there may be an error prior to the 'super' one that flash is airbrushing. Also try using : super.constructor.apply(this, arguments); for the constructor instead. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS2, compiler errors...
Absolutely, but I'd never have been trapped as I didn't understand overriding properly ;) I wasn't aware that when a subclass overrides a superclass method it leaves the superclass method intact. Is that correct? On 11/17/05, Ian Thomas [EMAIL PROTECTED] wrote: Not just more readable - consider the case where you're overriding something: class A { public function doSomething() { trace(Something in A); } } class B extends A { public function doSomething() { super.doSomething(); trace(Something in B); } } In this situation, using super.method() lets you call the parent implementation of the method you're currently in. If you were limited to this.method(), then you'd be trapped in an infinitely recursive loop as the method kept calling itself... ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] XML and CData
Not the best workaround, but why not just use the parent node for yout HTML tags as your string? What is the issue with the child nodes being read as nodes? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ron Wagner Sent: Wednesday, November 09, 2005 7:37 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] XML and CData The ignoreWhite is set to true. I have four other fields which are integers, all coming through fine so I know the XMLConnector is setup, being triggered, and otherwise working ok. If I remove the CDATA from the xml and send it through as text it comes through fine. The problem is I know my data will have some html mixed in so I really need the CDATA around it. Any other ideas are more than welcome. Thanks, Ron ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
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
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
RE: [Flashcoders] XPath Query HELP!
Oops, I meant to say: Line 70 of com.xfactorstudio.xml.xpath.XPathUtils reads: for (var i=1 ; imax ; i+=2) Note the less than - - - - - - - - - - - - Tim Beynart Athens, GA, USA 706.372.6994 - - - - - - - - - - - - -Original Message- From: [EMAIL PROTECTED] [mailto:[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: 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] XPath Query HELP!
Thanks, I did sent him an email this morning. This was my first decent contribution after years of reading this list! - - - - - - - - - - - - Tim Beynart Athens, GA, USA - - - - - - - - - - - - -Original Message- Great find Tim! You should send that to Neeld Tanksley [EMAIL PROTECTED] so that he can update the library, if you haven't already done so of course. ;-) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] setInterval() and the trouble
Why is something so useful undocumented? I have to bend over backwards to create single-fire timers. Thanks for the post. -Original Message- Its undocumented, but it works in a fire once kind of situation like javascript: foo = setTimeout( func, ms) clearTimeout(foo) but only if you need to stop the interval. Otherwise, just fire it and forget it. e.d. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders