[Flashcoders] fms videostream thumbnails
What is the best setup to export a small set of thumbnails of a flash media server recorded stream ? The idea is content moderation, and therefore I need 2 or 3 snapshots of what the client recorded and the stream that got archived. Has FMS that functionality serverside or do I have to create bmp snaps on the client and upload them ? Has anybody has some illustrative FMS code ? Thanks, Latcho ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Trouble with é
Did you embed the font and the basic latin chars? On 4/2/2011 1:02 AM, Creighton, Gerry wrote: So I’m trying to place a textField at the end of a title by getting the bounds of the last character in the title string BUT This is all dynamic and there is one title that has “ é” as the last character. Flash doesn’t like this. How can I get the following code to work in this instance? I’m pulling what’s left of my hair out. I tried escaping and unescaping but no go. code var charI:String = String(_albumTitle.charAt(_albumTitle.length-1)); var charInt:int = _albumTitle.indexOf(charI); var frame:Rectangle = _albumTF.getCharBoundaries(charInt); //_releaseDateTF is the textField I’m positioning at the end of the title which also may wrap to a second line //so I can’t just get the width of the textField to place my _releaseDateTF _releaseDateTF.x = (frame.x+frame.width)+4;//get last character position _releaseDateTF.y = frame.y+1;//get last character position /code Thanks, -Gerry ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Automatic quality toggle
I hate super heavy cpu supersucker vector animations online, I prefer streaming video :) And vector animations compress way nicer to video as photographic content does. I think it is simple to write a tool that onenterframe captures any (swf-loaded) animation frame to a bitmap, which you can save with AIR as a jpg or png. Easy to combine this jpg's to an mjpeg video stream in any reasonable videopackage or with ffmpeg ( http://www.ffmpeg.org/faq.html#SEC14 ). On 2/26/2011 11:10 AM, Henrik Andersson wrote: Christoffer Enedahl skriver: It sounds like it's time to encode the flash animation to video. For some of the cases, yeah. You are right in that encoding to video would solve the issue for local playback. Give me a shout when you find a tool that actually can do it properly. But it is not acceptable for online distribution. I myself hate people uploading video encodings of their vector animations. It's needlessly big files and the quality just isn't as good as the source material. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re: Video player fullscreening/quality
Can help you out. I'm all in video. Wrote the Adidas player. for ex. http://www.adidas.com/nl/basketball/?cm_nav=cm_exnv PM me if you like: zetm...@gmail.com Cheers, Latcho Aka Stijn De Ryck On 2/18/2011 11:04 PM, Karl DeSaulniers wrote: And the videos, so I can test :) On Feb 18, 2011, at 3:43 PM, Karl DeSaulniers wrote: Hi J, I'll take a stab at it. Can you send me a fla with just your video page and code in it? LMK, Best, Karl On Feb 18, 2011, at 1:30 PM, J.C. Berry wrote: I am willing to pay a few hundred for successful rewriting of this. On Thu, Feb 17, 2011 at 10:05 AM, J.C. Berry jcharlesbe...@gmail.comwrote: Correction - below in bold On Thu, Feb 17, 2011 at 9:57 AM, J.C. Berry jcharlesbe...@gmail.comwrote: Hello all, I am willing to pay for successful help with this. I am working on a Video player for our Brightcove videos and am having a problem. If I specify the height and width of the video then the initial presentation is fine, but the fullscreen resolution is bad, as is the presentation of the player upon returning to non-fullscreen view. However, if I do not specify the height and width then the player first appears with dimensions around 1.5x1.5 inches or so, but then on fullscreening the resolution looks fine, *but the presentation of the player upon returning to non-fullscreen view still shows the 1.5x1.5 player*. You can see an under construction version here: http://www.mindarc.com/staging/simple_flash.htmlhttp://www.mindarc.com/staging/simple_flash2.html Some fullscreening code that I have been attempting to use here. private function onStageResize(event:Event):void { if (stage.displayState == StageDisplayState.FULL_SCREEN) { originalParent = player.parent; originalIndex = originalParent.getChildIndex(player); originalX = player.x; originalY = player.y; stage.addChild(player); //stage.scaleMode = StageScaleMode.NO_SCALE; //stage.align = StageAlign.TOP_LEFT; //stage.fullScreenSourceRect = new Rectangle(20,110,1280,800); player.x = 0; player.y = 0; //player.width = 588; //player.height = 410; isFullScreen = true; } else if (isFullScreen){//back to reg view //stage.scaleMode = StageScaleMode.NO_SCALE; //stage.align = StageAlign.TOP_LEFT; originalParent.addChildAt(player, originalIndex); //player.width = 478; //player.height = 269; player.x = originalX; player.y = originalY; isFullScreen = false; //stage.fullScreenSourceRect = new Rectangle(0,110,588,410); //stage.fullScreenSourceRect = new Rectangle(0,97,478,269); } } Thanks much in advance. -- J.C. Berry, M.A. UI Developer 619.306.1712619.306.1712(m) jcharlesbe...@gmail.com portfolio: http://Client:maz...@www.mindarc.com This E-mail is covered by the Electronic Communications Privacy Act, 18 U.S.C. ?? 2510-2521 and is legally privileged. This information is confidential information and is intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. -- J.C. Berry, M.A. UI Developer 619.306.1712(m) jcharlesbe...@gmail.com portfolio: http://Client:maz...@www.mindarc.com This E-mail is covered by the Electronic Communications Privacy Act, 18 U.S.C. ?? 2510-2521 and is legally privileged. This information is confidential information and is intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. -- J.C. Berry, M.A. UI Developer 619.306.1712(m) jcharlesbe...@gmail.com portfolio: http://Client:maz...@www.mindarc.com This E-mail is covered by the Electronic
Re: [Flashcoders] OTish MP3 files for a piano scale
free 52 and 68 notes pack (on top of the the 1st sample pack page you can download as pack) http://www.freesound.org/packsViewSingle.php?id=621start=0 http://www.freesound.org/packsViewSingle.php?id=2489 enjoy, Latcho On 2/8/2011 12:40 AM, Paul Andrews wrote: Thanks guys. This doesn't have to be a particularly accurate thing - I just want it to sound something like a piano. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Creating FLV from bitmapdata frames
nope. this is it. zip, upload and do something funky serverside :) On 2/5/2011 12:19 AM, Patrick Matte wrote: Hi there, I found this class which exports an FLV from BitmapData frames. http://www.zeropointnine.com/blog/simpleflvwriteras-as3-class-to-create-flvs/ Unfortunately, it doesn't support audio. Anyone knows of a similar class that supports audio? This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is privileged, confidential and/or otherwise protected from disclosure. Dissemination, distribution or copying of this e-mail or the information herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is strictly prohibited. All contents are the copyright property of TBWA Worldwide, its agencies or a client of such agencies. If you are not the intended recipient, you are nevertheless bound to respect the worldwide legal rights of TBWA Worldwide, its agencies and its clients. We require that unintended recipients delete the e-mail and destroy all electronic copies in their system, retaining no copies in any media.If you have received this e-mail in error, please immediately notify us via e-mail to disclai...@tbwaworld.com. We appreciate your cooperation. We make no warranties as to the accuracy or completeness of this e-mail and accept no liability for its content or use. Any opinions expressed in this e-mail are those of the author and do not necessarily reflect the opinions of TBWA Worldwide or any of its agencies or affiliates. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] [Job] Activescript 3 development
Oh didn't know version Activescript 3 was already released. Ahhh the technological singularity, still can't digest it... Latcho On 2/1/2011 6:06 PM, Leandro Ferreira wrote: http://www.nusphere.com/kb/phpmanual/install.windows.activescript.htm * * * @leandroferreira* * 55 61 91151257* On Tue, Feb 1, 2011 at 14:58, Merrill, Jason jason.merr...@bankofamerica.com wrote: Just curious, what's Activescript? Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of lists...@fo.com Sent: Tuesday, February 01, 2011 11:56 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] [Job] Activescript 3 development [Job] Activescript 3 development: Looking for an additional off-site freelancer to the west (Downingtown, Exton, Malvern, West Chester) of Philadelphia. Straight AS3, non-timeline, part-time AIR/FLASH development. If interested, please email me off-list with resume | cv | portfolio and off-site rate requirements. Thank you, ~Bill ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses. References to Sender are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link: http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you consent to the foregoing. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] error 2101 urlvariables decode
I checked your flashcode on pastebin make sure the object where you assign your variables in ( the one you named _var) is of the type UrlVariables. I can't see wether that is the case in your code but I suspect not. *var _var= new UrlVariables()* _var.fieldX = inputX.text _var.fieldY = inputY.text _ldr.dataFormat = URLLoaderDataFormat.VARIABLES; _req.method = URLRequestMethod.POST; _req.data = _var; On 1/19/2011 11:55 AM, Karl DeSaulniers wrote: No problem. GL. Karl On Jan 19, 2011, at 4:38 AM, David Hunter wrote: Thanks for the links Karl, my server is running PHP 5.2.16 and their server is running PHP 5.2.5 . So I'll be giving their hosting company call to see what the problem could be. Thanks for all your help. Much appreciated. From: k...@designdrumm.com Subject: Re: [Flashcoders] error 2101 urlvariables decode Date: Wed, 19 Jan 2011 03:58:17 -0600 To: flashcoders@chattyfig.figleaf.com Hi David, Do you know if there was any server upgrade or re-structuring/fix that had happen? It could be that a default php.ini setting had be re-issued when an upgrade or fix was done on the server. You can look into your php.ini file and have a look at the sending email settings. Find your PHP.ini http://www.google.com/search?client=safarirls=enq=php.ini +locationie=UTF-8oe=UTF-8 Email settings for PHP.ini http://www.google.com/search? hl=ensafe=offclient=safarirls=enq=php.ini+email +settingsaq=faqi=g1aql=oq= If this is not your cup of tea, I would contact your hosting companies IT and have a chat. :) Best, Karl On Jan 19, 2011, at 3:46 AM, David Hunter wrote: Thanks Karl, I have downloaded your file and will have a look at it. Having tried two other form examples I found online with still the same Error #2101 results, I moved the PHP to my server and it works fine. So Karl, you may be right that it is something to do with the PHP version or a glitch with the server. Very confusing. From: k...@designdrumm.com Subject: Re: [Flashcoders] error 2101 urlvariables decode Date: Wed, 19 Jan 2011 02:29:18 -0600 To: flashcoders@chattyfig.figleaf.com Oh yeah. Sry. Here you go. http://designdrumm.com/sendmail_gen.zip Karl On Jan 19, 2011, at 2:23 AM, David Hunter wrote: Thanks Karl, can't seem to download the file, it just opens a String of gobbeldy-gook in a new browser window. Can you put the php file inside a zipped folder and lose the .php.zip so its only .zip in the url? I will look into the headers, thanks for that tip. Cheers From: k...@designdrumm.com Subject: Re: [Flashcoders] error 2101 urlvariables decode Date: Wed, 19 Jan 2011 00:25:16 -0600 To: flashcoders@chattyfig.figleaf.com Hi David, I am not sure about your mailer, as I am an old AS2 head. lol But I have a sendmail_generic php script you could try to see if it works over yours. It is set up to work with flash and html alike. Instructions are in the comments in the script. http://designdrumm.com/sendmail_gen.php.zip FYI, I have used this for years and it still works with Flash 10. I have a feeling in your php script, you need to set more headers to send with, like X-Mailer parameters. HTH, Karl On Jan 18, 2011, at 7:23 PM, David Hunter wrote: Thanks for the response Karl. the php version is 5.2.5 and I don't think it changed recently. It seems lots of people are reporting this problem with CS4/CS5 and FP10. none of the solutions on google seem to be helping. I have tried encoding the URLLoader.data as variables and as text, on the php side i have tried echoing sentOk= .sentOk, sentOk=, ?sentOk=, sentOk=true, success. Either an #2101 error is pulled when using variables, when using text no error occurs but the php doesn't send the email. Has anyone run into this problem? Or has an example of sending and returning vars with a php script that they know works in CS5 with AS3 for comparison. This is doing my head in!!! Thanks in advance From: k...@designdrumm.com To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] error 2101 urlvariables decode Date: Tue, 18 Jan 2011 13:35:22 -0600 CC: flashcoders@chattyfig.figleaf.com What version of php was that file made for and what version of php do you have on the server? or better yet, did they upgrade the php on your server to a newer version. that may make an old php file not send anymore. JAT Karl Sent from my iPhone On Jan 18, 2011, at 8:01 AM, David Hunter davehunte...@hotmail.com wrote: Happy New Year everyone! Recently updated a site that has a registration form which is now throwing an error. I didn't change anything to do with the form. It now throws an error #2101: The String passed to URLVariables.decode () must be a URL-encoded query string containing name/value pairs. I've looked on google and there seems to be some conflict whether it is a problem with the flash side or PHP side. I know that this has only occurred since updating another section of the site. I am now using CS5 but I was previously on CS3. I have tried changing my
Re: [Flashcoders] test
Hey guys ! You are indeed the last flashers breed on earth :) Including me. forever ;) On 1/11/2011 7:06 PM, Merrill, Jason wrote: Could be a sign of list maturity. As the list audience grows in skill set, people have to ask fewer questions until we reach a point where the list has served its ultimate purpose and fulfilled its destiny and can move on to a higher plane, kind of like Yoda. Perhaps we're all gurus now. :) Or, could just be that the global economy still sucks and fewer of us have jobs. Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mendelsohn, Michael Sent: Tuesday, January 11, 2011 12:37 PM To: Flash Coders List Subject: RE: [Flashcoders] test Good one Kerry! That's because we don't have Flash is dead threads. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses. References to Sender are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link: http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you consent to the foregoing. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] swf compressing
I'm looking for ways w/o opening the fla... lazy :) On 10-06-10 22:15, Nathan Mynarcik wrote: Think there might be some JSFL files that will compress the all the images in the FLA. Just will have to open each FLA and then run it. Nathan Mynarcik nat...@mynarcik.com 254.749.2525 www.mynarcik.com On Thu, Jun 10, 2010 at 3:48 PM, Latchospamtha...@gmail.com wrote: Hi friends, I have a bunch of AS2 / flash 8 swf files that are on a cdrom. The swf's were never intended for web use, but now the client wants a web version. The swf's contain gazzilions of uncompressed images. Is there a hacky shortcut / way to compress the images within the swf's without reopening / altering the fla projects ? I know I can google, but I love to here or the tools you used succesfull. I'm on windows. Cheers, Latcho ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] swf compressing
Hi friends, I have a bunch of AS2 / flash 8 swf files that are on a cdrom. The swf's were never intended for web use, but now the client wants a web version. The swf's contain gazzilions of uncompressed images. Is there a hacky shortcut / way to compress the images within the swf's without reopening / altering the fla projects ? I know I can google, but I love to here or the tools you used succesfull. I'm on windows. Cheers, Latcho ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FDT4 or Flash Builder 4
can I addin to this: FlashDevelop 3.1.1 has a profiler now too, simple but yet effective. Also their debugger took off finally. The only thing I miss on FD is SVN integration. But in regard of setting-up-the-ultimate-flash-development-environment article which takes half a day to install I guess, I'm up and running in 5 mins on a new machine by downloading the SDK and FD. Click'nPlay. Latcho. On 19-05-10 17:20, Eric E. Dolecki wrote: It pairs nicely with Flash CS5... do your UI stuff in the IDE and have the project live in FB4. It's a workflow with document class that I've been banging on for a while and I personally like it a lot. The Flex stuff is a bonus. Eric On Wed, May 19, 2010 at 11:05 AM, Tom Goodingt...@quickthinkmedia.co.ukwrote: Thanks - not sure I can justify buying both though - is the only unique feature to Flash Builder the ability to do Wysiwyg layouts on Flex forms? On 19 May 2010, at 14:22, John McCormack wrote: Hi Tom, Has anyone used both in conjunction? This setup of FDT with FB looks promising - I will be trying it next week: http://blog.hexagonstar.com/setting-up-the-ultimate-flash-development-environment/ John On 19/05/2010 10:52, Tom Gooding wrote: I am about to invest in a few desks worth of AS3 IDEs (we have both straight Flash projects and future requirements for Flex applications). I currently use FDT and am pretty happy with it (though not used it for MXML) - my main gripe being the absence of the Flash Builder profiling features - I see FDT is introducing this and has a Beta available which looks good (possibly better than FlashBuilder). Has anyone been through any kind of evaluation/comparison? Has anyone used both in conjunction? Any steer would be appreciated... What say the masses? Cheers, Tom ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[SPAM] Re: [Flashcoders] tint a movieclip
Spam detection software, running on the system he01.virtec.org, has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: codewise this offers you all the info and possibilities: http://www.adobe.com/devnet/flash/articles/matrix_transformations.html On 20-05-10 2:42, Juan Pablo Califano wrote: To apply in code the same transform you set at author time in the IDE: var colTransf:ColorTransform = mc.transform.colorTransform; colTransf.redMultiplier = -0.18; colTransf.greenMultiplier = -0.42; colTransf.blueMultiplier = 0.22; colTransf.alphaMultiplier = 0.26; mc.transform.colorTransform = colTransf; The left values in the panel are the multipliers (one for each channel). There's a difference: in code the values are expressed as normal value in the range 0-1 (whereas in the IDE it's represented as a percetage, 0 - 100). So the above code will have the same effect as setting the left values to -18%, -42%, 22% and 26%. If you want to change the values in the right of the panel through code, set the offsets instead (the properties redOffset, greenOffset, etc in the ColorTransform object). They are expressed in the same units both in code and the IDE. Cheers Juan Pablo Califano 2010/5/19 Mendelsohn, Michaelmichael.mendels...@fmglobal.comHi list... This is probably a bitwise question, which is why I'm posting. I have a grayscale movieclip and I want to give it a particular hue based on a hex value. I don't want it to be tint, where it approaches being a solid color, but rather like watercolors. Additionally, I know that the left side values of the Advanced color pallet does this, and the right side values are for tinting. I'm just not sure at the moment how to do that through code. Thanks if anyone knows! - Michael M.Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders [...] Content analysis details: (7.2 points, 5.5 required) pts rule name description -- -- 1.7 RATWARE_GECKO_BUILDBulk email fingerprint (Gecko faked) found -0.2 BAYES_40 BODY: Bayesian spam probability is 20 to 40% [score: 0.2520] 2.0 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address [195.240.16.75 listed in dnsbl.sorbs.net] 1.7 DNS_FROM_RFC_POST RBL: Envelope sender in postmaster.rfc-ignorant.org 2.0 RCVD_IN_PBLRBL: Received via a relay in Spamhaus PBL [195.240.16.75 listed in zen.spamhaus.org] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Changing Values Programmatically
- build in some traces - I won't dive in your code sice it has a weird structure and a lot of if else cases that can go wrong easily; - work with states. - You might want to make a clear reset(state:String) function that resets all back to a certain state before starting again. But maybe start checking on the alpha and also if it is staged. trace(XXXContainer.alpha, XXXContainer.stage,XXXContainer.visible) Also make sure your Tweens don't overwrite each one another. OverwriteManager.init(OverwriteManager.AUTO) Ciao, Latcho On 17-05-10 18:28, jonathan howe wrote: Tha'ts a lot of code for email. Any way you can isolate the problem for us? -jonathan On Sat, May 15, 2010 at 1:36 PM, John Singleton johnsingleton...@yahoo.comwrote: Full View Hi; I have the following code. When it runs through BigContainer the second time, for some reason my containers disappear and nothing shows on the screen. This happens even if I take out my removeChild statements, and that's what's got me puzzled. Ideas? var start_flag:Boolean = true; var start_flag2:Boolean = true; function BigContainer() { if(start_flag == false) { start_flag2 = false; } if(start_flag == true) { LoadImages(); start_flag = false; } else { if(i == 4) { i = 1; } else if(i == 3) { j = 1; } var timeline:TimelineLite = new TimelineLite({onComplete:LoadImages()}); timeline.append(new TweenLite(container_left, 3, {alpha: 1})); } } function LoadImages() { LoadLeft(); } function LoadLeft():void { if(start_flag == true) { container_left = new Sprite(); } else { big_container.removeChild(container_left); container_left = container_left2; } big_container.addChild(container_left) var path:String = images/left + i + .png; var req:URLRequest = new URLRequest(path); var loader:Loader = new Loader(); loader.load(req); loader.addEventListener(IOErrorEvent.IO_ERROR, function(e:IOErrorEvent):void{ trace(e) }); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, LoadLeftLoaded); } function LoadLeftLoaded(evt:Event):void { var loaderInfo:LoaderInfo = evt.target as LoaderInfo; var displayObject:DisplayObject = loaderInfo.content; displayObject.width = 319; displayObject.height = 502; big_container.removeChild(container_left2); container_left.addChild(displayObject); if(start_flag2 == true) { container_left.x = 1000; container_left.y = 20; } else { container_left.x = 30; container_left.y = 20; } var timeline:TimelineLite = new TimelineLite({onComplete:SpinLeft}); timeline.append(new TweenLite(container_left, 1, {x:30, y:20})); } function SpinLeft() { big_container.addChild(container_left2) var path:String = images/left + j + .png; var req:URLRequest = new URLRequest(path); var loader:Loader = new Loader(); loader.load(req); loader.addEventListener(IOErrorEvent.IO_ERROR, function(e:IOErrorEvent):void{ trace(e) }); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, SpinLeftLoaded); } function SpinLeftLoaded(evt:Event):void { var loaderInfo:LoaderInfo = evt.target as LoaderInfo; var displayObject:DisplayObject = loaderInfo.content; displayObject.width = 319; displayObject.height = 502; container_left2.addChild(displayObject); container_left2.x = 30; container_left2.y = -482; var rand:Number = new Number(randomNumber(rand_low, rand_high)); var timeline:TimelineLite = new TimelineLite({onComplete: CompleteLeft}); timeline.append(new TweenLite(container_left, rand/100, {alpha: 1})); timeline.append(new TweenLite(container_left, 1, {x:30, y:522})); var timeline2:TimelineLite = new TimelineLite(); timeline2.append(new TweenLite(container_left2, rand/100, {alpha: 1})); timeline2.append(new TweenLite(container_left2, 1, {x:30, y:20})); } function CompleteLeft() { left_done = true; AllDone(); } function AllDone() { if(right_done == true mid_done == true left_done == true) { right_done = false; mid_done = false; left_done = false; i += 1; j += 1
Re: [Flashcoders] ASDoc third party libraries: TEST
Hi Jason, been experimenting. as long you don't have typed TweenLite vars that point to a Tweenlight class and if you copy over the com.greenscok package to a seperate LIB folder (that you can include in your project as a second base classpath node) the SRC folder will compile fine this way: I used this structure to test: +---src | | Main.as | | | \---sub | AvailableClass.as | +---lib | | LibClass.as | | | \---com | \---greensock | | OverwriteManager.as | | TimelineLite.as | | TimelineMax.as | | TweenAlign.as | | TweenLite.as | | TweenMax.as | | TweenNano.as | | | +---plugins where the Main.as class looked like this: package { import flash.display.Sprite; import com.greensock.TweenLite; import LibClass; import sub.AvailableClass; /** * ... * @author Jason Merrill */ public class Main extends Sprite { private var _mySprite:Sprite; private var _availableClass:AvailableClass; /** * Constructor * @param duration the duration of the animation */ public function Main(duration:Number) { TweenLite.to(_mySprite, duration, { x:10, y:10 } ); TweenLite.to(this, duration, { x: -10, y: -10 } ); new LibClass(); } public function get availableClass():AvailableClass { return _availableClass; } public function set availableClass(value:AvailableClass):void { _availableClass = value; } } } I also included a second LibClass as a test. And as long os I didn't include a variable ref like: private var _lib:LibClass; everything went fine, even when using the new LibClass(); My command line and result looked like this: G:\tmp\jasonE:\flex_sdk\v3.2.0.3794\bin\asdoc.exe -doc-sources G:\tmp\jason\src -strict=false -warnings=false Loading configuration file E:\flex_sdk\v3.2.0.3794\frameworks\flex-config.xml Documentation was created in G:\dump\jason\asdoc-output\ Cheers, Latcho On 14-04-10 0:12, Merrill, Jason wrote: Thanks, I've tried that all different ways substituting in com.greensock.TweenLite - no luck. Here is a sample class that imports Greensock's TweenLite class which in tests I cannot get ASDoc to exclude TweenLite. If anyone knows how to get this class documented in ASDoc without compiler errors, I'm all ears. package { import flash.display.Sprite; import com.greensock.TweenLite /** * ... * @author Jason Merrill */ public class Main extends Sprite { private var _mySprite:Sprite; /** * Constructor * @param duration the duration of the animation */ public function Main(duration:Number) { TweenLite.to(_mySprite, duration, {x:10, y:10 } ); } } } Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re:drawrect: get the linestyle drawing inside
Hi Ktu, Thanks for your supportive emails. I'm not a newbie but I thought I might have missed something on the API that wasn't apparent in the as3 docs. It sucks to have it confirmed it isn't supported :) The thing is I want to stay as close to the original api as possible preferably without wrappers (we're not only talking about rects but also curved shapes are possible you see...). Though I'd be happy to see what you're take on it looks like :) Thanks, Latcho On 13-04-10 16:59, Ktu wrote: From my experience, there is no API support for it. It sucks I know. I deal with this problem all the time. For transparency, the beginFill(color:uint, alpha:Number); you can specify alpha. With the system I have shown you, the stroke would be transparent over top of the original color, so a red square with a semi transparent blue border would produce purple as your border. If you want the stroke to be unaffected by the inside square it wouldn't be that hard to write a class to handle that. In fact, I use this so often I think I will do that. I should be able to finish by Thursday at the latest and I'll share when I'm done. If you are eager for it, the idea would be to have build an object, that you would specify dimensions for, and fill color and alpha, and also the border fill and alpha, then when it draws the rectangle, it incorporates the stroke width into consideration so that there are no graphics behind it. Ktu On Tue, Apr 13, 2010 at 7:50 AM, spank man spamtha...@gmail.com mailto:spamtha...@gmail.com wrote: nice and simple sollution, but not so fine if you want the inner to be semi-transparent Other ideas ? So no API support on this ? On Tue, Apr 13, 2010 at 4:11 AM, Ktu ktu_fl...@cataclysmicrewind.com mailto:ktu_fl...@cataclysmicrewind.com wrote: When I want inside borders I do this: var spr:Sprite = new Sprite(); addChild(spr); var g:Graphics = spr.graphics; g.beginFill(0xFF45A3); g.drawRect(0, 0, 100, 100); g.endFill(); drawInsideStroke(g, 0, 0, 100, 100, 1, 0x32010B); function drawInsideStroke(graphics:Graphics, x:int, y:int, width:int, height:int, thickness:int = 1, color:uint = 0x00) { graphics.endFill(); // for good measure, but maybe not? graphics.beginFill(color); graphics.drawRect(x, y, width, height); graphics.drawRect( x + thickness, y + thickness, width - (thickness * 2), height - (thickness * 2) ); graphics.endFill(); } trace(spr.width,spr.height); // - 110 110 trace(spr.getBounds(this)) // - (x=-5, y=-5, w=110, h=110) On Mon, Apr 12, 2010 at 7:14 PM, Latcho spamtha...@gmail.com mailto:spamtha...@gmail.com wrote: Hello, Something i still can't solve is that when drawing for example a rect in a Shape graphics object with a fat lineStyle, the line drawn is always half it's thicknes in the inner part of the rect and half outside; This always gives me headaches when aligning, measuring, skinning or bitmapping stuff since half the line is in the negative x / y coordinate space of the shape.. I know that I can use the getBounds method to get me the accurate negative x and y offset of the (line) graphics, but what I really want is to have the line beign drawn totally within the rect. Is that possible by the default graphics api ? Then please expand on my example. Thanks. Latcho. var spr:Sprite = new Sprite(); addChild(spr); var g:Graphics = spr.graphics; g.lineStyle(10,0xff); g.beginFill(0xff); g.drawRect(0,0,100,100); g.endFill(); trace(spr.width,spr.height); // - 110 110 trace(spr.getBounds(this)) // - (x=-5, y=-5, w=110, h=110) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com mailto:Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re:drawrect: get the linestyle drawing inside
Thanks for thinking out loud :) Can do that too if I need it. But if you ever write something generic I'd love to use / see it because I don't have the time for this now. Personally I wouldn't extend directly on shape but create some static methods like GraphicsInnerStroke.drawRect(myDispObj.graphics, linestyleObject, method arguments ); Cheers, Latcho atm the best thing I can come up with is an object that can recreate the draw methods, assuming that you want a stroke on it. If I am just going to stick with drawRect, drawRoundRect, and drawRoundRectComplex I can do that. Looking into 'drawing' an inner stroke when using lineTo curveTo etc and other draw commands will take a bit more work and time. I kind of feel like it might end up being InnerStroke extends Shape, and creating public methods that are 'override's of the graphics drawing api. Just thoughts out loud. Ktu On Tue, Apr 13, 2010 at 12:09 PM, Latcho spamtha...@gmail.com mailto:spamtha...@gmail.com wrote: Hi Ktu, Thanks for your supportive emails. I'm not a newbie but I thought I might have missed something on the API that wasn't apparent in the as3 docs. It sucks to have it confirmed it isn't supported :) The thing is I want to stay as close to the original api as possible preferably without wrappers (we're not only talking about rects but also curved shapes are possible you see...). Though I'd be happy to see what you're take on it looks like :) Thanks, Latcho On 13-04-10 16:59, Ktu wrote: From my experience, there is no API support for it. It sucks I know. I deal with this problem all the time. For transparency, the beginFill(color:uint, alpha:Number); you can specify alpha. With the system I have shown you, the stroke would be transparent over top of the original color, so a red square with a semi transparent blue border would produce purple as your border. If you want the stroke to be unaffected by the inside square it wouldn't be that hard to write a class to handle that. In fact, I use this so often I think I will do that. I should be able to finish by Thursday at the latest and I'll share when I'm done. If you are eager for it, the idea would be to have build an object, that you would specify dimensions for, and fill color and alpha, and also the border fill and alpha, then when it draws the rectangle, it incorporates the stroke width into consideration so that there are no graphics behind it. Ktu On Tue, Apr 13, 2010 at 7:50 AM, spank man spamtha...@gmail.com mailto:spamtha...@gmail.com mailto:spamtha...@gmail.com mailto:spamtha...@gmail.com wrote: nice and simple sollution, but not so fine if you want the inner to be semi-transparent Other ideas ? So no API support on this ? On Tue, Apr 13, 2010 at 4:11 AM, Ktu ktu_fl...@cataclysmicrewind.com mailto:ktu_fl...@cataclysmicrewind.com mailto:ktu_fl...@cataclysmicrewind.com mailto:ktu_fl...@cataclysmicrewind.com wrote: When I want inside borders I do this: var spr:Sprite = new Sprite(); addChild(spr); var g:Graphics = spr.graphics; g.beginFill(0xFF45A3); g.drawRect(0, 0, 100, 100); g.endFill(); drawInsideStroke(g, 0, 0, 100, 100, 1, 0x32010B); function drawInsideStroke(graphics:Graphics, x:int, y:int, width:int, height:int, thickness:int = 1, color:uint = 0x00) { graphics.endFill(); // for good measure, but maybe not? graphics.beginFill(color); graphics.drawRect(x, y, width, height); graphics.drawRect( x + thickness, y + thickness, width - (thickness * 2), height - (thickness * 2) ); graphics.endFill(); } trace(spr.width,spr.height); // - 110 110 trace(spr.getBounds(this)) // - (x=-5, y=-5, w=110, h=110) On Mon, Apr 12, 2010 at 7:14 PM, Latcho spamtha...@gmail.com mailto:spamtha...@gmail.com mailto:spamtha...@gmail.com mailto:spamtha...@gmail.com wrote: Hello, Something i still can't solve is that when drawing for example a rect in a Shape graphics object with a fat lineStyle, the line drawn is always half it's thicknes in the inner part of the rect and half outside; This always gives me headaches when aligning, measuring, skinning or bitmapping stuff since half the line is in the negative x / y coordinate space of the shape.. I know that I can use the getBounds
[Flashcoders] drawrect: get the linestyle drawing inside
Hello, Something i still can't solve is that when drawing for example a rect in a Shape graphics object with a fat lineStyle, the line drawn is always half it's thicknes in the inner part of the rect and half outside; This always gives me headaches when aligning, measuring, skinning or bitmapping stuff since half the line is in the negative x / y coordinate space of the shape.. I know that I can use the getBounds method to get me the accurate negative x and y offset of the (line) graphics, but what I really want is to have the line beign drawn totally within the rect. Is that possible by the default graphics api ? Then please expand on my example. Thanks. Latcho. var spr:Sprite = new Sprite(); addChild(spr); var g:Graphics = spr.graphics; g.lineStyle(10,0xff); g.beginFill(0xff); g.drawRect(0,0,100,100); g.endFill(); trace(spr.width,spr.height); // - 110 110 trace(spr.getBounds(this)) // - (x=-5, y=-5, w=110, h=110) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] An event when a Sprite's visible changes?
You can just extend sprite and override visible with a custom setter / getter and dispatch your own events there. Latcho Henrik Andersson schreef: Kerry Thompson wrote: Alexander Farber wrote: Is there please an AS3-event broadcasted when a Sprite is shown or hidden? Not per se, but you might try Event.RENDER. I doubt it would work, though--it's dispatched when the display list is about to be updated and rendered. You'd get a lot of those to process, and I'm not even sure if changing the visibility causes the update list to be updated. Turning visible off will stop render events. But it is a very late event, needs to be requested each time and is not guaranteed for every frame. It really isn't a good candidate for this. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Why is my HTML file so huge
http://code.google.com/p/swfobject/wiki/generator might be helpfull kennethkawam...@gmail.com wrote: Which version of Flash and what publish settings are you using? But in any case I would not use Flash IDE for generating HTML. Do it manually using SWFObject (which will be used if you publish from Flash CS5 :) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Back On Course, Still Problems
Beno buy a book and start where we all started: learning on your own or in a class. Now go in peace. Thanks Paul Andrews wrote: beno - wrote: On Tue, Dec 8, 2009 at 3:02 PM, Gregory Boudreaux gjboudre...@fedex.comwrote: What is setting e in your code? It the remnants of a solution using an event handler - hence the e:Event. You can also see the remnants of code for controlling MovieClips using enterframe (a pointless exercise to avoid adding stop on the timeline). All this stuff is clearly beyond Beno. I have no idea. This is what was suggested to me on this list once upon a time. I presume that's the problem. The idea was to make the mc run when the code entered a certain frame, as you can see by the commented-out line and the trace: public function myLeftHand(e:Event=null):void { if (e.target.currentFrame == 10) { trace(yes) }; var mcHandInstance2A:mcHand = new mcHand(); addChild(mcHandInstance2A); mcHandInstance2A.x = 800; mcHandInstance2A.y = 200; //if (e.target.currentFrame == 40) TweenMax.to(mcHandInstance2, 2, {x:200, startAt:{totalProgress:1}}).reverse(); } What should it be? How do I tie it in to the rest of the code? TIA, beno Beno, have you ever considered that programming is not for you? So far you have had a ton of help on a very simple example and very little of that assistance seems to have stuck. What you have now is a real hotpotch of the solutions provided and where you have been guided to a simple solution you've totally ignored it, Have you programmed anything before? A lot of people start with little knowledge and work up step by step. You're just wasting everyone's time with this because the advice really isn't sticking and it's apparent that any project of complexity is beyond your capabilities - at least in the near term. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Suggestion for the new Flash
We code in flash or in actionscript but we are not the creators of (the) Flash (IDE); check out: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform Latcho Karl DeSaulniers wrote: Hello, Can I make a suggestion for the new Flash App. Can we get a radio button selection in the properties pane for any MC to smooth its contents or not? That way anything loaded into that MC can be opted to be smoothed or not. Less programing code if this was the case I think. JAT Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Still Infinitely Looping
Hi Beno, The power of debugging (or finding a bug) is also the power of using elimination to isolate a problem. By re-activating pieces of the code step by step you might hit the offending code block. Then come back if you are still stuck. Best of luck. Latcho beno - wrote: On Sat, Nov 21, 2009 at 11:22 AM, Paul Andrews p...@ipauland.com wrote: beno - wrote: On Sat, Nov 21, 2009 at 10:23 AM, Keith Reinfeld keithreinf...@comcast.netwrote: The problem must be with some other code that you are not showing. No, that's all the code! beno So what do you mean by looping? The hand tweens play, and replay, and replay... Is there any code in any of these MovieClips that you are instantiating? No. All the code there is is stated above. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Mailing List Idea: Teddy Bear
I like it :) FlashTeddy Steven Sacks wrote: Legend has it that at one time the MIT student lab had a teddy bear to whom you were required to explain a programming issue you were having before you could ask the lab administrator for help. Many people, myself included, ask a mailing list about an issue we are having, and only moments after sending you figure it out before anyone responds. I'm considering starting a mailing list where there is no expectation of response, but by sending the email, you might figure out your issue, and if you don't, then you can copy and paste it to your regular mailing list. Whaddya think? ;) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] HTMLLoader
That be funny, Finally html rendering inside a packed flash air swf but then no flash anymore :) Nono, Works a treat. Have fun. Ciao, Latcho John R. Sweeney Jr wrote: Howdy all, Does anyone know that if you load a website into the HTMLLaoder (AIR app) and that site contains or is entirely in FLASH, will that work? Much appreciated and everyone get ready for Turkey Day, John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] user cleanup flashcoders
If there is an admin on this list, woold you be so ind to remove this users They give junk auto-replies since they are non-existant (for a long time now) --- e...@nih.go.kr Diagnostic-Code: smtp; 554 error - Transaction failed. 550 5.1.1 User UnKnown e...@nih.go.kr *MDAUserContext::readFrom()(192.168.31.200) woo...@hmc.hanyang.ac.kr Diagnostic-Code: smtp; 501 error - Zettamail - woo...@hmc.hanyang.ac.kr User Unknown(10.0.0.14) and also this one: securitydisclos...@autoreply.corp.ebay.com if that is linkable to a useremail somehow Thanks, Latcho ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] one class listening for another classes dispatchedevent
If like you said, --totally tightly coupled solution is overkill.-- ,than I can agree with you :P But alright, to plug in on this matter. As I found out it's not hard to lose the tight coupling. The hard part is to find a system that works fast and intuitive for you. Once you found or created one, you'll be happy to reuse that system, even for simple setups and for the simple reason that it is YOUR OWN ( or preferred ) loosely coupled (event) system. At that click you will find out that it that it can work more for you than against you or against your speed. Integrating a loosely coupled flow also helps you in creating your own app-paradigm and workflow and enables you to start or reopen a project faster. You now know the best place to implement and to listen for that shout. And a lightyear later when you look back into your crappy-small-app code of the past, you will smile and think: Nice try but I know better now ;) Latcho Matt Folkard wrote: I completely agree with this as I've been in exactly the same situation with a largish scale project. The sort of projects I tend to do are small scale games for which the *totally tightly coupled solution is overkill*. However, I've eaten my words on that point as well... On 17 Nov 2009, at 21:05, Mendelsohn, Michael michael.mendels...@fmglobal.com wrote: Alright, since I asked the question, I'm piping in. I just finished a project that became immensely complicated precisely because I eventually had everything tightly coupled. Had I used custom events and done some other things from the get go, I'm nearly certain it would have been easier to do my updates. With the tight coupling of that project, it would be difficult for anyone else to go into it in the future. In smaller one-off projects, I don't think it's a big deal, but I'm trying to force myself to get in the habit of loosely coupling everything, via custom events. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Who uses Adobe Flex?
In Kerry's post read: There are other development environments for Flex, such as FlashBuilder, which is free as There are other development environments for Flex, such as FlashDEVELOP, which is free and read Flex is the free Eclipse-based base Flex IDE which is not free is build upon Eclipse IDE, which is free; they both compile trough the free flex sdk /compiler Latcho al...@cyberiantiger.biz wrote: Glen Pike wrote: But you can easily create your own button type class rather than use the Flash symbols... In fact, you can do your buttons, or movie clips, and the like in Flash. Publish the .swf, and you can download it using Flex and use all the assets in it. Flex's real strong point is that it is a superior coder's environment--better debugger, faster editor. It is not a good environment for artists and designers, by and large. Your hard-core coders use Flex, the animators and designers use Flash, and everybody is happy. I should be more specific. Flex is the free Eclipse-based base. Flex Builder, which I use, is the coding environment. I use it only for AS3--I literally have never used the GUI to do MXML. There are other development environments for Flex, such as FlashBuilder, which is free. It's really nice, though it doesn't have a debugger. Still, you can use Flex entirely for free if you wish. All Flex is, in the end, is another way of making .swf files. You don't have to do the entire site in Flex--you can use it just like Flash. In fact, I recommend that you do discrete elements in Flex, and build the site using these elements. That way, when AS4 comes out, you have your AS3 code isolated, and can keep developing new pages without having to re-engineer the AS3 pages. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Who uses Adobe Flex?
In Kerry's post read: There are other development environments for Flex, such as FlashBuilder, which is free as There are other development environments for Flex, such as FlashDEVELOP, which is free and read Flex is the free Eclipse-based base Flex IDE which is not free is build upon Eclipse IDE, which is free; they both compile trough the free flex sdk /compiler Latcho al...@cyberiantiger.biz wrote: Glen Pike wrote: But you can easily create your own button type class rather than use the Flash symbols... In fact, you can do your buttons, or movie clips, and the like in Flash. Publish the .swf, and you can download it using Flex and use all the assets in it. Flex's real strong point is that it is a superior coder's environment--better debugger, faster editor. It is not a good environment for artists and designers, by and large. Your hard-core coders use Flex, the animators and designers use Flash, and everybody is happy. I should be more specific. Flex is the free Eclipse-based base. Flex Builder, which I use, is the coding environment. I use it only for AS3--I literally have never used the GUI to do MXML. There are other development environments for Flex, such as FlashBuilder, which is free. It's really nice, though it doesn't have a debugger. Still, you can use Flex entirely for free if you wish. All Flex is, in the end, is another way of making .swf files. You don't have to do the entire site in Flex--you can use it just like Flash. In fact, I recommend that you do discrete elements in Flex, and build the site using these elements. That way, when AS4 comes out, you have your AS3 code isolated, and can keep developing new pages without having to re-engineer the AS3 pages. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Advice on minimum specification for cross platform cdrom
You can always test and evaluate it on a ultra low spec machine... Nobody knows better than how much ram or cpu your app uses. Ciao, Lacho Paul Steven wrote: Just designing the CDROM sleeve for a cross platform CDROM created with Flash CS3 and MDM Zinc 3 and need to include a minimum system spec. The application contains voice over. No video is included. Here is what I have come up with based on Zincs minimum specification. I just wanted to double check this is correct before duplicating a few thousand CDROM sleeves. Minimum system requirements PC: XP, AMD / Intel, 1.0 Ghz, 256 mb RAM MAC: 10.4.x, G3 PowerPC / Intel Solo, 1.0 Ghz, 256 mb RAM Any advice much appreciated. Thanks Paul ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] JSFL dynamic textfield antialiasing question...
Did a quick test. I think Stanley is wright: not possible. My ASV swf decompiler creates JSFL to reconstuct a FLA. I created a bunch of different textfields, compiled to swf and decompiled with ASV. Got ASV creating JSFL rebuild script for recreating a FLA. For antialias for readability fields it creates JSFL code that creates the textfield from scratch. For antailias for animation textfields it creates a new symbol-SWF of the textfield graphic and ads that as a symbol directly into the library; Just to complement Stanley's idea that it might not be in the power of JSFL otherwise ASV would just implement that 100% scriptwise, loosing the additional imported SWF's. Latcho jared stanley wrote: hmm good question - i don't know if that's accessible from jsfl. you could probably just loop through everything on the stage, and if it's a text field then select it - that dropdown will affect all selected textfields. not exactly what you're looking for though, maybe someone else has a better solution. jared On Tue, Nov 17, 2009 at 6:04 PM, Chris Foster cfos...@catalystinteractive.com.au wrote: Hi, I'm using JSFL to modify a bunch of FLAs created by a designer. I need to change the antialiasing on a large number of textfields from 'bitmap' to 'antialias for animation' but the only parameters I can see are 'standard', 'device', 'bitmap', 'advanced' and 'customThicknessSharpness'. 'advanced' changes the textfield to 'antialias-for-reading', which I don't want. Anyone know how to change this to 'antialias for animation'? Thanks, C: Chris Foster Multimedia Team Leader cfos...@catalystinteractive.com.au chris.fos...@kbr.com Phone: +612 6233 8900 - Fax: +612 6233 8947 - Mobile: +61 414 394 524 Catalyst Interactive Pty Ltd www.catalystinteractive.com.au 8 Townsville Street Fyshwick ACT 2609 PO Box 722 Fyshwick 2609 a KBR company --- IMPORTANT: The Information contained in this electronic message is confidential and intended only for the named recipient(s). Any review, re-transmission, disclosure, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] one class listening for another classes, doing it tight
If like you said, --totally tightly coupled solution is overkill.-- ,than I can agree with you :P But alright, to plug in on this matter. As I found out it's not hard to lose the tight coupling. The hard part is to find a system that works fast and intuitive for you. Once you found or created one, you'll be happy to reuse that system, even for simple setups and for the simple reason that it is YOUR OWN ( or preferred ) loosely coupled (event) system. At that click you will find out that it that it can work more for you than against you or against your speed. Integrating a loosely coupled flow also helps you in creating your own app-paradigm and workflow and enables you to start or reopen a project faster. You now know the best place to implement and to listen for that shout. And a lightyear later when you look back into your crappy-small-app code of the past, you will smile and think: Nice try but I know better now ;) Latcho Matt Folkard wrote: I completely agree with this as I've been in exactly the same situation with a largish scale project. The sort of projects I tend to do are small scale games for which the totally tightly coupled solution is overkill. However, I've eaten my words on that point as well... On 17 Nov 2009, at 21:05, Mendelsohn, Michael michael.mendels...@fmglobal.com wrote: Alright, since I asked the question, I'm piping in. I just finished a project that became immensely complicated precisely because I eventually had everything tightly coupled. Had I used custom events and done some other things from the get go, I'm nearly certain it would have been easier to do my updates. With the tight coupling of that project, it would be difficult for anyone else to go into it in the future. In smaller one-off projects, I don't think it's a big deal, but I'm trying to force myself to get in the habit of loosely coupling everything, via custom events. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] JSFL dynamic textfield antialiasing question...
As found in http://www.scribd.com/doc/3939992/Flash-Javascript-API My best guess is that to represent antialias for animation you would use text.fontRenderingMode - standard text.fontRenderingMode - static Latcho Chris Foster wrote: Hi, I'm using JSFL to modify a bunch of FLAs created by a designer. I need to change the antialiasing on a large number of textfields from 'bitmap' to 'antialias for animation' but the only parameters I can see are 'standard', 'device', 'bitmap', 'advanced' and 'customThicknessSharpness'. 'advanced' changes the textfield to 'antialias-for-reading', which I don't want. Anyone know how to change this to 'antialias for animation'? Thanks, C: Chris Foster Multimedia Team Leader cfos...@catalystinteractive.com.au chris.fos...@kbr.com Phone: +612 6233 8900 - Fax: +612 6233 8947 - Mobile: +61 414 394 524 Catalyst Interactive Pty Ltd www.catalystinteractive.com.au 8 Townsville Street Fyshwick ACT 2609 PO Box 722 Fyshwick 2609 a KBR company --- IMPORTANT: The Information contained in this electronic message is confidential and intended only for the named recipient(s). Any review, re-transmission, disclosure, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Get a File's creation date with Adobe Air?
again you ! ;) Patrick Matte wrote: File extends fileReference... Doh! From: Patrick Matte patrick.ma...@tbwachiat.com Reply-To: Flash Coders List flashcoders@chattyfig.figleaf.com Date: Mon, 16 Nov 2009 14:55:20 -0800 To: spamtha...@gmail.com, Flash Coders List flashcoders@chattyfig.figleaf.com Conversation: [Flashcoders] Get a File's creation date with Adobe Air? Subject: Re: [Flashcoders] Get a File's creation date with Adobe Air? That doesn't really help me because I need to know the fullpath to the file and you can't get that with FileReference, only with File. From: Latcho spamtha...@gmail.com Reply-To: spamtha...@gmail.com, Flash Coders List flashcoders@chattyfig.figleaf.com Date: Sat, 14 Nov 2009 07:14:09 +0100 To: Flash Coders List flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Get a File's creation date with Adobe Air? It must be you or it just doesn't works. No idea because I didn't tried it yet; but this is what the doc says: http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/net/FileReference.html#mo d ificationDate cheers, Latcho Patrick Matte wrote: Is it just me or there's no way to get the date that a file was created or last modified with Adobe AIR ? This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is proprietary, privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to disclai...@tbwachiat.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is proprietary, privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to disclai...@tbwachiat.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is proprietary, privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to disclai...@tbwachiat.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flicker feed doesn't seem to load
From what I remember; Very bad documented: the API for using namespaces. Resulted in errorous code / xml. I ended up stripping the namespace from the xml. Latcho Andrew Sinning wrote: I'm finding to problems with the flick feed that I'm trying to load. In the root tag there are name-space attributes: xmlns:dc=http://purl.org/dc/elements/1.1/; xmlns:flickr=urn:flickr: xmlns:media=http://search.yahoo.com/mrss/; Flash has support for those, but I don't remember how you do it. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Get a File's creation date with Adobe Air?
It must be you or it just doesn't works. No idea because I didn't tried it yet; but this is what the doc says: http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/net/FileReference.html#modificationDate cheers, Latcho Patrick Matte wrote: Is it just me or there's no way to get the date that a file was created or last modified with Adobe AIR ? This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is proprietary, privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to disclai...@tbwachiat.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Website in an application
G'day, Well it's up to you to educate the client since you are an Interactive Multimedia Developer that knows ( I suppose ) that you can't render html sites within flash. If that corporate site is flash I don't see your problem, just use a swf projector. If it is html you will need a third party tool that locks all features of an OS and browser down and that let's you stay where you want the user to be (at the corporate location). Google for kiosk browser never tested, just found: http://samanathon.com/firefox-2s-kiosk-mode/ Cheers, Latcho John R. Sweeney Jr wrote: Howdy List, My client wants a touchscreen application. I've done several on 50 plasma screens before for them using a Flash projector on a PC, but the kink in this one is the client wants to be able to view the corporate website in the Flash app. They don't want a browser popping up over the app, but to appear inside the program. And of course they only want the user to navigate around the corporate site, not go to other sites, so no access to a url window either. :) Suggestion or a place of a reference for a similar project would be GREATLY appreciated. Thanks in advance for any advise or help, John John R. Sweeney Jr. Interactive Multimedia Developer OnDemand Interactive Inc 945 Washington Blvd. Hoffman Estates, IL 60169 Office/Fax: 847.310.5959 Cellular: 847.651.4469 www.ondemandinteractive.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Website in an application
I did not know that ! Looks good. Is it also possible to catch referer headers / link clicks and prevent them ? Ciao, Latcho Eric E. Dolecki wrote: Just use AIR and an HTML Browser component. Easy-peasy. On Tue, Oct 27, 2009 at 5:12 PM, John R. Sweeney Jr jr.swee...@comcast.netwrote: Thanks, I'll check it out. John on 10/27/09 4:03 PM, Latcho at spamtha...@gmail.com wrote: Google for kiosk browser never tested, just found: http://samanathon.com/firefox-2s-kiosk-mode/ Cheers, Latcho John R. Sweeney Jr. Interactive Multimedia Developer OnDemand Interactive Inc 945 Washington Blvd. Hoffman Estates, IL 60169 Office/Fax: 847.310.5959 Cellular: 847.651.4469 www.ondemandinteractive.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] mac projector
Hello, Trying to publish a flash8 mac projector in CS4 turns out to be a tad changed. I published years ago in flash 8 on PC to a mac .HQX file and could put my additional loadable swf files next to it. Now in CS4 I'm forced to publish a mac .APP folder. So this stuff will be used on a hybrid cdrom and loads several additional swf's. Anybody knows what the relative root is of the project when you load in additional swf files ? Am I supposed to add the additional loadable swf files next to the project.app or do I have to put them in the Resources folder on the level of movie.swf and Flash Player.rsrc CD:. └───project.app └───Contents │ Info.plist │ PkgInfo │ ├───MacOS │ Flash Player │ └───Resources │ document.icns │ Flash Player.rsrc │ icon.icns │ mflv.icns │ movie.swf │ ├───cs.lproj │ Localized.rsrc │ ├───de.lproj │ Localized.rsrc ... Thanks, Latcho. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] monitor outgoing http requests
Charles nice... If it not crashes and then leaves you with altered (non cleaned up) LAN / IE proxy settings so you can't connect to the net anymore... figure that. Wireshark all the way. It even decrypts AMF0 data. For the peolple whom never use wireshark... choose an interface from the capture / interface menu and clck start. When the packets start streaming, do your communication thingie and grap one of the packets out of the list. You can filter a communication line by rightclicking one of the target packets and choose filter TCP stream. That gives you a log of the whiole communication and at hthe same time creates a filter example you can learn from. Cheers, Latcho John McCormack wrote: I like Charles too. It's easy to use, it saved me time and it's worth every penny. John Chris Foster wrote: I like using 'Charles' - an HTTP sniffer from http://xk72.com/ C: -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Andrew Sinning Sent: Friday, 9 October 2009 8:28 AM To: Flash Coders Subject: [Flashcoders] monitor outgoing http requests I'm trying to track down an issue with a cross-domain policy violation. Something in one of my movies is making requests to an outside server, but I can't seem to track it down. I get a request for resource at www.domain.com was denied message, but I need to figure out what exactly was being requested so I can track down the origin. Is there a utility or a FF extension that I can install that will log all of my outgoing http requests, preferable with a filter? I searched for port-sniffers, but everything I found was either not-free or way to complicated to figure out on my limited timeline. Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] shared objects as a sort of scratch disk file
What is a large doc ? What is little user memory if we talk gigabytes these days and the LSO has a default limit of around 100Kb ? This is a no no from flashcoders pro :) Anthony Pace wrote: As an example, any type of multi or large doc editor would benefit; especially on a system that has little memory. Storing assets for the interface is most definitely an option without asking the user, if the data is vector based; yet, for bitmap data, I would have to ask the user. I have been unable to find benchmarks for read/write access times for really large files, and when I have the time I will have to devote some of it to testing; however, under the advice of a good friend, I will need to get the little things working before I optimize the storage during operation. With regard to what I am doing... I don't want to spout vapor about an app barely started; yet, as I said it's an editor, but the resultant data, after manipulation of the original data, can't be placed in the browser cache, and that's the reason I was and still am wondering if shared objects can come to the rescue. Ktu wrote: I like the sound of that. It certainly seems like something someone should look into. I'm not great with checking speed in code, but I want to try to look into that. I'm interested in what types of applications would benefit from it. Can you share anything about yours? Ktu [k-two] On Wed, Sep 30, 2009 at 3:39 AM, Anthony Pace anthony.p...@utoronto.cawrote: -Now, if the user sets the local storage amount to unlimited, it is possible to save and modify heaps of data; yet, at what cost speed wise? -Is there a max size to a shared object, even if the user selects unlimited? -Is there something wrong with my idea, other than having to ask the user to set the storage capacity to unlimited? -Has anyone clocked speed of read and write access when files get extremely large? -Has anyone come up with a better solution when the app has to run in the browser? I worked with shared objects a while back; however, I never really needed to use them to store much more than cookie data. I am thinking about asking the user to set the local storage to unlimited, in an attempt to decrease the amount of memory that is required by an application, especially when it gets to the 40mb or more of dynamically generated content and the user has limited memory on their system. The user needs to be able to load multiple files to be modified, and the modifications could be rather intense and have very large file sizes; yet, not all files and resultant data will be required for modification at the same time, and I was hoping that storage on the system as a shared object, would be able to act as a scratch file. I know this isn't new, but I was also thinking that if the file is used properly, and storage is set to unlimited, one could make an application with most of the interface elements stored in the shared object; therefore, even if the user clears their cache, the swf can check the shared object to see when it was last updated and reuse what's stored if nothing has changed. (reducing bandwidth and download time requirements)... Is this a pipe dream? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FOTB
Nothing of interest there. Except a copy of a Maya paint brush that exists for over 10 years. I hope they fix the IDE... Not that I use CS4 a lot, but if I do, please let me use it without crashes and major cpu overhaul and let me also have a responsive GUI that I miss since flash 8 / MX. Patrick Matte wrote: I hope they'll announce more features than this at Adobe MAX. What about Flash Player 11 new features? So far we've just heard about AIR and the IDE. From: Anthony Pace anthony.p...@utoronto.ca Reply-To: Flash Coders List flashcoders@chattyfig.figleaf.com Date: Fri, 25 Sep 2009 14:15:32 -0400 To: Flash Coders List flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] FOTB I think the most interesting things are|: -the new text features -better code completion, including custom classes, in the flash ide. -better integration with flash builder (flex rebranded) -being able to create your own snippets http://www.youtube.com/watch?v=9-Jldkqr_J0 http://www.youtube.com/watch?v=DK_U-q0ZSNE Ian Thomas wrote: Most interesting, to me, was the new features in AIR 2.0. More specifically: - Being able to package native code - Being able to create .DMG and .EXE files - Being able to detect when pluggable storage devices (USB sticks etc.) are plugged into the system Ian On Thu, Sep 24, 2009 at 3:51 PM, matt m...@moonbootmedia.com wrote: Hey, did anyone attend/pay attention to Flash on the Beach? Seems like some great content this year, was wondering what the list thought. Some cool stuff like Joa Ebert's Apparat Andre Michelle's sound/PixelBender stuff, but since this list generally runs toward the less esoteric aspects of AS3, I was wondering if any content grabbed ya. --Matt ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is proprietary, privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us immediately of the error via e-mail to disclai...@tbwachiat.com and please delete the e-mail from your system, retaining no copies in any media. We appreciate your cooperation. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Catalyst
From the video I've seen a while ago; I think you're not far from the tree. Eric E. Dolecki wrote: It needs layouts and stuff so it's flex with as3 Thanks, Eric On Sep 26, 2009, at 6:29 PM, Anthony Pace anthony.p...@utoronto.ca wrote: Anyone try catalyst? Does it only output to flex style code that make babies cry, or does it output do pure AS3 too? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] building custom libraries and components using FlashDevelop and Flex SDK
Hi Isaac, I've been there too so that's why I decided to drop you al line. You can use a classpath in flashdevelop that gets referenced in every AS3 project; Settings-User Classpath ( never used it though, so test please) You can put a reference there to your own core library. The classes there should be super generic and reusable / extendable. You can extend a basic / hgeneric class from that library (for example AbstractSimpleMenu) within your company project to CompanyXMenu extends AbstractMenu. Within CompanyXMenu only functions that need to change you can override ,or you can add extra functionallity in there. Per project you can create an swc that holds your skin-assets and embed that swc in your FD project (rightclick, add to library). So export te classes from the flash lib by using export for AS and within your FLASH publish settings choose export swc too. Now if you can set up the AbstractMenu as such that it always uses a default skin, unless you apply something new to it. Within CompanyXmenu you can say this.buttonSkin = new CompanyXButtonSkin() (from flashlib). Note that the this.buttonSkin is a setter of the AbstractMenu that you extends. Sorry not to much time and there's a bunch of other and maybe even cleaner ways, just giving some workflow hints, no exact procedures here. Cheers, Latcho Isaac Alves wrote: Hello, I'm giving a try on FlashDevelop with Flex SDK, and a lot of things are new to me . My study background is on Graphic Design, so I know little about programming. One of the reasons I´m migrating to FD it is that I would like to build my own libraries (menus , slideshows, and other stuff) and gain productivity as well as flexibility. For example I´ve been creating animations and menus for a lot of websites, and so far I´m doing it like this: I use a class I´ve made called SimpleMenu (which I copy, paste and make changes for each project) in the FLA file I have a movieclip (which I also copy, paste and make changes for each project) of a menu Item and sometimes also the menuSubItem, if needed. and in the document class of the main .fla file I write something like that: public var menuWhatever:SimpleMenu = new SimpleMenu; // params: path, xPos, yPos, widthOffset, heightOffset, nColumns menuWhatever.createSimpleMenu(String(menuXMLPath), 5, 143, 16, 5, 8); The point is: I feel that copy and pasting code and MovieClips from other projects is not quite the best practice regarding ActionScript. I believe that I could do this kind of stuff in a more efficient and organized way by building my own components (SWC files? ) and associating them to classes, and so on, but I have many doubts and feel kind of lost and a little overwhelmed. I would like to get some advices and tips on how to build my own libraries and components, taking as start point this way of getting things done that I-ve briefly described... That´s it, thank you in advance! Isaac ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] light mp3 player with cuepoint support
Anybody having knowledge about a lightweight mp3 player class that support adding scriptwise cuepoints ? Mine seems not failsafe... And i'm in a hurry. Tnx, Latcho ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How to add a DisplayObject into a container withoutusing addChild() method.
And I'd love to see all your shorthands, unesthaetic as hell ! Get your darkest bitwises out. Don't forget to add in the disclaimer: This shorthand and the accompanying code are provided as-is. You may use it as you please. You may *not* hold me liable for any damage caused to you, your company, your neighbors or anyone else, nor for the non-maintainability of the written code as a result of implementing parts from this post. Whatever you do with this post, the provided shorthand or the accompanying code is at your own risk. Latcho Merrill, Jason wrote: For the record, I love these get your nerd on, see if you can out-nerd others discussions related to Actionscript. Bring it! Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Duplicate multiple lines in FlashDevelop?
Then let me be your champ today. http://greencollective.nl/blog/?p=24 Latcho Joel Stransky wrote: Thanks, you're a big help champ. On Tue, Aug 18, 2009 at 11:58 AM, Sidney de Koning sid...@funky-monkey.nlwrote: Oh shiite ... on a mac its CMD :-) On Aug 18, 2009, at 5:49 PM, Kenneth Kawamoto wrote: No, it won't work on Macs ;) Kenneth Kawamoto http://www.materiaprima.co.uk/ Sidney de Koning wrote: Yeah it is, they call it copy-pasting ;-) The key command is CTRL-C to copy and CTRL-V to paste... Think it even works on a mac too... One extra key command, but still incredibly usefull! ;-) Sorry couldn't help it ... :-) On Aug 18, 2009, at 4:46 PM, Joel Stransky wrote: Seems like it'd be an incredibly useful feature. On Tue, Aug 18, 2009 at 9:40 AM, Pedro Taranto ptara...@gmail.com wrote: don't know about multiple lines, but to duplicate a simple line just use CTRL+D -- Pedro Taranto Joel Stransky wrote: Anyone know how? Like if I want to dupe an entire function sig. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- --Joel Stransky stranskydesign.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Sidney de Koning - be a geek, in rockstar style! Flash / AIR Developer @ www.funky-monkey.nl Technical Writer @ www.insideria.com 3GB free storage you can sync with your mobile device or Mac or PC. Check out https://www.getdropbox.com/referrals/NTI1MjcxMzk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How to add a DisplayObject into a container without using addChild() method.
We might want to change the subjet line. Our ACElash-friend must have gotten scared from the responses on his question how he should do a parent.addchild(self) :) Anyways in my perception a long list of if elses is not always my ideal of readable code. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: Autoreply: Re: [Flashcoders] How to add a DisplayObject into a container without using addChild() method.
time to suspend i...@toolshop.de I'd say i...@toolshop.de wrote: Wir haben vom 10.08.2009 - 21.08.2009 Betriebsferien. Alle Anfragen werden wir danach umgehend beantworten. Vielen Dank für Ihr Verständnis. ### We are closed for vacation from Aug 10, 2009 until Aug 21, 2009. All requests will be answered after Aug 21, 2009. Thanks for your patience. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] maintainable code
some great optimalistations can be found here: http://mindprod.com/jgloss/unmain.html for ex. class Truth { boolean isTrue ( boolean assertion ) { if ( assertion != false ) { return assertion; } else { return assertion; } } } ... var doIt:Boolean; var trutherizer:Truth = new Truth(); if ( trutherizer.isTrue( s.equals( t ) ) ) { doIt = true; } else { doIt = false; } // hint: all the above accomplishes is: doIt = (s==t); ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How to add a DisplayObject into a container without using addChild() method.
Whoohoo, a lot of explicit coders here :D Steven Sacks wrote: Taka, When you're done building your Straw Man, you let me know and I'll happily continue the discussion with you. Cheers, Steven Taka Kojima wrote: Writing readable code writing less code. That is what it comes down to. Most coders can understand both of the following: if(myObj){;} and if(myObj != null){;} I would opt for the latter method always, as otherwise you are relying on renderer specific logic to handle the conversion, as opposed to explicit conversion. I have actually spent an hr trying to debug an IE specific JS error, only to find that even though implicit type conversion was working in other browsers, it was throwing an error in a specific version of IE. By your argument of less code more code, this: public function outputList():*{;} would be better than public function outputList():Array{;} and AS2 would be better than AS3 on the whole basis that you didn't have to typecast anything. Just because a certain environment can convert types for you, doesn't mean that you shouldn't typecast or not hint as to their object type in your code. Personally, I can type faster than I can think in code. I type really fast, and I think code really fast, and typing out the extra 10 characters doesn't hinder my productivity, it probably enhances it. If you want to take the implicit convesion route, by all means I am not going to stop you or object. However, I do and will always believe that it is better for other people reading/working on your code that you do spell it all out, use line breaks when it makes sense, and typecast all your variables. I think Dave's point was that you seemed rather authoritative, and this is really a subjective matter. - Taka ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] rotationX not working In Flex actionscript Projects
Funny just came out of this issue. Turned out the v10.0.1-something debugplayer distributed with my flex_sdk was not a nice one. In my browser the rotX/Y/Z worked like a charm, but on flashdevelop with that mentioned player I got the same issues. I'm on windows so don't know how to do it on mac, but make sure you uninstall all v10 players and get *10,0,32,18 (debug). Also check your flexsdk\runtimes\player\10\mac player version and maybe replace that too with **10,0,32,18**. * * DownloadDownload the Macintosh Flash Player 10 Plugin content debugger (Intel-based Macs) http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_plugin_debug.dmg (6.31 MB) * DownloadDownload the Macintosh Flash Player 10 Projector content debugger http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_sa_debug.app.zip (ZIP, 6.22 MB) latcho Omar Fouad wrote: Hi all, Since I switched to Mac now, I am using Flex Builder for my ActionScript Projects, I've got the latest Flex SDK 3.2 (I think that is the latest) and edited the flex_config xml file. I've added the playerglobal swc file to the build path of Flex for Auto Completion and all. Here is the problem: it seems that the specific FP 10 new properties as .z, .rotationX, .rotationY and .rotationZ are not recognized by the compiler. mc.rotationX = 45; // this is not working as it is ignored. Using Tweener: Tweener.addTween(mc, { rotationX:45, time:1}); // throws Property rotationX not found on [object name ] and there is no default value Is there anything wrong I am doing in flex? Thanks for the support. Cordially. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Next big 'speedy' thing ?
So that FlashBuider is another branch of flexbuilder that parses fxg xml ? And catalyst is our designer handled beloved fxg spawning machine ? Anytime soon we have to crawl trough this 'super modern' and mega lengthy fxg xml's? Or am I interpreting this wrong ? The video tutorials scared me. Especially the mix of effects, data and the inline code you have to for example (find your target and) do the actual service binding. Next big 'speedy' thing ? Super workflow ? I see some advantages if you do the Catalyst process yourself, but for complex pages It just got clean and organised and now I ask myself, how long before we have (virtual xml) scripts on buttons , (virtual xml) frames back ? What do you think? Latcho ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Next big 'speedy' thing ?
Okay good to know that they are the same; furthermore I was talking about the xml-code outcome of this process: http://www.gotoandlearn.com/play?id=110 Latcho Merrill, Jason wrote: I'm not sure I follow 75% of what you're saying, but I will say the Flashbuilder is what Flexbuilder was - just renamed for version 4 from Flexbuilder to Flashbuilder. Same tool. Jason Merrill Bank of America Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Latcho Sent: Sunday, August 16, 2009 9:04 PM To: Flashcoders mailing list Subject: [Flashcoders] Next big 'speedy' thing ? So that FlashBuider is another branch of flexbuilder that parses fxg xml ? And catalyst is our designer handled beloved fxg spawning machine ? Anytime soon we have to crawl trough this 'super modern' and mega lengthy fxg xml's? Or am I interpreting this wrong ? The video tutorials scared me. Especially the mix of effects, data and the inline code you have to for example (find your target and) do the actual service binding. Next big 'speedy' thing ? Super workflow ? I see some advantages if you do the Catalyst process yourself, but for complex pages It just got clean and organised and now I ask myself, how long before we have (virtual xml) scripts on buttons , (virtual xml) frames back ? What do you think? Latcho ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How to add a DisplayObject into a container without using addChild() method.
(myDO) (myDO.stage) ( myDO.parent.removeChild(myDO) ) ;) Latcho Keith H wrote: Steven, Maybe its just me but... Just doing a Boolean check on DisplayObjects always put my scripts in high risk of runtime errors. Especially in the case of cleanup operations. Sometimes I might have a function that attempts removing a DisplayObject that has not been added to the stage or has already been removed. So I check if the stage property is null for almost all cases now. var myDO:Sprite=new Sprite(); try { //if (myDO) { //Creates runtime error if (myDO myDO.stage != null) { myDO.parent.removeChild(myDO); } } catch (e:Error) { trace(e.message); } -- Keith H -- www.keith-hair.net Steven Sacks wrote: I don't understand why you would not want to write a single line of code in the class where it would provide the most clarity, and instead write MORE code in another class obscuring the behavior that is going on. In other words, you're writing more code to write the same code. You're going to write addChild either way, why make it more complicated than it needs to be? Always follow the KISS principle. BTW, Ekameleon, you should use if (target) Instead of if (target != null) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] CLICK event not getting fired
try a 'this.buttonMode=true' on MyGesture class Latcho Sajid Saiyed wrote: Hi, Although a bit late, I am making a move to AS3 and facing some issues. After banging my head around a bit, I would like to ask for some help :) My CLICK event is not getting detected from withing my class file. In the code snippets below, the reportClick function is not getting triggered when I click my mouse in stage. Here is how the files are setup: ** MyGesture.as package Gestures { import flash.display.*; import flash.events.*; import flash.filters.*; public class MyGesture extends MovieClip { public function MyGesture(){ addEventListener(MouseEvent.CLICK, reportClick); } function reportClick(e:Event) { trace(reportClick); //dispatchEvent(new Event(MyGesture.clickOK)); } } } ** Mediaplayback.as (This is my Document Class) package Gestures { import flash.display.*; import flash.events.*; import flash.filters.*; import Gestures.MyGesture; public class Mediaplayback extends MovieClip { private var my_gesture:MyGesture = new MyGesture(); public function Mediaplayback(){ addChild(my_gesture); } } } Can someone tell me what I am doing wrong? Thanks a lot Sajid ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] CLICK event not getting fired
Are you sure there is a graphic in the myGesture movieclip ? You need something to click on. Do you see the handcursor with buttonMode = true ? Otherwise try this as a test in the MyGesture constructor asn make sure you see a square, then check for handCursor, then click it. Mind that the the square is a background graphic so children of MyGesture can overlap this.buttonMode = true; this.mouseEnabled = true; this.mouseChildren = false; this.graphics.beginFill(0xFF00FF,1); this.graphics.drawRect(0, 0, 100, 100); this.graphics.endFill(); Sajid Saiyed wrote: Hi Anna, Thanks. Forgot to mention that I tried MouseEvent as well and no luck :( Seems so strange I am sure I am missing something basic here. Sajid On Tue, Aug 18, 2009 at 11:23 AM, Annavean...@gmail.com wrote: On Mon, Aug 17, 2009 at 9:32 PM, Sajid Saiyed sajid.fl...@gmail.com wrote: Hi, Although a bit late, I am making a move to AS3 and facing some issues. After banging my head around a bit, I would like to ask for some help :) My CLICK event is not getting detected from withing my class file. In the code snippets below, the reportClick function is not getting triggered when I click my mouse in stage. Here is how the files are setup: ** MyGesture.as package Gestures { import flash.display.*; import flash.events.*; import flash.filters.*; public class MyGesture extends MovieClip { public function MyGesture(){ addEventListener(MouseEvent.CLICK, reportClick); } function reportClick(e:Event) { trace(reportClick); //dispatchEvent(new Event(MyGesture.clickOK)); } } } Can someone tell me what I am doing wrong? Sajid, Try changing function reportClick(e:Event) to function reportClick(e:MouseEvent) In my understanding, AS3 treats Event and MouseEvent differently. Hopefully, this helps. Regards, Anna ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Slow emails
No prob man. Thanks for maintaining this. Flashcoders is fine where it is. If we have a problem next time we can continue chatting on Tiger list :) We'll be back anyway ;) Latcho Dave Watts wrote: So the question is: Why does Dave use this slow hosting company to run the Flashcoders mailing list when there are better and cheaper (free) alternatives available? Good question! But first, I should correct a minor misperception. It's not a matter of a slow hosting company, or a slow server - the current server is fast enough to handle the load it gets, and there's plenty of bandwidth at the ISP. I subscribe to groups on both Google and Yahoo, and generally see my posts just as quickly from chattyfig as with those groups. Obviously, your mileage may vary, but there you go. That said, if it were entirely up to me, I would have switched to Google Groups. I'm a big fan of Google services in general - Fig Leaf is a Google Enterprise partner, we use Google Apps for email, calendaring and information sharing, etc, etc. However, we run a number of lists, not just Flashcoders. There are about a dozen different lists. Some of those lists have some actual business value for us, as a channel for our expertise and for advertising our services. Flashcoders really doesn't at this point, if it ever really did at all. When these lists were set up long ago, they were set up using mailman. Mailman stores user lists and other data in a non-text format: Python qpickle files. When the Flashcoders list broke, I had absolutely no familiarity with this, and so had no way to export users from Mailman to Google Groups. I did, on the other hand, have a shiny new server that wasn't doing anything else, so the path of least resistance was to set up Mailman and just move everything over. Out of all those lists, Flashcoders was the only one with which I had any problems. Because Flashcoders' files were corrupted, and I didn't know Python, I had to manually extract information from the qpickle files. The other lists ran fine the whole time, and I could migrate them without any trouble. But I sure did run into trouble migrating Flashcoders for a variety of reasons, and got a bunch of flak from subscribers who didn't know how to unsubscribe, etc. So, in conclusion, if I woke up tomorrow and this was on Google Groups, I'd be perfectly happy. But that would require current subscribers to subscribe to that on their own. I just went ahead and created a group: http://groups.google.com/group/flashcoders-group If the consensus is that we should move over there, I'm willing to go ahead and do that. But I'm a little reluctant to migrate the Flashcoders user list directly over there on my own volition, because of the negative feedback I got last time I had problems with the user list. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Slow emails
No prob man. Thanks for maintaining this. Flashcoders is fine where it is. If we have a problem next time we can continue chatting on Tiger list :) We'll be come back anyway ;) Latcho Dave Watts wrote: So the question is: Why does Dave use this slow hosting company to run the Flashcoders mailing list when there are better and cheaper (free) alternatives available? Good question! But first, I should correct a minor misperception. It's not a matter of a slow hosting company, or a slow server - the current server is fast enough to handle the load it gets, and there's plenty of bandwidth at the ISP. I subscribe to groups on both Google and Yahoo, and generally see my posts just as quickly from chattyfig as with those groups. Obviously, your mileage may vary, but there you go. That said, if it were entirely up to me, I would have switched to Google Groups. I'm a big fan of Google services in general - Fig Leaf is a Google Enterprise partner, we use Google Apps for email, calendaring and information sharing, etc, etc. However, we run a number of lists, not just Flashcoders. There are about a dozen different lists. Some of those lists have some actual business value for us, as a channel for our expertise and for advertising our services. Flashcoders really doesn't at this point, if it ever really did at all. When these lists were set up long ago, they were set up using mailman. Mailman stores user lists and other data in a non-text format: Python qpickle files. When the Flashcoders list broke, I had absolutely no familiarity with this, and so had no way to export users from Mailman to Google Groups. I did, on the other hand, have a shiny new server that wasn't doing anything else, so the path of least resistance was to set up Mailman and just move everything over. Out of all those lists, Flashcoders was the only one with which I had any problems. Because Flashcoders' files were corrupted, and I didn't know Python, I had to manually extract information from the qpickle files. The other lists ran fine the whole time, and I could migrate them without any trouble. But I sure did run into trouble migrating Flashcoders for a variety of reasons, and got a bunch of flak from subscribers who didn't know how to unsubscribe, etc. So, in conclusion, if I woke up tomorrow and this was on Google Groups, I'd be perfectly happy. But that would require current subscribers to subscribe to that on their own. I just went ahead and created a group: http://groups.google.com/group/flashcoders-group If the consensus is that we should move over there, I'm willing to go ahead and do that. But I'm a little reluctant to migrate the Flashcoders user list directly over there on my own volition, because of the negative feedback I got last time I had problems with the user list. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Actionscript class for creating a Spectrogram?
nice one :D latcho Carl Welch wrote: http://tinyurl.com/krezmu ;) On Fri, Aug 14, 2009 at 10:18 AM, Glen Pikepostmas...@glenpike.co.uk wrote: Look at some of the tutorials online for computeSpectrum - you may be able to acheive what you want with this, but depends on your sound source. johnny lee wrote: Hi Flashcoders, is anyone aware of an available actionscript class that uses a Fast Fourier Transform (FFT) to create a Spectrogram in Flash? I'm trying to record a person's voice and ask the actionscript class to convert the audio into a spectrogram that can be displayed and compared in flash. Thanks, juju ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] fdb
Reading about fdb here and seeing it sometimes in the startup of a build in FD got me curious. So just tried this fdb thingie via command line. Workflow zero, but nice outway if I really need it and to know now that it works. If you want a messy fdb rundown ( more a reminder / note to myself) http://greencollective.nl/blog/?p=18 Cheers, Latcho Juan Pablo Califano wrote: Yes, it's the same back-end used by Flex Builder, if I'm not mistaken. Fdb is indeed almost unusable without a GUI, unless you're a command line freak and a bit of a masochist, IMO (and you never tried a visual debugger). The idea of integrating a GUI for fdb into FlashDevelop has been mentioned in the FD forum a number of times. I don't know the current status of this feature, though. Last time I checked (about 6 or 7 months), it was on the wish list, but I couldn't find any info on its status. I hope they manage to get it working. It'd be awesome. Cheers Juan Pablo Califano 2009/8/12 Ian Thomas i...@eirias.net On Wed, Aug 12, 2009 at 9:22 PM, Matt Gitchellm...@moonbootmedia.com wrote: Yeah but if you want to debug/profile anything, you gotta pay that 5 bones you mentioned earlier in this scenario, and I dunno, a coding environment without debugging now seems a little silly to me. I wish they'd do a standalone version of the profiler in Flex Builder, to be honest. Just as a complete aside, in case people don't realise, there _is_ a debugger included with the Flex SDK (i.e. the free downloadable SDK). It's a command-line shell called fdb; it's a bit of a pain to use, but it can be a godsend if you don't have a full Flex license and if inserting trace() statements everywhere hasn't helped. :-D Ian ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How to compare two audio files with actionscript?
I'd suggest you first get down in audio math and algorithms and indeed FFT. If you're done with that... choose whatever language you like and preferably a faster one then AS3. But it is not impossible to answer your question. johnny lee wrote: Hi All, how do you compare two audio files with actionscript? I heard something about Fast Fourier Transform, but don't understand how it works. What I'm trying to do is a basic voice recognition programme, similar to the one on symbian mobile phones where you can give word commands to your phone. Can this be done in actionscript? Thanks and cheers, juju ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Compiling API Docs with Flex 3 SDK
clean up all the import statments for classes that aren't used in the class that throws errors. Cheers, Latcho Jeff Fox wrote: I've tried a few times to compile my API docs for a framework I am working on with the asdoc tool that comes in the FLEX 3 SDK, but I always run into a number of strange compile errors that don't come up with the regular Flex compiler. I've tried using both FlashDevlop's integrated ASDoc Tool as well as the command line version. Anyone have any tips or suggestions? Regards, -JFox ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Image loader problem
1900 lines of code to fetch some stuff Joseph Masoud wrote: Have you considered using existing bulk loaders? http://code.google.com/p/bulk-loader/ You've got a relatively complex task ahead if you're going to write the code all by yourself. Essentially the idea is to have two stacks, a loading stack and a pending stack [list of assets to be loaded]. Ensure there is only one loader in the loading stack at any time during the loading process if order is important. I suggest creating a separate data type for storing information about the images, however I think you might want to consider letting one object deal with the loading process. Many thanks, Joseph On 25 Jul 2009, at 13:53, Cor wrote: To solve your issue you might write the code so that the next image in the sequence doesn't load or start to load until the previous is complete. Yes, but I dont know how. You could bulk load the images and stuff them in an array then use a loop to run through the array to get the image and it's properties so that you can align everything the way you want. Frankly I just want them in the same order as they are in my xml. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Particle Playground, Flash 10 General Purpose Comuting with Pixel Bender
You are still clever:) I think the Alchemy story is a bit of a frustrating one (to know). Especially if you don't want to go C++ to obtain...performative AS3. Latcho mike cann wrote: Just thought I would update anyone interested, I have updated my Particle Playground see post: http://www.mikecann.co.uk/?p=392 Also I stumbled accross this very interesting particle on 300k 3D particles in flash using alchemy and pixel bender! http://www.unitzeroone.com/blog/2009/03/18/flash-10-massive-amounts-of-3d-particles-with-alchemy-source-included/ It put a swift end to the thoughts about how clever i was with 40k 2D particles :P 2009/3/18 mike cann mike.c...@gmail.com Sure will, i learnt quite abit about what you can and cant do with shaders in flash making this. I hope to share with you all soon. 2009/3/18 Eric E. Dolecki edole...@gmail.com Ping us when you release something or have a demo online. Looks cool. E. On Wed, Mar 18, 2009 at 8:03 AM, Hans Wichman j.c.wich...@objectpainters.com wrote: awesome:) On Wed, Mar 18, 2009 at 12:45 PM, mike cann mike.c...@gmail.com wrote: Hey List, I have been playing around with particles again... I have just released my latest little saunter into the world of particles and shaders in flash 10. It started off as and idea to use the new pixel bender shaders of flash 10 as a more efficient method of updating particle simulations. Well after a few struggling evenings I managed to get a little prototype going. I was so amazed at some of the beautiful patterns and effects that the particles were making I thought it may be nice rather than just releasing a tech demo, to add abit more to it and release it for others to enjoy. I will be releasing the source code in the coming weeks along with a blog post which should explain in detail how the technical aspects of updating and rendering tens of thousands of particles per frame works. The tool features a gallery tab which you can use to take screenshots then upload them to my picassa account (proxyed via php). The hope is to get some realy beautiful images in here, perhaps if some are good enough ill get them printed and framed ;) You can see it in action over on my blog: http://www.mikecann.co.uk/?p=384 Let me know what you think! Mike Cann http://www.mikecann.co.uk/ http://www.artificialgames.co.uk/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Mike Cann http://www.mikecann.co.uk/ http://www.artificialgames.co.uk/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] tiny remoting with weborb in as3 pure sang
Hi friends, I'm a bit of a novice when it comes to remoting. I want to be able to use remoting with weborb-php in AS3 pure sang, fairly compact , without mxml configuation and remaining as functional as possible. Setting a direct endpoint into the remotingObject amfchannel was quite impossibe due to it beign a getter only and only configurable trough mxmlc, So I had to set up a channel. I also had to hack the mx messaging config LoaderConfig's url , otherwise the flex mx.rpc's classes fail, if it remains a null value. (found this hack/tip here: http://bugs.adobe.com/jira/browse/BLZ-16#action_171947 but figgured it can hold any value as long it's not null) So I did this public dynamic class AMFService extends RemoteObject { mx.messaging.config.LoaderConfig.mx_internal::_url = notnull; public function AMFService(...) ( _amfChannel = new AMFChannel(_destinationChannel,_serviceGateway); _amfChannel.connectTimeout = _conectTimeOut; _amfChannel.requestTimeout = _requestTimeout; var myChannelSet:ChannelSet = new ChannelSet(); myChannelSet.addChannel(_amfChannel); `} furthermore this to solve some Typing errors and to get the of Messages wright wright static private function registerClassAliases():void { /* REGISTERCLASSALIAS() * Preserves the class (type) of an object when the object is encoded in Action Message Format (AMF). * When you encode an object into AMF, this function saves the alias for its class, * so that you can recover the class when decoding the object. * If the encoding context did not register an alias for an object's class, * the object is encoded as an anonymous object. * Similarly, if the decoding context does not have the same alias registered, * an anonymous object is created for the decoded data. * */ registerClassAlias(DSA, AsyncMessageExt); registerClassAlias(flex.messaging.messages.AsyncMessage, AsyncMessage); registerClassAlias(DSA, AsyncMessageExt); registerClassAlias(DSC, CommandMessageExt); registerClassAlias(flex.messaging.messages.CommandMessage,CommandMessage); registerClassAlias(flex.messaging.messages.RemotingMessage, RemotingMessage); registerClassAlias(DSK, AcknowledgeMessageExt); registerClassAlias(flex.messaging.messages.AcknowledgeMessage, AcknowledgeMessage); registerClassAlias(flex.messaging.messages.ErrorMessage, ErrorMessage); registerClassAlias(flex.messaging.messages.HTTPMessage,HTTPRequestMessage); registerClassAlias(flex.messaging.messages.SOAPMessage, SOAPMessage); registerClassAlias(flex.messaging.messages.MessagePerformanceInfo, MessagePerformanceInfo); registerClassAlias(flex.messaging.io.ArrayList, ArrayList); registerClassAlias(flex.messaging.io.ArrayCollection,ArrayCollection); registerClassAlias(flex.messaging.io.ObjectProxy,ObjectProxy); registerClassAlias(flex.messaging.config.ConfigMap, ConfigMap); } Now my questions: Is this the best way to keep it tiny and pure AS3 without mxml Do I drop functionallity here if it comes to remoting (and not to the remote data processing) ? Can this be done in an oher AS3 way without hacking with the mx_internal trick ? FYI, the filesize of my remoting test is now 86Kb in release mode. Please help me out of uncertainty :) Tnx Latcho ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] tiny remoting with weborb in as3 pure sang
Hi Juan, Thanks for your email. This gives me some confidence of beign on the wright track. Why I tried the Loaderconfig.url notnull string hack was because it just works but most of all because that's the only way of not having to pass a reference to stage.loaderInfo.url since it is not nice to have a proxy extending a DisplayObject and silly to pass a stage reference to the remoting instance to get remoting to work. The loaderInfo.parameters are of no importance to get it to work, so I dropped it. Good to remind me about the DTO registering, I only registered the basic messaging classes but I will need some more in the future. If you have made any examples to test this stuff, it would be nice to see copy of your test-setup even if it looks hacky. Feel free to (not) send me. Ciao, Latcho Juan Pablo Califano wrote: Hi, I've had this same issue some weeks ago. In my case, I had to use an existing back-end that was consumed by a Flex app using RemoteObjects. The requirement was to replace the front-end with a more lightweight AS pure client, but keeping the back-end. After googling a bit, I found, as you did, that the trick was manually registering the Flex classes that take part in the communication process (before attempting any communication!); this is something you get for free if you setup a Flex project, by the way (by means of the Remote meta-tag). I just made some tests to see whether it was feasible and haven't built the real thing yet, but I it worked ok against my local service (I installed BlazeDS) and against the production service (they're using FDS, I think). About the mx_internal hack, I used this code (found it googling): var swfURL:String = this.loaderInfo.url; LoaderConfig.mx_internal::_url = this.loaderInfo.url; LoaderConfig.mx_internal::_parameters = this.loaderInfo.parameters; It worked fine. I don't know if it's better this way or your way, though. Maybe you already know this, but another important thing is to map / register your DTO's before calling the backend; otherwise, the serialization / deserialization fails. I've used this code: private function mapAppRemoteClasses():void { // map the classes that represent entities in the backend to the AS classes registerClassAlias(ar.com.califa010.remotingTest.User,User); } (Again, in flex project I think you'd just put a [Remote] tag on you class, but in an AS project you have to do it manually). Regarding the destination, I set it through the remote object using an id. The actual mapping to the Java entry point is on the server; in my case (BlazeDS), in the remoting-config.xml destination id=userservice-test properties sourcear.com.califa010.remotingTest.UserService/source /properties /destination So, in the AS side: private function setupUserService():void { _userService = new RemoteObject(); _userService.destination = userservice-test; _userService.channelSet = _amfChannelSet; _userService.getFriends.addEventListener(ResultEvent.RESULT,handleServiceResult); _userService.getFriends.addEventListener(InvokeEvent.INVOKE,handleServiceInvoke); _userService.getFriends.addEventListener(FaultEvent.FAULT,handleServiceFault); _userService.loginUser.addEventListener(ResultEvent.RESULT,handleServiceResult); _userService.loginUser.addEventListener(InvokeEvent.INVOKE,handleServiceInvoke); _userService.loginUser.addEventListener(FaultEvent.FAULT,handleServiceFault); // call methods to test the service... _userService.getFriends(); _userService.loginUser(username,pass); } As far as I know, you won't lose any significant functionality. You'll lose some of the amenities provided by Flex (I mean compiling as a Flex Project), like data binding, automatic alias registration, automatic linking to the framework dependencies and probably some more (I don't have much experience in Flex projects). Hope this helps, and if you find out something interesting, please share! Cheers Juan Pablo Califano 2009/3/12, Latcho spamtha...@gmail.com mailto:spamtha...@gmail.com: Hi friends, I'm a bit of a novice when it comes to remoting. I want to be able to use remoting with weborb-php in AS3 pure sang, fairly compact , without mxml configuation and remaining as functional as possible. Setting a direct endpoint into the remotingObject amfchannel was quite impossibe due to it beign a getter only and only configurable trough mxmlc, So I had to set up a channel. I also had to hack the mx messaging config LoaderConfig's url , otherwise the flex mx.rpc's classes fail, if it remains a null value. (found this hack/tip here: http://bugs.adobe.com/jira/browse/BLZ-16#action_171947 but figgured it can hold any value as long it's not null) So I did this public dynamic class AMFService extends RemoteObject
Re: [Flashcoders] AS3 - load an external graphic into a movieclip?
- alpha is a number from 0 to 1 - you can also apply the Xscale/,Yscale/ and alpha directyly on the firstimage Loader Latcho William Adams wrote: I'm trying to create a new project in ActionScript 3 in Flash CS3. I have the code: var firstImage:Loader = new Loader(); var empty_mc:MovieClip=new MovieClip(); var url:URLRequest = new URLRequest(); addChild(firstImage); url = new URLRequest(test.jpg); firstImage.load(url); firstImage.x = 10; firstImage.y = 10; //empty_mc.addChild(firstImage); //empty_mc.x = 150; //empty_mc.alpha = 50; stop(); and it works until I uncomment the empty_mc stuff --- what I want to do is put firstImage into a movieclip so that I can control its yscale, alpha c. for animation purposes, but I'm just not getting how one does this. I've tried lots of variations: empty_mc.addChild(new MovieClip(firstImage)); empty_mc.addChild(firstImage) as MovieClip; and other variations I should probably be embarrassed to show --- how does one load an image (eventually from a server) into a movie clip? William ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What heck is up with parent in actionscript 3?
If your class extends MovieClip, it has to be added to that parent by means of addChild and (child.)stage should be true otherwise there isn't a parent-child relation. Latcho Carl Welch wrote: Hi again, I am trying to call a function to a parent of a movieclip. I've tried these two items that I found but to no avail: (this.parent.parent as MovieClip).callMedia(String(audio)); AND: MovieClip(parent.parent).callMedia(String(audio)); Am I missing something? I'm finding that everything I took for granted in AS2 is now convoluted in AS3... I'm so frustrated. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: AS3: video class........won't stop loading.
Sounds like a mess to me ;) No honestly, I think nobody can give you an answer on this without a core code snippet from you side. Try to call something like this on the end of the previous vid: private function RESET():void { if (video.stage) { video.attachNetStream(null) video.clear() } if (stream) { stream.close(); } and when you want to play the new video private function newStream(streamUrl):void { RESET() stream =* new NetStream(*connection); stream.bufferTime = 5; stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); stream.client = this; video.attachNetStream(stream); stream.play(streamUrl); } Latcho Carl Welch wrote: Hi all! My client asked me to build a video player with a play list. I'm building it with AS3. The player works fine when I load the first movie... but when I try to play another, the old video seems to keep loading. I've been trying to .close() the video, netstream and the URLRequest when I call a new video, but nothing seems to work properly. Can anyone point me in the right direction? thanks. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] use get / set functions or make your own
on the other hand using public vars makes it more difficult if you have to add an extra parse or an extra function on the returning var for ex. like array.join() or ad some html wrapping around a string Then you don't have to redeclare public _unaltered var to an altered getter and setter and you don't have to go to all off you class local code to change between altered / _unaltered; You just add in the extra functionallity in the getter/setter. As for FlashDevelop it is only ctrl-shift-1. That gives me no time to masturbate. Latcho Steven Sacks wrote: For clarity, they're referred to as implicit and explicit. get prop / set prop = implicit getProp() / setProp = explicit In AS2, it made a difference because implicits were available right away, whereas explicits were not available for 1 frame. This limitation is not present in AS3. Basically, implicit implies properties of a class, whereas explicit implies methods of a class. I opt for implicit over explicit because this: foo.prop = value; makes more sense than foo.setProp(value); I leave methods for methods, not properties. That being said, I don't abide by the retarded rule that you shouldn't have public vars in a class. People who do this private var _foo:Boolean; public function get foo():Boolean { return _foo; } public function set foo(value:Boolean):void { _foo = value; } are masturbating and I'm not impressed by their bloated ego...I mean code. ;) Unless something needs to happen immediately within the class when you set or get a prop (i.e. a state change), it's fine for it to be a public var. It's faster, it's less bloat and most of us aren't writing large applications with a bunch of other developers. Some of these rules were created for when good coders are forced to work with bad coders and the good ones need to protect their code from the bad ones. When it's just you and a couple other devs, and you're all competent, you don't need all these checks and balances that are nothing more than compensation for people who you wish you didn't have to code with. /rant ;) On the FlashDevelop tip: http://www.stevensacks.net/2008/02/21/flashdevelop-code-generation/ http://www.stevensacks.net/2008/04/30/flashdevelop-flexbuilder-style-error-reporting-on-save/ FlashDevelop's auto-completion and code generation are better than anything out there (for AS, at least). And just to be clear, you don't need to select anything for code generation, the cursor just needs to be anywhere within the word, or at the end of the statement. private var _test:Boolean; If the cursor is after the semicolon, you can press the shortcut (I use ALT+2 on Windows, CMD+2 on OSX) and it will bring up the code generation options. The event generation is really valuable, as well. I save so much time with it. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] My rights - site not paid for.
Never take the site offline, that is a looser situation. If you have ftp acces I would transfer the site to a private ftp, and make an I-frame from the original location. That way you protect your source files. First you disable his CMS entrance (never something visible on the frontside because that angries them, and they might sue you for hurting their business). Then you negotiate again. Latcho poste9 wrote: give ftp information to some brazilian where there isnt internet's law. its an option too. 2008/12/8 Eamonn Faherty [EMAIL PROTECTED] This is a grey area. Did you draw up a contract when you started the job? Deleting the live site could be deemed as an infringement of the computer misuse act. Do the easiest thing, sell the debt to a debt management agency and move on to another job. I bet the money you will lose doing this will be far less than the amount you can make on another job in the time it takes to chase this up! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Matthews Sent: 08 December 2008 11:03 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] My rights - site not paid for. What are my rights ( in the UK ) for taking down a site which has not been paid for? The owner of the company is happy with his site, but is not coughing up. I still have FTP access. He says the site took too long, and makes lots of excuses for not paying - which do not tally. He changed the site drastically at least three times - I think it took too long too, due to this. He is updating the news section and other sections whenever he has new material. I would be interested in your thoughts. This person won an award for being a top business man this year - is this what you have to do to be a top business man - screw people? I am not the kind of person to take this action really, but I may consider it. Thanks S ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Fwd: Re: [Flashcoders] What design pattern would this be?]
As you wish, then go for a minimalist composite pattern my friend. Joel Stransky wrote: Thanks for your perfectly useless answer. I know if I could recognize the need for certain patterns easily I'd be more than happy to help out rather than chastise. It looks like it's possibly a Template pattern but I was hoping for the same kind of insight I've been giving at flashkit for eight years no matter how simple the question. On Sat, Dec 6, 2008 at 10:29 PM, Latcho [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Are you gonna take a map if you have clear line of sight to your destination ? Shall we advise you on traffic light implementation if you are the only driver in the world ? Dont' overengineer. If you want to integrate / learn a design pattern take a more challenging and/or interactive interface. Latcho Joel Stransky wrote: I'm trying to make design patterns a regular part of my process but understanding them and knowing which one to use are proving to be a quite different. I'm working on a couple of classes. One class's job is to iterate over a list of display objects and modify their scale and location based on mouse position. I want this class to be able to work with a runtime generated OR an authortime generated display list. I figure it's as easy as instantiating either a RuntimeChildren or AuthortimeChildren class and passing it to the constructor of my DisplayListUtility class. Since it's so simple, does it even qualify as a design pattern and if so which one? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com mailto:Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- --Joel Stransky stranskydesign.com http://stranskydesign.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] JavaFX released
Dunno why they put energy in this. Java, they had their chances for online animation-focussed penetration, too late now I guess. And the site crashed my pretty stable FF3. Anthony Pace wrote: I am sure if better coders provided better examples it would work well; yet, the applications seem to take forever to load and I have a pretty decent system. Eric E. Dolecki wrote: On my Mac in Firefox when I scroll the page, that player UI flickers on and off. Pretty lame. On Sat, Dec 6, 2008 at 1:15 PM, Jim Robson [EMAIL PROTECTED] wrote: I checked out the drag-able component sample on javafx.com and it didn't work. If you're interested in the details, I put them in a comment on Sten Andersen's blog here: http://blogs.citytechinc.com/sanderson/?p=49#comment-714 hth Jim ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] JavaFX released
Hi Dr. Ache, It's not about it's power. It's also about marketing and market penetration and providing newcomers a solid entry point. Furthermore ... The level of complexity that flash can have now can be harder on starters; AS3, compilers, design patterns and so on will be are no out of the box toys. The main difference for me is that you can start easy and animation friendly via the flash IDE and it's fine documentation. The historical super technical java docs, silly examples. the packaging, the badly documented differences between compiling for online and local aps, and a missing IDE or compiler gui pulled me from going further after some experimenting with it. Just now, nearly half a decade later, after being mentored by good tutorials, a very communicative and a helpful flash and AS community from a simple video editor up to a design-pattern-level coder, just now I would have the courage to check it out again. By the way: processing providde me with a nice wrapper and support to get visual stuff done for starters; I loved it and it's betst part - : the java displaying power and the easy applet pubishing. http://processing.org/ Latcho dr.ache wrote: What I am concerned I do not see any reason why they should NOT do this. I find its pretty obvious. a) They do already have a language actionscript tries to mimic more and more with every release. b) They do have the power flash is lacking especially what desctop is concerned. c) Java was meant to be the internet language ever since. Meaning it has all you need for web based systems. d) Its open source e) Serious corporations DO use Java for their networks and with Flex Adobe is trying to become more mature to be recognized by those companies (SAP, etc) d) Just a guess, but I would say there are more Java developer out there then flash developers - so a hugh audience. e) etc etc I dont think JavaFX will replace something like flash... but it has great power and this is the first release... do you remember flash 1? Latcho schrieb: Dunno why they put energy in this. Java, they had their chances for online animation-focussed penetration, too late now I guess. And the site crashed my pretty stable FF3. Anthony Pace wrote: I am sure if better coders provided better examples it would work well; yet, the applications seem to take forever to load and I have a pretty decent system. Eric E. Dolecki wrote: On my Mac in Firefox when I scroll the page, that player UI flickers on and off. Pretty lame. On Sat, Dec 6, 2008 at 1:15 PM, Jim Robson [EMAIL PROTECTED] wrote: I checked out the drag-able component sample on javafx.com and it didn't work. If you're interested in the details, I put them in a comment on Sten Andersen's blog here: http://blogs.citytechinc.com/sanderson/?p=49#comment-714 hth Jim ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Fwd: Re: [Flashcoders] JavaFX released]
Sorry for the typo's and bad structured mail. I wrote it too fast. Original Message Subject:Re: [Flashcoders] JavaFX released Date: Sat, 06 Dec 2008 22:27:03 +0100 From: Latcho [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com References: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Hi Dr. Ache, It's not about it's power. It's also about marketing and market penetration and providing newcomers a solid entry point. Furthermore ... The level of complexity that flash can have now can be harder on starters; AS3, compilers, design patterns and so on will be are no out of the box toys. The main difference for me is that you can start easy and animation friendly via the flash IDE and it's fine documentation. The historical super technical java docs, silly examples. the packaging, the badly documented differences between compiling for online and local aps, and a missing IDE or compiler gui pulled me from going further after some experimenting with it. Just now, nearly half a decade later, after being mentored by good tutorials, a very communicative and a helpful flash and AS community from a simple video editor up to a design-pattern-level coder, just now I would have the courage to check it out again. By the way: processing providde me with a nice wrapper and support to get visual stuff done for starters; I loved it and it's betst part - : the java displaying power and the easy applet pubishing. http://processing.org/ Latcho dr.ache wrote: What I am concerned I do not see any reason why they should NOT do this. I find its pretty obvious. a) They do already have a language actionscript tries to mimic more and more with every release. b) They do have the power flash is lacking especially what desctop is concerned. c) Java was meant to be the internet language ever since. Meaning it has all you need for web based systems. d) Its open source e) Serious corporations DO use Java for their networks and with Flex Adobe is trying to become more mature to be recognized by those companies (SAP, etc) d) Just a guess, but I would say there are more Java developer out there then flash developers - so a hugh audience. e) etc etc I dont think JavaFX will replace something like flash... but it has great power and this is the first release... do you remember flash 1? Latcho schrieb: Dunno why they put energy in this. Java, they had their chances for online animation-focussed penetration, too late now I guess. And the site crashed my pretty stable FF3. Anthony Pace wrote: I am sure if better coders provided better examples it would work well; yet, the applications seem to take forever to load and I have a pretty decent system. Eric E. Dolecki wrote: On my Mac in Firefox when I scroll the page, that player UI flickers on and off. Pretty lame. On Sat, Dec 6, 2008 at 1:15 PM, Jim Robson [EMAIL PROTECTED] wrote: I checked out the drag-able component sample on javafx.com and it didn't work. If you're interested in the details, I put them in a comment on Sten Andersen's blog here: http://blogs.citytechinc.com/sanderson/?p=49#comment-714 hth Jim ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] JavaFX released
I only said they had the tools for years (java) and the examples (cool nerd applets, processing) to make that shift earlier and to create the atmosphere and invitations to a multimedia minded crowd (how old is that word now). How come that for ex the videoplayer war was on real, ms and qt ? Where was java, where were the java api's, tutorials on video and codec support? Where were the tools and the starter kits. Some where in underground hackersland maybe. Thats what I imply. That's why Java always missed the boat, to get the wright buzz out on the wright time; It just always looked so java, and the dev's thought it was all good with thre new skin toolkit end the sun was shining. How much time does it take to get that nickel dropping ? And how much time will they need to catchup if we merge into a another cycle witch requires new tools and sets new expectations ? And for that reason I'm not encouraged to jump on their boat. They managed to release some-200X-thing and it was about time. Time for the nickel to fall. Latcho dr.ache wrote: I did not say anything else. No one says that it's a direct opponent to flash. but I am pretty sure that this is gonna steal the show for flex in the business line. When you have to build really huge applications enterprise developer are the first who can manage that - and now with the ability of a front-end extension to their OWN language and environment (which includes everything that is still lacking in flex and flash or is at most in the beginning of development like unit tests, dependencies visualisation, blablabla...) they do not need to switch to things like flex. they just need to learn that package like some flash developers need to learn , whatever.. Tweenlite ;-) Just to remember. I just say, there IS a good reason for them to further develop java fx Ashim D'Silva schrieb: As for Java, yes, it's the original, yes, it's a more powerful engine, but as far as front-end web work goes, both those don't matter too much, ease of production, I think, trumps them. And with Flash 10 (CS4) artists and developers have an incredible platform, with simple 3D, inverse kinematics with soft skinning, and a shit load more all ready to go. I don't see Java competing with that too easily. Java always seemed to have its own space, which I knew nothing about; Fx is confusing me. That said, I'd back open source if its got a chance. 2008/12/7 Latcho [EMAIL PROTECTED] Hi Dr. Ache, It's not about it's power. It's also about marketing and market penetration and providing newcomers a solid entry point. Furthermore ... The level of complexity that flash can have now can be harder on starters; AS3, compilers, design patterns and so on will be are no out of the box toys. The main difference for me is that you can start easy and animation friendly via the flash IDE and it's fine documentation. The historical super technical java docs, silly examples. the packaging, the badly documented differences between compiling for online and local aps, and a missing IDE or compiler gui pulled me from going further after some experimenting with it. Just now, nearly half a decade later, after being mentored by good tutorials, a very communicative and a helpful flash and AS community from a simple video editor up to a design-pattern-level coder, just now I would have the courage to check it out again. By the way: processing providde me with a nice wrapper and support to get visual stuff done for starters; I loved it and it's betst part - : the java displaying power and the easy applet pubishing. http://processing.org/ Latcho dr.ache wrote: What I am concerned I do not see any reason why they should NOT do this. I find its pretty obvious. a) They do already have a language actionscript tries to mimic more and more with every release. b) They do have the power flash is lacking especially what desctop is concerned. c) Java was meant to be the internet language ever since. Meaning it has all you need for web based systems. d) Its open source e) Serious corporations DO use Java for their networks and with Flex Adobe is trying to become more mature to be recognized by those companies (SAP, etc) d) Just a guess, but I would say there are more Java developer out there then flash developers - so a hugh audience. e) etc etc I dont think JavaFX will replace something like flash... but it has great power and this is the first release... do you remember flash 1? Latcho schrieb: Dunno why they put energy in this. Java, they had their chances for online animation-focussed penetration, too late now I guess. And the site crashed my pretty stable FF3. Anthony Pace wrote: I am sure if better coders provided better examples it would work well; yet, the applications seem to take forever to load and I have a pretty decent system. Eric E. Dolecki wrote: On my Mac in Firefox when I scroll the page, that player
Re: [Flashcoders] What design pattern would this be?
Are you gonna take a map if you have clear line of sight to your destination ? Shall we advise you on traffic light implementation if you are the only driver in the world ? Dont' overengineer. If you want to integrate / learn a design pattern take a more challenging and/or interactive interface. Latcho Joel Stransky wrote: I'm trying to make design patterns a regular part of my process but understanding them and knowing which one to use are proving to be a quite different. I'm working on a couple of classes. One class's job is to iterate over a list of display objects and modify their scale and location based on mouse position. I want this class to be able to work with a runtime generated OR an authortime generated display list. I figure it's as easy as instantiating either a RuntimeChildren or AuthortimeChildren class and passing it to the constructor of my DisplayListUtility class. Since it's so simple, does it even qualify as a design pattern and if so which one? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] JavaFX released
Sorry couldn't see the content: TypeError: Error #1009: Cannot access a property or method of a null object reference. at Omniture_Utility/onTemplateReady()[/Applications/MAMP/htdocs/flex/Omniture_Utility/Omniture_Utility.as:59] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at com.brightcove.fl.federated.api.modules::ExperienceAPI/onTemplateReady() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at com.brightcove.fl.federated::Template/onContentLoad() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at com.brightcove.fl.federated.content::ContentManager/onContentLoad() at com.brightcove.fl.federated.services::PersistentResponder/onResult() :) Anthony Pace wrote: http://channelsun.sun.com/video/software/javafx/1915439297 Check this out... you know it is kind of funny that they are selling the idea of javaFX through the use of flash hahaha dr.ache wrote: I did not say anything else. No one says that it's a direct opponent to flash. but I am pretty sure that this is gonna steal the show for flex in the business line. When you have to build really huge applications enterprise developer are the first who can manage that - and now with the ability of a front-end extension to their OWN language and environment (which includes everything that is still lacking in flex and flash or is at most in the beginning of development like unit tests, dependencies visualisation, blablabla...) they do not need to switch to things like flex. they just need to learn that package like some flash developers need to learn , whatever.. Tweenlite ;-) Just to remember. I just say, there IS a good reason for them to further develop java fx Ashim D'Silva schrieb: As for Java, yes, it's the original, yes, it's a more powerful engine, but as far as front-end web work goes, both those don't matter too much, ease of production, I think, trumps them. And with Flash 10 (CS4) artists and developers have an incredible platform, with simple 3D, inverse kinematics with soft skinning, and a shit load more all ready to go. I don't see Java competing with that too easily. Java always seemed to have its own space, which I knew nothing about; Fx is confusing me. That said, I'd back open source if its got a chance. 2008/12/7 Latcho [EMAIL PROTECTED] Hi Dr. Ache, It's not about it's power. It's also about marketing and market penetration and providing newcomers a solid entry point. Furthermore ... The level of complexity that flash can have now can be harder on starters; AS3, compilers, design patterns and so on will be are no out of the box toys. The main difference for me is that you can start easy and animation friendly via the flash IDE and it's fine documentation. The historical super technical java docs, silly examples. the packaging, the badly documented differences between compiling for online and local aps, and a missing IDE or compiler gui pulled me from going further after some experimenting with it. Just now, nearly half a decade later, after being mentored by good tutorials, a very communicative and a helpful flash and AS community from a simple video editor up to a design-pattern-level coder, just now I would have the courage to check it out again. By the way: processing providde me with a nice wrapper and support to get visual stuff done for starters; I loved it and it's betst part - : the java displaying power and the easy applet pubishing. http://processing.org/ Latcho dr.ache wrote: What I am concerned I do not see any reason why they should NOT do this. I find its pretty obvious. a) They do already have a language actionscript tries to mimic more and more with every release. b) They do have the power flash is lacking especially what desctop is concerned. c) Java was meant to be the internet language ever since. Meaning it has all you need for web based systems. d) Its open source e) Serious corporations DO use Java for their networks and with Flex Adobe is trying to become more mature to be recognized by those companies (SAP, etc) d) Just a guess, but I would say there are more Java developer out there then flash developers - so a hugh audience. e) etc etc I dont think JavaFX will replace something like flash... but it has great power and this is the first release... do you remember flash 1? Latcho schrieb: Dunno why they put energy in this. Java, they had their chances for online animation-focussed penetration, too late now I guess. And the site crashed my pretty stable FF3. Anthony Pace wrote: I am sure if better coders provided better examples it would work well; yet, the applications seem to take forever to load and I have a pretty decent system. Eric E. Dolecki wrote: On my Mac in Firefox when I scroll
Re: [Flashcoders] structuring singletons in AS3
Hi Mendelshon, You shouldn't use a singleton to take off, just use that main document class to take of ! The main Document class is automatically your main stage as a MovieClip - Displayobject. That is always a static class and is a Singleton by itself I gues becuase you only van have 1 stage :) So if you want to reference that stage from a display-child of that Documentclass( extends Sprite/MovieClip): than from within that child call this.root.stage ; but this is not used most of the time and you can't call functions in the main through that ref. When you add childs to it that need a reference to the main Documentclass, just pass a reference to them when they are created. like package { import flash.display.MovieClip; import flash.display.Stage; import flash.display.StageAlign; import flash.display.StageScaleMode; [SWF( backgroundColor='0x454545', frameRate='30', width='471', height='505')] public class Main extends Sprite { private var app: MyApplication; public function Main():void { app= new MyApplication(this); //here you create a child from class MyApplication (which extends a Sprite or MC) , argument this = reference to the main class addChild(app) } } that way you can start leafing. If you don't want to overcomplicate and have a central point to put some function stuff it isn't that bad to make MyApllication a Singleton which you can easily reference. That doesn't imply that you are advised too :) If your app's start growing and you are adapted to AS3,take a look at PureMVC for example or start playing with events (in AS3 you can extend the Event Class en pass additional parameters). Good Luck Latcho Mendelsohn, Michael wrote: Hmm...I'm not sure what you mean by static class. Are you saying that the other classes I instance via composition in my singleton should themselves be static? - MM Why aren't you using a static class for that instead of a Singleton? Mendelsohn, Michael wrote: Thanks for the responses everyone. Steven, I could use some constructive feedback: Usually what I do is have a singleton instanced when the swf is initialized, and using composition, other classes are instanced within the singleton. So the singleton becomes a sort of tree trunk with everything branching off of it. How would you say that this is a bad idea? It's worked well for me. What would be a more effective alternative to structuring my swfs? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] computeSpectrum not working with mp3 from different server.
From the moment that the media is used to do something else with then ordinary flash playback , e.g. the media data becomes accessible or is exposed to code, flash keeps itself restricted to the basic playback abilities of that media as long as you don't give explicit rights to the media / code. Am I saying this wright ? Latcho Ashim D'Silva wrote: That is how the cross domain policy for flash runs, and has run since player 7. It affects quite a few other things as well like bitmap data operations and other stuff I don't know off the top of my head. Read up on it. 2008/12/1 Carl Welch [EMAIL PROTECTED] Does it matter that I can still hear the sound? It seems weird that I can hear the song playing from a different server but not have the ability to render the computeSpectrum. On Nov 30, 2008, at 5:58 PM, Latcho wrote: SecurityError: Error #2123: Security sandbox violation: SoundMixer.computeSpectrum: http://oniricdev.com/carl/modules/audioPlayer.swf cannot access http://setlist.matisyahuworld.com/2008-11-19-09_Dispatch_The_Troops.mp3. No policy files granted access. at flash.media::SoundMixer$/computeSpectrum() at audioPlayer_fla::MainTimeline/*drawMyShit*() You have to put a crossdomain.xml file on the mp3-server that grants acces to the swf-server domain: http://setlist.matisyahuworld.com/crossdomain.xml [ with xml inside, not html as it renders now] Put it in root of the swf-server or define non-top-level xml location within the swf by Security.loadPolicyFile(urltocrossdomain); Latcho Carl Welch wrote: Hi guys, I just ran into a funky problem with computeSpectrum. it appears that it won't work if the mp3 isn't located on the same server as the swf calling it. Is there a work around for this issue? I tried using this as a solution but it didn't have any effect at all: import flash.media.SoundLoaderContext; var context:SoundLoaderContext = new SoundLoaderContext(); context.checkPolicyFile = true; _sound.load(new URLRequest('http://server/song.mp3'), context); Here is an example of what I have: swf and mp3 on the same server: http://oniricdev.com/carl/modules/audioPlayer_test.swf mp3 from a server other than the one that is hosting my swf: http://oniricdev.com/carl/modules/audioPlayer.swf Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Carl Welch http://www.carlwelch.com http://www.jointjam.com [EMAIL PROTECTED] 805.403.4819 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] computeSpectrum not working with mp3 from different server.
SecurityError: Error #2123: Security sandbox violation: SoundMixer.computeSpectrum: http://oniricdev.com/carl/modules/audioPlayer.swf cannot access http://setlist.matisyahuworld.com/2008-11-19-09_Dispatch_The_Troops.mp3. No policy files granted access. at flash.media::SoundMixer$/computeSpectrum() at audioPlayer_fla::MainTimeline/*drawMyShit*() You have to put a crossdomain.xml file on the mp3-server that grants acces to the swf-server domain: http://setlist.matisyahuworld.com/crossdomain.xml [ with xml inside, not html as it renders now] Put it in root of the swf-server or define non-top-level xml location within the swf by Security.loadPolicyFile(urltocrossdomain); Latcho Carl Welch wrote: Hi guys, I just ran into a funky problem with computeSpectrum. it appears that it won't work if the mp3 isn't located on the same server as the swf calling it. Is there a work around for this issue? I tried using this as a solution but it didn't have any effect at all: import flash.media.SoundLoaderContext; var context:SoundLoaderContext = new SoundLoaderContext(); context.checkPolicyFile = true; _sound.load(new URLRequest('http://server/song.mp3'), context); Here is an example of what I have: swf and mp3 on the same server: http://oniricdev.com/carl/modules/audioPlayer_test.swf mp3 from a server other than the one that is hosting my swf: http://oniricdev.com/carl/modules/audioPlayer.swf Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] protecting flv files.....any recommendations?
obscurity != security: so nope Latcho php_mysql_ as_ dev wrote: Can anyone recommend some techniques for protecting flv files? I didn't realize that streaming video could be lifted. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] passing on ... args
Hi List, How can I pass a variable amount off function arguments to a next function ? Below the way I tried and which fails. While passing them they get combined I'd like to remain 5 variables for args_B and not a single string. Stijn CODE: testargs( a,b,{z:'zz'},[1,2,3],c ) private function testargs(... argsA):void { trace(#args_A:, argsA.length)/// traces: #args_A: 5 passingArgs(argsA) } public function passingArgs(... argsB):void { trace(#args_B:,argsB.length) /// traces: #args_B: 1 for(var i:int=0;iargsB.length;i++) { trace(argsB[i]); } // which traces a string: a,b,[object Object],1,2,3,c }; Latcho ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] passing on ... args
Thanks for the accept as Array tip which looks slimmer then apply(). But the apply I will test too, thanks. Cor what do you mean with ...rest option. Isn't that what I am trying to use (and pass on) Cor wrote: And there is also the ...rest-option -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth Kawamoto Sent: vrijdag 28 november 2008 16:57 To: [EMAIL PROTECTED]; Flash Coders List Subject: Re: [Flashcoders] passing on ... args You can accept them as an Array, e.g.: public function passingArgs(argsB:Array):void { trace(#args_B:,argsB.length); for(var i:int=0;iargsB.length;i++) { trace(argsB[i]); } } Kenneth Kawamoto http://www.materiaprima.co.uk/ Latcho wrote: Hi List, How can I pass a variable amount off function arguments to a next function ? Below the way I tried and which fails. While passing them they get combined I'd like to remain 5 variables for args_B and not a single string. Stijn CODE: testargs( a,b,{z:'zz'},[1,2,3],c ) private function testargs(... argsA):void { trace(#args_A:, argsA.length) /// traces: #args_A: 5 passingArgs(argsA) } public function passingArgs(... argsB):void { trace(#args_B:,argsB.length) /// traces: #args_B: 1for(var i:int=0;iargsB.length;i++) { trace(argsB[i]); } // which traces a string: a,b,[object Object],1,2,3,c }; Latcho ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.9.11/1817 - Release Date: 28-11-2008 8:17 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] online .swf generator
One way: You can compile an swf serverside with flex-sdk and ant, that way you can feed it whatever you want as a main class, config class and orher generic created text var classes. You for ex build a php wrapper around all the command executions. Latcho Michael Stocke wrote: The output file will be a banner ad. The user will be able to choose from about 5 different designs and list of company-approved graphics/logos/imagery. The user will also be able to enter a limited amount of text. My vision is to create templates for each of the 5 designs with blank text fields and placeholders for the logos/graphics. The user will modify a configuration file of some kind through the interface I create, then I will use a yet-to-be-named tool to generated the .swf from a .fla (or other core file) and the customized configuration file (XML, MXML, .txt, etc.). This is why I mentioned JSFL, because I already know how to do this with JSFL. I have zero experience with Flex, so something with the Flash IDE or Flash-based tools would be better. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Axel Aigret Sent: Wednesday, November 26, 2008 12:01 PM To: Flash Coders List Subject: Re: [Flashcoders] online .swf generator Hi :) Can you explain more in detail what must be arrange in your .swf and how ( a gui in flash or you don't care ? ) . What sort of asset , animation , text ? What will be the creation at the end to understand what you want more easier. Axel Aigret Michael Stocke a écrit : Good morning group. I am looking for an online .swf generation tool. Specifically, a user designs a .swf online through a tool that I create, then they submit their work which generates a .swf output. The tool will allow the user to choose from several templates, then customize them by selecting various assets from pre-determined lists and adding some free-form text. From my research so far I'm mainly seeing tools based on Java and C++, both of which aren't really options for me. I have some very limited knowledge of Ming (PHP), but this option is too programming intensive for this scenario. I think JSFL would be my best bet, but I can't find any information about using it for an online server-side implementation. My experience has been for local batching purposes only. Does anyone have any suggestions? The client is open to purchasing an application depending on the cost. Mike Stocke Interface Engineer Organic, Inc. | Detroit 2600 S. Telegraph Road -- Suite 100, Bloomfield Hills, MI 48302 t: 248.454.4015 | f: 248.454.3370 Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Blog: http://Threeminds.Organic.com http://threeminds.organic.com/ Website: www.Organic.com http://www.organic.com/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. Dissemination, distribution or copying of this email or the information herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is prohibited. If you have received this email in error, please immediately notify us by calling our Help Desk at (415) 581-5552 or by e-mailing us at [EMAIL PROTECTED] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] stylesheet default without span or body
Is there a way to apply a default style to a textfield via css without having to refer to a body or span tag ? I now use this additive trick to apply a style to txt content without further html or body tags: tf.styleSheet = Stylesheets.css_center_11pt; tf.htmlText = 'body'+txt+'/body'; How can I circumvent the body's applied to the txt-var ? FYI the Stylesheets getter function looks like this public static function get css_singlebig_ticker():StyleSheet { var myCSS:StyleSheet = new StyleSheet(); myCSS.setStyle(body, {fontFamily:'trebuchet', fontSize:'11', color:'#00'} ); myCSS.setStyle(a:link, {fontSize:'11',color:'#FF'}); } thanks, Latcho ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] What is the best way to scale a bitmap specifically to reduce file size...
file size is something else then memory size. If you want a smaller swf size, you have to make the source image smaller within the fla or before embedding it via code. So be more specific. But I think you are after this: import flash.geom.*; import flash.display.BitmapData; import flash.display.Bitmap; //var container:Sprite = ...I assume you have a container Sprite; // 10 times smaller var scaleFactor:Number = 0.1; var matrix:Matrix = new Matrix (); matrix.scale (scaleFactor, scaleFactor); // x and y scale var bmpData:BitmapData = new BitmapData( int(container.width*scaleFactor), int(container.height*scaleFactor) ); bmpData.draw(container,matrix) addChild(new Bitmap(bmpData,auto,true)); // arguments: bmp,pixelsnapping,smoothing removeChild(container) More nice examples on Matrix here: http://jasu.tistory.com/228 Latcho Anthony Pace wrote: Now when I scale the image it won't display... OMG. this is nuts. I thought I had it all figured out, and then wham... it won't work. Glen Pike wrote: |Hi, Something like this: import flash.display.Bitmap; import flash.display.BitmapData; //original image in here container.width /= 10; ||container.height /= 10;| //maybe invalidate if it does not redraw?? | var a:BitmapData = new BitmapData(container.width, container.height); var b:Bitmap = new Bitmap(a); addChild(b); a.draw(container); container.visible = false;| Anthony Pace wrote: Examples? Glen Pike wrote: Hi, The only way to reduce the memory size of a bitmap is to resize it and reduce the number of pixels. If you are loading images from the server, you might want to think about generating smaller images server side - you may only have to do this once when the image is uploaded, so this may be more useful if you don't require lots of different sizes / unknown sizes at runtime - depends on the project. Wordpress among other things does this quite nicely for you at upload time (when the Wordpress coders stop moaning about FP10 and fix the uploader, it will be even nicer) and there are lots of scripts which are variations - resize on the fly cache, etc. For client side - reduce the size of the container, then draw the bitmap image of this into a new bitmap data object - you should then have a smaller image and you could discard your container'd one. Glen Anthony Pace wrote: I can do it by reducing the size of the container object; yet, the bitmap remains the same file sized and can be scaled well. Is there a way to guarantee the memory usage drops? or at least a better way then mine? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] flex sdk size report
I just tried it, but no size of the embedded assets available. Just the size of the associated classes. :( Jer Brand wrote: I understand that, but it also outputs the size and optimized size of the objects in the swf. It's not a complete replacement, but should supply some information. Jer On Mon, Nov 24, 2008 at 9:37 AM, Ian Thomas [EMAIL PROTECTED] wrote: No, link-report gives an output file containing a list of all the code dependencies of the SWF. i.e. which external classes are used etc. Ian On Mon, Nov 24, 2008 at 2:35 PM, Jer Brand [EMAIL PROTECTED] wrote: I'm betting what you want will be in the compiler options: http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_14.html link-report *filename* might produce what you want. Jer ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] flex sdk size report
here's an output piece of link-reportsize_report.xml/link-report 0.8 KB is kinda small for an ambedded font, so it's just a ref to a generated class for that font I guess, not size of embedded asset. script name=beemway\AssetManager_FONT_TREBUCHET_BOLD.as mod=1227061400187 size=883 optimizedsize=250 def id=beemway:AssetManager_FONT_TREBUCHET_BOLD / pre id=mx.core:FontAsset / dep id=AS3 / /script So no assets size report yet. Jer Brand wrote: I understand that, but it also outputs the size and optimized size of the objects in the swf. It's not a complete replacement, but should supply some information. Jer On Mon, Nov 24, 2008 at 9:37 AM, Ian Thomas [EMAIL PROTECTED] wrote: No, link-report gives an output file containing a list of all the code dependencies of the SWF. i.e. which external classes are used etc. Ian On Mon, Nov 24, 2008 at 2:35 PM, Jer Brand [EMAIL PROTECTED] wrote: I'm betting what you want will be in the compiler options: http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_14.html link-report *filename* might produce what you want. Jer ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re: showing code progress with progress bar
what about a functioncall every 100th loop that has to return fake data (a true or false or anything else) to the loop? Within that function you update the display progress Latcho Mac Angell wrote: Yeah, I actually do have a huge parse that I want to show progress on, but using ENTER_FRAME just seems like a hack. So I guess the answer to my question is no. Thanks everyone for the ideas! Yikes! I don't think he actually wants the loop to take any longer than necessary. I'm assuming he's got some sort of computationally expensive operation (huge parse or something) that he wants to show the progress. How about subdividing your loop into more manageable chunks that get called once a frame? -- -jonathan howe -Mac Angell ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] flex sdk size report
Nope, nothing for assets linked to classes I guess. But good to know this one exists. Jer Brand wrote: I use it for excludes as well. I knew it had class size information and was guessing that would be what you were interested in. Was there nothing suitable in those compiler options I linked up (or a google search for undocumented ones)? Jer On Mon, Nov 24, 2008 at 11:11 AM, Ian Thomas [EMAIL PROTECTED] wrote: Oh, sorry, my bad - I'd missed that info. Just shows that I use it for something completely different. :o) Ian On Mon, Nov 24, 2008 at 3:59 PM, Jer Brand [EMAIL PROTECTED] wrote: I understand that, but it also outputs the size and optimized size of the objects in the swf. It's not a complete replacement, but should supply some information. Jer On Mon, Nov 24, 2008 at 9:37 AM, Ian Thomas [EMAIL PROTECTED] wrote: No, link-report gives an output file containing a list of all the code dependencies of the SWF. i.e. which external classes are used etc. Ian On Mon, Nov 24, 2008 at 2:35 PM, Jer Brand [EMAIL PROTECTED] wrote: I'm betting what you want will be in the compiler options: http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_14.html link-report *filename* might produce what you want. Jer ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] 3D animation of turning note, without 3D framework
2 questions : a) So now I wonder, is there a _true_ morphing class (with morphing points) available for as3 ? b) what is the lightest / easiest way to animate a bitmap of a postnote or paperlike image, that is turning itself around,meaning showing it's backside, I don't want a simple horizontal scale-tweens, but prefferably a class scripted effect with some depth / perspective like effect; Any such class available ? (I'm not a math guru , otherwise I would have wrote it) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] flex sdk size report
Is it possible to output a size report (*) via the Flex Sdk ( I'm compiling in flashdevelop) ? * (similar to flash Publish settings- Generate size report) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flex vs. Flash
Now we are on this topic: Are the components fast reskinnable ? I can guess not: That default flex preloader pops out everywhere .. Not to mention that blue-greyish backgroundcolor: If they had made the default pink that lazy man would think :) Latcho Juan Pablo Califano wrote: However, Flex DOES have animation and effects built into it too, and you can animate with Actionscript in Flex, so it's really more a question of what kind of project you are working on. I must say first that I haven't used Flex a lot. But, even though you can animate stuff with code (either in Flex or in Flash), one of the advantages of Flash is that you can create and edit animations on a timeline, which is a more natural setup for the kind of people that could generally make great animations (designers, artists, animators, etc); most animations done in code, generally by coders, could be almost decent depending on your goal and, yes, simple stuff is usually a one line no-brainer with a tweening engine; but for complex, more interesting and pro animations, a good animator with a timeline could do much better job and in less time, in my opinion. Cheers Juan Pablo Califano 2008/11/19, Merrill, Jason [EMAIL PROTECTED]: And it's not just the advantages Flex has with comboboxes and dropdown menus and the like. There are a ton of other advantages, like for example, databinding, easy to code layout, including liquid layout, easy component creation, easy skinning, TONS of components Flash doesn't have,which are not necessarily just for applications, they could be for games and other interactions, like color pickers, charts, tree, and things like webservice components for data connections (no longer available with Flash). Flexbuilder also has bandwidth profiling and better coding tools that Flash doesn't. For fancy animation stuff, Flash is the clear choice - but anymore, I tend to look at both equally for projects. For large complex stuff, I would go with Flex, - for less complex or animation driven, I would go with Flash. However, Flex DOES have animation and effects built into it too, and you can animate with Actionscript in Flex, so it's really more a question of what kind of project you are working on. Jason Merrill Bank of America Instructional Technology Media · GCIB Staff Support LLD Interested in Flash Platform technologies? Join the Bank of America Flash Platform Developer Community Interested in innovative ideas in Learning? Check out the Innovative Learning Blog and subscribe. -Original Message- From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] On Behalf Of dr.ache Sent: Wednesday, November 19, 2008 3:22 PM To: Flash Coders List Subject: Re: [Flashcoders] Flex vs. Flash unbelievable bad quality this site. would have expected something better from bmw. Joel Stransky schrieb: I'm struggling with this a bit myself. For web based applications that include lots of UI like checkboxes, tabs, dropdowns etc. Flex is the clear choice. That's what it was built for.For small flash elements like banners, animations and video, Flash is probably the best option. But what seems hard to answer is weather or not mxml is a good option for full (FWA quality) flash sites. Look at bmwusfactory.com. All Flex, but did it need to be? On Wed, Nov 19, 2008 at 1:25 PM, Lehr, Ross (N-SGIS) [EMAIL PROTECTED] wrote: I guess this is somewhat off topic, but I'm new to the whole Flex thing. What are some of the reasons one would build something in Flex instead of Flash? Is it just a preference thing, or are there real technical reasons one should build a particular app in Flex? Thanks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] text line overflow
Hi Rob, That is great and complete info ! I overlooked the possibility of getCharIndexAtPoint. Thanks for the example, this will save me a lot of time. Kind regards, Latcho Rob Romanek wrote: Hi Latcho, I see you've gotten a couple response but I'll throw another one in to the mix. The main functions that will interest you are: 1) getCharIndexAtPoint which locates the char at the edge of the textfield 2) replaceSelectedText which is used to substitute in ... This is some code ripped out of a class I use that extends TextField and does a bunch of things for me, one of which is the truncation of text. It is not complete but should give you an idea for approaching this problem. private var _htmlText:String = ; //holds the complete text for the field even when truncation occurs private var _tempText:TextField = new TextField();; //another textField which is used to truncate the text and then place it into this actual field private var _gutterCompensation:Number = -5; // -5 compensates for the gutter on either side of the text private function checkDimensions(){ _htmlText = super.htmlText; if(super.textWidth width - _gutterCompensation){ //use the temporary text holder to do the text shortening and replacing _tempText.htmlText = _htmlText; _tempText.defaultTextFormat = super.defaultTextFormat; //this ensures that the ... are placed using the correct formatting //find the character located at the edge of the text then count back 2 more characters and replace everything from there to the end with ... _tempText.setSelection(super.getCharIndexAtPoint(width-_gutterCompensation, 2)-2, super.text.length); _tempText.replaceSelectedText(...); super.htmlText = _tempText.htmlText; } Again is this an email/modified version so it is not complete just to give you ideas. (I don't remember if I really needed to use super.htmlText or could have gotten by with just this.htmlText) Basically what I do is when the text field looses focus after editting I run the checkDimensions function which does my truncation but also stores the complete text. When the user brings the textfield back in to focus I replace the truncated text with the complete text I have stored. hth, Rob On 17-Nov-08, at 4:26 AM, Latcho wrote: How to break a line of text on the optimal charachter and adding ... if it doesn't fit a single lined textfield | I would like to break | this line of text. | I would like to br... | Any suggestions (AS3) Latcho ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] text line overflow
How to break a line of text on the optimal charachter and adding ... if it doesn't fit a single lined textfield | I would like to break | this line of text. | I would like to br... | Any suggestions (AS3) Latcho ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How much would you charge?
Please. How much does it cost to build a simple but acceptable car ? Pedro Kostelec wrote: As we are talking about money.What would be the price of a very simple but acceptable web page? And how long does it take to the pros to create one? Pedro ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Fwd: Re: [Flashcoders] How much would you charge?]
Hedged or unhedged ? Bob Wohl wrote: about tree fiddy. On Fri, Nov 14, 2008 at 6:12 PM, Latcho [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Please. How much does it cost to build a simple but acceptable car ? Pedro Kostelec wrote: As we are talking about money.What would be the price of a very simple but acceptable web page? And how long does it take to the pros to create one? Pedro ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com mailto:Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com mailto:Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How much would you charge?
Also depends where you are located. In the Netherlands we ask as much as 60 to 90 /hour. But then your coding speed counts in too. I think there are a lot of simple viewers out there like (randompick): http://theflashblog.com/?p=225 http://www.flashmagazine.com/tutorials/detail/as3_photo_gallery/ ... So that might be profitable to ;) dr.ache wrote: Anthony Pace schrieb: What is a fair price for a simple photo gallery, in AS3, that loads the photo data from an XML file? I said between $280 to $350; given the hours it would take me, plus some contingency time. Did I under quote? over quote? what do you think? Still new to this independent stuff. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders depends a littlebit how professional you gonna build this in terms of visual appearance but thats a normal price for that. I just offered pretty much the same but with the feature that the client can upload his files in a given folder on the server and flash gets all the files via php script, so there is no need for maintaining a xml file. the pictures will be shown in a gridwall 3x4 and blend independendly = 290€ (might be a bit underestimated) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders