Re: [Flashcoders] Automatically Declare Stage Instances and inheritance.
If you want to have the flexibility of not having to define it, you can always make the class dynamic On Sun, May 11, 2008 at 12:42 AM, Chris [EMAIL PROTECTED] wrote: Ok, so I've done a bit of googling and found nothing. And the mailing lists search features are less than ideal (sorry). Apologies if this has been gone over before: I have created an example problem here: http://ubergeek.tv/inheritance_declare_problem.zip The inheritanceDemo.fla shows that classes linked to symbols that extend class with items on the timeline causes a compiler error: 1152: A conflict exists with inherited definition AlertBase.okButton in namespace public.� While if I uncheck the 'Automatically Declare Stage Instances' checkbox and declare my okButton manually everything works. This seems like a big deal to me. Since we re-use code as much as possible, it seems like we either need to assume this box is checked or not and base our code on this. Additionally we can assume incompatibilities with 3rd party code based upon whether they checked this box. It would seem that this checkbox shouldn't exist and that all stage vars should be declared manually. I must be doing something wrong. What are the best practices here? Besides unchecking that box, is there any way to get around these errors? Thanks Chris Hill ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- M.A. van't Kruis http://www.malatze.nl/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Loosing full-screen when loosing focus
fyi extending AIR on windows http://blog.fluorinefx.com/?p=4 / http://aperture.fluorinefx.com/ But it does not provide native access on Mac. Zoli -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bart Goormans Sent: Saturday, May 10, 2008 11:36 PM To: Flash Coders List Subject: Re: [Flashcoders] Loosing full-screen when loosing focus Thanks Rich, I had a chat last week with a sales representative from ScreenTime Media's mProjector. He told me it would be at least two months for the Windows AS3 Update of mProjector. Could even be some considerable more time. The mac AS3 version is out in beta as you said. The official release would be sooner than the Windows version but ScreenTime couldn't give an exact date for neiher. We will be dealing with the OS, reading and writing and most propably some networking too. I checked out Zinc. My first thoughts were that it ran rather slow. Seems to me mProjector is more integrated into the production process. It will be a long term project. Maybe we'll get back on this. As for now, if I would have to select an option, I'd choose to sit and wait for the AS3 mProjector. Although sitting and waiting will be something we won't be doing here, that's for sure. Cheers, Bart Rich Shupe schreef: If you are only READING files, you have a bit more options. If you are writing files, or dealing with the OS extensively in traditional application ways, you pretty much have to go with a projector enhancer. You can't really use the browser, and you can't use AIR. Some may say that their are other options by extending those environments (server-based saving--to server or locally, Java applets that add functionality to the browser, etc., but I don't consider them realities for the average user. mProjector is AS3-stable on the Mac, but not yet released on Windows, so that probably isn't a reality for an AS3 project. I've heard good and terrible things about Zinc, so I can't offer any opinions there. I'm sure others have used it and may be able to help. Finally, I've never had the slightest interest in any product that isn't cross-platform, so I can't speak to any of the Windows-only, or Mac-only (if there are any) options. Anyone else have any opinions on proj-enhancers? On 4/29/08 2:31 PM, Bart Goormans wrote: Our app will be a sort of backoffice in which we will be dealing with the filesystem extensively. It will be managing mediafiles and dig into its xml metatags. From the start on, this project is completely AS3 based. So I 'd better test the mProjector thoroughly beeing in beta for AS3. I haven't had too much experience on building full scale apps in flash but this will be an adventurous challenge. Hope to get the squares out of the wheels soon and start rollin' ;-)) Thx! Rich http://www.LearningActionScript3.com ___ 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] merging data problem
Thanks Jason and Juan, I tested it out and the splicing works really well. One thing I'm noticing is when I uncomment and add another index, I get a compile error. I messed with the splice index number, but received unsuccessful results. Any thoughts on this? var workData:Array = new Array(); //workData.push({pm:Bob, resource:Anthony, client:Microsoft, role:Developer, job:XXX-, totalHours:40}); workData.push({pm:Dan, resource:Anthony, client:Microsoft, role:Developer, job:XXX-, totalHours:50}); workData.push({pm:Bob, resource:Anthony, client:Microsoft, role:Developer, job:XXX-, totalHours:30}); workData.push({pm:Dan, resource:Anthony, client:Microsoft, role:Developer, job:XXX-, totalHours:50}); trace(workData); // for each item in the array for ( var i = workData.length - 1; i = 0; i-- ){ // compare to all other array elements for ( var j = workData.length - 1; j = 0; j-- ) { if ( workData[i].pm == workData[j].pm i != j) { for ( var props in workData[i] ) { workData[i][props] = workData[j][props]; } trace(index: + j ); workData.splice(j, 1); } } } trace(workData); ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] merging data problem
Hi Anthony, I didn't test your code, but I think the problem lies in your for loops. When you get such an error it is probably an index out of bounds. You could try the following, didn't test it by the way. workData.sortOn(pm); for(var i:int = 0 ; i workData.length - 1 ; i++) { if(workData[i].pm == workData[i+1].pm) { workData.splice(i,1); i = -1; } } Good luck, Bernard -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Anthony Cintron Verzonden: zondag 11 mei 2008 18:55 Aan: flashcoders@chattyfig.figleaf.com Onderwerp: [Flashcoders] merging data problem Thanks Jason and Juan, I tested it out and the splicing works really well. One thing I'm noticing is when I uncomment and add another index, I get a compile error. I messed with the splice index number, but received unsuccessful results. Any thoughts on this? var workData:Array = new Array(); //workData.push({pm:Bob, resource:Anthony, client:Microsoft, role:Developer, job:XXX-, totalHours:40}); workData.push({pm:Dan, resource:Anthony, client:Microsoft, role:Developer, job:XXX-, totalHours:50}); workData.push({pm:Bob, resource:Anthony, client:Microsoft, role:Developer, job:XXX-, totalHours:30}); workData.push({pm:Dan, resource:Anthony, client:Microsoft, role:Developer, job:XXX-, totalHours:50}); trace(workData); // for each item in the array for ( var i = workData.length - 1; i = 0; i-- ){ // compare to all other array elements for ( var j = workData.length - 1; j = 0; j-- ) { if ( workData[i].pm == workData[j].pm i != j) { for ( var props in workData[i] ) { workData[i][props] = workData[j][props]; } trace(index: + j ); workData.splice(j, 1); } } } trace(workData); ___ 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] merging data problem
Antony, try this... var workData:Array = new Array(); workData.push({pm:Bob, resource:Anthony, client:Microsoft, role:Developer, job:XXX-, totalHours:40}); workData.push({pm:Dan, resource:Anthony, client:Microsoft, role:Developer, job:XXX-, totalHours:50}); workData.push({pm:Bob, resource:Anthony, client:Microsoft, role:Developer, job:XXX-, totalHours:30}); workData.push({pm:Dan, resource:Anthony, client:Microsoft, role:Developer, job:XXX-, totalHours:50}); trace(workData); // for each item in the array for ( var i = 0; i workData.length; i++){ // compare to all other array elements for ( var j = workData.length - 1; j i; j-- ) { if ( workData[i].pm == workData[j].pm) { for ( var props in workData[i] ) { workData[i][props] = workData[j][props]; } trace(index: + j ); workData.splice(j, 1); } } } trace(workData); Paul - Original Message - From: Anthony Cintron [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Sunday, May 11, 2008 5:54 PM Subject: [Flashcoders] merging data problem Thanks Jason and Juan, I tested it out and the splicing works really well. One thing I'm noticing is when I uncomment and add another index, I get a compile error. I messed with the splice index number, but received unsuccessful results. Any thoughts on this? var workData:Array = new Array(); //workData.push({pm:Bob, resource:Anthony, client:Microsoft, role:Developer, job:XXX-, totalHours:40}); workData.push({pm:Dan, resource:Anthony, client:Microsoft, role:Developer, job:XXX-, totalHours:50}); workData.push({pm:Bob, resource:Anthony, client:Microsoft, role:Developer, job:XXX-, totalHours:30}); workData.push({pm:Dan, resource:Anthony, client:Microsoft, role:Developer, job:XXX-, totalHours:50}); trace(workData); // for each item in the array for ( var i = workData.length - 1; i = 0; i-- ){ // compare to all other array elements for ( var j = workData.length - 1; j = 0; j-- ) { if ( workData[i].pm == workData[j].pm i != j) { for ( var props in workData[i] ) { workData[i][props] = workData[j][props]; } trace(index: + j ); workData.splice(j, 1); } } } trace(workData); ___ 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