Re: [Flashcoders] Passing Call To Child
On Sat, Mar 13, 2010 at 7:02 PM, David Hunter davehunte...@hotmail.comwrote: why are you creating more nav's when you mouseover or click an instance of nav? that seems unnecessary and quite possibly the source of the problem. It isn't the source of the problem, but perhaps you could help me understand what you mean and what I should do to make the code cleaner. i might be wrong but are you using it to try and change the color of the button? if so this should be done a different way. so i notice with this that when you first create the menu you pass Contact.html but in the rollover and click functions you only pass Contact. THAT was the problem. Thank you! hope i've helped! Indeed you have. Thank you! Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Passing Call To Child
On Sat, Mar 13, 2010 at 10:47 PM, Keith Reinfeld keithreinf...@comcast.netwrote: This would be the most straight forward means (given the context): private function onMouseOverHandler(e:MouseEvent):void{ e.currentTarget.getChildAt(0).backgroundColor = 0x97F9EC; } private function onMouseOutHandler(e:MouseEvent):void{ e.currentTarget.getChildAt(0).backgroundColor = 0x0E778A; } private function onPressHandler(e:MouseEvent):void{ e.currentTarget.getChildAt(0).backgroundColor = 0xFF; } private function onMouseUpHandler(e:MouseEvent):void{ e.currentTarget.getChildAt(0).backgroundColor = 0x0E778A; // Navigate.to(e.currentTarget.linkURL); } Thank you for helping me learn how this is done. That worked well with a few minor modifications. Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] mxml to AS3
Wow... I just noticed I actually got a response to this question. Thank you very much Paul. I will be looking into that for sure. On 3/13/2010 10:05 AM, Paul Andrews wrote: On 12/03/2010 18:29, Anthony Pace wrote: I only do this after using catalyst (beta 2) and there is a ton of mxml over a thousand lines or so, that I just don't want to have to filter through, but so far, what I have been doing is publishing the project as an swf, and the using a decompiler to convert it and its embedded elements to readable AS3 with class structure intact, and then output to a folder that contains the fla and all used classes in the usual subfolder tree style. Using this method makes it so some variables are referred to by their location instead of their friendly name, and going after the embedded elements can sometimes be time consuming; thus, I am wondering if there any other commercial converters out there? or if someone has figured out how to use the flex sdk to just do a conversion instead of publishing? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders It sounds like you are using catalyst and trying to avoid flex - doesn't seem like a viable workflow to me, but anyway.. From the docs: http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_14.html keep-generated-actionscript=true|false Determines whether to keep the generated ActionScript class files. The generated class files include stubs and classes that are generated by the compiler and used to build the SWF file. When using the application compiler, the default location of the files is the /generated subdirectory, which is directly below the target MXML file. If the /generated directory does not exist, the compiler creates one. When using the compc component compiler, the default location of the /generated directory is relative to the output of the SWC file. When using Flex Builder, the default location of the generated files is the /bin/generated directory. The default names of the primary generated class files are filename-generated.as and filename-interface.as. The default value is false. This is an advanced option. ___ 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] AS3 LipSync Engine?
Hey all, I'd like to produce lip syncing for dynamic audio that I have. I could try and roll my own (based on computeSpectrum results) but saw AS3 LipSync mentioned on Google. But I have yet to find it anywhere. Does anyone have a working link I could check out? Or do you have a bit of code I could slap into my computeSpectrum code that would approximate mouth representation? Otherwise I'll just have to roll my own. Thanks, Eric ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Anyone else having issues with the latest version of the flash plug in?
We are having issues with some of our Flash courses, where certain pages won't play using the latest plug in. The majority of the pages are fine, but, one or two pages within various courses begin to load, start playing then stop after a few seconds. When we click next and back, the page is blank from that point forward. The coding on all of our pages is exactly the same, so I am baffled. Does anyone know what in particular the latest flash security update affected. We are currently at 10.0.45.2. We tested the course on prior versions and they work fine. Any input is greatly appreciated! Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Anyone else having issues with the latest version of the flash plug in?
No issues here. That could be anything - you'll need to isolate what the differences are between the pages. And also what you mean by playing exactly. Are you having the timeline play, playing a movie? Have nested animations? Is this all in the same .fla project file? Actionscript is different in different parts of your project? There's really not much to go on here to answer your question. Jason Merrill Bank of America Global Learning Learning Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lord, Susan, CIV, DSS Sent: Monday, March 15, 2010 10:48 AM To: Flash Coders List Subject: [Flashcoders] Anyone else having issues with the latest version of the flash plug in? We are having issues with some of our Flash courses, where certain pages won't play using the latest plug in. The majority of the pages are fine, but, one or two pages within various courses begin to load, start playing then stop after a few seconds. When we click next and back, the page is blank from that point forward. The coding on all of our pages is exactly the same, so I am baffled. Does anyone know what in particular the latest flash security update affected. We are currently at 10.0.45.2. We tested the course on prior versions and they work fine. Any input is greatly appreciated! Susan ___ 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 LipSync Engine?
Eric E. Dolecki wrote: Hey all, I'd like to produce lip syncing for dynamic audio that I have. I could try and roll my own (based on computeSpectrum results) but saw AS3 LipSync mentioned on Google. But I have yet to find it anywhere. Does anyone have a working link I could check out? Or do you have a bit of code I could slap into my computeSpectrum code that would approximate mouth representation? Otherwise I'll just have to roll my own. This will not work very well if there is anything but the speech playing. Honestly, the best way of doing this is just to animate it for real. Use a few stock lips and it should be data entry work. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 LipSync Engine?
This is dynamic audio - it will be speech only. It's just use my own magic to make a mouth move. Anything will be better than nothing. On Mon, Mar 15, 2010 at 11:47 AM, Henrik Andersson he...@henke37.cjb.netwrote: Eric E. Dolecki wrote: Hey all, I'd like to produce lip syncing for dynamic audio that I have. I could try and roll my own (based on computeSpectrum results) but saw AS3 LipSync mentioned on Google. But I have yet to find it anywhere. Does anyone have a working link I could check out? Or do you have a bit of code I could slap into my computeSpectrum code that would approximate mouth representation? Otherwise I'll just have to roll my own. This will not work very well if there is anything but the speech playing. Honestly, the best way of doing this is just to animate it for real. Use a few stock lips and it should be data entry work. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] faster work flows?
I currently use a few methods based on who I am working with or if I am on my own 0.pure timeline based animation with some simple scripting 1.Positioning by code of imported assets, after taking all x,y data from illustrator or flash (one frame or no frames because I am using flashdevelop or the flex IDE) (I wanted to work with catalyst, but it is proving not to be all that useful right now; thus, I am toying with the idea of making my own basic tool to do something similar for simple code gen purposes. I have heard a lot of hardcore pros talk about how they did this, so I am hoping it will work out for me.) 2.frames on the timeline using the flash IDE to position assets; yet, this makes doing transitions between frames more difficult. Is there a faster way? Right now everything seems so tedious. Time I should be coding is being spent working with the design to figure out x,y, so everything is pixel perfect. Any tips? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] faster work flows?
You might want to take a look at FlashCamo: http://flashcamo.flashartofwar.com/ It's a framework for simplifying the type of work you're talking about, by letting you use a much more complete CSS than Flash supports by default (FlashCamo supports inheritance, etc), and set up sheets of decals for various images in your app so you don't have to have a million slice files all over the place. If you're thinking about making your own tool, it might be advantageous to write something that generates your decals, CSS etc for FlashCamo to then read in – you'll have your parser built for you, so you'll just have to write the generator. Piers On 15 Mar 2010, at 16:19, Anthony Pace wrote: I currently use a few methods based on who I am working with or if I am on my own 0.pure timeline based animation with some simple scripting 1.Positioning by code of imported assets, after taking all x,y data from illustrator or flash (one frame or no frames because I am using flashdevelop or the flex IDE) (I wanted to work with catalyst, but it is proving not to be all that useful right now; thus, I am toying with the idea of making my own basic tool to do something similar for simple code gen purposes. I have heard a lot of hardcore pros talk about how they did this, so I am hoping it will work out for me.) 2.frames on the timeline using the flash IDE to position assets; yet, this makes doing transitions between frames more difficult. Is there a faster way? Right now everything seems so tedious. Time I should be coding is being spent working with the design to figure out x,y, so everything is pixel perfect. Any tips? ___ 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] faster work flows?
I think it depends on the design. Its good to be pixel perfect and pay very close attention to detail if your design calls for that. If your layout is more fluid I think that this would be a little less tedious than a design that calls for the pixel perfect look and feel. Regardless, the tedious work is sometimes what we as developers get paid for. If your rate justifies your time spent on such tasks, then hopefully the feeling of needing a better way is less intense. Again, personally, it boils down to the design of the layout. Sometimes the best way is the tedious way. --Original Message-- From: Anthony Pace Sender: flashcoders-boun...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flash Coders List Subject: [Flashcoders] faster work flows? Sent: Mar 15, 2010 11:19 AM I currently use a few methods based on who I am working with or if I am on my own 0.pure timeline based animation with some simple scripting 1.Positioning by code of imported assets, after taking all x,y data from illustrator or flash (one frame or no frames because I am using flashdevelop or the flex IDE) (I wanted to work with catalyst, but it is proving not to be all that useful right now; thus, I am toying with the idea of making my own basic tool to do something similar for simple code gen purposes. I have heard a lot of hardcore pros talk about how they did this, so I am hoping it will work out for me.) 2.frames on the timeline using the flash IDE to position assets; yet, this makes doing transitions between frames more difficult. Is there a faster way? Right now everything seems so tedious. Time I should be coding is being spent working with the design to figure out x,y, so everything is pixel perfect. Any tips? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Facebok Flash API
I much prefer the FBJS bridge over the AS 3 Client Library. Much simplter. This is based on a day and a half working with the client library to wrap my head around it and come up with a single working example - I was up and running with the whole FB API through the FBJS bridge in an hour tops. What do you mean the FBJS bridge breaks down at times? I've had no trouble outside the endless FB bugs that there's no getting around no matter how you access the API. _ _ _ Erik Mattheis Senior Web Developer Weber Shandwick Advocacy starts here. PRWeek Global Agency Report Card 2009 - Gold Medal Winner The Holmes Report Global Agency of the Year PR News Agency of the Year -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Fahim Akhter Sent: Sunday, March 14, 2010 3:55 AM To: Flash Coders List Subject: [Flashcoders] Facebook Flash API Hi, I have been using FBJS bridge to communicate with facebook in one of our applications. But sadly it breaks down at times causing a lot of mess. I was thinking to start working with the facebook API provided by adobe. Does anyone have any experience with that? Because I have heard it causes a lot of mess sometimes. Fahim Akhter Game Developer | White Rabbit Studios | http://apps.facebook.com/feline-frenzy/ ___ 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] Passing Call To Child
Navigation(' Home ', 'index', 235, 0x97f9ec); // What does this do? Please post function. _ _ _ Erik Mattheis Senior Web Developer Minneapolis T 952 346 6610 C 612 377 2272 Weber Shandwick Advocacy starts here. PRWeek Global Agency Report Card 2009 - Gold Medal Winner The Holmes Report Global Agency of the Year PR News Agency of the Year -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Susan Day Sent: Saturday, March 13, 2010 9:03 AM To: Flash Coders List Subject: Re: [Flashcoders] Passing Call To Child On Sat, Mar 13, 2010 at 10:36 AM, David Hunter davehunte...@hotmail.comwrote: hi susan. you can paste this directly into a new FLA and it should work. it works for me: http://pastebin.org/111702 i've passed it two parameters one for the actual url to navigate to and one without the http://...; junk for display in the textfield. but you could add or remove the http... stuff at different parts of the process if you only wanted to pass it one parameter but you might into problems later down the line with urls that use www and urls that don't let alone what is appended to the back .com,.co.uk,.biz,.info etc. i don't know where you are getting the urls from but if you are storing them in an array then you could just pass a number and grab the value from the array. you can always add extra parameters for x and y or any other attributes. there are many ways to skin a cat. hope i've helped, david Thank you, however, I don't think this addresses my problem. My problem is that I have an onMouseOver eventHandler that's running interference with the onClick eventHandler. For some reason I can't figure out, that mouse-over one mangles the on-click one. Here's the code for the mouse-over, and it's pretty benign: function onMouseOverHandler(e:MouseEvent) { if (e.currentTarget.name == ' Home ') { e.currentTarget.removeEventListener(MouseEvent.MOUSE_DOWN, onMouseOverHandler); e.currentTarget.removeEventListener(MouseEvent.CLICK, onPressHandler); Navigation(' Home ', 'index', 235, 0x97f9ec); ... I added the removeEventListeners to try and resolve the problem, but that didn't help. Here's the code for the other one: function onPressHandler(e:MouseEvent) { if (e.currentTarget.name == ' Home ') { Navigation(' Home ', 'index', 235, 0xff); e.currentTarget.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOverHandler); Navigate.to(e.currentTarget.getChildAt(1).text + '.html'); ... I shouldn't have to add that .html...that's what gets mangled. The rest of the url is fine, underscores and all (where applicable), so it's not just a duplication of the name property. I can't figure the silly thing out. Are there other examples of where one event handler can mangle another? TIA, Susan ___ 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] Anyone else having issues with the latest version of the flash plug in?
About the time of that update a project stopped working when exported from CS3 unless flash.text.TextField was explicitly imported - worked fine without it when exported from CS4. I chalked it up to a difference between CS3 and CS4, but the problem did occur around the time of the last Player update. _ _ _ Erik Mattheis Senior Web Developer Minneapolis T 952 346 6610 C 612 377 2272 Weber Shandwick Advocacy starts here. PRWeek Global Agency Report Card 2009 - Gold Medal Winner The Holmes Report Global Agency of the Year PR News Agency of the Year -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lord, Susan, CIV, DSS Sent: Monday, March 15, 2010 9:48 AM To: Flash Coders List Subject: [Flashcoders] Anyone else having issues with the latest version of the flash plug in? We are having issues with some of our Flash courses, where certain pages won't play using the latest plug in. The majority of the pages are fine, but, one or two pages within various courses begin to load, start playing then stop after a few seconds. When we click next and back, the page is blank from that point forward. The coding on all of our pages is exactly the same, so I am baffled. Does anyone know what in particular the latest flash security update affected. We are currently at 10.0.45.2. We tested the course on prior versions and they work fine. Any input is greatly appreciated! Susan ___ 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] Variables in E4X ?
In E4X we use dot notation to access a node in an XML: var foo = customxml.config.backgrou...@url Is it possible to substitute variables in portions of the path above? Something like this: var myNode = background; var myAttr = @url; var foo = customXML.config.[myNode].[myAttr]; Possible? Thanks very much ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Variables in E4X ?
Hi, You can use: var myNode:String = background; var myAttr:String = url; var foo:XML = customXML.config.child(myNode).attribute(myAttr); Or similar. You should possibly handle exceptions - e.g. if config does not have any background nodes, that will go pear shaped, etc. e.g. var foo:XMLList = customXML.config.child(myNode); if(0 == foo.length()) { trace(no XML nodes with type ' + myNode + '); return; } var bar:XMLList = foo[0].attribute(myAttr); if(0 == bar.length()) { trace(no XML nodes with attr ' + myAttr + '); return; } trace(found + bar.length() + nodes of + myNode + with attr + myAttr + bar.toXMLString()); Have a play with some of the tools online: http://www.linkwerk.com/pub/javascript/e4x/e4x-tester/ Works quite nicely and seems to support most queries. http://blog.betabong.com/2008/09/23/e4x-string-parser/ Only supports parsing some e4x queries, but is okay for testing basic stuff. I keep turning to this article, which is really helpful for e4x stuff time-and-time again: http://dispatchevent.org/roger/as3-e4x-rundown/ These might be helpful for info about filtering e4x: http://joshblog.net/2007/05/17/filter-xml-data-with-e4x-in-flash-part-2/ http://joshblog.net/2007/06/29/getting-advanced-with-e4x/ http://keith-hair.net/blog/2008/05/31/using-e4x-with-xml-in-as3/ HTH Glen http://www.google.co.uk/search?hl=enclient=firefox-ahs=aWxrls=org.mozilla%3Aen-US%3Aofficialchannel=sq=as3+e4x+filtering+comparisonmeta=aq=faqi=aql=oq= Steven Loe wrote: In E4X we use dot notation to access a node in an XML: var foo = customxml.config.backgrou...@url Is it possible to substitute variables in portions of the path above? Something like this: var myNode = background; var myAttr = @url; var foo = customXML.config.[myNode].[myAttr]; Possible? Thanks very much ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Variables in E4X ?
You can also do: var myNode:String = background; var myAttr:String = url; var foo:XMLList = customxml.config[mynod...@[myattr]; You almost got it ;) Kenneth Kawamoto http://www.materiaprima.co.uk/ Steven Loe wrote: In E4X we use dot notation to access a node in an XML: var foo = customxml.config.backgrou...@url Is it possible to substitute variables in portions of the path above? Something like this: var myNode = background; var myAttr = @url; var foo = customXML.config.[myNode].[myAttr]; Possible? Thanks very much ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders