Re: [Flashcoders] hen's teeth...

2010-01-08 Thread Ron Wheeler
A big +1 for the Head Start Design Patterns book. A must read for anyone wanting to write clean functional code. Saves days of reinventing poorly crafted wheels. Ron Bob Wohl wrote: This thread has been a good read. Over the years I've been tasked to write multiple server languages and I've

Re: [Flashcoders] hen's teeth...

2010-01-05 Thread Ron Wheeler
Dave Watts wrote: So would you say it would be advantageous for aspiring Flash programers to learn C#? Or leave it alone, not needed? I hear they are very similar as well. I was wondering what the benefits would be. AS3 and C# are very similar, yes. I think it's advantageous for aspiring

Re: [Flashcoders] hen's teeth...

2010-01-05 Thread Ron Wheeler
Paul Andrews wrote: Dave Watts wrote: Perhaps you can explain how AS3 is narrow. For years Pascal was THE language to learn programming then eventually it migrated to Java and I don't consider AS3 to be a limited language or narrow in it's outlook. I think it's rather a good and accessible

Re: [Flashcoders] DSL - Standard Consumer K / Sec?

2009-08-31 Thread Ron Wheeler
www.dslreports.com would be a good place to start to look for statistics. jared stanley wrote: Hey all, Looking for stats on connection speeds; looking for a 'minimum system requirements' spec for connection...what would be an 'average' DSL connection? I have Charles proxy open and

Re: [Flashcoders] mac vs pc

2009-08-18 Thread Ron Wheeler
You might look at Spring Roo to see where the generation of code is going. It is very slick. It works very nicely from the UML model. Document the classes and atomic properties. Document the relationships. Order has a property which is a set of Order Details and Order Details has a reference to

Re: [Flashcoders] mac vs pc

2009-08-18 Thread Ron Wheeler
Dave Watts wrote: What's an atomic property? A property that is a primitive type (string, int, Boolean, etc), I think. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in

Re: [Flashcoders] mac vs pc

2009-08-18 Thread Ron Wheeler
Merrill, Jason wrote: Why not just call it a primitive then? That would have been exactly the right thing to say/write. Sorry. Couldn't think of the right word at the time. Just getting old, I guess. Ron Jason Merrill Bank of America Global Learning Shared Services Solutions

Re: [Flashcoders] project planning tools

2009-07-18 Thread Ron Wheeler
Benny wrote: I am looking for tips/experiences for a simple/intuitive and affordable gantt based (offline) planning tool which should run on Windows vista. Which tools are you using to plan your Flash projects and why would you recommend it? ___

Re: [Flashcoders] Flash use a proxy for sockets.

2009-06-30 Thread Ron Wheeler
The usual way to solve this is to set the firewall to NAT the port to the server behind the firewall and have flash connect to the firewall on the NATed port. In a made up case, NATing port 2980 on the firewall's ethernet 0 at 200.200.200.1 to port 2980 on the server 192.168.1.7 on the

Re: [Flashcoders] anti-aliasing

2009-05-18 Thread Ron Wheeler
You are on the right list. To get some help, you will probably have to give more details. - 2D or 3D - vectors or rasters - images or drawings - what kind of shapes - dynamic or static - data driven or algorithmic - user interaction desired - low-res icons or sprites for a game or beautifully

Re: [Flashcoders] Multiplying a Vector3D by a projection Matrix3D

2009-05-07 Thread Ron Wheeler
Fumio Nonaka wrote: Vector3D.project() method in [Help] says: If the current Vector3D object is the result of multiplying a Vector3D object by a projection Matrix3D object, the w property can hold the transform value.

Re: [Flashcoders] Feasibility of xml file for high score data storage

2009-04-24 Thread Ron Wheeler
Dave Watts wrote: One of the possible tricks that you can use, is to send messages to your high-score server during the game so that you can verify that the person passed certain checkpoints. You can throw these away after the final score is recorded and validated. At the checkpoints, you can

Re: [Flashcoders] Feasibility of xml file for high score data storage

2009-04-24 Thread Ron Wheeler
mod_proxy) and put your application on its own server or virtual server with its own MySQL for added security. Ron Cheers Paul -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ron Wheeler Sent: 23 April

[Flashcoders] TextBox not wraping properly

