[Flashcoders] Adobe Site of the Day RSS Feed
I've been annoyed that there is no RSS feed (that I can find?) for the Adobe Site of the Day awards, so I made one myself. It's here: http://feed43.com/2786211776444037.xml Powered by the great feed43.com service. -josh (who may or may not have been the developer on today's award- winner) ___ 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] Adobe Site of the Day RSS Feed
That's good man :) Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Josh Santangelo Sent: Thursday, 24 August 2006 4:18 PM To: Flashcoders mailing list Subject: [Flashcoders] Adobe Site of the Day RSS Feed I've been annoyed that there is no RSS feed (that I can find?) for the Adobe Site of the Day awards, so I made one myself. It's here: http://feed43.com/2786211776444037.xml Powered by the great feed43.com service. -josh (who may or may not have been the developer on today's award- winner) ___ 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] adding help books
Hi list, Iam trying to add a new help book to the standard help through MXI but I am not able to find the exact way to do it, I googled a lot and found nothing much useful. Can some one please help me in this ...thanks in advance Ravi Marella ___ 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] Flash/Actionscript Coding conventions
Surely this is just a matter of using a fully featured IDE to develop your code in - if you use Flashdevelop for instance you can block comment/uncomment any lines/lines using // syntax from the edit menu with comment line, or with keyboard shortcuts - this will not conflict with block comments /**/ and therefore you will no longer have a problem. Life once more is wonderful. M -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ Sent: 24 August 2006 02:19 To: Flashcoders mailing list Subject: RE: [Flashcoders] Flash/Actionscript Coding conventions why does adding block comments to your code ruin it? I still don't understand how Javadoc makes your process suffer. From my first post: Commenting like that in your code makes it completely impossible to easily and completely comment out blocks of code using /* */ because they have their */ inside their comments. Believe it or not, this is a very important tool in debugging. If somebody wrote something completely impenetrable and I'm in charge of implementing it and it doesn't work, guess what? I rewrite it or I make them fix it. I'm not saying documentation isn't important, I'm saying mucking up your code with documentation in Actionscript by using Javadoc's requirements is counterproductive to Flash development. If Javadoc let me use line comments instead of block comments I would have no issue. ___ 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] Fastest way to disable mouse events
Hi, I have a clip with a hierarchy of nested clips inside. Some of the clips have mouse events and I would like to disable them all at once (not disable each one manually) I thought I could somehow just tell the containing clip to ignore all events - something like container.mouseEnabled = false but no luck. What is the recommended way of doing this? Sammi ___ 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: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.
Okay, weirder and weirder: On my local machine loading from a local file, loading .swf v6 gives instanceof MovieClip=false and v7 and v8 give instanceof MovieClip=true. On a remote machine loading from that same remote machine, loading .swf v6 gives instanceof MovieClip=false and v7 and v8 give instanceof MovieClip=true. On my local machine loading from a remote machine, all versions give instanceof MovieClip=false. On a remote machine loading from a different remote machine, all versions give instanceof MovieClip=false. My initial thought is it must be a cross-domain scripting issue - i.e. the app wouldn't let you check the instanceof because of a domain scripting policy (see http://www.adobe.com/devnet/flash/articles/fplayer_security_04.html). But I've tested it with System.security.allowDomain() and checked scripting between the two movies, and even when cross-domain scripting works perfectly (no sandbox violations) the instanceof still returns false. (I'm not 100% sure whether I've got the System.security settings right - but I can read vars in the loaded movies and vice versa, so that sounds pretty correct to me.) I still think that's the most likely candidate - that it's _something_ to do with the sandbox/security system getting in the way. After all, a common feature is that v6 .swfs fail all the time - and we already know that a v6 movie can never share a global object with a v7 or v8 movie. I'm certainly running out of ideas for a simple fix, here - and it's definitely not the loading code, it's a 'feature' or bug in the Flash Player. Hope some of this helps! Cheers, Ian On 8/23/06, John Grden [EMAIL PROTECTED] wrote: cool, thanks Ian, I'll try the same tests with published swf's Really appreciate your help! ___ 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: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.
Oh, I should add - I get the same results when I throw the Fling code out completely and write a simple loader from scratch. Cheers, Ian On 8/24/06, Ian Thomas [EMAIL PROTECTED] wrote: I'm certainly running out of ideas for a simple fix, here - and it's definitely not the loading code, it's a 'feature' or bug in the Flash Player. ___ 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] Fastest way to disable mouse events
Found it. container.mouseChildren = false; Isn't this just the best ActionScript ever :) Samúel Jónasson wrote: Hi, I have a clip with a hierarchy of nested clips inside. Some of the clips have mouse events and I would like to disable them all at once (not disable each one manually) I thought I could somehow just tell the containing clip to ignore all events - something like container.mouseEnabled = false but no luck. What is the recommended way of doing this? Sammi ___ 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] Re: OOP methodology and flash. I'm loosing my faith...
Maybe I'm not explaining my self clear. What I want to know is what is the best approach to make a site with a menu with some buttons with rollOvers, rollOuts... When you click a button it stays selected until you click another one. Clicking any button will load content on a specific place on the web, making it appear with some animation and making also the last one desapear... I ask this because 80% of the projects I make have that structure or very similar. And I think it can be helpfull to other people too. On 8/23/06, Ricardo Sánchez [EMAIL PROTECTED] wrote: ... well, not really but I thought it was good as I title I always use OOP for my flash projects but, even if I find it easier than timeline coding, I dont know if I'm taking all the advantage of OOP. I'm not even sure if I am aplying the correct patterns for every problem. My insecurity probably has to do with the lack of normal work OOP flash examples. For example the typicall top menu/content web. How can OOP be applied to that? I guess I find a gap in the theory of knowing how to link the symbols, movieclips, timeline and graphics in flash with the code in external files. Am I opening a can of worms? Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] [AS3] Does useWeakReference parameter of addEventListener() work?
Does the useWeakReference parameter of EventDispatcher.addEventListener() method in ActionScript 3.0 work? I referred the following documents: ActionScript 3.0 Language Reference http://livedocs.macromedia.com/labs/as3preview/langref/flash/events/EventDispatcher.html#addEventListener() AS3: Weakly Referenced Listeners http://www.gskinner.com/blog/archives/2006/07/as3_weakly_refe.html Then tried the script as follows: // frame action import flash.events.Event; addEventListener(EVENT.ENTER_FRAME, function (eventObject:Event):void { trace(eventObject);; }, false, 0, true); // sets useWeakReference to true But the anonymous listener function does not seems to be garbage collected. And it continues to be called on every enterFrame event. I am using Flash Professional 9 ActionScript 3.0 Preview. How the useWeakReference parameter works? Any suggestion and advice would be very appreciated. Regards, -- Fumio Nonaka mailto:[EMAIL PROTECTED] http://www.FumioNonaka.com/ My bookshttp://www.FumioNonaka.com/Books/index.html Flash communityhttp://F-site.org/ ___ 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] Re: OOP methodology and flash. I'm loosing my faith...
For the system you are describing I use one from this book (chapter 3) http://www.amazon.com/gp/product/1590595947 It is a nice system formenus, doing exactly what you want and it is easy to customize Wouter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ricardo Sánchez Sent: Thursday, August 24, 2006 2:53 PM To: Flashcoders mailing list Subject: [Flashcoders] Re: OOP methodology and flash. I'm loosing my faith... Maybe I'm not explaining my self clear. What I want to know is what is the best approach to make a site with a menu with some buttons with rollOvers, rollOuts... When you click a button it stays selected until you click another one. Clicking any button will load content on a specific place on the web, making it appear with some animation and making also the last one desapear... I ask this because 80% of the projects I make have that structure or very similar. And I think it can be helpfull to other people too. On 8/23/06, Ricardo Sánchez [EMAIL PROTECTED] wrote: ... well, not really but I thought it was good as I title I always use OOP for my flash projects but, even if I find it easier than timeline coding, I dont know if I'm taking all the advantage of OOP. I'm not even sure if I am aplying the correct patterns for every problem. My insecurity probably has to do with the lack of normal work OOP flash examples. For example the typicall top menu/content web. How can OOP be applied to that? I guess I find a gap in the theory of knowing how to link the symbols, movieclips, timeline and graphics in flash with the code in external files. Am I opening a can of worms? Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] [AS3] Does useWeakReference parameter of addEventListener() work?
Sorry, one typo: Fumio Nonaka wrote: // frame action import flash.events.Event; // addEventListener(EVENT.ENTER_FRAME, addEventListener(Event.ENTER_FRAME, function (eventObject:Event):void { trace(eventObject);; }, false, 0, true); // sets useWeakReference to true -- Fumio Nonaka mailto:[EMAIL PROTECTED] http://www.FumioNonaka.com/ My bookshttp://www.FumioNonaka.com/Books/index.html Flash communityhttp://F-site.org/ ___ 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] onLoadInit failure
Thanks for the feedback Mike. I was vainly hoping it wasn't due to the crap factor. I will add movieClipLoader to the list of Flash components that can't quite deliver . ___ 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] XML question
Is your XML object set to ignoreWhite? http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004file=1896.html Scott On 24/08/06, Wouter [EMAIL PROTECTED] wrote: Hi list, I got an MS Acces database with data, which I converted to XML (direct export from Access) and I read that in flash.so far so good, but when I display the text in a textfield there are a lot of empty lines between the linesI found out that there are somehowe some \r in there that probably cause this.but how do I get them out? I tried to replace all the \r but that did not help Any ideas? ___ 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] Teknision looking for Flash Developers
Hey everyone, I am just posting this to see if anyone on the list is interested in working in Ottawa. We have 2 Flash Development positions to fill. -- Expert Flash Developer We are looking for an experienced Macromedia Flash developer to join our team. This position requires a high level of experience with the Flash Platform. The applicant selected will be primarily focused on developing mid to large scale Rich Internet Applications, and therefore must have an expert level knowledge of Actionscript. It is important that the applicant's experience goes beyond scripting. We are looking for someone that has the ability to take part in architecting large applications, familiar with design patterns, and must be comfortable working within established frameworks and source code. Whether it is REST, XML/RPC, SOAP, Remoting, etc, Teknision is looking for a person that has extensive experience in developing interfaces that leverage remote content and services. Experience in developing Rich Internet Applications using the Flex Framework, is a major benefit. Experience in server-side development is an asset. The applicant must display attention to detail, be able to organize time effectively and work under tight deadlines in a fast-paced environment. They will also need to be a team player with excellent interpersonal and conceptual skills plus willingness to roll up their sleeves and do whatever it takes to get the job done. Must be willing to relocate to the beautiful city of Ottawa. Please send your resume to [EMAIL PROTECTED] ___ 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] clone object
Careful with circular references. Pretty easy to get that one in to exceed the 256 recursion limit. Scott On 23/08/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: static function clone(obj:Object):Object { var o = (null != obj.length) ? [] : {}; for (var i in obj) { o [i] = (typeof obj[i] == object) ? clone(obj[i]) : obj[i]; } return o; } ___ 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] XML question
Thanx! But ignoreWhite = true So that`s not it...any other ideas? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Hyndman Sent: Thursday, August 24, 2006 4:14 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] XML question Is your XML object set to ignoreWhite? http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/h tml/wwhelp.htm?context=Flash_MX_2004file=1896.html Scott On 24/08/06, Wouter [EMAIL PROTECTED] wrote: Hi list, I got an MS Acces database with data, which I converted to XML (direct export from Access) and I read that in flash.so far so good, but when I display the text in a textfield there are a lot of empty lines between the linesI found out that there are somehowe some \r in there that probably cause this.but how do I get them out? I tried to replace all the \r but that did not help Any ideas? ___ 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] dynamic spacing
Anyone have an algorithm to space dynamically created movieClips centered on the stage? I'm using attachMovie in a for loop to create the clips based on an unknown number of itemsusually 3-5 items that are about 150px wide each. Thanks.. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Singleton playing video twice on stage
Hi list... I've written a singleton that should load in videos on demand, but it plays the video twice, once only audio, and the second, a couple of milliseconds later, both audio and video. Components on the stage call loadVideo, and through debugging, I know that call is only fired once, therefore, I can't figure out why the video runs twice. Also, I don't get what the difference is between an FLVplayback component and a Video item in the library. And, is there a method that commences loading of a video? And also, a property that shows elapsed time? The documentation just isn't clear to me. Thanks, - Michael M. import flash.external.*; import flash.geom.Transform; import flash.geom.ColorTransform; class welcomeWebpage { // class properties /// public var nc:NetConnection; public var ns:NetStream; public var ui:MovieClip; public var intervalIDs:Object; public static var inst:welcomeWebpage = undefined; // class methods // private function welcomeWebpage() { // singleton pattern } public static function getInstance():welcomeWebpage { if (inst == undefined) { inst = new welcomeWebpage(); } return inst; } public function init():Void { // init class properties... intervalIDs = {loader:new Number(), player:new Number()}; ui = _root.ui; ui.vidDisplay.stop(); nc = new NetConnection(); nc.connect(null); ns = new NetStream(nc); } // video related methods public function loadVideo(theVid, callingLink) { ui.vidDisplay.gotoAndStop(2); ns.play(theVid); intervalIDs.loader = setInterval(this, loadProgress, 100, theVid); } public function loadProgress(nameOfVid):Void { if ((ns.bytesLoaded / ns.bytesTotal) == 1) { // finished loading: clear interval, play video this.playVideo(nameOfVid); clearInterval(this.intervalIDs.loader); } else { // not completely loaded in yet trace(Math.round((ns.bytesLoaded / ns.bytesTotal) * 100) + : pct loaded of + nameOfVid); } } public function playVideo(theVid):Void { // done loading, now play... ui.vidDisplay.theScreen.contentPath = theVid; //intervalIDs.player = setInterval(this, playProgress, 100, theVid); } public function playProgress(nameOfVid):Void { trace(ui.vidDisplay.theScreen.contentPath + + ns.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
Re: [Flashcoders] flip pages in as2 or the like
The new flashloaded pageflip component works great: http:// flashloaded.com/flashcomponents/pageflipper On 8/23/06, Matthias Dittgen [EMAIL PROTECTED] wrote: Personally I dislike those questions asking for ready-to-use code, but this time I have such a question by myself: Does someone know of a page flipping/ turn page AS2 solution? I only know Pageflip (http://www.iparigrafika.hu/pageflip/), which is a grown compley flash5/flashMX solution, that I don't want to code in. It has this bug, that it kills page content like dynamic/input textfields, which is not so good. Thank you! Matthias ___ 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 Jordan Robinson ___ 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] adding help books
Hi list, Iam trying to add a new help book to the standard help through MXI but I am not able to find the exact way to do it, I googled a lot and found nothing much useful. Can some one please help me in this ...thanks in advance Ravi Marella ___ 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] select the current whole line in a multiline textfield
For a textfield with multiple lines of text and wordWrap set to true, I want to select the whole line of the current caretIndex. Is there a script or a tutorial? How could I do this? --Keith H-- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash + Array + Web Service
I read the following post and have the same exact problem. How did you construct the .net web service to allow the web service to grab the value of the complex array from Flash: This is an old thread I started back in May which I am following up on with a question. Muzak had replied to me with this: If you'll be using webservices that you can control (which it sounds like is the case), don't send XML back and forth. When using webservices, you can send Array of Objects back and forth, which is alot easier to work with. There should be a list of data type conversions in the docs somewhere. I am using the Web service classes to load in a wsdl from a .NET developer using C#. We have the basics working, I can receive a simple string from him no problem by calling the SOAP method. However, since Muzak (in the quote above) and the docs say the Web service classes supports complex object types, we are now trying to read in a complex object in Flash. The C# developer created a method for me, called GetProject() that returns a complex object he created (the complex object is simple - it just has a property that contains a simple string - i.e. objProj.Title). However, when I trace the result on the method, it returns null. Neither the C# developer or myself can figure out where we are going wrong. Any ideas? One of us has something wrong with this object and we're not sure who. Also, for a second related question, once I can read the object in Flash (it would contain arrays and properties, etc.) - we want to just send that object back to the webservice to update the object in C#. Any issues with that? The Help docs only say this about objects: Web Service classes Supported Types Object Types Object Types: Complex Type - ActionScript object composed of properties of any supported type Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions ___ 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] XML question
You could remove the line breaks from your XML file. \r is a carriage return. In Windows, it accompanies a newline character when someone presses enter. Scott On 24/08/06, Wouter [EMAIL PROTECTED] wrote: Thanx! But ignoreWhite = true So that`s not it...any other ideas? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Hyndman Sent: Thursday, August 24, 2006 4:14 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] XML question Is your XML object set to ignoreWhite? http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/h tml/wwhelp.htm?context=Flash_MX_2004file=1896.html Scott On 24/08/06, Wouter [EMAIL PROTECTED] wrote: Hi list, I got an MS Acces database with data, which I converted to XML (direct export from Access) and I read that in flash.so far so good, but when I display the text in a textfield there are a lot of empty lines between the linesI found out that there are somehowe some \r in there that probably cause this.but how do I get them out? I tried to replace all the \r but that did not help Any ideas? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.
Thanks for your help on this Ian. I'm not sure I understand all of what you found here, so let me summarize with some questions to see if I got it right. Flash 6 SWFs fail every time when loaded remotely? - This hasn't been my experience. I've been able to load some small ones (20K) without the issue. You think it may have to so with domain security in Flash? When loading from your files system the Flash 7 and 8 files load correctly but not Flash 6? Some findings I have made: The behavior is slightly different on a Macintosh versus a Windows machine. Which are you using? Altering nothing before the SWF is fully loaded screws up the instanceof stuff but all of the MovieClip properties work just fine. If I try to alter the _visible property before it's fully loaded it causes that property to no longer function once fully loaded. I have some other ideas to try out this morning and I will keep you posted on my progress. Thanks to all of you who tried to help. -Chris On 8/24/06, Ian Thomas [EMAIL PROTECTED] wrote: Oh, I should add - I get the same results when I throw the Fling code out completely and write a simple loader from scratch. Cheers, Ian On 8/24/06, Ian Thomas [EMAIL PROTECTED] wrote: I'm certainly running out of ideas for a simple fix, here - and it's definitely not the loading code, it's a 'feature' or bug in the Flash Player. ___ 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] Re: OOP methodology and flash. I'm loosing myfaith...
Mmm, some hints, It is OOP and it consists of 2 main classes that are extended by two other classes . The 2 main classes define all the methods necessarye to let the system function (stuff like selected state, attaching the buttons (which reside in your library)). Then the 2 classes that extend the main ones arrange specific things for your particular needs (like rollover animations, positioning). This is my best short explanation, hope it clears things up a bit! (and why not try to find a copy of that specific chapter 3 somewhere online..) Wouter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ricardo Sánchez Sent: Thursday, August 24, 2006 3:49 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Re: OOP methodology and flash. I'm loosing myfaith... Can you share some hints? Is it OOP? If you tell me that book is good I'll probably buy it but it would be nice if you share a little of what you are talking about. Thanks! On 8/24/06, Wouter [EMAIL PROTECTED] wrote: For the system you are describing I use one from this book (chapter 3) http://www.amazon.com/gp/product/1590595947 It is a nice system formenus, doing exactly what you want and it is easy to customize Wouter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ricardo Sánchez Sent: Thursday, August 24, 2006 2:53 PM To: Flashcoders mailing list Subject: [Flashcoders] Re: OOP methodology and flash. I'm loosing my faith... Maybe I'm not explaining my self clear. What I want to know is what is the best approach to make a site with a menu with some buttons with rollOvers, rollOuts... When you click a button it stays selected until you click another one. Clicking any button will load content on a specific place on the web, making it appear with some animation and making also the last one desapear... I ask this because 80% of the projects I make have that structure or very similar. And I think it can be helpfull to other people too. On 8/23/06, Ricardo Sánchez [EMAIL PROTECTED] wrote: ... well, not really but I thought it was good as I title I always use OOP for my flash projects but, even if I find it easier than timeline coding, I dont know if I'm taking all the advantage of OOP. I'm not even sure if I am aplying the correct patterns for every problem. My insecurity probably has to do with the lack of normal work OOP flash examples. For example the typicall top menu/content web. How can OOP be applied to that? I guess I find a gap in the theory of knowing how to link the symbols, movieclips, timeline and graphics in flash with the code in external files. Am I opening a can of worms? Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ 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] adding help books
Are you just looking for what to put in your MXI or are you looking for how to setup your Help book? Here's an example of a file node in the MXI: file name=help_toc.xml destination=$flash/HelpPanel/Help/MyBook / The MyBook folder will be a folder where all of your docs are kept. The help_toc.xml file is the definition of your help structure. If you need more on creating the Help files, check this link: http://www.northcode.com/forums/showpost.php?p=29823postcount=6 Hth, Derek Vadneau - Original Message - From: Ravi Marella [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, August 24, 2006 11:08 AM Subject: SPAM-LOW: [Flashcoders] adding help books Hi list, Iam trying to add a new help book to the standard help through MXI but I am not able to find the exact way to do it, I googled a lot and found nothing much useful. Can some one please help me in this ...thanks in advance Ravi Marella ___ 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] Re: OOP methodology and flash. I'm loosing my faith...
My current system is to create a Main class, which is the only thing on the timeline. Then instantiate, passing in _root: var main:Main = new Main( this ); Where my class now has an internal reference to _root, but no headaches with embedding movies, forcing _lockroot, or anything. eg: import PanelHelper; import mx.controls.Label; import mx.core.UIObject; class Main { function Main( root:MovieClip ) { var panel:PanelHelper = root.createObject( PanelView, panelView, 0 ); panel.setLabel( What is going on? ); } } Again, you can take it to next level, by associating a class with the clip itself. In the library in the linkage option, you can specify an AS2 class to associate with your clip (here, PanelHelper). I believe that this class can extend UIObject or UIComponent, both of which give you a lot of advanced functionality. However, inside that class, you need to create references to whatever assets are on the stage of that library clip, such as: import mx.core.UIObject; class PanelHelper extends UIObject { private var input:TextField; function PanelHelper() { trace( \n *** PanelHelper() ); trace( input.text: +input.text ); } } This would probably be a good place to read more: http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=3023.html Sorry if this isn't going anywhere, but wanted to get people thinking - and correcting me, if they have better ways! Scott On 8/24/06, Ricardo Sánchez [EMAIL PROTECTED] wrote: Can you share some hints? Is it OOP? If you tell me that book is good I'll probably buy it but it would be nice if you share a little of what you are talking about. Thanks! On 8/24/06, Wouter [EMAIL PROTECTED] wrote: For the system you are describing I use one from this book (chapter 3) http://www.amazon.com/gp/product/1590595947 It is a nice system formenus, doing exactly what you want and it is easy to customize Wouter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ricardo Sánchez Sent: Thursday, August 24, 2006 2:53 PM To: Flashcoders mailing list Subject: [Flashcoders] Re: OOP methodology and flash. I'm loosing my faith... Maybe I'm not explaining my self clear. What I want to know is what is the best approach to make a site with a menu with some buttons with rollOvers, rollOuts... When you click a button it stays selected until you click another one. Clicking any button will load content on a specific place on the web, making it appear with some animation and making also the last one desapear... I ask this because 80% of the projects I make have that structure or very similar. And I think it can be helpfull to other people too. On 8/23/06, Ricardo Sánchez [EMAIL PROTECTED] wrote: ... well, not really but I thought it was good as I title I always use OOP for my flash projects but, even if I find it easier than timeline coding, I dont know if I'm taking all the advantage of OOP. I'm not even sure if I am aplying the correct patterns for every problem. My insecurity probably has to do with the lack of normal work OOP flash examples. For example the typicall top menu/content web. How can OOP be applied to that? I guess I find a gap in the theory of knowing how to link the symbols, movieclips, timeline and graphics in flash with the code in external files. Am I opening a can of worms? Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- : : ) 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
RE: [Flashcoders] XML question
Hey Scott, Thanx again! You happen to know a smart way to delete those white lines? Wouter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Hyndman Sent: Thursday, August 24, 2006 5:18 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] XML question You could remove the line breaks from your XML file. \r is a carriage return. In Windows, it accompanies a newline character when someone presses enter. Scott On 24/08/06, Wouter [EMAIL PROTECTED] wrote: Thanx! But ignoreWhite = true So that`s not it...any other ideas? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Hyndman Sent: Thursday, August 24, 2006 4:14 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] XML question Is your XML object set to ignoreWhite? http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/co mmon/h tml/wwhelp.htm?context=Flash_MX_2004file=1896.html Scott On 24/08/06, Wouter [EMAIL PROTECTED] wrote: Hi list, I got an MS Acces database with data, which I converted to XML (direct export from Access) and I read that in flash.so far so good, but when I display the text in a textfield there are a lot of empty lines between the linesI found out that there are somehowe some \r in there that probably cause this.but how do I get them out? I tried to replace all the \r but that did not help Any ideas? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ 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] XML question
Did you try condenseWhite on your textfield? http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/w whelp.htm?context=LiveDocs_Partsfile=2740.html From the help files: var my_str:String = Hello\tWorld\nHow are you?\t\t\tEnd; this.createTextField(first_txt, this.getNextHighestDepth(), 10, 10, 160, 120); first_txt.html = true; first_txt.multiline = true; first_txt.wordWrap = true; first_txt.condenseWhite = false; first_txt.border = true; first_txt.htmlText = my_str; this.createTextField(second_txt, this.getNextHighestDepth(), 180, 10, 160, 120); second_txt.html = true; second_txt.multiline = true; second_txt.wordWrap = true; second_txt.condenseWhite = true; second_txt.border = true; second_txt.htmlText = my_str; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wouter Sent: Thursday, August 24, 2006 8:37 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] XML question Thanx! But ignoreWhite = true So that`s not it...any other ideas? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Hyndman Sent: Thursday, August 24, 2006 4:14 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] XML question Is your XML object set to ignoreWhite? http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/comm on/h tml/wwhelp.htm?context=Flash_MX_2004file=1896.html Scott On 24/08/06, Wouter [EMAIL PROTECTED] wrote: Hi list, I got an MS Acces database with data, which I converted to XML (direct export from Access) and I read that in flash.so far so good, but when I display the text in a textfield there are a lot of empty lines between the linesI found out that there are somehowe some \r in there that probably cause this.but how do I get them out? I tried to replace all the \r but that did not help Any ideas? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Question on Low-Coupled Application Design
I am no expert in object or application design so I would like to ask for some advice on a particular idea that I am throwing out there. Orthogonality, as I have learned, is that between any n-number of objects, if a change happens in one, it will not adversely affect the others. In other words, low-coupling. Can using Event-Dispatching/Event-Listeners be used wherever an interface could be used to achieve this goal? If so, can it be possible to create entire applications that are so modularized that abstract typing with interfaces would be useless? In other words, make a Flash application where the objects that make up the system do not impose methods that an interface would traditionally enforce. The advantage of going purely event-driven would mean developers would deal less with implementing interface specifications and do event handling instead. An example of event driven system is the Yahoo! Maps API which expects developers to create event handlers. The following un-tested code snippets are attempts to illustrate the degree of orthogonality I am talking about. APPROACH I: No Interfaces //MyInvokedClass.as class MyInvokedClass { public function sayIt():Void { trace(Hello World); } } // MyInvokingClass.as import MyInvokedClass; class MyInvokingClass { public var concrete:MyInvokedClass; // Constructor public function MyInvokingClass() { concrete = new MyInvokedClass(); } public function sayIt():Void { concrete.sayIt(); } } // _root timeline var tmp:MyInvokingClass = new MyInvokingClass(); tmp.sayIt(); // Output: Hello World COMMENTS - Good that it works today; potentially problems in the future for modication/change. - MyInvokingClass is dealing with a concerete instance. - Classes are mildly coupled because it will involve some plumbing in extending. APPROACH II: Using Interfaces //Invokable.as interface Invokable { public function sayIt():Void; } //MyInvokedClass.as import Invokable; class MyInvokedClass implements Invokable { public function sayIt():Void { trace(Hello World); } } // MyInvokingClass.as import Invokable; import MyInvokedClass; class MyInvokingClass { public var concrete:Invokable; // Constructor public function MyInvokingClass() { concrete = new MyInvokingClass(); } public function sayIt():Void { concrete.sayIt(); } } // _root timeline var tmp:MyInvokingClass = new MyInvokingClass(); tmp.sayIt();// Output: Hello World COMMENTS: - Lower coupling than before, this code is in better position for change in the future - MyInvokingClass is dealing with an abstraction rather than a concerete instance. - MyInvokingClass can freely use any object to do a sayIt() as long as that object implements the Invokable interface. APPROACH III: Using Flash Event Model and No Interfaces // MyInvokingClass.as import mx.events.EventDispatcher; class MyInvokingClass { function addEventListener(){}; function removeEventListener(){}; function dispatchEvent(){}; public function MyInvokingClass() { EventDispatcher.initialize(this); } public function sayIt() { dispatchEvent({type:onSayIt}); } } // MyInvokedClass.as class MyInvokedClass { function onSayIt():Void { trace(Hello World); } } // _root timeline var tmp:MyInvokingClass = new MyInvokingClass(); var tmp2:MyInvokedClass = new MyInvokedClass(); tmp.addEventListener(onSayIt, tmp2); tmp.sayIt(); // Output: Hello World COMMENTS: - Is this the ultimate in decoupling? No dependencies between either classes because an interface does not dictate what methods should be enforced. - Considerably more lines of code but it serves a particular purpose. - Very open ended. Developers need to know what the name of the event and the content of the event payload. - MyInvokingClass washes it hands clean of any external implementation. If a change is made to an external implementation, like MyInvokedClass, it will have no adverse effects on MyInvokingClass. I hope this question is not too convoluted. The general point here is how to maintain/achieve low-coupling and isolate the impact of change. If I am mucking up the usage of interfaces and events, make me straight. I am under the impression we have both to achieve decoupling. On a side note, I think AS3.0 is going the pure Event Dispatching route because I am seeing in the docs alot of components that have Event Dispatching capabilities built in at a low-level in their object design. Thanks in advance for any insight. Lost + Confused, -mL http://knowledege.lapasa.net ___
RE: [Flashcoders] XML question
Hey Ryan, thanx, but this doesn't seem to solve it. But I found out I can do a find and replace on the empty lines in Dreamwever so I`m gonna play with that! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Potter Sent: Thursday, August 24, 2006 5:51 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] XML question Did you try condenseWhite on your textfield? http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/w whelp.htm?context=LiveDocs_Partsfile=2740.html From the help files: var my_str:String = Hello\tWorld\nHow are you?\t\t\tEnd; this.createTextField(first_txt, this.getNextHighestDepth(), 10, 10, 160, 120); first_txt.html = true; first_txt.multiline = true; first_txt.wordWrap = true; first_txt.condenseWhite = false; first_txt.border = true; first_txt.htmlText = my_str; this.createTextField(second_txt, this.getNextHighestDepth(), 180, 10, 160, 120); second_txt.html = true; second_txt.multiline = true; second_txt.wordWrap = true; second_txt.condenseWhite = true; second_txt.border = true; second_txt.htmlText = my_str; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wouter Sent: Thursday, August 24, 2006 8:37 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] XML question Thanx! But ignoreWhite = true So that`s not it...any other ideas? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Hyndman Sent: Thursday, August 24, 2006 4:14 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] XML question Is your XML object set to ignoreWhite? http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/comm on/h tml/wwhelp.htm?context=Flash_MX_2004file=1896.html Scott On 24/08/06, Wouter [EMAIL PROTECTED] wrote: Hi list, I got an MS Acces database with data, which I converted to XML (direct export from Access) and I read that in flash.so far so good, but when I display the text in a textfield there are a lot of empty lines between the linesI found out that there are somehowe some \r in there that probably cause this.but how do I get them out? I tried to replace all the \r but that did not help Any ideas? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ 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: Re: Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.
Okay, I have fixed the problem. I would say that this is certainly bug with Flash, but there is a work around. Thanks to Keith Peters for mentioning this to me last night. So here's the deal... Back in the day before MovieClipLoader when you wanted to load and external SWF, you had to check a property of the MovieClip to see if it existed before you could manipulate it. You needed to create an interval that would check to see if it's initialized in this way. This all makes sense to me, but what doesn't, is that you can't just check that any property of MovieClip was set. There is a magic property that seems to indicate that the MovieClip is fully initialized. That property is _width. So with this in mind I added a check to the onLoadProgress event like so: private function handleLoadProgress(targetMC:MovieClip, loadedBytes:Number, totalBytes:Number):Void { if (MovieAsset.HIDE_WHEN_LOADED) { if (targetMC._width != undefined || targetMC._width != 0) { targetMC._visible = false; } } } Now, how's that for obscure? It does fix the issue, and instanceof is indeed a MovieClip once again. Oh, and even better, _visible works like a charm. Thanks again to all those that helped out with this one. -Chris On 8/24/06, Chris Allen [EMAIL PROTECTED] wrote: Thanks for your help on this Ian. I'm not sure I understand all of what you found here, so let me summarize with some questions to see if I got it right. Flash 6 SWFs fail every time when loaded remotely? - This hasn't been my experience. I've been able to load some small ones (20K) without the issue. You think it may have to so with domain security in Flash? When loading from your files system the Flash 7 and 8 files load correctly but not Flash 6? Some findings I have made: The behavior is slightly different on a Macintosh versus a Windows machine. Which are you using? Altering nothing before the SWF is fully loaded screws up the instanceof stuff but all of the MovieClip properties work just fine. If I try to alter the _visible property before it's fully loaded it causes that property to no longer function once fully loaded. I have some other ideas to try out this morning and I will keep you posted on my progress. Thanks to all of you who tried to help. -Chris On 8/24/06, Ian Thomas [EMAIL PROTECTED] wrote: Oh, I should add - I get the same results when I throw the Fling code out completely and write a simple loader from scratch. Cheers, Ian On 8/24/06, Ian Thomas [EMAIL PROTECTED] wrote: I'm certainly running out of ideas for a simple fix, here - and it's definitely not the loading code, it's a 'feature' or bug in the Flash Player. ___ 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: Re: Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.
ha, how old school. when in doubt wait a frame or 15... On 8/24/06, Chris Allen [EMAIL PROTECTED] wrote: Okay, I have fixed the problem. I would say that this is certainly bug with Flash, but there is a work around. Thanks to Keith Peters for mentioning this to me last night. So here's the deal... Back in the day before MovieClipLoader when you wanted to load and external SWF, you had to check a property of the MovieClip to see if it existed before you could manipulate it. You needed to create an interval that would check to see if it's initialized in this way. This all makes sense to me, but what doesn't, is that you can't just check that any property of MovieClip was set. There is a magic property that seems to indicate that the MovieClip is fully initialized. That property is _width. So with this in mind I added a check to the onLoadProgress event like so: private function handleLoadProgress(targetMC:MovieClip, loadedBytes:Number, totalBytes:Number):Void { if (MovieAsset.HIDE_WHEN_LOADED) { if (targetMC._width != undefined || targetMC._width != 0) { targetMC._visible = false; } } } Now, how's that for obscure? It does fix the issue, and instanceof is indeed a MovieClip once again. Oh, and even better, _visible works like a charm. Thanks again to all those that helped out with this one. -Chris On 8/24/06, Chris Allen [EMAIL PROTECTED] wrote: Thanks for your help on this Ian. I'm not sure I understand all of what you found here, so let me summarize with some questions to see if I got it right. Flash 6 SWFs fail every time when loaded remotely? - This hasn't been my experience. I've been able to load some small ones (20K) without the issue. You think it may have to so with domain security in Flash? When loading from your files system the Flash 7 and 8 files load correctly but not Flash 6? Some findings I have made: The behavior is slightly different on a Macintosh versus a Windows machine. Which are you using? Altering nothing before the SWF is fully loaded screws up the instanceof stuff but all of the MovieClip properties work just fine. If I try to alter the _visible property before it's fully loaded it causes that property to no longer function once fully loaded. I have some other ideas to try out this morning and I will keep you posted on my progress. Thanks to all of you who tried to help. -Chris On 8/24/06, Ian Thomas [EMAIL PROTECTED] wrote: Oh, I should add - I get the same results when I throw the Fling code out completely and write a simple loader from scratch. Cheers, Ian On 8/24/06, Ian Thomas [EMAIL PROTECTED] wrote: I'm certainly running out of ideas for a simple fix, here - and it's definitely not the loading code, it's a 'feature' or bug in the Flash Player. ___ 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 -- j:pn http://www.lennel.org ___ 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] extract audio
Someone know the better way to extract *just* audio from flv files? I have try this way: - import flv into Flash - export .wav file But the final result is a big file... without any sound! Tips or software suggestions will be appreciate... * Enrico Tomaselli * web designer [EMAIL PROTECTED] http://www.metatad.it * Skype: MetaArt RSS: http://www.metatad.it/mnfeeder.php ___ 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] extract audio
Hmm google through back some pretty nice results with extract audio from FLV http://www.videohelp.com/tools?tool=FLV_Extract This one looked like the easiest... although not tried it -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of MetaArt Sent: 24 August 2006 17:43 To: Flashcoders mailing list Subject: [Flashcoders] extract audio Someone know the better way to extract *just* audio from flv files? I have try this way: - import flv into Flash - export .wav file But the final result is a big file... without any sound! Tips or software suggestions will be appreciate... * Enrico Tomaselli * web designer [EMAIL PROTECTED] http://www.metatad.it * Skype: MetaArt RSS: http://www.metatad.it/mnfeeder.php ___ 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] FLV total time property?
Hi list... How do you get an external FLV's total time property? It seems the elapsed time is netsream.time, but I want to create a progress bar. Thanks, - MM ___ 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] Flash/Actionscript Coding conventions
So you're saying I need to use a third party tool to overcome an issue created by another third party tool? Where does it end? WHERE...DOES...IT...END? :) -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Mike Mountain Sent: Thursday, August 24, 2006 2:35 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] Flash/Actionscript Coding conventions Surely this is just a matter of using a fully featured IDE to develop your code in - if you use Flashdevelop for instance you can block comment/uncomment any lines/lines using // syntax from the edit menu with comment line, or with keyboard shortcuts - this will not conflict with block comments /**/ and therefore you will no longer have a problem. Life once more is wonderful. M -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ Sent: 24 August 2006 02:19 To: Flashcoders mailing list Subject: RE: [Flashcoders] Flash/Actionscript Coding conventions why does adding block comments to your code ruin it? I still don't understand how Javadoc makes your process suffer. From my first post: Commenting like that in your code makes it completely impossible to easily and completely comment out blocks of code using /* */ because they have their */ inside their comments. Believe it or not, this is a very important tool in debugging. If somebody wrote something completely impenetrable and I'm in charge of implementing it and it doesn't work, guess what? I rewrite it or I make them fix it. I'm not saying documentation isn't important, I'm saying mucking up your code with documentation in Actionscript by using Javadoc's requirements is counterproductive to Flash development. If Javadoc let me use line comments instead of block comments I would have no issue. ___ 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] Slighty OT: phone suggestions?
N70 I think runs FL2. bit more slimline than the truck that is the 6680. Also has a 2mb Carl Zeis camera. Or you could wait a good few months (prob. christmas time) for Nokia to start shipping the latest FL2 phones Cheers Nick Johannes Nel wrote: i saw an awsome app on a nokia 6680 a couple of days ago, just sold me on the phone :) bulky as hell though (you get a nice camera with it...). i have a 7610 and that chokes a bit from time to time on flashlite 2 stuff, not unusable though. On 8/23/06, John Grden [EMAIL PROTECTED] wrote: I was wondering if anyone had some suggestions/favorite cell phones that run Flash light 2.0 swf's? Any that were easier to deal in development or offer more features overall? Thanks! -- [ JPG ] ___ 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] XML question
Here's one way: myString.split(\r).join(); myString.split(\n).join(); And if you use my XString class (search the archives): myString.squeeze( ); might do the trick, too. ___ 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] Flash/Actionscript Coding conventions
It ends when you make your own damn third-party tools! ;) Seriously, though, I don't find that I have to comment out huge swaths of class functions at a time very often. Even if I did have to comment out several functions, they might not be next to each other, anyway. And, as I said before, commenting out a single function is *easier* when each one is preceded by a block comment--one keystroke of backspace or delete (unless it's the very last function). Finally, nothing about Javadoc precludes you from using block comments inside function bodies. Have you actually tried Javadoc or is this dislike preemptive? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ Sent: Thursday, August 24, 2006 9:58 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] Flash/Actionscript Coding conventions So you're saying I need to use a third party tool to overcome an issue created by another third party tool? Where does it end? WHERE...DOES...IT...END? :) ___ 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] clone object
Careful with circular references. Pretty easy to get that one in to exceed the 256 recursion limit. Feel free to post an alternative. :) ___ 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] Flash + Array + Web Service
I guess it depends on how much you know about C# and .NET and creating the Webservice in .NET. I asked my .NET developer and he sent me this simple example of creating an object in .NET and how to call the method via Webservices. As for setting up the webservice, there is a menu option in .NET called webreference, and a wizard where you put the URL of the aspx WSDL, but beyond that, I dunno. Here is what he sent me: //Your object (file name would be AvailImage.cs): public class AvailImage { public string FileName; public AvailImage() { // // Add constructor logic here // } public string GetSomething() { return myImage.jpg; } } //Then, in some other class you can use it by typing: AvailImage oImage = new AvailImage(); //instanciate object string sTemp = oImage.GetSomething(); //call a method So in Flash, you should be able to call the method in the Webservice you would do: var myImage:String = oImage.GetSomething(); Anyway, beyond that, I don't know if I could be of more help. Hope this helps. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions ___ 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] Slighty OT: phone suggestions?
Thanks guys, yeah the N80 was one I was just looking at and there are features that I hadnt even considered (like wireless internet connectivity). I'm assuming there's info on FL2 at Nokia's site, but do you have any specific links I can check out? On 8/24/06, Nick Gerig [EMAIL PROTECTED] wrote: N70 I think runs FL2. bit more slimline than the truck that is the 6680. Also has a 2mb Carl Zeis camera. Or you could wait a good few months (prob. christmas time) for Nokia to start shipping the latest FL2 phones Cheers Nick Johannes Nel wrote: i saw an awsome app on a nokia 6680 a couple of days ago, just sold me on the phone :) bulky as hell though (you get a nice camera with it...). i have a 7610 and that chokes a bit from time to time on flashlite 2 stuff, not unusable though. On 8/23/06, John Grden [EMAIL PROTECTED] wrote: I was wondering if anyone had some suggestions/favorite cell phones that run Flash light 2.0 swf's? Any that were easier to deal in development or offer more features overall? Thanks! -- [ JPG ] ___ 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 -- [ JPG ] ___ 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] FLV total time property?
The totalTime is part of the metadata. Catch the onMetaData-Event and you got it. Cheers, Sönke -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mendelsohn, Michael Sent: Thursday, August 24, 2006 6:57 PM To: Flashcoders mailing list Subject: [Flashcoders] FLV total time property? Hi list... How do you get an external FLV's total time property? It seems the elapsed time is netsream.time, but I want to create a progress bar. Thanks, - MM ___ 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] FLV total time property?
Ahh, thanks very much Sönke! The totalTime is part of the metadata. Catch the onMetaData-Event and you got it. ___ 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] clone object
I would mark each object (by actually assigning the cloned object as a property of the original) as I go through each individual clone operation, and keep a running array of what is being marked. If I hit something that is already marked, I will use the clone instead of copying the same object again (because it's hanging off the original). When I'm finished, I'd remove all the temporary properties from the originals. This requires two method instead of one, and is a bit more CPU intensive, but it won't break. I'd also be sure to special case the handling of date objects. The alternative is to shallow clone, which does not recursively copy object properties, and instead assigns the reference held by the original to the clone. Scott On 24/08/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: Careful with circular references. Pretty easy to get that one in to exceed the 256 recursion limit. Feel free to post an alternative. :) ___ 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] XML question
But I found out I can do a find and replace on the empty lines in Dreamwever so I`m gonna play with that! If you have access to any decent text editor you should be able to get rid of them. I use UltraEdit for this, because it supports RegExp in the replace dialog. Basically, you just want to replace \r\n (or whatever the equivalent is in your text editor) with \n, and that should fix it. Be aware, though, that you will have to use different expressions for this in different editors. In essence, \r is a hard return and \n is a line feed (or newline), and some databases/operating systems/languages/etc insert only a hard return, some insert only a line feed, and some insert both. So in your text editor, find out how to do a find and replace on only the hard return character. In UltraEit, when *not* using RegExp, you can use ^r and ^n as search terms for \r and \n, and you can use ^p (paragraph break) as a search term for \r\n, and then replace it with ^n (just a newline character). With RegExp enabled in the replace dialog, you can just use the \r and \n, as is usual in RegExp. You might want to look and see if you can find a demo copy of UltraEdit just for this replacement, it's very useful for this sort of thing. I used it to reformat over 120 files all in one swoop with it, which saved me tons of time. ryanm ___ 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] XML question
Here's one way: myString.split(\r).join(); myString.split(\n).join(); It sounds to me like he's trying to take a database and turn it into something that can be loaded directly by Flash, maybe for a distributed standalone app (CD, web download, etc). Depending on the size of the data, it probably would be a good idea to do this before hand, to the file itself, rather than making Flash parse it out every time the end user opens the app. ryanm ___ 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] working with dynamic images using mysql database
Hogwash, for previous projects we stored huge blobs in both MySQL and MSSQL Server and these were replicated globally and accessed frequently from both the web and intranets. If it is designed right it works just fine. Try replicating a few million files to 200 sites using a file system. ~neo binedell -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anthony Lee Sent: 24 August 2006 03:41 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] working with dynamic images using mysql database Hi Ron, Put a thousand files in a Windows directory and watch the fun. Hmm... well yes that won't be your only problem with that choice of web server. I disagree on the rest but don't have the inclination to argue the point. Tony ___ 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] Flash + Array + Web Service
Here is an example that seems to work for me. Inside an .asmx file: using System; using System.Web; using System.Collections; using System.Collections.Generic; using System.Web.Services; using System.Web.Services.Protocols; [WebService(Namespace = http://domain.com/;)] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class service : System.Web.Services.WebService { public service () { //Uncomment the following line if using designed components //InitializeComponent(); } /// summary /// Some web method /// /summary /// param name=param1The first parameter/param /// param name=param2The second parameter/param /// returns/returns [WebMethod] public ListYourTypeOrBuiltInTypeLikeString GetProductsByCategoryAndType (int paramOne, string paramTwo) { return Your.Internal.MethodToCall(paramOne, paramTwo); } } In config.xml all I see is this: webServices protocols add name=HttpGet/ add name=HttpPost/ /protocols /webServices Hopefully something in that example will be useful to you.. We are running ASP.NET 2.0 and have no problem with complex objects with Lists (Arrays) - if I remember correctly, some .NET data objects will not be serialized into standard SOAP objects, but into MS extensions (embrace and extend) - so you have to make sure you are not using those Types on property nodes in your complex object (I think the one we found that out with was a DataGrid). Kevin N. Brake, Stephen wrote: I read the following post and have the same exact problem. How did you construct the .net web service to allow the web service to grab the value of the complex array from Flash: This is an old thread I started back in May which I am following up on with a question. Muzak had replied to me with this: If you'll be using webservices that you can control (which it sounds like is the case), don't send XML back and forth. When using webservices, you can send Array of Objects back and forth, which is alot easier to work with. There should be a list of data type conversions in the docs somewhere. I am using the Web service classes to load in a wsdl from a .NET developer using C#. We have the basics working, I can receive a simple string from him no problem by calling the SOAP method. However, since Muzak (in the quote above) and the docs say the Web service classes supports complex object types, we are now trying to read in a complex object in Flash. The C# developer created a method for me, called GetProject() that returns a complex object he created (the complex object is simple - it just has a property that contains a simple string - i.e. objProj.Title). However, when I trace the result on the method, it returns null. Neither the C# developer or myself can figure out where we are going wrong. Any ideas? One of us has something wrong with this object and we're not sure who. Also, for a second related question, once I can read the object in Flash (it would contain arrays and properties, etc.) - we want to just send that object back to the webservice to update the object in C#. Any issues with that? The Help docs only say this about objects: Web Service classes Supported Types Object Types Object Types: Complex Type - ActionScript object composed of properties of any supported type Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions ___ 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] FLV total time property?
from the Flash 8 Reference Manual Example: The following example creates a progress bar using the Drawing API and the bytesLoaded and bytesTotal properties that displays the loading progress of video1.flv into the video object instance called my_video. A text field called loaded_txt is dynamically created to display information about the loading progress as well. var connection_nc:NetConnection = new NetConnection(); connection_nc.connect(null); var stream_ns:NetStream = new NetStream(connection_nc); my_video.attachVideo(stream_ns); stream_ns.play(video1.flv); this.createTextField(loaded_txt, this.getNextHighestDepth(), 10, 10, 160, 22); this.createEmptyMovieClip(progressBar_mc, this.getNextHighestDepth()); progressBar_mc.createEmptyMovieClip(bar_mc, progressBar_mc.getNextHighestDepth()); with (progressBar_mc.bar_mc) { beginFill(0xFF); moveTo(0, 0); lineTo(100, 0); lineTo(100, 10); lineTo(0, 10); lineTo(0, 0); endFill(); _xscale = 0; } progressBar_mc.createEmptyMovieClip(stroke_mc, progressBar_mc.getNextHighestDepth()); with (progressBar_mc.stroke_mc) { lineStyle(0, 0x00); moveTo(0, 0); lineTo(100, 0); lineTo(100, 10); lineTo(0, 10); lineTo(0, 0); } var loaded_interval:Number = setInterval(checkBytesLoaded, 500, stream_ns); function checkBytesLoaded(my_ns:NetStream) { var pctLoaded:Number = Math.round(my_ns.bytesLoaded/my_ns.bytesTotal 100); loaded_txt.text = Math.round(my_ns.bytesLoaded/1000)+ of +Math.round(my_ns.bytesTotal/1000)+ KB loaded (+pctLoaded+%); progressBar_mc.bar_mc._xscale = pctLoaded; if (pctLoaded=100) { clearInterval(loaded_interval); } } João Carlos 2006/8/24, Mendelsohn, Michael [EMAIL PROTECTED]: Ahh, thanks very much Sönke! The totalTime is part of the metadata. Catch the onMetaData-Event and you got it. ___ 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 -- João Carlos ___ 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] Best books about design
Hi list, I now this is a coding list, but I bet there are many design-oriented programmers around... and we know that the flash world is unique in which the line between design/logic seems to blur! I´m mostly a programmer but now I´m looking into interface design and overall design material. This is a world that really attracts me! I have already got AdvancED Flash Interface Design which is turning out to be a very good reading. I wonder what other books or even online tutorials/articles do you more experienced flash designers recommend? Regards, Marcelo. ___ 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] Best books about design
On 8/24/06 1:04 PM, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote: the line between design/logic seems to blur! LOL...so design and logic don't mix? ;-) I wonder what other books or even online tutorials/articles do you more experienced flash designers recommend? From a mostly conceptual standpoint, I'd say check out 2 good graphic design magazines, Communication Arts and HOW Design. Brian Mays ___ 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] Best books about design
That's funny. Comm Arts and How are the only subscriptions I get. Two great suggestions. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Mays Sent: Thursday, August 24, 2006 12:09 PM To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Best books about design On 8/24/06 1:04 PM, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote: the line between design/logic seems to blur! LOL...so design and logic don't mix? ;-) I wonder what other books or even online tutorials/articles do you more experienced flash designers recommend? From a mostly conceptual standpoint, I'd say check out 2 good graphic design magazines, Communication Arts and HOW Design. Brian Mays ___ 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: Re: Re: Re: Re: Re: [Flashcoders] Misreporting instanceof operator.
Wow, and I thought KP was only good with random()! yeah yeah, I know, I owe you a beer for that one. On 8/24/06, Johannes Nel [EMAIL PROTECTED] wrote: ha, how old school. when in doubt wait a frame or 15... On 8/24/06, Chris Allen [EMAIL PROTECTED] wrote: Okay, I have fixed the problem. I would say that this is certainly bug with Flash, but there is a work around. Thanks to Keith Peters for mentioning this to me last night. So here's the deal... Back in the day before MovieClipLoader when you wanted to load and external SWF, you had to check a property of the MovieClip to see if it existed before you could manipulate it. You needed to create an interval that would check to see if it's initialized in this way. This all makes sense to me, but what doesn't, is that you can't just check that any property of MovieClip was set. There is a magic property that seems to indicate that the MovieClip is fully initialized. That property is _width. So with this in mind I added a check to the onLoadProgress event like so: private function handleLoadProgress(targetMC:MovieClip, loadedBytes:Number, totalBytes:Number):Void { if (MovieAsset.HIDE_WHEN_LOADED) { if (targetMC._width != undefined || targetMC._width != 0) { targetMC._visible = false; } } } Now, how's that for obscure? It does fix the issue, and instanceof is indeed a MovieClip once again. Oh, and even better, _visible works like a charm. Thanks again to all those that helped out with this one. -Chris On 8/24/06, Chris Allen [EMAIL PROTECTED] wrote: Thanks for your help on this Ian. I'm not sure I understand all of what you found here, so let me summarize with some questions to see if I got it right. Flash 6 SWFs fail every time when loaded remotely? - This hasn't been my experience. I've been able to load some small ones (20K) without the issue. You think it may have to so with domain security in Flash? When loading from your files system the Flash 7 and 8 files load correctly but not Flash 6? Some findings I have made: The behavior is slightly different on a Macintosh versus a Windows machine. Which are you using? Altering nothing before the SWF is fully loaded screws up the instanceof stuff but all of the MovieClip properties work just fine. If I try to alter the _visible property before it's fully loaded it causes that property to no longer function once fully loaded. I have some other ideas to try out this morning and I will keep you posted on my progress. Thanks to all of you who tried to help. -Chris On 8/24/06, Ian Thomas [EMAIL PROTECTED] wrote: Oh, I should add - I get the same results when I throw the Fling code out completely and write a simple loader from scratch. Cheers, Ian On 8/24/06, Ian Thomas [EMAIL PROTECTED] wrote: I'm certainly running out of ideas for a simple fix, here - and it's definitely not the loading code, it's a 'feature' or bug in the Flash Player. ___ 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 -- j:pn http://www.lennel.org ___ 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 -- [ JPG ] ___ 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] Regular Expressions
RegEx performs greedy searches, so it would find a first and move past it, which would break the second pattern as it would just be b. In general you want to order your expressions from longer matching to shorter if one contains the other. Just think of it as gobbling up patterns before other patterns get a look at it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Miguel Serrano Sent: 23 August 2006 06:25 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Regular Expressions Hi list! I don't understand one issue of RegExp framework: the illustrative example: var pattern:RegExp = /(a)|(ab)/ pattern.exec(nnnabnnn); trace (result[0]) // output a pattern = /(ab)|(a)/ pattern.exec(nnnabnnn); trace (result[0]) // output ab Why this behaviour? shouldn't RegExp return the longest pattern founded in the string?. Calling exec several times with first expression never return ab It's supossed that conditional operator | is conmutative. Any idea? thank you! ___ 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] extract audio
Thanks... I have Google access too.. So, I hope in suggestion about (tested) software; however, I'm trying some other software solutions. Thank you anyway. * Enrico Tomaselli * web designer [EMAIL PROTECTED] http://www.metatad.it * Skype: MetaArt RSS: http://www.metatad.it/mnfeeder.php ___ 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] Regular Expressions
Regex supports lazy matching as well using the '?' option on pretty much any quantifier. Scott On 24/08/06, neo binedell [EMAIL PROTECTED] wrote: RegEx performs greedy searches, so it would find a first and move past it, which would break the second pattern as it would just be b. In general you want to order your expressions from longer matching to shorter if one contains the other. Just think of it as gobbling up patterns before other patterns get a look at it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Miguel Serrano Sent: 23 August 2006 06:25 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Regular Expressions Hi list! I don't understand one issue of RegExp framework: the illustrative example: var pattern:RegExp = /(a)|(ab)/ pattern.exec(nnnabnnn); trace (result[0]) // output a pattern = /(ab)|(a)/ pattern.exec(nnnabnnn); trace (result[0]) // output ab Why this behaviour? shouldn't RegExp return the longest pattern founded in the string?. Calling exec several times with first expression never return ab It's supossed that conditional operator | is conmutative. Any idea? thank you! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] OOP methodology and flash. I'm loosing my faith...
I'll tell you a little secret about OOP. Don't sweat it. Sometimes the model jumps out at you but other times you have to find it. How to find it? Write something that does what you want. Then refactor it once you have a better idea of how it works. The more you do that the more certain patterns and approaches crystalise for you. I think there's too much over-engineering going on in general as some people seem to think implementing all the latest patterns on even the smallest project makes them good developers. I've been guilty of it myself a couple of times, writing frameworks where a couply of focused classes would have sufficed. OOP should be fun if you do it right and don't sweat it when it turns into a dick swinging contest, just make up pattern names. I quite like the Absolver pattern ;p cheers ~neo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ricardo Sánchez Sent: 23 August 2006 06:34 PM To: Flashcoders mailing list Subject: [Flashcoders] OOP methodology and flash. I'm loosing my faith... ... well, not really but I thought it was good as I title I always use OOP for my flash projects but, even if I find it easier than timeline coding, I dont know if I'm taking all the advantage of OOP. I'm not even sure if I am aplying the correct patterns for every problem. My insecurity probably has to do with the lack of normal work OOP flash examples. For example the typicall top menu/content web. How can OOP be applied to that? I guess I find a gap in the theory of knowing how to link the symbols, movieclips, timeline and graphics in flash with the code in external files. Am I opening a can of worms? Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Best books about design
the line between design/logic seems to blur! LOL...so design and logic don't mix? ;-) Yeah, they can perfectly mix! But usually there is a huge void between 'em. Maybe I haven´t expressed myself right, maybe a more adequate sentence would be: programmers and designers usually don´t mix as actually happens on the flash platform. Thanks for the tips :) Marcelo. On 8/24/06, Ryan Potter [EMAIL PROTECTED] wrote: That's funny. Comm Arts and How are the only subscriptions I get. Two great suggestions. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Mays Sent: Thursday, August 24, 2006 12:09 PM To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Best books about design On 8/24/06 1:04 PM, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote: the line between design/logic seems to blur! LOL...so design and logic don't mix? ;-) I wonder what other books or even online tutorials/articles do you more experienced flash designers recommend? From a mostly conceptual standpoint, I'd say check out 2 good graphic design magazines, Communication Arts and HOW Design. Brian Mays ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] OOP methodology and flash. I'm loosing my faith...
OOP and Flash is indeed tricky to fully grasp. It has become easier and more natural to implement OOP techniques on AS3 though. @Neo: Completely agree with you. On 8/24/06, neo binedell [EMAIL PROTECTED] wrote: I'll tell you a little secret about OOP. Don't sweat it. Sometimes the model jumps out at you but other times you have to find it. How to find it? Write something that does what you want. Then refactor it once you have a better idea of how it works. The more you do that the more certain patterns and approaches crystalise for you. I think there's too much over-engineering going on in general as some people seem to think implementing all the latest patterns on even the smallest project makes them good developers. I've been guilty of it myself a couple of times, writing frameworks where a couply of focused classes would have sufficed. OOP should be fun if you do it right and don't sweat it when it turns into a dick swinging contest, just make up pattern names. I quite like the Absolver pattern ;p cheers ~neo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ricardo Sánchez Sent: 23 August 2006 06:34 PM To: Flashcoders mailing list Subject: [Flashcoders] OOP methodology and flash. I'm loosing my faith... ... well, not really but I thought it was good as I title I always use OOP for my flash projects but, even if I find it easier than timeline coding, I dont know if I'm taking all the advantage of OOP. I'm not even sure if I am aplying the correct patterns for every problem. My insecurity probably has to do with the lack of normal work OOP flash examples. For example the typicall top menu/content web. How can OOP be applied to that? I guess I find a gap in the theory of knowing how to link the symbols, movieclips, timeline and graphics in flash with the code in external files. Am I opening a can of worms? Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Misreporting instanceof operator.
Ian, did you set System.security.allowDomain() from both side to the other? In some case, for example to MovieClip.setMask() to a MovieClip loaded from other domain, System.security.allowDomain() should be set not only from other domain to the domain to which the swf is loaded but also from the loading swf to the other. _ Ian Thomas wrote: My initial thought is it must be a cross-domain scripting issue - i.e. the app wouldn't let you check the instanceof because of a domain scripting policy (see http://www.adobe.com/devnet/flash/articles/fplayer_security_04.html). But I've tested it with System.security.allowDomain() and checked scripting between the two movies, and even when cross-domain scripting works perfectly (no sandbox violations) the instanceof still returns false. (I'm not 100% sure whether I've got the System.security settings right - but I can read vars in the loaded movies and vice versa, so that sounds pretty correct to me.) -- Fumio Nonaka mailto:[EMAIL PROTECTED] http://www.FumioNonaka.com/ My bookshttp://www.FumioNonaka.com/Books/index.html Flash communityhttp://F-site.org/ ___ 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] Webservices and .NET array serialization
Here I was helping someone today with complex objects in .NET webservices and didn't notice a big problem on my end. I thought I had this figured out, but Arrays are coming across weird in a .NET webservice as generic objects not arrays that Flash can understand. I never noticed it before because I can still reference the properties in objects in the array OK, just not the array itself. For example (projObj is the object of arrays and objects resulting from my webservice method call): trace(projObj.Content.Topics) //traces as undefined. Expected an array trace(typeof(projObj.Content.Topics)); //traces as object !?! and trace(projObj.Content.Topics[0]) //traces [object Object],undefined //but I expected [object Object], [object Object], [object Object] Finally: projObj.Content.Topics[0].TextAreas[0].HtmlText //traces the value I am expecting!!! ??? What's up? I can get the property values OK, but I cannot treat the array as an array as you would in Flash? Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions ___ 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] Any MTASC masters out there?
do you have precompiled classes in the SWF you're using? you might have to recompile with the IDE then test with mtasc. If you do have classes precompiled in the SWF with the IDE, use the -keep tag. If you're using mx components, use the -mx tag make sense? On 8/24/06, aaron smith [EMAIL PROTECTED] wrote: ok I think I got what you meant. I started by just giving one class path. and the main.as file. then after trying to compile.. it gave me all those errors about having to force compile the actionscript. I went through. one by one. compiling after each one.. evetually it got to the point where no errors spit out. but there is still obvious missing functionality.. really weird.. Aaron On 8/24/06, aaron smith [EMAIL PROTECTED] wrote: sorry not following completely what you mean, quick exmaple? or deeper explanation?.. thank you.. On 8/24/06, John Grden [EMAIL PROTECTED] wrote: you certain could try it. One thing I just did with someone else, was to start at the beginning. Add the main class (if that's what you have) and add a class path. Compile. Follow the errors until you get the necessary classes in there. It worked like a charm. On 8/24/06, aaron smith [EMAIL PROTECTED] wrote: yeah that's what I tried. No luck. It did suppress the errors but now there is missing functionality.. Weird. No errors but there is obvious missing functionality.. If I pack everything in maybe that would force every class to be compiled? On 8/24/06, John Grden [EMAIL PROTECTED] wrote: well, try adding those particular files that it mentions to the comand line. If they're all in a particular pacakge, use the -pack switch and add it. In Flasc, you can just click on the add package button, and piont to a folder. If you're clicking on a parent folder that has a couple different packages, it'll recurse and add them all. On 8/23/06, aaron smith [EMAIL PROTECTED] wrote: no. it is a precompiled swf but no components. I did manage to add all the packages in, and suppressed all errors. but now there is functionality that doesn't work in the mtasc compiled version. It's weird. .not getting any errors. but things aren't working.. I've tried rebuilding the swf from flash then doing mtasc again.. same result. no errors, but obvious missing functionality.. thanks On 8/23/06, John Grden [EMAIL PROTECTED] wrote: are you useing a precompiled SWF with components? On 8/23/06, aaron smith [EMAIL PROTECTED] wrote: yeah I tried that. Still no luck. I am getting the same errors.. here is the entire output::: C:/Program Files/mtasc/mtasc.exe -swf C:/Documents and Settings/aaronsh/Desktop/dev/flash/flashprojects/disasterstruclonthedayofmybirth/bin/Main.swf -out C:/Documents and Settings/aaronsh/Desktop/dev/flash/flashprojects/disasterstruclonthedayofmybirth/bin/Main.swf -mx -cp C:/Program Files/Macromedia/Flash 8/en/First Run/Classes -cp C:/Documents and Settings/aaronsh/Desktop/dev/flash/flashprojects/disasterstruclonthedayofmybirth/classes C:/Documents and Settings/aaronsh/Desktop/dev/flash/flashprojects/disasterstruclonthedayofmybirth/classes/com/dsotdomb/Main.as -version 8 2 C:/Documents and Settings/aaronsh/Local Settings/Application Data/Macromedia/Flash 8/en/Configuration/Commands/FLASC/errors.txt Warning : The MovieClip searchCancel needs the class com.dsotdomb.gui.buttons.PseudoButton which was not compiled : Please force compilation of this class by adding it to the commandline. Warning : The MovieClip searchOK needs the class com.dsotdomb.gui.buttons.PseudoButton which was not compiled : Please force compilation of this class by adding it to the commandline. Warning : The MovieClip authorsButton needs the class com.dsotdomb.gui.buttons.PseudoButton which was not compiled : Please force compilation of this class by adding it to the commandline. Warning : The MovieClip aboutButton needs the class com.dsotdomb.gui.buttons.PseudoButton which was not compiled : Please force compilation of this class by adding it to the commandline. Warning : The MovieClip previouslyButton needs the class com.dsotdomb.gui.buttons.PseudoButton which was not compiled : Please force compilation of this class by adding it to the commandline. Warning : The MovieClip searchButton needs the class com.dsotdomb.gui.buttons.PseudoButton which was not compiled : Please force compilation of this
Re: [FlashCoders] Local storage warning
Hi Mike, What do you mean I can query their setting? Thanks, Dimitrios - Original Message - From: Michael Bedar [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, August 25, 2006 12:12 AM Subject: Re: [FlashCoders] Local storage warning you can store up to i think 100k without popping a warning on the default config.. more than that you have to ask permission.. you can query their setting to make it a little more user friendly. mike On Aug 24, 2006, at 4:24 PM, Dimitrios Bendilas wrote: Hello, I have this very very urgent issue! Users of an application I made with Flash 8 Zinc get this warning screen: http://www.zefxis.gr/files/warning.jpg when they first run the executable. I know this is because my app saves some files on the hard drive. The question is, is there any way to prevent this window from popping up? The publisher of the application asked me to see if I can do anything about this. So, can I? Thanks a lot! Dimitrios ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [FlashCoders] Local storage warning
You should read the documentation for localSharedObject - you'll find many interesting things. You'll be able to see what the viewer's setting currently is, etc. A user may get that dialog the 1st time data is saved for the domain - and then won't be seen again. I think that is the point of your initial post, right? I can't remember if comes up as a default the 1st time or not, but I think it does just for security reasons. -e.d. On 8/24/06, Dimitrios Bendilas [EMAIL PROTECTED] wrote: Hi Mike, What do you mean I can query their setting? Thanks, Dimitrios - Original Message - From: Michael Bedar [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, August 25, 2006 12:12 AM Subject: Re: [FlashCoders] Local storage warning you can store up to i think 100k without popping a warning on the default config.. more than that you have to ask permission.. you can query their setting to make it a little more user friendly. mike On Aug 24, 2006, at 4:24 PM, Dimitrios Bendilas wrote: Hello, I have this very very urgent issue! Users of an application I made with Flash 8 Zinc get this warning screen: http://www.zefxis.gr/files/warning.jpg when they first run the executable. I know this is because my app saves some files on the hard drive. The question is, is there any way to prevent this window from popping up? The publisher of the application asked me to see if I can do anything about this. So, can I? Thanks a lot! Dimitrios ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: RE: [Flashcoders] select the current whole line in a multiline textfield
I need to a script way to find the start index and end index in a multiline textfield. This would be a peice of cake if multiple lines where not involved. Currently i'm selecting the index for \n to the next \n.This technique is useless for wrapping text though. ___ 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] Local storage warning
Hello, I have this very very urgent issue! Users of an application I made with Flash 8 Zinc get this warning screen: http://www.zefxis.gr/files/warning.jpg when they first run the executable. I know this is because my app saves some files on the hard drive. The question is, is there any way to prevent this window from popping up? The publisher of the application asked me to see if I can do anything about this. So, can I? Thanks a lot! Dimitrios ___ 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] XML question
Yes, He is trying to do that exactly :) I got a db and have to use the data in Flash on a CD. :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ryanm Sent: Thursday, August 24, 2006 7:53 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] XML question Here's one way: myString.split(\r).join(); myString.split(\n).join(); It sounds to me like he's trying to take a database and turn it into something that can be loaded directly by Flash, maybe for a distributed standalone app (CD, web download, etc). Depending on the size of the data, it probably would be a good idea to do this before hand, to the file itself, rather than making Flash parse it out every time the end user opens the app. ryanm ___ 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] XML question
Thx for this Ryan! The thing is that in the file I dpnt see the /r or /n...i just see this as an example: postIntroGeachte minister, Lorem ipsum sig dagelet mi cando si nado. vriendelijke groeten, /postIntro And in Flash I get all the \r in it an it looks really weird with a lot of space between lines. In dreamweaver I can copy the empty line and replace it with nothing, that fixed it I still don't really get it, but it is solved for now! Thx again! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ryanm Sent: Thursday, August 24, 2006 7:48 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] XML question But I found out I can do a find and replace on the empty lines in Dreamwever so I`m gonna play with that! If you have access to any decent text editor you should be able to get rid of them. I use UltraEdit for this, because it supports RegExp in the replace dialog. Basically, you just want to replace \r\n (or whatever the equivalent is in your text editor) with \n, and that should fix it. Be aware, though, that you will have to use different expressions for this in different editors. In essence, \r is a hard return and \n is a line feed (or newline), and some databases/operating systems/languages/etc insert only a hard return, some insert only a line feed, and some insert both. So in your text editor, find out how to do a find and replace on only the hard return character. In UltraEit, when *not* using RegExp, you can use ^r and ^n as search terms for \r and \n, and you can use ^p (paragraph break) as a search term for \r\n, and then replace it with ^n (just a newline character). With RegExp enabled in the replace dialog, you can just use the \r and \n, as is usual in RegExp. You might want to look and see if you can find a demo copy of UltraEdit just for this replacement, it's very useful for this sort of thing. I used it to reformat over 120 files all in one swoop with it, which saved me tons of time. ryanm ___ 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] Play a video from a certain point?
I'm tired... NetStream.seek(x). I think I'm looking for the equivalent of FLVPlayback.seek() but without that component. I'm using a video object. ___ 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] OOP methodology and flash. I'm loosing my faith...
My main motivation for this stuff in Flash is so that my code actually gets checked by the compiler, vs. Flash's crappy built-in code-checking for the stage. That is, it will tell me if I've mis-spelled something, created duplicate variables, the list goes on... In addition, I write my classes in FlashDevelop, which gives you code completion. Which means when I start to type: import mx. I get a listing of all packages that Macromedia's written, instead of looking for stuff in the help (that's fun). And best yet, when I type: var sBigD:ScottsSuperHugeOne = new SuperHuge(); //just a little poly-morphism thrown in there (huck-huck) ;) and I type: sBigD. I get a list of every function in my class, as well as its signature (params types). I'm only talking about FlashDevelop here. Guess I'm spoiled by Java .NET which have instance access to API's at your finger tips (when in the right IDE's). I'm just trying to find a better and efficient way to go. Way open to suggestions! -Scott On 8/24/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote: OOP and Flash is indeed tricky to fully grasp. It has become easier and more natural to implement OOP techniques on AS3 though. @Neo: Completely agree with you. On 8/24/06, neo binedell [EMAIL PROTECTED] wrote: I'll tell you a little secret about OOP. Don't sweat it. Sometimes the model jumps out at you but other times you have to find it. How to find it? Write something that does what you want. Then refactor it once you have a better idea of how it works. The more you do that the more certain patterns and approaches crystalise for you. I think there's too much over-engineering going on in general as some people seem to think implementing all the latest patterns on even the smallest project makes them good developers. I've been guilty of it myself a couple of times, writing frameworks where a couply of focused classes would have sufficed. OOP should be fun if you do it right and don't sweat it when it turns into a dick swinging contest, just make up pattern names. I quite like the Absolver pattern ;p cheers ~neo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ricardo Sánchez Sent: 23 August 2006 06:34 PM To: Flashcoders mailing list Subject: [Flashcoders] OOP methodology and flash. I'm loosing my faith... ... well, not really but I thought it was good as I title I always use OOP for my flash projects but, even if I find it easier than timeline coding, I dont know if I'm taking all the advantage of OOP. I'm not even sure if I am aplying the correct patterns for every problem. My insecurity probably has to do with the lack of normal work OOP flash examples. For example the typicall top menu/content web. How can OOP be applied to that? I guess I find a gap in the theory of knowing how to link the symbols, movieclips, timeline and graphics in flash with the code in external files. Am I opening a can of worms? Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- : : ) 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
Re: [FlashCoders] Local storage warning
you can store up to i think 100k without popping a warning on the default config.. more than that you have to ask permission.. you can query their setting to make it a little more user friendly. mike On Aug 24, 2006, at 4:24 PM, Dimitrios Bendilas wrote: Hello, I have this very very urgent issue! Users of an application I made with Flash 8 Zinc get this warning screen: http://www.zefxis.gr/files/warning.jpg when they first run the executable. I know this is because my app saves some files on the hard drive. The question is, is there any way to prevent this window from popping up? The publisher of the application asked me to see if I can do anything about this. So, can I? Thanks a lot! Dimitrios ___ 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] Local storage warning
Thanks eric, Yes, they only see it for the first time. As this is a downloadable app, it's not about a specific domain but rather Local. The thing is in my case I don't deal with SharedObject at all. I don't use SharedObjects in the whole project. The issue arises because the app is trying to write to the hard drive, using Zinc's mdm.FileSystem.saveFile() method. The result is the same of course - the Settings window appears. Nevertheless I've read again about SharedObject. I don't think there is a way to stop this window from popping up, flash player is too strict about security to allow me do this. Right? If anyone has a solution or workaround it'll be great! Dimitrios - Original Message - From: eric dolecki [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, August 25, 2006 12:43 AM Subject: Re: [FlashCoders] Local storage warning You should read the documentation for localSharedObject - you'll find many interesting things. You'll be able to see what the viewer's setting currently is, etc. A user may get that dialog the 1st time data is saved for the domain - and then won't be seen again. I think that is the point of your initial post, right? I can't remember if comes up as a default the 1st time or not, but I think it does just for security reasons. -e.d. On 8/24/06, Dimitrios Bendilas [EMAIL PROTECTED] wrote: Hi Mike, What do you mean I can query their setting? Thanks, Dimitrios - Original Message - From: Michael Bedar [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, August 25, 2006 12:12 AM Subject: Re: [FlashCoders] Local storage warning you can store up to i think 100k without popping a warning on the default config.. more than that you have to ask permission.. you can query their setting to make it a little more user friendly. mike On Aug 24, 2006, at 4:24 PM, Dimitrios Bendilas wrote: Hello, I have this very very urgent issue! Users of an application I made with Flash 8 Zinc get this warning screen: http://www.zefxis.gr/files/warning.jpg when they first run the executable. I know this is because my app saves some files on the hard drive. The question is, is there any way to prevent this window from popping up? The publisher of the application asked me to see if I can do anything about this. So, can I? Thanks a lot! Dimitrios ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ 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] Scrubber for streamed flv
Hi, anyone done a scrubber in as3 for a streamed flv from FMS2? I am not having any problems with repositioning the playhead. My problem is that while scrubbing I want to display a still frame from the video where the scrubber is (as it is dragged). Wish I could find more samples for as3/fms2 :( Sammi ___ 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] ImageVue - good app, bad architecture
Has anyone ever heard of ImageVue? It´s a damn cool flash app, a online gallery to be more specific. However, if you eventually buy the sources and try to learn from them you will be disappointed - it's damn hard to understand even how the application is put together. And why? Simply becouse it's a perfect example of a timeline spaghetti-code with all the mess it brings... unfortunatelly, it's a shame on how confuse their source files are. It would be perfect if the source and the architecture they used to develop would be as pretty as the app itself. Has anyone ever used or tried to mess with ImageVue's source fla's? Marcelo. ___ 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] retrieving vars using query string
Hi All, I'm using the BrowserStateManager class to set the state of my app using parameters in the query string. this makes it very hard to debug however, so i was wondering how i can still pass vars to the app even though i'm i'm not running the app in a browser as i debug it (debugging using the dredded debugger that comes with flash)... any ideas appreciated cheers b -- Original message -- From: Samúel Jónasson [EMAIL PROTECTED] Hi, anyone done a scrubber in as3 for a streamed flv from FMS2? I am not having any problems with repositioning the playhead. My problem is that while scrubbing I want to display a still frame from the video where the scrubber is (as it is dragged). Wish I could find more samples for as3/fms2 :( Sammi ___ 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] retrieving vars using query string
You can just set your FlashVars on the first frame on the main timeline. (And make sure you delete them when done testing.) I don't know of a better way. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, August 24, 2006 4:07 PM To: Flashcoders mailing list Subject: [Flashcoders] retrieving vars using query string Hi All, I'm using the BrowserStateManager class to set the state of my app using parameters in the query string. this makes it very hard to debug however, so i was wondering how i can still pass vars to the app even though i'm i'm not running the app in a browser as i debug it (debugging using the dredded debugger that comes with flash)... any ideas appreciated cheers b ___ 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] Netstream status
I have an swf that is utilizing video. I also have a set of tweens that are happening in the background of the swf. What I want to accomplish is that when I press the pause button, the tweens pause as well as the flv video. I am using fuse to control the tweens and have no problem pausing them, the issue is checking the status of the flv. My code for the flv pause is quite simple: - var nc:NetConnection = new NetConnection(); nc.connect (null); var ns:NetStream = new NetStream(nc); mainVideo.attachVideo(ns); ns.play(home.flv); //Video Controls controls2.rewind.onRelease = function() { ns.seek(0); Fuse.startRecent(); }; controls2.play.onRelease = function() { ns.pause(); //_root.pauseAllTweens() Fuse.pauseAll(); }; -- I need to check the status of ns to see if it is playing or paused and created an if statement that if the state is play then for Fuse.pauseAll(); else if the state is pause the Fuse.playAll(); I'm having trouble finding a starting place. Can someone point me in the right direction? Thanks, -- Bo Parker, AIGA Bo Co. Design 650 W Vickery Suite 130 Fort Worth, Texas 76104 817.332.4700 phone 817.332.4710 facsimile ___ 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] working with dynamic images using mysql database
neo, Try replicating a few million files to 200 sites using a file system. Since this was basically a hi hello how do I make a multi-player game in flash its got to have lasers question, I doubt that's was what bhasker had in mind. Never the less, thanks for your informed advice. Tony ___ 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] UML Diagrams
Just curious, What do people on this use to create UML diagrams? Do you use a WYSIWYG diagram-creating tool (preferrably which can output skeletal AS class code)? Or do you use something that scans preexisting AS classes and generates UML diagrams (or a UML-related XML format, like UXF). I've experimented with a few such programs. I'd really like to find something (or a combo solution) that can work both ways. -- Mike Keesey ___ 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] Protect model setters from being called by any class except Controller
Hi, I have a model class that has a bunch of getters and setters. Example: private var _prop:Object; function get prop():Object { return _prop; } function set prop(p:Object) { _prop = p; } I have a controller class that instantiates that model. I'm wondering if there is some way to prevent any other class from using the setter methods of the model except the controller class. They still should be able to access the getters. I want to prevent future developers from being able to access the model setters from anywhere except the controller in order to enforce proper MVC patterns. Thanks! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] clone object
If you're not willing to code a solution, then why are you bothering to write out an explanation? I have yet to encounter a recursion limit and I've parsed some deep object models. ___ 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] Protect model setters from being called by any classexcept Controller
In AS3.0 I think it can be package-private, but until then One way is to have the Model class satisfy an interface that lacks the property (of course, in AS2.0, all interfaces lack properties...), and then only expose the model class as the interface elsewhere. interface IModel { function anybodyCanUseThis():Void; } class Model extends Object implements IModel { public function Model() { super(); } public function get prop():Object { return _prop; } public function set prop(p:Object):Void { _prop = p; } public function anybodyCanUseThis():Void { trace(anybodyCanUseThis()); } private var _prop:Object; } class Control extends Object { public function Control() { super(); _model = new Model(); } public function get model():IModel { return _model; } private function doSomethingWithModel():Void { _model.prop = Here we can access the property.; } private var _model:Model; } class SomeOtherClass extends Object { public function SomeOtherClass() { super(); _control = new Control(); _control.model.anybodyCanUseThis(); _control.model.prop = This line will cause a compiler error.; } private var _control:Control; } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ Sent: Thursday, August 24, 2006 6:37 PM To: Flashcoders mailing list Subject: [Flashcoders] Protect model setters from being called by any classexcept Controller Hi, I have a model class that has a bunch of getters and setters. Example: private var _prop:Object; function get prop():Object { return _prop; } function set prop(p:Object) { _prop = p; } I have a controller class that instantiates that model. I'm wondering if there is some way to prevent any other class from using the setter methods of the model except the controller class. They still should be able to access the getters. I want to prevent future developers from being able to access the model setters from anywhere except the controller in order to enforce proper MVC patterns. Thanks! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Protect model setters from being called by anyclassexcept Controller
Wait--that doesn't expose the getters. H... Okay, substitute the interface with a superclass (say, AbstractModel) that has the getters, but not the setters. Then expose the Model object as AbstractModel everywhere except inside the Control class. I've never tried that, but I think it should work. A bit weird, though. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Keesey Sent: Thursday, August 24, 2006 6:46 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Protect model setters from being called by anyclassexcept Controller In AS3.0 I think it can be package-private, but until then One way is to have the Model class satisfy an interface that lacks the property (of course, in AS2.0, all interfaces lack properties...), and then only expose the model class as the interface elsewhere. interface IModel { function anybodyCanUseThis():Void; } class Model extends Object implements IModel { public function Model() { super(); } public function get prop():Object { return _prop; } public function set prop(p:Object):Void { _prop = p; } public function anybodyCanUseThis():Void { trace(anybodyCanUseThis()); } private var _prop:Object; } class Control extends Object { public function Control() { super(); _model = new Model(); } public function get model():IModel { return _model; } private function doSomethingWithModel():Void { _model.prop = Here we can access the property.; } private var _model:Model; } class SomeOtherClass extends Object { public function SomeOtherClass() { super(); _control = new Control(); _control.model.anybodyCanUseThis(); _control.model.prop = This line will cause a compiler error.; } private var _control:Control; } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ Sent: Thursday, August 24, 2006 6:37 PM To: Flashcoders mailing list Subject: [Flashcoders] Protect model setters from being called by any classexcept Controller Hi, I have a model class that has a bunch of getters and setters. Example: private var _prop:Object; function get prop():Object { return _prop; } function set prop(p:Object) { _prop = p; } I have a controller class that instantiates that model. I'm wondering if there is some way to prevent any other class from using the setter methods of the model except the controller class. They still should be able to access the getters. I want to prevent future developers from being able to access the model setters from anywhere except the controller in order to enforce proper MVC patterns. Thanks! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] clone object
If you had one circular reference, you'd hit the recursion limit. On 24/08/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: If you're not willing to code a solution, then why are you bothering to write out an explanation? I have yet to encounter a recursion limit and I've parsed some deep object models. ___ 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] UML Diagrams
ArgoUML from www.tigris.org is free. Eclipse has a free UML editor If you want to generate UML from Actionscript, Doxygen will do that and generate Javadoc style documentation from properly commented code. Ron Mike Keesey wrote: Just curious, What do people on this use to create UML diagrams? Do you use a WYSIWYG diagram-creating tool (preferrably which can output skeletal AS class code)? Or do you use something that scans preexisting AS classes and generates UML diagrams (or a UML-related XML format, like UXF). I've experimented with a few such programs. I'd really like to find something (or a combo solution) that can work both ways. -- Mike Keesey ___ 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] Tabbing and Components (again) ...
Hi, I have a flash application that has a couple of combo box components and a couple of text fields. Trying to tab between my text fields doesn't work, even though they are all tab enabled and have tab indexes. The reason for this, I have recently found out, is due to the combo box component - it breaks the tabbing. The workaround for this is to include the following line (after the first frame in my movie): _level0.focusManager.enabled = false; This works, HOWEVER, as soon as you choose something from the combo box, the tabbing is broken again ??? Any anyone assist with what is going on here and if there is a fix. Thanks.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] onLoadInit failure
Loading SWFs that import shared library items using a MovieClipLoader is also problematic. Are the SWFs that you are loading importing shared library items? Scott On 8/23/06, Tony Fairfield [EMAIL PROTECTED] wrote: Does anyone have any insights as to why onLoadInit (the movieClipLoader event) might fail in some instances? Background: I create programs for CD and web delivery. Programs simply consist of a menu system and a movie clip into which external swfs are loaded as the content. I preload this swf content using the movieLoader routine as described in Flash Help in order for page display to be seamless. I use onLoadInit in order to gather information about files for use in navigation once they are initialized and I also have the option to call a function to start the content. Problem: While testing, each swf loaded successfully triggers the onLoadComplete and then onLoadInit perfectly. However, when launching the projector or the generated swf, onLoadComplete is always successful but the onLoadInit event simply fails for the majority of the pages. For reasons I cannot understand, it will succeed for certain files - the same ones - only occasionally. I have noticed that page content seems to affect the onLoadInit, because pages with graphics were less likely to init. And as a test, I created substitute pages that were completely empty, about 2k each. The problem went away. Thanks to anyone who can help, even if only to inform me that onLoadInit is known to be unreliable. Tony Fairfield ___ 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] dynamic spacing
This is so simple you don't even have to ask the list... in that for loop just increment and set the mc's x / y. There's no complex algo behind it. On 8/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Anyone have an algorithm to space dynamically created movieClips centered on the stage? I'm using attachMovie in a for loop to create the clips based on an unknown number of itemsusually 3-5 items that are about 150px wide each. Thanks.. -- Ramon Miguel M. Tayag ___ 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