RE: [Flashcoders] to apply the property to the all the dynamic textboxes in my file.
good code man, efficient usage of "instanceof " operator... Jason Lutes <[EMAIL PROTECTED]> wrote: Not super efficient, but definitely readable and functionally comprehensive: // Assigns common property values to all dynamic text fields within a specified timeline. function setCommonTextFieldProperties(targetClip:MovieClip):Void { // defaults to targeting the root timeline if (!targetClip) { targetClip = _level0; } // cycles through all of a movie clip's child objects, looking for dynamic text fields or movie clips for (var propertyName in targetClip) { // sets property values for each dynamic text field child if (targetClip[propertyName] instanceof TextField && targetClip[propertyName].type == 'dynamic') { with (targetClip[propertyName]) { autoSize = 'left'; // additional properties can be assigned } } else { // recursively invokes this function for each movie clip child // obs: components are bypassed because properties that reference ancestors cause infinite looping if (targetClip[propertyName] instanceof MovieClip && !(targetClip[propertyName] instanceof UIObject)) { arguments.callee(targetClip[propertyName]); } } } } this.setCommonTextFieldProperties(); - Jason ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com Send instant messages to your online friends http://asia.messenger.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] 2D arrays
hi list - i thought that flash supported 2d arrays of the [x][y] syntax persuasion. can someone give me some pointers what I'm doing wrong? maybe you cant create arrays this way, you can only access them? function artest() { var arr = new Array(); arr[1][1] = "whatsup"; arr[3] = "three"; trace("arr is:"); trace(arr); trace(arr[1][1]); // undefined trace(arr[3]); // three } arr is: undefined,undefined,undefined,three undefined three -- --- David "DC" Collier mailto:[EMAIL PROTECTED] +81 (0)80 6521 9559 skype: callto://d3ntaku --- Pikkle 株式会社 http://www.pikkle.com --- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] 2D arrays
David, Flash handles arrays such as a[x][x] as arrays of arrays. So what you'd be setting up is something that looks like this: var a:Array=[ [1,2,3],[4,5,6]]; which you could create as above, or to adjust the code to look more like yours: var a:Array=new Array(); a[0]=new Array(); // This is the step that you were missing... a[0][0]=1; a[0][1]=2; a[0][2]=3; a[1]=new Array(); // You need to do this for each array contained in the top-level array a[1][0]=4; a[1][1]=5; a[1][2]=6; Make sense? HTH, Ian On 12/16/06, dc <[EMAIL PROTECTED]> wrote: hi list - i thought that flash supported 2d arrays of the [x][y] syntax persuasion. can someone give me some pointers what I'm doing wrong? maybe you cant create arrays this way, you can only access them? function artest() { var arr = new Array(); arr[1][1] = "whatsup"; arr[3] = "three"; trace("arr is:"); trace(arr); trace(arr[1][1]); // undefined trace(arr[3]); // three } arr is: undefined,undefined,undefined,three undefined three -- --- David "DC" Collier mailto:[EMAIL PROTECTED] +81 (0)80 6521 9559 skype: callto://d3ntaku --- Pikkle 株式会社 http://www.pikkle.com --- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Mid level Flasher needed.
Hi all, I just posted a job on Craigslist Maryland. You can get an idea of what I'm looking for there: http://baltimore.craigslist.org/art/249738732.html. I have some pretty damn cool gigs (some boring too I guess) that I need help on. I've got more work than I can handle and my family is starting to not recognize me. You need to have good programing skills and good design. Money wise I'm generous, but I'm pretty certain I couldn't afford some of the mega-flashers that post here. I guess, I'm looking for someone mid-level. Maybe someone who operates on a top notch level, but needs some high profile clients in there portfolio. Heres an example of the first project I need help on: http://www.holidayinnexpresspromotion.com/interactiveexperience/window.html I need 4 of those types of things mid January. I don't have time to do a lot of hand holding so be confident! I'm in Glenwood Maryland USA. Yes, it would be great if I could meet you in person, but what the hell, I've never seen most of the people I work for and it's worked out very well. Anyway, if you feel that you can help let me know and we'll talk. [EMAIL PROTECTED] Thanks all, Kurt ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] 2D arrays
Hi there! var arr = new Array(); arr[1] =[] <--- ad this. arr[1][1] = "whatsup"; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of dc Sent: Saturday, December 16, 2006 12:04 PM To: Flashcoders mailing list Subject: [Flashcoders] 2D arrays hi list - i thought that flash supported 2d arrays of the [x][y] syntax persuasion. can someone give me some pointers what I'm doing wrong? maybe you cant create arrays this way, you can only access them? function artest() { var arr = new Array(); arr[1][1] = "whatsup"; arr[3] = "three"; trace("arr is:"); trace(arr); trace(arr[1][1]); // undefined trace(arr[3]); // three } arr is: undefined,undefined,undefined,three undefined three -- --- David "DC" Collier mailto:[EMAIL PROTECTED] +81 (0)80 6521 9559 skype: callto://d3ntaku --- Pikkle 株式会社 http://www.pikkle.com --- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] FLVPlayback question...
hey, I had the same problem and manage to get around it with adding a 0.1sdelay to the function that load the video, so its not being called once the component [or the movieclip that holds it] is attached but once its already on the stage. hth a On 12/15/06, Josh Santangelo <[EMAIL PROTECTED]> wrote: I've had similar problems and struggled for weeks to solve them. I found that in general, FLVPlayback is much more reliable with RTMP streams than HTTP. Another thing to mess with is the visiblePlayerIndex and activePlayerIndex properties. Instead of playing one file right after the other in the same player, switch between a couple of player indexes. I think this approach works a bit better. -josh On Dec 13, 2006, at 10:36a, grimmwerks wrote: > I've got an instance of the FLVPlayback in an app that is getting sent > a path; it's contentPath was just being resent the new path. > > It's not working 100%, as every so often it decides it doesn't want to > load that requested video. > > What's a better way of using one FLVPlayback object that reloads video > requested? Birthing a new instance each and every time? > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] AS3 with Flash Authoring 9
Hello, I am getting ready to launch officially a major project of e-learning programs with a lot of interactive graphics and animation. I have already started the project with AS 2 code. I am wondering whether it would be a good idea and worthwhile direction to migrate now into AS 3, using the beta version of the Flash Authoring #9. Any ideas and suggestions? Thanks, Daniel ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Outlook and Flash
Jason - Depending on your constraints for the runtime / player of the application you could use Proto to host the Flash files as sort of an integration and scaffolding layer, then use VBA to integrate w/ office apps. Here's two links if you want to check that out: 1. Proto flash integration: http://www.protosw.com/products/features/flash 2. a movie/ demo showing Outlook contacts pulled and put onto a Yahoo! map (that is just a SWF running in Proto. sort of like you would do w/ the calendar): http://www.protosw.com/products/intro-movie I'm happy to answer questions that are non-flash related about Proto off-list too if you want to email me directly. Cheers, Byron Proto Software http://www.protosw.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Friday, December 15, 2006 5:08 PM To: Flashcoders mailing list Subject: [Flashcoders] Outlook and Flash I know with the security of the Flash player, it's probably not possible or easy (unless MS has some sort of webservice for Exchange servers built in or something) to grab a person's Outlook Calendar or Task list - but what about a Flash desktop application - is that information available through some API? Can a third party app for Flash be used to call an application which will retrieve this data? I know there would be security issues on that too, but I was tasked to investigate this. I might have some resources to write that application, but wouldn't know what the possibilities would be on the Flash end. Anyone done any integration with Outlook before? Thanks. Jason Merrill Bank of America Learning & Organizational Effectiveness ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Actionscript 3 Books
actionscript cookbook is out. moock's as3 book is partially available as pdf through safari rough cuts. MT On Dec 15, 2006, at 4:44 PM, slangeberg wrote: They probably are more concerned with your knowledge of 'compiling AS3'. If you know AS2, then you're good to go! I figured out AS3 when flex 2 was in alpha. Not much to it, if you know any java/C#/javascript-like language (what, Algol-based?). Especially if you download that language ref. -Scott On 12/15/06, Millie Niss <[EMAIL PROTECTED]> wrote: I was just looking at Joey Lott's "Advanced Actionscript 3 With Design Patterns" book in the store, and it looked pretty good, but it had "knowledge of Actionscript 3" as a pre-requisite. I am not aware of any (print) books introducing Actionscript 3... Are there any? I'd like to start learning it (I saw that regular expressions are supported and that alone would be nice...) but I don't like the idea of learning a programming language from beta versions of Adobe's Help... Millie ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- : : ) Scott ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Microsoft Expression ...
Anyone tried any of the Expression apps yet, specifically Blend and Web ?Any thoughts ? I guess the Expression suite will be competing with the Apollo platform once it's released.Yes / No.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] mouseup outside the browser?
hi all, Is there a way to detect a mouseup outside the browser window in AS3? Or are mouse events trapped to the stage? thanks! Alan ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] using flash mxp components in Flex2
Hi all, Does someone have any experience using flash components (mxp, downloaded from Adobe Exchange) in Flex 2? Or is there any (other) way to utilize them? I have a strong feeling that there's no problem ( as all goes as SWF), but just curious... -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] AS3 with Flash Authoring 9
Daniel, AS3 requires Flash Player 9. Is that dependency ok for your application? As of the latest FP penetration stats (Sept '06), FP9 is only at around 36% (of the known universe). Some have reported successfully deploying on external facing sites with the express install very easily upgrading anyone who doesn't have FP9. If you are ok with the FP9 dependency, I personally encourage you to immediately migrate now into AS3, using the beta version of the Flash Authoring #9. FP9 is substantially faster. The changes between AS2 and AS3 are not trivial. If AS3 is in your future, and if you are ok with the FP9 dependency now, I would encourage you to not building any more legacy AS2 code. My 2¢ I am eager to hear other people's thoughts too :-) hth, g On 12/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hello, I am getting ready to launch officially a major project of e-learning programs with a lot of interactive graphics and animation. I have already started the project with AS 2 code. I am wondering whether it would be a good idea and worthwhile direction to migrate now into AS 3, using the beta version of the Flash Authoring #9. Any ideas and suggestions? Thanks, Daniel ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] [WORK-AROUND] ScrollPane malfunction in IE but not Firefox
As reported previously, IE (but never Firefox) will incorrectly begin firing its onComplete event handler before it has fully loaded and initialized its internal "spContentHolder" movieclip. If I hit F5 to reload the SWF from the browsers cache the scrollpane will load correctly (from the cache). After thinking about this, I realized that I could simulate a browser cache refresh by calling ScrollPane.refreshPane()which forces a reload of its internal "spContentHolder" movieclip but this time *from*the*browser*cache*. It appears to do the trick. I mention it here, in case it will help others. To see the bug in IE clear the cache and then observe the behavior here: http://dennislandi.com/tiledesigner/tile_designer05_x100.html And then here is the fixed version: http://dennislandi.com/tiledesigner/tile_designer06_x100.html Heres is a snippet of my code showing how I handled this: function OnLeftScrollPaneComplete() { if (!_root.scrollpane_loaded) { _root.scrollpane_loaded = true; _root.leftScrollpane.refreshPane(); return; }; ...//continue with normal onComplete code here... }; Hope that helps others. Too often I see a bug reported here without ever seeing a resolution posted... This doesn't fix the bug in IE's Flash Player but it appears to be a rock-solid work-around. Mind you, I load an empty moviclip into the scrollPane's "spContentHolder" property, so there is no penalty in instantly loading again from the cache... Cheers. Dennis Landi Allied Data, Inc. --- Dennis Landi <[EMAIL PROTECTED]> wrote: > Hello > > Please look at the following flash app in Firefox > and > Internet Explorer: > > http://dennislandi.com/tiledesigner/tile_designer05_x100.html > > On my two machines when the cache is cleared, IE > will > not load the scrollPanes correctly. Once I allow IE > to finish loading the thumbnails (although they are > not loading inside the left scrollPane as intended). > > I then can refresh the page and the app works as > expected, the images loading *inside* the > scrollPanes. > > Firefox works correctly all the time. > > I load each scrollPane.contentPath property like > this: > > > _root.leftScrollpane.contentPath = 'mc_empty.swf'; > > - with an empty SWF file. I then use this loaded > movieclip as a canvas to draw vector images as well > as > host new movielips with which I load the actual > images. > > Could it be that the scrollPane is not properly > loading content via the contentPath property before > I > start populating each ScrollPane? I don't see how > that can be since I begin populating these > scrollPanes > in their respective "complete" event handler, so > this > by definition should guarantee that the contentpath > has been correctly loaded before I perform any > further > operations on each scroll pane. > > Any ideas? Because is works flawlessly in Firefox > every time, I am inclined to think this is a problem > with IE. The same problem occurss in IE6 and IE7. > What can I do in my code to get around this problem > in > IE? > > Is this the best forum to ask this sort of question, > or is there a better forum? > > Thanks for your time in advance. > > > > -d > > P.S. On a side note, I've never been able to load a > scrollPane.content path from a movieClip in the > library but only load it as as external file on my > webserver? What is the secret to loading the > scrollPane.contentPath from the library? Anyone > have > a sample they can send me? > > dennis [at] dennislandi [dot] com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com