2009-04-24 Thread Ron Wheeler
This seems to be an old bug that still has not been fixed. If you have a textbox with wordwrap on, it breaks a hyphenated word such as decision-maker as decision -maker Seems a pretty stupid choice, at least for English. Has anyone found a fix for this? Ron

Re: [Flashcoders] Feasibility of xml file for high score data storage

2009-04-23 Thread Ron Wheeler
One of the possible tricks that you can use, is to send messages to your high-score server during the game so that you can verify that the person passed certain checkpoints. You can throw these away after the final score is recorded and validated. At the checkpoints, you can record current

Re: [Flashcoders] design pattern diagrams...

2009-01-07 Thread Ron Wheeler
Head First Design Patterns is very easy to pick up. No typos, lots and lots of pictures, illustrations and code examples. http://oreilly.com/catalog/9780596007126/?CMP=AFC-ak_bookATT=Head+First+Design+Patterns http://www.headfirstlabs.com/books/hfdp/ for a quick overview and a typical

Re: [Flashcoders] frameworks and flash

2008-11-17 Thread Ron Wheeler
If your framework includes dependency injection like Spring or database tools like Hibernate or HaXe's SPOD for the Flashplayer, then you get a lot of your code moved into configuration files which really cuts down on the work, re-enforces collaboration and makes testing a lot better. Java is

Re: [Flashcoders] favourite programming environment

2008-09-27 Thread Ron Wheeler
Eclipse with HAXE Ron Allandt Bik-Elliott (Receptacle) wrote: I'm sure it's been asked before but as these things change over time, i thought it worth rehashing now what's your favourite coding environment? I really like FlashDevelop but because I'm on a mac, I've been looking into other

Re: [Flashcoders] Re: generating arrays of overlapping sets

2008-09-11 Thread Ron Wheeler
Wouldn't this be a whole lot easier if you used objects? I am coming to the conclusion - not a great theoretical concept or exhaustive examination of 6+ years of flashcoders posts - that most forum questions that mention arrays of arrays would be a lot easier to solve if the questioner had an

Re: [Flashcoders] A Question that I've been asking for years!!

2008-09-11 Thread Ron Wheeler
Second the recommendation. Great book - applies to ActionScript easily. Ron Steven Loe wrote: Check out Head First Design Pattens (oreilly). It's an easy to comprehend book on patterns and software design goodness. The book examples are in Java, so if you can read AS3 you'll be able to read

Re: [Flashcoders] Drawing an arc with curveTo

2008-08-03 Thread Ron Wheeler
Google actionscript bezier Lots of solutions come up. Ron Alias™ wrote: Hi guys, Can anyone point me towards some info on how to draw a proper curved arc in actionscript using curveTo? I've seen plenty of stuff about how to draw an arc using loads of short lines, but that isn't really going

Re: [Flashcoders] Drawing an arc with curveTo

2008-08-03 Thread Ron Wheeler
Try having a look at this http://theolagendijk.wordpress.com/2006/08/18/flash-drawing-api-bezier/ Never used it but it looks well thought out. Ron Alias™ wrote: Hi guys, Can anyone point me towards some info on how to draw a proper curved arc in actionscript using curveTo? I've seen plenty of

Re: [Flashcoders] Random numbers list

2008-07-29 Thread Ron Wheeler
If you do not care if the sequences repeat, you could fill an array with the numbers from 1 to 100 arranged in a random order. When you want to grab 10, just pick a random integer between 0 and 89 and grab the block of 10 numbers following that point. This would charge a penalty once when you

Re: [Flashcoders] Is a precise timer for making rhythms possible?

2008-07-14 Thread Ron Wheeler
Eric E. Dolecki wrote: I think he means a prior composition No. I mean the one just generated. Ron Sent from my iPod On Jul 12, 2008, at 3:55 PM, Kerry Thompson [EMAIL PROTECTED] wrote: Ron Wheeler wrote: If you have a playback button that plays the composed work, you can concatenate

Re: [Flashcoders] Is a precise timer for making rhythms possible?

2008-07-14 Thread Ron Wheeler
or replay. Looking more like MIDI by the day. Put a MIDI player on the server. There are probably ways to do it on the client as well. Ron Kerry Thompson wrote: Ron Wheeler wrote: If you have a playback button that plays the composed work, you can concatenate the sounds/notes selected

