RE: [Flashcoders] Flash Player security hole
PCWorld has updated its report: Symantec Backtracks on Adobe Flash Warning http://www.pcworld.com/businesscenter/article/146396 Francis Cheng | Senior Technical Writer | Adobe Systems, Inc. http://blogs.adobe.com/fcheng -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Wednesday, May 28, 2008 2:08 PM To: Flash Coders List Subject: RE: [Flashcoders] Flash Player security hole John wrote: this appears to be a known issue, already addressed in the current Player 9.0.124 (and the Astro preview) Adobe statement also says, customers with Flash Player 9.0.124.0 should not be vulnerable to this exploit. I'm confused, the PC World article said, The flaw affects both the recently released Flash Player version 9.0.124 .0 and version 9.0.115.0, http://www.pcworld.com/businesscenter/article/146343/new_adobe_flaw_bein g_used_in_attacks_says_symantec.html Are there or are there not existing security flaws in the 9.0.124.0 version of the player? Jason Merrill Bank of America Global Technology Operations Global Risk LLD eTools Multimedia Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal GTO Innovative Learning Blog subscribe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: [Flash_Tiger] Actionscript Exploit very bad news
This is a good opportunity to remind everyone to upgrade to Flash Player 9.0.124.0, which addresses this vulnerability. http://www.adobe.com/support/security/bulletins/apsb08-11.html Here's a link to the debugger versions of 9.0.124.0: http://www.adobe.com/support/flashplayer/downloads.html#fp9 Francis Cheng | Senior Technical Writer | Adobe Systems, Inc. http://blogs.adobe.com/fcheng -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: Friday, April 18, 2008 1:29 PM To: [EMAIL PROTECTED]; Flash Coders List Subject: [Flash_Tiger] Actionscript Exploit very bad news http://www.matasano.com/log/1032/this-new-vulnerability-dowds-inhuman-fl ash-exploit/ http://documents.iss.net/whitepapers/IBM_X-Force_WP_final.pdf ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] RE: [Flash_Tiger] Actionscript Exploit very bad news
Yes, I'm sure we do test it on Mac OS X. Sorry you're having problems with it. I'll pass this information along to the Flash Player team. Francis Cheng | Senior Technical Writer | Adobe Systems, Inc. http://blogs.adobe.com/fcheng -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth Kawamoto Sent: Friday, April 18, 2008 2:58 PM To: Flash Coders List Subject: Re: [Flashcoders] RE: [Flash_Tiger] Actionscript Exploit very bad news My Intel Mac at work invoked ExpressInstall today for your new security update 9.0.124.0 but failed (again and again), so that I had to do the manual FP download and install. I said this before, but your ExpressInstall never worked on my G5 either. This is stopping us from deploying AS3 in the commercial environment (apart from AIR/JANUS etc), because I cannot say to my clients that their audience will have no problem viewing AS3 contents. Do you (Adobe) actually test your ExpresInstall on Mac ever??? Kenneth Kawamoto http://www.materiaprima.co.uk/ Francis Cheng wrote: This is a good opportunity to remind everyone to upgrade to Flash Player 9.0.124.0, which addresses this vulnerability. http://www.adobe.com/support/security/bulletins/apsb08-11.html Here's a link to the debugger versions of 9.0.124.0: http://www.adobe.com/support/flashplayer/downloads.html#fp9 Francis Cheng | Senior Technical Writer | Adobe Systems, Inc. http://blogs.adobe.com/fcheng ___ 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] Is Adobe fixing this big FP9 problem?
Hi Steven, Where in Grant's post does he say that Adobe refuses to fix this problem? I must have missed that part. If anyone from Adobe has made such a statement, please point it out to me, because I'd have a bone to pick with that person. Grant's post is helpful because he discusses the issue in such detail, but it would be even more helpful to have a concrete test case that exhibits this problem. As Muzak suggested earlier, please take a look at the new Flash Player public bugbase. There's currently a bug titled Memory leak in AS3: https://bugs.adobe.com/jira/browse/FP-49 If this bug report describes the same problem that you experience, please register on the site and vote for the bug. If it doesn't describe what you are experiencing, please help us out and file a new bug report that describes your problem and upload test files if at all possible. Francis Cheng | Senior Technical Writer | Adobe Systems, Inc. http://blogs.adobe.com/fcheng -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: Monday, April 14, 2008 10:48 AM To: Flash Coders List Subject: Re: [Flashcoders] Is Adobe fixing this big FP9 problem? No they are not. In fact, their absolute refusal to fix it is the reason for Grant's post. If you want it fixed, you're going to have to put pressure on Adobe, which they have certainly earned with this. Talk about it on every online forum and blog. Point to Grant's blog entry. Expose the huge memory leak in the player. Talk about how it has crippled AIR as a legitimate desktop application platform. Make major companies like Disney and Turner wary of using AS3 for their Flash sites. Think about the line about automobile recalls in Fight Club. A times B times C equals X. If X is less than the cost of a recall, we don't do one. Unless this affects Adobe financially or embarrass them publicly in the tech industry, they aren't going to do anything about it. Merrill, Jason wrote: Does anyone know if Adobe is fixing this huge FP9 problem? http://www.gskinner.com/blog/archives/2008/04/failure_to_unlo.html Jason Merrill Bank of America GTO and Risk LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal GTO Innovative Learning Blog subscribe. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Is Adobe fixing this big FP9 problem?
Steven, Steven Sacks wrote: We've got better things to do than play into Adobe's attempt to buy time by deflecting it back on the developers ... I'm not trying to deflect anything or to buy time. I was just making a statement that it's more helpful to have concrete test cases. You said yourself that it's difficult to fix, so it seems reasonable to me that having more concrete test cases will make it easier to fix. It's clear that Grant had discussions with Adobe before he wrote that blog post and I'm certain that others have approached the Flash player team with this issue for awhile. You seem to be implying that Grant wrote the blog post only after he was rebuffed or stonewalled by the Flash Player team when he approached them with this issue. I have no idea whether he has contacted the Flash Player team about this issue, but he certainly doesn't explicitly talk about it in his post. In fact, what he does say about the Flash Player team seems to cut the other way: The player team is a group of smart, dedicated people, who are genuinely interested in what you have to say. I'd like to humbly offer a possible alternative motive for Grant's post. Perhaps he understands that the Player team gets a lot of feedback and has to evaluate each issue based not only on its severity, but also on the amount of content and the number of developers that the issue affects. Perhaps his post was an attempt to clarify to the Flash Player team that they have underestimated both the severity and scope of this issue. The Flash GC engine's inner workings is something that nobody outside of Adobe has access into... Not true. The Flash GC engine used in AVM2 is open-source (as part of the Tamarin project). I'm just mentioning this as a point of interest. I'm not in any way deflecting the issue here. I don't expect anyone on this list to actually fix Tamarin GC bugs or to understand the inner workings of the GC before filing a bug report. But if you are curious about the AVM2 garbage collector, named MMgc, here's a link to the Tamarin GC docs: http://developer.mozilla.org/en/docs/MMgc Let's not get into a situation where we are insulting each other's intelligence by acting like the Flash team hasn't been aware of this issue for quite some time. I never said the player team hasn't heard about this. In fact, the bug report I linked to in my last message was filed in late November 2007. Another side note--someone mentioned Grant's blog post on Flexcoders last week, and Alex Harui, who is an order of magnitude smarter than I am, responded: http://tech.groups.yahoo.com/group/flexcoders/message/109455 Francis Cheng | Senior Technical Writer | Adobe Systems, Inc. http://blogs.adobe.com/fcheng -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: Monday, April 14, 2008 12:45 PM To: Flash Coders List Subject: Re: [Flashcoders] Is Adobe fixing this big FP9 problem? Francis Cheng wrote: Grant's post is helpful because he discusses the issue in such detail, but it would be even more helpful to have a concrete test case that exhibits this problem. Francis, With all due respect, the Flash team knows about this, and they don't need any more concrete test cases. We've got better things to do than play into Adobe's attempt to buy time by deflecting it back on the developers to come up with examples while the Flash team tries to get out of their blunder. It's clear that Grant had discussions with Adobe before he wrote that blog post and I'm certain that others have approached the Flash player team with this issue for awhile. Nothing has been done to fix it, so you end up with a public exposure of the issue, as Grant has done. The Flash player team has egg on its face because in AS2 if you unload a swf, it unloads, and in AS3, it doesn't. Period end of statement. The Flash GC engine's inner workings is something that nobody outside of Adobe has access into and we can't possibly make tests that demonstrate whether it is or isn't working. The proof is in the pudding and Grant's post is all the evidence you need. Let's not get into a situation where we are insulting each other's intelligence by acting like the Flash team hasn't been aware of this issue for quite some time. The Flash team is well aware of it, they know why it exists and they know it's difficult to fix. In all likelihood, they knew about it before any developer discovered it. I mean, after all, it works exactly like it was coded to work. It's not technically a bug, it's an engineering decision that is coming back to haunt them. ___ 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] Flash Player Public Bugbase now live
I don't know, but I think it's a great idea. I'll pass your comment on to the AIR team, although I see you've already asked about it on the Apollocoders list. Francis Cheng | Senior Technical Writer | Adobe Systems, Inc. http://blogs.adobe.com/fcheng -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Tuesday, April 08, 2008 6:22 PM To: Flash Coders List Subject: Re: [Flashcoders] Flash Player Public Bugbase now live Any plans for a public AIR bug system? regards, Muzak - Original Message - From: Francis Cheng [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wednesday, April 09, 2008 2:05 AM Subject: [Flashcoders] Flash Player Public Bugbase now live The Flash Player team just announced a new public bug and issue tracking system for both bug reports and enhancement requests. It uses the same JIRA issue tracking system that the Flex team uses. Here's a link to the bugbase: https://bugs.adobe.com/flashplayer/ And here's a link to the announcement: http://www.adobe.com/devnet/logged_in/tmccauley_fplayer_bugbase.html Francis Cheng | Senior Technical Writer | Adobe Systems, Inc. http://blogs.adobe.com/fcheng ___ 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] Flash Player Public Bugbase now live
Okay, I'll let them know. Francis Cheng | Senior Technical Writer | Adobe Systems, Inc. http://blogs.adobe.com/fcheng -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Wednesday, April 09, 2008 2:29 PM To: Flash Coders List Subject: Re: [Flashcoders] Flash Player Public Bugbase now live I didn't ask about opening up the AIR Bug System on Apollocoders. I asked for a url to a bug, which I hoped would be in the Flex Bug System so we could vote for it and was told that the it was added to the AIR Bug System, which isn't publicly available. quote Is the bug logged in the Flex Bug system? If so, post the key or url, so we can vote for it please. /quote reply from=jason williams I can't send you a url because the AIR bug base does not have a public interface. /reply So if you could pass along the request to the AIR team, that would be great!! regards, Muzak ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flash Player Public Bugbase now live
The Flash Player team just announced a new public bug and issue tracking system for both bug reports and enhancement requests. It uses the same JIRA issue tracking system that the Flex team uses. Here's a link to the bugbase: https://bugs.adobe.com/flashplayer/ And here's a link to the announcement: http://www.adobe.com/devnet/logged_in/tmccauley_fplayer_bugbase.html Francis Cheng | Senior Technical Writer | Adobe Systems, Inc. http://blogs.adobe.com/fcheng ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Variable scope within for loops: reusingiteratorvariables
Ian, help is on the way, the ECMAScript 4th edition draft specification contains a new keyword, let, that can be used in place of var to provide block-level scoping. Details for the curious: http://wiki.ecmascript.org/doku.php?id=proposals:block_expressions Francis Cheng | Senior Technical Writer | Adobe Systems, Inc. http://blogs.adobe.com/fcheng -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Thursday, March 27, 2008 1:23 PM To: Flash Coders List Subject: Re: [Flashcoders] Variable scope within for loops: reusingiteratorvariables AFAIK, in AS2 the Flash IDE didn't respect block level scoping, but MTASC did, which led to some confusion. That leads some people to think that AS2 as a language has block level scoping. AS3 definitely doesn't respect block scopes, and I curse every time I trip over that 'variable declared twice' issue. I wish it did. Ian On Thu, Mar 27, 2008 at 8:09 PM, Juan Pablo Califano [EMAIL PROTECTED] wrote: for (var i:int = 0; i 10; i++) { if (i == 5) break; } trace(i); Mmm, have you actually tested the example? Because it does trace 5, since, as it was explained earlier in this thread, there is no block level scoping in AS 3.0. In fact, and this was mentioned too, all var declarations are moved up to be executed as the first actions run in a function's code (I believe that was called hoisting, but I might be wrong). Cheers Juan Pablo Califano 2008/3/27, Steven Sacks [EMAIL PROTECTED]: function doSomething { var i:int; for(i=0;i++;i10) { } } Is functionally identical to this: function doSomething { for(var i:int =0;i++;i10) { } } Wrong. It's not. In the latter example, i is not available after the loop. In the first example, it is. var i:int; for (i = 0; i 10; i++) { if (i == 5) break; } trace(i); -- 5 There are a multitude of uses for this, and I do it all the time. Additionally, I read somewhere many moons ago (back in my FLASM days) that declaring variables outside a for loop is less bytecode and uses less memory. I don't believe that applies to the counter declaration, but I do know it applies to the comparison as well as vars declared inside the for loop. However, this level of optimization is only useful in a practical way on mobile and some games. ___ 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] Classes added
You are correct. This is explicitly mentioned in the AS3 Language Specification: http://livedocs.adobe.com/specs/actionscript/3/as3_specification131.html See the money quote in the last line of the paragraph: 14.11 New expressions A new expression results in the invocation of the intrinsic construct method of the value computed by the expression that follows the new keyword. Arguments, if specified, are passed to the construct method. If no arguments are specified, the parentheses may be omitted. Francis Cheng | Senior Technical Writer | Adobe Systems Incorporated -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Juan Pablo Califano Sent: Monday, January 14, 2008 3:11 PM To: Flash Coders List Subject: Re: [Flashcoders] Classes added ... If I'm not mistaken, these are equivalent. var mySprite:Sprite = new Sprite(); var mySprite:Sprite = new Sprite; However, if you don't use the parenthesis, you can't pass parameters to the constructor. Cheers. Juan Pablo Califano ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Arabic
Just to follow up on Kerry's excellent post, part of the answer to your question lies in what the Flash Player supports. The current version of Flash Player, Flash Player 9, does not support bi-directional text. The next version, however, will provide bi-di support. See Justin Everett-Church's blog for details (Astro is the code name for the next version of Flash Player): http://justin.everett-church.com/index.php/2007/10/02/astro-at-max-2007/ Francis Cheng | Sr. Technical Writer | Adobe Systems Incorporated -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kerry Thompson Sent: Tuesday, December 18, 2007 9:49 AM To: 'Flash Coders List' Subject: RE: [Flashcoders] Arabic Hello there, i´m creating an website in Arabic, and i want to know if flash cs3 has support for arabic language. Flash supports Unicode, so it supports Arabic, up to a point. Arabic, along with Farsi and Hebrew, presents unique problems. It's what's called a bi-directional language, or bi-di in localization jargon. Most of the text goes from right to left, the opposite of European languages. However, if there is an English word or quote, it will go from left to right (I'm just using English as an example--the same holds true for any left-to-right language). Also, Arabic characters actually change shape depending on context, e.g. the beginning of a word vs. inside a word, or when it is used in conjunction with certain other characters. I also believe numerals are written left-to-right. And there's the issue of the period vs. the decimal point. I can be quite complex to analyze in code. All this isn't meant to discourage you, but to point you in the right direction. Your text will almost certainly need to be written on an Arabic system. And, of course, you will need to test on an Arabic system, with an Arabic-enabled browser. This isn't directly related to Flash, but be sure to have somebody fluent in both the Arabic language and the culture of your target countries. Graphics can be a big issue when you're working cross-culture. A couple of examples come to mind--the American V for Victory sign, with the index and middle finger forming a V, is a very bad insult in some South American cultures. A famous example was when the American president Richard Nixon visited a South American country. He stepped out of the plane with both hands raised in that gesture. The picture ran on the front pages of several South American newspapers, because Nixon was essentially giving a big F**k You to the country. More recently, American troops in Iraq took way too long to figure out that the American sign for Stop!, a hand held up, palm facing forward, was a Welcome sign in Iraqi culture. I'm not going to get into politics--just an illustration of why you need to pay attention to your graphics. 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] Arabic
Kerry Thompson wrote: I take that to mean that the Flash player doesn't support bi-di input. Am I right in assuming that it could display bi-di text? Flash Player 9 definitely doesn't support bi-di input, and its support for rendering bi-di text is pretty limited. Some developers have been able to display bi-di text, but have complained that it is much harder than it should be. See the comments for this blog post: http://weblogs.macromedia.com/emmy/archives/2007/05/tiny_clarificat.cfm So can you read a bi-di text file, or XML, or a string passed from, say, an ASP page? Or do we need to wait for Astro? I'm not an expert in this, but I believe that you can do this now. However, there are challenging issues regarding text flow, selection management, and line breaking, etc, that will be much easier to deal with in Astro. If you check the comments to the link above, there are some links to examples of SWFs that use Arabic text. Francis Cheng | Sr. Technical Writer | Adobe Systems Incorporated ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] [Sort of OT] Flex Usage - IDE
Speaking of Flex Builder, if you are a current student or faculty member at an educational institution, you can get it for free for educational purposes: http://www.adobe.com/products/flex/productinfo/faq/#flex_faculty Francis Cheng | Sr. Technical Writer | Adobe Systems Incorporated -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Monday, December 17, 2007 8:12 AM To: Flash Coders List Subject: RE: [Flashcoders] [Sort of OT] Flex Usage - IDE You can use Flex for any commercial project (Flex is the framework, not the tool, and Flash is the platform). For example, there is a free Flex SDK that will compile Flex .swfs for you. If you're referring to the Flexbuilder tool, you can use it for any commercial project granted you have purchased a legal copy. Trial version of Flexbuilder are just for trying it out, not building commercial products. Jason Merrill Bank of America LLD GTO eTools Multimedia Research Development ___ 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] as3 + non english input charCode ?
As far as I know, you can't use the KeyboardEvent class for this purpose because KeyboardEvent.charCode is designed to return the same value no matter which language you use for input. What you need to do is actually capture the value input into your text field and use String.charCodeAt() on that value. Here's a blog post I came across with a working example and the source code behind it: http://blog.flexexamples.com/2007/07/21/finding-out-a-characters-unicode-character-code/ It's a flex example, but the core ActionScript code would be pretty much the same in Flash. Just use charCodeAt() on the value you grab from your custom textfield. When I switch my input mode to Russian for the sample swf on that page, I get charcode 1092 for russian key ф and charcode 97 for English key a. HTH, Francis Cheng | Sr. Technical Writer | Adobe Systems Incorporated -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dani Bacon Sent: Wednesday, December 12, 2007 12:02 PM To: Flash Coders List Subject: Re: [Flashcoders] as3 + non english input charCode ? kerry hi, and thx i think i didnt explain myself well. i am using arial and i am successful in typing into a textfield, but thats not what i am trying to do. i am trying to listen to the keyboardevent keyDown and know which character was typed (in langauge other than english). for example set up an empty FLA with the following code stage.addEventListener( KeyboardEvent.KEY_DOWN, test ); function test( evt:KeyboardEvent ):void { trace( String.fromCharCode( evt.charCode )); } if i have a russian keyboard layout and i type the russian key ф ( a key in english layout ) the prev code still traces a. i need somehow to know what russian (or other language) char was typed. basically i built my own custom textfield that has some special functionality and it captures the keyboard etc and i am trying to get it to work also with other languages, but it seems the keyboardevent doesnt let me know which foreign language char was typed. anyone ? ideas ? On Dec 12, 2007 8:08 PM, Kerry Thompson [EMAIL PROTECTED] wrote: Dani Bacon wrote: KeyboardEvent.charCode, as stated in the as3 docs, returns the english keyboard layout char code that was pressed... that is even when i switch my keyboard to a russian layout, i keep getting the charCodes as if it was still set to english. so, how do i get the russian char that was typed (or any other language) ? You need to use a Unicode font. If you're on Windows, you probably have Arial Unicode MS. Embed the Cyrillic character set, and it should work. 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] Accessing MovieClips on a timeline from an AS3 class
It looks to me like Matt avoided the namespace conflict by using a private variable that differs from the instance name in case only. Note that he uses all lowercase 'fullscreen' to represent the instance name 'fullScreen'. Just to provide some background as to what's going on here, Flash CS3 is automatically declaring variables for all instances on the stage. In other words, Matt already has access to the instance name in his document class, without having to declare it in his class. That's why you get the duplicate name error if you declare it yourself. So Matt's original code example will work if you simply delete the declaration: private var fullScreen:MovieClip. If you don't want Flash CS3 to automatically declare variables, you can turn off that feature by going to the Publish Settings dialog box, selecting the Flash tab, and clicking on the Settings button. In the ActionScript 3.0 Settings dialog box that appears, uncheck the checkbox labeled: Automatically declare stage instances. If you disable this feature, note that Flash CS3 still expects those variables to exist and will still execute assignment statements that bind those variables to the instances on stage. This means that you either have to declare the variables yourself (and they have to be public, by the way) or declare the class as dynamic so that the variables can be added at runtime (specifically, at the time the assignment statements are executed). Francis Cheng | Sr. Technical Writer | Adobe Systems Incorporated -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sunil Jolly Sent: Thursday, July 12, 2007 9:51 AM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class Does that work? I'm getting a namespace conflict. Sunil -Original Message- Thanks all, I ended up with something like this... package com.foo.view.playerSkins { import flash.display.MovieClip; import com.sky.view.playerSkins.*; public class SkinInventory extends MovieClip{ private var fullscreen:MovieClip; public function SkinInventory() { _init(); } private function _init():void { fullscreen = getChild(this, fullScreen); fullscreen = (fullscreen as FullScreen); } public function getChild(stage, _name:String):MovieClip { return stage.getChildByName(_name); } } } On 7/12/07, Sunil Jolly [EMAIL PROTECTED] wrote: Hi Matt, AS3 is slightly different. You need to say: private var fullScreen_mc:MovieClip = getChildByName(fullscreen); Note that the reference (fullscreen_mc) can't be the same as the name on the stage (fullscreen). Also in AS3 you can actually set instance variables outside of functions. I'm quite new to AS3 so I'd be interested if there's another way to do this. I haven't really worked out a good naming convention for this yet either - anyone have any ideas? Sunil ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class
I'm guessing that the odd reason has something to do with the behavior of the private attribute in AS2 versus AS3. As most of you are aware, the private attribute in AS2 only restricts access at compile time. In AS3, however, private restricts access at both compile time and runtime. Just a guess, though, I could be barking up the wrong tree. Francis -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Thursday, July 12, 2007 5:21 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class This means that you either have to declare the variables yourself (and they have to be public, by the way) or declare the class as dynamic so that the variables can be added at runtime (specifically, at the time the assignment statements are executed). I think the has to be public thing is one of the most annoying things that has changed between AS2 and AS3. In AS2 you can place assets on stage and declare them as private in your class. In AS3 this is not allowed/possible for some odd reason. regards, Muzak - Original Message - From: Francis Cheng [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Thursday, July 12, 2007 11:02 PM Subject: RE: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class It looks to me like Matt avoided the namespace conflict by using a private variable that differs from the instance name in case only. Note that he uses all lowercase 'fullscreen' to represent the instance name 'fullScreen'. Just to provide some background as to what's going on here, Flash CS3 is automatically declaring variables for all instances on the stage. In other words, Matt already has access to the instance name in his document class, without having to declare it in his class. That's why you get the duplicate name error if you declare it yourself. So Matt's original code example will work if you simply delete the declaration: private var fullScreen:MovieClip. If you don't want Flash CS3 to automatically declare variables, you can turn off that feature by going to the Publish Settings dialog box, selecting the Flash tab, and clicking on the Settings button. In the ActionScript 3.0 Settings dialog box that appears, uncheck the checkbox labeled: Automatically declare stage instances. If you disable this feature, note that Flash CS3 still expects those variables to exist and will still execute assignment statements that bind those variables to the instances on stage. This means that you either have to declare the variables yourself (and they have to be public, by the way) or declare the class as dynamic so that the variables can be added at runtime (specifically, at the time the assignment statements are executed). Francis Cheng | Sr. Technical Writer | Adobe Systems Incorporated ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class
Sorry, I wasn't clear about my theory. Let me try again. I think that you have to declare variables that represent stage instances as public because Flash CS3 automatically executes an assignment statement at runtime that involves those variables. If those variables are declared as private, they are invisible at runtime, so the assignment attempt results in an error. Francis -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Thursday, July 12, 2007 6:14 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class I'm aware of the differences, I just don't understand why it *has* to be public. Or put differently, I don't like that it has to be public. If I had to guess, I'd say it has something to do with the display list. regards, Muzak - Original Message - From: Francis Cheng [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, July 13, 2007 2:45 AM Subject: RE: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class I'm guessing that the odd reason has something to do with the behavior of the private attribute in AS2 versus AS3. As most of you are aware, the private attribute in AS2 only restricts access at compile time. In AS3, however, private restricts access at both compile time and runtime. Just a guess, though, I could be barking up the wrong tree. Francis -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Thursday, July 12, 2007 5:21 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class This means that you either have to declare the variables yourself (and they have to be public, by the way) or declare the class as dynamic so that the variables can be added at runtime (specifically, at the time the assignment statements are executed). I think the has to be public thing is one of the most annoying things that has changed between AS2 and AS3. In AS2 you can place assets on stage and declare them as private in your class. In AS3 this is not allowed/possible for some odd reason. regards, Muzak ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Abstract classes in AS3?
The official rationale can be found in Chapter 9 of the latest draft specification of ECMAScript 4th edition: quote Rationale: making a constructor always public reinforces the user model of classes, like functions, as constructors. While other languages allow constructors methods to be made inaccessible to keep outside code from creating instances, this use case was not deemed important enough to complicate the language design. It is a compatible change to allow explicit access control namespace attributes in a later edition. /quote The entire draft specification can be found online at the Mozilla website: http://developer.mozilla.org/es4/ If you are wondering why it would complicate the language design, my understanding is that the complication stems from ECMAScript's treatment of class objects and constructor methods. As one engineer described it to me, ECMAScript blurs the distinction between the two. Consequently, allowing access specifiers other than public on a constructor would require changes to the object model. This would have to be done carefully in order to preserve backward compatibility. If you feel that private constructors are an important language feature, please add a feature request on the Adobe feature request/bug report form: http://www.adobe.com/support/email/wishform Francis -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Mike Sent: Tuesday, July 11, 2006 11:45 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Abstract classes in AS3? That does seem stupid and completely pointless. I use private constructors all the time. Is there an official rationale for this? -- T. Michael Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cédric Néhémie Sent: Tuesday, July 11, 2006 11:30 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Abstract classes in AS3? Chris, from the latest AS3 Language Reference (http://livedocs.macromedia.com/flex/2/langref/index.html), in compile-time errors section : 1153 - A constructor can only be declared public I don't understand why Adobe do that ? If somebody have an idea, I'ld be buyer ? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash Player 9 Public Beta for Apple Intel-based Macintosh computers
The Flash Player 9 Public Beta for Apple Intel-based Macintosh computers is now available: http://www.adobe.com/products/flashplayer/public_beta/ Francis ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Date Object Problem
I think Bart's suggestion is a good one. I suspect the problem may be a local time zone offset issue. The Date object stores a date value as an integer representing the number of milliseconds since the Epoch (midnight Jan 1, 1970 UTC). If you don't use UTC dates rigorously, you leave yourself open to the vagaries of time zone offset problems. In other words, the time zone setting on your computer matters when you create a date object the way you described below. You can test this by running the following code, then running it again after adjusting the time zone setting on your computer: // results from San Francisco var checkin = new Date(2006,5,20); trace(checkin);// Tue Jun 20 00:00:00 GMT-0700 2006 trace(checkin.getTime()); // 115078680 // results when Time zone is set to London trace(checkin);// Tue Jun 20 00:00:00 GMT+0100 2006 trace(checkin.getTime()); // 115075800 Notice that you actually get different millisecond values. Also notice that the London local time version of new Date(2006,5,20) will always be interpreted as June 19 in the US because if it's midnight in London, it's always the day before here in the US. The best way to avoid this problem is to always work with UTC dates. Try the same test above, using the Date.UTC() method, and you'll find that the millisecond value is the same no matter which time zone setting you use: var checkinUTC = new Date(Date.UTC(2006,5,20)); trace(checkinUTC); // [June 20, 2006 in your local time] trace(checkinUTC.getTime()); // 115076160 Just be sure to always use the UTC versions of the Date class methods and properties, or you'll experience the same problem: trace(checkinUTC.getUTCFullYear()); // 2006 trace(checkinUTC.getUTCMonth());// 5 trace(checkinUTC.getUTCDate()); // 20 HTH, Francis -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Bart Wttewaall Sent: Tuesday, May 02, 2006 5:15 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Date Object Problem I'm not sure if it'll solve your problem, but you might want to check out Date.UTC var maryBirthday_date:Date = new Date(Date.UTC(1974, 7, 12)); trace(maryBirthday_date); I'm not sure what it does (something with universal time), since the documentation is quite cryptic, but perhaps it's related..? Good luck. 2006/5/2, Nick McNeill [EMAIL PROTECTED]: First off, long-time member of this list and have gained a wealth of knowledge from the wisdom here. Thank You All. I'm having a very confusing problem using the Date Object. I have a hotel reservation system built in flash, when an international reservation (outside of the US, mainly Europe ) comes through, the dates are off by 1 day. I cannot recreate the problem using any system setup in the US, only via a friend in London doing some testing for me. Problem: create new Date using May 20th 2006 var checkin = new Date(2006,5,20); is getting converted to May 19th if you are in Europe, fine in the US. In plain terms, someone is trying to book 5/20/06 thru 5/22/2006, but gets booked 5/19/06 thru 5/21/06 instead. This system has booked literally thousands of domestic US reservations and we've never seen this until we opened it up to international customers. Any insight to why this could be happening, or any known workarounds for a problem like this would be wonderful. I haven't tried using the timezone offset yet, any ideas if that might be a cure? Nick McNeill Intellistrand 843-839-1480 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] LocalConnection from SWF - Visual Basic?
David is correct, LocalConnection does not write to a file--it uses shared memory. I'm not an expert on LocalConnection, but it doesn't surprise me that you can experience some latency if a dozen SWF files are all sharing memory with a single gateway SWF file. The beleaguered gateway SWF would have to manage a dozen different shared memory allocations (and I believe there is polling involved). As for the original question about communicating with a VB application, if you can publish for Flash Player 8, ExternalInterface is the way to go. Francis -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Tom Lee Sent: Wednesday, April 26, 2006 4:12 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] LocalConnection from SWF - Visual Basic? I can't say for sure whether LocalConnection writes to a file or not, but I did want to point out that it can be pretty slow, depending on the number of swfs talking to the gateway swf at once. It certainly SEEMED like it was doing some file IO. In my experience, 10 or 12 swfs talking to the gateway swf through LocalConnection (at once) caused some pretty serious latency. ExternalInterface, on the other hand, didn't have noticeable delays. -tom -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Rorex Sent: Wednesday, April 26, 2006 6:59 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] LocalConnection from SWF - Visual Basic? LocalConnection is asynchronous. I don't know how mProjector got synchronous code in flash 7, it had to be some very clever hack. However, synchronous calls are supported natively in flash 8 (via ExternalInterface, which communicates with the host using a documented XML format I believe). SharedObject writes to a file, but I don't know if the format is documented anywhere. I'm pretty sure LocalConnection does something in memory, and doesn't go through files. But I don't know all the details on how these are implemented internally. -David R On 4/26/06, JesterXL [EMAIL PROTECTED] wrote: Hrm... I think SharedObject LocalConnection both write to a file that you could check, but not really sure. I think that's how mProjector managed to get syncronous code, not sure. Darron might have something here: http://www.darronschall.com/weblog/archives/000151.cfm I coulda swore someone else did something similiar, but the link escapes me - Original Message - From: Rifled Cloaca [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, April 26, 2006 6:50 PM Subject: Re: [Flashcoders] LocalConnection from SWF - Visual Basic? Yeah, that was plan B. I was curious, though, if it were possible without embedding a proxy SWF. Thanks! On 4/26/06, JesterXL [EMAIL PROTECTED] wrote: Have one SWF embedded in the VB app that exposes the LocalConnection. Hey can talk to VB via ExternalInterface. Every other SWF can talk to the VB app via that LocalConnection proxy SWF embedded in VB. - Original Message - From: Rifled Cloaca [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, April 26, 2006 6:21 PM Subject: [Flashcoders] LocalConnection from SWF - Visual Basic? All, Does anyone know if it's possible to create a LocalConnection between a SWF file and a Visual Basic App? If so, are there any open source examples out there? Thanks! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] System.Locale
Re: the long livedocs links: that was one of the first enhancement requests we received, so now at the bottom of every livedocs page you will find a more user-friendly link (look for the text Current page: http://...;). For example, the page you mention is: http://livedocs.macromedia.com/flash/8/main/2061.html HTH, Francis -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Friday, March 24, 2006 9:54 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] System.Locale What you want is System.capabilities.language: http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/w wh elp.htm?context=LiveDocs_Partsfile=2061.html Sorry for the long URL - that's livedocs for you! HTH, Ian On 3/24/06, Robert Chyko [EMAIL PROTECTED] wrote: Regarding Internationalization - does the Flash Player have access to the language code or is it something that needs to be passed in to your movie? Bob ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] System.Locale
We changed it as of Flash Player 7 because the locale isn't really a language setting, it only deals with formatting of dates, times, etc., so it was misleading to call it System.capabilities.language. Moreover, there was no way in Flash Player 6 to get information about the actual localized OS version. We thought it would be far more useful to get information about the actual language of the localized version of the OS, as opposed to the setting for dates, times, etc. == Flash Player 6 System.capabilities.language == Windows User Locale This is an excerpt from the Windows documentation for User Locale (http://www.microsoft.com/globaldev/reference/localetable.mspx): The user locale determines, which default settings a user wants to use for formatting dates, times, currency, and large numbers. Although it's presented as a language (some in a combination with a country), it's not a language setting. == Flash Player 7+ System.capabilities.language == Windows UI Language Another excerpt from the Windows docs: The system language is the language of the localized version that was used to setup Windows 2000. All menus, dialog, error messages, and help files are in this language, except on Windows 2000 Multilanguage Version, where the user can select a different language. If you would like a new System.capabilities.locale property added that gives you the user locale, I encourage you to file an enhancement request on our web page. We do actually tally the responses we get from those. http://www.macromedia.com/cfusion/mmform/index.cfm?name=wishform HTH, Francis -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Robert Chyko Sent: Friday, March 24, 2006 10:05 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] System.Locale Thanks Ian. This is pretty much what I need except actual Locale would be better (only because it doesn't differential en-us from en-uk). But apparently that is what they did away with in Flash Player 7, according to the docs: In Flash Player 6 on the Microsoft Windows platform, System.capabilities.language returns the User Locale, which controls settings for formatting dates, times, currency and large numbers. In Flash Player 7 on the Microsoft Windows platform, this property now returns the UI Language, which refers to the language used for all menus, dialog boxes, error messages and help files. Looks like I am 2 versions too late. I wonder why they got rid of the Locale? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Friday, March 24, 2006 12:54 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] System.Locale What you want is System.capabilities.language: http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/w whelp.htm?context=LiveDocs_Partsfile=2061.html Sorry for the long URL - that's livedocs for you! HTH, Ian On 3/24/06, Robert Chyko [EMAIL PROTECTED] wrote: Regarding Internationalization - does the Flash Player have access to the language code or is it something that needs to be passed in to your movie? Bob ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Simple date comparison bug?
This is due to the ECMAScript algorithm for determining equality. You'll find that JavaScript behaves the same way. Date objects are not primitives, so they will only compare as equal if both Date variables reference the same Date object (i.e. var d2 = d1;) The ECMAScript algorithms for = and =, however, convert both operands to Number before the comparison. Date objects converted to the Number data type gives you the number of milliseconds since the epoch. The upshot is that to test for equality of Date objects, either convert them to numbers first or use valueOf(): trace (Number(d1) == Number(d2)); trace (d1.valueOf() == d2.valueOf()); Francis -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, March 23, 2006 3:40 PM To: 'Flashcoders mailing list' Subject: [Flashcoders] Simple date comparison bug? Don't know why I haven't come across this before, but can anyone confirm this for me (and maybe give an explanation)? code var d1:Date = new Date( 1970, 0 ); var d2:Date = new Date( 1970, 0 ); trace( d1 == d2 ); // false trace( d1 = d2 ); // true trace( d1 = d2 ); // TRUE?! /code Umm… If something is both = *and* = the only possibly is that it is equal. So… WTF? dave myron principal, technical director contentfree ⊡ 206.855.5580 phone | 206.774.2767 fax ⊠ [EMAIL PROTECTED] ⊟ 337 1st ave ne. suite 100, issaquah, wa 98027 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [FlashCoders] textfield swapDepths
A couple corrections: 1. Use instead of || in the if conditional statement 2. In the else block, change in identifier to a name that isn't a keyword (e.g. tempInst). function removeMofo(mc) { var theD = mc.getDepth(); if ( theD -1theD 1048576) { mc.removeMovieClip(); } else { var tempInst = mc._parent.getInstanceAtDepth(100); mc.swapDepths(100); mc.removeMovieClip(); if ( tempInst != null) { // put it back tempInst.swapDepths ( 100 ); } } } Francis -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of JesterXL Sent: Thursday, February 09, 2006 10:14 AM To: Flashcoders mailing list Subject: Re: [FlashCoders] textfield swapDepths function removeMofo(mc) { var theD = mc.getDepth(); if ( mc.getDepth() -1 || mc.getDepth() 1048576) { mc.removeMovieClip(); } else { var in = mc._parent.getInstanceAtDepth(100); mc.swapDepths(100); mc.removeMovieClip(); if ( in != null) { // put it back in.swapDepths ( 100 ); } } } ...untested... only works in F7 - Original Message - From: Tom Rhodes [EMAIL PROTECTED] To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com Sent: Thursday, February 09, 2006 12:51 PM Subject: RE: [FlashCoders] textfield swapDepths someone posted a function the other day on here that means you can remove clips on a negative depth. the basis of it was a swapdepths before the remove as I recall, have a look. might even have been yesterday... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Fanetti Sent: 09 February 2006 18:38 To: Flashcoders mailing list Subject: Re: [FlashCoders] textfield swapDepths WOW! I never knew Flash would not remove _mcs with negative depth. I just tried it and it and it won't work. I guess you learn something new every day. import flash.geom.Rectangle import flash.display.BitmapData _mc = _root.createEmptyMovieClip(rect_mc,3); _bdm = new BitmapData(300,200,false,0xFF); _mc.attachBitmap(_bdm,0); _mc.onPress = function(){ trace(removing) this.removeMovieClip(); } ___ 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@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] AS3.0 Alpha property not working with Sprite Objects
It looks like the documentation currently posted on Macromedia Labs incorrectly lists the range as 0 through 100. This is fixed internally, so the next time we publish the docs it will be correct. Sorry for the confusion it caused. Francis -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Ralph Caraveo Sent: Tuesday, November 29, 2005 12:06 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] AS3.0 Alpha property not working with Sprite Objects Holy smokes Francis, This did not occur to me. In reading through the macromedia documentation a few times I did not realize this. Either it's not very clear in their documentation or I just don't know the documentation well enough. Thanks, that's the problem! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Francis Cheng Sent: Tuesday, November 29, 2005 11:57 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] AS3.0 Alpha property not working with Sprite Objects Hi Ralph, Are you using values between 0 and 100, or 0 and 1.0? In ActionScript 3, the range of alpha values is from 0 to 1, inclusive. Francis -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Ralph Caraveo Sent: Tuesday, November 29, 2005 11:38 AM To: Flashcoders mailing list Subject: [Flashcoders] AS3.0 Alpha property not working with Sprite Objects Choice Internet Home Page http://www.choiceinternet.com Choice Internet 17785 Center Court Dr. Suite 280 Cerritos, CA 90703 Tel: 562 865 6886 x112 Fax: 562.865.6889 M:\emailTemplate\arrowLightBlue.gif www.choiceinternet.com http://www.choiceinternet.com Hey peeps, When using FlexBuilder 2 Alpha and writing ActionScript 3 here is my question: When I instantiate a Sprite object and adjust it's alpha property it does not respond accordingly. mySprite.alpha = 0; this works by totally hiding the object as expected but every other value I use does not work it just keeps the alpha at 100 percent still. Anybody know if this is a bug or if there is something I'm overlooking, which is probably the case. -Ralph Ralph Caraveo, Senior Programmer [EMAIL PROTECTED] mailto:[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 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] AS3 Hi-Jinks : Call to a possibly undefined method
We're still working on the actual text of the error messages, and yes, that one could certainly be a little less cryptic. Have you seen the Error and Warning Codes appendix in the language reference? It includes descriptions for some of the more common error codes: http://livedocs.macromedia.com/labs/1/flex/langref/errorCodes.html As for your particular issue, one thing to keep in mind is that Sprite doesn't inherit from flash.display.Graphics, so your Test object doesn't have a moveTo() method. What your Test object does have is a graphics property that contains a Graphics object. So change: this.moveTo(0,0); to graphics.moveTo(0,0); And it should compile. For example, the following code draws a red line: package { import flash.display.Sprite; public class MoveToTest extends Sprite { public function MoveToTest() { graphics.lineStyle(1,0xFF,1); graphics.moveTo(100,100); graphics.lineTo(200,200); } } } Thanks, Francis -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Shaw, Matt Sent: Thursday, October 20, 2005 5:36 PM To: Flashcoders mailing list Subject: [Flashcoders] AS3 Hi-Jinks : Call to a possibly undefined method My Lord, I'm having a splendid time when AS3 - but some of theses errors are heinous... Call to a possibly undefined method moveTo through a reference with static type Test So, I've got this class Test, which extends Sprite and is attempting to call this.moveTo(0,0) I'm know that Sprite has a moveTo method - inherited from flash.display.Graphics. So, I'm not seeing how this is possibly undefined. And through a reference with static type Test? There is nothing static about my Test class. Any idears? package { import flash.display.Sprite; public class Test extends Sprite { public function Test() { this.moveTo(0,0); } } } ___ 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