Re: [Flashcoders] Object registerClass
I will try to explain this: first, apoligizes for my bloody english, :P i want to build one menu from XML source like this. item label=Nuevo clase = bm_New/ i know the process for linking clases to a symbol in the library, but i don't wanna to have multiples copys of symbols with different class linkages. the type of var className is a String im sure of this. var className:String If i make this: for (var i in lib.botones.menu){ trace ( i + -- + lib.botones.menu[i]); } trace outputs all the clases in route /lib/botones/menu/, used by flash:classes associated on a symbol in the library, attached to the scene or previous code registered. I hope this is not the same thing. lib.botones.menu[bm_Nuevo]; var clase:String = bm_Nuevo; lib.botones.menu[clase]; The only solution i have found is add a previous methodregister() to the parent class, and use like this. lib.botones.menu[bm_New].register(); or make before attach the simbol botonTipo for all the clases i want to use later. Object.registerClass (botonTipo, lib.botones.menu[bm_New]); botonTipo is the default button i want to attach and apply class. if i make this previously Object.registerClass (botonTipo, lib.botones.menu[bm_New]); Object.registerClass (botonTipo, lib.botones.menu[bm_Close]); Object.registerClass (botonTipo, lib.botones.menu[bm_Open]); ... and trace for (var i in lib.botones.menu){ trace ( i + -- + lib.botones.menu[i]); } y found all the new clases. nice or not? 2006/11/13, Zárate [EMAIL PROTECTED]: Hi Oskar! Trace the type of the variable, if you're getting it from an XML, it could easily be object instead of string. Cheers! On 11/13/06, el oskitar [EMAIL PROTECTED] wrote: Hi all, I have a problem with Object.registerClass this works fine! //className hardcoded var myClass = lib.botones.menu[class]; Object.registerClass(obj_ID, myClass ); var myObj = _root..attachMovie (obj_ID,myObj, _root.getNextHighestDepth( )); but extrangely this won't work! //className passed by variable var className = class; var myClass = lib.botones.menu[className]; Object.registerClass(obj_ID, myClass ); var myObj = _root..attachMovie (obj_ID,myObj, _root.getNextHighestDepth( )); Any idea for this extrange behavior? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Juan Delgado - Zárate http://zarate.tv http://dandolachapa.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] Object registerClass
Hi, just a small note: var a:String, will NOT guarantee that a is actually a string. for example: var arr:Array = [_root.createEmptyMovieClip(test, 0)]; var str:String = arr[0]; trace( typeof (str)); will compile just fine and trace movieclip greetz JC On 11/14/06, el oskitar [EMAIL PROTECTED] wrote: I will try to explain this: first, apoligizes for my bloody english, :P i want to build one menu from XML source like this. item label=Nuevo clase = bm_New/ i know the process for linking clases to a symbol in the library, but i don't wanna to have multiples copys of symbols with different class linkages. the type of var className is a String im sure of this. var className:String If i make this: for (var i in lib.botones.menu){ trace ( i + -- + lib.botones.menu[i]); } trace outputs all the clases in route /lib/botones/menu/, used by flash:classes associated on a symbol in the library, attached to the scene or previous code registered. I hope this is not the same thing. lib.botones.menu[bm_Nuevo]; var clase:String = bm_Nuevo; lib.botones.menu[clase]; The only solution i have found is add a previous methodregister() to the parent class, and use like this. lib.botones.menu[bm_New].register(); or make before attach the simbol botonTipo for all the clases i want to use later. Object.registerClass (botonTipo, lib.botones.menu[bm_New]); botonTipo is the default button i want to attach and apply class. if i make this previously Object.registerClass (botonTipo, lib.botones.menu[bm_New]); Object.registerClass (botonTipo, lib.botones.menu[bm_Close]); Object.registerClass (botonTipo, lib.botones.menu[bm_Open]); ... and trace for (var i in lib.botones.menu){ trace ( i + -- + lib.botones.menu[i]); } y found all the new clases. nice or not? 2006/11/13, Zárate [EMAIL PROTECTED]: Hi Oskar! Trace the type of the variable, if you're getting it from an XML, it could easily be object instead of string. Cheers! On 11/13/06, el oskitar [EMAIL PROTECTED] wrote: Hi all, I have a problem with Object.registerClass this works fine! //className hardcoded var myClass = lib.botones.menu[class]; Object.registerClass(obj_ID, myClass ); var myObj = _root..attachMovie (obj_ID,myObj, _root.getNextHighestDepth( )); but extrangely this won't work! //className passed by variable var className = class; var myClass = lib.botones.menu[className]; Object.registerClass(obj_ID, myClass ); var myObj = _root..attachMovie (obj_ID,myObj, _root.getNextHighestDepth( )); Any idea for this extrange behavior? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Juan Delgado - Zárate http://zarate.tv http://dandolachapa.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] Undefined value
How can I do to send an empty var if there is nothing ? I always get ³reliure=undefined² and I need an empty var Thank you very much var reliure_var; if (_global.pie_glo !== || _global.pie_glo !== undefined) { reliure_var = reliure=+_global.pie_glo; var_glo.text = reliure_var; } else { reliure_var = ³²; var_glo.text = reliure_var; } ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Faking 3D perspective of a 2D map in Flash 8..?
Oe, I'm liking this one very much. More background would be greatly appreciated :D -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Seb L Sent: maandag 13 november 2006 11:33 To: Flashcoders mailing list Subject: Re: [Flashcoders] Faking 3D perspective of a 2D map in Flash 8..? We did this at FlashCodersBrighton : http://www.flashcodersbrighton.org/wordpress/?cat=1 We used a mode7 style technique. It was actually a bit complicated, but maybe I'll post a blog about it if enough people are interested? cheers! Seb Lee-Delisle http://sebleedelisle.com On 10/11/06, Andrew Murphy [EMAIL PROTECTED] wrote: Hello. I'm trying to take a vector map of North America and produce the sense of 'flying over' it. I want to have the flat map tipped along the X axis, so that the bottom (Florida, Texas, etc.) appear closer and the top (Nunuvut, Greenland, etc.) appear farther away. Then I want to be able to pan the map left and right, up and down, and 'zoom' in by scaling it.. scaling it a little faster vertically so that it seems to flatten out a bit as you get closer to the ground. So far I've only been able to achieve that in Illustrator and then saving the perspectively squished vectors as a .swf What I'd love to do is to get that perspective squish done within Flash 8 using script. I know about 3D program extensions for Flash like Sandy, but I find them cryptic (at best) and over kill for my simple needs. Any suggestions..? Thanks. :) - - - - - - - - - -[andrew murphy]- flash developer [EMAIL PROTECTED] delvinia interactive inc. 214 king street west, suite 214 toronto canada M5H 3S6 voice 416.364.1455 ext. 232 cell 416.820.8723 fax 416.364.9830 www.delvinia.com CONFIDENTIALITY NOTICE This email message may contain privileged or confidential information. If you are not the intended recipient or received this communication by error, please notify the sender and delete the message without copying or disclosing it. AVIS DE CONFIDENTIALITÉ Ce message peut contenir de l'information légalement privilégiée ou confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en détruire le contenu sans le communiquer a d'autres ou le reproduire. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.430 / Virus Database: 268.14.1/527 - Release Date: 09/11/2006 6:00 PM ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Italic text being chopped
What font are you using? I've had a similar issue with ascenders in the past rather than descenders but turned out to be a dodgy font. T -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Lynch Sent: 14 November 2006 10:49 To: Flashcoders Subject: [Flashcoders] Italic text being chopped My ps, qs, gs, ys and js are having their tails chopped off when made italic in a static text field. I've played about with the line spacing and indenting but to no avail. I thought it would be a simple fix but nothing I'm doing is working. Any ideas? Thanks Adrian ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Text Field Manipulation/Effect ...
Might be getting you wrong, but I think you are almost there already? Instead of using the clip to manipulate the scale of the text, how about trying to manipulate the TextFormat.letterSpacing? I haven't tested it, but I think it should do the trick? Cheers, Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Ford Sent: dinsdag 14 november 2006 0:33 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Text Field Manipulation/Effect ... Hello, I'm working on a small interactive with a text manipulation/effect. There is a clip on stage that the user drags from right to left, and as they drag, a text field appears on screen (by scaling from a width of 0 to 100% - effectively stretching out to full width) following the dragging clip. Here is a link http://www.yourfilehost.com/media.php?cat=swffile=728x90.swf So what I now need to do is have all the letters at full scale and piled on top of each other to begin with, then just drag them out into a full sentence (not just having the whole sentence as one clip that scales according to the position of the drag clip - as it currently does). Anyone seen any source that does a similar thing to this. Thanks.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] LocalConnection breaks object types?
did you use Object.registerClass ? you have to register your types for them to serialize / de-serialize with their type information intact. PR Durand wrote: Hi there! using localConnection seems to totally untype an object, right? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Italic text being chopped
My ps, qs, gs, ys and js are having their tails chopped off when made italic in a static text field. I've played about with the line spacing and indenting but to no avail. I thought it would be a simple fix but nothing I'm doing is working. Any ideas? Thanks Adrian ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Weird movie corruption
Greetings, all. I've been working on an interactive quiz for a while now, and it's working correctly, except that some parts of it break after making a call to any JavaScript function. I've been trying fruitlessly to debug this for a small eternity now, and I've finally run out of ideas. Could someone try to reproduce this effect? I've been able to reproduce the bug (?) with the following setup: The components are a button symbol and three movie clips. One movie clip has three frames with a static graphic on each frame; each frame has a stop() statement on it, and nothing else. Attached to it at the root level is onClipEvent(enterFrame){ this._x=_root._xmouse; this._y=_root._ymouse; } This clip should be named 'pointer', and reside alone on the top layer. The second movie clip has the following code attached to it: onClipEvent(load){ onRollOver=function(){ Mouse.hide(); _root.pointer.gotoAndPlay(2); } onRollOut=function(){ Mouse.show(); _root.pointer.gotoAndPlay(1); } } The third and final movie clip has the same code attached to it, save that its onRollOver send the pointer clip to frame 3, rather than frame 2. The button has the following code attached to it: on(release){ flash.external.ExternalInterface.call(alert, alert called); } After clicking the button and thereby making the JS call, the pointer clip stops following the system mouse movements. I've seen this behavior using both fscommand and ExternalInterface, exporting for Flash Player 6 and 8. The consistency makes me believe either that it's a bug in the way that Flash handles calls to JavaScript, or that it's a really really basic error in my AS. Many Thanks, Chris Akins ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Remoting blank requests
Hey! I'm in a process of exploring why my remoting data feeds get slow somtimes. Therefore i installed Service Capture and started to look what it does and found out that there are blank requests before real request with proper data. I believe this might confuse my app, since any data request migh fire response routines or anything like that. I did checked all places I am calling any remoting services and I am absolutely sure there are no multiply calls from me. Empty call looks exactly as proper one with single difference - it pass null null null instead of real request data. I am using amfphp and FF. Could be that this is normal behavior of Remoting or thats bug in somewhere, ideas? tnx in advance jānis ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] odd _alpha arithmetic
It's because _alpha is stored internally at 255 levels, so it's the dodgy floating point accuracy and conversion from the internal value to a percentage that causes the inconsistency. If it causes problems, I usually have a separate value for storing the current alpha. myClip = _root.createEmptyMovieClip(appClip,1); myClip.modifier = 5; myClip.currentAlpha = 100; myClip.onEnterFrame = function(){ this.currentAlpha-=this.modifier; this._alpha = this.currentAlpha } Hope this helps! Seb Lee-Delisle http://sebleedelisle.com On 14/11/06, Mendelsohn, Michael [EMAIL PROTECTED] wrote: I asked this question once. Check out the archives of my post: http://chattyfig.figleaf.com/mailman/htdig/flashcoders/2002-December/055 709.html - MM ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Best hardware for Flash
Hello, I'm looking into specifying hardware for running Flash projector based kiosks. The aim is to get the best possible Flash performance while avoiding spending money on technology that isn't going to make any difference. Given that the usual performance benchmarks don't really apply to Flash I was wondering if anyone had any particular insight or had done any tests. At the moment I've been working on the following vague assumptions based on my experience and reading of various reviews. Processor speed is important, but the type of processor is as well. Roughly speaking, Pentium Ds are the slowest per Hz, Athlons and Pentium M's are next followed by Core 2's which are the fastest. Dual processors or more may give you a slight increase due to the system using the other processor for operating system tasks but this isn't going to be much more than 10% because Flash isn't multi threaded. Similarly 64 bit systems may increase speed a bit as the operating system may get a bit of an advantage but this isn't going to be much as neither standard Windows nor Flash is 64 bit (yet). On board memory chips usually use a shared memory architecture which uses the system memory for graphics. This seems substantially slower than graphics cards with their own dedicated video RAM. However, given that Flash doesn't use 3D engines its not really worth shelling out a lot for a really high spec card. However adding a mid range graphics card can improve performance. At the moment I'm using nVidia because the drivers that come with their cards seem to be the most reliable. Unless your project is really huge you're not going to need much memory over 1Gb or a particularly large or fast hard drive because most Flash projects can loaded into the memory at start. I'd be interested if anyone can add to these thoughts or has information that contradicts them. Best wishes Joe Joe Cutting Computer exhibits and installations www.joecutting.com The Fishergate Centre, 4 Fishergate, York, YO10 4FB 01904 624681 As of 30th October 2006 I have a new office so please note my new address and phone number ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Italic text being chopped
Cheers T. It's verdana, 11, bitmap text (no anti-alias). I'm stuck with this due to brand guidelines. Any other ideas? Adrian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Trevor Burton Sent: 14 November 2006 11:31 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Italic text being chopped What font are you using? I've had a similar issue with ascenders in the past rather than descenders but turned out to be a dodgy font. T -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Lynch Sent: 14 November 2006 10:49 To: Flashcoders Subject: [Flashcoders] Italic text being chopped My ps, qs, gs, ys and js are having their tails chopped off when made italic in a static text field. I've played about with the line spacing and indenting but to no avail. I thought it would be a simple fix but nothing I'm doing is working. Any ideas? Thanks Adrian ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Weird movie corruption
A couple of things to try... I've recently been getting VERY unpredictable results with JS/AS communication and I realised that security settings seem to be a bit weird... so the first thing to try is uploading it to a web server and see if it still happens there. Secondly, I would delete all the movieclips and just have the button left just to make sure there's nothing to do with hiding the mouse or changing frames. I'm sure it's fine, but you need to eliminate everything that could be a problem. good luck! Seb Lee-Delilsle http://sebleedelisle.com On 14/11/06, Chris Akins [EMAIL PROTECTED] wrote: Greetings, all. I've been working on an interactive quiz for a while now, and it's working correctly, except that some parts of it break after making a call to any JavaScript function. I've been trying fruitlessly to debug this for a small eternity now, and I've finally run out of ideas. Could someone try to reproduce this effect? I've been able to reproduce the bug (?) with the following setup: The components are a button symbol and three movie clips. One movie clip has three frames with a static graphic on each frame; each frame has a stop() statement on it, and nothing else. Attached to it at the root level is onClipEvent(enterFrame){ this._x=_root._xmouse; this._y=_root._ymouse; } This clip should be named 'pointer', and reside alone on the top layer. The second movie clip has the following code attached to it: onClipEvent(load){ onRollOver=function(){ Mouse.hide(); _root.pointer.gotoAndPlay(2); } onRollOut=function(){ Mouse.show(); _root.pointer.gotoAndPlay(1); } } The third and final movie clip has the same code attached to it, save that its onRollOver send the pointer clip to frame 3, rather than frame 2. The button has the following code attached to it: on(release){ flash.external.ExternalInterface.call(alert, alert called); } After clicking the button and thereby making the JS call, the pointer clip stops following the system mouse movements. I've seen this behavior using both fscommand and ExternalInterface, exporting for Flash Player 6 and 8. The consistency makes me believe either that it's a bug in the way that Flash handles calls to JavaScript, or that it's a really really basic error in my AS. Many Thanks, Chris Akins ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Faking 3D perspective of a 2D map in Flash 8..?
Hi Seb Seconded. If you find the time I'd love to read that blog. Jake On 14/11/06, Ben Smeets [EMAIL PROTECTED] wrote: Oe, I'm liking this one very much. More background would be greatly appreciated :D -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Seb L Sent: maandag 13 november 2006 11:33 To: Flashcoders mailing list Subject: Re: [Flashcoders] Faking 3D perspective of a 2D map in Flash 8..? We did this at FlashCodersBrighton : http://www.flashcodersbrighton.org/wordpress/?cat=1 We used a mode7 style technique. It was actually a bit complicated, but maybe I'll post a blog about it if enough people are interested? cheers! Seb Lee-Delisle http://sebleedelisle.com On 10/11/06, Andrew Murphy [EMAIL PROTECTED] wrote: Hello. I'm trying to take a vector map of North America and produce the sense of 'flying over' it. I want to have the flat map tipped along the X axis, so that the bottom (Florida, Texas, etc.) appear closer and the top (Nunuvut, Greenland, etc.) appear farther away. Then I want to be able to pan the map left and right, up and down, and 'zoom' in by scaling it.. scaling it a little faster vertically so that it seems to flatten out a bit as you get closer to the ground. So far I've only been able to achieve that in Illustrator and then saving the perspectively squished vectors as a .swf What I'd love to do is to get that perspective squish done within Flash 8 using script. I know about 3D program extensions for Flash like Sandy, but I find them cryptic (at best) and over kill for my simple needs. Any suggestions..? Thanks. :) - - - - - - - - - -[andrew murphy]- flash developer [EMAIL PROTECTED] delvinia interactive inc. 214 king street west, suite 214 toronto canada M5H 3S6 voice 416.364.1455 ext. 232 cell 416.820.8723 fax 416.364.9830 www.delvinia.com CONFIDENTIALITY NOTICE This email message may contain privileged or confidential information. If you are not the intended recipient or received this communication by error, please notify the sender and delete the message without copying or disclosing it. AVIS DE CONFIDENTIALITÉ Ce message peut contenir de l'information légalement privilégiée ou confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en détruire le contenu sans le communiquer a d'autres ou le reproduire. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.430 / Virus Database: 268.14.1/527 - Release Date: 09/11/2006 6:00 PM ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] LocalConnection breaks object types?
Hi there! using localConnection seems to totally untype an object, right? so I use in a sending swf: var myObj:MyType = new MyType(); // then filling object with values I send my object to another swf via localConnection and in my receiving method in my receiving swf : trace (myObj instanceOf MyType) = returns false all the values still are in the object, so I can acces all public vars, but all my get properties for private vars are unavailable, the object is totally untyped ! Even when trying to re-type it while sending to another method in the receiving swf: this.displayContent(MyType(myObj)); the displayContent method can't read it as a MyType object can't understand... any explaination please? thx PiR ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Italic text being chopped
If it's Verdana then I doubt it's the font - my problem was with Channel 4's custom font (you'd think they'd have spent some money getting someone to create it correctly). If it's only descenders getting cropped then have you tried outlining your text boxes to see if there's anything going on there? - how are you setting the style on the textfield - TextFormat or Styles? T -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Lynch Sent: 14 November 2006 11:45 To: Flashcoders mailing list Subject: RE: [Flashcoders] Italic text being chopped Cheers T. It's verdana, 11, bitmap text (no anti-alias). I'm stuck with this due to brand guidelines. Any other ideas? Adrian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Trevor Burton Sent: 14 November 2006 11:31 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Italic text being chopped What font are you using? I've had a similar issue with ascenders in the past rather than descenders but turned out to be a dodgy font. T -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Lynch Sent: 14 November 2006 10:49 To: Flashcoders Subject: [Flashcoders] Italic text being chopped My ps, qs, gs, ys and js are having their tails chopped off when made italic in a static text field. I've played about with the line spacing and indenting but to no avail. I thought it would be a simple fix but nothing I'm doing is working. Any ideas? Thanks Adrian ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Italic text being chopped
This is just a static text field. I changed it to dynamic and had a play about with it's text format but no joy just yet. Adrian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Trevor Burton Sent: 14 November 2006 11:57 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Italic text being chopped If it's Verdana then I doubt it's the font - my problem was with Channel 4's custom font (you'd think they'd have spent some money getting someone to create it correctly). If it's only descenders getting cropped then have you tried outlining your text boxes to see if there's anything going on there? - how are you setting the style on the textfield - TextFormat or Styles? T -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Lynch Sent: 14 November 2006 11:45 To: Flashcoders mailing list Subject: RE: [Flashcoders] Italic text being chopped Cheers T. It's verdana, 11, bitmap text (no anti-alias). I'm stuck with this due to brand guidelines. Any other ideas? Adrian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Trevor Burton Sent: 14 November 2006 11:31 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Italic text being chopped What font are you using? I've had a similar issue with ascenders in the past rather than descenders but turned out to be a dodgy font. T -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Lynch Sent: 14 November 2006 10:49 To: Flashcoders Subject: [Flashcoders] Italic text being chopped My ps, qs, gs, ys and js are having their tails chopped off when made italic in a static text field. I've played about with the line spacing and indenting but to no avail. I thought it would be a simple fix but nothing I'm doing is working. Any ideas? Thanks Adrian ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] upcasting causes overridden superclasses methods to be called
I was hunting a bug when I found this out: class SuperClass { public function init() { trace (superclass init); } } class SubClass extends SuperClass{ public override function init(){ trace (subclass init); } } if you create a subclass instances and cast it (or type its variable) to the superclass, when init is invoked, the superclass init is called. var aInstance:SuperClass=new SubClass(); aInstance.init();//superclass init Makes senses, now how about a way around this? I want to make sure the instance's OWN init() is called. Here's the context: I'm upcasting in a button factory class, when SubClass is a variable: public function ButtonFactory(graphicsFactory:graphicFactory, buttonClass:Class) { //the compiler won't let me cast to an unknown class, so //since I know buttonClass is a descendent of BaseButton, which has all the relevant graphics-setting methods, I upcast it //buttonClass--BaseButton aButton:BaseButton=new buttonClass() //the graphics settings methods are in BaseButton, so I'm fine to build up the graphics aButton.disabledState=graphicsFactory.makeDisabledState() //but this calls BaseButton.init(), not buttonClass.init() aButton.init() } Thanks matt ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Italic text being chopped
Probably irrelevant - the only time I've had that happen was just something really silly - the text field was too short for the font size. :-) Ian On 11/14/06, Adrian Lynch [EMAIL PROTECTED] wrote: This is just a static text field. I changed it to dynamic and had a play about with it's text format but no joy just yet. Adrian ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Italic text being chopped
Thanks, tried that, still no joy. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ian Thomas Sent: 14 November 2006 13:31 To: Flashcoders mailing list Subject: Re: [Flashcoders] Italic text being chopped Probably irrelevant - the only time I've had that happen was just something really silly - the text field was too short for the font size. :-) Ian On 11/14/06, Adrian Lynch [EMAIL PROTECTED] wrote: This is just a static text field. I changed it to dynamic and had a play about with it's text format but no joy just yet. Adrian ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Undefined value
You have an incorrect not equal: !== There's just one equal sign: != 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] odd _alpha arithmetic
myClip = _root.createEmptyMovieClip(appClip,1); myClip.modifier = 5; myClip.onEnterFrame = function(){ this._alpha-=this.modifier; trace(this._alpha); } Why is that trace outputting uneven decimals, not integers? - 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] odd _alpha arithmetic
I asked this question once. Check out the archives of my post: http://chattyfig.figleaf.com/mailman/htdig/flashcoders/2002-December/055 709.html - MM ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Remoting blank requests
Sorry Brain must be addled. Will definitely bring it in first thing tomorrow...promise.. Ned -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Janis Radins Sent: 14 November 2006 11:29 To: Flashcoders mailing list Subject: [Flashcoders] Remoting blank requests Hey! I'm in a process of exploring why my remoting data feeds get slow somtimes. Therefore i installed Service Capture and started to look what it does and found out that there are blank requests before real request with proper data. I believe this might confuse my app, since any data request migh fire response routines or anything like that. I did checked all places I am calling any remoting services and I am absolutely sure there are no multiply calls from me. Empty call looks exactly as proper one with single difference - it pass null null null instead of real request data. I am using amfphp and FF. Could be that this is normal behavior of Remoting or thats bug in somewhere, ideas? tnx in advance jānis This e-mail (and any attachments) is confidential and may contain personal views which are not the views of Cimex Media Ltd and any affiliated companies, unless specifically stated. It is intended for the use of the individual or group to whom it is addressed. If you have received it in error, please delete it from your system, do not use, copy or disclose the information in any way nor act in reliance on it and please notify [EMAIL PROTECTED] This email was scanned by Postini, the leading provider in Managed Email Security. http://www.postini.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] LocalConnection breaks object types?
Object.registerClass is used to register types for a variety of purposes, shared objects, local connections and remoting apart from the MC / class link usage. Did you register the class at both ends? and are you sure its compiled into both movies? check this post from the archive http://chattyfig.figleaf.com/pipermail/flashcoders/2004-November/126008.html its a good guide to local connection and registerClass. PR Durand wrote: Nope... it seems that object.registerClass remains a link between AS1 class and a movieClip... I can't get my object pass through the localConnection... :( ++ PiR ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] [AS3] Instantiating Dynamic Classes
Something like this: import flash.utils.getDefinitionByName; var class : Class = getDefinitionByName (clip_ + variable) as Class; var mc : MovieClip = MovieClip (new Class ()); addChildAt (mc, depth); Not tested. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Marsden Sent: Tuesday, November 14, 2006 11:00 AM To: Flashcoders mailing list Subject: [Flashcoders] [AS3] Instantiating Dynamic Classes Hi all, How is it possible to do the equivalent of this in Flash 9 AS 3: var mc = _root.attachMovie(clip_ + variable, variable, depth); I realise attachMovie doesn't exist and you have to instantiate a class, but how do you do dynamically choose the class name? Thanks, James ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] LocalConnection breaks object types?
Hi Martin thanks for your answer... No I didn't, cause I thought it was deprecated since we could use classes... I'll try this. Thanks once more... PiR Martin Wood-Mitrovski a écrit : did you use Object.registerClass ? you have to register your types for them to serialize / de-serialize with their type information intact. PR Durand wrote: Hi there! using localConnection seems to totally untype an object, right? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Remoting blank requests
If I'm not mistaken, blank/empty calls are made to either create a connection or check if the service exists. I'm not 100% sure about that though. regards, Muzak - Original Message - From: Janis Radins [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, November 14, 2006 12:29 PM Subject: [Flashcoders] Remoting blank requests Hey! I'm in a process of exploring why my remoting data feeds get slow somtimes. Therefore i installed Service Capture and started to look what it does and found out that there are blank requests before real request with proper data. I believe this might confuse my app, since any data request migh fire response routines or anything like that. I did checked all places I am calling any remoting services and I am absolutely sure there are no multiply calls from me. Empty call looks exactly as proper one with single difference - it pass null null null instead of real request data. I am using amfphp and FF. Could be that this is normal behavior of Remoting or thats bug in somewhere, ideas? tnx in advance jnis ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Widescreen displays
In the age of widescreen television and flat panels, is anyone on this list deploying fullscreen stuff that is flexible in its display? I'm just curious and was about to roll up a little class to handle the 2 aspect ratios. - e. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] LocalConnection breaks object types?
Nope... it seems that object.registerClass remains a link between AS1 class and a movieClip... I can't get my object pass through the localConnection... :( ++ PiR PR Durand a écrit : Hi Martin thanks for your answer... No I didn't, cause I thought it was deprecated since we could use classes... I'll try this. Thanks once more... PiR Martin Wood-Mitrovski a écrit : did you use Object.registerClass ? you have to register your types for them to serialize / de-serialize with their type information intact. PR Durand wrote: Hi there! using localConnection seems to totally untype an object, right? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Re: weird movie corruption
RESOLVED! This turned out to be a problem with Flash Player 9. When I rolled back to 8r22, everything worked beautifully. A bug report has been filed with this example; thanks for reading. -Chris Akins ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Instantiating Dynamic Classes
Hi all, How is it possible to do the equivalent of this in Flash 9 AS 3: var mc = _root.attachMovie(clip_ + variable, variable, depth); I realise attachMovie doesn't exist and you have to instantiate a class, but how do you do dynamically choose the class name? Thanks, James ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] LocalConnection breaks object types?
can't understand... any explaination please? Just guessing, I haven't tried anything like this with localConnection, but it seems to be the same like with local SharedObjects: If you have MyClass in both SWFs, and send an instance 'foo' to the other, try to set foo.__proto__ = MyClass.prototype on the receiving side. Maybe also foo.constructor = MyClass. In any case, try the link Martin posted first. I haven't had a look at it, but it possibly provides a cleaner solution. HTH, Mark On 11/14/06, PR Durand [EMAIL PROTECTED] wrote: Hi there! using localConnection seems to totally untype an object, right? so I use in a sending swf: var myObj:MyType = new MyType(); // then filling object with values I send my object to another swf via localConnection and in my receiving method in my receiving swf : trace (myObj instanceOf MyType) = returns false all the values still are in the object, so I can acces all public vars, but all my get properties for private vars are unavailable, the object is totally untyped ! Even when trying to re-type it while sending to another method in the receiving swf: this.displayContent(MyType(myObj)); the displayContent method can't read it as a MyType object can't understand... any explaination please? thx PiR ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Undefined value
You have an incorrect not equal: !== There's just one equal sign: != !== strict inequality operator expression1 !== expression2 Tests for the exact opposite of the strict equality (===) operator. The strict inequality operator performs the same as the inequality operator except that data types are not converted. If expression1 is equal to expression2, and their data types are equal, the result is false. As with the strict equality (===) operator, the definition of equal depends on the data types being compared, as illustrated in the following list: Numbers, strings, and Boolean values are compared by value. Objects, arrays, and functions are compared by reference. A variable is compared by value or by reference, depending on its type. Availability: ActionScript 1.0; Flash Player 6 Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Faking 3D perspective of a 2D map in Flash 8..?
OK it's on my list, but I'm not sure when that'll be... I have a whole lot of 3D tutorials to prepare for Flash on the Beach first... But I have an rss if you want to be the first to see... http://sebleedelisle.com/?feed=rss2 cheers Seb Lee-Delisle http://sebleedelisle.com On 14/11/06, Jake Prime [EMAIL PROTECTED] wrote: Hi Seb Seconded. If you find the time I'd love to read that blog. Jake On 14/11/06, Ben Smeets [EMAIL PROTECTED] wrote: Oe, I'm liking this one very much. More background would be greatly appreciated :D -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Seb L Sent: maandag 13 november 2006 11:33 To: Flashcoders mailing list Subject: Re: [Flashcoders] Faking 3D perspective of a 2D map in Flash 8..? We did this at FlashCodersBrighton : http://www.flashcodersbrighton.org/wordpress/?cat=1 We used a mode7 style technique. It was actually a bit complicated, but maybe I'll post a blog about it if enough people are interested? cheers! Seb Lee-Delisle http://sebleedelisle.com On 10/11/06, Andrew Murphy [EMAIL PROTECTED] wrote: Hello. I'm trying to take a vector map of North America and produce the sense of 'flying over' it. I want to have the flat map tipped along the X axis, so that the bottom (Florida, Texas, etc.) appear closer and the top (Nunuvut, Greenland, etc.) appear farther away. Then I want to be able to pan the map left and right, up and down, and 'zoom' in by scaling it.. scaling it a little faster vertically so that it seems to flatten out a bit as you get closer to the ground. So far I've only been able to achieve that in Illustrator and then saving the perspectively squished vectors as a .swf What I'd love to do is to get that perspective squish done within Flash 8 using script. I know about 3D program extensions for Flash like Sandy, but I find them cryptic (at best) and over kill for my simple needs. Any suggestions..? Thanks. :) - - - - - - - - - -[andrew murphy]- flash developer [EMAIL PROTECTED] delvinia interactive inc. 214 king street west, suite 214 toronto canada M5H 3S6 voice 416.364.1455 ext. 232 cell 416.820.8723 fax 416.364.9830 www.delvinia.com CONFIDENTIALITY NOTICE This email message may contain privileged or confidential information. If you are not the intended recipient or received this communication by error, please notify the sender and delete the message without copying or disclosing it. AVIS DE CONFIDENTIALITÉ Ce message peut contenir de l'information légalement privilégiée ou confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en détruire le contenu sans le communiquer a d'autres ou le reproduire. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.430 / Virus Database: 268.14.1/527 - Release Date: 09/11/2006 6:00 PM ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Undefined value
!== is strict inequality, it tests for the exact opposite of the strict equality (===) operator. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Mennenoh Sent: 14 November 2006 16:52 To: Flashcoders mailing list Subject: Re: [Flashcoders] Undefined value You have an incorrect not equal: !== There's just one equal sign: != 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
Re: [Flashcoders] Remoting blank requests
i have sutch suspiction as well, but in that case how come theres nothing like that on IE ? doesnt make sence 2006/11/14, Muzak [EMAIL PROTECTED]: If I'm not mistaken, blank/empty calls are made to either create a connection or check if the service exists. I'm not 100% sure about that though. regards, Muzak - Original Message - From: Janis Radins [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, November 14, 2006 12:29 PM Subject: [Flashcoders] Remoting blank requests Hey! I'm in a process of exploring why my remoting data feeds get slow somtimes. Therefore i installed Service Capture and started to look what it does and found out that there are blank requests before real request with proper data. I believe this might confuse my app, since any data request migh fire response routines or anything like that. I did checked all places I am calling any remoting services and I am absolutely sure there are no multiply calls from me. Empty call looks exactly as proper one with single difference - it pass null null null instead of real request data. I am using amfphp and FF. Could be that this is normal behavior of Remoting or thats bug in somewhere, ideas? tnx in advance jnis ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Undefined value
On 14/11/06, Laurent CUCHET [EMAIL PROTECTED] wrote: var reliure_var; if (_global.pie_glo !== || _global.pie_glo !== undefined) { reliure_var = reliure=+_global.pie_glo; var_glo.text = reliure_var; } else { reliure_var = ³²; var_glo.text = reliure_var; } I can see two possible problems here Laurent. Firstly I think you need to change the || to . You are testing whether a value is not one thing or not another. Because it can't be both of them at once one of those will always be true, therefore the whole statement will always be true. Secondly, you are testing for the string undefined, whereas you probably want to be testing against the value undefined itself. (It's possible that's not the case, I haven't seen the rest of your code. Hope that helps. Jake ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] upcasting causes overridden superclasses methods to be called
Hi, running your example shows: subclass init, as it should. public override function init(){ trace (subclass init); } whats the override keyword doing there? greetz JC On 11/14/06, Matt Garland [EMAIL PROTECTED] wrote: I was hunting a bug when I found this out: class SuperClass { public function init() { trace (superclass init); } } class SubClass extends SuperClass{ public override function init(){ trace (subclass init); } } if you create a subclass instances and cast it (or type its variable) to the superclass, when init is invoked, the superclass init is called. var aInstance:SuperClass=new SubClass(); aInstance.init();//superclass init Makes senses, now how about a way around this? I want to make sure the instance's OWN init() is called. Here's the context: I'm upcasting in a button factory class, when SubClass is a variable: public function ButtonFactory(graphicsFactory:graphicFactory, buttonClass:Class) { //the compiler won't let me cast to an unknown class, so //since I know buttonClass is a descendent of BaseButton, which has all the relevant graphics-setting methods, I upcast it //buttonClass--BaseButton aButton:BaseButton=new buttonClass() //the graphics settings methods are in BaseButton, so I'm fine to build up the graphics aButton.disabledState=graphicsFactory.makeDisabledState() //but this calls BaseButton.init(), not buttonClass.init() aButton.init() } Thanks matt ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Undefined value
!== is strict inequality, it tests for the exact opposite of the strict equality (===) operator. My bad... I guess I never use the strict operators... Sorry. 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
Re: [Flashcoders] Undefined value
'undefined' is not a string. Try: var reliure_var; if ( _global.pie_glo _global.pie_glo != ) { reliure_var = reliure=+_global.pie_glo; var_glo.text = reliure_var; } else { reliure_var = ³²; var_glo.text = reliure_var; } On 11/14/06, Laurent CUCHET [EMAIL PROTECTED] wrote: How can I do to send an empty var if there is nothing ? I always get ³reliure=undefined² and I need an empty var Thank you very much var reliure_var; if (_global.pie_glo !== || _global.pie_glo !== undefined) { reliure_var = reliure=+_global.pie_glo; var_glo.text = reliure_var; } else { reliure_var = ³²; var_glo.text = reliure_var; } ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- : : ) Scott ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] quick actionscript question
Hello anyone know the actionscript for a button that will control a video fast forward and rewind button that forwards and rewinds in a smooth transition? I want to use it with an existing scrubber that is working. The buttons are working but at present they only go back or foreard based on 1 or 2 second increments. Here is what i have at present: // my custom nav buttons are below ff_button.onRelease = function (){ myDisplay.jumpToVideoPosition(myDisplay.currentVideoPosition + 1); } rev_button.onRelease = function (){ myDisplay.jumpToVideoPosition(myDisplay.currentVideoPosition - 1); } Any ideas? Eric -- To view more about The Artwork of Eric Walton 9 / Edub9 please go to the following address: www.hollywoodfineart.com www.myspace.com/ericwalton9_edub9 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] quick actionscript question
Hello anyone know the actionscript for a button that will control a video fast forward and rewind button that forwards and rewinds in a smooth transition? I want to use it with an existing scrubber that is working. The buttons are working but at present they only go back or foreard based on 1 or 2 second increments. Here is what i have at present: // my custom nav buttons are below ff_button.onRelease = function (){ myDisplay.jumpToVideoPosition(myDisplay.currentVideoPosition + 1); } rev_button.onRelease = function (){ myDisplay.jumpToVideoPosition(myDisplay.currentVideoPosition - 1); } Any ideas? Eric -- To view more about The Artwork of Eric Walton 9 / Edub9 please go to the following address: www.hollywoodfineart.com www.myspace.com/ericwalton9_edub9 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] quick actionscript question
The problem is in how the FLVs are encoded. You have to encode with keyframes on every frame. Once that's done, they should scroll fine (although backwards is generaly chunkier than forwards). ― Mike Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of eric walton 9 / edub9 Edub9 Sent: Tuesday, November 14, 2006 10:38 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] quick actionscript question Hello anyone know the actionscript for a button that will control a video fast forward and rewind button that forwards and rewinds in a smooth transition? I want to use it with an existing scrubber that is working. The buttons are working but at present they only go back or foreard based on 1 or 2 second increments. Here is what i have at present: // my custom nav buttons are below ff_button.onRelease = function (){ myDisplay.jumpToVideoPosition(myDisplay.currentVideoPosition + 1); } rev_button.onRelease = function (){ myDisplay.jumpToVideoPosition(myDisplay.currentVideoPosition - 1); } Any ideas? Eric -- To view more about The Artwork of Eric Walton 9 / Edub9 please go to the following address: www.hollywoodfineart.com www.myspace.com/ericwalton9_edub9 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] flash button not working in firefox when over an iframe
I've got this problem for the last couple days and could not figure out why. The problem is when I have an iframe underneath a swf file, and any flash buttons over the iframe area not working at all. And this problem only occurs in FF. You can download the sample bug here: www.actionscriptor.com/temp/iFrameFF.zip Any idea? Thanks. Dominic ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Letting go of AS2 for AS3
Okay im in the middle of reading AS3 Cookbook, and Essential AS3. And i'm having some trouble grasping the concept of the main class file {as in the root package for the program you are constructing}, both books talk about this. But are they talking about constructing applications using MTASC/mxmlc compilers or is there a way using the Flash 9 IDE to create a main class file that the IDE needs to look for. I know u can write code on the timeline, of course, but just wondering if there some other way which they are elluding to, and me being slow am just not gettin'... Thanks! Lori- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Letting go of AS2 for AS3
In the Flash 9 Public Alpha, it's under Publish Settings Flash ActionScript Settings Document class ― Mike Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Lori Hutchek Sent: Tuesday, November 14, 2006 11:24 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Letting go of AS2 for AS3 Okay im in the middle of reading AS3 Cookbook, and Essential AS3. And i'm having some trouble grasping the concept of the main class file {as in the root package for the program you are constructing}, both books talk about this. But are they talking about constructing applications using MTASC/mxmlc compilers or is there a way using the Flash 9 IDE to create a main class file that the IDE needs to look for. I know u can write code on the timeline, of course, but just wondering if there some other way which they are elluding to, and me being slow am just not gettin'... Thanks! Lori- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Letting go of AS2 for AS3
Is Essential AS3 book out yet? I cant see it on Amazon.co.uk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lori Hutchek Sent: 14 November 2006 19:24 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Letting go of AS2 for AS3 Okay im in the middle of reading AS3 Cookbook, and Essential AS3. And i'm having some trouble grasping the concept of the main class file {as in the root package for the program you are constructing}, both books talk about this. But are they talking about constructing applications using MTASC/mxmlc compilers or is there a way using the Flash 9 IDE to create a main class file that the IDE needs to look for. I know u can write code on the timeline, of course, but just wondering if there some other way which they are elluding to, and me being slow am just not gettin'... Thanks! Lori- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Letting go of AS2 for AS3
Rough cuts are available, http://www.moock.org/blog/archives/000203.html regards, - ji\m/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Steven Sent: Tuesday, November 14, 2006 2:00 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Letting go of AS2 for AS3 Is Essential AS3 book out yet? I cant see it on Amazon.co.uk ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Letting go of AS2 for AS3
In the Flash 9 Public Alpha, it's under Publish Settings Flash ActionScript Settings Document class Or if you have nothing selected it's in the properties panel Or you can use Flash Develop or Flex Builder 2. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Letting go of AS2 for AS3
The rough cuts version is definitely worth the purchase, its only like 6 chapters but so much better written then the cookbook. Especially the Display API chapter in essential. From: Paul Steven [EMAIL PROTECTED] Sent: Tuesday, November 14, 2006 3:01 PM To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Letting go of AS2 for AS3 Is Essential AS3 book out yet? I cant see it on Amazon.co.uk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lori Hutchek Sent: 14 November 2006 19:24 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Letting go of AS2 for AS3 Okay im in the middle of reading AS3 Cookbook, and Essential AS3. And i'm having some trouble grasping the concept of the main class file {as in the root package for the program you are constructing}, both books talk about this. But are they talking about constructing applications using MTASC/mxmlc compilers or is there a way using the Flash 9 IDE to create a main class file that the IDE needs to look for. I know u can write code on the timeline, of course, but just wondering if there some other way which they are elluding to, and me being slow am just not gettin'... Thanks! Lori- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Complex objects in a DataProvider
I'm about to go ape over this, and strongly suspect I'm missing an easy fix. I have an Array of complex objects which I want to display in a DataGrid. I assign the array to the DataGrid's dataProvider. As expected, the properties of the complex objects appear in the DataGrid. However, what I want is to be able to see the results of certain method calls on the objects in my dataProvider. Is there some way to accomplish this feat without going berserk? -Mark -- John Mark Hawley The Nilbog Group 773.968.4980 (cell) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Complex objects in a DataProvider
JMH However, what I want is to be able to see the results of certain JMH method calls on the objects in my dataProvider. Is there some way JMH to accomplish this feat without going berserk? Why don't you use getter properties in your objects or DataGridColumn.labelFunction? Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Remoting bytesLoaded/bytesTotal
How big can be a resulset if you didn't do the query, or open a file or wherever you do on the server side? You can show a indeterminate progress bar. When result come back remove It. On 11/13/06, Yehia Shouman [EMAIL PROTECTED] wrote: If there's a way for the server people to add a content header with content length, it might work On 11/13/06, Janis Radins [EMAIL PROTECTED] wrote: hye ppl! I'm in a situation that remoting calls get slow at some point for users with slow connection, hence client asked for loading progress display. As far as i know there is no sutch thing as bytesLoaded /total for remoting calls, I just serched help docs and that only confirmed that. I just would like to know if anyone have hacked/found the way to do that for AS2 and remoting calls or confirmation that it is impossible. tnx in advance jānis ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 -- l u c h y x r i a e v o l u t i o n (r) [EMAIL PROTECTED] http://www.riaevolution.com Phone: +54 (11) 4931-7006 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] upcasting causes overridden superclasses methods to be called
I assume this is AS3 in Flash AS3 preview? I tried your example code and it worked as expected, even when I instantiated Subclass by a variable reference to the class. I have a feeling you have made some mistake in your code... if not, could you send a complete example, that we can just paste into a file and run? Peter On 11/14/06, Matt Garland [EMAIL PROTECTED] wrote: I was hunting a bug when I found this out: class SuperClass { public function init() { trace (superclass init); } } class SubClass extends SuperClass{ public override function init(){ trace (subclass init); } } if you create a subclass instances and cast it (or type its variable) to the superclass, when init is invoked, the superclass init is called. var aInstance:SuperClass=new SubClass(); aInstance.init();//superclass init Makes senses, now how about a way around this? I want to make sure the instance's OWN init() is called. Here's the context: I'm upcasting in a button factory class, when SubClass is a variable: public function ButtonFactory(graphicsFactory:graphicFactory, buttonClass:Class) { //the compiler won't let me cast to an unknown class, so //since I know buttonClass is a descendent of BaseButton, which has all the relevant graphics-setting methods, I upcast it //buttonClass--BaseButton aButton:BaseButton=new buttonClass() //the graphics settings methods are in BaseButton, so I'm fine to build up the graphics aButton.disabledState=graphicsFactory.makeDisabledState() //but this calls BaseButton.init(), not buttonClass.init() aButton.init() } Thanks matt ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Strange XML problems
Hi, 1. I have a main flash file which loads external SWF's when a particular tab is clicked on. This main file is embedded in an HTML page. All the data is coming through the XML file, including the fields that need to be populated in the SWF's loaded externally. 2. I've assigned a global variable that allows the external SWF's access to it. 3. It works perfectly in the flash IDE. 4. It works fine in firefox the first few times and then just returns 'undefined' for the variables that need to be populated, in SWF's loaded externally into the main file. I've been struggling with this issue since morning and can't for the life of me figure out what the problem is or what I'm doing wrong. I've changed folder structures, manipulated code...I'm so frustrated! Please help me :( Thanks, Bruce. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Select area in plot and pass selection to function
Hi, I'm trying to have flash plot some data and then allow the user to select an area in the plot, press a button corresponding to some function, and then pass the user selected coordinates to that function.I'd like the selection to be done much like a rectangular select box in standard windows programs. In my case, I only care about the x coordinates. I'm currently drawing the plot using moveTo and fill. Can anyone recommend an approach or point me to some sample code? I'm new to flash, and I've already hit a brick wall. I'd really appreciate any help. Thanks! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] HELP!!! Eventdispatcher and firefox bug????
I've come across something for the first time... at first I thought it was my code but... My application loads xml, then dispatches a build event to another class which attaches clips from my library. The application ALWAYS works if i launch the swf directly. The application also ALWYAS works if I launch using a browser, but ONLY IE!!! If I use Firefox(I'm using version 1.50.8). and have FP v 9.016 installed..it sometimes works (I can't give a percentage)...but what usually happens is I can trace right up to my 'build' method in the class receving the 'build' event and then nothing!! Clearing the cache DOES NOT HELP! The build method doesnt get called! Again...this is only an issue in Firefox PLEASE HELP! arghh! [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
Re: [Flashcoders] Best hardware for Flash
i'm very interest in this , i want to detailed understand this!!! 赵洪日 2006-11-15 发件人: Joe Cutting 发送时间: 2006-11-14 18:59:55 收件人: flashcoders@chattyfig.figleaf.com 抄送: 主题: [Flashcoders] Best hardware for Flash Hello, I'm looking into specifying hardware for running Flash projector based kiosks. The aim is to get the best possible Flash performance while avoiding spending money on technology that isn't going to make any difference. Given that the usual performance benchmarks don't really apply to Flash I was wondering if anyone had any particular insight or had done any tests. At the moment I've been working on the following vague assumptions based on my experience and reading of various reviews. Processor speed is important, but the type of processor is as well. Roughly speaking, Pentium Ds are the slowest per Hz, Athlons and Pentium M's are next followed by Core 2's which are the fastest. Dual processors or more may give you a slight increase due to the system using the other processor for operating system tasks but this isn't going to be much more than 10% because Flash isn't multi threaded. Similarly 64 bit systems may increase speed a bit as the operating system may get a bit of an advantage but this isn't going to be much as neither standard Windows nor Flash is 64 bit (yet). On board memory chips usually use a shared memory architecture which uses the system memory for graphics. This seems substantially slower than graphics cards with their own dedicated video RAM. However, given that Flash doesn't use 3D engines its not really worth shelling out a lot for a really high spec card. However adding a mid range graphics card can improve performance. At the moment I'm using nVidia because the drivers that come with their cards seem to be the most reliable. Unless your project is really huge you're not going to need much memory over 1Gb or a particularly large or fast hard drive because most Flash projects can loaded into the memory at start. I'd be interested if anyone can add to these thoughts or has information that contradicts them. Best wishes Joe Joe Cutting Computer exhibits and installations www.joecutting.com The Fishergate Centre, 4 Fishergate, York, YO10 4FB 01904 624681 As of 30th October 2006 I have a new office so please note my new address and phone number ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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!!! Eventdispatcher and firefox bug????
Ot sounds like it has to do with asynchronous events happening in different orders. Try this--when the XML loads, set a loaded flag on the dispatcher to true and then dispatch a load event. Your listeners should: 1) Check if loaded is true. 2) If so, proceed. 3) If not, listen for the load event. I'll bet what's happening now is that your listeners don't start listening until after the XML has already been loaded--hence they never receive the event. (That said, I could be way off.) ― Mike Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, November 14, 2006 6:00 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] HELP!!! Eventdispatcher and firefox bug I've come across something for the first time... at first I thought it was my code but... My application loads xml, then dispatches a build event to another class which attaches clips from my library. The application ALWAYS works if i launch the swf directly. The application also ALWYAS works if I launch using a browser, but ONLY IE!!! If I use Firefox(I'm using version 1.50.8). and have FP v 9.016 installed..it sometimes works (I can't give a percentage)...but what usually happens is I can trace right up to my 'build' method in the class receving the 'build' event and then nothing!! Clearing the cache DOES NOT HELP! The build method doesnt get called! Again...this is only an issue in Firefox PLEASE HELP! arghh! [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
Re: [Flashcoders] HELP!!! Eventdispatcher and firefox bug????
I've run into something similar where events fire differently in different circumstances. In my case it was the sound.load event, and the problem was I was calling .load just before adding the listener. Switching it to add the listener before calling load (which is the more sensible way of course) fixed it right up. -josh On Nov 14, 2006, at 6:47p, Mike Keesey wrote: Ot sounds like it has to do with asynchronous events happening in different orders. Try this--when the XML loads, set a loaded flag on the dispatcher to true and then dispatch a load event. Your listeners should: 1) Check if loaded is true. 2) If so, proceed. 3) If not, listen for the load event. I'll bet what's happening now is that your listeners don't start listening until after the XML has already been loaded--hence they never receive the event. (That said, I could be way off.) ― Mike Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, November 14, 2006 6:00 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] HELP!!! Eventdispatcher and firefox bug I've come across something for the first time... at first I thought it was my code but... My application loads xml, then dispatches a build event to another class which attaches clips from my library. The application ALWAYS works if i launch the swf directly. The application also ALWYAS works if I launch using a browser, but ONLY IE!!! If I use Firefox(I'm using version 1.50.8). and have FP v 9.016 installed..it sometimes works (I can't give a percentage)...but what usually happens is I can trace right up to my 'build' method in the class receving the 'build' event and then nothing!! Clearing the cache DOES NOT HELP! The build method doesnt get called! Again...this is only an issue in Firefox PLEASE HELP! arghh! [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@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] RE:upcasting
Whoops! I didn't actually run this test code, just abstracted from my problem and spat it out. I guess my buttons are not instantiated like I thought they were. I'll take another look. Thanks JC--override must be applied to any protected or public method that is overridden in a subclass, in AS3. Hi, running your example shows: subclass init, as it should. public override function init(){ trace (subclass init); } whats the override keyword doing there? greetz JC On 11/14/06, Matt Garland [EMAIL PROTECTED] wrote: I was hunting a bug when I found this out: class SuperClass { public function init() { trace (superclass init); } } class SubClass extends SuperClass{ public override function init(){ trace (subclass init); } } if you create a subclass instances and cast it (or type its variable) to the superclass, when init is invoked, the superclass init is called. var aInstance:SuperClass=new SubClass(); aInstance.init();//superclass init Makes senses, now how about a way around this? I want to make sure the instance's OWN init() is called. Here's the context: I'm upcasting in a button factory class, when SubClass is a variable: public function ButtonFactory(graphicsFactory:graphicFactory, buttonClass:Class) { //the compiler won't let me cast to an unknown class, so //since I know buttonClass is a descendent of BaseButton, which has all the relevant graphics-setting methods, I upcast it //buttonClass--BaseButton aButton:BaseButton=new buttonClass() //the graphics settings methods are in BaseButton, so I'm fine to build up the graphics aButton.disabledState=graphicsFactory.makeDisabledState() //but this calls BaseButton.init(), not buttonClass.init() aButton.init() } ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] hi-lighting an item in the list component won't work for me.
Hi all, I am trying to dynamically set a particular item in the list component, but it does not seem to work at all. Here's what I'm using: songList_lb.selectedIndex = myTrack_Pos+1; songList_lb.dispatchEvent({type:change, target:songList_lb}); Any ideas? Thanks! -- Carl Welch http://www.carlwelch.com [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
Re: [Flashcoders] Weird movie corruption
ive found that when i use ExternalInterface to call a JS alert, that my movie will often hang. I get the JS alert like i should, no JS errorsit just locks up the swf. without having the time to dig deeper, i found a quick fix, and called the alert with a setTimeout, like this: ExternalInterface.call(setTimeout, alert('+someAlertString+'), 50); if i remember correctly, though, it was kinda picky about how i passed that 2nd param. i may have concatenated that 2nd param in a string on the line before and passed that string, or i may have passed the alert string as a 4th param.i dont remember. i do remember that calling alert through setTimeout solved the problem though. On 11/14/06, Chris Akins [EMAIL PROTECTED] wrote: Greetings, all. I've been working on an interactive quiz for a while now, and it's working correctly, except that some parts of it break after making a call to any JavaScript function. I've been trying fruitlessly to debug this for a small eternity now, and I've finally run out of ideas. Could someone try to reproduce this effect? I've been able to reproduce the bug (?) with the following setup: The components are a button symbol and three movie clips. One movie clip has three frames with a static graphic on each frame; each frame has a stop() statement on it, and nothing else. Attached to it at the root level is onClipEvent(enterFrame){ this._x=_root._xmouse; this._y=_root._ymouse; } This clip should be named 'pointer', and reside alone on the top layer. The second movie clip has the following code attached to it: onClipEvent(load){ onRollOver=function(){ Mouse.hide(); _root.pointer.gotoAndPlay(2); } onRollOut=function(){ Mouse.show(); _root.pointer.gotoAndPlay(1); } } The third and final movie clip has the same code attached to it, save that its onRollOver send the pointer clip to frame 3, rather than frame 2. The button has the following code attached to it: on(release){ flash.external.ExternalInterface.call(alert, alert called); } After clicking the button and thereby making the JS call, the pointer clip stops following the system mouse movements. I've seen this behavior using both fscommand and ExternalInterface, exporting for Flash Player 6 and 8. The consistency makes me believe either that it's a bug in the way that Flash handles calls to JavaScript, or that it's a really really basic error in my AS. Many Thanks, Chris Akins ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- John Van Horn [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] displaying in html text field
I have a textfield with html turned on. There is a case where I need to actually show a less than () sign in the text field itself... but assigning it dynamically just hides anything after the ... any ideas? example: var text:String = 1 2; this.tfTest.htmlText = text; this will only display 1 -- - Alan Queen ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] displaying in html text field
You need to use : var text:String = '1 lt; 2' this.tfTest.htmlText = text; lt; stands for gt; stands for Alan Queen [EMAIL PROTECTED] wrote: I have a textfield with html turned on. There is a case where I need to actually show a less than () sign in the text field itself... but assigning it dynamically just hides anything after the ... any ideas? example: var text:String = 1 2; this.tfTest.htmlText = text; this will only display 1 -- - Alan Queen ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com - Sponsored Link Mortgage rates near 39yr lows. $310,000 Mortgage for $999/mo - Calculate new house payment ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com