Re: [Flashcoders] Is a precise timer for making rhythms possible?

2008-07-14 Thread Ron Wheeler
the timing on a visual event than if you screw up the playing of music. That is why I originally suggested the construction of a single sound file rather than trying to deliver a note on schedule. Ron Ron Wheeler wrote: I would do it on the server side. Since you are using a stable set

Re: [Flashcoders] Is a precise timer for making rhythms possible?

2008-07-14 Thread Ron Wheeler
Kerry Thompson wrote: Ron Wheeler wrote: It is less obvious to the user if you miss the timing on a visual event than if you screw up the playing of music. You're probably right on that most of the time--that's why video will choose to drop a frame to keep in synch. It's also why

Re: [Flashcoders] Is a precise timer for making rhythms possible?

2008-07-14 Thread Ron Wheeler
Kerry Thompson wrote: Ron Wheeler wrote: The in-memory concatenation looks good if it can be done in AS2 as well as AS3. I agree. Do you know of a way of doing it? I have a Playlist class that plays the sounds you choose, one after another, but I don't know of a way

Re: [Flashcoders] Is a precise timer for making rhythms possible?

2008-07-12 Thread Ron Wheeler
If the composer is playing as notes are entered, timing is not an issue. Fancy electric organ for the typest :-) If you have a playback button that plays the composed work, you can concatenate the sounds/notes selected and play the composed segment. Ron Abe Pazos wrote: I guess this is

Re: [Flashcoders] Is a precise timer for making rhythms possible?

2008-07-12 Thread Ron Wheeler
This approach has the potential to be extended to merge 2 or more generated tracks (instruments) with some consideration of volume balance between the tracks. One would concatenate the notes in each track, merge and balance the mp3s and play back the composite mp3 song. Ron Ron Wheeler

Re: [Flashcoders] Is a precise timer for making rhythms possible?

2008-07-11 Thread Ron Wheeler
Why not just concatenate the mp3 files into 1 file and play it as a single sound track? Ron Abe Pazos wrote: I don't understand how MP3 can take longer to start. Isn't the AIFF converted to MP3 anyways by the IDE? I'm preloading the MP3s from disk. I have generated them myself, so they are

Re: [Flashcoders] Is a precise timer for making rhythms possible?

2008-07-11 Thread Ron Wheeler
Isn't MIDI designed for this type of application http://www.alexisisaac.net/products/flashMidi/ Ron Abe Pazos wrote: I don't understand how MP3 can take longer to start. Isn't the AIFF converted to MP3 anyways by the IDE? I'm preloading the MP3s from disk. I have generated them myself, so

[Flashcoders] [Script_in_Action] Re: My problem...

2007-09-16 Thread Ron Wheeler
Coding questions should be discussed on flashcoders. This is a forum for ActionsScript resources only. It is not intended to be a place to discuss code. Flashcoders has a much more active community and you will get a lot of help there. If you come across a component, framework, book or tutorial

Re: [Flashcoders] XML confusion

2007-09-10 Thread Ron Wheeler
You do not want to send an XML object, you just want to send the string. It is the server that needs to convert the string to an XML Object. Just send it the characters. You may have to encode the string since HTTP has no idea about CDATA. The browser and server will look at every character

Re: [Flashcoders] Flash and 3D example

2007-09-10 Thread Ron Wheeler
A few 3D pacakages. Google Sandy 3d http://sandy.media-box.net/blog/ Norman Cousineau wrote: There doesn't seem to be too much Flash / 3D stuff out there. I've posted an example of Flash and 3D working together. I've been doing a fair amount of research into using 3D objects in training

Re: [Flashcoders] FLASH CMS

2007-09-09 Thread Ron Wheeler
OpenCMs and Lenya Claudio M. E. Bastos Iorio wrote: I'm currently doing some research on flash CMS. The idea is to build my own using Flash CS3. The backend will be ASP.NET(C#) and MSSQL. . I have many questions, the first one is: what do you think is the best approach? For

Re: [Flashcoders] General question about data management

2007-08-31 Thread Ron Wheeler
I think that you are on the right track. Pass the XML sub-tree to the constructor to create the class. If you do this, then any change to the schema will only affect the class parsing that part of the tree. If you do the same thing to create the XML to be saved, you will get the same benefit

