RE: [Flashcoders] Vector.map()
You're right Kenneth. var g:Vector.uint = Vector.uint([1,2,3,4,5]); var hh:Vector.uint = g.slice(); var h:Vector.uint = g.map(mapper); var a = 5; function mapper(item:uint,ind:uint,g:Vector.uint):Vector.uint{ trace(g[ind]+30); return g; } In this case, hh returns the vector, and h still returns null. - MM -Original Message- From: Kenneth Kawamoto [mailto:kennethkawam...@gmail.com] Sent: Thursday, August 18, 2011 5:15 PM To: Flash Coders List Cc: Mendelsohn, Michael Subject: Re: [Flashcoders] Vector.map() What do you get for h? Kenneth Kawamoto http://www.materiaprima.co.uk/ On 18/08/2011 21:08, Mendelsohn, Michael wrote: Hi Kenneth... This is working for me: var g:Vector.uint = Vector.uint([1,2,3,4,5]); var h:Vector.uint = g.map(mapper); function mapper(item:uint,ind:uint,g:Vector.uint):void{ trace(g[ind]+30); } Hope that helps, - Michael M. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kenneth Kawamoto Sent: Thursday, August 18, 2011 9:27 AM To: Flash Coders List Subject: [Flashcoders] Vector.map() Dear coders, Vector.map() is supposed to return a new Vector but it appears to return nothing (undefined). Is this working for you? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Vector.map()
It sure seems like the documentation is off from what it actually does. Maybe in the mapper function, you can push each iteration out to a new array instead. :-/\ Good luck! - Michael M. -Original Message- From: Kenneth Kawamoto [mailto:kennethkawam...@gmail.com] Sent: Friday, August 19, 2011 9:14 AM To: Mendelsohn, Michael Cc: kennethkawam...@gmail.com; Flash Coders List Subject: Re: [Flashcoders] Vector.map() private function arrayMapper(item:uint, index:uint, array:Array):uint { return item + 30; } trace([1, 2, 3, 4, 5].map(arrayMapper)); // traces 31,32,33,34,35 Array.map() does what it says it does. private function vectorMapper(item:uint, index:uint, vector:Vector.uint):uint { return item + 30; } trace(new uint[1, 2, 3, 4, 5].map(vectorMapper)); // traces undefined Vector.map() does, well, f-all. I can use forEach() to get what I want but this doesn't look right. Thanks for testing MM! Kenneth Kawamoto http://www.materiaprima.co.uk/ On 19/08/2011 13:36, Mendelsohn, Michael wrote: You're right Kenneth. var g:Vector.uint = Vector.uint([1,2,3,4,5]); var hh:Vector.uint = g.slice(); var h:Vector.uint = g.map(mapper); var a = 5; function mapper(item:uint,ind:uint,g:Vector.uint):Vector.uint{ trace(g[ind]+30); return g; } In this case, hh returns the vector, and h still returns null. - MM -Original Message- From: Kenneth Kawamoto [mailto:kennethkawam...@gmail.com] Sent: Thursday, August 18, 2011 5:15 PM To: Flash Coders List Cc: Mendelsohn, Michael Subject: Re: [Flashcoders] Vector.map() What do you get for h? Kenneth Kawamoto http://www.materiaprima.co.uk/ On 18/08/2011 21:08, Mendelsohn, Michael wrote: Hi Kenneth... This is working for me: var g:Vector.uint = Vector.uint([1,2,3,4,5]); var h:Vector.uint = g.map(mapper); function mapper(item:uint,ind:uint,g:Vector.uint):void{ trace(g[ind]+30); } Hope that helps, - Michael M. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kenneth Kawamoto Sent: Thursday, August 18, 2011 9:27 AM To: Flash Coders List Subject: [Flashcoders] Vector.map() Dear coders, Vector.map() is supposed to return a new Vector but it appears to return nothing (undefined). Is this working for you? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Vector.map()
Hi Kenneth... This is working for me: var g:Vector.uint = Vector.uint([1,2,3,4,5]); var h:Vector.uint = g.map(mapper); function mapper(item:uint,ind:uint,g:Vector.uint):void{ trace(g[ind]+30); } Hope that helps, - Michael M. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kenneth Kawamoto Sent: Thursday, August 18, 2011 9:27 AM To: Flash Coders List Subject: [Flashcoders] Vector.map() Dear coders, Vector.map() is supposed to return a new Vector but it appears to return nothing (undefined). Is this working for you? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] contract/FT position (Paris/Europe)
Hi list... The second line returns an XMLList only if the first line (bug) isn't commented out. If the first line is commented out, the second line returns null. How can it be possible that the second line's result depends on the first line running? Thanks, - Michael M. var bug:XMLList = topic..asset.(hasOwnProperty(@title)); var xmlList:XMLList = topic.descendants(*).(hasOwnProperty(@title) (@title == Presentation)); topic title=my topic menu section type=pubs asset id=i type=doc fileName=doc.pdf//section section type=media asset id=a title=Presentation fileName=pres.pptx/ asset id=b title=animation fileName=flash.swf/ section type=info asset id=c title=questions/ asset id=d title=something/ /section /menu /topic ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] E4X statement depends on previous line?
[Sorry for the inaccurate post title!] Hi list... The second line returns an XMLList only if the first line (bug) isn't commented out. If the first line is commented out, the second line returns null. How can it be possible that the second line's result depends on the first line running? Thanks, - Michael M. var bug:XMLList = topic..asset.(hasOwnProperty(@title)); var xmlList:XMLList = topic.descendants(*).(hasOwnProperty(@title) (@title == Presentation)); topic title=my topic menu section type=pubs asset id=i type=doc fileName=doc.pdf//section section type=media asset id=a title=Presentation fileName=pres.pptx/ asset id=b title=animation fileName=flash.swf/ section type=info asset id=c title=questions/ asset id=d title=something/ /section /menu /topic ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] contract/FT position (Paris/Europe)
Perfect answer Eric! :-) I guess it depends if it's Paris or just Europe in general. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] E4X: reading CDATA
Hi list... I've searched around looking for a way to elegantly extract CDATA out of an xml node, with no luck. I'm left thinking the only way to do it is to read the whole node and use a RegExp to strip the ![CDATA[ and ]] . Does this sound right? Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] E4X: reading CDATA
Well, how about that! var kids = xmlData.children(); // gets me the CDATA content without the ![CDATA[ or ]] var kidscdata:String = kids[0].toString(); I was doing this RegExp, which also worked, but isn't necessary: var altered:String = kidscdata.replace(new RegExp((^\!\[CDATA\[)(.+)(\]\]\), gi), $2); Thanks everyone! - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] E4X: reading CDATA
Zeh, et al: sometimes, it just takes what I refer to as a blinding glimpse of the obvious to come up with concise solutions. :-) - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] E4X: reading CDATA
Jason, couldn't have said it better myself. The RegExp was unnecessary, but at least it worked. The toString() method did fine for my purposes. :-) - MM like going out the front door of a house, walking around to the back and then going in the back door just to get to the kitchen. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] E4X: reading CDATA
Sure...the reason is that in all the xml files I'm pulling in, I know the structure, it's the same for all. There's only one item tag in each xml file. So, I don't need an xmllist, given that there's only one item, I can just call toString(). But, I see where you're coming from with an xmllist. That would be the way I'd go if there were more than one item tags in each file. Maybe the name of the tag, item, is misleading. I suppose that would be a case of semantics. Ultimately, I only need to call this line (using Greensock's XMLLoader): private static function getTextContentComplete(le:LoaderEvent):void{ var xmlData:XML = XML(le.target.content); var cdataContent:String = xmlData.toString(); // not needed...strip CDATA tags: string.replace(new RegExp((^\!\[CDATA\[)(.+)(\]\]\), gi), $2); // populate my textfield.htmlText with cdataContent; } Each xml file I read in has this structure: === ?xml version=1.0 encoding=utf-8? item ![CDATA[some html formatted text]] /item Hope that's all clear. - MM OK, maybe I don't understand your XML structure. Why would what you settled on: var kids:XMLList = xmlData.children(); var kidscdata:String = kids[0].toString(); be a better solution for you than this? var myString:String = xmlData[0].text(); Can you post some sample XML? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] RE: HTMLLoader not loading [SOLVED]
That was what I was thinking, too, Henrik, but I triple checked the root, and it was clean. It remains a mystery, but at least it works. :-) I think it had something to do with the order of the displayList. - MM I think that this is likely due to the quoted requirements. It can not be scaled, rotated, filtered, color transformed or anything of that fun stuff. Somehow the root had something on that list. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] HTMLLoader not loading
Hi list... I'm *desperately* trying to figure out why an AIR project's HTMLLoader won't load any pdfs, just showing blank. Web pages load fine. Based on documented known limitations (below): scaleX, scaleY, and alpha of the HTMLLoader are all 1, and rotation is 0. The window isn't transparent. The htmlLoader instance is at the top of the displayList. I set scaleMode to NO_SCALE. A simple test AIR file worked fine. It's got to be something about my file, but what can I double check? Any help is tremendously appreciated! Thanks, - Michael M. From the docs: Known limitations for PDF content in AIR PDF content in Adobe AIR has the following limitations: PDF content does not display in a window (a NativeWindow object) that is transparent (where the transparent property is set to true). The display order of a PDF file operates differently than other display objects in an AIR application. Although PDF content clips correctly according to HTML display order, it will always sit on top of content in the AIR application's display order. If certain visual properties of an HTMLLoader object that contains a PDF document are changed, the PDF document will become invisible. These properties include the filters, alpha, rotation, and scaling properties. Changing these properties renders the PDF content invisible until the properties are reset. The PDF content is also invisible if you change these properties of display object containers that contain the HTMLLoader object. PDF content is visible only when the scaleMode property of the Stage object of the NativeWindow object containing the PDF content (the window.nativeWindow.stage property) is set to air.StageScaleMode.NO_SCALE. When it is set to any other value, the PDF content is not visible. Clicking links to content within the PDF file update the scroll position of the PDF content. Clicking links to content outside the PDF file redirect the HTMLLoader object that contains the PDF (even if the target of a link is a new window). PDF commenting workflows do not function in AIR. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: HTMLLoader not loading [SOLVED]
OK, after two days of total stress, I figured I'd document the solution I just found, for the public good: The HTMLLoader instance gets listener Event.COMPLETE prior to the load() call. // rootReference is my document class, extending Sprite // works: rootReference[stage][addChild](rootRef[docViewer]); // does NOT work: rootReference[addChild](rootRef[docViewer]); It turns out the HTMLLoader needs to be added in the topmost possible order, so add it to the stage, not just the doc class. Time for a nap, - MM I'm *desperately* trying to figure out why an AIR project's HTMLLoader won't load any pdfs, just showing blank. Web pages load fine. Based on documented known limitations (below): scaleX, scaleY, and alpha of the HTMLLoader are all 1, and rotation is 0. The window isn't transparent. The htmlLoader instance is at the top of the displayList. I set scaleMode to NO_SCALE. A simple test AIR file worked fine. It's got to be something about my file, but what can I double check? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] RE: Flash AS editor preferences question
Thanks for the responses everyone! Anonymous and Consolas both seem to be improvements over Trebuchet. I'll try them. Now Jason... I *am* editing with the Flash IDE. I suppose we need to talk. I may start a new thread soon... - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flash AS editor preferences question
Hi all... Here's an odd one: what font do you use in the Actionscript editor window? I use Trebuchet (Windows) because it's narrow enough for the occasional long lines, but I'm trying to find a more ideal one. Sometimes, with single quotes, it's too narrow. I think Courier is too wide. Just seeking opinions... - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] How do I create a CDATA node using AS2?
Jim, I just did something similar, but in AS3, to insert some CDATA into some preexisting xml. var createCDATA:Function = function(cont:String):XML{ return new XML(![CDATA[ + cont + ]]); } var _item:XML = item{createCDATA(some text based content)}/item; - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] E4X question: finding parent
Hi list... I'm trying to find some xml's parent attribute. I have pet name=Sugar/ and I want to find B. var pets:XML = pets group=A pet name=Rover/ pet name=Buffy/ /pets pets group=B pet name=Spot/ pet name=Sugar/ /pets; I can't seem to find it. Anyone know how? Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] E4X question: finding parent
childnode.parent().@group Thanks, Matt. Well, I'm getting stuck on finding the correct node then. How do I find the node in the xml, given the node I have? var myPet:XML = pet name=Sugar/ I get errors with a statements like these: pets..(pet.toXMLString() == myPet.toXMLString()); pets..(* == myPet); Once I have that, then I can do the parent() method call. var pets:XML =pets group=A pet name=Rover/ pet name=Buffy/ /pets pets group=B pet name=Spot/ pet name=Sugar/ /pets; ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] E4X question: finding parent
Thanks everyone. I don't want to find the pet node by using just @name. I need to match a node in xml.pets, given a full node, like so: xml.pets.(pet.toXMLString() == myPet.toXMLString()); I can't seem to get part that working. I think it should be easy to use parent() once I have that bit, right? - Michael M. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kenneth Kawamoto Sent: Thursday, May 05, 2011 11:54 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] E4X question: finding parent var xml:XML = root pets group=A pet name=Rover/ pet name=Buffy/ /pets pets group=B pet name=Spot/ pet name=Sugar/ /pets /root; trace(xml.pets.pet.(@name == Sugar).parent().@group); // B Perhaps you don't want to call your XML pets as it's a node name as well. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] E4X question: finding parent
Thanks everyone for your responses. The real xml was actually more complicated than what I posted. Is it me? Sometimes it seems that E4X solutions are difficult to figure out. The actual solution in my project is this, where rslt is an XMLList: rslt = topics..descendants(*).(contains(XML(filter))); rslt = new XMLList(rslt[0].parent()); I don't know why I had to have a parent() call on a separate line, but when I had it on one line, the first line was null. Sometimes perplexed by E4X, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] quick E4X question
Hi list... With this xml, given an a node, I want to find its parent t node. // not working var parentT:XMLList = pets..*.(t.contains(acat/a)); thanks, Michael M. pets t n=moe adog/a /t t n=larry asnake/a acat/a /t t n=curly amouse/a /t /pets ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] scrollpane component question: test if content is within view
Hi list... I'm trying to test if something is within view of the scrollpane component it's sitting in. My logic isn't quite right, and I thought someone might have an opinion. It half works... Thanks! - Michael M. var pt:Point = new Point(objInScrollPane.x, objInScrollPane.y); var realPt:Point = localToGlobal(pt); // withinViewTester is a rectangular shape hidden on the stage to test against var withinView:Boolean = withinViewTester.hitTestPoint(realPt.x, realPt.y); if(withinView == false) TweenLite.to(sp, .3, {verticalScrollPosition:(border.parent.y/spSource.height) * sp.maxVerticalScrollPosition}); // will scroll but it's being tested on the static shape on the stage, so not entirely accurate ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Security Sandbox Violation question
Hi list... I'm building an AIR app that brings in a swf from the user's hard drive. The swf is simply a linear animation with a button to replay the animation on its last frame. The swf plays fine, but when I click the replay button, I get: ** Security Sandbox Violation *** SecurityDomain 'file:///C:/ProgramData/myPath/animation.swf' tried to access incompatible context 'app:/air.swf' I am reluctant to set Security.allowDomain(*); I tried it and it didn't work anyway. Code on the button: StartOverButton.addEventListener(flash.events.MouseEvent.CLICK, function(m:MouseEvent){gotoAndPlay(1);}); stop(); Any suggestions? Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] garbage collecting on ContextMenuItem events
Hi list... I'm dynamically adding a contextMenu on many sprites, some of which have nested menus (it's AIR). I want to make sure garbage collecting the events with weak references is acceptable for context menus. I almost always explicitly call removeEventListener, but it seems contextMenus are somewhat different. Is this OK? myMenu.addEventListener(ContextMenuEvent.MENU_SELECT, contextMenuPrepare, false, 0, true); eachItemInMyMenu.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuItemCallbackFunction, false, 0, true); Any advice is appreciated. - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Rendering limitation? Bitmap goes poof. -- SOLVED
OK, I just figured it out and I'm posting if anyone ever has this as an issue. The bitmap that disappeared was masked with a shape, and that's what caused it to not be able to take any further filters. - MM Filters rend to bitmaps. Said bitmaps have maximum sizes. You actually get a trace entry when this limit is hit. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Rendering limitation? Bitmap goes poof.
Hi list... I'm wondering if I've encountered a rendering limitation. My stage listens to Event.DEACTIVATE, which blurs and desaturates the whole stage, and Event.ACTIVATE, which restores it. [It's a nifty line of code if anyone's interested in using it.] The stage is 1422 x 800, and there's a bitmap on the stage (644 x 369) that simply disappears when I blur/desaturate on deactivate. I've traced .visible, .alpha and .blendMode, before and after the filters are applied, and all report normal values. Could it be just a Flash rendering limitation? Thanks, - Michael M. public function saturate(e:Event):void{ root.filters = (e.type == Event.DEACTIVATE)?[new ColorMatrixFilter([0.68887, 0.27423, 0.0369, 0, 10, 0.13887, 0.82423, 0.0369, 0, 10, 0.13887, 0.27423, 0.5869, 0, 10, 0, 0, 0, 1, 0]), new BlurFilter(3,3,2)]:[]; } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] viewing the stage while debugging
Hi list... Maybe it's me, but several versions of Flash ago, I could step through debugging while seeing things on the stage. I haven't been able to do that for a few versions now, and it still annoys me. Is there any way to view what's going on on the stage *after* you hit a breakpoint? Thanks! - Michael m. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] IE8 not loading flv files SOLVED
Very large sigh of relief... unescape(pathToflv.flv); did the trick. unescape must be used from a file server. Ugh. Thanks for the responses, - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] IE8 not loading flv files
Hi list... I vaguely remember seeing some documentation somewhere that IE8 has some sort of path bug which breaks loading an flv. Anyone know anything about this? I'm trying to search around for a solution. Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] IE8 not loading flv files
Very interesting video Cor, and I love the background. The issue is that I've got an FLVPlayback component that I'm pointing to a relative folder. It's not being served out via http:, but rather just is a server path, like so: \\corp\data\office\transfer drive\Mendelsohn\presentation\MarketUpdate\self running\index.html The file structure is as follows: [includes folder containing main swf and flv video skins] [assets folder containing the flv] index.html I'm trying to load the flv as such: var path:String = \\corp\data\office\transfer drive\Mendelsohn\presentation\MarketUpdate\self running\assets\vid.flv flvInstance.load(path); For the life of me, I can't get the flv to load. I am so stumped on this one. - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] IE8 not loading flv files
Well, in publish settings, I set it to network sandbox, but it still doesn't work. I'm tracing if it's an IOError...nope, and I'm tracing if it's a SecurityError...nope again. Stumped beyond stumped, - MM -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason Sent: Thursday, February 17, 2011 3:55 PM To: Flash Coders List Subject: RE: [Flashcoders] IE8 not loading flv files In that case, could be a security sandbox issue. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] IE8 not loading flv files
In my overly complex environment here at worknope. :-( Then, I'd have no problem. I have other flash items sitting on Sharepoint, loading in videos with http, and there's no issue. It's just some others in the food chain here decided it can't be on http, so I am tasked with being a contortionist of sorts. - MM -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason Sent: Thursday, February 17, 2011 4:17 PM To: Flash Coders List Subject: RE: [Flashcoders] IE8 not loading flv files Could you put it on a web server? Might make life easier for you, but don't know if that's even an option. 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: Thursday, February 17, 2011 4:16 PM To: Flash Coders List Subject: RE: [Flashcoders] IE8 not loading flv files Well, in publish settings, I set it to network sandbox, but it still doesn't work. I'm tracing if it's an IOError...nope, and I'm tracing if it's a SecurityError...nope again. Stumped beyond stumped, - MM -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason Sent: Thursday, February 17, 2011 3:55 PM To: Flash Coders List Subject: RE: [Flashcoders] IE8 not loading flv files In that case, could be a security sandbox issue. ___ 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] IE8 not loading flv files
Good point Jason. Yes, all other file formats load just fine. I'll check that out. Thanks, - MM -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason Sent: Thursday, February 17, 2011 4:38 PM To: Flash Coders List Subject: RE: [Flashcoders] IE8 not loading flv files I know it's an issue when server MIME types don't list .flv type on web servers, I wonder if the same applies to file servers. I dunno - in theory, I wouldn't think so, but I'm not a server guy. Have you tried loading a .jpg or .swf the same way from the same location? That would be a good test if you haven't done so already. If JPGs load but FLVs don't... 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: Thursday, February 17, 2011 4:27 PM To: Flash Coders List Subject: RE: [Flashcoders] IE8 not loading flv files In my overly complex environment here at worknope. :-( Then, I'd have no problem. I have other flash items sitting on Sharepoint, loading in videos with http, and there's no issue. It's just some others in the food chain here decided it can't be on http, so I am tasked with being a contortionist of sorts. - MM -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason Sent: Thursday, February 17, 2011 4:17 PM To: Flash Coders List Subject: RE: [Flashcoders] IE8 not loading flv files Could you put it on a web server? Might make life easier for you, but don't know if that's even an option. 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: Thursday, February 17, 2011 4:16 PM To: Flash Coders List Subject: RE: [Flashcoders] IE8 not loading flv files Well, in publish settings, I set it to network sandbox, but it still doesn't work. I'm tracing if it's an IOError...nope, and I'm tracing if it's a SecurityError...nope again. Stumped beyond stumped, - MM -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason Sent: Thursday, February 17, 2011 3:55 PM To: Flash Coders List Subject: RE: [Flashcoders] IE8 not loading flv files In that case, could be a security sandbox issue. ___ 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
[Flashcoders] Warning: Filter will not render.
Hi list... When I go to print, I get this warning: Warning: Filter will not render. The DisplayObject's filtered dimensions (5624, 3345) are too large to be drawn. It actually traces 4 times, each with different, very large dimensions. I've done some searching and found that it can be caused by items being inadvertently placed way out of view. I can't see that I'm doing that anywhere in my print method. Has anyone experienced this warning? I'm looking for some insight. Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Calling an element in an Array as an Class
Or does anybody know a better method? I recently started using LoaderMax for loading assets. I will never ever look back to manually loading my assets. :-) http://blog.greensock.com/loadermax/ - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Re: Distribute some audio classes as SWC?
Hi Eric... I've been wanting to do that forever with some fonts and a movie clip that I use in everything, maybe even a package I wrote too. What's the workflow? I saw export to swc also. But I'm wondering, what to do after that? Just load it and it's available? I've never made a swc before. - Michael M. My bad - I didn't see the Export SWC in Publish Settings :) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Re: Distribute some audio classes as SWC?
Yup - just add the SWC to your FLA or project and the classes should be immediately available for your use. That's it? Put the swc in the library??? You just changed my career Eric. if you use flashdevelop, you add the swc to your library and then you can use all it's assets in your code. Tom, I don't use flashdevelop, so I'll have to go with what Eric suggests. Thanks both! - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Re: Distribute some audio classes as SWC?
Wait -- not so fast. How do you import it? Is it advanced AS3 settings|Library Path, then bring it in there? Clicking OK to that doesn't have the swc appear in the library. Should it be merged into code? - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Re: Distribute some audio classes as SWC?
Thanks Tom. So, am I correct in assuming that bringing in that swc via the IDE preferences bakes the swc into every swf I compile? And if I want to do it on a per project basis, just use publish settings, correct? Thanks again Tom and Eric! - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Flash fullscreen in a JavaScript app?
I'm betting that's IE only because of the ActiveXObject. - MM I found this from one of the links. Not sure if its cross-browser or not. May only be IE. Have not tested, but it is Javascript. function fullScreenWindow() { try{ // Get the ActiveX object from the Window var acvxObj= new ActiveXObject(Wscript.shell); //this may not be cross-browser, not sure. but may be other implementations per browser. // Now sends a key to fullscreen acvxObj.SendKeys({F11}); }catch(e){ } } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Flash fullscreen in a JavaScript app?
Hi Jim... That's really impressive. Very nice work. If I'm understanding your question correctly, you're asking if you can silently trigger Flash to go full screen. The problem is that when you go full screen with Flash, the only thing full screen is the Flash stage, not the browser. For the browser to go full screen that's F11 on the keyboard. Hope I'm answering that correctly for you. - Michael M. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Jim Andrews Sent: Saturday, January 29, 2011 2:58 PM To: Flash Coders List Subject: [Flashcoders] Flash fullscreen in a JavaScript app? Hi, I've developed a JavaScript slideshow at http://vispo.com/nio/pens/slideshow I want a fullscreen button in it. No browser chrome whatsoever. None. As you probably know, this is fully supported in Flash but not in JavaScript. Which is a real annoyance. There's the fullscreen='yes' thing as a parameter in window.open, but this still results in some browser chrome. Is it possible to insert a little Flash app in the HTML which, when clicked, causes the slideshow to go fullscreen while also permitting the user to use the JavaScript controls? Normally what would happen, I realize, is it goes fullscreen and you have a fullscreen that has nothing on it but the fullscreen button. Which of course is not what I'm after. ja http://vispo.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] interesting discovery: full screen flash + IM
Hi list... I just thought I'd share this tidbit: A colleague was testing a Flash piece I did that goes FULL_SCREEN_INTERACTIVE. We were discussing it over IM (Microsoft Office Communicator). We noticed that when he was in full screen mode of the flash presentation, his status dot on IM went from green to do not disturb. Pretty interesting. - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] E4X question: a dependency?
Hi list... clickedOne returns an xmlList for me. I can't figure out why, but when I comment out the var c assignment, clickedOne returns null. I don't use var c anywhere except to prevent clickedOne from being null. How can this be possible? Thanks for any replies, - Michael M. var c:XMLList = topicData[0].descendants(*).(hasOwnProperty(@title) @title == String(u[info][text])); // WHY IS THIS LINE DEPENDENT ON VAR C? var clickedOne:XMLList = topicData[0].asset.(hasOwnProperty(@title) (@title == String(u[info][text]))); ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: slightly OT: Soundbooth for flv cuepoints
My experience was that Premiere CS3 did not export the cuepoints with the FLV - that was a bug. I had to use some of the free tools out there like RichFLV to add the cuepoints back into the FLV. Hmm... I was referring to Soundbooth CS3 and Media Encoder CS3. They both exported audio only flv files with cuepoints without issue. Now, with the CS5 versions, they fail to do that. A search online showed that I'm not the only one who has come across this issue. http://forums.adobe.com/thread/758885 The fix was using Premiere CS4, which did export the audio only flv with cues intact. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: slightly OT: Soundbooth for flv cuepoints
Sorry to hear that Jason. Curious, how is AE CS5 with flv + cuepoints? -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason Sent: Thursday, January 20, 2011 9:44 AM To: Flash Coders List Subject: [Flashcoders] RE: slightly OT: Soundbooth for flv cuepoints Yeah, Adobe historically seems to have a lot of issues with this. AfterEffects CS3 had the FLV cuepoint export problem as well, which drove me insane for about 2-3 days. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] slightly OT: Soundbooth for flv cuepoints
Hi list... I have an mp3 file I made in Soundbooth, and I gave it some cuepoints, and saved the cuepoints to an xml file. I bring this mp3 into Adobe Media Encoder, along with importing the cuepoint xml file, and export an flv (audio only) for use in Flash. For some reason, the cuepoint data isn't getting baked into the flv. I have an older flv file I made a while back that did work. I can't figure out what step I'm missing now. Any thoughts? - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: slightly OT: Soundbooth for flv cuepoints
Folks, never mind. Move along. I found a solution. Export the audio out of Premiere, while importing the cue point xml data into the flv when in Premiere's export media dialog. Sigh. Why oh why does Adobe come up with bugs in newer versions of software where it worked fine in CS3? - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] test
Test: is the list alive? - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] test
OK, I'm convinced. It seems odd that the list has been *that* quiet. Until this thread, I've gotten a grand total of 2 emails since the new year. That's even quieter than Direct-L. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] test
And along the same lines, what's going on with feeds.adobe.com? That's been down for weeks! - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
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
RE: [Flashcoders] massive problems with cs5 not compiling/ corrupt fla/xfl files...
I've been going through the exact same horrible situation, and I feel your pain, Tom. My issue seems to have worked itself out as of late. For some insight, check my thread swf not compiling, originating on December 10th. Ultimately, I kept recreating the fla file. Converting it to an xfl file didn't do anything to help. It wasn't an issue with the as files, the issue is in the fla file. Fortunately, I don't have very many library items in my fla, so I could fairly easily recreate the file. Good luck. - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] massive problems with cs5 not compiling/ corrupt fla/xfl files...
One thing I tried which seemed to work, temporarily anyway, was to save the xfl file from the seemingly corrupt fla file, then open the xfl file and save it as the same name as the fla file. Just make sure to save a copy of that original fla file. Then it seems like you're saving a new fla spawned out of pure xml code. I had been thinking that the corruption came from something in the artwork. But if it's resaved by means of describing the vectors in the art, that could solve it. Worth a try, - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] development strategy for packages with
Hi list... I'm developing an AIR app that will have a companion online swf. The two pieces share much of the same code to render the UI and its various behaviors. I haven't started building the online swf yet, and I'm approaching the point in the AIR app where I am dealing solely with the AIR apis. Would it make sense to have just one fla, but switch out the document class when it comes time to publish each piece, or just make two flas? I'm looking for best practices in how to do this. Thanks! - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] swf not compiling
Hi list... My CS5 fla is not not compiling at all. It publishes a blank stage with no errors. I looked around online for some tips and found Steve Sacks' suggestion about some corrupt library item. I've replaced all existing components with new components and trial and error deleted all the other library graphics but it's still not publishing. Anyone have any suggestions? No compile errors are thrown, so I have no idea where to start. Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: swf not compiling
Have you tried putting everything in a fresh new .fla? Sometimes .flas get corrupt. And are you using a document class? Hi Jason, thanks for responding. Yes, I'm using a document class. I haven't rebuilt the swf. I will try that. What's strange is that as of 10 minutes ago, it's compiling. But that has been no guarantee, as it has been periodically not compiling for about two days now. I thought it might have been a corrupted component or graphic, but that doesn't seem to be the case as meticulously deleting individual library members didn't make a difference in trying to publish. If I rebuild the fla, I want to make it as lightweight as possible. I've written 36 classes for this project, totaling 430kb, with a few more still to go. Additionally, I'm importing some third party classes. I'm wondering if I'm running into some undocumented as3 code limit. One thing I was wondering about but can't find documentation is in the Advanced ActionScript 3.0 Settings panel in publish settings. I have no idea about the source path/library path/config constants tabs, but maybe it's sucking in too much to handle? When it decides it wants to compile, it takes a very long time to do so. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: swf not compiling
Yes, the document class is still linked. And tracing in the document class did nothing. The fla just flat out doesn't periodically compile. No errors. Nothing. I tried putting a breakpoint on the first line of executable code in the document class, and that didn't do anything either. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: swf not compiling
Your best bet might be same project, different .fla (or pure AS3 project in Flashbuilder). If that fails, not sure - re-install Flash Pro? Thanks Jason. For the past three hours, it has been compiling. I'm going to take the keep my fingers crossed approach. If it blows up again, I'll take your advice on rebuilding the fla. In the meantime, enjoy the rest of the day and weekend! - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: swf not compiling
That would be a brilliant suggestion, however, I've never used Flashbuilder/Flex before. My project is mostly purely code, just a few visual assets, but it would probably take me some time to learn my way around the software. :-( But, what you mention below sounds pretty accurate to what I'm experiencing. question rhetorical=trueI wonder how it is that upgrades can take a step backwards? /question - MM I've written 36 classes for this project, totaling 430kb, with a few more still to go. Additionally, I'm importing some third party classes. I'm wondering if I'm running into some undocumented as3 code limit. Oh, thinking about this more, I should have mentioned. Flash CS5 is HORRIBLE with a lot of code. They've taken a step back there. I don't know why I forgot this when you asked, but I recently had to switch one project over to a pure AS3 project in Flashbuilder. The old project (which had a similar amount of code and third party libraries) would crash often and take for-ev-ah to compile. When I switched to Flashbuilder, it compiled in seconds and had no issues. In short, the Flash Pro compiler sucks. If you've kept all your code in classes and can switch over to a pure AS3 project in Flashbuilder, I would. Might mean re-doing how you handle your library assets, but could be worth it. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] RE: swf not compiling
OK, back to square one. It's not compiling again. No errors. I've rebuilt a new fla from scratch, and brought in all the assets from the other library. Still nothing. This is going to be the death of me. - MM I've never used Flashbuilder/Flex before. My project is mostly purely code, just a few visual assets, but it would probably take me some time to learn my way around the software. :-( It's not that hard to set up really. You just create a pure AS3 project and point Flashbuilder to your main document as the class to build from (right click on the class, select Set as Default Application). You can then bring in your library assets using [Embed] tags or using the Loader class. There is documentation on how to use the Embed tags - it's easy. Do you own a copy? Worth a shot at least. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] import fl.events.ComponentEvent crashes compiler?!
Yes, it's true, and I've narrowed it down to one statement: import fl.events.ComponentEvent; When I include this statement, the swf won't compile. Even after deleting that line of code, Flash won't compile. I have to close the IDE and restart. What could be causing this? I can't imagine it's the actual statement itself, but rather some deeper issue. Currently frustrated, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] E4X strangeness
Hi list... For some strange reason (and I mean REALLY strange), the second statement below depends on the first statement. As far as I can tell, the two lines have nothing to do with each other. When c runs, clickedOne returns an XMLList. When c is commented out, clickedOne returns null. var c:XMLList = topicData[0].descendants(*).(hasOwnProperty(@title) @title == String(u[info][text])); var clickedOne:XMLList = topicData[0].asset.(hasOwnProperty(@title) (@title == String(u[info][text]))); Could it somehow be that initializing var c creates something that's next needed for the var clickedOne to evaluate properly? Perplexed, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] E4X strangeness
Hi Henrik... Thanks for responding. What do you mean by decompile the output? How would I do that? - MM I can't see any reason how this should happen. But my gut instinct says that you should decompile the output and see how the generated loops look like. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Getting bitmap data after successfully loading a swf file
Hi list... I want loop through to delete certain nodes, but can't figure out how to do it. I've tried a conventional loop, for...in and for...each...in, and I must be missing something. pack dog id=1/ dog/ dog id=2/ dog/ dog id=3/ /pack I'd like to delete all instances of dog that don't have an @id, or @id==2. Any thoughts? Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] loop to delete XML nodes WAS: Getting bitmap data after successfully loading a swf file
Sorry list! I didn't properly title that post! :-( - MM Hi list... I want loop through to delete certain nodes, but can't figure out how to do it. I've tried a conventional loop, for...in and for...each...in, and I must be missing something. pack dog id=1/ dog/ dog id=2/ dog/ dog id=3/ /pack I'd like to delete all instances of dog that don't have an @id, or @id==2. Any thoughts? Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] E4X filtered statement returns null
Thanks Gerry and Deepanjan... I found a solution, but I'm completely puzzled why it worked and the obvious E4X statement you both suggested didn't work. I seem to be getting unreliable results. Maybe it's some logic about the statements I am missing. I don't understand why it all can't be done in one statement, I get null for that. topic title=abc keywordsdog,cat,bird/keywords descriptionblah blah/description asset title=Presentation fileName=giraffe.ppt/ asset title=Document 1 fileName=a.mpg/ asset title=Document 2 fileName=b.mpg/ /topic //doesn't work for me topic..asset.(hasOwnProperty(@title) attribute(title) == wording)@filenamemailto:@filename // unreliable. Sometimes it works, sometimes it doesn't. Is it a bug? I'm not seeing things. :) var d:XMLList = thisTopic..*.(hasOwnProperty(@title) @title == wording); // doesn't work...why? var assets:XMLList = topic..asset.(hasOwnProperty(@title) attribute(title) == wording); - Michael M. - Deepanjan...this solution worked too. Did you try this: var topic:XML = topicData[0]; // gets the below xml, came from an xmllist var wording:String = Presentation; var assets:XMLList = topicData[0]..asset; trace(assets.(@title == wording)); I have an E4X statement that breaks when I add a filter to it to get a specific node. I keep getting null when I include hasOwnProperty() to the statement. // I want to get giraffe.ppt or asset title=Presentation fileName=giraffe.ppt/ var topic:XML = topicData[0]; // gets the below xml, came from an xmllist var wording:String = Presentation; // I get an xmllist for this: var assets:XMLList = topicData[0]..asset; // but I keep getting null returned for these: var assets:XMLList = topicData[0]..asset.(hasOwnProperty(@title)); var assets:XMLList = topic..asset.(hasOwnProperty(@title) attribute(title) == wording)@filename; Why does the statement break with the E4X filter? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] E4X filtered statement returns null
I'm starting to think CS4 E4X could be buggy. Depending on which lines I comment, the statements, unaltered, work or don't work. Anyone have experience with that? - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] E4X filtered statement returns null
Hi list... I have an E4X statement that breaks when I add a filter to it to get a specific node. I keep getting null when I include hasOwnProperty() to the statement. // I want to get giraffe.ppt or asset title=Presentation fileName=giraffe.ppt/ var topic:XML = topicData[0]; // gets the below xml, came from an xmllist var wording:String = Presentation; // I get an xmllist for this: var assets:XMLList = topicData[0]..asset; // but I keep getting null returned for these: var assets:XMLList = topicData[0]..asset.(hasOwnProperty(@title)); var assets:XMLList = topic..asset.(hasOwnProperty(@title) attribute(title) == wording)@filename; Why does the statement break with the E4X filter? Thanks...any help is appreciated, - Michael M. topic title=abc keywordsdog,cat,bird/keywords descriptionblah blah/description asset title=Presentation fileName=giraffe.ppt/ asset title=Document 1 fileName=a.mpg/ asset title=Document 2 fileName=b.mpg/ /topic ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Isometric Graphics Libraries
You might want to check the Adobe Exchange. There's probably some free downloads there. Search under Illustrator. - MM -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Tom Gooding Sent: Wednesday, September 08, 2010 10:43 AM To: Flash Coders List Subject: [Flashcoders] Isometric Graphics Libraries Hi - is anyone aware of any pre-existing free or commercial isometric graphic libraries - for characters and props? ___ 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] OT: is there a similar list for JavaScript programming?
How about javascript forum under groups.google.com? - MM Sorry for the off topic message, but can anyone recommend a list similar to this one for JavaScript? Googled but didn't find anything promising. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] % glyph not displaying
Hi list... I've embedded Times New Roman in a swf and I'm populating a TextField via flashvars set in that embedded Times font. The % glyph isn't displaying. No matter what type of entity I include in the flashvar string (\u0025 or 37; or #37;), the percent sign isn't showing up. In Windows Character Map, the % sign is obviously part of the character set. Am I missing something? Perplexed, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
SOLVED: RE: [Flashcoders] % glyph not displaying
Hi Jason! Thanks for responding, just this moment, I figured it out: The % sign needed to be URL encoded for it to be properly passed through via the flashvars. http://www.kirupa.com/forum/showthread.php?t=328548 - Michael M. How exactly did you embed the font in the .swf and what glyph sets did you select when you did? Jason Merrill ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] flashvars - swfObject not working
Hi list... I'm unable to pass flashvars to a swf via swfObject(2.2). An online search hasn't turned up a solution either. The flashvars are passed via javascript like so: script type=text/javascript var v = {}; v.titleText = XXX Financial and Operational Progress; swfobject.embedSWF(thing.swf, mything, 450, 750, 9.0.28, false, v, {}, { }); /script Within the swf, I've declared a corresponding public variable in the document class. public class MyClass extends Sprite{ public var titleText:String; public function MyClass(){ if(Capabilities.playerType == External){ // set defaults for the flashvars for testing purposes: titleText = YYY Financial and Operational Progress; } } } What am I missing? When testing in Flash, I get the YYY... message, but when testing in a browser, I get nothing. Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] flashvars - swfObject not working
That's right Cedric! When am I going to remember that? It's burned me a few times already. Thank you very much for the reminder. - MM -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Cedric Muller Sent: Thursday, July 29, 2010 9:02 AM To: Flash Coders List Subject: Re: [Flashcoders] flashvars - swfObject not working Hello Michael, You have to get the FlashVars parameters from the root.loaderInfo object. I know, I know how it feels, and I wouldn't be able to certainly tell you why it is passed through the root.loaderInfo pointer, although it /can/ be quite logical. When you get used to it, it gets logical too :) try the following: var flashvars:Object = LoaderInfo(root.loaderInfo).parameters; for (var e:Object in flashVars) { trace(e=+e+ flashVars[e]=+flashVars[e]); } hth, Cedric ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] flashvars - swfObject not working
Well that's very interesting, Cedric. My shower curtain is the MBTA system in Boston. It isn't Flash related, but it could maybe pass for being similar to the poster I have at work diagramming all the AS3 classes and their relationships. Your bathroom art is probably more colorful. - MM It may help OR not: I paint these on pictures (nice pictures by the way) I plug to my toilet's walls. It is fun, helps me remember important illogical stuff, and assures me my toilet's walls get updated quite frequently, and no one else except me understands these, which tends to comments like wow, there's art in your toilets ! ;) By the way, I am looking forward to the day someone writes new comments on my toilet's walls :P Maybe, there is a 'place' somewhere for a book in that verve ? :S ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] OT: seeking freelancers...possibly
Hi list... I've been asked to gather up some freelancer contacts if the need arises within my department, for Flash work. I have a number of projects on the horizon and I'm not sure if I'll be able to build all of them on time. If anyone out there is interested, please point me to some of your work. I'd prefer someone around the Boston / Providence area. michael dot mendelsohn at fmglobal dot com thanks! - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Job Openings at Bank of America for US/Canada
I guess I'm golden then. :-) My AS3 is solid, but the world is changing so fast that it's hard to keep up with everything else. True, and Matt's pretty awesome. It is pretty hard to break in some companies without the formal education, but if you're able to pick up on-the-job experience like Matt has, you're golden. So Matt, what would you say are your strengths? Are you purely AS3? You can also learn as you go, but it's not as complete. I'm one of Jason's coworkers - and while my instructional background isn't nearly as good as Jason's I manage to muddle through :) My degree is in graphic design/illustration and I've been self teaching Flash/multimedia since '95. Been working in the corporate elearning industry since 2001 and managed to pick up what I know by osmosis. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Job Openings at Bank of America for US/Canada
Matt and Jason, you guys are great! Great site Matt. I'm a lingo person too, but haven't used it much lately. OK, I feel I'm on the right track. Your story is similar to mine, although I have no SCORM/AICC knowledge. If I get to go to Max this year and you guys are out there, let me know and I will buy a round. - Michael M. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt Perkins Sent: Monday, June 21, 2010 10:15 AM To: Flash Coders List Subject: Re: [Flashcoders] Job Openings at Bank of America for US/Canada Right now I'm AS3 specialized and able to make it look nice w/ Photoshop (ui design). I know a lot about SCORM/AICC also - I programmed my own Flash LMS/APIs in AS2 a few years ago. At points during my career I was pretty great with Director Lingo, Javascript and AS1/2 - but don't use it and it goes away. I've been in multimedia/web for 15 years now, so I've done a lot over the years. My personal site has a decent representation of what I've done: http://nudoru.com/ When I went to school (95-00) there really wasn't any multimedia education beyond intro classes but I'd been teaching myself Photoshop 2.5/3 from a warez'd copy I got from a BBS. So I learned everything on the job as I went and during long support calls with Macromedia as I needed it (bonus to acually buying the software). The late 90's was Joshua Davis/Praystation/Kioken/Dreamless/k10k envy so I did a ton of experimentation and and learned from that. After that I went after the hard projects at work and learned what I needed from books, sites and peers to get it done. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] contextMenu getting overridden
Thanks for the responses. When I debug, I see both contextMenus created correctly. It's just that the child one isn't showing up on the stage. The odd part is that when I comment out the parent contextMenu property, the child contextMenu STILL doesn't show up. Karl: I'm not seeing how accessibilityProperties prevents a contextMenu from showing up. Any ideas? - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Function Doesn't Increment Properly
Assuming you're using AS3, you might want to rewrite it as such: public function Fire() { mcFlameContainer = new MovieClip(); addChild(mcFlameContainer); var t:Timer = new Timer(15, 10); t.addEventListener(TimerEvent.TIMER, _addNewFlame, 15); } Forget the setInterval. That's fallen out of favor in lieu of the Timer object. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Function Doesn't Increment Properly
Hi John... You're listening for TimerEvent.TIMER. when you instance a new Timer, you pass two parameters. First, you pass the time in milliseconds, from your code, it was 15. Then instead of looping through to get 10 instances of the fireball, just run the timer 10 times. That's the second parameter. More fireballs? Change that number. You also have to call timer.start(); to get the ball rolling. - MM Second, I like Michael Mendelsohn's idea, however, for what event am I listening? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Job Openings at Bank of America for US/Canada
Hi Jason... I have an OT response to your post. Hope it's ok to respond here like this. For the record, I have a job that I enjoy, and I'm doing AS3 for much of my day. That said, I'm curious about your educational background. You mentioned below these people exist with instructional technology. I've never heard of a master's degree in that before, and a quick search didn't turn up the seemingly right things. Do you have a degree in that? I'm always thinking about how I can improve my skillset and it's something I'm curious to find out more about, especially from someone who seems so knowledgable. I'm sure working with you would be an unparalleled opportunity. I've been really thinking about what's best to focus on for my skillset now, given technologies are moving at light speed at present. Thanks! - Mike Mendelsohn Yes, I do - as well as several members of my team. We do coding most of the day in AS3, several of us are artists in their spare time and have Master's degrees in instructional technology. It's a hard mix to find, but those people are out there. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] contextMenu getting overridden
Thanks Karl. It's an interesting approach. When I read the docs, it didn't seem to be related. Anyway, I'm really stumped on this issue. Thanks for replying, I appreciate it. - MM -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Friday, June 18, 2010 3:33 PM To: Flash Coders List Subject: Re: [Flashcoders] contextMenu getting overridden My idea was not that accessibility pref control the menus, but allow the child object to be accessible, and in theory allow the menu to be accessible. Again, it was just a thought. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Job Openings at Bank of America for US/Canada
Thanks Jason! As usual with you, a complete answer. :-) I'm really wanting to get better at what I do. What university in Boston? That's where I call home. - MM One of my co-workers is working on his PhD in the field from a university up in Boston. Several others on my team have post-graduate degrees in instructional technology or a related field. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] contextMenu getting overridden
No problem, one thought too, do both variables that call the menus (parent and child), are they the same var? this.menu? They're not the same var. Here's the structure: Parent sprite -- contextMenu A - child sprite 1 - child sprite 2 - child sprite 3 child sprite 3 contains a child -- contextMenu B (instanced correctly within this class, but never displays) Parent sprite is just a new Sprite(), with children added. One of its children contains also a child that is the sprite with the customMenu. So, it's really two levels deep. But when I comment out the parent sprite contextMenu assignment, the child sprite contextMenu *still* doesn't display. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] contextMenu getting overridden
Hi list... I have a parent sprite with a custom contextMenu defined for it, and within that, there is a child sprite with a custom contextMenu defined for that. The issue is that the child sprite doesn't show its contextMenu. It only shows the parent contextMenu. Anyone know what I'm missing? It's only recently started with this problem. thanks! - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] swfObject, flashVars, loaded swf
Hi list... I'm having difficulty getting flashvars to work in a swfObject on a web page. I have a swf that loads another swf. I am trying to send some flashvars to the loaded swf but I can't seem to get that wired up. How does a loaded swf access flash vars on the root of the swf that loaded it? Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] swfObject, flashVars, loaded swf
Yes, Karim, thanks, that was my problem. I wasn't accessing it from Flash correctly. Regards, - MM how you pass the flash vars to flash depends on the version of SWFObject you are using - however - from flash - you can access the variable like so (as3): stage.loaderInfo.parameters.myflashparam However - you might need to make sure the swf has been 'AddedToStage' ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] tint a movieclip
Thanks, Juan. What I'm really looking for is how to extract values for redMultiplier, greenMultiplier and blueMultiplier out of a given color hex value, say #336699. - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] tint a movieclip
Thanks JC, I think that's it! - MM are you looking for something like this: var red:Number = (pColorValue 16) 0xff; var green:Number = (pColorValue 8) 0xff; var blue:Number = (pColorValue ) 0xff; ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] tint a movieclip
Hi 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] Flash and audience response
Hi list... Every so often, I am asked to incorporate using audience response devices to collect data within Flash, if someone is giving a presentation. The product we use to do this is TurningPoint software for PowerPoint, which is sort of a plugin that uses proprietary radio frequency devices to send data, and a bar chart on the current PowerPoint slide takes shape as the data comes in. I'd LOVE to have this ability in Flash. Anyone know of any tools to do so? Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] OT: PDFs, HTML5 and iPads
Hi list... It seems to me that Flash might not be the tool most threatened by HTML5, but rather the PDF format. HTML5 obviously can't replace all of Flash's capabilities. But, it has all of these new tags that enhance the accuracy of describing documents. So, should the Adobe Reader plugin feel more afraid? On a side note, is the iPad supporting the Reader plugin? Just wondering, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] OT: PDFs, HTML5 and iPads
Thanks everyone for responding. Brian, yes I was thinking along those lines. It just seems to me that as modern browsers zoom in on the whole page by pinching, etc, it means it's more acceptable to use pixels for text fonts, rather than ems or relative sizing. So if documents online can be designed at the pixel level, fully zoomable, with new descriptive tags, then it's feasible to fully render things like tax forms. I was just thinking that with the HTML5 tags, that might substitute for postscript pdfs. For something like a tax form, I can see laying out a bunch of divs, absolutely positioned, all with height=243px width=263px etc, exact dimensions, and filled with 12px Times, instead of what I might do otherwise, relative sizing, like fontSize=0.8em, which would be better for Section 508 compliance. The Flash on Androids just can't happen soon enough though in my mind. :-) - MM Michael, are you thinking HTML5 may replace PDFs online, or also as a formate for sending documents via email, ftp, etc to be viewed and printed? Can see that online for information display. For things like tax forms, business forms, and print design pieces I'm not sure how that would work. Thoughts? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Apple developing flash-like alternative
I can understand the Quicktime complaints, but what are the common complaints about iTunes? - MM one of the best comments on digg: [quote] iTunes is just as bad as Outlook when it comes to bloatware. Not to mention a horrible to use piece of software. [/quote] amazingly true ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Apple developing flash-like alternative
Well, you have a point Paul. But compare and contrast to Microsoft. Microsoft liked the Flash client too, so they came up with their own. They never went on an insult spree. Apple apparently likes the Flash client too, but they did go on an insult spree. That's underhanded to me, and in my personal opinion, not good business form. I'm sure that Adobe is looking very hard now at the strength and weaknesses of the flash platform and we will all benefit in the long term from Adobe being given a kick. Yes, of course I agree. But I am concerned that our world is going to get split in two now (not that it isn't fragmented already). Isn't the concept for what we do supposed to be write once, deploy everywhere? Instead, we're going the route of one for i* and one for Android/Flash. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Apple developing flash-like alternative
I'd rather not go negative, especially on this list which is so valuable to me, but this Flash Alternative news simply disgusts me. It's as underhanded as a business can get. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] stopping propagation of an event
Hi list... I have a TextArea component used for inputting text. Also, the stage has a key listener where something happens if the user keys i. The issue arises when the user starts inputting text into the TextArea. If she types i, the stage event fires. I don't want that to happen if the user's focus is in the TextArea. I've tried to take the event off the button when the focus is in the TextArea, but that seems buggy. Also, I tried stopImmediatePropagation, priority and useCapture on the TextEvent, all to no avail. Can anyone offer a strategy? Thanks! - Michael M. myTextArea.addEventListener(TextEvent.TEXT_INPUT, block, true, 100); private function block(t:TextEvent):void{ if(t.text == i || t.text == I){ // gets here, but doesn't stop the i from firing the stage listener's keyboard event t.stopPropagation(); } } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Infinitely Looping Image
Hi list... I thought I'd share code that generates a sprite displaying neverending cloud movement with bitmap data, using perlin noise. - Michael M. package { import flash.display.Sprite; import flash.display.Bitmap; import flash.display.BitmapData; import flash.display.GradientType; import flash.display.BlendMode; import flash.geom.Matrix; import flash.geom.Point; import flash.events.Event; import flash.geom.Matrix; public class Sky extends Sprite { private var s:Sprite; private var b:Sprite; private var perlinOffset:Array; private var bd:BitmapData; function Sky(w:uint, h:uint) { b = new Sprite(); var m:Matrix = new Matrix(); m.createGradientBox(w,h,(90*(Math.PI/180)), 0, 0); //0x81ACDC b.graphics.beginGradientFill(GradientType.LINEAR, [0x5791D0, 0xFF], [1,1], [0,255], m); b.graphics.drawRect(0,0,w,h); b.graphics.endFill(); addChild(b); s = new Sprite(); s.alpha = .7; s.blendMode = BlendMode.OVERLAY; // Offset array for perlin function perlinOffset = [new Point(45, 34)]; // Create the bitmapdata we are going to change with the perinNoise function bd = new BitmapData(w, h, true, 0x00); var bmp:Bitmap = new Bitmap(bd); s.addChild(bmp); s.addEventListener(Event.ADDED_TO_STAGE, init); addChild(s); } private function init(e:Event):void{ s.removeEventListener(Event.ADDED_TO_STAGE, init); animateSky(true); } public function animateSky(activate:Boolean):void{ if(activate == true){ s.addEventListener(Event.ENTER_FRAME, EnterFrame); } else { s.removeEventListener(Event.ENTER_FRAME, EnterFrame); } } private function EnterFrame(e:Event):void{ //change the values in the perlinOffset to animate each perlin layer perlinOffset[0].x += 3; perlinOffset[0].y+=.3; //apply perlin noise to our bitmapdata s.removeChildAt(0); //bd.perlinNoise(250,40,7,1,false,false,8,false,perlinOffset); bd.perlinNoise(220,40,3,1,false,false,8,false,perlinOffset); s.addChild(new Bitmap(bd)); } } } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders