RE: [Flashcoders] central up to date data
You may want to look into using a Singleton or static class, depending on how you have things implemented and what the desired functionality is. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Huynen Sent: Friday, October 19, 2007 5:41 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] central up to date data Hi List! I'm using a class named utils.as to store data like color values in my project. This class is then extended by let's say the application.as and the menu.as. Next in the application class I change the value of a var in the utils class. When retrieving this value from the third (menu) class I still get the old value instead of the new one. What is the best thing to do when I want to keep my data central, up to date and accesible for all classes in my project? Kind regards, Tom ___ 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] Intro to OOP using ActionScript
What kind of argument is that? I've never learned to ski and I was able to pick up snowboarding. One is not dependant upon the other. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Winterhalder Sent: Tuesday, August 21, 2007 4:41 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Intro to OOP using ActionScript If you take somebody snowboarding and force them to learn how to do a 720 without teaching them anything else, they will eventually be able to do a 720. If you instead teach them all the basic moves, how to enter and exit tricks, and then move into 180s, 270s and 360s, they'll be much better at snowboarding in general and will naturally learn 720s soon after. You can't just teach somebody to snowboard without first teaching them how to ski. They need to get a feeling for the snow first, on two boards, learn how to use the lift and so on. But in terms of programming, I agree with Ron. OOP is more natural and closer to real life experiences. Mark On 8/21/07, Steven Sacks [EMAIL PROTECTED] wrote: Procedural isn't wrong. OOP isn't right. They're used for different purposes. The fact is, OOP is a trade off for flexibility and scalability over speed; speed in development, speed in execution. Procedural programming has its place (ask any game developer). Procedural programming is a necessary and important first step in learning how to code. It's the best way to learn how programming works because it's a simplified approach and won't get in the way of learning basic syntax. People with no programming experience will not understand abstract concepts like classes, inheritance, polymorphism, and encapsulation - the very things that make up OOP. OOP is a specialized dialect, built upon the basic language of programming. If you don't learn the basics, you can't truly learn the dialect. It's akin to learning phrases from a French phrase book and going to Paris on vacation versus learning how conjugation and verb tenses work combined with vocabulary. Who is going to be more successful at carrying on rudimentary conversations, or understanding what's being said to them? If we take two students and you teach them OOP for 1 month and I teach them procedural for two weeks and then OOP for two weeks, my student will be further along than your student. The reason is simple. When you learn the fundamentals first you have a greater capacity for understanding of more advanced topics. If you take somebody snowboarding and force them to learn how to do a 720 without teaching them anything else, they will eventually be able to do a 720. If you instead teach them all the basic moves, how to enter and exit tricks, and then move into 180s, 270s and 360s, they'll be much better at snowboarding in general and will naturally learn 720s soon after. Plus, if you sit down with non-programmers to teach them OOP, and you have to teach them the basics first, you will find yourself naturally teaching them procedural programming because every time you try to move into topics OOP, your students will get lost and you'll end up circling back to explain the basics again. OOP is not a beginner topic. ___ 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@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] Intro to OOP using ActionScript
I'm with Steven on this one. I, too, started way back in the days of procedural programming (Turbo Pascal, anyone?) and all of that taught me to understand the basic how's and why's of programming. I see a lot of new developers today who take what they read verbatim and apply it only because everyone else tells them they should. They don't necessarily understand the 'why' and, to me, that's just as important as learning about literals, syntax and objects. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: Monday, August 20, 2007 1:09 PM To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Intro to OOP using ActionScript What is a subroutine? Not used in this millennium. Seems to be a concept from the distant past. Distant past? Subroutines are the foundation of DRY and OOP. http://en.wikipedia.org/wiki/Subroutine This is exactly what I mean by developers taking for granted what it took to get them where they are, and I think it proves my point. You learn something until you forget it, meaning it becomes second nature and you cease to think about it, it has become hardwired. So, while the term subroutine might feel like a concept from the distant past, that's because it is a concept from your distant past when you were first cutting your teeth that has become something that is now simply accepted knowledge, and you take for granted that you understand it. A subroutine is one of the foundational concepts of programming, especially OOP, and understanding subroutines and why they're used is fundamental to programming in general. Again, there are more to the basics of programming than just knowing Arrays, Strings, Numbers, math, iteration, etc. OOP is just not beginners territory. Intermediate at best. If you wanted to teach OOP at a conceptual level without digging into actual code, I could see a use for that, but you can't teach coding 101 while teaching a 300 level course. ___ 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
RE: [Flashcoders] Version control and Flash
Anyone found guilty of using AS includes, is killed, revived and killed again :) LOL. I say the same thing about people using onEnterFrame's for almost everything, like XML loading/parsing. ___ 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] Classes 101 [was: Version control and Flash ]
Uh, and what if I just need to do some mathematical calculations that have nothing to do with MovieClips or visual elements? :) Not all classes need to be associated with MovieClips (either by inheritance or composition/aggregation). Classes are nothing more than Objects that can have methods (aka functions) and/or properties (aka variables) and can even inherit (extends) an existing Class/Object type or implement (err, I guess implements) an interface. Inherently, all classes extend Object anyways but that's probably out of the scope of this discussion. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hans Wichman Sent: Friday, August 10, 2007 4:16 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Classes 101 [was: Version control and Flash ] Hi, well ofcourse lots of ways lead to Rome.. trouble is even more ran past it, into a chasm most likely, but you probably see two types of scenario's that are most common: 1. your class extends a movieclip 2. your class wraps a movieclip I dont want to get into a discussion on what the better solution, both cases are similar. In your example you have a button. This button is probably on a screen/view/form whatever. Commonly you will implement a class for this form. As said either it subclasses the movieclip containing the button directly (which means you will have a reference, you'll only need to declare it again in the class to satisfy the compiler eg class MyForm extends MovieClip { } On 8/10/07, Marcelo Wolfgang [EMAIL PROTECTED] wrote: On 8/10/07, Hans Wichman [EMAIL PROTECTED] wrote: Hehe no worries there, I'm sure we all do stuff that causes someone else to say they need to kill... etc :) It was meant as a joke nothing harsh to be honest:). I got it :) You are hijacking this thread though, which is in itself ofcourse enough reason to ... :) Sorry, I was about to ask about this for quite sometime, but I'm too f. busy recently and when I saw the joke I had to answer :) Some answer though: - you dont code AS2 classes on frames, you just write as2 classes in files. Once you compile your movie, flash lets you specify in which frame your classes should be exported. I think what I don't get the most is how do I transform this function myFunction(){ return this; } to a class and how I can call it later in something like btClose_mc.onRelease = myFunction(); i'm thinking in buying moock's essential actionscript 3, but I'm afraid it will hard to jump from where I'm now to where the book is. TIA Marcelo Wolfgang ___ 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@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] Classes 101 [was: Version control and Flash ]
I'm not going to hijack this thread and get into a debate of inheritance vs. composition vs. whatever so I'll just pose this quick question to you. Keep in mind the context of the original question which led to the discussion here (having code on the timeline vs. using classes): If I need to create an algorithm to perform a series of calculations based off each other, where do I put that? Do I put it in a class that extends MovieClip or in a generic class? Or, going by your option, stick it on the timeline and use Math. :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hans Wichman Sent: Friday, August 10, 2007 4:45 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Classes 101 [was: Version control and Flash ] use Math. :))) your turn :) On 8/10/07, David Ngo [EMAIL PROTECTED] wrote: Uh, and what if I just need to do some mathematical calculations that have nothing to do with MovieClips or visual elements? :) Not all classes need to be associated with MovieClips (either by inheritance or composition/aggregation). Classes are nothing more than Objects that can have methods (aka functions) and/or properties (aka variables) and can even inherit (extends) an existing Class/Object type or implement (err, I guess implements) an interface. Inherently, all classes extend Object anyways but that's probably out of the scope of this discussion. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hans Wichman Sent: Friday, August 10, 2007 4:16 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Classes 101 [was: Version control and Flash ] Hi, well ofcourse lots of ways lead to Rome.. trouble is even more ran past it, into a chasm most likely, but you probably see two types of scenario's that are most common: 1. your class extends a movieclip 2. your class wraps a movieclip I dont want to get into a discussion on what the better solution, both cases are similar. In your example you have a button. This button is probably on a screen/view/form whatever. Commonly you will implement a class for this form. As said either it subclasses the movieclip containing the button directly (which means you will have a reference, you'll only need to declare it again in the class to satisfy the compiler eg class MyForm extends MovieClip { } On 8/10/07, Marcelo Wolfgang [EMAIL PROTECTED] wrote: On 8/10/07, Hans Wichman [EMAIL PROTECTED] wrote: Hehe no worries there, I'm sure we all do stuff that causes someone else to say they need to kill... etc :) It was meant as a joke nothing harsh to be honest:). I got it :) You are hijacking this thread though, which is in itself ofcourse enough reason to ... :) Sorry, I was about to ask about this for quite sometime, but I'm too f. busy recently and when I saw the joke I had to answer :) Some answer though: - you dont code AS2 classes on frames, you just write as2 classes in files. Once you compile your movie, flash lets you specify in which frame your classes should be exported. I think what I don't get the most is how do I transform this function myFunction(){ return this; } to a class and how I can call it later in something like btClose_mc.onRelease = myFunction(); i'm thinking in buying moock's essential actionscript 3, but I'm afraid it will hard to jump from where I'm now to where the book is. TIA Marcelo Wolfgang ___ 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@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
RE: [Flashcoders] Classes 101 [was: Version control and Flash ]
Precisely my point. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: Friday, August 10, 2007 7:13 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Classes 101 [was: Version control and Flash ] Not all classes have to extend MovieClip (in fact, most shouldn't, and some would argue none should). class tld.domain.project.utils.Algorithms { public static function someCalc(n:Number):Number { // do some calculations on n return n; } } David Ngo wrote: I'm not going to hijack this thread and get into a debate of inheritance vs. composition vs. whatever so I'll just pose this quick question to you. Keep in mind the context of the original question which led to the discussion here (having code on the timeline vs. using classes): If I need to create an algorithm to perform a series of calculations based off each other, where do I put that? Do I put it in a class that extends MovieClip or in a generic class? Or, going by your option, stick it on the timeline and use Math. ___ 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
RE: [Flashcoders] Dang IE...
ID's for HTML DOM objects should always be unique. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Mennenoh Sent: Thursday, August 09, 2007 10:05 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Dang IE... It's a problem with External Interface under IE. Actually it was not. ExternalInterface works fine... It was a problem with SWFObject - in that I had the name of the object's ID set to that of the div. IE didn't like that I guess. All fixed now, but thanks. Dave - Head Developer http://www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/ ___ 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
RE: [Flashcoders] BlendModes MovieClipLoader
MovieClipLoader works much in the same way as loadMovie. As soon as your file loads, it will destroy any current properties for the MovieClip it's loaded into and set them all back to default. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gilles Roquefeuil Sent: Tuesday, August 07, 2007 3:27 AM To: Flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] BlendModes MovieClipLoader Hello, I work on a bitmapEditor module for a large project, and i have experienced some problems between hte MovieClipLoader and the blendMode of the loaded clip. It seems that whenerever I load a clip using MoveClipLoader, the prerecorded blendMode of the clip switches to normal... Anyone has a clue ? Thanks a lot, Gilles ___ 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
RE: [Flashcoders] Coding a circular preloader
Uh, you could implement easing but I'm of the same opinion as Steve here where it wouldn't make any sense to kill an ant with a sledgehammer. At any rate, the easing would be based off a timer instead of frames. Pseudo code AS2 using the Tween class would be: var interval:Number = setInterval(this, 'showProgress', 100); function showProgress():Void { new Tween(scope, 'property', Easetype, currentVal, newVal, 0.1, true); } You could change the interval and have the Tween's seconds be either equal to or less than the interval. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: Monday, August 06, 2007 2:38 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Coding a circular preloader Easing? You're showing linear data. A visual representation of a number from 0-100. I'm not sure how easing fits into this. Your boss sounds like a real genius because it's absolutely brilliant to force somebody to spend many hours building something that could be built in 5 minutes - really smart use of time and money. He should write a book on how to be successful in business. ___ 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
RE: [Flashcoders] Lines in textArea
Look into TextFormat.getTextExtent() as well. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alan MacDougall Sent: Monday, August 06, 2007 4:41 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Lines in textArea Volker Scarpatetti - Advertis Interactiva wrote: Hi ! Is there a way to know how many lines are written in a textArea component when filling it up dynamically ? This is not a perfect solution, but if you know the TextField.textHeight when there is a single line, you should be able to do a bit of division (possibly compensating for leading and such) to figure out the number of current lines. ___ 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
RE: [Flashcoders] Coding a circular preloader
I'm not sure what you mean. What don't you have? The pseudo code I posted is fairly easy to implement. If you're using the drawing API to render your circle or partial circle, just tap into the Tween class' onMotionChanged event to update your vector shape. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Omar Fouad Sent: Monday, August 06, 2007 5:09 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Coding a circular preloader Hahaha Steven :D that was a good one ;). Thanks david.. but I don't have it.. i'll try to convince my boss. But i would like to know the same how that could be achieved like in the website. -- Omar M. Fouad - Digital Emotions http://www.omarfouad.net This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ___ 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
RE: [Flashcoders] Q:optimizing a Calendar app
Using getTime() isn't ideal since that's creating a timestamp based on milliseconds, which would be unique. The first option is probably the safer bet to be able to index things by a specific date (as opposed to a time). If you're using AS3, then I'd say use a Dictionary object (same as a hash, except you're not using a generic Object). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: Sunday, July 29, 2007 12:42 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Q:optimizing a Calendar app That is a very expensive way to do it. You should, instead, make a hash and the keys would be the date, and the values would be an array of appointments for that date. events = {}; events[month + / + day + / + year] = []; events[month + / + day + / + year].push(appointment); Then each day of the calendar would just do a look up of itself in the hash. events[calendarDate]; You could also store the key as a new Date().getTime() instead of a string with month/day/year. It's entirely up to you. HTH! Steven Sacks Flash Maestro Los Angeles, CA -- blog: http://www.stevensacks.net ___ 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
RE: [Flashcoders] object Arrays
Are you declaring your properties public or have public getters to access them within your class? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ilteris kaplan Sent: Thursday, July 26, 2007 3:18 PM To: Flash Lists Subject: [Flashcoders] object Arrays Hello All, Basically I am trying to create a object which I can pass to my array and then access some properties of this object. Only problem is, I am trying to achieve this in a class. Basically I declared my array as a class variable and then instantiated it in my constructor function in the class. I do have this function which is supposedly to create an object with certain properties. private function lizPieceObj(levelup:MovieClip, lizPieceMc:MovieClip, masker:MovieClip, levelMasker:MovieClip) { // build an obj to mimick 2d array. this.levelup = levelup; this.lizPieceMC = lizPieceMC; this.masker = masker; this.levelMasker = levelMasker; } Here is, in another function, I am trying to create this object. piecesArray[index] = new lizPieceObj(levelup, lizPieceMc, masker, levelMasker); in order to access them later like piecesArray[index].levelup, piecesArray[index].masker etc. But upon compilingthe code, I do get this error. There is no property with the name levelup. There is no property with the name lizPiece, There is no property with the name masker etc. you get the idea. I am assuming this is something to do with scope. I am yet not sure how to deal with it though. Thanks a lot. ___ 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
RE: [Flashcoders] AS3 instantiating a new class object from a stringvalue
Look at getDefinitionByName. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jake Prime Sent: Thursday, July 26, 2007 9:27 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] AS3 instantiating a new class object from a stringvalue I'm not sure about the actual code to instantiate, however make sure that the class you are creating is actually compiled in the first place. If it is not explicitly mentioned in your code somewhere it will not be compiled and will not be able to be created at run-time. jake On 26/07/07, Matt Muller [EMAIL PROTECTED] wrote: Hi, I'm trying to instantiate a new class object from a xml attribute which is a string, but its not having any of it. I've tried casting the string to an object and also using this['class_id'] etc but no luck. Does someone have a solution? Thanks, MaTT ___ 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@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] CDATA Html Text not working
If you're using Flash 8, XPath was already integrated into its library/API. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris W. Paterson Sent: Tuesday, July 24, 2007 1:44 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] CDATA Html Text not working Great! That works! Thanks so much!! I'll look into that XPath... Maybe not for this project since it's on a tight deadline, but for the future! Thanks! Chris --- Alan MacDougall [EMAIL PROTECTED] wrote: Chris W. Paterson wrote: this.firstChild.childNodes[i].firstChild.childNodes[j].childNodes;--- this is how I am trying to access the content of that node. First off, I'm guessing I should use .nodeValue? Will that give me the entire node with ![CDATA[]]? Is it even possible to read the html value for html text? Yep, there's the problem. The content of an XML node is a node in itself -- it's just a text node. It looks like this: foomy text/foo foo -- part of node A my text -- node B /foo -- part of node A So to get the text inside that foo tag, let's say we have: var fooNode:XMLNode; var textNode:XMLNode = fooNode.firstChild; var myText:String = textNode.nodeValue; myTextField.htmlText = myText; // now it should look right As you can see, the child node of foo is an XMLNode which contains the text -- it's not the string itself. I've used CDATA in XML plenty of times, and your HTML text fields will interpret the HTML as long as you're getting the string value of the text node. As for all that confusing child.firstChild.childNodes[n].child business, may I suggest XFactorStudios' excellent XPath implementation? www.xfactorstudio.com -- and then you can specify your XML with simple syntax like this: // gets an Array of XMLNodes; specifically, all bar inside a foo, starting from rootNode var nodes:Array = XPath.selectNodes(rootNode, foo/bar); It's a less confusing than manually walking the XML tree, and allows some pretty complex searches once you really get into it. ( http://www.w3.org/TR/xpath is very dense, but section 2 may give you an example of XPath's power.) ___ 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 Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mailp=summer+activities+for+kidsc s=bz ___ 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
RE: [Flashcoders] CDATA Html Text not working
Correct, but for most parsing functionality, the ones included in Flash 8 should be sufficient. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, July 24, 2007 2:00 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] CDATA Html Text not working But only a partial one, right? That's what I understood - others have commented on it. I have used xfactorstudios Xpath classes instead. AS3 takes care of it though if you can go that route. Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Ngo Sent: Tuesday, July 24, 2007 1:55 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] CDATA Html Text not working If you're using Flash 8, XPath was already integrated into its library/API. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris W. Paterson Sent: Tuesday, July 24, 2007 1:44 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] CDATA Html Text not working Great! That works! Thanks so much!! I'll look into that XPath... Maybe not for this project since it's on a tight deadline, but for the future! Thanks! Chris --- Alan MacDougall [EMAIL PROTECTED] wrote: Chris W. Paterson wrote: this.firstChild.childNodes[i].firstChild.childNodes[j].childNodes;-- - this is how I am trying to access the content of that node. First off, I'm guessing I should use .nodeValue? Will that give me the entire node with ![CDATA[]]? Is it even possible to read the html value for html text? Yep, there's the problem. The content of an XML node is a node in itself -- it's just a text node. It looks like this: foomy text/foo foo -- part of node A my text -- node B /foo -- part of node A So to get the text inside that foo tag, let's say we have: var fooNode:XMLNode; var textNode:XMLNode = fooNode.firstChild; var myText:String = textNode.nodeValue; myTextField.htmlText = myText; // now it should look right As you can see, the child node of foo is an XMLNode which contains the text -- it's not the string itself. I've used CDATA in XML plenty of times, and your HTML text fields will interpret the HTML as long as you're getting the string value of the text node. As for all that confusing child.firstChild.childNodes[n].child business, may I suggest XFactorStudios' excellent XPath implementation? www.xfactorstudio.com -- and then you can specify your XML with simple syntax like this: // gets an Array of XMLNodes; specifically, all bar inside a foo, starting from rootNode var nodes:Array = XPath.selectNodes(rootNode, foo/bar); It's a less confusing than manually walking the XML tree, and allows some pretty complex searches once you really get into it. ( http://www.w3.org/TR/xpath is very dense, but section 2 may give you an example of XPath's power.) ___ 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 __ __ Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mailp=summer+activit ies+for+kidsc s=bz ___ 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@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
RE: [Flashcoders] Returning a String fails
I'd probably still put it in some sort of util function you can call anywhere. function eliminateSpaces(phrase:String):String { return phrase.split(' ').join(''); } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rákos Attila Sent: Tuesday, July 24, 2007 4:35 PM To: Mendelsohn, Michael Subject: Re: [Flashcoders] Returning a String fails You should rethink what you are doing :) If the string passed contains more than 1 space, your function will not return anything. Do you see a return statement here? if (phrase.indexOf( ) != -1) { eliminateSpaces(phrase); } Well, and the whole function seems to be an overkill, you can reach the same result with a single line: phrase = phrase.split( ).join(); Attila =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- =-= From:Mendelsohn, Michael [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com flashcoders@chattyfig.figleaf.com Date:Tuesday, July 24, 2007, 10:22:06 PM Subject: [Flashcoders] Returning a String fails --== =-- Hi list... I've written a simple routine to eliminate spaces from a user entered string. But, it won't return the string. I'm sure it's something silly. Can anyone shed light? - MM function eliminateSpaces(phrase:String):String { var foundSpace = phrase.indexOf( ); if (foundSpace != -1) { phrase = String(phrase.substring(0, foundSpace) + phrase.substring(foundSpace + 1)); if (phrase.indexOf( ) != -1) { eliminateSpaces(phrase); } else { trace(output: + phrase); return phrase; } } } var s:String = eliminateSpaces(moe and larry and curly); trace(s); /* RESULT: output: moeandlarryandcurly Undefined */ ___ 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@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] Slightly OT: Flex vs. Flex Builder
Actually, FlexBuilder comes in two flavors: 1 is an Eclipse plug-in to use with an existing Eclipse installation. The other is a stand-alone IDE (essentially the same as Eclipse 3.1 with some modifications for Flex-specific functionality) billed as FlexBuilder. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Watts Sent: Monday, July 23, 2007 3:13 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Slightly OT: Flex vs. Flex Builder Is there an actual difference between Flex and Flex Builder or is it the same thing? FlexBuilder is an Eclipse plugin that lets you easily develop Flex applications. The Flex SDK is available separately for free, and is also bundled with FlexBuilder. 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 Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! This email has been processed by SmoothZap - www.smoothwall.net ___ 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
RE: [Flashcoders] AS2 Shared Fonts and dynamically created textFields
Also, make sure you're setting your TextFormat after you set the text. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Sunday, July 22, 2007 10:19 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] AS2 Shared Fonts and dynamically created textFields Are you sure you've set the correct font in your dynamically created text field? (using setTextFormat and/or setNewTextFormat?). Have you got the font attributes correct in the TextFormat? (bold, italic etc.) Ian On 7/22/07, pedr browne [EMAIL PROTECTED] wrote: Hello, I have a swf using a shared font. The font works fine in static or dynamic textFields created at author time, but does not work with dynamically created textFields. I am setting embedFonts = true. The dynamically created textfield's text property traces out the text I've set to it, but does not show the text. Can anyone help? Thanks -- +44 (0) 788 0600 363 | +44 (0) 127 3208 079 ___ 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@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] Casting to Array
Try this: if (a instanceof Array) { var n:Array = a.slice(); doMyArrayFunction(n); } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Danny Kodicek Sent: Friday, July 20, 2007 9:04 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Casting to Array I'm trying to do something like this: if (a instanceof Array) { doMyArrayFunction(a) } the doMyArrayFunction expects an Array object, so this throws an error. What I would normally do in this case is cast the object to the class I'm expecting, but unfortunately Array(a) doesn't leave a unchanged, as it would with most classes, but returns [a] - the array gets nested. Anyone have a suggestion as to how I can get around this? The only thing I can think of is Array(a)[0], which seems a bit stupid. (I'm in AS2) Danny ___ 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
RE: RE: [Flashcoders] Casting to Array
That is correct. If you need the reference to the actual array, then I would consider using a class to help cast your data as suggested by others. But if you just need the data and not the actual reference (meaning you don't need to persist that data anywhere else), then my solution should be fine. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Mark Hawley Sent: Friday, July 20, 2007 1:44 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: RE: [Flashcoders] Casting to Array David's suggestion doesn't actually cast to array, though -- it makes a shallow copy of the array and returns it. This will lead you to many tricky bugs. If you really *really* need type checking on arrays, make a List class to wrap arrays and only use that. From: Danny Kodicek [EMAIL PROTECTED] Date: 2007/07/20 Fri AM 10:07:47 CDT To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Casting to Array As it's AS2, you might think about making it so doMyArrayFunction will not expect an array, but will take anything: class ArrayTest { public function ArrayTest(a) { trace(a[0]); } } new ArrayTest([1,2,3,4]); works fine. Yes, but I'm trying to do things 'properly' :) I've been quite enjoying the discipline of strong typing and it seems a shame to lose it for a little technicality. I like David's suggestion, which I'd imagine works pretty fast. Thanks Danny ___ 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 -- John Mark Hawley The Nilbog Group 773.968.4980 (cell) ___ 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
RE: [Flashcoders] XML File doesn't load on Flash Player9 in IE6, IE7
An HTTP code of 200 usually means success. Do you have any sample code you can show? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sascha Sent: Thursday, July 19, 2007 8:04 AM To: flashcoders Subject: [Flashcoders] XML File doesn't load on Flash Player9 in IE6, IE7 Hi list, I'm loading a XML file with the URLLoader class into a v9 SWF. On Firefox it all works without problem but on IE 6 and 7 the XML file doesn't get loaded, instead I get HTTPStatus 200. I don't have much experience with all the new AS3 Security stuff yet so I'd like to ask what I would have to do to make this work. I've read about crossdomain.xml files and Security Domains but these all seem not to apply to simple text/xml files. But I could be totally wrong. Would be great to get some hints on this! Thanks, Sascha ___ 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
RE: [Flashcoders] Backend compiled Java or scripted PHP?
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, which is why the majority of large corporations still use Java as their application backbone. But as with anything too complex, it's also very complex to set up. Java will need its own application container/server to run on and setting that up takes a lot of time, money and even more effort to get it working right. PHP on the other hand, is very easy to implement and deploy. It can be quite powerful if used correctly and there are tons of frameworks out for PHP to help lighten development time. I would say to look at your requirements and see what the best fit for your needs are. David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Weldon MacDonald Sent: Thursday, July 19, 2007 12:01 PM To: Flashcoders mailing list Subject: [Flashcoders] Backend compiled Java or scripted PHP? I've been using ActionScript for a while now, but my next project will require a lot more server side work. In the past I've used PHP, but only in a pidgin kind of way. alternatively, I have some Java skills, though not specifically for the web. Either way I have to spend some time developing an appropriate skill level, the question becomes, which skills. The times I've used PHP, it seemed straight forward enough, and from what I've read Java is a little trickier to implement on the web (correct?). On the other hand, PHP is a pretty specific niche whereas Java has a much wider usefulness (correct?) There are a lot of strong opinions out there. Andreessen: PHP succeeding where Java isn't http://news.com.com/2100-1012-5903187.html?tag=tb and in response, How they can compare PHP with Java at all? (most people who are praising PHP are either bad programmers or they are not programmers at all) http://news.com.com/5208-1012_3-0.html?forumID=1threadID=10712messageID=78 718start=0 PHP is faster to develop, java is faster to run, or is that runs faster? PHP is harder to maintain, and Java has more tools ...etc... What's a guy to beloieve? Any opin... any more opinions? ___ 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
RE: [Flashcoders] Backend compiled Java or scripted PHP?
Sorry if my post came across as pro-PHP. Trust me, I'm anything but that. I guess I should've added some benefits of Java over PHP. Java is much more scalable than PHP (by a long shot). I don't think I would ever want to build anything using PHP, except maybe an image gallery with limited server functionality needed. Everything I've ever had to build with has had some major backend/model framework in place to interface with, and I would much rather have that sledgehammer there to get things working exactly how you want it rather than peruse through 1 lines of script code. If anything, I'm much more of a full-blown OOP/structured language fanboy and would rather work with .NET/Java than touch PHP. David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ron Wheeler Sent: Thursday, July 19, 2007 9:06 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Backend compiled Java or scripted PHP? 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, which is why the majority of large corporations still use Java as their application backbone. But as with anything too complex, it's also very complex to set up. Java will need its own application container/server to run on and setting that up takes a lot of time, money and even more effort to get it working right. PHP on the other hand, is very easy to implement and deploy. It can be quite powerful if used correctly and there are tons of frameworks out for PHP to help lighten development time. I would say to look at your requirements and see what the best fit for your needs are. David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Weldon MacDonald Sent: Thursday, July 19, 2007 12:01 PM To: Flashcoders mailing list Subject: [Flashcoders] Backend compiled Java or scripted PHP? I've been using ActionScript for a while now, but my next project will require a lot more server side work. In the past I've used PHP, but only in a pidgin kind of way. alternatively, I have some Java skills, though not specifically for the web. Either way I have to spend some time developing an appropriate skill level, the question becomes, which skills. The times I've used PHP, it seemed straight forward enough, and from what I've read Java is a little trickier to implement on the web (correct?). On the other hand, PHP is a pretty specific niche whereas Java has a much wider usefulness (correct?) There are a lot of strong opinions out there. Andreessen: PHP succeeding where Java isn't http://news.com.com/2100-1012-5903187.html?tag=tb and in response, How they can compare PHP with Java at all? (most people who are praising PHP are either bad programmers or they are not programmers at all) http://news.com.com/5208-1012_3-0.html?forumID=1threadID=10712messageID=78 718start=0 PHP is faster to develop, java is faster to run, or is that runs faster? PHP is harder to maintain, and Java has more tools ...etc... What's a guy to beloieve? Any opin... any more opinions? ___ 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@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
RE: [Flashcoders] Font in Library problems
Not sure where your error is, but can I ask why you're instantiating your Font instance twice? David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Trim Sent: Tuesday, July 17, 2007 10:12 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Font in Library problems Can anyone tell me why the following isn't displaying any text? No Compiler errors, all traces show objects existing? If I remove the textformat all together it appears on stage in times. __ package com.instantbusiness.client.project.display.map{ import flash.display.Sprite; import flash.text.*; import flash.events.MouseEvent; import ClientRegular; public class Label extends Sprite{ private var labelText:TextField; private var labelFormat:TextFormat; private var clientRegular:Font = new ClientRegular(); public function Label(){ trace(Label: + this + \n); clientRegular = new ClientRegular(); trace(clientRegular: +clientRegular); } public function setText(labelStr:String){ labelFormat = new TextFormat(); labelFormat.color = 0xFF; labelFormat.size = 20; labelFormat.font = clientRegular.fontName; trace(clientRegular.fontName +clientRegular.fontName); trace(labelFormat); labelText = new TextField(); labelText.embedFonts = true; labelText.autoSize = TextFieldAutoSize.LEFT; labelText.antiAliasType = AntiAliasType.ADVANCED; labelText.selectable = false; labelText.mouseEnabled = true; labelText.setTextFormat(labelFormat); trace(labelText); trace(labelText.getTextFormat()); labelText.text = labelStr; addChild(labelText); } } } __ Thanks, Michael. ___ 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
RE: [Flashcoders] Font in Library problems
Ah. Try setting the textformat AFTER you set the text. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Trim Sent: Tuesday, July 17, 2007 10:47 AM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Font in Library problems That's a mistake, I've tried a lot of variations to get this working! I can't find an example online where this works inside a class, all the documentation has timeline examples (which I can get working with same font). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Ngo Sent: 17 July 2007 15:29 To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Font in Library problems Not sure where your error is, but can I ask why you're instantiating your Font instance twice? David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Trim Sent: Tuesday, July 17, 2007 10:12 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Font in Library problems Can anyone tell me why the following isn't displaying any text? No Compiler errors, all traces show objects existing? If I remove the textformat all together it appears on stage in times. __ package com.instantbusiness.client.project.display.map{ import flash.display.Sprite; import flash.text.*; import flash.events.MouseEvent; import ClientRegular; public class Label extends Sprite{ private var labelText:TextField; private var labelFormat:TextFormat; private var clientRegular:Font = new ClientRegular(); public function Label(){ trace(Label: + this + \n); clientRegular = new ClientRegular(); trace(clientRegular: +clientRegular); } public function setText(labelStr:String){ labelFormat = new TextFormat(); labelFormat.color = 0xFF; labelFormat.size = 20; labelFormat.font = clientRegular.fontName; trace(clientRegular.fontName +clientRegular.fontName); trace(labelFormat); labelText = new TextField(); labelText.embedFonts = true; labelText.autoSize = TextFieldAutoSize.LEFT; labelText.antiAliasType = AntiAliasType.ADVANCED; labelText.selectable = false; labelText.mouseEnabled = true; labelText.setTextFormat(labelFormat); trace(labelText); trace(labelText.getTextFormat()); labelText.text = labelStr; addChild(labelText); } } } __ Thanks, Michael. ___ 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@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
RE: [Flashcoders] Using createEmptyMovieClip to create MovieClipswithin MovieClips
private var ItemContainer:MovieClip; private var CContainer:MovieClip; ItemContainer = this.createEmptyMovieClip(ItemContainer, this.getNextHighestDepth()); CContainer = ItemContainer.createEmptyMovieClip(CContainer, ItemContainer.getNextHighestDepth()); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John laPlante Sent: Monday, July 16, 2007 4:30 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Using createEmptyMovieClip to create MovieClipswithin MovieClips I'm writing a component and have created a MovieClip with createEmptyMovieClip. When I try to create sub-MovieClip inside the first MC with createEmptyMovieClip, it is undefined. This must be a basic Flash thing. I haven't used createEmptyMovieClip too much. I tried private var ItemContainer:MovieClip; private var CContainer:MovieClip; this.createEmptyMovieClip(ItemContainer, this.getNextHighestDepth()); this.ItemContainer.createEmptyMovieClip(CContainer, this.getNextHighestDepth()); When I trace ItemContainer, it comes up as _level0.testDualListJumble.ItemContainer. I tried chaning the parent mc to _level0.testDualListJumble.ItemContainer - _level0.testDualListJumble.ItemContainer.createEmptyMovieClip(CContainer, this.getNextHighestDepth()); ___ 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
RE: [Flashcoders] Re: Handle Leaks in Flash, anyone can help?
Removing the MovieClips or objects does not remove the listeners to that object. You would have to explicitly remove the listeners first then remove your MovieClip/object. Otherwise, the reference to the listener will still exist, thus not get picked up by garbage collection. This could be another cause of your leak issue. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Varun Soundararajan Sent: Tuesday, July 10, 2007 2:10 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Re: Handle Leaks in Flash, anyone can help? Hi James, you are right, I use a lot of EventDispatcher in the code. Most of the components throw events which are listened by other components in the scene. I have lot of components, more commonly, Tree, Scrollpanes, list box,etc etc.. in my XML if I command the object to be deleted, it gets deleted. If it were a movieclip in a scrollpane. i do : scrollpane.content.unloadMovie(); scrollpane.content.removeMovieClip(); and then i unload and remove the scrollpane itself. if say, the XML commands the object to be created, i would also add eventHandlers for the object I created.. eg: object.addActionListener(enter,Delegate.create(this,enterActionHandler)); I dont remember adding a removeActionListener method when the object is deleted (the deletion command is sent through the XML, which makes the VM to delete the object)..I will do that ASAP and see how that helps.. This is a good lead.. Are there anything else associated with Action Listeners/Event Dipatchers that I missed out? One more thing, New listeners are NOT added to the existing object during 1 minute intervals, I add listeners only when I create a new object, in other words, if the server through the XML commands the client to create an object. Is there some profiler that will help know if any event that was dispatched has not been caught by any component/object? Thanks Varun On 7/10/07, James Booth [EMAIL PROTECTED] wrote: Are you using EventDispatcher at all? If so, are you adding listeners at each interval? Make sure they're added and removed properly or they'll get lost and mount up. It's hard to help without seeing any code. Can you give a brief example of the code that runs at each interval? - James -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Varun Soundararajan Sent: Monday, July 09, 2007 2:51 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Re: Handle Leaks in Flash, anyone can help? Hi, can anyone give some hints on how to proceed? On 7/9/07, Varun Soundararajan [EMAIL PROTECTED] wrote: Hi Flash Champs, I need help regarding handle leak issue. I have a Flash movie that parses XML from the server every 1 minute. The XML file that the SWF parses in every 1 minute interval is around 100- 200 KB. I m seeing that IE starts leaking handles (not sure if that is related to XML parsing, but the XML every one minute can trigger a change in the content of the movie (ie., what objects should be visible or if a new object needs to be created etc) ). When I profiled IE process, I see a lot of token handle leaks (more than 2000 handles leaks per day) ( My understanding on Token Handles: It is a handle to a security credential. Usually when IE connects to a server it tries to send the credentials of the logged in user. These credentials are seen as tokens in windows.) Are there any documented issues regarding this? If I keep IE open for a few days (2-3 days), Flash will cause IE to either crash, or make the system unstable.. I have disabled all Toolbars (except Adobe PDF toolbar).. I use HTTP to request XML data from Server (I think thats the only non-remoting way to obtain data from server in Flash). There is JSP Session ID based authentication to connect to server before running the SWF. Does that have something to do with this? When I login to the server with credentials, but dont launch the Flash movie, I dont have Handle Leaks, that has led me to the conclusion that something in the flash movie could be the trouble maker. How do I go ahead debugging? Thanks in advance. Some details about the Flash Movie: There are several Actionscript Verison 2 components in the movie all instances of which are created at runtime using actionscript. all of my code is in Actionscript 2 There is quite some XML parsing. There are not much animations in the movie (the movie more has to do with parsing the XML and representing it in the screen). Please feel free to ask more details that are needed.. Regards Varun -- Regards --Varun S http://mailvarun.blogspot.com /* This mail was sent using 100% recycled electrons */ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:
RE: [Flashcoders] +Infinite Loop -Dignity
Why do you have so many hoops to jump through? Try changing your for loop to this: for (var i:Number = 0; i elements.length; i++) David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of daniel Sent: Tuesday, July 10, 2007 11:52 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] +Infinite Loop -Dignity I feel really stupid right now. No, not that stupid. I mean really stupid. Take the highest level of stupid you can imagine and double that. Yes, now you've got it! I have a class named Game. Game.start() calls setInterval(this, update, 1000). Game.update() calls _gameScene.update(). _gameScene.update() has the following loop inside of it: for (var i:Number = 0; i != elements.length; i++) { elements[i].animation.update(); } That FOR loop puts my humble PC into a coma. The variable 'elements' is not undefined, and when I call trace(elements.length) I get '2'. I tried clearing ASO cache (whatever that's worth right now) as a silly precaution. Excuse me whilst I hang myself. ___ 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
RE: [Flashcoders] Multiline Issue
Have you tried setting wordWrap/autoSize to true? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Kemp Sent: Friday, July 06, 2007 1:29 PM To: Flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Multiline Issue Anyone ever have an issue using multiline textbox where the second line of copy was just writing on top of the first line? Just like the leading was set to zero. Going crazy with this. Thanks! Jeff. ___ 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
RE: [Flashcoders] Skewing text
Couldn't you just stick a TextField inside of a MovieClip then use a transformation matrix to screw the MovieClip? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeh Fernando Sent: Monday, July 02, 2007 2:17 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Skewing text I need to skew some text to give the impression it is going off into the distance (think opening text on Star Wars, though without movement). I know this effect can be done using the triangular method as used in Papervision. However I'm not creating a 3D scene here, I just want the skewing. Can this be easily done with Papervision, or can anyone recommend any other resource (AS2 only)? I understand the principles behind the technique, I just don't want to re-invent the wheel by implementing from scratch. The effect is not just skewing. It *is* 3d, in the meaning that the perspective is distorted because the middle points are moved away depending on the angle. So yes, your faster/best bet would be to use any 3d class such as Papervision3D. It should be fairly simple as you'll just need a rotated plane with the content of a movieclip projected on it. Zeh ___ 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
RE: [Flashcoders] Clashing Class Names
You can not have the same classpath/class combinations. So if you were importing inside SWFA SWFB: com.this.is.my.class.path.Class But on the file system, SWFA points to: myproject1/com/this/is/my/class/path/Class.as And SWFB points to: myproject2/com/this/is/my/class/path/Class.as You will get errors because Flash would have used the first classpath/class loaded since it's stored and identified as a string. You would need to either alter the class path one one of those classes, or have the class path start from the project name and not 'com'. David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Trim Sent: Friday, June 22, 2007 9:14 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Clashing Class Names Hi Flashcoders, Can somebody confirm my worst suspicions (think I am answering my own question here) swfA loads swfB Both swfs are compiled from separate classpaths but share a similar class structure, so swfA compiles classes like swfAProject/com/UserInterface/Application.as swfAProject/com/UserInterface/UIButton.as and swfB compiles swfBProject/com/UserInterface/Application.as swfBProject/com/UserInterface/UIButton.as I'm presuming that when swfB is loaded the _global.Application class is overwritten? As when I do this the whole thing spins off into 100% CPU hell. To separate these out will I need to restructure them to be...? CommonProject/com/A/UserInterface/Application.as CommonProject/com/B/UserInterface/Application.as (intergrating the code is not an option at this point). What would people suggest as best practice here? Apologies if this is a bit of a newb question on OO. Many thanks, Michael ___ 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
RE: [Flashcoders] AS3 root
Does _lockroot still apply to AS3? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Palmer, Jim Sent: Tuesday, June 19, 2007 4:14 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] AS3 root Check out the MovieClip._lockroot parameter livedocs.adobe.com/flash/mx2004/main_7_2/1522.html -- Jim Palmer ! Mammoth Web Operations -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of John Grden Sent: Tuesday, June 19, 2007 12:56 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] AS3 root Test the parent to see if it equals the stage maybe? if(this.parent == this.stage) stage is only available after adding the DisplayObject to the display list etc On 6/19/07, Patrick Matte|BLITZ [EMAIL PROTECTED] wrote: Hi fellas, I have a swf that's loaded inside another one. The container swf calls the transitionIn function in the loaded swf. In AS2, I used to put this in the loaded swf: if(this == _root){ transitionIn(); } That way I could test my swf in the flash IDE independently from the parent swf. If the swf was loaded in the container, this wouldn't be eqal to _root and the transitionIn would not be called. I'm trying to do the same thing in AS3. Every displayObject container has a root property but, it stops at the swf level. So root of the loaded swf is equal to the actual swf, not the container. So how can I know if the swf is tested by itself in the IDE or it is loaded by the container? ___ 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 -- [ JPG ] ___ 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@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] how to get CDATA into an XML object
AS2 will not support CDATA nodes. You should load in a schema that has a CDATA node first, then use that schema to write your text nodes to the CDATA node and pass the instance of the schema w/ the CDATA intact. I've had to use this work-around for another project I worked on a year ago. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Sinning Sent: Tuesday, June 19, 2007 11:38 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] how to get CDATA into an XML object Okay. I'm using AS2. How then do I get the actual xml out of the object? Muzak wrote: AS2 or AS3? The XML class in AS3 has a toXMLString() method which will return the correct value. toString() ignores CDATA in the output panel. This doesn't mean it isn't there. var str:String = 'TEXTFORMAT LEADING=2'; str+='P ALIGN=LEFT'; str+='FONT FACE=Arial SIZE=12 COLOR=#00'; str+='BFormatted content of a text field./B'; str+='/FONT/P/TEXTFORMAT'; var xml:XML = new XML(html![CDATA[ + str + ]]/html); trace(xml.toXMLString()); regards, Muzak - Original Message - From: Andrew Sinning [EMAIL PROTECTED] To: Flash Coders flashcoders@chattyfig.figleaf.com Sent: Wednesday, June 20, 2007 12:14 AM Subject: [Flashcoders] how to get CDATA into an XML object I can't figure out how to put CDATA into an xml object. Whether I use createTextNode( ) or create the xml with the CDATA directly, the XML object wants to scrub my input string: My goal is to store away the htmlText of TextField inside of an xml object. // textField is a TextField object var htmlOfTextField = textField.htmlText; trace(htmlOfTextField); /* output: TEXTFORMAT LEADING=2P ALIGN=LEFTFONT FACE=Arial SIZE=12 COLOR=#00BFormatted content of a text field./B/FONT/P/TEXTFORMAT */ // now, I want to build a node html containing an exact copy of htmlOfTextField var xmlRecord = new XML(html![CDATA[ + htmlOfTextField + ]]/html); trace(xmlRecord.toString()); /* output: htmllt;TEXTFORMAT LEADING=quot;2quot;gt;lt;P ALIGN=quot;LEFTquot;gt;lt;FONT FACE=quot;Arialquot; SIZE=quot;12quot; COLOR=quot;#00quot;gt;lt;Bgt;Formatted content of a text field.lt;/Bgt;lt;/FONTgt;lt;/Pgt;lt;/TEXTFORMATgt;/html */ Notice that the output above does not contain the mark-up ![CDATA[ ... ]] and that the html string has been scrubbed. The result I want should look like this: html![CDATA[ TEXTFORMAT LEADING=2P ALIGN=LEFTFONT FACE=Arial SIZE=12 COLOR=#00BFormatted content of a text field./B/FONT/P/TEXTFORMAT]]/html Thanks for any help! ___ 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@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] Loading a swf from another swf
I believe he's using AS3's Loader. Cary, I believe the url's would be relative to the container SWF or HTML. So if your SWFs are sitting in a folder called 'swf' and your HTML is in the root, then all of your files must have a url of 'swf/file'. David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Monday, June 18, 2007 3:01 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Loading a swf from another swf ldr = new Loader(); You're using the Loader class instead of the MovieClipLoader class? Isn't loader more for UI components and not external .swfs? Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team ___ 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
RE: [Flashcoders] (no subject)
You need to add the 'var' keyword for your iterator in the for loop. You also need to change your comparison evaluator to '' and not ''. For your second error, SimpleButton doesn't have a text property you can set. See: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/Simp leButton.html for (var i:uint = 0; i myArray.length; i++) { var myButtons:SimpleButton = new SimpleButton(); addChild(myButtons); } David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Duenas Sent: Monday, June 18, 2007 6:39 PM To: Flashcoders mailing list Subject: [Flashcoders] (no subject) hi coder I had to fragment my thread , I'm trying to create a loop in a as project in flex, in order to set up some buttons, this is the code for the loop (which is not working and gave me errors every single time I run . public function buttons():void{ //line 52// for (i=0; imyArray.length; i++){ var myButtons:SimpleButton = new SimpleButton(); //line 54//myButtons.text(myArray[i]); addChild(myButtons); } and these are the errors: 1120: Access of undefined property i. template1 template1.asline 52 1061: Call to a possibly undefined method text through a reference with static type flash.display:SimpleButton.template1 template1.as line 54 If you have some ideas about how to do this simple thing , I'd appreciate any help. Regards Gustavo Duenas Creative Director LEFT AND RIGHT SOLUTIONS LLC 1225 W. Beaver St. Suite 119 Jacksonville, Fl. 32204 904 . 2650330 www.leftandrightsolutions.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@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] (no subject)
AFAIK, there is no other Button-type class aside from SimpleButton in AS3's libraries. You could extend SimpleButton and add in a TextField. Then create a wrapper method to set the text property on your extended button to set the text on the TextField within. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Duenas Sent: Monday, June 18, 2007 7:16 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] (no subject) any idea about how can I set the text in the button or is any other buttons component is AS3? Regards. Gustavo On Jun 18, 2007, at 7:04 PM, David Ngo wrote: You need to add the 'var' keyword for your iterator in the for loop. You also need to change your comparison evaluator to '' and not ''. For your second error, SimpleButton doesn't have a text property you can set. See: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/ display/Simp leButton.html for (var i:uint = 0; i myArray.length; i++) { var myButtons:SimpleButton = new SimpleButton(); addChild(myButtons); } David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Duenas Sent: Monday, June 18, 2007 6:39 PM To: Flashcoders mailing list Subject: [Flashcoders] (no subject) hi coder I had to fragment my thread , I'm trying to create a loop in a as project in flex, in order to set up some buttons, this is the code for the loop (which is not working and gave me errors every single time I run . public function buttons():void{ //line 52// for (i=0; imyArray.length; i++){ var myButtons:SimpleButton = new SimpleButton(); //line 54//myButtons.text(myArray[i]); addChild(myButtons); } and these are the errors: 1120: Access of undefined property i. template1 template1.asline 52 1061: Call to a possibly undefined method text through a reference with static type flash.display:SimpleButton. template1 template1.as line 54 If you have some ideas about how to do this simple thing , I'd appreciate any help. Regards Gustavo Duenas Creative Director LEFT AND RIGHT SOLUTIONS LLC 1225 W. Beaver St. Suite 119 Jacksonville, Fl. 32204 904 . 2650330 www.leftandrightsolutions.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@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 Gustavo Duenas Creative Director LEFT AND RIGHT SOLUTIONS LLC 1225 W. Beaver St. Suite 119 Jacksonville, Fl. 32204 904 . 2650330 www.leftandrightsolutions.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@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] help with a thread in cs3
You need to add an event listener for when the image load is complete. package { import flash.display*; import flash.events.*; import flash.net.*; import flash.geom.*; public class WholeImage extends Sprite { private var backLoader:Loader; public function WholeImage() { backLoader = new Loader(); backLoader.addEventListener(Event.COMPLETE, onImageComplete); backLoader.load(new URLRequest(http://leftandrightsolutions.com/ backy1.jpg)); } private function onImageComplete(event:Event):void { backLoader.x = -200; backLoader.y = 0; addChild(backLoader); } } } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Duenas Sent: Saturday, June 16, 2007 7:15 PM To: Flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] help with a thread in cs3 hi coders I have this code and I'd like to have the loader to some new size but thing are not going as expected, the code is: package { import flash.display.Sprite; import flash.display.*; import flash.events.*; import flash.accessibility.*; import com.adobe.viewsource.ViewSource; import flash.net.*; import flash.geom.*; import flash.text.*; import flash.net.URLRequest; import flash.net.*; public class wholeImage1 extends Sprite { public function wholeImage1() { //inserting image as background; var backLoader:Loader = new Loader(); backLoader.load(new URLRequest(http://leftandrightsolutions.com/ backy1.jpg)); backLoader.x=-200; backLoader.y=0; addChild(backLoader); } } } I want to do something like this backloader.width= 1440; backloader.height=600; and when I finally used it doesn't work, you know how could do I? Regards Gustavo Duenas ___ 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
RE: [Flashcoders] html in XML
You won't be able to put special characters within attribute elements of a node. Instead, place it within a CDATA node: ?xml version=1.0 encoding=UTF-8 ? icons icon image=gif/images.gif tooltip=tooltip content![CDATA[here i want to have HTML tags like a href=somewhere.comclick here to go somewhere/a]]/content /icon /icons -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of promo+biboune.net Sent: Saturday, June 09, 2007 10:20 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] html in XML hi there i am having trouble to parse Html tags in a Xml file that is loaded in a flash file can anyone help here is the XML ?xml version=1.0 encoding=UTF-8 ? icons icon image=gif/images.gif tooltip=tooltip content= here i want to have HTML tags like a href=somewhere.comclick here to go somewhere /a / /icons best jeanphy ___ 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
RE: [Flashcoders] Composition access
You'd basically create a 'wrapper' method: class CopyClass { private var original:OriginalClass; private var mc:MovieClip; public function CopyClass(mc:MovieClip) { this.mc = mc; original = new OriginalClass(mc); } public function init():Void { original.init(); } } It's almost like calling super. However, if you're looking to override the original class' init(), then you don't need to call original.init() and just create your logic in your CopyClass' init method. This is the one drawback to using Composition over Inheritance, but I would say it's worth it in the long-run. David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Helmut Granda Sent: Friday, June 08, 2007 10:27 AM To: Flashcoders mailing list Subject: [Flashcoders] Composition access I am slowly moving from inheritance to composition for a specific project, one way to extend my classes is by creating a copy of them into the new created classes... class OriginalClass { var mc:MovieClip; function original(mc:MovieClip) { this.mc = mc; init(); }; function init() { trace(original); } -- now trying to overwrite init class CopyClass { var original : OriginalClass; var mc : MovieClip; function CopyClass(mc:MovieClip) { this.mc = mc; original = new OriginalClass(mc); } //How do I access init from the original class? I know that doing inheritance I can just declare a new init method in my CopyClass but in this case it doesnt work that way. TIA ___ 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
RE: [Flashcoders] Composition access
No. You would have to create wrappers for all three methods. It sounds like you should be using Inheritance instead of Composition if you're overriding that many methods... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Helmut Granda Sent: Friday, June 08, 2007 12:40 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Composition access One more question while in Composition mode lets say I have my main class Main -method1 (calls method2) -method2 (calls method3) -method3 With Inheritance I could do Copy -method2 (calls method3 of Main) When instantiating Copy it would know to use method1, and method3 from original while using method2 from the copy. Is there a way to achieve the same issue with composition? So far thanks to the explanation above I can access the methods of Main from a Copy instantiation but cant access methods of Copy from Main when needed. I might be approaching this all wrong which might be the main issue :( TIA On 6/8/07, Helmut Granda [EMAIL PROTECTED] wrote: hey David, your suggestion works perfectly, it was my implementation that was breaking the code. Thanks again. -h On 6/8/07, Helmut Granda [EMAIL PROTECTED] wrote: Thanks David, For some odd reason if I do in my coopy public function init():Void { trace(init in copy class); } it wont fire but it will fire the init method from the Original Class (which by the way seem very similar to inheritance :) ) any ideas why this could be happening? Thanks again... On 6/8/07, David Ngo [EMAIL PROTECTED] wrote: You'd basically create a 'wrapper' method: class CopyClass { private var original:OriginalClass; private var mc:MovieClip; public function CopyClass(mc:MovieClip) { this.mc = mc; original = new OriginalClass(mc); } public function init():Void { original.init (); } } It's almost like calling super. However, if you're looking to override the original class' init(), then you don't need to call original.init() and just create your logic in your CopyClass' init method. This is the one drawback to using Composition over Inheritance, but I would say it's worth it in the long-run. David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Helmut Granda Sent: Friday, June 08, 2007 10:27 AM To: Flashcoders mailing list Subject: [Flashcoders] Composition access I am slowly moving from inheritance to composition for a specific project, one way to extend my classes is by creating a copy of them into the new created classes... class OriginalClass { var mc:MovieClip; function original(mc:MovieClip) { this.mc = mc; init(); }; function init() { trace(original); } -- now trying to overwrite init class CopyClass { var original : OriginalClass; var mc : MovieClip; function CopyClass(mc:MovieClip) { this.mc = mc; original = new OriginalClass(mc); } //How do I access init from the original class? I know that doing inheritance I can just declare a new init method in my CopyClass but in this case it doesnt work that way. TIA ___ 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@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
RE: [Flashcoders] as3 Loader.content.name error
Couldn't you just set a variable and pass that to whichever class/method needs to access the child by name? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte|BLITZ Sent: Thursday, June 07, 2007 1:40 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] as3 Loader.content.name error I want to rename the content because I need to be able to access it later using getChildByName(test); But since its not possible, I think I'll have to make my classes dynamic and do this instead : private function loaderInit(event:Event):void{ event.target.removeEventListener(Event.INIT, loaderInit); this[test] = event.target.content; addChild( this[test] ); } BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Romanek Sent: Thursday, June 07, 2007 7:19 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] as3 Loader.content.name error If you want to call addChild on the content then you can simply do: addChild(event.target.content) and that will throw your content on the stage. I'm not sure why it is not possible to name that new content. I've tried playing around with this myself and can't figure out how once you've loaded the content you can access that content as a class. I've loaded up swfs and can reference classes within the swf no problem and create instances of those classes but if I try to get a class definition for the content all I can get is MovieClip and I can't figure out how to create new instances of the that loaded content without running another loader Not sure if that helps you any or not. Rob On Wed, 06 Jun 2007 22:59:33 -0400, Patrick Matte|BLITZ [EMAIL PROTECTED] wrote: Is there a way a change the name of the Loader content property. I'd like to call addChild() on the content instead of the Loader itself. Like this : loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.INIT, loaderInit); var request:URLRequest = new URLRequest(pageSource); loader.load(request); private function loaderInit(event:Event):void{ event.target.removeEventListener(Event.INIT, loaderInit); var page:Page = event.target.content; page.name = test; } That code throws this error but I cant understand why. Error: Error #2078: The name property of a Timeline-placed object cannot be modified. at flash.display::DisplayObject/set name() at com.blitzagency.fabric::Main/::loaderInit() ___ 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@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 CS3 Prof copy: missing Tree component.
There's a F8/AS2 version of Papervision, though I'd probably suggest going the F9/AS3 route. As far as Remoting/WebServices, I'm pretty sure they'll come out with an add-on package like they did with the previous versions. On top of that, if you wanted to build a Flash App, why not just use Flex? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Wednesday, June 06, 2007 9:36 AM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Flash CS3 Prof copy: missing Tree component. Regarding Jason's question, NO. As yet Flash CS3 has no AS3 classes/components for WebService or Remoting. And no where have I seen any promised. (I would like to see them, so if anyone from Adobe is on this list and might like to tell us that there one day will be Flash CS3 AS3 Data Components, please chime in :-) That's INSANE!!! That really bites. I guess I'm really not as sad today as I was yesterday about not having CS3 yet, but then again, I guess I'm even more depressed when I think I don't have CS3 AND it won't support Remoting or Webservices. I can sort of get why Adobe would not spend the time to build a tree component for CS3 (sorrt of, it still sucks), but Remoting and Webservices? Are you serious? I wanted to build a Flash app that uses Papervision 3d and Webservices, but it doesn't seem possible does it? (Papervision is FP9/AS3 only right?) Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team ___ 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
RE: [Flashcoders] [OT] desktop file searching utility
You can use a text editing program such as TextPad to search and/or replace within text files specific strings and case-sensitivity. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hairy Dog Digital Sent: Monday, May 28, 2007 1:57 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] [OT] desktop file searching utility Hi all, Does anyone have a desktop file searching utility they can recommend that really does search within files of any type for specific strings? The built in Windows search utility, as well as the Google Desktop Search, do not seem to search within file types such as external ActionScript files. They only seem to poke around in the known text document types (DOC, PDF, EPS, XLS, etc.) Recommendations? Thanks, Rob ___ 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
RE: [Flashcoders] [OT] desktop file searching utility
I understand that, but if his specific requirement is to go through .as files, then something like TextPad should be able to do exactly what he needs. You can search for and replace all instances of a specific string within folders, subfolders, specifically selected files, etc. You can even add the .as filetype within TextPad and associate it directly to TextPad or have it open up the default program. I mean, did you guys even look up TextPad's capabilities before shooting down my suggestion? ActionScript files are nothing more than text files. There's no special encoding type to show that they are 'ActionScript' files, aside from the fact that the compiler is hard-coded to look for the specific .as extension. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Count Schemula Sent: Monday, May 28, 2007 2:53 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] [OT] desktop file searching utility He wants to use search to go through files on the computer and look inside the files for matches. Google desktop will go through .doc and .xls and .ppt and search inside them, but it won't search the contents of .as files. On 5/28/07, David Ngo [EMAIL PROTECTED] wrote: You can use a text editing program such as TextPad to search and/or replace within text files specific strings and case-sensitivity. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hairy Dog Digital Sent: Monday, May 28, 2007 1:57 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] [OT] desktop file searching utility Hi all, Does anyone have a desktop file searching utility they can recommend that really does search within files of any type for specific strings? The built in Windows search utility, as well as the Google Desktop Search, do not seem to search within file types such as external ActionScript files. They only seem to poke around in the known text document types (DOC, PDF, EPS, XLS, etc.) Recommendations? Thanks, Rob ___ 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 -- count_schemula ___ 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
RE: [Flashcoders] [OT] desktop file searching utility
Okay, excuse my last email if this is the type of functionality you're looking for. Perhaps I misread what was written. If what you're looking for is a 'class browser' of sorts, then download and install Eclipse w/ either ASDT or FDT (probably FDT) and import a new Flash project, point it to the folder where your project sits and you'll be able to browse through all the classes as well as being able to search through all classes/files for specific strings. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Count Schemula Sent: Monday, May 28, 2007 2:58 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] [OT] desktop file searching utility http://www.sephiroth.it/python/classbrowser.php Does this offer anything? ClassBrowser is a very simple tool for inspect into flash classes, parsing a directory (for example the First Run/Classes/ dir) and reading all the informations in the .as files within the directory given. On 5/28/07, Hairy Dog Digital [EMAIL PROTECTED] wrote: The need for this became apparent when I inherited a large Flash 8 project with hundreds of class files. I inherited it for debugging, so I'm searching for needles in a haystack. -- count_schemula ___ 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
RE: [Flashcoders] Where can I find the list component assets?
If you're from the US, it's also known as Memorial Day, a day where we commemorate fallen US soldiers. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alistair Colling Sent: Friday, May 25, 2007 11:04 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Where can I find the list component assets? Hi Eric, thanks for your response. 1. I don't understand if you are unfamiliar with the concept of a Bank Holiday or maybe you just aren't having one on Monday, I hope you are. If you are unfamiliar with Bank Holidays; it is usually a Monday in the summer which essentially means that there are more barbecues and getting drunk than on a normal weekend, oh, and the banks close as well. B. I want to change the outline for the whole list Thanks :) Ali On 25 May 2007, at 15:50, eric e. dolecki wrote: 1. Bank holiday ?!? 2. Do you mean the outline around the whole list or do you wish to make an outline for items? - eric On 5/25/07, Alistair Colling [EMAIL PROTECTED] wrote: Hey there, I'm customizing the v2 list component but can't find the assets in the sampletheme.fla library. I have customized the scrollbar but I also want to change the outline of the list and I can't find this. Could someone point me in the right direction please? Thanks guys , have a good bank holiday :) Ali ___ 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@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
RE: [Flashcoders] textArea doesn't scroll far enough
I've run into this issue before as well. My (hackish) work-around was to create an empty MovieClip right after the text, set its alpha to 0, set its height to like, 50 or some arbitrary number to force the scrollbars to scroll beyond the text. Very hackish and not the best solution, but I had to get it working right then and there so -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Allandt Bik-Elliott (Receptacle) Sent: Thursday, May 24, 2007 12:30 PM To: flashcoders Subject: [Flashcoders] textArea doesn't scroll far enough gah - not my day today i've got my textArea loading up a bunch of text from a string, from an array loaded from an xml file (erk), but the scrollbars for the component don't scroll far enough (either the bar or the arrows) - i've dragged down the text with my cursor and the extra lines are there. does anyone with any experience of using these components know of any reason this might happen? ___ 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
RE: [Flashcoders] problem creating multiple instances
Yeah, you're using the same MovieClip name reference. I do believe you can't have two objects share the same name. You'll get concurrency issues with that on this line: _mcLibrary = _scope.attachMovie(libraryLink,mcLibrary, _scope.getNextHighestDepth()); You'll need to create a unique ID for it. I would probably suggest either within your creation object, or have an ID factory (should probably be a hybrid Singleton/Factory) that just generates unique ID's that you can append to your instance names. As for the custom class, it's nothing more than a blank class with public variables (or private ones and getter/setter methods) that contain the data you want to pass. OR, since you use two separate objects, just have a single object compose both. There are many ways to go about doing it, so it just boils down to preference I guess. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Mackin Sent: Wednesday, May 23, 2007 1:42 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] problem creating multiple instances This is how I am instantiating the creationObject (below). I believe that if I am passing a different name to the myName property it should create more than one MovieClip instance. I'd love to hear more about your suggestion to use a custom class to set properties instead of a generic object, or maybe point me in the direction of good tutorial or example. Unfortunately I am a self taught coder and am not always familiar with some of the best practices. var myCreationSettings:Object = { myName:3DCircleOnCavill, libraryLink:CircleOnCavill, scope:this, xAxisStart:-20, yAxisStart:20, vQuality:3, hQuality:3 } var my3Dplane:Simple3DPlane = new Simple3DPlane(myCreationSettings); my3Dplane.mouseReactive(true, 30, 20, true); var myCreationSettings2:Object = { myName:3DCircleOnCavill2, libraryLink:tom, scope:this, xAxisStart:-20, yAxisStart:20, vQuality:3, hQuality:3 } var my3Dplane2:Simple3DPlane = new Simple3DPlane(myCreationSettings2); my3Dplane2.mouseReactive(true, 30, 20, true); On May 23, 2007, at 3:20 PM, David Ngo wrote: Looks like you're attaching your plane to the same MovieClip instance, thus destroying any/all objects that was previously on that MovieClip instance. Depends on how you're instantiating your creationObject. BTW, just a comment on your implementation: I would use a custom class to set properties for creation and animation rather than a generic object. This way, you can avoid having to iterate through the object and then you can just composition your custom class/object. In Java, this would be equivalent to a Value Object or a Data Transfer Object. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Mackin Sent: Wednesday, May 23, 2007 12:51 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] problem creating multiple instances Hello, Looks like the attachment did not go out. I've pasted the Actionscript into this e-mail. Cheers, - Bill /* Simple 3D Plane - v1.0 Created : January 24, 2007 Last Updated : May 18, 2007 Copyright © 2007 Pixlart. All rights reserved. http://www.pixlart.net info [at] pixlart [dot] net */ /// \\ \ /* DESCRIPTION Allows you to animate MovieClips and Bitmaps on a 3D plane with full control and easing. AUTHOR(s) Bill Mackin - http://www.billmackin.com Combination of scripts and development of 3D animation API. Marquee Flipper - Which provided a good starting point and combination of World3d and DistortImage. Felix Turner - http://www.airtightinteractive.com Simple 3d Engine World3d - A very basic light 3D engine. André Michelle - http://www.andre-michelle.com DistortImage - A class to distort an image (including persective distortions) by slicing the image into smaller pieces (generally triangles). Thomas Pfeiffer kiroukou - http://www.thomas- pfeiffer.info Richard Lester RichL
RE: [Flashcoders] problem creating multiple instances
Where are you getting 'myName'? Is that a unique name per instance? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Mackin Sent: Wednesday, May 23, 2007 6:33 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] problem creating multiple instances After reading your first e-mail I did go through and make a change here, but it did not resolve the issue. _mcLibrary = _scope.attachMovie(libraryLink, mcLibrary+myName, _scope.getNextHighestDepth()); The line you mention is not the MovieClip reference for the plane, but a MovieClip created to create a BitmapData object. _bd = new BitmapData(_mcLibrary._width, _mcLibrary._height, true, 0x00); This BitmapData object is later placed into the plane reference MovieClip. At least that is my understanding... YIKES! _di = new DistortImage(_mc, _bd, vQuality, hQuality); I'm not able to post the class inside the e-mail anymore, it exceeds the maximum file size allowed by flashcoders. If you need the class file again I will create a link to all of the files. Thanks for your response! On May 23, 2007, at 4:03 PM, David Ngo wrote: Yeah, you're using the same MovieClip name reference. I do believe you can't have two objects share the same name. You'll get concurrency issues with that on this line: _mcLibrary = _scope.attachMovie(libraryLink,mcLibrary, _scope.getNextHighestDepth()); You'll need to create a unique ID for it. I would probably suggest either within your creation object, or have an ID factory (should probably be a hybrid Singleton/Factory) that just generates unique ID's that you can append to your instance names. As for the custom class, it's nothing more than a blank class with public variables (or private ones and getter/setter methods) that contain the data you want to pass. OR, since you use two separate objects, just have a single object compose both. There are many ways to go about doing it, so it just boils down to preference I guess. ___ 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
RE: [Flashcoders] dispatchEvent within another event handler
You're listening for an event from your view class that's being fired from your service class, that's why. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sam Sent: Wednesday, May 23, 2007 7:46 AM To: Flashcoders mailing list Subject: [Flashcoders] dispatchEvent within another event handler I'm trying to do what i think should be pretty simple. I want to dispatch an event when my xml has completed lodaing. For the life of me i can't figure out why event does not get dispatched from handleXML, I know the listner works because I've tested it by dispatching the same event from a button click. Any ideas what I may be doing wrong? package { import flash.display.Sprite; import com.acme.AppController; import com.acme.MyService; public class MyView extends Sprite { public function MyView() { var controller:MyController = new MyController(this); } } } package com.acme { import flash.events.EventDispatcher; import flash.events.Event; import flash.display.Sprite; import com.acme.MyService; public class MyController extends EventDispatcher { private var _view:Sprite; private var _service:MyService; public function MyController(target:Sprite){ _view = target; _view.addEventListener(xmlLoaded, doSomething); _service = new MyService(); } public function doSomething(e:Event):void{ trace(doSomething CALLED); } } } package com.acme { import flash.events.EventDispatcher; import flash.events.Event; import flash.net.URLLoader; import flash.net.URLRequest; public class MyService extends EventDispatcher { private var _loader:URLLoader; private var _xml:XML; public function MyService(){ _loader = new URLLoader(); _loader.addEventListener(Event.COMPLETE, handleXML); _loader.load(new URLRequest(xml/data.xml)); } public function handleXML(event:Event):void{ dispatchEvent(new Event(xmlLoaded, true)); // this never fires _xml = new XML(_loader.data); } } } ___ 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
RE: [Flashcoders] problem creating multiple instances
Looks like you're attaching your plane to the same MovieClip instance, thus destroying any/all objects that was previously on that MovieClip instance. Depends on how you're instantiating your creationObject. BTW, just a comment on your implementation: I would use a custom class to set properties for creation and animation rather than a generic object. This way, you can avoid having to iterate through the object and then you can just composition your custom class/object. In Java, this would be equivalent to a Value Object or a Data Transfer Object. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Mackin Sent: Wednesday, May 23, 2007 12:51 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] problem creating multiple instances Hello, Looks like the attachment did not go out. I've pasted the Actionscript into this e-mail. Cheers, - Bill /* Simple 3D Plane - v1.0 Created : January 24, 2007 Last Updated : May 18, 2007 Copyright © 2007 Pixlart. All rights reserved. http://www.pixlart.net info [at] pixlart [dot] net */ /// \\ \ /* DESCRIPTION Allows you to animate MovieClips and Bitmaps on a 3D plane with full control and easing. AUTHOR(s) Bill Mackin - http://www.billmackin.com Combination of scripts and development of 3D animation API. Marquee Flipper - Which provided a good starting point and combination of World3d and DistortImage. Felix Turner - http://www.airtightinteractive.com Simple 3d Engine World3d - A very basic light 3D engine. André Michelle - http://www.andre-michelle.com DistortImage - A class to distort an image (including persective distortions) by slicing the image into smaller pieces (generally triangles). Thomas Pfeiffer kiroukou - http://www.thomas- pfeiffer.info Richard Lester RichL Didier Brun foxy - http://www.foxaweb.com Easing Equations - Popular equations used by many to provide easing effects in scripted animations. Robert Penner - http://www.robertpenner.com USAGE var myCreationSettings:Object = { myName:3DCircleOnCavill, libraryLink:CircleOnCavill, scope:this, xAxisStart:0, yAxisStart:0, mouseReactive:false, vQuality:3, hQuality:3 } var my3Dplane:Simple3DPlane = new Simple3DPlane(myCreationSettings); var myAnimationSettings:Object = { xAxisTo:0, yAxisTo:180, animationDuration:1, easingMath:Expo, easingType:easeOut, delay:1, callBack:doSomething, callBackScope:this, callBackArgs:[true, both, 1] } my3Dplane.animate3DPlane(myAnimationSettings); my3Dplane.getTarget(); // returns an instance of the newly created MovieClip containing the 3D plane. my3Dplane.mouseReactive(true, 30, 20, true);@param1 = turns 3D movement based on mouse position on/off @param2 = the limit for the 3D movement on the x axis, (in degrees). @param3 = the limit for the 3D movement on the y axis, (in degrees). @param4 = determines whether the 3D plane rotates towards the mouse or away, (only used when limiting angles). NOTES BILL MACKIN
RE: [Flashcoders] How to set button event listeners within a class
You would only use super() if you're extending. It sounds like he was using composition, but thinking of inheritance. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Friday, May 18, 2007 11:48 AM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] How to set button event listeners within a class You need to use Delegate to keep your scope within the class: import mx.utils.Delegate class MyClass { //stuff private function setActions():Void { myButton.onRelease = Delegate.create(this, myOnRelaseHandler) } private function myOnReleaseHandler():Void { super() } } Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team ___ 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
RE: [Flashcoders] flash and xpath
Make sure that your file is saved as the encoding type you specified for the XML. For instance, if you have UTF-8 specified, ensure that the file type saved is also UTF-8. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Law Sent: Thursday, May 17, 2007 10:48 AM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] flash and xpath I'm still getting the value returned as amp;. I'm starting to pull my hair out cause of this. Could there be any other reason why this is occurring? When I look at the file being loaded in from the output as a var I see that even in there the ampersand is being shown as amp;. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kerem Iseri Sent: Wednesday, May 16, 2007 5:55 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] flash and xpath Use CDATA for that node inside the XML to make flash recognise everything you write inside CDATA as html text. You can even use font size=12 color='#171717'/font or br for new line etc. For example .. item![CDATA[Field Stream]]/item Kerem İŞERİ Trafo Intractive www.trafo.com.tr -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Law Sent: Wednesday, May 16, 2007 11:38 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] flash and xpath Ok, so I was able to get it to work, but now I'm coming across another issue. I'm loading in xml using the old new XML() object and using xpath to parse. One of the fields I have looks like this. itemField Stream/item. The issue is that the value I'm getting back from xpath is Field amp; Stream and not Field Stream. The textfield that is being used to display is not showing the text as html and fontEmbed is false. Is there anything that I could do to fix this? Thanks! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johannes Nel Sent: Wednesday, May 16, 2007 12:45 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] flash and xpath it seems you want to get the text value of a node. try this var item:String = XPathAPI.selectSingleNode(doc.firstChild, /html/body/[EMAIL PROTECTED]'data']/[EMAIL PROTECTED]'campaign']/text() )toString(); notice the text() On 5/16/07, Jason Law [EMAIL PROTECTED] wrote: I'm wondering if this is possible within flash 8 using the xpath api to do something like this. var item:String = XPathAPI.selectSingleNode(doc.firstChild, /html/body/[EMAIL PROTECTED]'data']/[EMAIL PROTECTED]'campaign'][2] ).firstChild.toString(); now I know this works var item:String = XPathAPI.selectSingleNode(doc.firstChild, /html/body/[EMAIL PROTECTED]'data']/[EMAIL PROTECTED]'campaign'] ).firstChild.toString(); but it seems that when you add any kind of nodeItem to the end of an item flash returns undefined. jason law, detroit organic, inc. | www.organic.com http://www.organic.com/ retail tech lead | interface engineer e: [EMAIL PROTECTED] | p: 248.454.3387 | aim: jaylaw81 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. Dissemination, distribution or copying of this email or the information herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is prohibited. If you have received this email in error, please immediately notify us by calling our Help Desk at (415) 581-5552 or by e-mailing us at [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 -- j:pn http://www.lennel.org ___ 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 email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. Dissemination, distribution or copying of this email or the information herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is prohibited. If you have received this email in error, please
RE: [Flashcoders] AS3 continuous loop on mouse down
If this is for AS3, then I would say use the Timer class: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/utils/Timer. html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Boski Sent: Sunday, May 13, 2007 1:17 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] AS3 continuous loop on mouse down if you want something to happen over and over do a set interval on mouse down and clear interval on mouse up. On 5/13/07, dave matthews [EMAIL PROTECTED] wrote: hi All, What is the syntax for a continuous loop in AS3? Have working code for a code loop using mouse down - one frame-main timeline, but can't figure out how to maintain the rate of movement when the mouse is stationary with the mouse button still in down position. thanks, Dave_Matthews Place symbol instance named 'circle' on stage. Paste this code on actions frame: import flash.events.MouseEvent; this.stop(); var circleOrigX:Number; var circleOrigY:Number; var curOrigX:Number; var curOrigY:Number; var panRateX:Number; var panRateY:Number; function panSetUpDrag(event:MouseEvent):void { circleOrigX = event.stageX - circle.x; circleOrigY = event.stageY - circle.y; curOrigX= event.stageX ; curOrigY= event.stageY ; stage.addEventListener(MouseEvent.MOUSE_MOVE, panloop); } function panloop(event:MouseEvent):void { /*want this loop to operate while mouse is stationary - causing pan actions to reposition circle at rate based on distance of cursor from start*/ panRateX = (event.stageX -curOrigX) * 3 ; panRateY = (event.stageY -curOrigY) * 3 ; circle.x = event.stageX - circleOrigX - panRateX; circle.y = event.stageY - circleOrigY - panRateY; event.updateAfterEvent(); } function PanStopDrag(event:MouseEvent):void { gotoAndStop(1); stage.removeEventListener(MouseEvent.MOUSE_MOVE, panloop); } stage.addEventListener(MouseEvent.MOUSE_DOWN, panSetUpDrag); stage.addEventListener(MouseEvent.MOUSE_UP, PanStopDrag); _ More photos, more messages, more storage-get 2GB with Windows Live Hotmail. http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_migratio n_HM_mini_2G_0507 ___ 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@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] RE: Smooth movement for dynamic text
Look here: http://livedocs.adobe.com/flash/8/main/2733.html and http://livedocs.adobe.com/flash/8/main/2822.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of pedr browne Sent: Friday, May 11, 2007 9:40 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] RE: Smooth movement for dynamic text Thanks for the replies. Unfortunately there is no way to set Antialias for animation dynamically (or is there?). Have tried messing with sharpness and thickness, but they have little effect. It is as if my laptop has forgotten how to render text smoothly in Flash. I'm even looking back at old swfs which were fine which are now defective. I think it's time for a fresh install. Message: 26 Date: Thu, 10 May 2007 23:18:27 +0200 From: Latcho [EMAIL PROTECTED] Subject: Re: [Flashcoders] Smooth movement for dynamic text To: R?kos Attila [EMAIL PROTECTED], flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed yes had the same problem hard to choose: smooth animation or slick sharp fonts :) Rákos Attila wrote: pb I have a seemingly simple situation which is causing me a real problem. pb pb I am moving a dynamic textfield along the x-axis and the text seems to pb vibrate, making it virtually unreadable. pb pb The textfield is multiline, autosizing and created dynamically, with pb embedFonts set to true. It is styled with a textFormat which sets it's font pb to one I have imported to the library. pb pb I have tried various fonts and all suffer the same issue. pb pb If anyone has any ideas please help me out as I am stuck. Set textfield's font rendering method to Anti-alias for animation and also you can take care of always positioning the textfield to exact pixels during the animation. Attila ___ 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
RE: [Flashcoders] Re: AS2: Design Pattern: event based or pointer? frommodel or controller?
IMO, EventDispatcher will work well in most cases. If you need a more flexible or scalable way to handle events, then I'd suggest writing your own event framework based on the Observer pattern as there are some limitations to EventDispatcher. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of sebastian chedal Sent: Friday, May 04, 2007 5:24 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Re: AS2: Design Pattern: event based or pointer? frommodel or controller? Alo, So I've done some more independant research, I think I'm going to use an EventDispatcher system from the PageController: http://www.adobe.com/devnet/flash/articles/creating_events.html Instead of pointers. As I think this makes more sense. Ofcourse, any insight from the 'pros' still welcome! With kind, Seb. On 5/3/07, sebastian [EMAIL PROTECTED] wrote: Hello folks, My next question is conceptual... I've made good progress on many of the classes in my application, but I'm now caught in a dilemma regarding approach. As mentioned in a previous mail, I'm building a system that can be divided into two: 1 part does general world 3D animation until the pages are opened; this was relatively easy to make... the second part of the system deals with generating pages [its a templating MVC system]; this is the tough part! At the center of the application is my class: PageController Linked to it are 3 other Classes: PageModel [to load new pages], StatsCollector [to record new pages called] and MouseController [told to turn off 3D motion when pages are opened]. I was planning on using an object-instance pointer in the PageController formed during its construction, to tell the associated Classes that a new event has ocured, but someone pointed out to me that I should be using an event based system instead [so that's its easier to add new Classes that listen to the Controller in the future] Here is what I have: class com.blabla.PageController { //Object pointers private var pageModel:Object; private var statsCollector:Object; private var mouseController:Object; private var urlMapper:Object; //Page open/close status private var activeWindow:Boolean; function PageController ( __pageModel:Object, __mouseController:Object, __statsCollector:Object, __urlMapper:Object) { //Pointers: this.pageModel = __pageModel; this.statsCollector = __statsCollector; this.mouseController = __mouseController; this.urlMapper = __urlMapper; //Set initial state: this.activeWindow = false; } //this method is called by SWFAddress on url changes: public function urlChange(__name:String):Void { // MOUSE CONTROLLER //set the page active true to turn off //3D mouse system: this.activeWindow = true; //tell 3D mouse system to check status: this.mouseController.checkWindowStatus(); // PAGE MODEL //call URL mapper returns an XML file based //on the url __name //this XML file is then passed to the pageModel //which will then notify the PageView of changes this.pageModel.buildPage (this.urlMapper.convertLink (__name)); // STATS COLLECTOR //run the method in 'statscol' with url: this.statsCollector.callURL(__name); } } So, my question is... is this the right way to be sending events? By making pointers and calling methods in connected classes? Also, should I store my activeWindow parameter in the Controller? I have a feeling its in the wrong Class; but from a Code-clarity perspective it does make sense to have it here as the controller is a state-dispatcher...? Or should I be using an event based system instead of pointers? If so, could someone lightly outline what the difference would be like in such a set up? I'm not very familiar with using events to drive app like this. I'd be very thankful. Here is the latest diagram of the system: http://www.chedal.org/temp/uml_design_03.png [this that are blue/green are things I've built until now] Note I chose to connect the MouseController and StatsCollector to the PageController instead of the PageModel because if I did so the PageModel would get very long in terms of code; I want the PageModel to focus JUST on storing the Templates' data that the View will build [by refering to the PageModel's loaded data]. Also, if I linked everything to the PageModel instead, the functionality of the PageController as a dispatcher would be made redundant... am I right in this thinking?
RE: [Flashcoders] Syntax for dynamically calling a function
Couldn't you just use call() or apply()? http://livedocs.adobe.com/flash/8/main/2234.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Brisita Sent: Thursday, May 03, 2007 11:05 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Syntax for dynamically calling a function You could do something like this: class Something { method1(); method2(a_number:Number); } Somewhere else: var method_str:String = method1; var sm:Something = new Something(); sm[method_str](); // Will call method1 class method sm[method2](0x09F911029D74E35BD84156C5635688C0); // Also works ;-) Ciao, Rob. Alistair Colling wrote: Hi there, I want to call a function but want to able to call it dynamically so a string that is passed will determine which function is called. My reason for this is I have an interface with a number of buttons that have different labels but that look the same and need to call different functions. I was going to make one button and duplicate it then name it so it will call a function depending on what it's name is. My code would go something like this: ///inside 'button' MC named 'pictures' var label:String = this._name this.onPress = function(){ //want to call function from here, dictated by the name of the MC, not sure of this sytanx this._parent.label() } main timeline function pictures(){ //to be called from pictures button onPress event } /// Any suggestions much appreciated! Ali ___ 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 --No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 269.6.2/781 - Release Date: 4/30/2007 9:14 AM ___ 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
RE: [Flashcoders] Flash / Java Communication with ExternalInterface
If you're looking for best/fastest communication between Flash and Java to send complex data, I would suggest using an AMF protocol such as OpenAMF. The other two options are XML or WebServices. AMF is faster because it's all binary and you use Java VO's (converted to Flash Objects with the same data type/name) to send data back and forth. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alain Rousseau Sent: Thursday, May 03, 2007 4:52 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Flash / Java Communication with ExternalInterface Hi All, we're at a point in a project where we need good communication between Flash and Java. ATM we are using SWT Flash and it's FSCommand handling. I would like to go a bit further to be able to send complex objects via ExternalInterface. I know there is Javaflash (HYPERLINK http://www.osflash.org/javaflash/http://www.osflash.org/javaflash/) out there but the official website is so slow and it seems to be still in beta. Basically, we are using Flash as GUI for a Java backend. We'll need to send back and forth some complex objects. We are currently exploring the possiblity of using XML to send values. What solution would be the best ? Meaning which one gets the fastest response, stability and extendability. Are there any other options or howto's than FSCommand ? any link or tips are welcome. Or is Javaflash stable enough for use in a commercial App ? Thanks in advance ! Alain No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.6.2/785 - Release Date: 2007-05-02 14:16 ___ 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
RE: [Flashcoders] Flash / Java Communication with ExternalInterface
If it's a desktop app, then I would probably suggest using Apollo. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Thursday, May 03, 2007 7:19 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Flash / Java Communication with ExternalInterface In that case, look into JSON. http://www.json.org/ regards, Muzak - Original Message - From: Alain Rousseau [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, May 04, 2007 12:40 AM Subject: Re: [Flashcoders] Flash / Java Communication with ExternalInterface Currently we're using Flash 8, but switching to Flex is also an option. The thing is that we are building a Java Desktop Application, forgot to mention that, it's not a web application. FYI, ExternalInterface can be used with any other platform if the proper hooks are in place. It can be done with JavaScript, C# and Java (with JavaFlash) As I said JavaFlash is still in beta and I'm looking for other options, but not web options as Robert proposed. Thanks for the advice tho ! We have FLash running inside a widget created by SWT Flash. Inside it we can use a flashobject widget with code looking like this : flashobject.setVariable(String name, String value) wich is the basic setVariable sending only strings. We need to be able to call Flash Methods as well, so we would like to do flashobject.FlashMethodCall(args) So far the only thing we can do is use FSCommand and pass variables as strings ... If it's the only option, we'll go back to the old parse the string to extract your data way. Otherwise any other option is welcome ! :) Thanks ! ___ 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
RE: [Flashcoders] Detecting referrer in Flash
If you'd rather have something more secure, then I'd suggest calling a backend to pass it to you. This gets a lot more complicated as you'd now have to tack on session management. The other option is to use JavaScript/AJAX to pull data from a request or response. Are you putting your SWF on an HTML page or a JSP/ASP/PHP page? If it's the former, there really is no other way outside of using session management + XML/JavaScript/AJX. If it's the latter, then you can have the JSP/ASP/PHP page write the referrer to the FlashVars. However, if you get referrer URL's with querystrings attached, you could potentially run into issues there as well as you'd have to parse through the referrer's querystring. I'm not sure if there's an easy answer for this outside of having Flash do a separate call to get the referrer URL once the SWF has loaded. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Mudge Sent: Thursday, May 03, 2007 9:00 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Detecting referrer in Flash You can use FlashVars to pass it into your SWF via the HTML embed. I'm currently using an anchor (foo.swf#abc) or file parameters (foo.swfitem=abc), which work fine. But can I do any better than this? I feel that passing in a parameter is an invitation for tampering... Not that it's incredibly critical, but it'd be nice if developers could just drop-in the SWF without having to configure it. public _url : String [read-only] This gives the URL of the SWF itself -- this is already known. - Kipp ___ 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
RE: [Flashcoders] Re: Blur effect via action scripting
Loops would be instantaneous. You would need to control the duration of the effect via some sort of timer or interval. Tweens essentially package up this timer functionality with a set of equations to handle property changes. It's all just math, really, but I don't think using loops would be as efficient as using a tween. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Glenn Grant Sent: Friday, May 04, 2007 12:04 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Re: Blur effect via action scripting you don't even need a tween package for this (altho they sure are useful things). read about BitmapData, BlurFilter, and Repeating actions using loops in the Flash Help. gg OOoops!!! I am sorry. It is not blue but blur. I have three good quality image in my application. Initially I want all three look blur but when user roll over to it then it will gradually become clear image when roll out it would be again blur. There are a lot of different tweening packages out there that do the thing with one command only (or very close to it). There's MC Tween, Fuse Kit, Tweener, and probably others who do support 'native' filter blur filtering. That's the kind of solution you should be looking for. No need for overcomplicate a problem that's so simple. Zeh ___ 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
RE: [Flashcoders] AS2: generating new instances dynamically?
Another way to do this is to have an init() method that you call in-line to your attachMovie(). class MyClass extends MovieClip { public function MyClass() {} public function init(args):MyClass { // do your constructor type stuff here return this } } And this is how you use it: var myClass:MyClass = myClip.attachMovie(linkage, name, depth).init(args); This way, you can also type-cast your instance to your Class without having to re-cast. I forgot who came up with this or where I saw it, but it's been pretty useful for me when extending MovieClip. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alain Rousseau Sent: Wednesday, May 02, 2007 9:08 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] AS2: generating new instances dynamically? Hi Sebastian, When extending the MovieClip Class in AS2, there is no way to access the constructor. All initializations should be done, like Matthias Dittgen mentionned with the optional initObject argument of attachMovie(libraryID, instanceName, depth, initObject) That way you set all the properties that you need before the onLoad() of your Class. Don't forget that it's a MovieClip and in AS2 it's instances are not handled the same way as other Classes and has it's own rules :) You should read on the MovieClip Class, it's all there HTH Alain sebastian chedal wrote: If it is a movie clip you want to instantiate then you have to use: _root.attachMovie(libraryID, instanceName, depth); The class associated with it will construct and the onLoad event will trigger if it is being listened to. this indeed works, but then i can't pass any values to the constructor. Is there any way to attachMovie and at the same time pass values to it? I supose I can always refer to it afterwards on the time line and call a custom function... but it would be nice to use the constructor's functionality. I had hoped I could generate new instances just by calling a constructor instead of attaching it to something; but i guess logically i it needs to be attached to be on the timeline. Correct me if I am wrong. Thanks! Seb. On 5/1/07, O. Fouad [EMAIL PROTECTED] wrote: are u executing the class post view? On 5/1/07, Andy Herrman [EMAIL PROTECTED] wrote: Or have the function return it, which is what it seems like would be the right thing for that method. -Andy On 5/1/07, Ron Wheeler [EMAIL PROTECTED] wrote: 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: Hello Flashcoders, Sorry to bother you with another simple AS2 questions, I'm making good progress but I am stumped with one simple thing. I have one class/object that I want to use to generate copies [instances] of another class. The second class is an object in the library with an ID and an assosiated *.as file [in the linkage panel]. The code is: = //PostModel.as import com.blabla.PostView; class com.blabla.PostModel { public function createPost (__id) { var newPost = new PostView (__id); } } = When I run this code, the class doesn't construct an instance... What am I missing? If I need to call the Library Identifyer instead, how would I do that? I don't want to attach the PostView to the PostModel class, I just want to create instances of them and attach them to _root [or some other MC in the timeline]. Thanks!! Seb. ___ 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@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] AS2: generating new instances dynamically?
Are you sure you're implementing it correctly? You have to assign the class to your library item and it should work. If you're just arbitrarily attaching a MovieClip from the library without assigning that symbol the class, it will give you that error. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte | BLITZ Sent: Wednesday, May 02, 2007 10:20 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] AS2: generating new instances dynamically? var myClass:MyClass = myClip.attachMovie(linkage, name, depth).init(args); That code will fire an error like this : Type mismatch in assignment statement: found MovieClip where MyClass is required. If you want to typecast your movieclip, I think you need to do : var mc:MovieClip = myClip.attachMovie(linkage, name, depth).init(args); var myClass:MyClass = MyClass(mc); myClass.init(args); BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Ngo Sent: Wednesday, May 02, 2007 6:17 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] AS2: generating new instances dynamically? Another way to do this is to have an init() method that you call in-line to your attachMovie(). class MyClass extends MovieClip { public function MyClass() {} public function init(args):MyClass { // do your constructor type stuff here return this } } And this is how you use it: var myClass:MyClass = myClip.attachMovie(linkage, name, depth).init(args); This way, you can also type-cast your instance to your Class without having to re-cast. I forgot who came up with this or where I saw it, but it's been pretty useful for me when extending MovieClip. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alain Rousseau Sent: Wednesday, May 02, 2007 9:08 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] AS2: generating new instances dynamically? Hi Sebastian, When extending the MovieClip Class in AS2, there is no way to access the constructor. All initializations should be done, like Matthias Dittgen mentionned with the optional initObject argument of attachMovie(libraryID, instanceName, depth, initObject) That way you set all the properties that you need before the onLoad() of your Class. Don't forget that it's a MovieClip and in AS2 it's instances are not handled the same way as other Classes and has it's own rules :) You should read on the MovieClip Class, it's all there HTH Alain sebastian chedal wrote: If it is a movie clip you want to instantiate then you have to use: _root.attachMovie(libraryID, instanceName, depth); The class associated with it will construct and the onLoad event will trigger if it is being listened to. this indeed works, but then i can't pass any values to the constructor. Is there any way to attachMovie and at the same time pass values to it? I supose I can always refer to it afterwards on the time line and call a custom function... but it would be nice to use the constructor's functionality. I had hoped I could generate new instances just by calling a constructor instead of attaching it to something; but i guess logically i it needs to be attached to be on the timeline. Correct me if I am wrong. Thanks! Seb. On 5/1/07, O. Fouad [EMAIL PROTECTED] wrote: are u executing the class post view? On 5/1/07, Andy Herrman [EMAIL PROTECTED] wrote: Or have the function return it, which is what it seems like would be the right thing for that method. -Andy On 5/1/07, Ron Wheeler [EMAIL PROTECTED] wrote: 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: Hello Flashcoders, Sorry to bother you with another simple AS2 questions, I'm making good progress but I am stumped with one simple thing. I have one class/object that I want to use to generate copies [instances] of another class. The second class is an object in the library with an ID and an assosiated *.as file [in the linkage panel]. The code is: = //PostModel.as import com.blabla.PostView; class com.blabla.PostModel { public function createPost (__id) { var newPost = new PostView (__id); } } = When I run this code, the class doesn't construct an instance... What am I missing? If I need to call the Library Identifyer instead, how would I do that? I don't want to attach the PostView to the PostModel class, I just want to create instances of them
RE: [Flashcoders] Class for movie - best practice question
Why would you extend MovieClip and composition a MovieClip as well? Seems a bit redundant, no? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte | BLITZ Sent: Tuesday, April 24, 2007 7:09 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Class for movie - best practice question Try this class. Put new ApplicationClass(this); on the first frame of the timeline. import mx.events.EventDispatcher; class ApplicationClass extends MovieClip{ public var addEventListener:Function; public var removeEventListener:Function; private var dispatchEvent:Function; public function ApplicationClass(target){ target.__proto__ = __proto__; this = ApplicationClass(target); EventDispatcher.initialize(this); init(); } private function init(){ trace(this = + this); } } You can also use that class as a generic class for all your timelines and extend it like this import mx.utils.Delegate; import it.sephiroth.XML2Object; class RootClass extends ApplicationClass{ public function RootClass(target){ super(target); } private function init(){ trace(override init this = + this); } } ___ 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
RE: [Flashcoders] setInterval woes
And to add to what Steven said, I would seriously suggest using the scope version of the setInterval call: var interval:Number = setInterval(this, 'myFunc', 100); Using setInterval this way specifies the scope object you want to call your method on. This also goes a long way to ensuring that your interval will work as you intended it to. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: Monday, April 23, 2007 10:06 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] setInterval woes It's debugging 101. Eliminate the obvious things first. Calling clearInterval before setInterval is a preventative measure to protect you from unexpected behavior from accidental orphaning of intervals. I ALWAYS ALWAYS ALWAYS clearInterval before I setInterval regardless of whether it is the first time I'm setting it. There is no reason not to do it and plenty of reason to do it. If you overwrite a reference to an interval with another interval, you orphan that interval which continues to run in the swf until you close the swf and you will never be able to stop it unless you knew the id of the interval in question. The reason I suggested it was because his code was not well written in that there was no protection that the interval would be overwritten since it was in a frame script. If that frame ever played again you would have an interval orphaned and then doubled up. From the description of the behavior he gave, that's exactly what it sounded like. Jordan Snyder wrote: Nevermind. I'm obviously not communicating very well. I'm extremely familiar with setInterval's and setTimeout's functionality. What I'm trying to figure out is why Steven says to clearInterval first clearInterval can not be run without an argument, so I'm saying that if you haven't assigned setInterval to something, what are you going to call clearInterval on? And why would you call it before it's even assigned to an actual interval? Cheers On 4/20/07, David Ngo [EMAIL PROTECTED] wrote: Yes, that's where you're mistaken. setInterval will set an interval that will call a method at each interval. Whether you assign it to a variable or not, it will continue to call that method at each interval. This is how setInterval works. In order to clear an interval, you MUST assign an ID and call clearInterval on that ID. The functionality you're talking about is a setTimeout. That calls a method once and ONLY once after a specified delay. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jordan Snyder Sent: Friday, April 20, 2007 3:02 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] setInterval woes No, I mean that he is only calling setInterval once and has no apparent need to even assign it to a variable for use with clearInterval later. On 4/20/07, David Ngo [EMAIL PROTECTED] wrote: An interval is fired at each interval. What you're talking about is a setTimeout which is fired only once after a delay (timeout). An interval is fired an infinite number of times until clearInterval is called. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jordan Snyder Sent: Friday, April 20, 2007 2:03 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] setInterval woes Steven, why is that? If he's only calling it once and the interval is only defined/set once, why would you call clearInterval? On 4/20/07, Steven Sacks [EMAIL PROTECTED] wrote: You should always call clearInterval before setInterval. ALWAYS. Michael King wrote: Hey all, Some of you may remember my problems with visually mapping streaming data before. I ended up needing them as separate clips to provide individual roll-over support with the ability to add links in a future revision. Well, now that I have it performing better, I'm breaking down the information into intervals of 1 minute bursts. What I'm trying to do is use setInterval to have it pull the data once per minute. The problem is, when I use setInterval as documented, it waits the first minute, does its thing, but then it ignores the interval after that, pulling the data every time that frame comes up. Here's the relevant bit of code: function intervalLoop() { xmlData = new XML(); xmlData.load(wddx.php); xmlData.onLoad = function () { wddx = new Wddx(); _root.wddxObj = wddx.deserialize(this); delete(xmlData); } for (j=0; j _root.lines.length; j++) { trace(Deleting clip: + _root.lines[j][pen]._name); _root.lines[j][pen].removeMovieClip(); delete(_root.lines[j][pen]); delete(_root.lines[j
RE: [Flashcoders] setInterval woes
What I would highly recommend is externalizing your interval and data loading into a class. This way, you have the class handle its own state and data, fire an event once it's loaded or reloaded data and have your movie listen for that event. The class can then be instantiated just once at the beginning of your movie. OR, use a Singleton to ensure a single instantiation. I would probably advise against the Singleton approach for your purposes, though. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael King Sent: Friday, April 20, 2007 5:35 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] setInterval woes Hey all, Some of you may remember my problems with visually mapping streaming data before. I ended up needing them as separate clips to provide individual roll-over support with the ability to add links in a future revision. Well, now that I have it performing better, I'm breaking down the information into intervals of 1 minute bursts. What I'm trying to do is use setInterval to have it pull the data once per minute. The problem is, when I use setInterval as documented, it waits the first minute, does its thing, but then it ignores the interval after that, pulling the data every time that frame comes up. Here's the relevant bit of code: function intervalLoop() { xmlData = new XML(); xmlData.load(wddx.php); xmlData.onLoad = function () { wddx = new Wddx(); _root.wddxObj = wddx.deserialize(this); delete(xmlData); } for (j=0; j _root.lines.length; j++) { trace(Deleting clip: + _root.lines[j][pen]._name); _root.lines[j][pen].removeMovieClip(); delete(_root.lines[j][pen]); delete(_root.lines[j][timestamp]); _root.lines.splice(j,1); } for (var i in _root.wddxObj) { _root.counter++; date_now = new Date(); pen = createEmptyMovieClip(curve_ + i + _mc, 2 + _root.counter); trace(Added clip: + pen._name); pen.lineStyle(1.5,0xFF6600); container = {pen: pen, timestamp: date_now}; _root.lines.push(container); dest_long = _root.wddxObj[i][long]; dest_lat = _root.wddxObj[i][lat]; site = _root.wddxObj[i][site]; src_long = _root.locations[site][long]; src_lat = _root.locations[site][lat]; curvePoint(pen, src_long, src_lat, dest_long, dest_lat); } } setInterval(intervalLoop, 6); Thanks, Michael King CSIRT - Developer Security Incident Response Group Humana Inc. E-mail: [EMAIL PROTECTED] STANDS: Some Theoretical Acronym Not Described Sufficiently The information transmitted is intended only for the person or entity to which it is addressed and may contain CONFIDENTIAL material. If you receive this material/information in error, please contact the sender and delete or destroy the material/information. ___ 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
RE: [Flashcoders] setInterval woes
An interval is fired at each interval. What you're talking about is a setTimeout which is fired only once after a delay (timeout). An interval is fired an infinite number of times until clearInterval is called. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jordan Snyder Sent: Friday, April 20, 2007 2:03 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] setInterval woes Steven, why is that? If he's only calling it once and the interval is only defined/set once, why would you call clearInterval? On 4/20/07, Steven Sacks [EMAIL PROTECTED] wrote: You should always call clearInterval before setInterval. ALWAYS. Michael King wrote: Hey all, Some of you may remember my problems with visually mapping streaming data before. I ended up needing them as separate clips to provide individual roll-over support with the ability to add links in a future revision. Well, now that I have it performing better, I'm breaking down the information into intervals of 1 minute bursts. What I'm trying to do is use setInterval to have it pull the data once per minute. The problem is, when I use setInterval as documented, it waits the first minute, does its thing, but then it ignores the interval after that, pulling the data every time that frame comes up. Here's the relevant bit of code: function intervalLoop() { xmlData = new XML(); xmlData.load(wddx.php); xmlData.onLoad = function () { wddx = new Wddx(); _root.wddxObj = wddx.deserialize(this); delete(xmlData); } for (j=0; j _root.lines.length; j++) { trace(Deleting clip: + _root.lines[j][pen]._name); _root.lines[j][pen].removeMovieClip(); delete(_root.lines[j][pen]); delete(_root.lines[j][timestamp]); _root.lines.splice(j,1); } for (var i in _root.wddxObj) { _root.counter++; date_now = new Date(); pen = createEmptyMovieClip(curve_ + i + _mc, 2 + _root.counter); trace(Added clip: + pen._name); pen.lineStyle(1.5,0xFF6600); container = {pen: pen, timestamp: date_now}; _root.lines.push(container); dest_long = _root.wddxObj[i][long]; dest_lat = _root.wddxObj[i][lat]; site = _root.wddxObj[i][site]; src_long = _root.locations[site][long]; src_lat = _root.locations[site][lat]; curvePoint(pen, src_long, src_lat, dest_long, dest_lat); } } setInterval(intervalLoop, 6); Thanks, Michael King CSIRT - Developer Security Incident Response Group Humana Inc. E-mail: [EMAIL PROTECTED] STANDS: Some Theoretical Acronym Not Described Sufficiently The information transmitted is intended only for the person or entity to which it is addressed and may contain CONFIDENTIAL material. If you receive this material/information in error, please contact the sender and delete or destroy the material/information. ___ 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 -- Jordan Snyder Applications Developer Image Action LLC http://www.imageaction.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@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] setInterval woes
Yes, that's where you're mistaken. setInterval will set an interval that will call a method at each interval. Whether you assign it to a variable or not, it will continue to call that method at each interval. This is how setInterval works. In order to clear an interval, you MUST assign an ID and call clearInterval on that ID. The functionality you're talking about is a setTimeout. That calls a method once and ONLY once after a specified delay. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jordan Snyder Sent: Friday, April 20, 2007 3:02 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] setInterval woes No, I mean that he is only calling setInterval once and has no apparent need to even assign it to a variable for use with clearInterval later. On 4/20/07, David Ngo [EMAIL PROTECTED] wrote: An interval is fired at each interval. What you're talking about is a setTimeout which is fired only once after a delay (timeout). An interval is fired an infinite number of times until clearInterval is called. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jordan Snyder Sent: Friday, April 20, 2007 2:03 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] setInterval woes Steven, why is that? If he's only calling it once and the interval is only defined/set once, why would you call clearInterval? On 4/20/07, Steven Sacks [EMAIL PROTECTED] wrote: You should always call clearInterval before setInterval. ALWAYS. Michael King wrote: Hey all, Some of you may remember my problems with visually mapping streaming data before. I ended up needing them as separate clips to provide individual roll-over support with the ability to add links in a future revision. Well, now that I have it performing better, I'm breaking down the information into intervals of 1 minute bursts. What I'm trying to do is use setInterval to have it pull the data once per minute. The problem is, when I use setInterval as documented, it waits the first minute, does its thing, but then it ignores the interval after that, pulling the data every time that frame comes up. Here's the relevant bit of code: function intervalLoop() { xmlData = new XML(); xmlData.load(wddx.php); xmlData.onLoad = function () { wddx = new Wddx(); _root.wddxObj = wddx.deserialize(this); delete(xmlData); } for (j=0; j _root.lines.length; j++) { trace(Deleting clip: + _root.lines[j][pen]._name); _root.lines[j][pen].removeMovieClip(); delete(_root.lines[j][pen]); delete(_root.lines[j][timestamp]); _root.lines.splice(j,1); } for (var i in _root.wddxObj) { _root.counter++; date_now = new Date(); pen = createEmptyMovieClip(curve_ + i + _mc, 2 + _root.counter); trace(Added clip: + pen._name); pen.lineStyle(1.5,0xFF6600); container = {pen: pen, timestamp: date_now}; _root.lines.push(container); dest_long = _root.wddxObj[i][long]; dest_lat = _root.wddxObj[i][lat]; site = _root.wddxObj[i][site]; src_long = _root.locations[site][long]; src_lat = _root.locations[site][lat]; curvePoint(pen, src_long, src_lat, dest_long, dest_lat); } } setInterval(intervalLoop, 6); Thanks, Michael King CSIRT - Developer Security Incident Response Group Humana Inc. E-mail: [EMAIL PROTECTED] STANDS: Some Theoretical Acronym Not Described Sufficiently The information transmitted is intended only for the person or entity to which it is addressed and may contain CONFIDENTIAL material. If you receive this material/information in error, please contact the sender and delete or destroy the material/information. ___ 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 -- Jordan Snyder Applications Developer Image Action LLC http://www.imageaction.com ___ Flashcoders
RE: [Flashcoders] How is it done? coca-cola creator
Sounds like the exact same implementation I did for Warner Bros' Toonify engine. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Walters Sent: Friday, April 13, 2007 5:27 PM To: [EMAIL PROTECTED] Subject: Re: [Flashcoders] How is it done? coca-cola creator Hey guys, It is AS2 and we did it by creating an svg representation of the flash vector artwork on flash's side and passing that to Java. Java in turn takes the svg data and creates a bitmap representation. Doing it this way was actually much faster for us than going the BitmapData route. -- Mark Walters [EMAIL PROTECTED] http://digitalflipbook.com On 4/13/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Flash is uploading a bitmapData object representing the final image to the server. This is a Flash 8 AS 2.0 solution I'm sure is JSP server merging predefined images, client-side tells server-side only the position, orientation, text, color, etc of the image. You can do it with php, coldfusion, aspx, etc too. -- Andrés González Aragón Desarrollador Multimedia http://www.quantium.com.mx 2007/4/13, T. Michael Keesey [EMAIL PROTECTED]: The sniffer is looking for Flash 8, so I highly doubt it's an AS3 solution. I believe it's a highly optimized server-side solution. On 4/13/07, Mick G [EMAIL PROTECTED] wrote: Does anyone know how this is done? (The saving as JPG option) http://coca-colacreator.coca-cola.com/creator.html?country=USlang=EN My guess is AS3 and some type of AS3 JPG encoder? It seems too fast and responsive to be doing any server side image encoding. ___ [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 ___ [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 ___ [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 ___ [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 ___ [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 ___ [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
RE: [Flashcoders] would this bother you?
AFAIK, any instances will remain in memory if there is a reference to it anywhere. Even if you call the remove methods, they just remove them from the Stage/screen but not from the memory stack. You will have to remove any references in any instances in order to garbage collect them properly. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of geng wang Sent: Monday, April 09, 2007 10:51 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] would this bother you? hello flashcoders, i have two fundamental questions. they somewhat keep bothering me: 1. what are the datatypes of a MovieClip instance and a Textfield instance after calling removeMovieClip()/removeTextField() on that MovieClip/Textfield instance? 2. do they remain in the memory after removeMovieClip()/removeTextField()? do i need to delete the references to them in order to have them garbage collected? pls see below: var tn:MovieClip = this.createEmptyMovieClip(tn, 0); var tn_nested:MovieClip = tn.createEmptyMovieClip(tnNested, 0); var tf_nested:TextField = tn.createTextField(tf, 1, 0, 100, 100, 100); tf_nested.text = hello world!; tn.loadMovie(http://assets0.twitter.com/images/twitter.png?1175908827;); destroy_btn.onRelease = function(){ tf_nested.removeTextField(); tn.removeMovieClip(); trace(is tn instanceof MovieClip after removeMovieClip: +(tn instanceof MovieClip));//false trace(is tn instanceof Object after removeMovieClip: +(tn instanceof Object));//false trace(tn type after removeMovieClip: + typeof(tn));//movieclip trace(is tf_nested instanceof Object after removeMovieClip: +(tf_nested instanceof Object));//false trace(tf_nested type after removeMovieClip: +(typeof(tf_nested)));//movieclip trace(tn is +tn+; tf_nested is +tf_nested);//tn is ; tf_nested is delete tf_nested; delete tn; trace(newline+delete tn); trace(tn after destroy: +(tn instanceof MovieClip)); trace(tn after destroy: +(tn instanceof Object)); trace(tn type after destroy: + typeof(tn)); trace(tf_nested type after destroy: +(typeof(tf_nested))); } ___ 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
RE: [Flashcoders] XPath online
Try this: http://download.macromedia.com/pub/documentation/en/flash/fl8/XpathAPI.pdf -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hairy Dog Digital Sent: Monday, April 09, 2007 12:07 PM To: flashcoders@chattyfig.figleaf.com; [EMAIL PROTECTED] Subject: [Flashcoders] XPath online Hey all, Can anyone recommend a solid online reference for XPath (working with XFactorStudio XPath is Flash MX 04 Pro)? Their web site is next to non-existent, I just had to backpeddle on a project, and trying to get my bearings on XPath and their implementation of it for AS2. Thanks, Rob ___ 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
RE: [Flashcoders] Accessing the instance of a class
What instance are you trying to access? Your 'whatever' class? If so, you'll need to use a Delegate to force scope: import mx.utils.Delegate; class whatever { public var triggered:Boolean; public var foo:XMLSocket; public function whatever() { foo = new XMLSocket(); foo.data = Delegate.create(this, dodata); } private function dodata(what:XML):Void { triggered = true; // will now reference your class instance } } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Mudge Sent: Sunday, April 08, 2007 9:43 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Accessing the instance of a class Here is an representation of something I'm trying to do on a much larger scale: class whatever { public var triggered:Boolean; public var foo:XMLSocket; public function whatever() { foo = new XMLSocket(); foo.data = dodata; } private function dodata(what:XML) { _.triggered = true; } } What goes in the blank? How do I access the instance? I have determined that 'this' won't work; at the blank, the 'this' is actually the XMLSocket. 'triggered' alone is apparently not in-scope... Any ideas? - Kipp PS. Many thanks for the help with classes not initializing -- It was because a stale class of the same name had previously been loaded... Stuck in memory. ___ 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
RE: [Flashcoders] Constructors in AS2 SWFs not being calledwhenloaded by AS3
AS2 code will not work directly with AS3. You'll have to use LocalConnection to get the two pieces of code to communicate with each other (very ugly). At this point, you might want to go with one or the other and not both. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Mudge Sent: Saturday, April 07, 2007 6:53 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Constructors in AS2 SWFs not being calledwhenloaded by AS3 Is there any reason why you aren't porting over the Thingy class from AS2 to AS3? It might be easier to rewrite the class using AS3. The system I'm making is for featuring other artist's work... Some may not have Flash 9, and really don't want to require them to use a program that isn't even out yet... Also, there are some older AS2 apps that will be adapted to this system. The reason the base is in AS3 is because I want to be able to at least support AS3, since I assume it will eventually dominate, and AS3's got some other functionality that I would like to incorporate. That link to AVM1Movie was really interesting -- It definitely has some very relevant stuff, but I still don't see why AS2 doesn't call the constructor. From what I can tell, the instance is created and all other calls work, but the constructor itself just gets skipped. Has anyone else tried this? Would anyone else be willing to try and see what other information can be gleaned from it? Would it be proper to say that this is a bug (rather than a shortcoming) in Flash Player 9? - Kipp On 4/6/07, Michael Mudge [EMAIL PROTECTED] wrote: I've got an AS 2.0 (Flash 8) SWF that creates a class, and traces a property on that class... Something like this: foo = new Thingy(); trace(foo.test); All the class does is initialize that property; something like this: class Thingy { public var test:String; public function Thingy() { test = hello; } } This is pretty basic stuff -- and it works as expected. When run, it simply traces hello. I then create an AS3 / Flash 9 app that loads the aforementioned SWF... Something like this: As2thing = new Loader(); addChild(As2thing); As2thing.load(new URLRequest(as2thing.swf)); Then suddenly, as2thing.swf doesn't quite behave the same; the Thingy's constructor doesn't get called -- it traces undefined instead. Any idea why? - Kipp ___ 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@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
RE: [Flashcoders] attaching an event to a movie clip
What you can also do is create a nested MovieClip and load your image on that. That way, you set your handlers on the parent clip and don't have to worry about when it loads. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Friday, April 06, 2007 11:01 AM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] attaching an event to a movie clip You have to wait for the clips to fully load before assigning any behaviors - otherwise the behaviors, like onRollover get overwritten when the image finally loads. Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Duenas Sent: Friday, April 06, 2007 1:43 PM To: Flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] attaching an event to a movie clip Hi , Ok it doesn't sound as simple, I've created a series of empty movieclips which loads pics from an array, so far it loads perfectly but I can attach to the newly created movie clip any kind of events. I'm using this. stop(); var models = new Array(); models = [ model1, model2, model3, model4]; trace(models.length); for (i=0; imodels.length; i++){ movieName=models[i]; var newMC= this.container1.createEmptyMovieClip(movieName, 0+i); newMC.loadMovie(models/+movieName+.jpg); newMC._x=100*-i; newMC._y=100*i; trace (newMC);// so far works until here, creating the movieclips and loading the pics inside then and assigning them a respective value for x and y ///from now on, I got the problem, it appear that can't accept any event in the movie clips newMC.rollOver= function(){ trace(hello); } } I hope you got it...because I'm still dont get it. Regards Gustavo Duenas ___ 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@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] attaching an event to a movie clip
Personally, I find onEnterFrames bad practice to use unless you absolutely have to (if your logic is frame-based, etc). I would suggest the nested clip and/or use MovieClipLoader to handle your image loading. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of john robinson Sent: Friday, April 06, 2007 11:48 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] attaching an event to a movie clip You have 2 choices so far... you can set up a poll (using onEnterFrame) to figure out when the images have finished loading and then attach the events or you can do as David suggested and nest your images inside another clip. I don't really know if either solution is better than the other, but with the code you already have and what David suggested you can make a few changes and probably get by. Some code: var models = new Array(); models = [ model1, model2, model3, model4]; trace(models.length); for (i=0; imodels.length; i++){ movieName=models[i]; var newMC= this.container1.createEmptyMovieClip(movieName, 0+i); // create another mc inside newMC to load your images into var img_mc = newMC.createEmptyMovieClip(image_mc, 1); // load your image img_mc.loadMovie(models/+movieName+.jpg); newMC._x=100*-i; newMC._y=100*i; trace (newMC);// so far works until here, creating the movieclips and loading the pics inside then and assigning them a respective value for x and y ///from now on, I got the problem, it appear that can't accept any event in the movie clips newMC.onRollOver= function(){ trace(hello); } } Hope it helps. Keep in mind that this doesn't let you adjust the size of the image. For that you'll have to go the other route and wait until the image has fully loaded. You could do that using the code above, but attach an onEnterFrame to your newMC... like so: newMC.onEnterFrame = function() { var bl = img_mc.getBytesLoaded(); var bt = img_mc.getBytesTotal(); if(bl == bt bt 0) { delete this.onEnterFrame; // your image is now loaded... do whatever you want here. } } John On Apr 6, 2007, at 2:25 PM, Gustavo Duenas wrote: I did, but it is the same...nothing so far...I guess that one of you maybe have been in this problem before...so I'd like to know how can I finish it. Regards Gustavo On Apr 6, 2007, at 2:04 PM, Rost, Andrew wrote: newMC.rollOver Should be: newMC.onRollOver HTH -Original Message- From: Gustavo Duenas [mailto:[EMAIL PROTECTED] Sent: Friday, April 06, 2007 12:43 PM To: Flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] attaching an event to a movie clip Hi , Ok it doesn't sound as simple, I've created a series of empty movieclips which loads pics from an array, so far it loads perfectly but I can attach to the newly created movie clip any kind of events. I'm using this. stop(); var models = new Array(); models = [ model1, model2, model3, model4]; trace(models.length); for (i=0; imodels.length; i++){ movieName=models[i]; var newMC= this.container1.createEmptyMovieClip(movieName, 0+i); newMC.loadMovie(models/+movieName+.jpg); newMC._x=100*-i; newMC._y=100*i; trace (newMC);// so far works until here, creating the movieclips and loading the pics inside then and assigning them a respective value for x and y ///from now on, I got the problem, it appear that can't accept any event in the movie clips newMC.rollOver= function(){ trace(hello); } } I hope you got it...because I'm still dont get it. Regards Gustavo Duenas ___ 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@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:
RE: [Flashcoders] Enumerating properties from outside an instance.
If you're looking to iterate through a nested object(s), then you have to create a nested loop: function loopMe(target:Object):Void { trace('-- looping through: ' + target + '--'); for (var s:String in target) { trace(s + ': ' + target[s]); for (var t:String in target) { trace('\t' + t + ': ' + target[s][t]); } } } loopMe(myMC); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Lutes Sent: Thursday, April 05, 2007 3:09 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Enumerating properties from outside an instance. Thanks John, My loop is even simpler. I failed to mention that I need to examine nested MovieClip instances for functions. Variables seem to appear as expected, but functions only appear for the current scope. Very strange. Works as expected: for (var propertyIdentifier:String in this) { trace(propertyIdentifier); } Does not work as expected: for (var propertyIdentifier:String in this.someNestedInstance) { trace(propertyIdentifier); } - Jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Mark Hawley Sent: Thursday, April 05, 2007 3:54 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Enumerating properties from outside an instance. You can do it; you must have an error in your code. for (var prop:String in clip) { var subObject:Object = clip[prop]; for (var otherProp:String in subObject) { trace(otherProp + : + subObject[otherProp]); } } It should look like that, but not horrible. From: Jason Lutes [EMAIL PROTECTED] Date: 2007/04/05 Thu PM 04:10:48 CDT To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Enumerating properties from outside an instance. I can't figure this out. I can set up a for...in loop to show me all the (enumerable) properties -- variables and functions -- on the MovieClip instance where I place the loop, but I can't enumerate properties for other (nested) MovieClip instances by simply changing the focus object of that same for...in loop. Why not? If I move the enumerating loop into the nested clips it works as expected. - Jason ___ 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 -- John Mark Hawley The Nilbog Group 773.968.4980 (cell) ___ 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@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] Events for custom classes?
You'll need a reference of the dispatching class in your listener class to receive events: // broadcasting class import mx.events.EventDispatcher; class EventClass { // EventDispatcher methods public var addEventListener:Function; public var removeEventListener:Function; private var dispatchEvent:Function; public function EventClass() { } public function onInit():Void { trace('onInit fired!'); dispatchEvent({type: onInit, target: this}); } } // listener class import mx.utils.Delegate; class ListenerClass { public function ListenerClass(eventClass:MyEventClass) { eventClass.addEventListener(onInit, Delegate.create(this, onInitHandler)); } private function onInitHandler(event:Object):Void { trace('onInitHandler invoked'); } } // implementation var eventClass:EventClass = new EventClass(); var listenerClass:ListenerClass = new ListenerClass(eventClass); eventClass.onInit(); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, April 03, 2007 9:47 AM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Events for custom classes? Actually, I had been meaning to post again because I had lost my code for getting EventDispatcher working between two classes. Someone posted a response here and I lost it, as well as my code that was working. if anyone can post again on how to get one class to dispatch a CUSTOM event and get another CUSTOM class to listen to that event, please post! Helmut and I would like to see an example. The help docs on EventDispatcher are really awful, and I haven't seen a lot of stuff online. Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Helmut Granda Sent: Tuesday, April 03, 2007 12:35 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Events for custom classes? On 4/3/07, Helmut Granda [EMAIL PROTECTED] wrote: Jason, Were you able to figure this out exactly the way you wanted it? -h On 2/16/07, Merrill, Jason [EMAIL PROTECTED] wrote: Ah - nevermind - figured out I had removed the scope to my webservice and forgot to put it back in. Delegate works fine for me now, sorry about the noise, and thanks so much everyone for the help!! Jason Merrill Bank of America Learning Organizational Effectiveness ___ 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@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] Events for custom classes?
Ick. I totally forgot to initialize EventDispatcher. Constructor for EventClass should be: public function EventClass() { EventDispatcher.initialize(this); } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Ngo Sent: Tuesday, April 03, 2007 10:46 AM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Events for custom classes? You'll need a reference of the dispatching class in your listener class to receive events: // broadcasting class import mx.events.EventDispatcher; class EventClass { // EventDispatcher methods public var addEventListener:Function; public var removeEventListener:Function; private var dispatchEvent:Function; public function EventClass() { } public function onInit():Void { trace('onInit fired!'); dispatchEvent({type: onInit, target: this}); } } // listener class import mx.utils.Delegate; class ListenerClass { public function ListenerClass(eventClass:MyEventClass) { eventClass.addEventListener(onInit, Delegate.create(this, onInitHandler)); } private function onInitHandler(event:Object):Void { trace('onInitHandler invoked'); } } // implementation var eventClass:EventClass = new EventClass(); var listenerClass:ListenerClass = new ListenerClass(eventClass); eventClass.onInit(); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, April 03, 2007 9:47 AM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Events for custom classes? Actually, I had been meaning to post again because I had lost my code for getting EventDispatcher working between two classes. Someone posted a response here and I lost it, as well as my code that was working. if anyone can post again on how to get one class to dispatch a CUSTOM event and get another CUSTOM class to listen to that event, please post! Helmut and I would like to see an example. The help docs on EventDispatcher are really awful, and I haven't seen a lot of stuff online. Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Helmut Granda Sent: Tuesday, April 03, 2007 12:35 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Events for custom classes? On 4/3/07, Helmut Granda [EMAIL PROTECTED] wrote: Jason, Were you able to figure this out exactly the way you wanted it? -h On 2/16/07, Merrill, Jason [EMAIL PROTECTED] wrote: Ah - nevermind - figured out I had removed the scope to my webservice and forgot to put it back in. Delegate works fine for me now, sorry about the noise, and thanks so much everyone for the help!! Jason Merrill Bank of America Learning Organizational Effectiveness ___ 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@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
RE: [Flashcoders] Events for custom classes?
Yes, that would be correct. I initially named them MyEvent/ListenerClass but changed it halfway through writing the email. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Helmut Granda Sent: Tuesday, April 03, 2007 11:54 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Events for custom classes? Thanks for this sample David, Just a small correction: public function ListenerClass(eventClass:MyEventClass) should be public function ListenerClass(eventClass:EventClass); Correct? -h On 4/3/07, David Ngo [EMAIL PROTECTED] wrote: You'll need a reference of the dispatching class in your listener class to receive events: // broadcasting class import mx.events.EventDispatcher; class EventClass { // EventDispatcher methods public var addEventListener:Function; public var removeEventListener:Function; private var dispatchEvent:Function; public function EventClass() { } public function onInit():Void { trace('onInit fired!'); dispatchEvent({type: onInit, target: this}); } } // listener class import mx.utils.Delegate; class ListenerClass { public function ListenerClass(eventClass:MyEventClass) { eventClass.addEventListener(onInit, Delegate.create (this, onInitHandler)); } private function onInitHandler(event:Object):Void { trace('onInitHandler invoked'); } } // implementation var eventClass:EventClass = new EventClass(); var listenerClass:ListenerClass = new ListenerClass(eventClass); eventClass.onInit(); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, April 03, 2007 9:47 AM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Events for custom classes? Actually, I had been meaning to post again because I had lost my code for getting EventDispatcher working between two classes. Someone posted a response here and I lost it, as well as my code that was working. if anyone can post again on how to get one class to dispatch a CUSTOM event and get another CUSTOM class to listen to that event, please post! Helmut and I would like to see an example. The help docs on EventDispatcher are really awful, and I haven't seen a lot of stuff online. Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Helmut Granda Sent: Tuesday, April 03, 2007 12:35 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Events for custom classes? On 4/3/07, Helmut Granda [EMAIL PROTECTED] wrote: Jason, Were you able to figure this out exactly the way you wanted it? -h On 2/16/07, Merrill, Jason [EMAIL PROTECTED] wrote: Ah - nevermind - figured out I had removed the scope to my webservice and forgot to put it back in. Delegate works fine for me now, sorry about the noise, and thanks so much everyone for the help!! Jason Merrill Bank of America Learning Organizational Effectiveness ___ 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@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@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
RE: [Flashcoders] Delegate Scope Class Issues
You're calling it incorrectly. Delegate returns a Function that is invoked on the object you specify. Here's the correct syntax: class Mover { var button_btn : MovieClip; function Mover() { _level0.button_btn._alpha = 0; init(); } function init() { var myTween:Tween = new Tween(_level0.button_btn, _alpha, mx.transitions.easing.Elastic.easeOut,0, 100, 3, true); myTween.onMotionFinished = Delegate.create(this, record); } function record() { trace(recordReached); } } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Helmut Granda Sent: Monday, April 02, 2007 5:52 PM To: Flashcoders mailing list Subject: [Flashcoders] Delegate Scope Class Issues Hi All, I have a little bit of a dilemma here. I have some Tweens that Im scripting and when they are done I want to trigger something else. but for some reasons I cant get the Delegate class to talk directly to the rest of the app. I can talk to the rest of the class directly such as _level0.instance1.nextfunction but of course in terms of portability this is not acceptable. Any pointers are really appreciated. class Mover { var button_btn : MovieClip; function Mover() { _level0.button_btn._alpha = 0; init(); } function init() { var myTween:Tween = new Tween(_level0.button_btn, _alpha, mx.transitions.easing.Elastic.easeOut,0, 100, 3, true); myTween.onMotionFinished = function() { Delegate.create(this, record); } } function record() { trace(recordReached); } } ___ 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
RE: [Flashcoders] Delegate Scope Class Issues
You're going to get an infinite loop out of that because you're instantiating a new instance of itself upon instantiation. What you need to do is pass a reference of the MovieClip to whatever class you're using it in: // timeline code var target:MovieClip = this.createEmptyMovieClip(target, this.getNextHighestDepth()); var mover:Mover = new Mover(target); // class class MyClass { private var mc:MovieClip public function MyClass(target:MovieClip) { mc = target; } } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Helmut Granda Sent: Monday, April 02, 2007 6:31 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Delegate Scope Class Issues Thanks guys, I really appreciate it. No wonder for the life of me I couldn't get this to work. One more question since we are in scoping issues. As you can tell by my class I am refering to the button on the timeline directly. such as _level0.button_btn. But again this won't help me when the application changes levels, so I was thinking of making a reference of the instantiated class in the class and then reference to it but it get a bad result. So my class is as follows: class Timer { var button_btn : MovieClip; var mc : Timer; function Timer() { // mc created to transport focus... mc = new Timer(); //...rest of the function And I get this on the output window. 256 levels of recursion were exceeded Thanks again for your help. On 4/2/07, David Ngo [EMAIL PROTECTED] wrote: You're calling it incorrectly. Delegate returns a Function that is invoked on the object you specify. Here's the correct syntax: class Mover { var button_btn : MovieClip; function Mover() { _level0.button_btn._alpha = 0; init(); } function init() { var myTween:Tween = new Tween(_level0.button_btn, _alpha, mx.transitions.easing.Elastic.easeOut,0, 100, 3, true); myTween.onMotionFinished = Delegate.create(this, record); } function record() { trace(recordReached); } } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Helmut Granda Sent: Monday, April 02, 2007 5:52 PM To: Flashcoders mailing list Subject: [Flashcoders] Delegate Scope Class Issues Hi All, I have a little bit of a dilemma here. I have some Tweens that Im scripting and when they are done I want to trigger something else. but for some reasons I cant get the Delegate class to talk directly to the rest of the app. I can talk to the rest of the class directly such as _level0.instance1.nextfunction but of course in terms of portability this is not acceptable. Any pointers are really appreciated. class Mover { var button_btn : MovieClip; function Mover() { _level0.button_btn._alpha = 0; init(); } function init() { var myTween:Tween = new Tween(_level0.button_btn, _alpha, mx.transitions.easing.Elastic.easeOut,0, 100, 3, true); myTween.onMotionFinished = function() { Delegate.create(this, record); } } function record() { trace(recordReached); } } ___ 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@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
RE: [Flashcoders] Delegate Scope Class Issues
Sorry, that should be: var myClass:MyClass = new MyClass(target) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Ngo Sent: Monday, April 02, 2007 6:52 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Delegate Scope Class Issues You're going to get an infinite loop out of that because you're instantiating a new instance of itself upon instantiation. What you need to do is pass a reference of the MovieClip to whatever class you're using it in: // timeline code var target:MovieClip = this.createEmptyMovieClip(target, this.getNextHighestDepth()); var mover:Mover = new Mover(target); // class class MyClass { private var mc:MovieClip public function MyClass(target:MovieClip) { mc = target; } } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Helmut Granda Sent: Monday, April 02, 2007 6:31 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Delegate Scope Class Issues Thanks guys, I really appreciate it. No wonder for the life of me I couldn't get this to work. One more question since we are in scoping issues. As you can tell by my class I am refering to the button on the timeline directly. such as _level0.button_btn. But again this won't help me when the application changes levels, so I was thinking of making a reference of the instantiated class in the class and then reference to it but it get a bad result. So my class is as follows: class Timer { var button_btn : MovieClip; var mc : Timer; function Timer() { // mc created to transport focus... mc = new Timer(); //...rest of the function And I get this on the output window. 256 levels of recursion were exceeded Thanks again for your help. On 4/2/07, David Ngo [EMAIL PROTECTED] wrote: You're calling it incorrectly. Delegate returns a Function that is invoked on the object you specify. Here's the correct syntax: class Mover { var button_btn : MovieClip; function Mover() { _level0.button_btn._alpha = 0; init(); } function init() { var myTween:Tween = new Tween(_level0.button_btn, _alpha, mx.transitions.easing.Elastic.easeOut,0, 100, 3, true); myTween.onMotionFinished = Delegate.create(this, record); } function record() { trace(recordReached); } } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Helmut Granda Sent: Monday, April 02, 2007 5:52 PM To: Flashcoders mailing list Subject: [Flashcoders] Delegate Scope Class Issues Hi All, I have a little bit of a dilemma here. I have some Tweens that Im scripting and when they are done I want to trigger something else. but for some reasons I cant get the Delegate class to talk directly to the rest of the app. I can talk to the rest of the class directly such as _level0.instance1.nextfunction but of course in terms of portability this is not acceptable. Any pointers are really appreciated. class Mover { var button_btn : MovieClip; function Mover() { _level0.button_btn._alpha = 0; init(); } function init() { var myTween:Tween = new Tween(_level0.button_btn, _alpha, mx.transitions.easing.Elastic.easeOut,0, 100, 3, true); myTween.onMotionFinished = function() { Delegate.create(this, record); } } function record() { trace(recordReached); } } ___ 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@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@chattyfig.figleaf.com To change
RE: [Flashcoders] Actionscript 3.0 help w/ simple HelloWorld
Hey Jason, If I remember correctly, I believe you also have to attach your HelloWorld class to the stage (or was it display list?) via addChild. Instantiating it via the constructor will only create it in memory and not automatically attach to the display. I don't have the exact syntax, but I'm sure you can search around on LiveDocs and get the answer you need. David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Thursday, March 22, 2007 6:09 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Actionscript 3.0 help w/ simple HelloWorld Getting my feet wet with AS3, I just bought the AS3 cookbook and have learned a lot already - great book. I feel like an idiot asking this as I'm pretty good in AS2, but with AS3, I'm not getting a simple script working. I have the Flash 9 AS3 preview, trying to write a simple HelloWorld class (based on an example in the book) to show a TextField: //MyPackage.as package MyPackage { //do I actually need this one?: import flash.display.DisplayObjectContainer; import flash.display.Sprite; import flash.text.TextField; public class HelloWorld extends Sprite { public function HelloWorld() { var message_txt:TextField = new TextField(); message_txt.text = Hello World; addChild(message_txt); //does not show! trace(constructor runs)//traces fine } } } Then in the .fla, I put: import MyPackage.* var hw:HelloWorld = new HelloWorld(); The constructor traces fine in the output window, but the TextField does not show. What have I done wrong? My Export settings in F9 As3 preview are for AS 3.0 and FP9. In later scripts, I tried moving the textfield, changing the color, changing the stage color to be sure it wasn't matching the textfield and this invisible, etc...(but it should show as black Times New Roman text by default anyway...) Thanks, Oh, and as a side note, I use FlashDevelop 2.0.1 and have my syntax set to AS3, but have notices code hinting doesn't always work or is sometimes incomplete - has anyone else noticed that? Maybe I just need to update it. Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team ___ 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
RE: [Flashcoders] disabling carriage returns in multiline input textfields
I would say your best bet is to make it initially a single-line textfield, listen for the onChanged handler and do some metrics on it (getTextExtent), if it passes a certain width, set autoSize and multiline. You could possibly also try listening for a Key event and ignore the one for ENTER. Not sure if that'll work 100% though. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of john hoffsis Sent: Wednesday, March 21, 2007 2:55 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] disabling carriage returns in multiline input textfields Does anyone know if it's possible to restrict hard returns in text input fields (fields must wrap)? I have form fields to capture user input that I'm sending up to the server to be stored in a database. When I request this stored data from the server, anything after a hard return is lost. I've tried something like this: my_txt.restrict=^\u0013, and a bunch of variations thereof, but nothing seems to keep the Enter key from doing it's thing. Second best would be to traverse through a string a user has entered and replace hard returns with a space or dash, but again I've had no luck looking for \n or \r. I've tried entering text and hard returns into a dynamic textfield set to input, but when I try this: var n:Number = my_txt.indexOf(\n)... trace(n: +n) //traces n: -1 Anyone have any insight into this? Thanks, John ___ 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
RE: [Flashcoders] .aso cache frustration
I'd probably say recompile both SWF's. What could be happening is the classes inside swf A imports one or more class that swf B has. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, March 20, 2007 11:08 AM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] .aso cache frustration Close - .swf B gets loaded into .swf A .swf B has the trouble - however, .swf A does not import the same classes .swf B does. Jason Merrill Bank of America Global Technology Operations Learning Leadership Development eTools Multimedia Team -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Tuesday, March 20, 2007 1:16 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] .aso cache frustration Hi Jason, It's not because you're loading the SWF into another SWF which has different/older versions of classes with the same name and package, is it..? HTH, Ian On 3/20/07, Merrill, Jason [EMAIL PROTECTED] wrote: So I am updating an AS 2.0 class file I wrote last fall, and when I go to publish the .swf, I get the classic problem where the .swf doesn't update with the new code in the class. I verified it by commenting out everything but the constructor which only contains the trace statement. So I figured, it was just a simple matter of deleting the .ASO files because Flash was still caching my old .as file. But no luck. I also verified all my classpaths were correct and pointing to the right parent directory where the class file lives as a package. The only way I can get the new code to get injected into this .swf is to name the class and file something else completely different and then import that into my .swf instead. Has anyone fixed this issue before? (and please don't tell me to use MTASC instead - had enough problems with that which I plan to tackle later :) ) Deleting ASO files (at least from the Flash 8 IDE option) doesn't seem to do the trick. Do I need to manually hunt down these old .aso files? Thanks. Jason Merrill Bank of America Global Technology Operations Learning Leadership Development eTools Multimedia Team ___ 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@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