Re: [Flashcoders] [OT]Server-side knowledge to complement Flash F ront end

2007-08-23 Thread Ron Wheeler
I would suggest WebServices as a technology that will be applicable to lots of applications. Axis from Apache has a lot of tools, documentation and links to other documentation. Ron Dave Watts wrote: Should I pursue .Net knowledge or ??? You should pursue whatever you think would be

Re: [Flashcoders] Intro to OOP using ActionScript: patterns derail!

2007-08-22 Thread Ron Wheeler
Dave Mennenoh wrote: How do you handle onLoad's famous scope? ... It is not magic or advanced. If a pattern was shown to a new programmer without giving it a fancy name, they would just accept it as the best way to do the task and would never give it moment's thought. Right. Delegate - ie

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-22 Thread Ron Wheeler
Ian Thomas wrote: In reply to Steven: - Firstly, Wikipedia isn't a great source to quote. :-D - Secondly, OOP as a style has basic stuff, and it has advanced stuff. I'm not saying teach inheritance and polymorphism on day 1, I'm saying teach that objects have properties (and then objects have

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-22 Thread Ron Wheeler
Ian Thomas wrote: In reply to Steven: - Firstly, Wikipedia isn't a great source to quote. :-D - Secondly, OOP as a style has basic stuff, and it has advanced stuff. I'm not saying teach inheritance and polymorphism on day 1, I'm saying teach that objects have properties (and then objects have

Re: [Flashcoders] This is not Java: property accessors

2007-08-22 Thread Ron Wheeler
T. Michael Keesey wrote: On 8/22/07, Alan MacDougall [EMAIL PROTECTED] wrote: Further derail! What are people's thoughts on implicit vs. explicit accessors? I prefer explicit ones, but I confess that it's almost entirely because I learned Java before Actionscript. I think a lot of

Re: [Flashcoders] Property Access

