[Flashcoders] FMS2 Installation Failure
Hello to everyone I have installed FMS2, Flash 8; Flash Player and plug in as said as installation guide. After installation, I ran an example showns in Examples found in Adobe, posted to practice for developers. I cant run the examples, and shows an error NetConnection.connect.failure. I believe that I installed in the correct way the FMS2 software, and I cant find why is that error. PD: I have been installed the software FMS2 in other PC and ran perfectly, but in my personal PC shows the failure. Another thing in that I desactivate the windows firewall. Could anyone help me in this matter? I want to try this software but I cant run properly!! Thanks for your time Daniel C. _ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx___ 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: dynamically accessing parts of XML
Hi list, I have an XML object (listed below) I can access a node like, for instance: trace(myXml.MAMMAL.*) //traces: humancowdog Now I want to access nodes dynamically through a function like: function traceNode (thisNode:String):void { trace(myXml[thisNode].*; } traceNode(MAMMALS) works fine because it's a first generation child of myXml but traceNode(MAMMAL) returns empty (because MAMMAL is of a younger generation?) Eventually I want to be able to access even the whale dynamically by passing it's 'path' through an argument of my function. How would I do that? Thanks, Willem van den Goorbergh xml follows: var myXml:XML = ANIMALS MAMMALS MAMMALhuman/MAMMAL MAMMALcow/MAMMAL MAMMALdog/MAMMAL /MAMMALS BIRDS BIRDblackbird/BIRD BIRDdove/BIRD /BIRDS FISHES FISHfishAndChips/FISH FISHgoldfish/FISH FISHherring/FISH FISHshark/FISH MAMMALwhale/MAMMAL /FISHES /ANIMALS =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Geografiek is a Dutch, Utrecht-based map and chart design company. Willem van den Goorbergh can be contacted by telephone: (+31) 30-2719512 or cell phone: (+31)6-26372378 or by fax: (+31)302719687 snail mail: Hooghiemstraplein 89 3514 AX UTRECHT Visit our website at: http://www.geografiek.nl =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= ___ 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] Text Editor Undo/Redo Stack
Hello, This is what I was thinking - I find it hard to conceptualise the time aspect of undoing and redoing actions, and how to capture events such as cut and paste... I guess cutting you just read the selected text at the point a Keyboard event for X gets fired at the same time as CTRL is held down? Is it that straightforward? J dr.ache wrote: Command done on the text! A command representing the action and the amount, like cut from location 3 to 24 of the text. The text you cut of must also be saved, certainly! James Marsden schrieb: ___ 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] AS2Doc not working - no reponse from Mirell
I still have to create documentation for the Flash IDE from ActionScript 2 classes and have been using AS2Doc from Mirell without a problem. However it's quit working and gives this error when I attempt to Generate docs: [ERROR]: Error transforming XSL. File: C:\Program Files\Mirell\AS2Doc\styles\as2doc\flash\mx2004\\MXI/index.xsl Namespace 'urn:http://www.as2doc.com/as2doc' does not contain any functions and my requests for help to the main AS2Doc address bounced back as undeliverable and e-mails to Mirell have gone unanswered. AS2Doc is an old product, but it is still being sold ( http://www.as2doc.com/index.php?p=13 ) Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Uploading different types files to a PHP script
Hi, sorry if this is a PHP questionI'm trying to work with this more on the Flash side, so I hope its a Flash question. I have a PHP script online that serves to write binary image data from my Flex/AIR app: $f = fopen($path,w); fwrite($f, $GLOBALS[ 'HTTP_RAW_POST_DATA' ] ); fclose($f); On the Flash side: var jpgtosave:JPGEncoder = new JPGEncoder(); var rawdata:ByteArray = jpgtosave.encode(bitmap); var header:URLRequestHeader = new URLRequestHeader (Content-type, application/octet-stream); var myRequest:URLRequest = new URLRequest (path); myRequest.requestHeaders.push (header); myRequest.method = URLRequestMethod.POST; myRequest.data = rawdata; var loader:URLLoader = new URLLoader(); loader.dataFormat = URLLoaderDataFormat.BINARY; loader.load(myRequest); This works great, but now I want to use that same PHP script to upload a text file. The reason I want to keep the PHP script the same is because the end user actually sets the upload location, and I think it would be overly complicated to have them choose two different upload script locations. Anyway, no matter what I try, the text file that's written to the server is done correctly, except the contents of it are always the file's URL instead of the text that I wanted. I realize there are better ways to upload text through PHP, but as I said, I'd like to use the same script as my JPG uploads. Here's some things I tried: 1. Changing the request header to Content-type, text/plain 2. Changing the URLLoaderDataFormat to TEXT 3. Writing out my text's string to binary through ByteArray.writeObj 4. Taking my binary data directly from a FileStream So, as you guys can see I'm stabbing in the dark! I assume that I'm somehow encoding the data wrong to get to the server. Maybe I need a file header as the com.adobe JPGEncoder gives the JPG a header, likewise I should give my text file a header. Does it have to be binary data to use with my PHP script? Thanks! ben ___ 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] memory leak
Are you using Bitmaps and/or BitmapData? In that case try doing bitmapData.dispose() or bitmap.bitmapData.dispose() when clearing an image -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Huynen Sent: 03 September 2007 22:09 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] memory leak Hi There, I created a flash projector file to display media on a flat screen. The application loads images and xml and is supposed to loop all day long. However, after each loop the application steals 10 mb in memory more. I deleted all the movieclips and checked all the vars with the help of a foreach loop and deleted them to. Does anybody know how to deal with this data leak?? Regards, Tom ___ 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] Text Editor Undo/Redo Stack
Yes, command based. If you were to follow Omar's version you could end up with a memory hog. Imagine a 4000 character text field/document. Storing a snap shot if that x20 is overkill in a bad way. Copy/Paste/Delete are all fairly simple. You might want to enhance your undo feature when you type. If a capture is made for every key stroke then you would quickly spend all your undos on a sentence. You should consider bundling like commands (such as typing) into a single command. Look at typing like adding characters to a paste command. For example, if you were to type a whole sentence and then UNDO, the whole sentence would be removed. But if you type most of the sentence and then paste text and then finish typing the sentence, you would end up with 3 commands (latter part of the sentence, paste, first part of sentence). You might also consider having the backspace count as a different command than typing alphanumeric characters. You could also look at the Enter command as a different command than alphanumeric as well. Both of these make natural breaks in command groups. Charles P. On 9/3/07, dr.ache [EMAIL PROTECTED] wrote: Command done on the text! A command representing the action and the amount, like cut from location 3 to 24 of the text. The text you cut of must also be saved, certainly! James Marsden schrieb: Hello all, I'm looking at building a very simple text editor application in Flash, which needs an undo/redo stack of around 20. My question is related to capturing the events in the stack; whether the done thing is to capture the state of the text field contents at every step, or just to record commands that are operated on the text field. For example, when cutting a piece of text, does the system record the state of the textfield when the cut is made, or does it just record the action and values related to it, ie. cut /piece of text/ from string position 344. Any advice from bods with experience in this area much appreciated! Thanks, James ___ 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] Calculate how many days until date
I need to calculate how many days there are until a specified date in the future. Is there any built in functionality to do this, or if not, can anyone point me in the right direction. I would imagine it is difficult to do manually as it would need to take account of leap years etc. Thanks Paul ___ 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 _url?
_url has been removed from AS3. Trying to find its replacement... is there one? - eric ___ 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] [Show] Flash game community
Hi guys! First of all, sorry for just so blatantly posting our own site! We just released http://nonoba.com/ and is in desperate need of content and beta testers :) The site is as the subject implies a flash game community where developers can upload their games, and users can play and comment on these. We think its rather cool, but I would be really really happy for some feedback from you developers; * What kind of features do you want? * How can we make the site the best developer community out there? * Anything we totally forgot about which is obvious? I hope you will use a few mins to take a look! Thanks alot, Chris Benjaminsen ___ 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] Q:tag cloud and image analysis
Hi I am trying to create a 'tag cloud' representation of an image. But am wondering if something like this: http://guiborchert.com/work/rga_tags.html is even possible in Flash 8. Is this a project for Flash 9? Can anyone offer suggestions/opinions on the best way to create this effect? I know I need to break down the project to 1) image analysis 2) text size, distribution, brightness/opacity based on #1 3) allow for text items to increase in relative size based on times clicked Thanks for any feedback! [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca ...all improvisation is life in search of a style. - Bruce Mau,'LifeStyle' ___ 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] Calculate how many days until date
On 9/4/07, Paul Steven [EMAIL PROTECTED] wrote: I need to calculate how many days there are until a specified date in the future. Is there any built in functionality to do this, or if not, can anyone point me in the right direction. I would imagine it is difficult to do manually as it would need to take account of leap years etc. trace( You have to wake up only + Math.floor( ((new Date( 2007, 12, 25 )).getTime() - (new Date()).getTime()) / (24 * 3600 * 1000) ) + times until it's Christmas! ); HTH, Mark ___ 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] Calculate how many days until date
On 9/5/07, Mark Winterhalder [EMAIL PROTECTED] wrote: trace( You have to wake up only + Math.floor( ((new Date( 2007, 12, 25 )).getTime() - (new Date()).getTime()) / (24 * 3600 * 1000) ) + times until it's Christmas! ); Actually, you don't even need the getTime() -- valueOf() does the same thing, and you can also use Date.UTC(). javascript:alert( You have to wake up only + Math.floor( (new Date( 2007, 12, 25 ) - new Date()) / (24 * 3600 * 1000) ) + times until it's Christmas! ); HTH, Mark ___ 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 _url?
loaderInfo.url eg: you can use stage.loaderInfo.url to get the url for the swf. On 9/5/07, eric e. dolecki [EMAIL PROTECTED] wrote: _url has been removed from AS3. Trying to find its replacement... is there one? - eric ___ 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 -- Arul Prasad http://arulprasad.blogspot.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] FMS2 Installation Failure
Hmm, the only problem I remember having when installing was windows firewall blocking the ports, but it sounds like you already disabled that. Are you sure you have the hostname and application names correct in the test app you're using? -Andy On 9/3/07, Daniel Calderón [EMAIL PROTECTED] wrote: Hello to everyone I have installed FMS2, Flash 8; Flash Player and plug in as said as installation guide. After installation, I ran an example showns in Examples found in Adobe, posted to practice for developers. I cant run the examples, and shows an error NetConnection.connect.failure. I believe that I installed in the correct way the FMS2 software, and I cant find why is that error. PD: I have been installed the software FMS2 in other PC and ran perfectly, but in my personal PC shows the failure. Another thing in that I desactivate the windows firewall. Could anyone help me in this matter? I want to try this software but I cant run properly!! Thanks for your time Daniel C. _ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx___ 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] Applying easing effect to type effect
Hi, i got the following code: effect = function (txt) { string = txt; total = string.length; var ta:Array =[] for (i=0;itotal;i++) { ta.push(string.substr(0, i+1)) } i=0; onEnterFrame = function () { if(itotal-1) { i++ text.text = ta[i] +_; }else{ text.text = txt; delete this.onEnterFrame; }; }; }; effect(blah blah blah blah); This writes in a dynamic text field a string with a typewriter effect I saw, by the way, in some websites, that the typewrite effect is performed with an easeOut effect and i guess it can be achieved by using the tweener class by Zeh, but I have no idea about how to implement in my code. Any help??? Hasta... -- Omar M. Fouad - Digital Emotions http://www.omarfouad.net This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. 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