RE: [Flashcoders] AS3 Nice Knob(s)
http://www.bit-101.com/blog/?p=1337 -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki Sent: Friday, January 16, 2009 11:51 AM To: Flash Coders List Subject: [Flashcoders] AS3 Nice Knob(s) I am looking for an AS3 knob that is close to this: http://keith-hair.net/blog/examples/niceknobs/ yet is something I can use in the Flash CS4 IDE - a SWC would even be nice to link up to. The URL above is just an example. Being able to optionally check + or - movements on 360º revolutions (detents) would be a huge plus. If the code is accessible, that would be super awesome for tweaking. Tried googling, haven't found anything close yet. Any help? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] AS3 Nice Knob(s)
I think in general, knobs always behave like sliders. Take for example Ableton Live, a music software which use a lot of knobs, they all behave like sliders. I think the knobs on the link you were referring to may seem more realistic but are actually harder to use. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki Sent: Friday, January 16, 2009 12:17 PM To: Flash Coders List Subject: Re: [Flashcoders] AS3 Nice Knob(s) Thats nice, but it works like a slider (manipulated). Looking more for a traditional behaving knob. On Fri, Jan 16, 2009 at 3:06 PM, Patrick Matte|BLITZ pma...@blitzagency.com wrote: http://www.bit-101.com/blog/?p=1337 -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki Sent: Friday, January 16, 2009 11:51 AM To: Flash Coders List Subject: [Flashcoders] AS3 Nice Knob(s) I am looking for an AS3 knob that is close to this: http://keith-hair.net/blog/examples/niceknobs/ yet is something I can use in the Flash CS4 IDE - a SWC would even be nice to link up to. The URL above is just an example. Being able to optionally check + or - movements on 360º revolutions (detents) would be a huge plus. If the code is accessible, that would be super awesome for tweaking. Tried googling, haven't found anything close yet. Any help? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: RE : [Flashcoders] create object with getDefinition and pass parameters using apply ?
I see, thanks for your answer, I also feel dirty doing that! But at least it works, it could have been worse... -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nate Beck Sent: Friday, January 09, 2009 11:33 AM To: Flash Coders List Subject: Re: RE : [Flashcoders] create object with getDefinition and pass parameters using apply ? Hey Patrick, I've run into the exact same issue that you have. Actionscript doesn't support overloaded methods or constructors at this time, although there is talk that they are going to add that support at some point in the future. I have not to this day, found a way to use the apply method on a constructor. I'm working on a DateTime class that can proxy for a Date class. I had to do something very similar to what you're doing: http://natebeck.net/swag/trunk/src/net/natebeck/core/DateTime.as (Look at the constructor) I've even tried something like this: _date = new Date(... args); // - Make this work, please :D But I get an interesting error: 1199 : RestExpressionNode not yet implemented. Another train of thought would be to do something very similar to a singleton pattern. Instead of using the constructor, always call a method. myClass.getInstance().doSomething(). But that still doesn't solve the creation of a class with n-number of parameters. I understand what you're trying to do, I just haven't found a good way to do it yet. If you figure something out, be sure to let me know! Cheers, Nate On Thu, Jan 8, 2009 at 9:39 PM, Patrick Matte | BLITZ pma...@blitzagency.com wrote: That wouldn't help, I'm writing a class that can create any kind of objects and pass any number of argument to that object at instantiation. De : flashcoders-boun...@chattyfig.figleaf.com [ flashcoders-boun...@chattyfig.figleaf.com] de la part de Joel Stransky [ stranskydes...@gmail.com] Date d'envoi : 8 janvier 2009 20:28 À : Flash Coders List Objet : Re: [Flashcoders] create object with getDefinition and pass parameters using apply ? Why not predefine the params as null? class myClass{ public function myClass(param1 = null, param2 = null, ... param6 = null){ } } or just use the rest (...) parameter class myClass{ public function myClass(...args){ for(var i:uint = 0; i args.length; i++){ trace(args[i]); } } } On Thu, Jan 8, 2009 at 10:36 PM, Patrick Matte | BLITZ pma...@blitzagency.com wrote: Well for now I've done this which supports up to 5 arguments but if anyone's got a better suggestion please tell me... var classReference:Object = getDefinitionByName(className); var object:Object; switch(array.length) { case 0: object = new classReference(); break; case 1: object = new classReference(array[0]); break; case 2: object = new classReference(array[0],array[1]); break; case 3: object = new classReference(array[0],array[1],array[2]); break; case 4: object = new classReference(array[0],array[1],array[2],array[3]); break; case 5: object = new classReference(array[0],array[1],array[2],array[3],array[4]); break; } -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Patrick Matte|BLITZ Sent: Thursday, January 08, 2009 7:19 PM To: Flash Coders List Subject: [Flashcoders] create object with getDefinition and pass parameters using apply ? I need to create objects using getDefinition and pass parameter to the constructor but the problem is that the number of parameters can be different. I tried using apply like this but I can't make it work. var classReference:Object = getDefinitionByName(className); var object:Object = new classReference.apply(this, array); Is there any way to do this ? ___ 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 -- --Joel Stransky stranskydesign.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Cheers, Nate http://blog.natebeck.net ___ Flashcoders mailing list
[Flashcoders] create object with getDefinition and pass parameters using apply ?
I need to create objects using getDefinition and pass parameter to the constructor but the problem is that the number of parameters can be different. I tried using apply like this but I can't make it work. var classReference:Object = getDefinitionByName(className); var object:Object = new classReference.apply(this, array); Is there any way to do this ? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] create object with getDefinition and pass parameters using apply ?
Well for now I've done this which supports up to 5 arguments but if anyone's got a better suggestion please tell me... var classReference:Object = getDefinitionByName(className); var object:Object; switch(array.length) { case 0: object = new classReference(); break; case 1: object = new classReference(array[0]); break; case 2: object = new classReference(array[0],array[1]); break; case 3: object = new classReference(array[0],array[1],array[2]); break; case 4: object = new classReference(array[0],array[1],array[2],array[3]); break; case 5: object = new classReference(array[0],array[1],array[2],array[3],array[4]); break; } -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Patrick Matte|BLITZ Sent: Thursday, January 08, 2009 7:19 PM To: Flash Coders List Subject: [Flashcoders] create object with getDefinition and pass parameters using apply ? I need to create objects using getDefinition and pass parameter to the constructor but the problem is that the number of parameters can be different. I tried using apply like this but I can't make it work. var classReference:Object = getDefinitionByName(className); var object:Object = new classReference.apply(this, array); Is there any way to do this ? ___ 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] create object with getDefinition and pass parameters using apply ?
That wouldn't help, I'm writing a class that can create any kind of objects and pass any number of argument to that object at instantiation. De : flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] de la part de Joel Stransky [stranskydes...@gmail.com] Date d'envoi : 8 janvier 2009 20:28 À : Flash Coders List Objet : Re: [Flashcoders] create object with getDefinition and pass parameters using apply ? Why not predefine the params as null? class myClass{ public function myClass(param1 = null, param2 = null, ... param6 = null){ } } or just use the rest (...) parameter class myClass{ public function myClass(...args){ for(var i:uint = 0; i args.length; i++){ trace(args[i]); } } } On Thu, Jan 8, 2009 at 10:36 PM, Patrick Matte | BLITZ pma...@blitzagency.com wrote: Well for now I've done this which supports up to 5 arguments but if anyone's got a better suggestion please tell me... var classReference:Object = getDefinitionByName(className); var object:Object; switch(array.length) { case 0: object = new classReference(); break; case 1: object = new classReference(array[0]); break; case 2: object = new classReference(array[0],array[1]); break; case 3: object = new classReference(array[0],array[1],array[2]); break; case 4: object = new classReference(array[0],array[1],array[2],array[3]); break; case 5: object = new classReference(array[0],array[1],array[2],array[3],array[4]); break; } -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Patrick Matte|BLITZ Sent: Thursday, January 08, 2009 7:19 PM To: Flash Coders List Subject: [Flashcoders] create object with getDefinition and pass parameters using apply ? I need to create objects using getDefinition and pass parameter to the constructor but the problem is that the number of parameters can be different. I tried using apply like this but I can't make it work. var classReference:Object = getDefinitionByName(className); var object:Object = new classReference.apply(this, array); Is there any way to do this ? ___ 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 -- --Joel Stransky stranskydesign.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] use get / set functions or make your own
I missed the first part of this thread but I'd like to add that when you create an interface for a class, all your public properties should be getters and setters. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of allandt bik-elliott (thefieldcomic.com) Sent: Wednesday, December 10, 2008 10:33 AM To: Flash Coders List Subject: Re: [Flashcoders] use get / set functions or make your own good roundup - thanks ^^ On Wed, Dec 10, 2008 at 5:31 PM, Joel Stransky [EMAIL PROTECTED]wrote: So lets see if I can sum up the consensus here. There are four techniques for accessors and mutators listed (imho) in order of suggested use. 1. *public vars * - probably the best place to start - easily changed to implicit by changing to private with underscore. * * 2. *brainless implicit * - In case you want a read only property. (get but not set)* * 3. *implicit with brain* - when complex logic is needed for the return such as get date returning month + / + day + / + year. - to prevent invalid data 4. *explicit for lookup (myObject.addChildAt()) * - when multiple parameters are needed - when a return value may not be needed There's probably better points for #4 but I can't think of them as it's basically an argument for just writing a public method. On Wed, Dec 10, 2008 at 11:18 AM, Ian Thomas [EMAIL PROTECTED] wrote: I apologise for being deviant. Oh, hang on... :-P Ian On Wed, Dec 10, 2008 at 3:40 PM, Hans Wichman [EMAIL PROTECTED] wrote: hmmm no guess I didn't, been pixelstaring too long already today;) On Wed, Dec 10, 2008 at 4:18 PM, Merrill, Jason [EMAIL PROTECTED] wrote: yep that was the article, but the original poster asked a subtly different question (unless I'm mistaken). allandt asked about implicit vs explicit getters setters. Rereading it and seeing its about public variables vs implicit, it's a nice read ;). But another discussion:). Uh, I guess you didn't notice, I was not responding to the original poster - we have deviated from that. i.e. Ian's comment, so why not use a public? If they do matter, use getters/setters. Jason Merrill Bank of America Instructional Technology Media * GCIB Staff Support LLD Interested in Flash Platform technologies? Join the Bank of America Flash Platform Developer Community Interested in innovative ideas in Learning? Check out the Innovative Learning Blog and subscribe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- --Joel Stransky stranskydesign.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] SoundChannel.position bug on SOUND_COMPLETE
I'm experimenting with the SoundChannel in Flash CS3. On SOUND_COMPLETE, the position of the channel is always smaller than the length of the sound. Shouldn't these be the same values? Anybody knows what's going on? My sounds are wav files in the library, compressed in mp3 or uncompressed, the result is the same. They are 44.1 Hz, 16-bit Stereo. Patrick Matte Interactive Director Ph: 310-551-0200 x214 Fax: 310-551-0022 [EMAIL PROTECTED] BLITZ - 3415 S Sepulveda Bl, Ste 500 - Los Angeles, CA 90034 - www.blitzagency.comhttp://www.blitzagency.com/ (!) Be sure and check out BLITZ Labshttp://labs.blitzagency.com/?utm_source=patrickmatteutm_medium=signature_link, our blog for all the latest and greatest. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] websites with public APIs available from flash
I'm rounding up a list of websites with public API that flash can interact with. I have : Yahoo maps Flickr Youtube Weather.com Do you know any other? Patrick Matte Interactive Director Ph: 310-551-0200 x214 Fax: 310-551-0022 [EMAIL PROTECTED] BLITZ - 3415 S Sepulveda Bl, Ste 500 - Los Angeles, CA 90034 - www.blitzagency.comhttp://www.blitzagency.com/ (!) Be sure and check out BLITZ Labshttp://labs.blitzagency.com/?utm_source=patrickmatteutm_medium=signature_link, our blog for all the latest and greatest. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] websites with public APIs available from flash
Yeah sure, if you know some good ones I'd really appreciate you list them. I remember stumbling on an exhausting list of webservices but I lost it somewhere... BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric E. Dolecki Sent: Friday, August 08, 2008 5:07 PM To: Flash Coders List Subject: Re: [Flashcoders] websites with public APIs available from flash What about webservices Sent from my iPod On Aug 8, 2008, at 6:44 PM, Patrick Matte | BLITZ [EMAIL PROTECTED] wrote: I'm rounding up a list of websites with public API that flash can interact with. I have : Yahoo maps Flickr Youtube Weather.com Do you know any other? Patrick Matte Interactive Director Ph: 310-551-0200 x214 Fax: 310-551-0022 [EMAIL PROTECTED] BLITZ - 3415 S Sepulveda Bl, Ste 500 - Los Angeles, CA 90034 - www.blitzagency.com http://www.blitzagency.com/ (!) Be sure and check out BLITZ Labshttp://labs.blitzagency.com/?utm_source=patrickmatteutm_medium=signature_link , our blog for all the latest and greatest. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] You cannot debug this SWF because it does not contain any Actionscript
I've had that problem also when one item was missing from the library. This can happen when you use a class from an fla into another fla and that class is referencing a library item in the other fla but you forgot to copy that item in your new fla's library. BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: Wednesday, July 23, 2008 11:32 AM To: Flash Coders List Subject: Re: [Flashcoders] You cannot debug this SWF because it does not contain any Actionscript Welcome to the seedy underbelly of Flash development. What you've got here is the case of a corrupted library item. It happens sometimes and there's only one thing you can do about it. Not too long ago, my team inherited a Flash 8 file with a corrupted library item that was so terribly corrupted, the Flash 8 file would only open in Flash CS3 on an old G4 Mac running OSX Jaguar. Yes, it was that specific (We assumed that the original file was probably built on that system spec). It would not open in Windows Flash 8 or CS3, it would not open on any Mac Flash 8 or CS3 running a version of OSX higher than Jaguar. What we had to (and you have to) do is go through your library symbols one by one, deleting each one until you find the sucker, and then replacing it if need be. Thankfully, you can open your file directly. We had to open the file in Flash CS3 (which is bloated and slow) on that slow old Mac with 256MB RAM, delete a symbol, save as a new Flash file, copy said file to the network drive, and try to open it from another computer, rinse repeat, until we found the graphic that was causing it. It took us a few hours. Good luck! ___ 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] The Charges Against ActionScript 3.0
I've always admired Colin Moock, but after reading those 9 points, I'm not sure he still has all that credibility anymore... 1. The removal of on()/onClipEvent() from Flash CS3 makes creating simple interactivity hard. Who would want to add an onClipEvent on a movieclip anymore? I haven't done that since like... flash 5 or 6... You're much better off writing function onEnterFrame(){} instead of onClipEvent(enterFrame){}... And I'm so glad AS3 got rid of that onLoad method... 2. Getting rid of loaded .swf files is hard. That is like the only point in this list that makes sense. 3. Casting DisplayObject.parent makes controlling parent movie clips hard. Not sure what that means but I never ever use parent... its just bad OOP... But I guess they could have casted parent as Sprite. And also maybe set Sprite as a dynamic class like MovieClip? 4. The removal of getURL() makes linking hard. Yeah well it's just a little more complicated but when you know how to do it, it's just fine. 5. The removal of loadMovie() makes loading .swf files and images hard. Haven't used loadmovie since flash 6. In flash 7, use MovieClipLoader instead, it's much better. Now why does AS3 use Loader instead of MovieClipLoader... that I don't know... 6. ActionScript 3.0's additional errors make coding cumbersome. Hmm well those errors are supposed to help you... But I admit that some of the errors could be a little more explicit on what is wrong... If I'm trying to access a property that is undefined, can Flash please tell me which one ? 7. Referring to library symbols dynamically is unintuitive. No it's not. I really like doing addChild(new RedCircle()) instead of attchMovieClip(RedCircle, circle, getNextHighestDepth()) 8. Adding custom functionality to manually created text fields, to all movie clips, or to all buttons is cumbersome. I don't think this is really relevant. Nobody wants all classes to be dynamic do they? Althought, I admit it could be nice to extend TextField... 9. The removal of duplicateMovieClip() makes cloning a MovieClip instance (really) hard. Duplicate movieclips ? Geez, I remember using that back in the day, I would put a button off stage and then duplicate it to create multiple instances of it. But you're much better off using attachMovie if you're working with AS2. BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jordan L. Chilcott Sent: Wednesday, July 16, 2008 12:03 PM To: Flash Coders List Subject: Re: [Flashcoders] The Charges Against ActionScript 3.0 Let's be fair: I'm not looking to argue. I have a wife for that. :) I intend to state my issues, but it may have to wait a couple of days because I'm sure most, if not all, of you are in a working situation and faced with some slimy brown stuff rolling downhill towards you. I was going to type a whole thing before this happened, but let me just start for now by saying that having programmed in Flash among other things, that a lot of things I have issues against were, in my mind, the cause of a lot of programming deficiencies and obstacles within Flash. I intend to elaborate further... and keep in mind that this is, again, just my opinion. jord Kerry Thompson wrote: Jord wrote: Let me rephrase this: I hardly agree with MOST of the issues. Fair enough. It would be a valuable contribution to the discussion if you told us which issues you have, ahem issues with, and why. I personally am not in a position to argue with Colin Moock, but I do enjoy a good debate, as long as it illuminates issues. ___ 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] Overriding the trace command
It may not be relevant to your problem and you probably know this already but when you use trace, the output is the result of the toString method of the object you are tracing. And you can override toString to output whatever you want. override public function toString():String { return test; } trace(myObject); // outputs test BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Francis Turmel Sent: Tuesday, July 15, 2008 2:25 PM To: Flash Coders List Subject: Re: [Flashcoders] Overriding the trace command As everyone else mentioned, I don't think there's a way to override the trace function in as3. However, if you put a public function in the unnamed package, your application will be able to reach this function from anywhere, so if you're willing to use something else like log() or debug() as a method name instead of trace(), then you can replicate the trace function's behavior and add your own customizations. I've been using this to route my traces to AirLogger, for example. As a quick demo, this would just route your arguments to the trace function. Just put the following code in a file called debug.as in the root of your classpath. package { public function debug(...args):void { trace.apply(null, args); } } Hope this helps! On Tue, Jul 15, 2008 at 10:08 AM, Juan Pablo Califano [EMAIL PROTECTED] wrote: I'm afraid you can't extend the trace builtin function . Using another function or logging class and then redirecting the trace to some logger console or even the trace() function, if at some point you need it, is the way to go. MTASC handles that trace replacement through a compiler switch, like a preprocessor macro, making textual substitutions to trace calls in the AS. The thing is that trace function is not compiled into a call to an actionscript function, but it's embedded directly with its own bytcode in the swf. That's why you can't change its behaviour from AS code. Cheers Juan Pablo Califano 2008/7/15, Adam Jowett [EMAIL PROTECTED]: Hi all, A very quick one, I haven't had to over-ride or extend built in classes since the good old days of prototyping in AS1, specifically this time I want to extend the built in trace() statement with some conditions etc. Can this be done? or do I need to do my own custom logger such as those out there at the moment? Cheers Adam ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] trace all properties of a class recursively
Is it possible to trace all the properties of a class with AS3? I kwow it works on dynamic properties on Object or Array... My class is like a tree and I want to see if the tree is built correctly. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] trace all properties of a class recursively
Yeah but describe type won't loop through the tree in a recursive manner. So I ended up writing a typed recursive function that will recursively trace each object in the tree. It works fine. public static function recurse(page:Page, level:Number = 0):void { var string:String = ; for (var j = 0; j level; j++) { string = string + ; } trace(string + page); level++; for (var i in page.pages) { recurse(page.pages[i], level); } } /* Outputs [Page id=Nav] [Page id=Green1] [Page id=Green2] [Page id=Green3] [Page id=Green4] [Page id=Red1] [Page id=Red2] [Page id=Red3] [Page id=Red4] */ BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wagner Amaral Sent: Thursday, June 26, 2008 12:15 PM To: Flash Coders List Subject: Re: [Flashcoders] trace all properties of a class recursively You may want to take a look at flash.utils.describeType() http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/utils/package.html#describeType() On Thu, Jun 26, 2008 at 3:43 PM, Patrick Matte | BLITZ [EMAIL PROTECTED] wrote: Is it possible to trace all the properties of a class with AS3? I kwow it works on dynamic properties on Object or Array... My class is like a tree and I want to see if the tree is built correctly. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Firefox 3 and flash 8 wmode problem
Has anybody else been experiencing problems with flash player 8 using wmode with Firefox 3? Can't click on any of the flash buttons, using flash player 8 r42. No problem with Firefox 2. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] calling public static methods on Class using getDefinitionByName
Ah ok, the reason it wasn't working was that I was casting ClassReference as Class instead of Object... Now this works. var ClassReference:Object = getDefinitionByName(Test) as Object; var bool:Boolean = ClassReference.parse(false); //would return false; BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wagner Amaral Sent: Tuesday, June 24, 2008 7:18 AM To: Flash Coders List Subject: Re: [Flashcoders] calling public static methods on Class using getDefinitionByName On Tue, Jun 24, 2008 at 6:14 AM, Kenneth Kawamoto [EMAIL PROTECTED] wrote: trace(getDefinitionByName(Test).parse(false)); Nice Then maybe this works too (no compiler available right now, so just guessing): var c:Class = getDefinitionByName(Test) as Class; (c as Object).parse(false); ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] calling public static methods on Class using getDefinitionByName
Does anybody know if it's possible to call a static method of a reference to a class created with getDefinitionByName without actually creating an instance of the object? Something like this simple example: var ClassReference:Class = getDefinitionByName(Test) as Class; var bool:Boolean = ClassReference.parse(false); //would return false; ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] calling public static methods on Class using getDefinitionByName
Ok I've found a way to do it, but it's not really clean. Would there be any way to make the code better? So writing this : var ClassReference:Class = getDefinitionByName(Test) as Class; var bool:Boolean = ClassReference[parse](false); // returns false is the same as this : var bool:Boolean = Test.parse(false); // returns false BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte|BLITZ Sent: Monday, June 23, 2008 7:17 PM To: Flash Coders List Subject: [Flashcoders] calling public static methods on Class using getDefinitionByName Does anybody know if it's possible to call a static method of a reference to a class created with getDefinitionByName without actually creating an instance of the object? Something like this simple example: var ClassReference:Class = getDefinitionByName(Test) as Class; var bool:Boolean = ClassReference.parse(false); //would return false; ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AIR bitmapdata.draw( FLV ) Security error
Hi, I get a security error in my AIR app when I try to draw a video that's on my computer to a BitmapData. How can I fix this? Is it because I'm using a self-signed certificate? Should I buy a certificate form Verisign? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AIR - Insert header in XML file
I'm saving an xml file with AIR, it works but how can I add ?xml version=1.0 encoding=UTF-8? at the top of the file? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] AIR - Insert header in XML file
I was looking for a method like that under the XML class. Flash's help file is suggesting to use XML instead of XMLDocument which is AS2's xml legacy. But there doesn't seem to be anything like that method under the XML class... BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wagner Amaral Sent: Wednesday, April 02, 2008 3:46 PM To: Flash Coders List Subject: Re: [Flashcoders] AIR - Insert header in XML file Well, if you just use quotes properly, that is ;) '?xml version=1.0 encoding=utf-8?'; On Wed, Apr 2, 2008 at 7:45 PM, Wagner Amaral [EMAIL PROTECTED] wrote: You can set the xmlDecl property: AS3: XMLDocument().xmlDecl = ?xml version=1.0 encoding=utf-8?; AS2: XML().xmlDecl = ?xml version=1.0 encoding=utf-8?; On Wed, Apr 2, 2008 at 7:06 PM, Patrick Matte | BLITZ [EMAIL PROTECTED] wrote: I'm saving an xml file with AIR, it works but how can I add ?xml version=1.0 encoding=UTF-8? at the top of the file? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] AIR - Insert header in XML file
No that didn't work, I got a weird error like wrong startendtag or something. BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: Wednesday, April 02, 2008 3:36 PM To: Flash Coders List Subject: Re: [Flashcoders] AIR - Insert header in XML file Can't you inject that into your xml string? myXml = ?xml version=1.0 encoding=UTF-8? + myXml; Patrick Matte | BLITZ wrote: I'm saving an xml file with AIR, it works but how can I add ?xml version=1.0 encoding=UTF-8? at the top of the file? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AIR drag and resize transparent window and change mouse icon to arrows
You know on a PC when you mouseOver the sides of a window, the mouse changes to an arrow that means you can resize the window. Is there any to get the mouse to change like that when the AIR window in set to transparent? Or it is only a feature of the NativeWindow on PC? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] AS3 singleton not working across multiple loaded swf
Thanks, I wasn't using that parameter for my loader. I'll try it. BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Meinte van't Kruis Sent: Friday, February 15, 2008 4:04 AM To: Flash Coders List Subject: Re: [Flashcoders] AS3 singleton not working across multiple loaded swf I've never had that problem. To avoid conflicts between classes of loaded swf's, I usually set the loader context to the current domain of the loading SWF, maybe it helps in your case too. On Fri, Feb 15, 2008 at 2:22 AM, Patrick Matte | BLITZ [EMAIL PROTECTED] wrote: The only way I have been able to use a singleton across loaded swfs in AS3 is if it was first referenced in the main swf. Any other singleton I use that are not referenced in the main swf work only within the swf they are contained into. Is this a normal behavior in AS3 ? Does it have anything to do with ApplicationDomain? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- M.A. van't Kruis http://www.malatze.nl/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: E4X Non sense !!! Need help
I can't make it work... Even this didn't work.. root accesscode id=S001 short test=S001/ short test=S002/ /accesscode accesscode id=S000 short test=uyiy/ short test=fgds/ /accesscode /root trace(xmlData.accesscode.short.(@test == S001)); But this worked... root accesscode id=S001 short testS001/test /short short testS0011/test /short /accesscode accesscode id=S000 short testS000/test /short short testS000/test /short /accesscode /root trace(xmlData.accesscode.short.(test == S001)); BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Tremblay Sent: Friday, February 15, 2008 1:57 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] E4X Non sense !!! Need help EX4 cannot find a node using E4X when one of it's sibling has the same name. Is there a way to avoid this problem ? var xmlData:XML = root accesscode id=S001 shortcutS001/shortcut shortcutsmallbusiness/shortcut /accesscode accesscode id=S000 shortcutS000/shortcut shortcut2S000/shortcut2 /accesscode /root; trace(xmlData.accesscode.(@id == S000)); trace(-); trace(xmlData.accesscode.(shortcut == S000)); trace(-); trace(xmlData.accesscode.(@id == S001)); trace(-); trace(xmlData.accesscode.(shortcut == S001)); trace(-); Martin T. LVL ___ 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] E4X Non sense !!! Need help
Nice! BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth Kawamoto Sent: Friday, February 15, 2008 3:28 PM To: Flash Coders List Subject: Re: [Flashcoders] E4X Non sense !!! Need help Try: trace(xmlData.accesscode.(shortcut.contains(S001))); Kenneth Kawamoto http://www.materiaprima.co.uk/ Martin Tremblay wrote: EX4 cannot find a node using E4X when one of it's sibling has the same name. Is there a way to avoid this problem ? var xmlData:XML = root accesscode id=S001 shortcutS001/shortcut shortcutsmallbusiness/shortcut /accesscode accesscode id=S000 shortcutS000/shortcut shortcut2S000/shortcut2 /accesscode /root; trace(xmlData.accesscode.(@id == S000)); trace(-); trace(xmlData.accesscode.(shortcut == S000)); trace(-); trace(xmlData.accesscode.(@id == S001)); trace(-); trace(xmlData.accesscode.(shortcut == S001)); trace(-); Martin T. LVL ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3 / AIR Anti-aliased font without using embedFonts=true
Is there any way to get anti-aliased fonts in an AIR application without using textfield.embedFonts = true ? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] RE: E4X Non sense !!! Need help
Ha I thought it would do that automatically if the node was empty. Good to know. BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth Kawamoto Sent: Friday, February 15, 2008 4:06 PM To: Flash Coders List Subject: Re: [Flashcoders] RE: E4X Non sense !!! Need help Patrick Matte | BLITZ wrote: I can't make it work... Even this didn't work.. root accesscode id=S001 short test=S001/ short test=S002/ /accesscode accesscode id=S000 short test=uyiy/ short test=fgds/ /accesscode /root trace(xmlData.accesscode.short.(@test == S001)); Then you may like this, Patrick :) var xmlData:XML = root accesscode id=S001 short test=S001/ short test=S002/ /accesscode accesscode id=S000 short test=uyiy/ short test=fgds/ /accesscode /root; trace(xmlData.accesscode.short.(@test == S001)); trace(xmlData.accesscode.short.(@test == S001).toXMLString()); Kenneth Kawamoto http://www.materiaprima.co.uk/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3 singleton not working across multiple loaded swf
The only way I have been able to use a singleton across loaded swfs in AS3 is if it was first referenced in the main swf. Any other singleton I use that are not referenced in the main swf work only within the swf they are contained into. Is this a normal behavior in AS3 ? Does it have anything to do with ApplicationDomain? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] 9-section scalable graphic
9-slice scaling http://www.sephiroth.it/tutorials/flashPHP/scale9/ BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Sinning Sent: Thursday, January 03, 2008 10:42 AM To: Flash Coders Subject: [Flashcoders] 9-section scalable graphic I know there's a term for what I looking for, but I don't know it and my searches are coming up empty. What do you call the technique of dividing a graphic into 9 different areas so that when you scale it the outer borders don't get distorted? And, more germane to this list, can anybody point me to a component related to this subject? Thanks! ___ 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] how are they doing this? Papervision3d or pre-rendered 3d?
Yeah that distortion feels like a papervision plane with not enough triangles BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carl Welch Sent: Sunday, September 16, 2007 7:49 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] how are they doing this? Papervision3d or pre-rendered 3d? I noticed that distortion also, which is why I was confused. I thought maybe that was a signature of papervision. On 9/16/07, Snepo - Arse [EMAIL PROTECTED] wrote: I disagree, IMO tthe only video involved would be the initial sequence of the cards falling though that could easily be an image sequence. It is more likely that just the card turning effect is pre-rendered and the card content is composited at runtime. When the card turns you can see a slight crease in the middle of the content. It appears as though they are blitting the content to two bitmap objects (one left and one right side) then using a distortion technique to make the content conform to the card flipping animation. I would imagine that they have a single pre-rendered animation that they are applying a hue difference to in order to reuse it for all cards. They developers also seem to be doing some clever stuff to make each card unique... so perhaps the static cards are pre-rendered for each and only the flip animation is re-used. Arse www.snepo.com www.arseiam.com On 17/09/2007, at 7:50 AM, Jon Bradley wrote: It's video. On Sep 15, 2007, at 1:27 AM, Carl Welch wrote: Hi All, Does any one know how this site achieved its card flipping effect? Papervision3d or pre-rendered 3d? http://www.tripleslanguage.com/?CMP=BAC-1TO1Q3TP7042 Thanks. -- Carl Welch [EMAIL PROTECTED] 805.403.4819 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 -- Carl Welch [EMAIL PROTECTED] 805.403.4819 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] AS3 ROLL_OVER or MOUSE_OVER ? Which one, and why ?
In the AS3 class MouseEvent, what is the use for ROLL_OVER and ROLL_OUT? They seem to be the same as MOUSE_OVER and MOUSE_OUT... ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Class to loop sound objects in order
But isn't there a small glitch in the song between each loop because of the mp3 compression? I thought the only way to get rid of the glitch was to export every sound as a swf. BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alain Rousseau Sent: Wednesday, August 15, 2007 4:53 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Class to loop sound objects in order you can check out these set of classes I created for something similar to what you need. it doesn't loop each mp3 files but, creates a song based on an array of mp3 files . You can modify it as you wish to fit your needs but the simplest thing would be to just to repeat the filename in the array [file1, file1, file1, file2, file3, ... ] http://lab.daroost.ca/2007/02/25/sondloop2-revisited-musicbuilder-soundobject/ HTH Alain [EMAIL PROTECTED] wrote: Hi there, thanks for checking my post. I am trying to create a class that will play a number of mp3 loops each a specified number of times and in the specified order. I have tried to find an existing class but cant find one anywhere. My solution (which may not be that efficient), is to create all of the sound objects in the fla then load the mp3s into them. When they are all loaded each sound object is added to a new object that holds it as well as a 'loops' property that says how many times the sound object must play. These objects are then put into an array in the order they are to be heard. This array is passed to my LoopSound class that controls the playback. I can also pass a 'loopForever' property that will make the series repeat indefinitely. The problem I am having is re-triggering the play() function from within my LoopSound Class to move onto the next sound in the array. I am sure that there will be a much neater way of achieving what I want, and maybe even a pre-written class! Any direction / suggestions / encouragement much appreciated :) Thanks! Danny //this code would create an instance of the class in the FLA var mySound:Sound = new Sound(); mySound.loadSound(sounds/gas.mp3, false); //once sound is loaded: var my_ar:Array = new Array(); //create object to add to array var myOb:Object = new Object(); myOb.sound = mySound; //is to play 3 time myOb.loops = 3; my_ar.push(myOb); var myLooper:LoopSound = new LoopSound(my_ar) Here is the class: //this class is designed to play a number of already loaded sound objects sequentially, each sound object can be looped for a specified number of times then the whole series can be repeated infinitely. Th constructor is passed an array of objects that have sound and loop properties that contain a sound object and the number of times the sound object is to be looped. class LoopSound { private var sounds_ar:Array; //sound playing currently var currSound:Sound; //which stage of the array we are currently up to private var mp3Count:Number = 0; //if this series of loops is meant to keep playing until they are stopped private var loopForever:Boolean; //receives array that holds objects that have the key sound loops public function LoopSound(a:Array, lF:Boolean) { trace(loopsound created:+a); mp3Count = 0; sounds_ar = new Array(); sounds_ar = a; loopForever = lF; this.play(); } private function play() { trace(Loopsound started playing); trace(mp3 count:+this.mp3Count+:+sounds_ar); currSound = sounds_ar[mp3Count][sound]; //creating local vars for targetting from currSound complete var mp3C:Number = mp3Count; var snds_ar:Array = sounds_ar; //calculate number of times mp3 is to loop var currLoops:Number = sounds_ar[mp3Count][loops]; currSound.start(0,currLoops); currSound.onSoundComplete = function() { //if there are more sound objects to play iterate thru array and retrigger play() if (mp3Countsnds_ar.length) { mp3Count++; //this bit isn't working! play(); } else { if (loopForever) { mp3Count = 0; this.play(); } else { //all sound objects have played and play() is not retriggered mp3Count = 0; } } }; } } ___ Flashcoders@chattyfig.figleaf.com To change your subscription
RE: [Flashcoders] AS3 how to link movieclip manually put on the stage to class member
Why don't you just attach the class to your movieclip in the library ? Right-click on the movieclip in the library, click on linkage, write a linkage id in the class field and write the path to your class in the base class field. Example Class : BlueCircle BaseClass : project.shapes.Circle You can create an instance of the Blue circle by doing var blueCircle:BlueCircle = new BlueCircle(); addChild(blueCircle); your class should look like this package project.shapes{ import flash.display.MovieClip; public class Circle extends MovieClip { public function Circle(){ trace(this); } } } BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Tremblay Sent: Wednesday, August 08, 2007 10:22 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] AS3 how to link movieclip manually put on the stage to class member Hello group ! Just trying to find the best way to link a movieclip manually put on the stage to a class member. Right now this is what I'm doing. public class A extends MovieClip { private var m_mcOnTheStage:MovieClip; public function A ():void { //onthestage_mc is a movieclip manually put in the .fla m_mcOnTheStage = onthestage_mc; } } Is there a better way? Martin Tremblay LVL Studio ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 Sound Looping Problem
I think there's an unload method on Loader, try that. Or else, create a SoundChannel for your sound instead of putting it on the timeline and stop it when you remove the loader. BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Lee Sent: Wednesday, August 08, 2007 3:17 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] AS3 Sound Looping Problem Howdy Coders, I'm in desparate need of some AS3 help. I'm loading a swf with sound embedded in the timeline into another file thusly: var urlRequest:URLRequest = new URLRequest(animatio ns/ANIM_Test4.swf); var animLoader:Loader = new Loader(); animLoader.load(urlR equest); addChild(animeLoader); When i do a removeChild(animLoader), the animation disappears, but the sound says and loops endlessly. how can I clear out that sound? Thanks! -Eric [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] AS3 loader applicationDomain question
Is this supposed to work? Right now flash IDE crashes everytime when it reaches the line: var instance = new ClassReference(); I just want to add the loader.content to the stage instead of the whole loader instance and I thought that would work.. function load():void{ var loader:Loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeEvent); var request:URLRequest = new URLRequest(source); loader.load(request); } function completeEvent(event:Event):void { var className:String = getQualifiedClassName(event.target.content); var ClassReference:Class = event.target.applicationDomain.getDefinition(className) as Class; var instance = new ClassReference(); addChild (instance); } ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 applicationDomain question
getDefinitionByName is a method of the utils package, its not gonna work from applicationDomain BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Muller Sent: Tuesday, August 07, 2007 2:49 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] AS3 loader applicationDomain question try... var ClassReference:Class = event.target.applicationDomain. getDefinitionByName(className) as Class; MaTT On 8/7/07, Muzak [EMAIL PROTECTED] wrote: ClassReference is a reserved word, at least it is in Flex 2. regards, Muzak - Original Message - From: Patrick Matte|BLITZ [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Tuesday, August 07, 2007 10:05 PM Subject: [Flashcoders] AS3 loader applicationDomain question Is this supposed to work? Right now flash IDE crashes everytime when it reaches the line: var instance = new ClassReference(); I just want to add the loader.content to the stage instead of the whole loader instance and I thought that would work.. function load():void{ var loader:Loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeEvent); var request:URLRequest = new URLRequest(source); loader.load(request); } function completeEvent(event:Event):void { var className:String = getQualifiedClassName( event.target.content); var ClassReference:Class = event.target.applicationDomain.getDefinition(className) as Class; var instance = new ClassReference(); addChild (instance); } ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 Tween Class seems to have defects
I've noticed that too when I was using frames. Try using seconds instead of frames. Or use Tweener. http://code.google.com/p/tweener/ BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of asai Sent: Monday, July 09, 2007 8:31 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] AS3 Tween Class seems to have defects Has anybody noticed that with CS3, the Tween class seems to hang up if there's several simultaneous Tweens happening at the same time? I've been developing a small picture viewer, which when I try to Tween in ten 100x100 squares, the thing just stops in mid Tween. I've seen this with other apps I've been developing, I've had to cut back on the Tweens in order to get them to finish, but the weird thing is, is AS2, there was never any problem like that. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] AS3 root
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
[Flashcoders] AS3 new Class from string
Hey fellows, in AS3 how can I create class instances from a list of classes names. Take for example something like this: import Circle; import Square; import Triangle; var list:Array = new Array(Circle,Square,Triangle); for(var i=0;ilist.length;i++){ var class = new list[i](); } ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 new Class from string
But using getDefinitionByName, can you find a class that's inside a loaded swf? Like in this example, Test is a class inside test.swf but I get an Error #1065: Variable Test is not defined. But it works fine if I call getDefinitionByName from within test.swf public function GetDefinitionByNameExample() { var request:URLRequest = new URLRequest(test.swf); var loader:Loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE,completeEvent); loader.load(request); } private function completeEvent(e:Event):void{ trace(completeEvent); var ClassReference:Class = getDefinitionByName(Test) as Class; var instance:Object = new ClassReference(); } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jim Kremens Sent: Monday, June 18, 2007 1:52 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] AS3 new Class from string There's also this: var ClassRef:Object = getDefinitionByName(flash.display::Sprite); var element:Sprite = new ClassRef(); That allows you to really use a string and not a class reference, which is what I think you want... But, as with Flash 8, the class reference must really exist in your swf somewhere, so you may as well do what elibol suggested... Jim Kremens ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] getDefinitionByName from external swf
Using getDefinitionByName, can you find a class that's inside a loaded swf? Like in this example, Test is a class inside test.swf. public function GetDefinitionByNameExample() { var request:URLRequest = new URLRequest(test.swf); var loader:Loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE,completeEvent); loader.load(request); } private function completeEvent(e:Event):void{ var ClassReference:Class = getDefinitionByName(Test) as Class; var instance:Object = new ClassReference(); } I get an Error #1065: Variable Test is not defined. But it works fine if I call getDefinitionByName from within test.swf So is it something I'm doing wrong or does this method only works within a single swf? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 new Class from string
Thanks that's sweet ! BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Monday, June 18, 2007 4:52 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] AS3 new Class from string Look up: ApplicationDomain.getDefinition() flash.system.ApplicationDomain flash.system.LoaderContext.applicationDomain regards, Muzak - Original Message - From: Patrick Matte|BLITZ [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Tuesday, June 19, 2007 1:23 AM Subject: RE: [Flashcoders] AS3 new Class from string But using getDefinitionByName, can you find a class that's inside a loaded swf? Like in this example, Test is a class inside test.swf but I get an Error #1065: Variable Test is not defined. But it works fine if I call getDefinitionByName from within test.swf ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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
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] as3 Loader.content.name error
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
RE: [Flashcoders] scrollwheel bug in AS3?
Yes I've noticed that too, same thing here. http://labs.blitzagency.com/?p=315 BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Mark Sent: Monday, June 04, 2007 7:34 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] scrollwheel bug in AS3? I am migrating code from AS2 to AS3 and came across some unexpected browser behavior -- both the SWF and the surrounding web page are scrolling at the same time. The following examples are both running in 9,0,28,0 (IE 7 and Firefox 2). In AS2 (compiled to either v7 or v9), the surrounding web page does NOT scroll while the embedded SWF has focus and captures wheel events. var mouseListener:Object = new Object(); mouseListener.onMouseWheel = function (delta) { myMovieClip._x += delta; } Mouse.addListener(mouseListener); In AS3 (compiled to v9), both the surrounding web page and the embedded SWF scroll at the same time (while the SWF has focus). myMovieClip.addEventListener(MouseEvent.MOUSE_WHEEL, handleMouseWheel); private function handleMouseWheel(evt:MouseEvent):void { myMovieClip.x += evt.delta; } I am trying to prevent the web page from scrolling while the SWF has focus and receives MOUSE_WHEEL events. I have tried stopPropagation () and stopImmediatePropagation() to no avail. The behavior is the same whether I render the SWF object/embed code via JavaScript or directly in the HTML. Thoughts? Thanks, Adam ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] scrollwheel bug in AS3?
Well it seems you're right! BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Stuhr Sent: Monday, June 04, 2007 12:05 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] scrollwheel bug in AS3? Patrick Matte|BLITZ schrieb: Yes I've noticed that too, same thing here. it seems you're not exactly correct here: to me it seems like when sthe scrolling container reaches maxScroll, the flashplugin seems to fire the scroll event (back) to the browser. at least this is what it seems to me. it might be considered as a feature if you want to, if you think of how html-scrollcantainers behave. just my 0.2€ micha ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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?
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 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
RE: [Flashcoders] Curves question for math gurus
A quadratic curve is made of 3 points. The first point is beginning of the curve, the second point creates the curve between the first and last point. This will place mc exactly on the middle of the curve mc._x = bezierQuadratic(0.5, point1.x, point2.x, point3.x); mc._y = bezierQuadratic(0.5, point1.x, point2.x, point3.x); function bezierQuadratic(t, a, b, c) { return (1-t)*(1-t)*a+2*(1-t)*t*b+t*t*c; } t being a number between 0 and 1, 0 is the location of the first point, 0.5 is the middle of the curve, 1 is the last point. BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of leolea Sent: Wednesday, April 25, 2007 12:34 PM To: Flashcoders mailing list Subject: [Flashcoders] Curves question for math gurus Hi, I have a dynamically drawn curve. It's a simple curve, with 2 end points, and its yfactor will vary. I'm trying to figure out a way to have objects snap to this curved line. I would distribute them over the _x axis, and I need a formula to get their _y position on the curved line. Here is a visual explanation: http://pages.videotron.com/poubou/flash/curve.jpg Now, I guess this requires trigonometry... And I really am a newb when it comes to trig... Any help would be appreciated ! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Curves question for math gurus
I actually made a little mistake in the code mc._x = bezierQuadratic(0.5, point1.x, point2.x, point3.x); mc._y = bezierQuadratic(0.5, point1.y, point2.y, point3.y); function bezierQuadratic(t, a, b, c) { return (1-t)*(1-t)*a+2*(1-t)*t*b+t*t*c; } BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: Patrick Matte | BLITZ Sent: Wednesday, April 25, 2007 4:04 PM To: 'flashcoders@chattyfig.figleaf.com' Subject: RE: [Flashcoders] Curves question for math gurus A quadratic curve is made of 3 points. The first point is beginning of the curve, the second point creates the curve between the first and last point. This will place mc exactly on the middle of the curve mc._x = bezierQuadratic(0.5, point1.x, point2.x, point3.x); mc._y = bezierQuadratic(0.5, point1.x, point2.x, point3.x); function bezierQuadratic(t, a, b, c) { return (1-t)*(1-t)*a+2*(1-t)*t*b+t*t*c; } t being a number between 0 and 1, 0 is the location of the first point, 0.5 is the middle of the curve, 1 is the last point. BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of leolea Sent: Wednesday, April 25, 2007 12:34 PM To: Flashcoders mailing list Subject: [Flashcoders] Curves question for math gurus Hi, I have a dynamically drawn curve. It's a simple curve, with 2 end points, and its yfactor will vary. I'm trying to figure out a way to have objects snap to this curved line. I would distribute them over the _x axis, and I need a formula to get their _y position on the curved line. Here is a visual explanation: http://pages.videotron.com/poubou/flash/curve.jpg Now, I guess this requires trigonometry... And I really am a newb when it comes to trig... Any help would be appreciated ! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] 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
RE: [Flashcoders] Class for movie - best practice question
This AS2 class acts like the document class in AS3. You need to extend MovieClip like you need to extend Sprite or MovieClip in AS3. Tracing this in the class will result in _level0, its not composition. Its really useful for swf that you load, gives you the ability to type check everything on the root timeline without having to create an empty clip on the timeline etc... And I've thrown in EventDispatcher in there which is really useful as well. BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Ngo Sent: Tuesday, April 24, 2007 9:01 PM To: flashcoders@chattyfig.figleaf.com Subject: 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 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] scale 9?
Why not use a bevel filter? BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul V. Sent: Monday, April 02, 2007 2:38 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] scale 9? I ran into the same problem, it happens because of the rescaling of the line width. As far as I know flash doesn't maintain the line you are resizing at its set numerical value. See, you are really rescaling the whole movieClip, in your case I think you said it was a rectangle. What I ended up doing to fix the problem, was adjusting my frame sizes. eg. you might need a graphic (on Stage) sizing on the 9 px lined frame and then load it to the image. I would be interested if you hear of a scaling solution. I will keep my eyes posted. (pun intended). Paul Vdst. - Original Message - From: Dave Mennenoh [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Monday, April 02, 2007 9:30 AM Subject: [Flashcoders] scale 9? I have a clip, with a single pixel border to get an embossed effect. I have it set to 9 slice scaling... it works nicely when I simply place the clip on stage and scale it - such as I do for behind my fields. However, I also use it as the background for a dynamically loaded image - and the images are of various sizes. I am setting the width and height of the embosser clip to that of the image, but the clip doesn't quite fit the image like it should. The clip is either not quite wide enough, or not quite tall enough... It must be the 9 slice scaling, since if I use a normal clip, without 9 slice enabled, it sizes it properly. But then my border gets hosed... Thoughts? Dave - Head Developer 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 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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
function onEnterFrame(){ var delta:Number = mc._x - oldX; if(delta0){ launching; } if(delta0){ launching2; } oldX = mc._x; } BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Duenas Sent: Friday, February 16, 2007 10:48 AM To: Flashcoders mailing list Subject: [Flashcoders] help Hi, I need desperately some help...how can I detect if some dragged object is moving right or left. Because I need to trigger some event when its moving right and other when it is moving left. so far I'm trying to use this, but it appears to be useless. this is the code inside the object which is dragged. var xright = this._x+1; var xleft = this._x-1; if (this._x==xright){ launching } if(this._x==xleft){ launching2 } 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: Re[2]: [Flashcoders] Override _xscale and _yscale setter in AS2
Now that is pretty clever ! Exactly what I need. Thanks ! BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Iv Sent: Thursday, January 18, 2007 8:28 PM To: Flashcoders mailing list Subject: Re[2]: [Flashcoders] Override _xscale and _yscale setter in AS2 Hello Patrick, PMB Anybody has any other idea ? owerriding or watch of properties is impossible. Don't use extending. Use composition: class Test1 { private var __mc:MovieClip; public function Test1(mc:MovieClip){ this.__mc= mc } public function get _xscale ():Number { return this.__mc._xscale; } . etc } -- Ivan Dembicki __ [EMAIL PROTECTED] | http://www.artlebedev.ru | http://www.sharedfonts.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] Override _xscale and _yscale setter in AS2
In AS2, is it possible to override the _xscale and _yscale setter in a subclass of MovieClip ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Override _xscale and _yscale setter in AS2
See I have a component which sets some movieClips _xscale and _yscale. It works fine with MovieClip that contain vector graphics because they scale nicely. But with bitmap Graphics, scaling looks bad. So I wanted to extend the movieClip class and override the _xscale and _yscale setters so that instead of having the actual clip scale, a smooth bimapData would be drawn at the new scale. BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte | BLITZ Sent: Thursday, January 18, 2007 3:33 PM To: Flashcoders mailing list Subject: [Flashcoders] Override _xscale and _yscale setter in AS2 In AS2, is it possible to override the _xscale and _yscale setter in a subclass of MovieClip ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Override _xscale and _yscale setter in AS2
No I've tried that but it doesn't work unfortunately, I've also overridden the enabled setter before but the _xscale and _yscale setters seem to be different from the enabled setter. What I want to do is not scale the movieClip at all and scale redraw a bitmapData inside of it. BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of eka Sent: Thursday, January 18, 2007 3:50 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Override _xscale and _yscale setter in AS2 Hello :) Yes you can :) Try this code (not tested) class Test1 extends MovieClip { /** * Constructor */ function Test1() { } public function get _xscale ():Number { return _xscale_ ; } public function set _yscale( value:Number ):Void { __xscale__ = value ; // your code :) } private var _xscale_ = MovieClip.prototype._xscale ; } I use this technik in LUnAS the extension of VEGAS my framework OpenSource with the enabled property... it's possible it's work with the _xscale property. NB 1 : Vegas project : http://vegas.riaforge.org/ NB 2 : the AbstractComponent class in LunAS with this hack over the enabled property : http://svn.riaforge.org/vegas/AS2/trunk/src/lunas/display/components/Abs tractComponent.as EKA+ :) 2007/1/19, Patrick Matte | BLITZ [EMAIL PROTECTED]: In AS2, is it possible to override the _xscale and _yscale setter in a subclass of MovieClip ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Override _xscale and _yscale setter in AS2
It seems like you can't watch _xscale and _yscale BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ Sent: Thursday, January 18, 2007 4:16 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Override _xscale and _yscale setter in AS2 You can do it with enabled, but you can't with _xscale or _yscale. You have to use a watcher to catch it and return oldVal. BLITZ | Steven Sacks - 310-551-0200 x209 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of eka Sent: Thursday, January 18, 2007 3:50 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Override _xscale and _yscale setter in AS2 Hello :) Yes you can :) Try this code (not tested) class Test1 extends MovieClip { /** * Constructor */ function Test1() { } public function get _xscale ():Number { return _xscale_ ; } public function set _yscale( value:Number ):Void { __xscale__ = value ; // your code :) } private var _xscale_ = MovieClip.prototype._xscale ; } I use this technik in LUnAS the extension of VEGAS my framework OpenSource with the enabled property... it's possible it's work with the _xscale property. NB 1 : Vegas project : http://vegas.riaforge.org/ NB 2 : the AbstractComponent class in LunAS with this hack over the enabled property : http://svn.riaforge.org/vegas/AS2/trunk/src/lunas/display/comp onents/AbstractComponent.as EKA+ :) 2007/1/19, Patrick Matte | BLITZ [EMAIL PROTECTED]: In AS2, is it possible to override the _xscale and _yscale setter in a subclass of MovieClip ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Override _xscale and _yscale setter in AS2
Anybody has any other idea ? BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte | BLITZ Sent: Thursday, January 18, 2007 4:19 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Override _xscale and _yscale setter in AS2 No I've tried that but it doesn't work unfortunately, I've also overridden the enabled setter before but the _xscale and _yscale setters seem to be different from the enabled setter. What I want to do is not scale the movieClip at all and scale redraw a bitmapData inside of it. BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of eka Sent: Thursday, January 18, 2007 3:50 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Override _xscale and _yscale setter in AS2 Hello :) Yes you can :) Try this code (not tested) class Test1 extends MovieClip { /** * Constructor */ function Test1() { } public function get _xscale ():Number { return _xscale_ ; } public function set _yscale( value:Number ):Void { __xscale__ = value ; // your code :) } private var _xscale_ = MovieClip.prototype._xscale ; } I use this technik in LUnAS the extension of VEGAS my framework OpenSource with the enabled property... it's possible it's work with the _xscale property. NB 1 : Vegas project : http://vegas.riaforge.org/ NB 2 : the AbstractComponent class in LunAS with this hack over the enabled property : http://svn.riaforge.org/vegas/AS2/trunk/src/lunas/display/components/Abs tractComponent.as EKA+ :) 2007/1/19, Patrick Matte | BLITZ [EMAIL PROTECTED]: In AS2, is it possible to override the _xscale and _yscale setter in a subclass of MovieClip ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Tween a Matrix
Hi, is it possible to mx.transition.Tween a Matrix to another Matrix ? Patrick Matte Senior Flash Technical Lead Ph: 310-551-0200 x214 Fax: 310-551-0022 [EMAIL PROTECTED] BLITZ - 3415 South Sepulveda Boulevard, Suite 500 - Los Angeles, CA 90034 - www.blitzagency.com http://www.blitzagency.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] 8 sounds maximum limit
Oh wow, I found a link to Andre Michelle's as3 sound stuff on that page... thanks! Tb-303 emulation http://lab.andre-michelle.com/tb-303 Amiga modplayer http://lab.andre-michelle.com/8bitboy Vinyl scratching http://lab.andre-michelle.com/scratching Sound spectrum visualizations http://lab.andre-michelle.com/soundspectrum http://lab.andre-michelle.com/music-video-with-bitmapfilters -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of greg h Sent: Tuesday, December 19, 2006 6:30 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] 8 sounds maximum limit Patrick, I can not answer this one from experience. However, following is a link into the LiveDocs for Sound object the Flash AS3 preview: http://livedocs.macromedia.com/labs/as3preview/langref/flash/media/Sound .html#play()http://livedocs.macromedia.com/labs/as3preview/langref/flas h/media/Sound.html#play%28%29 And it says: Returns SoundChannelhttp://livedocs.macromedia.com/labs/as3preview/langref/flas h/media/SoundChannel.html- A SoundChannel object, which you use to control the sound. This method returns null if you have no sound card or if you run out of available sound channels. The maximum number of sound channels available at once is 32. If you test this and can confirm that you can now play up to 32 sounds, please post back on this thread and let us know. fyi ... should you be up for interesting reading on the Sound class, following is a thread from a year ago when Flash Player 9 was in beta (then known as FP 8.5). Note that FP Product Manager made it known that she was watching the thread, Taking notes... and looking into what sound improvements need to be made for the next version of Flash Player. www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=581threadid =1086327enterthread=y#4069271 hth, g On 12/19/06, Patrick Matte | BLITZ [EMAIL PROTECTED] wrote: Does anybody know if the new AS3 sound object in flash 9 will still be limited to playing only 8 sounds at a time ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] 8 sounds maximum limit
Does anybody know if the new AS3 sound object in flash 9 will still be limited to playing only 8 sounds at a time ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com