2007-08-22 Thread Ron Wheeler
to meet new needs and ideas without breaking existing code. According to Ron Wheeler, I'm a bad coder. I respectfully disagree. :) Disagreeing with me is not, in itself, evidence of much. If I was to hire you as a consultant, I would be careful about standards and design reviews. Coding does

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-21 Thread Ron Wheeler
I do not believe that starting people out doing things the wrong way is ever a good start. Teach OOP from the day one. Not as a name or a theory but as a normal way to program. Just start with simple classes and give the students a framework for testing that they do not have to deal with. You

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-21 Thread Ron Wheeler
Can you explain to me how a function is intrinsically simpler than a method? I have a feeling that there is a lot more mythology about OOP than there should be. 1) OOP uses the same compiler as spaghetti code. 2) OOP is written using procedural languages (the opposite of procedural is

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-21 Thread Ron Wheeler
They do know their names. They are just not going to give you the satisfaction of coming just because you called them. That is what dogs were invented for. Ron Troy Rollins wrote: On Aug 21, 2007, at 3:54 PM, Ron Wheeler wrote: Lesson 2 How do you set/change a cats name? How do you create

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-21 Thread Ron Wheeler
Interesting point. My counter would be that at the age of 14, these kids already have a good understanding of foo+bar (and knowing to days kids fubar as well.) I am not trying to teach them arithmetic. I am interested in showing them how arithmetic is used in the context of programming to

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-21 Thread Ron Wheeler
T. Michael Keesey wrote: On 8/21/07, Steven Sacks [EMAIL PROTECTED] wrote: Object-oriented programming (OOP) is a programming paradigm that uses objects and their interactions to design applications and computer programs. It is based on several techniques, including inheritance,

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-21 Thread Ron Wheeler
That is the problem when you have to use someone's API and it does not follow standards. They probably wrote it before we know the right way to do getters and setters - or they never bothered to read up on the state of the art in programming. Ron T. Michael Keesey wrote: On 8/21/07, Ron

Re: [Flashcoders] Intro to OOP using ActionScript: patterns derail!

2007-08-21 Thread Ron Wheeler
Alan MacDougall wrote: Dave Mennenoh wrote: Lots of programmers never need design patterns as they don't help much unless your architecting large apps, and lots of Flash programmers aren't developing those kinds of apps. Keeping your code organized however should be taught from day one

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-21 Thread Ron Wheeler
T. Michael Keesey wrote: On 8/21/07, Ron Wheeler [EMAIL PROTECTED] wrote: T. Michael Keesey wrote: On 8/21/07, Ron Wheeler [EMAIL PROTECTED] wrote: myShape.x = 500; I hope that you meant myshape.setX(500); Huh? No, that's not part

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Ron Wheeler
where the opposite is true and people create horrible messes of parallel, multidimensional arrays when an array of objects would be much clearer and require a lot less code and infinitely less debugging time. /rant Thanks again! Mike On 8/19/07, Ron Wheeler [EMAIL PROTECTED] wrote: You might

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Ron Wheeler
What is a subroutine? Not used in this millennium. Seems to be a concept from the distant past. Start with OOP. We did not get here by accident. It is easier. It is less prone to errors. It makes your coding examples much smaller and much easier to grasp. Their code exists in a small

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Ron Wheeler
They do claim that men never pass the emotional age of 12 and I have with guys who were 5 with 30 years of experience.. So 4 and 14 are not so far apart (on the male side at least). T. Michael Keesey wrote: On 8/19/07, Ron Wheeler [EMAIL PROTECTED] wrote: Some of the Heads Up Design

[Flashcoders] [Script_in_Action] New Links

2007-08-20 Thread Ron Wheeler
I have added a lot of new links for general graphic design. Some new links to programming books have been added as well. Please check out the Links section and let me know of new links that should be added. I would like to hear from people who are using components that should be included.

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Ron Wheeler
You can learn the basics while using OOP. It is just easier. You can start with simple objects and still write a complete piece of code that has a set of well-defined behaviours and can be stuck into a test program without having to deal with the whole nasty story at once. I am not sure how

Re: [Flashcoders] accessing super fields

2007-08-20 Thread Ron Wheeler
Hans Wichman wrote: Hi, okay thanks that comes as closest to an explanation as I'd like I guess, but. If I declare a method test() in superclass, i can call it from the subclass using super.test(). Whether I have overwritten it or not. So why doesnt the same go for fields. Think

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-19 Thread Ron Wheeler
You might also want to look at Sandy. It is a 3D engine for Actionscript. Very easy to build 3D applications that might be fun for the kids. Check out Script_in_Action forum for resources and links. Mike Reilly wrote: Thanks so much to all of you for such quick responses. I'm sure my

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-19 Thread Ron Wheeler
Mike Reilly wrote: I think we're on the same path Roy. While I have some future coders, this is Intro for 9th-11th grade kids, so my task is to teach but also whet their appetite for more. My deeper desire is to do it as OO as possible, to better prepare them for AP Comp Sci if they choose.

Re: [Flashcoders] [OT] Improve my design skills

2007-08-18 Thread Ron Wheeler
I have added many of these links to Script_in_Action Ron Jesse Graupmann wrote: Just look around, go to a contemporary bookstore and read up on design history, and then see how it has evolved. http://witcombe.sbc.edu/ARTHLinks.html http://www.architectureweek.com/2001/0905/culture_1-1.html

Re: [Flashcoders] [OT] Improve my design skills

2007-08-17 Thread Ron Wheeler
One of the best books is Head First Design Patterns. Really nice code. Well explained and shows how to get a lot of mileage out of code through thoughtful design. It will make you a better coder and get you thinking about design in new ways. http://groups.yahoo.com/group/Script_in_Action has

Re: [Flashcoders] Classes 101 [was: Version control and Flash ]

2007-08-13 Thread Ron Wheeler
I do not believe that we have had to extend MovieClip in any application so far. We tend to treat Movie Clips as a stage where you put things that you want rendered rather that a functional object. I am not sure that I know the high level theoretical argument but one does see a lot of really

Re: [Flashcoders] Classes 101 [was: Version control and Flash ]

2007-08-11 Thread Ron Wheeler
Some on-line resources General OOP http://java.sun.com/docs/books/tutorial/java/concepts/index.html - short, clear and free http://www.aonaware.com/OOP1.htm - basic stuff again. http://www.desy.de/gna/html/cc/Tutorial/tutorial.html - very long and detail - step by step walk through the

Re: [Flashcoders] Version control and Flash

2007-08-10 Thread Ron Wheeler
Rick Schmitty wrote: We are starting to add our flash projects to SVN but by large every project has all of the AS code inside the actual movie leaving us with just fla's in the repo We are working on getting everyone to develop with .as files they include in the fla, but is there a limit

Re: [Flashcoders] Dynamically setting properties...

2007-08-09 Thread Ron Wheeler
I would think that the trace on a_sprite would be more interesting. I am not sure what a_sprite[i] = obj[i]; is actually supposed to do. The code extract does not show how a_sprite[i] comes into existence or what a_sprite[i] is. To my untrained eye it looks like you are creating an array of

Re: [Flashcoders] Copying an embedded sprite

2007-08-05 Thread Ron Wheeler
You might show a small example of the code with the error. That sometimes gets a bit more interest than a description. Ron {reduxdj} wrote: I am working on *all* actionscript project and i need help from an actionscript code - api sleuth. I have a little difficulty with the some of the api.

Re: [Flashcoders] mtasc and keep

2007-08-04 Thread Ron Wheeler
It is not clear why any classes are in the swf from the IDE. Can you not remove your classes from the fla? That will make you life simpler and get your code into one IDE rather than spread out over 2. What is the error message? Ron Hans Wichman wrote: Hi list, can someone point me to a

Re: [Flashcoders] object Arrays

2007-07-26 Thread Ron Wheeler
Show the whole class definition. The compiler is pretty definite but you have not shown the part that it is complaining about. You are only show the part where it realizes that a complaint is in order. The error is higher up in the code. Ron David Ngo wrote: Are you declaring your

Re: [Flashcoders] Searching within XML

2007-07-25 Thread Ron Wheeler
It is hardy much more work to parse the XML manually. We did a complex search (find me all the things that a fireman might use for personal protection during an earthquake or what respirators are used by first responders or what headgear does the police marine unit wear) without XPath. Just

Re: [Flashcoders] Searching within XML

2007-07-25 Thread Ron Wheeler
Google??? or try guessing from the name. Omar Fouad wrote: com.xfactorstudio.xml.xpath??? where can i get it??? On 7/25/07, Alan MacDougall [EMAIL PROTECTED] wrote: Omar Fouad wrote: I am doing some application on flash that uses an XML file to store data... This application has a search

Re: [Flashcoders] Backend compiled Java or scripted PHP?

2007-07-19 Thread Ron Wheeler
Eclipse, Spring, Hibernate, AXIS and Java is a pretty nice toolkit. Ron David Ngo wrote: Well, in my opinion, Java is much more OOP. PHP is really nothing more than just scripts. It will eventually hit a ceiling and be limited in what it can do. Java, on the other hand, is much more robust,

Re: [Flashcoders] Global Error Handler

2007-07-14 Thread Ron Wheeler
I have updated the link in the Script in Action Link section. Perhaps a more detailed description might be better. Ron eka wrote: Hello :) In my opensource framework you can use a log model and catch the errors with it. 1 - Vegas page project : http://code.google.com/p/vegas/ 2 - Install

