[Flashcoders] Flash developer [Verona, Italy]
Upgrade Multimediale Srl is a looking for an innovative Flash developer. Job position is intended in Verona (Italy) and it's not for freelance or collaboration. He will be involved in developing interactive applications, online games, animations, web campaings, ... His responsibilities will include creating and building experiential projects guided by a creative and technical lead. Requirements - 3+ years of professional Flash development - Expert knowledge of AS 2.0+ - Experience with design patterns (OOP) - Experience with version control systems - Experience with database/Flash communication (PHP, MySQL, and so on) - Experience with video inside of Flash - Knowledge of HTML, CSS, and Javascript Bonus Points: - knowledge of databases and content management tools - active participation in the Flash community Design knowledge is also a plus. Locals only please. No agencies. Please email your resume and a list or URLS (or portfolio site) clearly explaining your involvement on each project to: job (at) upgrade4.it with FLASH DEVELOPER as the subject. Salary commensurate with experience. About Upgrade Multimediale Upgrade Multimediale is a ten years' old web agency focused on fashion, lifestyle and car (automotive) clients such as Replay, BMW, SEAT, Mini and many others. We're a passionate and committed group of professionals looking for others like us. Check our site for examples of our work: blocked::http://www./ http://www.upgrade4.it ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] EmbedFonts = true
On 10/22/06, Joseph Balderson [EMAIL PROTECTED] wrote: You can't. The best way to use an embedded font with only certain outlines included in the embedding is to create a dummy (i.e. 'invisible') dynamic textfield, and in the property inspector select the outlines you want embedded. That way you don't have to create a linked font symbol, you just refer to the font by name, because it's already been embedded in that hidden textfield. Just as an organisational tip - rather than putting the TextFields on stage and invisible or offstage somewhere, another way to include them is to create a new MovieClip in the library, put all your dummy textfields (plain/bold/italic or whatever's needed) into that clip with Embedding turned on, then set the linkage properties of that library clip to Export for ActionScript and Export in First Frame. This means that clip will get included in the .swf and loaded in frame 1. Cheers, Ian ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Some whining about AS2 interfaces
So i'm trying to build a framework around interfaces. To create an application within this framework, ideally all you'd have to do is implement the interfaces and satisfy their conditions. However: No static methods in interfaces means no static methods means no singletons. Bummer. No way to specify private constructors (also for singletons). Bummer. How would you smart people work around this? Documentation? It seems like a major disadvantage to interfaces, but i may just be missing the point entirely. Some tell me interfaces are only for polymorphism, and while that's nice and all it doesn't make sense to me. - Andreas R ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Q:Playing with BitmapData
Hi I didn't find a better solution than two x and y loops... (other loop solutions I tested are not faster) Just note than copyChannel is a method 3x slower than copyPixels If you need to loop on your BitmapData, may be doing a setPixel inside the loop to build your channel Bitmap is more faster than doing your loop and then 3 copyChannel... The better method I found (the fastest) to get or set r,v,b components when you extract a color with getPixel is: to get color: arvb = {alpha:color24,red:(color16)%256,green:(color8)%256,blue:color%256}; to set color: color = (alpha8)+red)8)+green)8)+blue; good luck David Buff - Original Message - From: [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Sunday, October 22, 2006 4:49 AM Subject: [Flashcoders] Q:Playing with BitmapData Hi There are two things I am trying to do with bitmap data. The first is to analyze every pixel in an image using getpixel and then store this info as xml data for later manipulation. Can anyone offer suggestions to speed up this process? The second techinique is to simulate splitting up an image into its corresponding red, green and blue channels, showing how a 'true color' image is achieved when these three channels perfectly overlap one another. Do I simply need to use the Copychannel method of the BitmapData object for this? Thanks in advance! Jim Bachalo [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca ...all improvisation is life in search of a style. - Bruce Mau,'LifeStyle' ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] find same label
Is there a way to find same la bel in a combobox and let only one same label ?? my_cb.addItem({data:1, label:One}); my_cb.addItem({data:2, label:Two}); my_cb.addItem({data:3, label:One}); my_cb.addItem({data:4, label:Two}); var cbListener:Object = new Object(); cbListener.change = function (evt_obj:Object) { trace(Currently selected item is: + evt_obj.target.selectedItem.label); } my_cb.addEventListener(change, cbListener); ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Inheritance and contructor issue
//parent class: class no.rayon.aronning.StateMachine.prototypes.BaseState implements no.rayon.aronning.StateMachine.interfaces.IState { public var stateName:String; public var addListener:Function; public var removeListener:Function; private var broadcastMessage:Function; public function enter(m:BaseGameEntity){ } public function execute(m:BaseGameEntity){ } public function exit(m:BaseGameEntity){ } private function BaseState(stateName:String) { AsBroadcaster.initialize(this); this.stateName = stateName; trace(new state: +stateName); } } //child class (condensed) class states.GoHomeAndSleepTilRested extends BaseState implements IState { private static var _instance:BaseState; function enter(m:Character){ if(m.location!=home){ trace(Tired, going home to sleep); m.changeLocation(home); } } function execute(m:Character){ trace(Zzz..); } function exit(m:Character){ trace(Yawn... Sleep time is over); } private function GoHomeAndSleepTilRested(){ super(Go home and sleep til rested); } public static function get():BaseState{ if(!_instance){ _instance = new GoHomeAndSleepTilRested(); } trace(_instance.stateName); return _instance; } } Basic singleton for the child. When get() is called on the child, superconstructor is *not* called. Not even when called explicitly with super(). Class members of superclass can still be accessed, but no constructor. Say what? Am i missing something obvious? - A ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Inheritance and contructor issue
Hi, what is the output? greetz JC On 10/23/06, Andreas R [EMAIL PROTECTED] wrote: //parent class: class no.rayon.aronning.StateMachine.prototypes.BaseState implements no.rayon.aronning.StateMachine.interfaces.IState { public var stateName:String; public var addListener:Function; public var removeListener:Function; private var broadcastMessage:Function; public function enter(m:BaseGameEntity){ } public function execute(m:BaseGameEntity){ } public function exit(m:BaseGameEntity){ } private function BaseState(stateName:String) { AsBroadcaster.initialize(this); this.stateName = stateName; trace(new state: +stateName); } } //child class (condensed) class states.GoHomeAndSleepTilRested extends BaseState implements IState { private static var _instance:BaseState; function enter(m:Character){ if(m.location!=home){ trace(Tired, going home to sleep); m.changeLocation(home); } } function execute(m:Character){ trace(Zzz..); } function exit(m:Character){ trace(Yawn... Sleep time is over); } private function GoHomeAndSleepTilRested(){ super(Go home and sleep til rested); } public static function get():BaseState{ if(!_instance){ _instance = new GoHomeAndSleepTilRested(); } trace(_instance.stateName); return _instance; } } Basic singleton for the child. When get() is called on the child, superconstructor is *not* called. Not even when called explicitly with super(). Class members of superclass can still be accessed, but no constructor. Say what? Am i missing something obvious? - A ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Some whining about AS2 interfaces
Interfce main purpose is to define communication methods for some kind of object. Pls be so kind and tell me what in a hell private properties have to do with external objects which what to communicate with instance implementing particular interface? Static mighe be usefull, but then again, creating instance level proxy method for static function access, or even getters setters are so easy that I dont see here any problem 404. 2006/10/23, Andreas R [EMAIL PROTECTED]: So i'm trying to build a framework around interfaces. To create an application within this framework, ideally all you'd have to do is implement the interfaces and satisfy their conditions. However: No static methods in interfaces means no static methods means no singletons. Bummer. No way to specify private constructors (also for singletons). Bummer. How would you smart people work around this? Documentation? It seems like a major disadvantage to interfaces, but i may just be missing the point entirely. Some tell me interfaces are only for polymorphism, and while that's nice and all it doesn't make sense to me. - Andreas R ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Inheritance and contructor issue
that is not what is happening here. try this: class TestClass1 { public function TestClass1() { trace(TestClass1 TestClass1 TestClass1 ); } } class TestClass2 extends TestClass1 { private static var instance:TestClass2 = null; public static function get smething():TestClass2 { if(instance == null) { instance = new TestClass2(); } return instance; } } and in movie: var aa = TestClass2.smething; Constructor trace is executed well 2006/10/23, Hans Wichman [EMAIL PROTECTED]: Hi, what is the output? greetz JC On 10/23/06, Andreas R [EMAIL PROTECTED] wrote: //parent class: class no.rayon.aronning.StateMachine.prototypes.BaseState implements no.rayon.aronning.StateMachine.interfaces.IState { public var stateName:String; public var addListener:Function; public var removeListener:Function; private var broadcastMessage:Function; public function enter(m:BaseGameEntity){ } public function execute(m:BaseGameEntity){ } public function exit(m:BaseGameEntity){ } private function BaseState(stateName:String) { AsBroadcaster.initialize(this); this.stateName = stateName; trace(new state: +stateName); } } //child class (condensed) class states.GoHomeAndSleepTilRested extends BaseState implements IState { private static var _instance:BaseState; function enter(m:Character){ if(m.location!=home){ trace(Tired, going home to sleep); m.changeLocation(home); } } function execute(m:Character){ trace(Zzz..); } function exit(m:Character){ trace(Yawn... Sleep time is over); } private function GoHomeAndSleepTilRested(){ super(Go home and sleep til rested); } public static function get():BaseState{ if(!_instance){ _instance = new GoHomeAndSleepTilRested(); } trace(_instance.stateName); return _instance; } } Basic singleton for the child. When get() is called on the child, superconstructor is *not* called. Not even when called explicitly with super(). Class members of superclass can still be accessed, but no constructor. Say what? Am i missing something obvious? - A ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Some whining about AS2 interfaces
Because they *INTRIGUE* me Janis, and i'm excited about what they look like they can do on paper. AS2 doesn't conform to any kind of OOP standard anyway, so what's wrong with asking questions? The documentation states interfaces are good for API conformity, and that's what i'm trying to achieve with them. It takes a little more than an angry Latvian yelling at me for me to simply drop ideas that seem good to me on paper. So chill out guy. - A Janis Radins wrote: Interfce main purpose is to define communication methods for some kind of object. Pls be so kind and tell me what in a hell private properties have to do with external objects which what to communicate with instance implementing particular interface? Static mighe be usefull, but then again, creating instance level proxy method for static function access, or even getters setters are so easy that I dont see here any problem 404. 2006/10/23, Andreas R [EMAIL PROTECTED]: So i'm trying to build a framework around interfaces. To create an application within this framework, ideally all you'd have to do is implement the interfaces and satisfy their conditions. However: No static methods in interfaces means no static methods means no singletons. Bummer. No way to specify private constructors (also for singletons). Bummer. How would you smart people work around this? Documentation? It seems like a major disadvantage to interfaces, but i may just be missing the point entirely. Some tell me interfaces are only for polymorphism, and while that's nice and all it doesn't make sense to me. - Andreas R ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Some whining about AS2 interfaces
Re: Simgletons... you can have all other public methods in that class subscribe to interface methods, except 'getInstance()' or 'create()' or whatever. So singletons can definitely make use of interfaces. I agree that static methods would be useful, as would intrinsic getters and setters. 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] Odd behavior of Camera after reconnecting to server
Hi List, I'm trying to figure out a bug that's driving me nuts, and since the FlashComm list is down, I hope someone here can shed some light on it. I have a customised chat application (FlashComm), where an advisor is talking to one or more clients. The advisor has a camera attached via a net stream connection, which can be seen by each client (it's a one-way stream, the clients don't have cameras). The advisor can also pause and restart the camera with a menu-button. The pause is really just a net stream stop action, but the camera just freezes on the last frame. It all works fine, until the advisor's connection gets dropped, for example by a faulty internet connection to the server. At that point I'm reconnecting the advisor almost instantaneously to the net connection object. The camera's stream still seems to be working ok, until the advisor tries to pause it. At that point, the camera appears paused on the advisor screen, but the light doesn't go off and it doesn't pause on the client's screen. Here is the relevant code bits: In the Advisor Model: function startCam(){ broadcastMessage(attachVideo, cam) ns.attachVideo(cam); } function stopCam(){ broadcastMessage(attachVideo) ns.attachVideo(); } In the Advisor/Client View: function attachVideo (video:Object) { admin_vo.attachVideo (video); } After running some tests, I suspect that it appears to work ok on the advisor's side because the local attachVideo call in the Advisor's View is working properly, but something goes wrong with the net stream. Does anyone have any ideas as to the why, the wherefore and the howto? Thanks in advance, Karina ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] find same label
Sorry, more simple: don't push in a array and cast the array as string... just push in a string like: var myString:String = and myString+=value; David Buff - Original Message - From: David Buff [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, October 23, 2006 5:32 PM Subject: Re: [Flashcoders] find same label Hi I'll do something like this. First create a empty array. Then loop into your ComboBox like I show you before. Each step of the loop, test if the value is allready in the array. There is no method of array class to do that, but you can cast the array as string and use the method indexOf of the string class, something like this: if (myArray.toString().indexOf(myValue)==-1) { ... -1 means that the value is not in the string, then it's the first occurence of this value. So push the value into the array for futur test and push also this value into your second ComboBox. If the value appears again, indexOf will return a positiv or 0 number, then it's not pushed into your second ComboBox. David Buff - Original Message - From: Laurent CUCHET [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, October 23, 2006 12:28 PM Subject: [Flashcoders] find same label Is there a way to find same la bel in a combobox and let only one same label ?? my_cb.addItem({data:1, label:One}); my_cb.addItem({data:2, label:Two}); my_cb.addItem({data:3, label:One}); my_cb.addItem({data:4, label:Two}); var cbListener:Object = new Object(); cbListener.change = function (evt_obj:Object) { trace(Currently selected item is: + evt_obj.target.selectedItem.label); } my_cb.addEventListener(change, cbListener); ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Why would Selection.setFocus(mc) return false?
Does anybody know why Selection.setFocus(mc) would return false, even if mc has a unique tabindex .it won't receive tabbing focus, unless you put it inside a handler: test_mc.tabIndex = 1; trace(Selection.setFocus(test_mc)); // traces false test_mc.onRelease = function() { trace(Selection.setFocus(this)); //traces true }; Does anybody know what goes on behind the scenes here.? Grtz, Tom ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] find same label
I actually like using associative arrays to test for duplicate values. Something like this: var findItem_array:Array = new Array(); for (var i = 0; i my_cb.dataProvider.length; i++){ if(findItem_array[my_cb.dataProvider[i].label){ my_cb.removeItemAt(i); i--; } else { findItem_array[my_cb.dataProvider[i].label] = true; } } The above is pseudo code and but the theory should work. DC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Buff Sent: Monday, October 23, 2006 11:33 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] find same label Hi I'll do something like this. First create a empty array. Then loop into your ComboBox like I show you before. Each step of the loop, test if the value is allready in the array. There is no method of array class to do that, but you can cast the array as string and use the method indexOf of the string class, something like this: if (myArray.toString().indexOf(myValue)==-1) { ... -1 means that the value is not in the string, then it's the first occurence of this value. So push the value into the array for futur test and push also this value into your second ComboBox. If the value appears again, indexOf will return a positiv or 0 number, then it's not pushed into your second ComboBox. David Buff - Original Message - From: Laurent CUCHET [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Monday, October 23, 2006 12:28 PM Subject: [Flashcoders] find same label Is there a way to find same la bel in a combobox and let only one same label ?? my_cb.addItem({data:1, label:One}); my_cb.addItem({data:2, label:Two}); my_cb.addItem({data:3, label:One}); my_cb.addItem({data:4, label:Two}); var cbListener:Object = new Object(); cbListener.change = function (evt_obj:Object) { trace(Currently selected item is: + evt_obj.target.selectedItem.label); } my_cb.addEventListener(change, cbListener); ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Some whining about AS2 interfaces
Re: only for polymorphism Interfaces are great for this because if you have a concrete class that implements an interface, that instance gains another (abstract) type in addition to it's concrete type. This allows you to upcast an instance to the abstract type and allows client code (the code of other programmer's other than yourself) to treat it in a very loosely un-coupled way. If the client code communicates via the public methods of an interface, this will avoid any kind of hard-wiring into the implementation of the concrete class. The power in all of this is 'reducing the impact of change'. If you have a publically facing interface and an implementation that is okay today but tommorow it is not, all you have to do is substitute the implementation. The new implementation will behave in the manner defined as the interface. In the eyes of client code, they don't really care what it looks like so long as it satisfies expectations (i.e. the interface). ...sounds great in theory! Even more fulfiling in practice. As for singletons, I don't know much of a way either except to put that type of implementation heavy stuff commented into the interface. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Andreas R Sent: Monday, October 23, 2006 4:54 AM To: Flashcoders mailing list Subject: [Flashcoders] Some whining about AS2 interfaces So i'm trying to build a framework around interfaces. To create an application within this framework, ideally all you'd have to do is implement the interfaces and satisfy their conditions. However: No static methods in interfaces means no static methods means no singletons. Bummer. No way to specify private constructors (also for singletons). Bummer. How would you smart people work around this? Documentation? It seems like a major disadvantage to interfaces, but i may just be missing the point entirely. Some tell me interfaces are only for polymorphism, and while that's nice and all it doesn't make sense to me. - Andreas R ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 SVG embedding resources
Hi all and thanks for the input. I agree with Dave that the svg does look bloated compared to swf, and Claus and Jaco's explanations make sense for why this is. So far from what I found I agree with Jaco that there is no golden rule for predicting filesize when embedding svgs except that usually the swf will be smaller. I tried some of the suggested Inkscape optimising tips (ungroup,convert to paths, removing metadata/gradient definitions) and others (Vacuum Defs, Paths simplify) but none had a notable filesize impact once that particular svg was embedded in Flash (although they do benefit other svgs). The main culprit seems to be the three shadows below the base and one once they were removed from the svg took the resulting swf from 63k down to 30k which is roughly the svg/swf ratio I would expect. One related thing I found is : Original monitor svg = 64k adds 63k to the swf when embedded alone Edited monitor svg = 69k adds 30k to the swf when embedded alone Embedding BOTH svg files in the SAME swf adds only 63k to the swf I am guessing that the reason why is that when converting embedded svgs to swf the Flex2 SDK caches paths and gradients converts them to symbols in the library so that if it finds the same definition in another embedded svg it pulls it out of the library instead of recreating it. But I would need to test it some more to be sure. Cool if it is though. I put up the edited examples and a new post here http://www.dehash.com/?p=41 if anyone wants to follow it up. -gary ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] EmbedFonts = true
You don't need separate textfields for bold, italics and bold italics. You make one html textfield and in that textfield you put r b i bi Make b bold, i italic, and bi bold italic. Then embed the characters you need. :) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Delegates and performance
Well, if you're not changing anything in the timeline(s) of the movie (such as those animations or new movieclips), and you're only making a change to the classes, then you'll definitely benefit from using FLASC for those compiles. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Washington DC Cold Fusion Developer Needed
Hi Dave- I've tried twice to get off the list, and for some reason keep getting emails. The address I'm trying to use is '[EMAIL PROTECTED]'. The list is great, but it's just too much email for me to handle at this point in my life. If you can help get me off it, I'd be grateful! Thanks, Arlo Arlo C. Jamrog | Design Technical | KNI™ | [EMAIL PROTECTED] | www.kurtnoble.com On Oct 20, 2006, at 12:55 PM, Dave Watts wrote: Subject: [Flashcoders] Washington DC Cold Fusion Developer Needed Hi, this is the list admin. This is the wrong list for non-Flash programming job announcements. You might want to use the WAMMO Jobs list instead: http://wammo.org/mailman/listinfo/jobs Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Zinc issues
We just purchased a license for Zinc since we had to quickly pick a 3rd party projector with file load/save for a project. I'm using it with flex 2 framework / flash 9. It's kinda a letdown, first thing, it has a bad conflict with TortoiseSVN which caused it to crash right on startup. After researching a bit, Zinc installs old DLL-s which TSVN coughs up with. SWFStudio had the same kind of issue but they fixed it in recent builds. If I knew, I'd buy it instead of Zinc. The control over dialogs and features is terrible. They do support AS3, which we need since it's Flex 2 project. But it's spotty at best. To save binary files we had to take a ByteArray and convert it to a huge HEX string for Zinc to understand. This is of course slow, even in AS3. The Open dialog works, but amusingly the Save dialog doesn't! No matter what we tried, it just won't open or do anything at all. And since the open dialog doesn't check for file existence or anything, now we save files with the open dialog, as weird as it sounds. I'm writing here to ask if someone of you have dealt with those issues in Zinc and have workarounds, fixes, tricks/hacks etc. I'm contacting Zinc support too, but from what I see on their forums, they don't seem willing to answer to other people asking about the same issues. Regards, Stan Vassilev ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] animationpackage library, onCallback ?
Animationpackage: That's a fun library, has taken me too many hrs to get to where I almost want to go. Now I have 2 animations on curves, want them to run one after each other, and trying to start a second animation at the completion of the first, and I am trying to use onCallback from said libraries. As directed, I add: /var myListener:Object = new Object(); APCore.addListener(myListener); / I add onCallback to the animationStyle line: /...code for first animation... works fine// myMOC.animationStyle(3000,Sine.easeInOut,onCallback); / / /and later try to trace at animation's end: myListener.onCallback = function(){ trace(onCallback); } I get no indication that I have reached the last function. ANyone got a working example, a few statements, of getting the onCallback working? Thanks Wendy - you should look into one of the animation engines/packages available out there: http://www.mosessupposes.com/Fuse/ http://www.alex-uhlmann.de/flash/animationpackage/ Here's an example of a movieclip animated along a curve: http://www.alex-uhlmann.de/flash/animationpackage/de/alex_uhlmann/animationpackage/animation/MoveOnCurve_01.html regards, Muzak - Original Message - From: Wendy Richardson [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, October 20, 2006 7:35 PM Subject: [Flashcoders] Re: drawing a ring - can I use as motion path Here's a bit of a digression - can I draw a ring programatically and use it as a motion path for another MC? Like say I want a planet orbit (and I do) and I want the planet to ride round and round the ring, can I do that with all script? Thanks in advance. Wendy -- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] animationpackage library, onCallback ?
Wendy, I'm afraid I can't help you with AnimationPackage but, you may have a look at the Fuse Engine which is a powerful sequence animation engine, and what you asked can be so easily done with this cool tool (full AS2 and OOP support, event callbacks, sequence manipulation...) http://www.mosessupposes.com/Fuse Wendy Richardson a écrit : Animationpackage: That's a fun library, has taken me too many hrs to get to where I almost want to go. Now I have 2 animations on curves, want them to run one after each other, and trying to start a second animation at the completion of the first, and I am trying to use onCallback from said libraries. As directed, I add: /var myListener:Object = new Object(); APCore.addListener(myListener); / I add onCallback to the animationStyle line: /...code for first animation... works fine// myMOC.animationStyle(3000,Sine.easeInOut,onCallback); / / /and later try to trace at animation's end: myListener.onCallback = function(){ trace(onCallback); } I get no indication that I have reached the last function. ANyone got a working example, a few statements, of getting the onCallback working? Thanks Wendy - you should look into one of the animation engines/packages available out there: http://www.mosessupposes.com/Fuse/ http://www.alex-uhlmann.de/flash/animationpackage/ Here's an example of a movieclip animated along a curve: http://www.alex-uhlmann.de/flash/animationpackage/de/alex_uhlmann/animationpackage/animation/MoveOnCurve_01.html regards, Muzak - Original Message - From: Wendy Richardson [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, October 20, 2006 7:35 PM Subject: [Flashcoders] Re: drawing a ring - can I use as motion path Here's a bit of a digression - can I draw a ring programatically and use it as a motion path for another MC? Like say I want a planet orbit (and I do) and I want the planet to ride round and round the ring, can I do that with all script? Thanks in advance. Wendy -- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] determining how much of one clip intersects another
I'm working on a little component which is sort of like the fill-in bubbles on standardized tests. The user will use the mouse to scribble within a region. I'll draw into a clip which is on top of the region to fill it up. This is pretty easy. What I want to do is every time I draw into the region, figure out how much of the region is full by getting a percentage of pixels which are filled vs the amount that aren't. I imagine there's some slick BitmapData trick which could be used to make this happen, but I'm new to that class and my first guess involves about a million calls to getPixel to find out which are filled and which aren't. That's probably very slow -- surely someone's got a more efficient way to do this sort of thing. Gskinner's sprites.CollisionDetection class seems like a place to start, but it only returns the bounds of a collision, not the percentage of the target which is covered. Any ideas? -josh ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] FlashPaper
Hello all! Is there a way to change the styles of a flashPaper instance on stage, like setStyle(themeColor,0xff)? I would like to remove the halo green effects! Thanks a million Éric Thibault ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Q:Elementary Trig part 2
Ah well.. indeed -- point is still made the same in the end I gather. Looks like he got what he needed. -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Pete Miller Sent: Sunday, October 22, 2006 11:52 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Q:Elementary Trig part 2 Check your algebra, Since sin(a) = y/r, then y = r sin(a), etc. P. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Dynamically Distort Text?
I need to dynamically distort user input text to fill a limited set of shapes. For example, the user might type in WINNERS and select a shape like the Arc d' Triomphe (flat-topped arch), and the tops of all the letters would be flat but the bottoms would be curved. This is more than just putting text on a curve -- it requires actually distorting the individual letters. Nike has something similar to this (but not exactly) on their custom uniform builder. See http://www.niketeam.com/v2/new/Builders/Baseball/check_flash5.asp and move through the steps until you reach the Select Name Style, after which you'll see the effect I'm after. Somehow they are able to skew the letters, though they're not actually distorting any straight lines into a curve, and all the letters keep the same height. Anyone know of something like this? Especially Flash 7-compliant? Thanks. Marc Hoffman ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Q:Elementary Trig part 2
On 10/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Another way of stating my problem: Given an initial angle, and a circle with radius r, how do you determine the x,y coordinates of the point p1 on the circumference of this circle...assuming the circle's center is at 0,0.? Just use the code I posted in reply to Elementary Trig (part 1). It works for any angle, not just 120 and 240 degrees. Your initial angle needs to be between (the vector) p1 and something. That something is often (1, 0) -- one unit along the X axis. So, use that for x1, y1 in the code I posted, and your vector will be (x2, y2), or put differently, (Math.cos( initialAngle ), -Math.sin( initialAngle )) if initialAngle is the angle between your initial point and the X axis. However, it's only one unit (one pixel) from the center, not the radius r. You still need to scale it, simply multiply x and y by r. In short: x = Math.cos( angle ) * r; y = -Math.sin( angle ) * r; HTH, Mark ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] animationpackage library, onCallback ?
Have you tried listening for the onEnd event of the MoveOnCurve instance? // pseudo code import mx.utils.Delegate; import de.alex_uhlmann.animationpackage.animation.*; import com.robertpenner.easing.*; function curveEndHandler(curve):Void { trace(curveEndHandler); } // replace params with real values var myMOC:MoveOnCurve = new MoveOnCurve(mc, points, duration, easing); myMOC.addEventListener(onEnd, Delegate.create(this, this.curveEndHandler)); myMOC.animate(0,100); // or myMOC.run(); // end pseudo code regards, Muzak - Original Message - From: Wendy Richardson [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Monday, October 23, 2006 10:30 PM Subject: [Flashcoders] animationpackage library, onCallback ? Animationpackage: That's a fun library, has taken me too many hrs to get to where I almost want to go. Now I have 2 animations on curves, want them to run one after each other, and trying to start a second animation at the completion of the first, and I am trying to use onCallback from said libraries. As directed, I add: /var myListener:Object = new Object(); APCore.addListener(myListener); / I add onCallback to the animationStyle line: /...code for first animation... works fine// myMOC.animationStyle(3000,Sine.easeInOut,onCallback); / / /and later try to trace at animation's end: myListener.onCallback = function(){ trace(onCallback); } I get no indication that I have reached the last function. ANyone got a working example, a few statements, of getting the onCallback working? Thanks Wendy ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com