Re: [Flashcoders] Application Structure - FlashRemoting MovieClipLoader

2007-07-12 Thread Ron Wheeler
I recommend reading Head First Design Patterns. The code examples are Java but the principles are universal and you get to see how classes can be made to work effectively. The Singleton pattern is one of the patterns discussed. Very entertaining approach to a serious subject. It will save you a

Re: [Flashcoders] Keeping XML Objects

2007-07-05 Thread Ron Wheeler
For performance, if you have to parse it once you might as well convert it to objects . I do not always follow this advice and for the most part, on a reasonably modern PC it really does not matter. You do not have to use XPath. We just parse it in ActionScript in each getter as we need the

Re: [Flashcoders] limit of nodes of XML file that can be parsed?

2007-07-04 Thread Ron Wheeler
A side note but you might look at the Eclipse-based Reload application for SCORM packaging. Takes a lot of the pain out of a cumbersome process. Ron Danny Kodicek wrote: Hi Danny, I'll definitely look into that, if not for this project, it'll come in very handy for later ones. So far I

[Flashcoders] XML for course delivery

2007-07-03 Thread Ron Wheeler
I just wanted to let you know that we have a course delivery application that we wrote about 4 years ago in Flash using XML to control the delivery of material. It uses a few XML files to control the flow. The first is a company file that controls skinning for different customers (logos,

Re: [Flashcoders] XML for course delivery

2007-07-03 Thread Ron Wheeler
: This was set-up a while ago: http://osflash.org/edumatic but has been silent for a while. Maybe your system could help inject some life back into it??? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ron Wheeler Sent: 03 July 2007 16:34 To: flashcoders

Re: [Flashcoders] limit of nodes of XML file that can be parsed?

2007-07-02 Thread Ron Wheeler
I do not think that you are even close to any maximum. There are many applications much bigger than this floating about. What tools do you have for validating XML? We have found that XMLSpy is a really useful tool if you are doing anything serious with XML. It has lots of different applications

Re: [Flashcoders] limit of nodes of XML file that can be parsed?

2007-07-02 Thread Ron Wheeler
You might also try to navigate the XML yourself (and parse it yourself.) I would parse it into arrays of objects rather than arrays. It is a lot easier to ask an object for some information than a multidimensional array. I lot easier to maintain as well. If you put some traces into your

Re: [Flashcoders] Mouse Velocity?

2007-06-21 Thread Ron Wheeler
Would you not eliminate the whole problem by keeping track of the time that the previous position was taken along with its coordinates and use that to calculate the time between the readings and divide that into the distance? Then you do not care if the set interval or on enter frame come at

Re: [Flashcoders] Grid / Math - getting neighbouring positions

2007-06-16 Thread Ron Wheeler
It depends how you define the rings. It is by distance or by connectedness? Is 0,0 in the second ring with 1.0 and 0,1? What is the purpose of knowing this? Ron Jiri Heitlager | dadata.org wrote: Hello list, I have the following grid and would like to find the neighbouring positions of a

Re: [Flashcoders] Gaia Flash Framework Released

2007-06-12 Thread Ron Wheeler
Very neat. Nice introductory demo. Ron Steven Sacks wrote: http://www.stevensacks.net/ Technology author Steven Sacks today announced the free public release of his Gaia Flash Framework® (gaiaflashframework.com). Gaia (pronounced guy-uh) is an open-source framework that provides powerful

Re: [Flashcoders] OT: Upgrading to Windows Vista

2007-06-05 Thread Ron Wheeler
Should not be too slow, I only have 1 Vista install but it is on a notebook with only 2 GB of RAM and of course a much smaller and slower disk. It is used to 3D CAD and it very snappy rendering moderately large models. It keeps up with the mouse when the model is being dragged or rotated.

Re: [Flashcoders] Child Object positions

2007-06-05 Thread Ron Wheeler
Built-in or free. You can probably find somehting to buy. Try doing a Google to see if you can find a good tutorial Ron Cary Ho wrote: Wow, flash is pretty flexible. Well, we use struts, so its java with servlets/jsps. Can flash use javascript? I use dwr a lot, so I wouldnt mind passing

Re: [Flashcoders] Best Practices question...

2007-06-02 Thread Ron Wheeler
It is called encapsulation. No one should know how a class does its magic. The external classes are programmed to the interface (methods)(preferably to an interface class rather than directly to the implementation) , they are not allowed to peek inside. What if you find a better way to

Re: [Flashcoders] class file updated, but .aso not updated?

2007-05-24 Thread Ron Wheeler
Happens all the time on this list. Sorry I did not see your post earlier. Tends to drive you crazy and makes you doubt your whole understanding of reality. The more things you change, the more things stay the same!!! Ron James Tu wrote: Figured it out: I'm using runtime shared libraries.

Re: [Flashcoders] CVS and Flash best practice advice needed

2007-05-16 Thread Ron Wheeler
We use Eclipse with CVS and it works well. I am trying to follow as many of the Java best practices as I can since they have had a lot of time to figure out how to run complex projects with teams of people. I am hoping that the renewed activity in the ASDT plug-in will lead to a strong Eclipse

Re: [Flashcoders] Strange problem with AS2 class

2007-05-13 Thread Ron Wheeler
Lots of ways for things to not work. Where do you call the constructor? Does that get executed? What does the code look like? Webdevotion wrote: Hello, I'm working on an excisting project. The project needed radiobuttons, so I made a radiobutton component. It works perfectly in my stand

Re: [Flashcoders] Any good XML api out there?

2007-05-03 Thread Ron Wheeler
Create a Track object which has name and artist properties. Write 1 line simple setters and getters and a constructor that takes an XML subtree and extracts the Track detail (This way you can add more to the track without having to touch anyone else.) Create a root object that has a list of

Re: [Flashcoders] drawing with mouse / pen

2007-05-02 Thread Ron Wheeler
Frustrating a user may not be new but it can be exciting if the customer decides its your fault. Why not suggest something like changing the mouse into a into a hammer or mallet and the answers into nails or gophers. If can make the animation as funny as the client can stand. Ron Hairy Dog

Re: [Flashcoders] factory with varying numbers of params

2007-05-02 Thread Ron Wheeler
Looks like a Decorator Pattern. Danny Kodicek wrote: Thanks a lot for all the replies. Most helpful. It's a funny situation. I'm using a deserialised XML file to dictate the content and layout of each page. A page might contain 1. A heading, 2. A TextField 3. A link or it might contain

Re: [Flashcoders] AS2: generating new instances dynamically?

2007-05-01 Thread Ron Wheeler
I am not sure if you are showing all the code but in your code fragment, newPost is a local variable that will be destroyed as soon as createPost ends. A short and brutal life. It needs to be a class property and you will want to have a getter to access it. Ron sebastian chedal wrote:

Re: [Flashcoders] rotate a cube

2007-05-01 Thread Ron Wheeler
Why not Sandy3D ??? Waseem Shahzad wrote: Hello Flashcoders I am trying to rotate a cube which i made in the flash authoring environment. However it is not a real cube but I don't want to use API to make a cube first and then rotate it. I want that a cube which have a specific design then it

Re: [Flashcoders] Re: OOP: design patterns: multiple MVCs?

2007-04-30 Thread Ron Wheeler
.png State machines are quite interesting, and I think I'll use that form of logic with switch-case statements inside of the PageBuilder class. Thanks for the reference! The program I am using for the charts is OmniGraffle, which I think is Mac only. :P With kind, Sebastian. Ron Wheeler wrote

Re: [Flashcoders] compare Objects

2007-04-30 Thread Ron Wheeler
It is more reasonable to include a method in the class to compare itself to another instance of itself. x= new myObj(1,2,3) y=new MyObj(1,2,4) trace (x.isequal(y)) Ron Gilles Roquefeuil wrote: Hello, seems trivialo, but is there a simpler way to compare two identically formed objects than

Re: [Flashcoders] compare Objects

2007-04-30 Thread Ron Wheeler
Fix a small typo It is more reasonable to include a method in the class to compare itself to another instance of itself. x= new MyObj(1,2,3) y=new MyObj(1,2,4) trace (x.isequal(y)) Ron Gilles Roquefeuil wrote: Hello, seems trivialo, but is there a simpler way to compare two identically

Re: [Flashcoders] flowcharting

2007-04-28 Thread Ron Wheeler
Free at last, free at last! No more MS-Office. Ron nik crosina wrote: Looked at openoffice and fell in love! Thanks, Ron!! Have a nice weekend, Nik On 4/27/07, Ron Wheeler [EMAIL PROTECTED] wrote: OpenOffice has a nice drawing tool with all of the flowcharting symbols defined

Re: [Flashcoders] Re: OOP: design patterns: multiple MVCs?

2007-04-28 Thread Ron Wheeler
Nice diagram ;-) could be designed with several Model-View-Controller rings in it Without getting too deep into your application, it looks like might want to think about a Controller with set of nested state machines inside. From what you wrote, it seems that this is where you are headed

Re: [Flashcoders] flowcharting

2007-04-27 Thread Ron Wheeler
OpenOffice has a nice drawing tool with all of the flowcharting symbols defined. www.openoffice.org You can colour and shade them to your hearts content. I built a flowcharting add-on to Compendium www.compendiuminstitute.org http://www.compendiuminstitute.org/community/bpa.html is a link to a

Re: [Flashcoders] AS2.0 Question - passing data between classes

2007-04-24 Thread Ron Wheeler
You might want to read Head First Design Patterns for some good ideas about how to write good code. Lots of practical ideas about many of te situations that you need to resolve. Ron Andrew wrote: Hi I'm new to OOP programming in AS2. I'm writing two classes right now. One which

  1   2   3   >