Re: [Flashcoders] Synchronized game timing
Just have the server send the clear message at the same time to all clients. Assuming it sends all the messages in the same order to everyone, then there will be no problem. Don't even put any kind of timer on the client side, have the server time it. eg: A = client A B = client B S = server A-S (drawing #1) S-A (drawing #1) S-B (drawing #1) B-S (drawing #2) S-A (drawing #2) S-B (drawing #2) S-A (clear screen now) S-B (clear screen now) A-S (drawing #3) S-A (drawing #3) S-B (drawing #3) Then you don't have to worry about timing, as long as the messages get sent in the same order. On 8/8/07, Mick G [EMAIL PROTECTED] wrote: It doesn't have to be constant perfect timing. Basically it more of a casual multi-user scribble-pad. I only need synchronization to automatically clear the canvas every 5 minutes. That's the only thing that needs to be in sync and it can have a second inaccuracy but not much more. It's working OK now when I get the server time and just make it do the canvas clear on exactly every 3rd minute, there's just about a 2-3 second difference and I'm hoping to get that a little more accurate somehow. On 8/8/07, Joshua Sera [EMAIL PROTECTED] wrote: Are you trying to do a real-time game? Because I've been playing around with real-time games with Flash and Java myself in the last month or so, and so far, my conclusion is that it's not workable. The big reason being that Flash can't handle UDP packets. TCP/IP is just way too slow to deal with real-time updates, even if you do have a ton of bandwidth, because of how many packets get dropped, and TCP/IP's guarantee that packets arrive in order. UDP is connectionless, and has no control of when, or if the packet arrives, meaning less overhead, and less latency. There are 3rd party projectors that have UDP functionality, but then you have to worry about firewalls. To get past the firewalls, you can use UDP hole punching, but that requires a level of control over the packet that none of the projector apps offer, so basically, if you want to do anything real-time, do it in C++, or Java. --- Mick G [EMAIL PROTECTED] wrote: I'm after a little theory here from people who have created multi-player games before. I have a java socket-server in place and all the functionality of the game working fine. I just need a way to synchronize the game (as best as I can). What I'm trying to do is restart a new game every 3 minutes. I have a way to get the server-time from the java socket server as a way of getting a constant time, but there is an inconsistency in when this time is received (sometimes it takes half a second or even a second from when it leaves the server to when it hits the client. This causes a difference at times of up to 2 seconds for different users. Any suggestions on how to handle this? ___ 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 Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 ___ 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] Rotating, skewing and coloring TextFields using device fonts.
Personally I think you should keep it as compatible as possible. Otherwise, someone might develop a SWF, only checking against gnash, and not realize that it doesn't work correctly in the official player (which the majority of users will be using). This means that gnash would not be as useful for developing, since you'd need to doublecheck against the official player all the time. My opinion is that extra functionality or changed functionality is much worse than missing functionality. -David R On 7/24/07, strk [EMAIL PROTECTED] wrote: Hi all, I'd like to gather some opinions reguarding compatibility between Gnash and the proprietary players. Current Gnash development version is able to handle device fonts exactly in the same way as embedded fonts are handled. This means you can rotate, skew, colorize each component and everything will work. Do flash coders consider this as an advantage or a compatibility warning ? (or both) Also, I've been reported that *some* proprietary player versions handle this differently in different architecture flavors (like _alpha being misreguarded but borderColor and backgroundColor being honoured). Can anyone confirm ? --strk; ___ 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] Sending binary data to server - NO HEADERS
On 3/28/07, Michael Mudge [EMAIL PROTECTED] wrote: Although XML basically receives null-terminated XML data, it can *send* any string. You can basically make a rudamentary HTTP client by using it. Foo = new XMLSocket(); Foo.connect(wherever.com, 1234); Foo.onConnect = function() { Foo.send(data); Foo.disconnect(); }; ...something like that? Or... in Flex, you can use a Socket class, which is quite similar... And implement a more complete client. If I had more details, I could probably scribble something up... Also, XMLSocket/Socket cannot connect to ports below 1024, without a special policy server. If they cannot modify the script, I am guessing that installing a separate socket server to hand out policy files is also not possible. See more info here: http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004file=1099.html What I don't know how to do is read a local file in such a way that I'd be able to use its raw data as a string to send to a socket. Unfortunately this is not possible when running from a browser. Otherwise it would open potential security holes. (Imagine some random SWF reading data from your disk) - Kipp -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Rorex Sent: Wednesday, March 28, 2007 11:34 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Sending binary data to server - NO HEADERS It seems like you are doing a lot of work, because of a poorly-designed server script. I would really try and see if you can get permission to modify the script. If not, perhaps you can have a 'bridge' script, that recieves the data from flash, formats it correctly for the other script, then forwards it. All the flash 8 methods of sending data to server that I can think of, will have some sort of header or data format that will need to be processed first. -David R On 3/5/07, Carlos Saenz [EMAIL PROTECTED] wrote: I am trying to send binary data to a server side script which takes a variable called file, and saves it as a binary file. so if I have a variable in my flash movie myfile, with a value of asdf, and I send that to the server, it will make a file on the filesystem called myfile, and the contents of it will be asdf Now, the trick is to send the script an image or video file. I have tried the following ways: 1) Using FileReference class (Flash 8) --- This works with php and move_uploaded_file. --- This does NOT work the server side script mentioned above. It adds headers to the file. Same headers found here: http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/ wwhelp.htm?context=LiveDocs_Partsfile=2225.html Namely: Content-Type: multipart/form-data; boundary=AaB03x --AaB03x Content-Disposition: form-data; name=Filedata; filename=example.jpg Content-Type: application/octet-stream ... contents of example.jpg ... --AaB03x-- PHP can handle this, the other script cannot. Unfortunately we are stuck with the other script. So I looked at different ways to send binary data to the server, without using FileReference. 2) Flex Builder 2. Here we have some new classes. Such as URLRequest and URLLoader, where you can use URLLoaderDataFormat.BINARY. This transferred the file to the server side script we are stuck with perfectly. No errors or problems. Unfortunately they want a Flash Player 8 solution. 3) Some examples on the web where people have taken a BitmapData object in Flash 8 and programmatically convert a bitmap into an array of string data which represents pixel data, which is converted on the server to an image. -- Is this method possible with LoadVars to send a binary stream of data to a script via POST, which will make it think it's the same as a file upload??? Well these are my three options 1) FileReference -- Flash 8 -- Is there a way to eliminate the headers its sending by default? 2) Flex Builder 2 - URLLoader class -- Any way to use this in Flash Player 8? (Doesn't seem possible) 3) Manually encode binary data into a variable and pass it through loadVars making the server think it's a file upload. Possible??? OR 4) Any other possibility I may have overlooked? ___ 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] Sending binary data to server - NO HEADERS
It seems like you are doing a lot of work, because of a poorly-designed server script. I would really try and see if you can get permission to modify the script. If not, perhaps you can have a 'bridge' script, that recieves the data from flash, formats it correctly for the other script, then forwards it. All the flash 8 methods of sending data to server that I can think of, will have some sort of header or data format that will need to be processed first. -David R On 3/5/07, Carlos Saenz [EMAIL PROTECTED] wrote: I am trying to send binary data to a server side script which takes a variable called file, and saves it as a binary file. so if I have a variable in my flash movie myfile, with a value of asdf, and I send that to the server, it will make a file on the filesystem called myfile, and the contents of it will be asdf Now, the trick is to send the script an image or video file. I have tried the following ways: 1) Using FileReference class (Flash 8) --- This works with php and move_uploaded_file. --- This does NOT work the server side script mentioned above. It adds headers to the file. Same headers found here: http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/ wwhelp.htm?context=LiveDocs_Partsfile=2225.html Namely: Content-Type: multipart/form-data; boundary=AaB03x --AaB03x Content-Disposition: form-data; name=Filedata; filename=example.jpg Content-Type: application/octet-stream ... contents of example.jpg ... --AaB03x-- PHP can handle this, the other script cannot. Unfortunately we are stuck with the other script. So I looked at different ways to send binary data to the server, without using FileReference. 2) Flex Builder 2. Here we have some new classes. Such as URLRequest and URLLoader, where you can use URLLoaderDataFormat.BINARY. This transferred the file to the server side script we are stuck with perfectly. No errors or problems. Unfortunately they want a Flash Player 8 solution. 3) Some examples on the web where people have taken a BitmapData object in Flash 8 and programmatically convert a bitmap into an array of string data which represents pixel data, which is converted on the server to an image. -- Is this method possible with LoadVars to send a binary stream of data to a script via POST, which will make it think it's the same as a file upload??? Well these are my three options 1) FileReference -- Flash 8 -- Is there a way to eliminate the headers its sending by default? 2) Flex Builder 2 - URLLoader class -- Any way to use this in Flash Player 8? (Doesn't seem possible) 3) Manually encode binary data into a variable and pass it through loadVars making the server think it's a file upload. Possible??? OR 4) Any other possibility I may have overlooked? Thanks for any help, -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@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] ActionScript3, Socket, readObject
Perhaps read the data bytes into a separate ByteArray first and keep a copy, then if the readObject fails, you can wait for the next packet from the socket, and combine it with the original bytes in the ByteArray? On 3/22/07, Michael Mudge [EMAIL PROTECTED] wrote: I'm using ActionScript3 in Flash 9 alpha... I've got a great Socket setup working, but when the network traffic gets high, TCP's nature is to combine and/or break up packets... The problem with this is that the incoming data event gets fired before a complete object has transmitted... I see no way to know if the entire object has arrived yet; so to find out, I just try. If the object isn't all there yet, it throws an error and I bail until more data comes in. The problem is, even when readObject fails, it trashes the data. (evidenced by the trace). Any ideas on how to fix this? Here's the code: function newSocketData() { var result; while(1) { var bufsize:Number = sock.bytesAvailable; try { result = sock.readObject(); } catch (e:EOFError) { trace(Data before: + bufsize + -- Now: + sock.bytesAvailable); return; } handleObject(result); } } - Kipp ___ 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] apollo is in macromedia labs
Yes, you can write AS3-only apps that don't use any part of flex at all. You can even do it for free with the Flex 2 SDK. I've heard that you can use AS2 apps in apollo, but that it is a pain because you do not have direct access to the apollo API. On 3/19/07, hank williams [EMAIL PROTECTED] wrote: I would imagine you can write in actionscript too, albeit AS3, but still actionscript. Hank On 3/19/07, dan [EMAIL PROTECTED] wrote: Too bad its onely for Flex :) I need it for flash ___ 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] real time flash interface.
A more efficient way might be to write a standalone socket server, in some easy scripting language (php, python, etc), which sits on your server and monitors the flat file. Since there is no network delay, it can check very often, once a second or even faster. It will accept conenctions from flash clients, and when it sees a change in the flat file, it can broadcast it to the connected clients. On 1/5/07, Paul Andrews [EMAIL PROTECTED] wrote: Hi, I'm about to start a new project which will display the workings of a server based system that's manipulating data and passing it between servers. At each stage of the process a flat file is written that indicates a change in status/readiness of the data for the next stage in the process. My flash project will sit over the top of this indicating what's going on - driven by the flat file status changes. It's unlikely that I can really change the infrastructure at all - probably the best I'll be able to do will be to have the status files copied into a suitable form for the flash project to read. It's going to be interesting if I can't meddle with the infrastructure or get a file format compatible with loadvars or xml.. Since it's unlikely I can add much to the infrastructure, as far as I can tell the best approach is simply to poll for the presence of the status files regularly and read them to pick up any changes. I don't know if I'll be able to expose the files through a web service, or add a socket server. So my current thinking is to poll (read the status files if they are there), then sleep for an interval then poll again (this will be as real-time as I can manage). Effectively I'll be building an event-driven project that generates events to update the interface in reaction to the presence of the status files. Unfortunately, without a socket server I can't push the changes, nor can I reply on other solutions being installed on the server side (such as media server). As the status changes, I'll animate the flash interface to show what's going on on the servers. Anyone done this kind of thing before and have some sage advice/gotchas? Paul -- ipauland.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] Upload speedometer without FileReference?
Other options are using Java, which has more flexibility, or perhaps using XML or LoadVars, and sending a specific amount of POST data. simply divide amount sent by time taken, to get the speed. On 11/27/06, Timothee Groleau [EMAIL PROTECTED] wrote: I know upload has nothing to do with files. The only reason I mentionned files is because, as far as I know, only file upload in Flash tells you how much you have uploaded, and you can use that to determine an upload speed. How do you reliably measure upload speed of sending data in Flash? On Monday 27 November 2006 12:57, Michael Bedar wrote: in this case upload has nothing to do with files, it just means sending data, while download means receiving it.. On Nov 25, 2006, at 10:04 PM, Timothee Groleau wrote: Hi there, I'm curious on how the upload part of the speedometer was created at the sites below: http://www.speedtest.net/ http://www.speakeasy.net/speedtest/ (both sites use the same speedometer engine) Download speedometer is easy to build but I wonder how they did it for upload. The FileReference class can tell you how much you upload, but these sites don't use that. Any idea? Tim. ___ 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] simulating mouse clicks
Hi, I researched this extensivly in the past, there is just no good way which works well in all cases, such that it will even work on 3rd party code. If you control all of the code, you can make it foolproof by adding a line of code to each click handler, but this can be time consuming, and not always possibe. If however, you do find some way, please be sure to let us know, I would be very interested. -David R On 10/17/06, Vishal Kapur [EMAIL PROTECTED] wrote: I'm trying to solve the problem of generically simulating mouse clicks in a running flash movie. So, I'd like to be able to write a function that when invoked with the targetPath of the flash object to be clicked, would be able to simulate a mouse click on that object as if a user had actually clicked it. I should also mention that the technique needs to work with arbitrary 3rd-party flash movies (so I don't have control to change the code). The simplest thing to try is just to try to invoke the onPress/onRelease callbacks on the target object. This works sometimes. However, in some cases it doesn't quite simulate a real mouse click. In particular, I seem to have trouble simulating clicks on components (in a List component, for example, the selected row will get highlighted but the handler that does further processing and refreshes the UI doesn't seem to get called). Currently I am (sort of) working around this by getting the coordinates of the center of the target object and using the Win32 api's to move the mouse pointer and simulate the windows mouse down/up events. As you can imagine this is not truly generic (doesn't handle scrollbars, movielclips obscured by other objects, etc). Any thoughts on this? Anyone with previous experience with this or ideas on a better way to generically simulate a click event in flash? Thanks, Vishal ___ 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] Webservices with Zinc and a certificate
I am pretty sure Zinc has nothing to do with SSL, it is all done by the flash plugin. So it may just work (why not try it to find out?). -David R On 10/19/06, Jim Kremens [EMAIL PROTECTED] wrote: Interesting thanks for the reply! I'll look into it. Still, this thing is largely built (we're taking it over from another developer). It would be a drag to have to rebuild it. So if anyone has any experience doing this in Zinc, please chime in! Thanks, Jim Kremens On 10/19/06, Robert r. Sanders [EMAIL PROTECTED] wrote: Depending on what you need to do and what expertize you have on hand, I believe there is also a customizable, kiosk oriented version of Firefox that might be the answer. Jim Kremens wrote: Hi all, Basically, I need do webservices call through Flash with a certificate in a Zinc-powered kiosk app. I know this works in a browser - with SSL the browser does all the hard work. But I'm not sure if it's possible with a projector. Zinc would have to provide some means of handling an https handshake and I've not been able to find any indication that it can. Anyone have any experience with this kind of thing? Thanks, Jim Kremens ___ 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 -- Robert r. Sanders Chief Technologist iPOV (334) 821-5412 www.ipov.net ___ 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 -- Jim Kremens ___ 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] fileUpload - suprise
Finally...that was a huge annoyance before, every time I would upload a file it made me mad. I will have to try with the new version when I get a chance. I don't know how they could have missed this the first time around. (Though it is a common windows problem, many dialog boxes are not resizable. That's one thing linux usually gets right, most everything is resiazable. It probably just comes down to lazy coders, don't want to put the extra work into making sure all the componets align correctly and so on when resizing.) On 10/19/06, Michael Stuhr [EMAIL PROTECTED] wrote: i must be dreaming: the fileSelect-Window is now (9,0,18,60) resizable? wooohhooo! thanks mother! micha ___ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] ActionScript 3 API Poster (PDF download @ Flex.org)
Problem seems to be that there is some weird encryption on the file. Try these fixed versions: http://davr.org/flash/posters.rar Note: I had to change the page size, but it still looks ok to me. The fixed versions even open in xpdf, so it should be ok. -David R On 10/17/06, Jason Jiang [EMAIL PROTECTED] wrote: Yeah, Drawing Error is true, how can I do? Jason - Original Message - From: greg h [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, October 18, 2006 2:07 PM Subject: [Flashcoders] ActionScript 3 API Poster (PDF download @ Flex.org) ActionScript 3 API PDF at Flex.org www.flex.org/download/AS3API_01.pdf print dimensions 40x28 fyi ... Acrobat Drawing Error has been reported by some on opening the pdfs also ... Flex 2 Framework API PDF at Flex.org www.flex.org/download/FX2API_01.pdf print dimensions 48x36 For sale onsite at MAX. Details at: www.onflex.org/ted/2006/10/cube-wallpaper-as3-and-flex-api.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] OT- subscribe to Flashcomm list
I haven't gotten any messages from the flashcomm list since 8/25 On 9/20/06, Wade Arnold [EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [a /] Sent: Wednesday, September 20, 2006 8:01 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] OT- subscribe to Flashcomm list I'm glad to see I'm not the only one experiencing the failure of the FComm list [a/] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gadi Sent: 20 September 2006 09:28 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] OT- subscribe to Flashcomm list Hi coders, sorry for the OT. FlashComm subscription page seem to be down, any other way I can subscribe? Best regards, gadi ___ 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] PDF2SWF - or other means to convert bytestream PDF to SWF??
On 9/27/06, Ettwein, Josh [EMAIL PROTECTED] wrote: I have a need to consume PDFs with the flash player - no problem in the past - just use PDF2SWF to convert to multiframe SWF and loadMovie. The problem I'm having now is that the specs I've been given require that no PDF files be stored on the server, so the PDF can't physically exist, even in a temp dir for PDF2SWF to hit it. I can't really see a way to pass the byte stream of the PDF as it is rendered from the database content from .Net into PDF2SWF to render the SWF. Anyone else ever pull this off? If it's not possible (in a reasonably straightforward manner) to do it dynamically, I will just tell the powers that be that they're just going to have to store the PDF in a temp dir on the server until PDF2SWF is done with it and then just destroy it. I don't really see a problem with that, and I've done it with great success in the past, but there's a lot of PII (personally identifiable info) in these PDFs we're creating, and the execs are concerned about storing anything for even a moment. I hope they don't find out that the PDF is also stored in memory while it's converting! Next they'll ask you to convert the file without it ever actually going into RAM! Seriously though, if it were me, I'd tell them it has to be in a temp file and will be destroyed as soon as it's converted. If you can't convince them, and you have a linux server, you might look into FIFOs / named pipes. Basically, what you do is something like: // create a FIFO called 'temp.pdf' this is not a file, but a 'named pipe'. Nothing is stored on disk mkfifo temp.pdf // start the pdf2swf conversion in the background pdf2swf temp.pdf // simulate transfering data from the network. // the data will get passed directly to pdf2swf without going to disk cat inputFile.pdf temp.pdf Another option is to use tmpfs, basically it's a ramdisk, that will not be stored (it's only in RAM). And finally...pdf2swf is opensource, so it shouldn't be too hard to add an option to read from stdin and write from stdout. If anyone has a solution that fits my needs, I would be forever grateful. :-) Josh Good luck! -David R ___ 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] PDF2SWF - or other means to convert bytestream PDF to SWF??
By the way, using flashpaper in an automated server environment violates the license agreement. Though if you are a small operation, adobe may not bother to go after you. -David R On 9/28/06, Ray Chuan [EMAIL PROTECTED] wrote: Hi, you might want to look at FlashPaper: http://www.adobe.com/products/flashpaper/ On 9/28/06, Ettwein, Josh [EMAIL PROTECTED] wrote: I have a need to consume PDFs with the flash player - no problem in the past - just use PDF2SWF to convert to multiframe SWF and loadMovie. The problem I'm having now is that the specs I've been given require that no PDF files be stored on the server, so the PDF can't physically exist, even in a temp dir for PDF2SWF to hit it. I can't really see a way to pass the byte stream of the PDF as it is rendered from the database content from .Net into PDF2SWF to render the SWF. Anyone else ever pull this off? If it's not possible (in a reasonably straightforward manner) to do it dynamically, I will just tell the powers that be that they're just going to have to store the PDF in a temp dir on the server until PDF2SWF is done with it and then just destroy it. I don't really see a problem with that, and I've done it with great success in the past, but there's a lot of PII (personally identifiable info) in these PDFs we're creating, and the execs are concerned about storing anything for even a moment. If anyone has a solution that fits my needs, I would be forever grateful. :-) Josh ___ 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 -- Cheers, Ray Chuan ___ 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] swf to svg
I believe most vector drawing tools will let you export/save as SVG. For example, http://www.inkscape.org/ is a free vector editing tool. Another popular tool is Adobe's Illustrator. If you really want to use flash to make SVG, another option is to save as something besides SWF. For example, Flash can export DXF as well as EPS files, perhaps those would be easier to convert to SVG. -David R On 9/25/06, Matthew Ganz [EMAIL PROTECTED] wrote: hi. the only tool i've found that converts SWF to SVG seems to no longer be working: http://www.eprg.org/~sgp/swf2svg.html anyone know of another tool? i cringe at writing the svg from scratch. thanks. -- matt. ___ 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] Close/exit browser AS event?
The only way I know to do it is from javascript, and then call to flash using ExternalInterface, which is synchronous, thus the browser cannot exit until the flash function call finishes (so it wont 'zap' the flash object in the middle of your cleanup) -David R On 9/21/06, Michel Gaudette [EMAIL PROTECTED] wrote: Hi! Do any of you know how to catch the event (in Flash/AS) when a browser is closed or zapped? I think I could use the JavaScript unloadPage if it's called before the Flash object is zapped, but I'd prefer to use some sort of onUnload() on the main timeline... Any clues? Thanks! Michel ___ 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] Hiding MD5 shared secret
hide the secret in many different places throughout the swf, and then combine them together to produce the actual code (using some odd formula). name them things that make it seem related to something else. part of the shared secret should also come from the server, so that it is different every time. some lame examples: _root.someInvisibleMC._x=123; _root.someInvisibleMC._y=124; // 124 is hardcoded on the server // ... highscores = server.getHighScores(); // actually returns a random number which is also stored on the server var userID = getTimer(); server.trackUsage(userID); // server stores this value as well // ... var currentDate = MD5(_root.someInvisibleMC._y+highscores+userID+currentScore); // server can also calculate this, because it knows all the same pieces of data // ... submitScore(currentDate, currentScore); // actually submit the score to the server hope this gives you some ideas. in the end, it's pretty much impossible to completely secure it, you just have to make the barrier high enough that they will give up attacking your game, and try on some less-well defended one. but...if the player's score actually gives them some reward which has real value (a prize, or a coupon, or free download or something), assume that it will be hacked, no matter what you do. -David R On 9/20/06, Toon Van de Putte [EMAIL PROTECTED] wrote: Hi, I'm building a Flash game that'll store a player's score in a database. To make sure the posts are coming from the swf, we're using MD5 to hash some (variable) player data together with a shared secret. This works fine, until someone downloads and decompiles the swf, and finds the shared secret. Do you have any best practices for hiding the shared secret as much as possible? I don't know enough about how the Flash IDE compiles swf's to figure this out on my own. 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] Hex to HSB
No, pretty much the way hsb -- rgb works, you need to have the numbers separate. You could probably create some awkward transform that tries really hard not to break them up, but it would end up being a lot more complicated, and not worth it. Besides, going from 0xRRGGBB to 0xRR, 0xGG, 0xBB is very fast (just 3 ANDs and 2 bitshifts). // takes a color in the form 0xRRGGBB returns an object with the fields r, g, and b function hex2rgb(c:Number):Object { return { r:(c16)0xff, g:(c8)0xff, b:c0xff }; } // takes an object with fields r, g, and b, returns a color in the form 0xRRGGBB function rgb2hex(c:Object):Number { return (c.r16) | (c.g8) | (c.b); } and then here's a quick test: var c = hex2rgb(0xabcdef); trace(r=0x+c.r.toString(16)+ g=0x+c.g.toString(16)+ b=0x+c.b.toString(16)); trace(color=0x+rgb2hex(c).toString(16)); then, assuming your rgb2hsv and hsv2rgb functions take an object as input, you could do: // read in hsv from a pixel var hsv:Object = rgb2hsv(hex2rgb(bmp.getPixel(x,y))); // transform hsv.h, hsv.s, hsv.v, etc hsv.h /= 2; hsv.s = 50; hsv.v = Math.random()*100; // put back our transformed pixel bmp.setPixel(x,y,rgb2hex(hsv2rgb(hsv))); -- Now, this is all theoretical, but I don't think flash 8 is fast enough to do this calculation on a real-time video of any decent size. flash 9 might be able to handle it. But if you just want to do some color transforms, i'd suggest looking at the built in transform classes instead of trying to do it yourself pixel-by-pixel. These should be much faster, because the transform code will be native, instead of in actionscript. They are pretty flexible, you can do a lot with them. -David R On 9/15/06, Mike Mountain [EMAIL PROTECTED] wrote: OK - seeing as you asked so nicely Instead of splitting it up into 3 different components R, G and B then doing a calculation on each of these in turn to find H S and B ,applying some transform on H and B and then turning these back into R G and B - then in turn combining this to find a flash friendly hex value - I'd like to know if it's possible to go Hex - Hsb - transform - Hex or to find HSB from hex do I have to split out the RGB components? Any clearer? M From: [EMAIL PROTECTED] on behalf of Ammon Sent: Fri 15/09/2006 17:07 To: Flashcoders mailing list Subject: Re: [Flashcoders] Hex to HSB Mike Mountain wrote: Thanks, but I was hoping this would be possible without having to convert to RGB first - I basically want to do pixel by pixel colour transform on a copy of a video whilst it's being played so it needs to be ultra efficient. I'm sorry... but explain to my how a hex number of the form 0xRRGGBB isn't _already_ an RGB value? :P Ammon ___ 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] Flashdevelop and moviecliploader
I use MovieClipLoader all the time, and I just did a quick test (mtasc 1.12, standalone flash player 9, windows xp sp2): file Test.as --- class Test { static function main(root:MovieClip) { var txt:TextField = root.createTextField('txt', 0, 0, 0, 200, 200); var mcl:MovieClipLoader = new MovieClipLoader(); txt.text = (loaderObj:+mcl); } } commandline -- mtasc -version 8 -header 200:200:10 -swf test.swf -main Test.as Output --- loaderObj:[object Object] so it seems to work fine for me. not sure what your issue is. -David R On 9/15/06, Andreas R [EMAIL PROTECTED] wrote: Having a bitch of a time getting mcl to work with flashdevelop/mtasc var mcl:MovieClipLoader = new MovieClipLoader(); trace(loaderObj:+mcl); traces out loaderObj: and then nothing. Is there something PECULIAR i have to do to make this work? tween classes and all other macromedia classes work fine. - A ___ 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 upload problems
I've had the same problem with the empty uploads, using PHP on the server. For every file I upload, flash makes 2 requests, the first request with 0 data, and the second one with the actual file. I think it's been replicated by many people. The solution is to just ignore invalid uploads on the server. -David R On 9/15/06, Michael Stuhr [EMAIL PROTECTED] wrote: Muzak schrieb: http://www.osflash.org/pipermail/osflash_osflash.org/2006-February/007266.html *bookmark* This has nothing to do with Struts by the way. Struts is just a framework. http://struts.apache.org/ :-) micha ___ 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] ANN: Screenweaver HX - Version 1.0
I hope you're not giving up because you think you have to use haXe for all of your apps: On top of 'standard' haXe-to-haXe communications, Screenweaver HX features a Flash library that allows communications between a haXe written back-end and a Flash IDE developed front-end. Both AS2 and AS3 are supported, so it is possible to create GUIs using Flash 9 Alpha IDE and Flex 2. And I've heard there are plans in the works to make a full-featured haXe backend such that you can develop full applications without having to touch haXe at all. -David R On 8/31/06, Cliff Rowley [EMAIL PROTECTED] wrote: So HX is the successor to v4? Shame for me, since I'll be saying bye bye to Screenweaver and waiting for Apollo, but good luck in your ventures - I think there's a lot of value in it. On 8/31/06, Edwin van Rijkom [EMAIL PROTECTED] wrote: Hi list, We are happy to announce that Screenweaver HX - version 1.0 is now available! Screenweaver HX is an (open source) extension to the haXe programming language (http://www.haxe.org) for creating Flash interfaced desktop applications. GUIs can be made using either haXe or Flash/Flex (both AS2 and AS3 are supported). Screenweaver HX is fully OS-X/Windows cross-platform and works with both Flash 8 and 9. On OS-X, it runs native on both PPC and Intel Macs. For more information and installation instructions, browse to: http://haxe.org/swhx Enjoy! Edwin Nicolas ___ 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] Actionscript 3.0 compiler Qs
On 8/21/06, Martin Wood [EMAIL PROTECTED] wrote: Does the compiled code get recompiled during runtime to machine code (like a JIT compiler) or does it get interpreted? Some Adobe presentation on the subjet was saying that all the code get JIT'ed, except the $iinit and $cinit functions which are the one defining the classes and initializing their static variables. I just read that the other day and was wondering why? Personally I cant really think of why constructors and initialization should be interpreted and not JIT'ed but im sure someone can think of good reasons. Perhaps because they are only run once? From what I understand, JIT is a small penalty the first time, then each successive use is sped up. If there are no successive uses, then it will be a net loss to use JIT. ___ 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] Better XML parsin
I kinda like XMLShortcuts: http://www.shockwave-india.com/blog/?search=XMLShortcuts On 8/21/06, Johannes Nel [EMAIL PROTECTED] wrote: xpath On 8/21/06, Flash Mel [EMAIL PROTECTED] wrote: Hello everyone, There has to be a better way to parse XML. Using for loops seems antiquated. Could I do a while loop and cycle through all the possible nodes? What else is out there for parsing XML in a cleaner fashion? Cheers! fM ___ 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@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: Better XML parsin
I've used JSON (http://json.org/) before, not for config files, but for exchanging data between flash, java, and php. It's quite easy to use for someone with actionscript/javascript experience, and there are parsing libraries for most other languages as well. On 8/21/06, R.A. Williamson [EMAIL PROTECTED] wrote: I've found XFactor Studio's XPath library to be invaluable: http://www.xfactorstudio.com/ In a similar vein, does anyone here use a solid alternative to XML config files, perhaps with server-side object serialization or some such? -rw Flash Mel wrote: Jack - Awesome! I'm off to the store for a while, soon as I get back I'll give this a test. David - Thanks for the link. Looks useful as well. I'll give these a try and respond in a few thanks peeps. Cheers, fM On 8/21/06, Jack Doyle [EMAIL PROTECTED] wrote: I wrote a class that might be useful to you. Just point it at your XML file and it'll load it and parse it into Arrays/Objects. See the top of the class file for some documentation. It can also reverse parse (dump an object back into XML format). http://www.greensock.com/ActionScript/XMLParser.zip This is the first time I'm making it available to the public, so I welcome comments/suggestions (be kind). It's been working quite well for me for months. Jack Doyle --- Date: Mon, 21 Aug 2006 15:46:24 -0400 From: Flash Mel [EMAIL PROTECTED] Subject: [Flashcoders] Better XML parsin Hello everyone, There has to be a better way to parse XML. Using for loops seems antiquated. Could I do a while loop and cycle through all the possible nodes? What else is out there for parsing XML in a cleaner fashion? Cheers! fM ___ 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] AS3 bitmapdata lock/unlock
Wow that's neat, I'm a big fan of the Mandelbrot set. (offtopic, I just created an explorer for the nintendo DS: http://blog.davr.org/ ). I definately look forward to seeing the source when you finish it up. -David R On 8/16/06, Hauwert, Ralph [EMAIL PROTECTED] wrote: Hi Mike, I won't be posting the source of this one yet (it's a mess), but I quickly converted this Beta 2 / 3 example I did to illustrate the power of .lock(). http://www.unitzeroone.com/flex_2/mandelbrot_explorer/ It's a simple Mandelbrot explorer, it was one of my first attempts of creating a Flex component. I just polished it up so it works again, it's not finished. If you first change the settings to one of the larger ones (Either HUGE, Fraczilla or WS), then hit draw, look at the Ms, then change the lock checkbox, hit draw again, and see the MS rise. On my duo core machine it makes about 200Ms of difference in WS size. Ralph. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Mountain Sent: woensdag 16 augustus 2006 12:19 To: Flashcoders mailing list Subject: RE: [Flashcoders] AS3 bitmapdata lock/unlock Hi Ralph If you're feeling generous I'd be interested in seeing the source for those comparisons Cheers M -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hauwert, Ralph Sent: 16 August 2006 11:16 To: Flashcoders mailing list Subject: RE: [Flashcoders] AS3 bitmapdata lock/unlock Actually doublebuffering or pageflipping routines could easily use these functions for optimizations. The thing is, that as soon as you swap out one bitmapdata for another (or the holder bitmap class), you lock it anyway. The lock function on itself does not replace the functions of a double / triple / frame buffer or a pageflipping routine. But you could easily intergrate these functions. I've did some speed comparisons; lock and unlock make a great deal of difference in speed; if you are writing a large amount of pixels, rectangles; be sure to lock first. Ralph. ___ 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] Uncompress a gzipped file
I can see this being pretty useful. It would definately simplify one of my apps, where I currently use swfmill to combine a directory of a bunch of JPEGs into a single swf for faster loading. Instead, I can just use a standard zip file! -David R On 8/11/06, Claus Wahlers [EMAIL PROTECTED] wrote: Right now there's several things that could be done with this that I can think of. Like Claus said, a tool could be created that takes regular zip files and adds checksum info without damaging compatibility. A quick progress report, just in case somebody is interested: We kinda got it working. See here for a rough demo: http://codeazur.com.br/stuff/fzip/ Flash Player 9 required, obviously. I grabbed the original ZIP from here: http://www.famfamfam.com/lab/icons/silk/ and use it as is. It contains 1002 icons in PNG format. Flash Player loads the ZIP via URLStream and decodes it on the fly. This works because the zipped PNGs are not being recompressed (PNG already uses compression). Max wrote a small Python script that unobtrusively injects Adler32 checksums into ZIPs, so very soon we'll be able to properly uncompress slightly modified, but still standard ZIP archives. Sources are going to be released soon, stay tuned. Cheers, Claus. ___ 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] OT: Flashmaps - anybody used it before?
FYI, Yahoo Maps also provides maps in flash, and they have a developer site, and free API and everything. I didn't look at flashmaps much, but they may work for you. -David R On 8/16/06, Anggie Bratadinata [EMAIL PROTECTED] wrote: One of my prospective clients want to have flash app with US map. My partner found this nice tools, www.flashmaps.com and I'm wondering if you guys have some experience with it. note: this message is cross-posted to Flashnewbie list, hope you wouldn't mind. -- Anggie Bratadinata Web|Graphic|Flash Jl. Raya Langsep 21 Malang - East Java I N D O N E S I A http://design.ibshastautama.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] quotes in XML
On 8/8/06, Elie Zananiri [EMAIL PROTECTED] wrote: Hello all, I have an XML parsing question that I've been trying to solve for a little while now and I can't get it to work. I have a PHP script that loads text from an SQL db, formats it in an XML string and sends this string back to Flash using the LoadVars.sendAndLoad(script.php) function. This text that I send can be pretty much anything, including quotes and brackets and I cannot get Flash to read the XML properly. Wait...is there any particular reason you are using LoadVars instead of the XML class? I think simply using XML instead would solve your problem, without any funny hacks. -David R ___ 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] How to secure actionscript code from reverse engineering
There are several apps out there that claim to protect swfs, I haven't tried any of them extensivly, but many appear to work. Try searching for them. Off the top of my head, I can think of swfencrypt, secureswf, MT's Obfu (mtasc.org/obfu). -David R On 8/8/06, Santhakumar K [EMAIL PROTECTED] wrote: flashcoders, we developing one application that communicate from mobile to pc. mobile version is developed in j2me. pc version i am developing in flashplayer 7 which should also runs on linux environment. For j2me they having protection method to jumble class files from reverse engineering. but i dont no how to protect my swf from reverse engineering (eg. actionscript viewer). thats why companies afraid to develop secure applications in flash. please inform me any other method to protect from reverse engineering. Regards, Santhakumar K Chennai India http://www.santhakumar.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] Invalid gateway URL
Perhaps when your compent loads, have it call a remote method like ping or test or something, and if that method is not successful, show an error saying can't connect to gateway -David R On 8/8/06, Wade Arnold [EMAIL PROTECTED] wrote: I am looking for actually detecting it in the program. I have a couple of components that use remoting and people always seem to not place the proper remoting URL into the inspectable property. This leaves us with a lot of the component doesn't work Wade -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wade Arnold Sent: Wednesday, August 02, 2006 2:56 PM To: 'Flashcoders mailing list' Subject: [Flashcoders] Invalid gateway URL I was wondering if there is a way to capture the error that happens when you do not have a proper gateway URL for flash remoting. Flash just traces out that it can not open the url. Is there a way to do this or should I try and use getURL before I run the remoting service? Thanks; Wade ___ 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] PDF2SWF -- Problems with gradients
There's FlashPaper, but I'm not sure how well that will integrate with your current workflow (you didn't say if you have occasional PDFs to convert, or if it needs to be an automated, fairly often process) -David R On 8/7/06, Marcus Cheetham [EMAIL PROTECTED] wrote: I've been having trouble with the conversion of PDFs to SWFs. If the PDFs are created in InDesign, gradients do not get converted properly using the PDF2SWF utility (http://www.swftools.org). In Quark however, the conversion works without problems. I understand that the reason for this, is that InDesign creates 'true' gradients, whereas Quark effectively fakes them. It looks as though PDF2SWF currently cannot handle the 'true' gradients effectively. My company is moving to 100% use of InDesign and since we have a need to regenerate the pages as SWFs, this is going to be a big headache. One work-around that I know will work, is to rasterize the gradients. I'd like to avoid this proceedure if I can, though, because its a lot of extra work. Does anyone have any ideas about this? Is there another tool other than PDF2SWF that can handle such conversions, without altering the layout? Or are there techniques in InDesign that I could use? Any ideas would be appreciated, Thanks, M. _ Windows Live™ Messenger has arrived. Click here to download it for free! http://imagine-msn.com/messenger/launch80/?locale=en-gb ___ 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] Possible Challenge: AS 3.0 Compiler :)
On 8/5/06, Scott Hyndman [EMAIL PROTECTED] wrote: https://www.adobe.com/cfusion/tdrc/index.cfm?product=flex The Flex compiler is free. Scott Can flex compiler run inside the Flash 9 plugin? I didn't think so... On 02/08/06, Keith Salisbury [EMAIL PROTECTED] wrote: Why on earth would you want to? Possibly for geek points? An interpreter may actually be more useful. In some cases you might want the end-user to be able to write small scripts to extend the functionality of your app. In this case, you wouldn't need a full blown bytecode compiler, but a simple interpreter would do the job fine. In fact, I probably have a project or two where an improved version of the old AS1 inside AS1 interpreter would be nice. (I don't have a link handy, but you should be able to find it with some searching) -David R On 8/2/06, John Giotta [EMAIL PROTECTED] wrote: It maybe too soon for anyone to have a full grasp on AMF or SWF specs of an AS3.0 SWF but I wonder if its possible to create a crude compiler from AS3.0. AS3.0 ouroboros of sorts. ___ 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 -- [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 ___ 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] grabbing screen caps in FL8
It's possible, there are many examples, try searching. The only downside, is anything over maybe 300x300 is going to take a lot of processing time, and generate data which is several hundred KBs in order to upload. (even with compression) -David R On 8/4/06, keitai guy [EMAIL PROTECTED] wrote: hi list - I need to get bitmaps of some flash content (things the user makes client side). i guess this is possible with the new bitmap api. does anyone have tips /examples of this type of thing? thanks! /dc ___ 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: how to hide your AS 2.0 from flash leech software
I'm always suspicious when a person's first post to a mailing list is in promoting a commercial product. Maybe I'm just too paranoid, who knows. On 8/5/06, SWF Coder [EMAIL PROTECTED] wrote: You can protect your AS code from decompilers by using an obfuscator. Anyone know of any for use on a Mac? David My friend got an alpha version of SecureSWF for Mac, contact kindisoft and maybe they will send you a copy. SWF_Coder __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.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@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] Mosaic
On 7/24/06, kariminal [EMAIL PROTECTED] wrote: Hi All!.. Just wondering if anyone has a script to do a mosaic blur on an image?... - karim There are 2 ways I can think of: 1. Easy way: draw the image onto a bitmapdata, scale it smaller WITHOUT using smoothing, then scale it back up to the original size. Do multiple times, but in steps, like first scale it to 50%, then 25%, then 12.5%, etc 2. Harder way: Manually calculate the mosaic yourself (read in each n'th pixel from source image, and draw a n-by-n rectangle in the destination image). This will most likely be too slow in flash 8 for any moderate sized image. -David R ___ 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] Yahoo Maps: Detecting latitude and longitude of mouse over map
When flash calculates _width and _height, it also includes things inside the movieclip which may be invisible, or masked out. Try this simple example: On the stage, create an empty movie clip A which contains two square movieclips B and C, which are placed next to each other This code will produce the same output 4 times: trace(A._width); A.B._visible = false; trace(A._width); A.C._visible = false; trace(A._width); A._visible = false; trace(A._width); Not sure if this is related exactly to your problem, but I've had issues with _width _height before, and this is usually the cause. -David R On 7/20/06, Dave Wood [EMAIL PROTECTED] wrote: The actual dimensions of the movieClip (and also the map) are 400 X 300 pixels. Sorry, that was a typo - they are actually 500 X 400 pixels. David ___ 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] Debug Player issue
Worst case scenario, just use one of the many flash logging/tracing apps (or write your own simple one real quick), and simply do a global search replace of trace( to DebugLogger.out( (or whatever the name of their trace command is) -David On 7/12/06, Andy Makely [EMAIL PROTECTED] wrote: My Flash 8 debug player has stopped working. It no longer outputs to a logfile. I have checked and double-checked the mm.cfg file, %homepath% %homedrive% user env. variables, uninstalled and reinstalled the debug player, etc. Anybody got an idea how to troubleshoot this sort of thing? I *really* need that logfile output back. ___ 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] allownetworking?
must have just been indexed by google then, a quick search points me to livedocs, and then a search on livedocs finds this page: http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1590.html allowNetworking String Restricts browser communication. This property affects more APIs than the allowScriptAccess property. The allowNetworking property supports the following values: - all: No networking restrictions. Flash Player behaves normally. This is the default. - internal: SWF files cannot call browser navigation or browser interaction APIs (such as the ExternalInterface.call(), fscommand(), and navigateToURL() methods), but can call other networking APIs. - none: SWF files cannot call networking or SWF-to-SWF file communication APIs. In addition to the APIs restricted by the internal value, these include other methods such as URLLoader.load(), Security.loadPolicyFile(), and SharedObject.getLocal(). For more information, see *P**rogramming ActionScript 3.0*. -David R On 7/12/06, Rajat Paharia [EMAIL PROTECTED] wrote: MySpace has recently started writing this into all Flash embeds: allownetworking=internal Google searching doesn't turn up much, is there documentation on this somewhere? thanks, - rajat -- ___ 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] Fullscreen from SWF
You could always tell your user to press F11 -- (shortcut key on firefox and IE for fullscreen...even gets rid of the titlebar and start bar) -David R On 7/7/06, John Hart [EMAIL PROTECTED] wrote: Oops.. for the full effect to work on any resolution leave the field Width and Height blank - Original Message - From: 8ball Developer [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Friday, July 07, 2006 10:34 AM Subject: [Flashcoders] Fullscreen from SWF I'm trying to make the browser window containing my swf go full screen. I NEED to make this work accross browsers/platforms (IE, Safari, Firefox/PC, Mac). Does anyone have code that works and are you willing to share :). Thanks. P.S. I promise not use this on a site, I hate windows that change size too. Offline project! ___ 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] Which remoting server?
On 7/5/06, ryanm [EMAIL PROTECTED] wrote: I have a very simple need, and I'm trying to find the simplest way to satisfy it. I have essentially a single remote shared object on a comm server that is getting entirely too much traffic and I want to offload it to some other kind of server (that doesn't have connection limits). It is basically a client state object that keeps a very small amount of data about each client that is connected to the app (mainly their connection object and an id) so that data can be pushed to them. But it's expensive doing this on Comm Server. I basically just want to offload that one piece to some remoting server that is fast and has no connection limits. It needs to run on Windows, it would be nice if it could connect to my database servers, and it needs to be lightweight and fast. I don't mind paying for it (the FDS2 price tag isn't a problem), as long as it has good support. The servers I'm looking at now are FDS2 and Oregano. I get resistance to the OSS direction, but can work around it if the product is solid. My main concern about FDS is that it's way overkill for what I need to do. What server should I be looking at for this? ryanm You say remoting, but then you mention Flashcom server. Which do you need exactly? They are quite different. One maintains a persistant connection (using RTMP, or XMLSocket for the non-adobe ones), the other is simply making HTTP request calls, to a server-side service. If you need a persistant realtime connection, I can recommend moock's Unity server. While it hasn't recieved any updates in quite some time, it is pretty solid, and the unlimited connection version is quite cheap (compared to flashcom for e.g.). It requires you to write serverside code in Java, however you can make calls out to other languages if you wish. Other servers I know of, but have not tested, are ElectroServer and Oregeno. If you need remoting type calls, which solution you use greatly depends on what language you are writing your server code in. If you are using php, then you would use AMFPHP. If you are using one of the languages supported by official flash remoting, you could use that. I think there are various free packages that support flash remoting on Java, .NET, etc. -David R ___ 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] euro symbol fight
How about 'escaping' the text before you send to amfphp, and 'unescaping' the text after you recieve it back? escaping = turning all non-standard characters into things like %12%34%56 unescaping = reverse of above process -David R On 7/4/06, Gabriel [EMAIL PROTECTED] wrote: thanks Serge yes, it has the symbol. And is not the embed problem... thanks GaB Serge Jespers wrote: Does that font have the euro symbol? I think what you're describing could mean it doesn't have the font symbol... Serge thanks Bernard, but this is not the problem. I have a table in a database, where I write this text this will cost you 50€. when I retrieve this info from AMFPHP I receive the whole text except for € which cames as a square. thanks, GaB ___ 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 -- Gabriel Belvedere www.antares.es http://www.antares.es ___ 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] Flex 2 and Flash 9 Press Releases
FYI, the (free) Flex SDK works fine for me on linux (since it's java based). Also the standalone player runs under Wine (even if a bit slow), so I can test simple apps. -David R On 6/29/06, Chris Allen [EMAIL PROTECTED] wrote: Any official word on whether a Mac and/or Linux version of Flex Builder 2 is going to be released? I would rather not have to use Windows to develop Flex applications. It is an Eclipse plugin after all, so this doesn't seem too far fetched of an idea to me. Thanks in advance for any insight. -Chris ___ 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] Flex 2 and Flash 9 Press Releases
Unofficially they say a beta is coming 'real soon', and 'before the end of the year' gnash isn't even to flash 7 yet. so the official player is still ahead. i predict flash 9 for linux will be out before gnash 8 is solid. it's a nice idea, and perhaps can be something installed on distros by default to give some flash support, but it will never be able to catch up with the official player (since they are always making new versions). -David R On 6/29/06, Karthik [EMAIL PROTECTED] wrote: FP9 for Linux out only in 2007 [ http://weblogs.macromedia.com/emmy/archives/2006/05/yes_virginia_th.cfm ].. That. is. annoying... -K P.S Go Gnash! ___ 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 Flash 9 - Speed Freak
Very nice. I can't wait to see some of the cool demos people will make now that AS3 is officially out here's my performance stats: CPU: AMD Sempron 1.81GHz Firefox: 30fps 55% CPU usage IE: 49fps 100% CPU usage -David R On 6/29/06, neo binedell [EMAIL PROTECTED] wrote: U can have a looky here: http://www.neoji.co.za/neo/taotest.html Framerate halves in the FireFox, only loses about 15fps in IE ;d -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of neo binedell Sent: 29 June 2006 10:23 PM To: 'Flashcoders mailing list' Subject: [Flashcoders] AS3 Flash 9 - Speed Freak I spent some time porting my flash AS2 3D engine over to AS3. Did some tests to see how they compare and: AS2: 1 cube 120 fps (max framerate) 16 cubes 34 fps AS3: 1 cube 120 fps (max framerate) 16 cubes 120 fps (max framerate) 25 cubes 120 fps (max framerate) 100 cubes 64 fps 400 cubes 24 fps WHOAH!! And the engine is not even optimized yet! Can't wait to push the envelope with a ton of other things. AS3/Player9 lives up to its promises for speed so far I'd say ;p ~neo ___ 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] creating SWF or VIDEO on the fly ?
Using ONLY AS2? No, I'm pretty sure it cannot be done. However, it can be done using some free server-side tools. Things like swfmill, swfc, jpg2swf, etc etc. -David R On 6/26/06, jcanistrum [EMAIL PROTECTED] wrote: hi All, I´d like to discuss some ideas about if is possible to produce an app using only AS2 that would get an JPG file, record some sound and them export them as SWF ou FLV, to import further im some other app. would it be possible ? -- 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
Re: [Flashcoders] AS3, Flash 9?
I believe the official word is Sometime in the first half of 2007 -David R On 6/27/06, Ville Walveranta [EMAIL PROTECTED] wrote: Does anyone here know the [tentative] release schedule of Flash 9 Pro (i.e . the IDE/Studio, not just the plugin) that would take advantage of AS3? Flash Team has been collecting feedback on their wishlist at the below URL.. http://weblogs.macromedia.com/flashteam/archives/2005/09/its_that_time_a.cfm Ville ___ 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] FileReference and actionscript 2.0
one way of doing it: class MyClass { var file:FileReference; function doit() { file = new FileReference(); file.addListener(this); file.browse(); } function onCancel() { trace(user canceled); } function onBlah() } hope this helps, -David R On 6/25/06, human ghaderyan [EMAIL PROTECTED] wrote: Hi dear Hank I think after a successfull upload and inserting in db, I can set the record ID (or any thing else) in User Session in server and after successful upload( returning true to flash ) call a simple remoting method that invoke id from session and return it to flash. After all I think I don't undrestand some of key features of AS 2.0 :: listener.onCancel = function(file:FileReference):Void { trace(onCancel); } listener.onOpen = function(file:FileReference):Void { trace(onOpen: + file.name); } listener.onProgress = function(file:FileReference, bytesLoaded:Number, bytesTotal:Number):Void { trace(onProgress with bytesLoaded: + bytesLoaded + bytesTotal: + bytesTotal); } I don't know where can I put event methods like this in my AS 2.0 class. What did I misundrestand?? All the samples are in AS1 and I don't know what to do for my events :( - Original Message From: hank williams [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Sunday, June 25, 2006 5:20:43 PM Subject: Re: [Flashcoders] FileReference and actionscript 2.0 I am curious what those tricks are. What I do is to ask the server for an upload code number before I upload This upload code is associated with the given user and whatever the user is trying to do. This is application specific. This creates a record in the database, so that when the file is uploaded the server knows what it is. Then I send the parameter as part of the upload URL. Additionally, I make the upload codes time out. So if a code isnt used within a few minutes it is no longer usable. Regards Hank On 6/25/06, human ghaderyan [EMAIL PROTECTED] wrote: Thanx david. I think I can do some tricks to return value after completion of download. - Original Message From: David Rorex [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Sunday, June 25, 2006 9:21:58 AM Subject: Re: [Flashcoders] FileReference and actionscript 2.0 On 6/23/06, human ghaderyan [EMAIL PROTECTED] wrote: Hi list I try to use FileReference class in a actionscript 2.0 project. the browse and upload methods work fine but it seems that this class designed for AS 1.0 (???). I can't find any AS 2.0 sample and don't know what to do for catching events . I think this class has bad architecture. for example I need to put the uploaded file in database and return its ID to client. The class works fine in AS2, you catch the events pretty much the exact same was as other built in classes (like MovieClip, XML, etc) FileReference do the transfer by a POST but it seems that there is no way to catch a response from server for this POST Action. Correct, as far as I know, they did not give a way to recieve any data returned from the server. All you can know is that the action completed. any body has some experience to do the uplad with flash remoting? You can't upload files from the user's local drive using flash remoting. -David R ___ 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] What AS edting features do you want in BBEdit?
I use PrimalScript on windows, and the code completion (aka Intellisense) is very nice. It works on all the built in classes, as well as all my own classes. It's not perfect (occasionally it only finds function names, but not paramaters), but it speeds up my coding a lot -- i don't have to look into the reference to find the exact name of the method I want. -David R On 6/26/06, Steven Loe [EMAIL PROTECTED] wrote: Hello all, After pleading with BareBones software a couple of times to offer native support for ActionScript, I finally seem to have their attention... They've asked me what specific AS editing features (besides code coloring) would be most valuable. I'm just one guy, and my requests would be integration with MTASC and Command-Enter to test movie. What features do the rest of the Mac ActionScripters want to see in BBEdit? I'll compile respones into a feature request list and send it it Bare Bones. thanks very much! -Steven __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.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@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] [Ann] The world's largest Flex Application
Heh, I like this text from their demo page: Experience AFR Access - The serious investor's toolkit with this short video, which takes you through its many features and uses. *Please amend copy as necessary*. -David R On 6/22/06, Arul Prasad M L [EMAIL PROTECTED] wrote: thanks Chris. ~Arul Prasad On 6/22/06, Chris Velevitch [EMAIL PROTECTED] wrote: FlexDaddy ( http://www.flexdaddy.info/2006/06/19/afr-access-one-of-the-largest-public-flex-apps-to-date/ ) ttalks about it. Unfortunately, no recording will be made. On 6/21/06, Arul Prasad M L [EMAIL PROTECTED] wrote: sorry, if am being ignorant, but what is this world's largest Flex ( 1.5 ) application that you are talking about? Is there some place I can see this? Am not in sydney, so if you dont reply, I'll probably never know about it at all!! Thanks! Arul Prasad. On 6/21/06, Chris Velevitch [EMAIL PROTECTED] wrote: Robin Hilliard of Rocketboots (www.rocketboots.com.au) will talk about the lessons learnt from the world's largest Flex (1.5) application. Mon 3rd July at the Sydney Flash Platform Developers Group (www.flashdev.org.au) at 6:30 pm for 7pm start at the NSW Sports Club (www.flashdev.org.au/venue). Please RSVP (www/flashdev.org.au/rsvp) for catering purposes. Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ___ 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 -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ___ 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] webservice - https and flash
What problem are you having with connections over SSL? I've used it many times, (for loadvars, for loadmovie, etc), and never had to do anything extra, it just works. You might have some trouble, if you load some files from http:// and some files from https://, there are a bunch of security restrictions built into the flash player. Easiest way is to just load everything from the same place (including the initial swf file). If you can't do that for whatever reason, read the help docs on what exactly the security restrictions are, and how to work with them. -David R On 6/22/06, Michael Stuhr [EMAIL PROTECTED] wrote: Weyert de Boer schrieb: Michael Stuhr wrote: i don't know much about https:// but does anyone know a way to connect flash to this ? I think this hsould just work fine, because the browser does all the heavy lifting, downloading wise. ___ 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 maybe, but the ide does not. any ideas how to circumvent that ? micha ___ 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] Good component sets? (was: Re: XP Components gone bad)
There seems to be a lack of good component sets these days. Ghostwire: Maybe the best, but done in old-style AS1 mCom: Pretty good, but a couple showstopper bugs, little to no support from developer. poor documentation. XP: see previous message MM v2: bloated, bugs Flex 2: requires flash 9 What am I missing here? Are there any other full component sets I don't know about? -David R On 6/21/06, Ville Walveranta [EMAIL PROTECTED] wrote: I was earlier asking about XP Components. Even though they *seem* very cool, the problem is that programmatic use of them is still a mystery to me. Yes, they can be used with xp.system.Application.Run() as suggested by the documentation. But if you don't want to build the entire app based on XP Components, you may be out of luck (if there is a way to instantiate an XP Component in a program that doesn't run with xp.system.Application.Run() I haven't been able to figure it out - I can get an instance on the stage, but then the program locks up crashing the whole Studio 8). And what's worse, there is absolutely no communication from the manufacturer any longer. I've emailed them (him?) several times, and have received no response (over last couple of weeks). Overall, their site seems to have gone dormant, the last news item was posted in July of last year. Even if I had received a short response, no, it can't be done, it would've saved tons of time by me not even attempting to figure it out :-/. I was left with the component set that I could not use for the project I purchased it for (they're non-refundable :P). Ville ___ 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] FileReference and Getting File Path
You'd get a preview without uploading, by accessing the file directly from the user's harddrive. However, this is not supported for security reasons. Basically, the answer is NO, with standard flash, you cannot read files from the user's harddrive without uploading them to the server first and reading them from there. -David R On 6/15/06, Mike Boutin [EMAIL PROTECTED] wrote: Oops :) Maybe im just dont undestand the problem because how can you show a preview of the users image without first uploading it to your server? Boots Geoffrey Williams wrote: That's a Macromedia Central only feature. I doubt they're using Central, but maybe ;) If you're working in a web page you can use a hidden file field and communicate with it via ExternalInterface / getURL and javascript. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Boutin Sent: Thursday, June 15, 2006 1:56 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] FileReference and Getting File Path Not sure if this will help, but maybe you can copy the image to the users cache to display it. // make a working copy of a file on the user's disk var fileRef = new FileReference(); if (fileRef.browse([Text Files, *.txt]) { fileRef.copyIntoCache(backup-data.txt); var newFile = new FileReference(); newFile.open(backup-data.txt); // operate on new file // ... } [EMAIL PROTECTED] wrote: Thanks for the reply. I can get the name, however it doesn't provide the path (i.e. c:\images\image001.jpg) Mike Boutin mikeb at juicystudios.com Thu Jun 15 13:03:32 EDT 2006 Is it possible for you to just grab the name after it is selected from the FileReference object? var listener:Object = new Object(); listener.onSelect = function(file:FileReference):Void { trace(file.name); }; Boots ___ 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] externalInterface Issue
Post with some info about some of the problems/bugs in ExternalInterface: http://codinginparadise.org/weblog/2006/02/how-to-speed-up-flash-8s.html In general, whoever coded ExternalInterface should be fired. Great idea, terrible implementation. Have they ever heard of unit tests and boundary conditions? -David R On 6/13/06, Lee McColl-Sylvester [EMAIL PROTECTED] wrote: Not really, just create an ArrayToString parser function :) Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 13 June 2006 15:11 To: Flashcoders mailing list Subject: RE: [Flashcoders] externalInterface Issue Yeah sending it in chunks is an option but that requires more from the backend. A friend of mine just explained that it probably had to do with Firefox being able to directly communicate with the plugin which would make it lightningfast...and IE doesnt do this which makes it slower. // joakim As an actual helpful reply, you could always try cutting the string down and then send the string in separate vars. Actually, have you tried sending the thing cut up into an Array? You could always do a join() on the other side. Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 13 June 2006 14:50 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] externalInterface Issue Are there any known limitations when using the ExternalInterface to send large amounts of data. I set up this example and I'm not liking the result. 1. Code in flash import flash.external.ExternalInterface; ExternalInterface.call(receiveData,massiveString); 2. Code on htmlpage function receiveData(args) { alert(result: + args.colorData.length); return args.colorData.length; } Firefox and Internet Explorer obviously treats this differently. While Firefox communicates with flash almost instantly and sends the string with minimal delay Internet Explorer times out when the string gets to big. So my question is How come the two browsers handles this differently and how could i work around it so that i can send that massive string. Thanks, joakim ___ 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] Loading MP3 fr om another domain…Is it possible?
Possible options: 1. Use a crossdomain.xml file on the mp3 server downside: You may not have access to that server upside: If you do have access, it's as simple as uploading a .xml file to the server 2. Use a php proxy on your own server downside: More bandwidth usage on your server upside: Works even if you dont have access to the mp3 server -David R On 6/8/06, Marlon Harrison [EMAIL PROTECTED] wrote: I'm putting together a small mp3 player and the mp3's that I need to load are on another domain (Akamai) When I test the player, the sound plays after a few sec, but the .onLoad function does not fire. Is this a security thing? Any suggestions? ___ 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] The Delegate class ...
The whole point of a Delegate type class is to eliminate having to type those 4 lines of code every time you want to handle an event from somwhere else without messing up the scope. -David R On 6/14/06, Aaron Buchanan [EMAIL PROTECTED] wrote: What is the difference between that and this: class SomeClass { private var a:Number = 3; function SomeClass(mc:MovieClip){ var thisObj = this; // Set a reference to this mc.onRelease = function(){ thisObj.onRelease(); } } function onRelease(){ trace(this.a: +this.a); } } On 6/14/06 1:39 PM, js [EMAIL PROTECTED] wrote: While not as elegant, you can get around this issue delegate-free with the following: class SomeClass { private var a:Number = 3; function SomeClass(mc:MovieClip){ var thisObj = this; // Set a reference to this mc.onRelease = function(){ thisObj.onRelease.call(thisObj); } } function onRelease(){ trace(this.a: +this.a); } } -- Joseph James Marsden wrote: The delegate class is a godsend for so many things... // inside a class: mc.onEnterFrame = mx.utils.Delegate.create(this, main); function main() { // the mc is calling my method, and I can access all my properties as if I was calling it myself } Stephen Ford wrote: Hello All, Can anyone confirm that the Delegate class is only helpful when using components ? Or should it also be used for events outside the component framework ? No doubt it depends on what your trying to achieve, but just generally speaking, what do you think. Thanks, Stephen. ___ 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] saving bmp from flash
On 5/14/06, Jiri Heitlager [EMAIL PROTECTED] wrote: I am looking for a way to capture webcam images from Flash and save them as .bmp's. Using PHP is not a possibilty because it cannot save images as a .bmp. Is it in theory possible to use screenweaver. So in Flash I would run trough all the pixels getting there value and store these values in an Array. Then use screenweaver to save the array to a file. But how do I build an .bmp then. Would this be possible to save a bmp from flash or does someone knows a solution using php. Why do you need to use bmp? I would say just use png...it's lossless, like bmp, but it is also compressed, giving smaller file sizes, and it also has the advantage of being able to load into Flash 8+ -David R ___ 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] Fwd: sprouts data structure
Do you mean this site? http://www.math.utah.edu/~alfeld/Sprouts/ It appears to not have any AI, however it does appear to check the rules, so it may be a good starting point. This is an interesting topic to me, please be sure to keep us updated if you have any success! -David R On 5/13/06, Weldon MacDonald [EMAIL PROTECTED] wrote: Good news, I just found some code on the U of Utah site. I';ts in java, but it should allow me work out my own implimentation in action script -- Forwarded message -- From: Weldon MacDonald [EMAIL PROTECTED] Date: May 11, 2006 8:48 AM Subject: sprouts data structure To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com I have a request for a game called sprouts. The game starts with a few randomly distributed dots. There is one move and 2 restrictions. Move: draw a line for a dot to itself (a loop) or to another dot. Any line drawn has a new dot on it. Restriction 1: no more than 3 lines from any dot. Restriction 2: no lines can cross. Simple game, but the data structure to keep track of the game and in particular to handle restriction 2 is a bear. How do you tell when a dot has been encircled by a line? The game is, of course based on graph theory, and you can represent a graph in several ways, but how to determine that it remains planar? I haen't begun to think about the visual part of this, if I don't have a reasonable data structure I can't teach a computer to play the game. Any ideas? Hints? Wildly improbable ideas? -- Weldon MacDonald -- Weldon MacDonald ___ 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 Parsing
On 5/4/06, Mars Spider - Upgrade Multimediale Srl [EMAIL PROTECTED] wrote: Jason Lutes wrote: I'm experiencing some recursion limit problem with a large XML... How are you currently reading in the XML -- what kind of code structures, etc? What specifically is the recursion limit problem you're having? Are you getting an error message of some kind? Do you think it's a question of the nesting depth for nodes in your XML document, or could it be the sheer quantity of nodes causing the problem? Reason for the questions: I could go into a lengthy explanation about what I've done in the way of XML parsing, but I think it best to first find out if my suggestions can actually apply. i'm using a recursive function to parse the XML and i'm getting an error about 256 limit of recursion parsin a 1600 nodes XML with some childNodes... The problem is function recursion for sure... Splitting XML in two and than 'concat' the resulting parsed Array works fine, but that's not the solution... Are you saying the xml is 1600 levels deep?? that's a bit odd to me. Otherwise, it might be your code which is the problem. Try using a for loop instead of recursion for example. -David R ___ 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] Build Flash8 installer
Or you could use one of the swf2exe applications that are already licensed to distribute the flash player (swf studio, mprojector, zinc, etc... but make sure to look into their license as well) -David R On 5/3/06, Muzak [EMAIL PROTECTED] wrote: You'll need to obtain a license first http://www.adobe.com/licensing/ http://www.adobe.com/licensing/distribution/ regards, Muzak - Original Message - From: Dimitrios Bendilas [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Wednesday, May 03, 2006 8:28 PM Subject: [FlashCoders] Build Flash8 installer Hello all, Hope this is not very off-topic. How can I create an installer of Flash 8 Player for Internet Explorer? I need to distribute the Player along with an application I have built and I could use some guidelines/tutorial etc. Thank you, Dimitrios Bendilas ___ 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] window.onClose - Flash
1. Go here: http://www.blogger.com/comment.g?blogID=20017639postID=114564375751056109 2. Type something into the comment box 3. Try to close the window I get a true modal dialog box (not the hack one) in both Firefox and IE on windows. Gmail does a similar thing when you try to leave a page without sending a typed email. -David R On 5/1/06, Serge [EMAIL PROTECTED] wrote: As far as I know only IE has a modal dialog. What about other browsers? There is some workaround, but it will work not in all cases http://www.eggheadcafe.com/articles/javascript_modal_dialog.asp Does anybody know how to make modal dialog in Firefox? regards, Serge - Original Message - From: g.wygonik [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Sunday, April 30, 2006 8:40 PM Subject: [Bulk] Re: [Flashcoders] window.onClose - Flash If you dig in the list archives (if they are still around), i wrote a bit about how i used onBeforeUnload to trigger Flash and i know other people chimed in. In IE-only situations, i found it best to catch the onBeforeUnload event, tell Flash via setVariable, open a modal dialog box (so the main browser won't close) then either have the modal box close itself after a few seconds, or have a localConnection or sharedObject setup to let a Flash movie in the modal dialog know the main Flash was done and it could close itself, which would in turn close the first, main window. whew! :-) There are ways to have a modal box in other browsers, but i don't know the details off the top of my head. fwiw g. On 4/25/06, erixtekila [EMAIL PROTECTED] wrote: Le 25 avr. 06, à 23:31, David Rorex a écrit : window.onbeforeunload Never knew that one. I'l check for its availability across platforms. 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] LocalConnection from SWF - Visual Basic?
LocalConnection is asynchronous. I don't know how mProjector got synchronous code in flash 7, it had to be some very clever hack. However, synchronous calls are supported natively in flash 8 (via ExternalInterface, which communicates with the host using a documented XML format I believe). SharedObject writes to a file, but I don't know if the format is documented anywhere. I'm pretty sure LocalConnection does something in memory, and doesn't go through files. But I don't know all the details on how these are implemented internally. -David R On 4/26/06, JesterXL [EMAIL PROTECTED] wrote: Hrm... I think SharedObject LocalConnection both write to a file that you could check, but not really sure. I think that's how mProjector managed to get syncronous code, not sure. Darron might have something here: http://www.darronschall.com/weblog/archives/000151.cfm I coulda swore someone else did something similiar, but the link escapes me - Original Message - From: Rifled Cloaca [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, April 26, 2006 6:50 PM Subject: Re: [Flashcoders] LocalConnection from SWF - Visual Basic? Yeah, that was plan B. I was curious, though, if it were possible without embedding a proxy SWF. Thanks! On 4/26/06, JesterXL [EMAIL PROTECTED] wrote: Have one SWF embedded in the VB app that exposes the LocalConnection. Hey can talk to VB via ExternalInterface. Every other SWF can talk to the VB app via that LocalConnection proxy SWF embedded in VB. - Original Message - From: Rifled Cloaca [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, April 26, 2006 6:21 PM Subject: [Flashcoders] LocalConnection from SWF - Visual Basic? All, Does anyone know if it's possible to create a LocalConnection between a SWF file and a Visual Basic App? If so, are there any open source examples out there? 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] window.onClose - Flash
you could also try function myfunc() { // tell flash movie goodbye } window.onbeforeunload = myfunc; I've had pretty good success with it, in IE and Firefox on windows at least. On 4/25/06, erixtekila [EMAIL PROTECTED] wrote: But to my knowledge a sharedobject is always flushed by flash at the moment you close the swf. So you could make a fix using that. This is a pretty nice info. Do you know if it's a special sharedObject or one that you were using first ? Not sure if this is any help to you. Hope it will…thanks. --- erixtekila http://blog.v-i-a.net/ ___ 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] RootkitRevealer flagging shared object... :(
On 4/24/06, dave matthews [EMAIL PROTECTED] wrote: hi all, RootkitRevealer flagged this file as a problem: c:\Documents and Settings\myUserName\Application Data\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys\#name.com. Was able to delete all other files in this folder, this one resists deletion and renaming. Tried deleting it using safe mode too... no luck. Please notice the 'period' at the end of the file name, seems unique and no other files in the folder have one at the end of com. Googled the real company name and they seem to be a reputable Flash component seller, so i changed it to #name.com. for this post. How does RootkitRevealer work? I think it scans your entire hard drive, once using standard windows calls, and once using low level disk access. It then compares the two scans, to look for files that are different between the two, which shows possibly that a rootkit is trying to hide something. However, this could produce false positives (ie, flag files that are innocent), if the file changes inbetween the two scans. For example, say you have a chat program, which logs to disk all incoming messages. If someone sends you a message, after the first scan, but before the second, then RootkitRevealer will detect a difference in the two scans, and flag your chat file as something wrong with it. However, the inability to delete/rename it seems odd. Try downloading Process Explorer http://www.sysinternals.com/Utilities/ProcessExplorer.htmland searching to see what process is accessing that file. That might give some further clues. -David R ___ 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] wikipedia webservices
a quick google found this: http://www.ontok.com/wiki/index.php/Wikipedia On 4/24/06, Guillermo Torres Troconis [EMAIL PROTECTED] wrote: Does anyone know if there's a WSDL for Wikipedia, I want to be able to show search results from wikipedia in my flash app. But I can't find the available web service for 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] Dynamic sound generation in 8.5?
Well... I wrote code to dynamically generate a .swf containing a simple sound, using a ByteArray. However, there's a problem: The flash player 8.5 b246 actually CRASHES when I run my simple program. I submitted a bug report, hopefully someone reads it and fixes it. -David R On 4/20/06, Johannes Nel [EMAIL PROTECTED] wrote: someone told me that there is a limitation with the byte array and sound object whereby you cannot reconstruct a sound object from a byte array. this is heresay, but from a knowledgable fellow. On 4/20/06, David Rorex [EMAIL PROTECTED] wrote: Has any progress been made in the area of dynamic sound and/or music generation? A couple of months ago there was a couple of big threads, one on possible MIDI support in the flash player (which seemed to be largely ignored by Macromedia), another about the possiblity of dynamicaly creating a ByteArray which contains a simple SWF with uncompressed sound, and then using Loader.loadBytes() to load it. http://livedocs.macromedia.com/labs/1/flex/langref/flash/display/Loader.html#loadBytes() Anyway, just wondering if anyone has experimented with these, or there has been any news about this topic (I've looked, haven't seen anything). -David R ___ 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@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] Server-side animated GIF to SWF?
This does pretty much what you want: http://www.quasimondo.com/archives/000407.php However, it converts the gif by frames and not using timing I believe. -David R On 4/20/06, Rajat Paharia [EMAIL PROTECTED] wrote: My Flash 7 content running at various framerates needs to load in Animated GIFs on the fly and show them with the proper timing. The best way I can think of to do this is to have a server proxy that actually requests the GIF and converts it into a SWF on the fly and returns it. I'd like to write this in PHP if possible, and I'd like the timing in the SWF to be interval-based instead of frame-based, so that the content will show at the proper speed regardless of the framerate of the hosting movie. Has anyone done something like this before? And pointers would be much appreciated. best, - rajat -- Rajat Paharia [EMAIL PROTECTED] http://www.bunchball.com http://www.rootburn.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] FP 8.5 MovieClipLoader bug?
On 4/20/06, eric dolecki [EMAIL PROTECTED] wrote: I am working on an application where I am loading images into a clip using a MovieClipLoader. The SWF is embedded in Python. After about 100 images are loaded into the same clip (over time - about 1 every 1-2 seconds), the images fail to load. Sometimes it happens after about the 40th image, but its more around the 100+ mark. The images being loaded are being sized down to fit - but the original images being loaded aren't that large (k). All image paths are correct too. I am making sure that I unload the contents of that clip before loading a new one - just to try to be as tidy as I can. The application doesn't seem to balloon in terms of memory usage - it hovers around the same amount throughout. Is this a known bug of FP 8.5? I can't find any reason why all of the sudden the images fail to load into the clip. I don't have cacheAsBitmap set to true on the clip either. Its a strange thing I am trying to track down and fix, but I now think the problem is actually player-related and not code-related. Well, 8.5 still seems a bit buggy for me. I just posted another thread, where simply loading a empty flash 8 swf with one sound into a very simple as3 swf, causes the 8.5 player to crash. Hopefully they release another beta version with more bugs fixed soon. -David R ___ 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 sound generation in 8.5!
Ok, actually I made some changes, and got the code working now. It's a pretty 'brute force' method of doing it, and the sound is not real great either, but you can generate different tones now. Read about it here: http://blog.davr.org/2006/04/21/dynamic-sound-in-85/ I hope someone with more skills can take this and make it more generic / useful! -David R On 4/21/06, Johannes Nel [EMAIL PROTECTED] wrote: can you post some code to recreate this? On 4/21/06, David Rorex [EMAIL PROTECTED] wrote: Well... I wrote code to dynamically generate a .swf containing a simple sound, using a ByteArray. However, there's a problem: The flash player 8.5 b246 actually CRASHES when I run my simple program. I submitted a bug report, hopefully someone reads it and fixes it. -David R On 4/20/06, Johannes Nel [EMAIL PROTECTED] wrote: someone told me that there is a limitation with the byte array and sound object whereby you cannot reconstruct a sound object from a byte array. this is heresay, but from a knowledgable fellow. On 4/20/06, David Rorex [EMAIL PROTECTED] wrote: Has any progress been made in the area of dynamic sound and/or music generation? A couple of months ago there was a couple of big threads, one on possible MIDI support in the flash player (which seemed to be largely ignored by Macromedia), another about the possiblity of dynamicaly creating a ByteArray which contains a simple SWF with uncompressed sound, and then using Loader.loadBytes() to load it. http://livedocs.macromedia.com/labs/1/flex/langref/flash/display/Loader.html#loadBytes() Anyway, just wondering if anyone has experimented with these, or there has been any news about this topic (I've looked, haven't seen anything). -David R ___ 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@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@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] Forcing XML connection closed from SWF
On 4/21/06, Nathanial Thelen [EMAIL PROTECTED] wrote: I was wondering if anyone out there know how to force a XML connection closed once the onLoad has happened? The way it works currently is that if the webserver has keep-alives on, the connection to the server stays open. I am pretty sure that the browser controls this, but would love to hear any ideas on the topic. Possibly you could use a php file (or whatever server scripting language you use ) on the server, which does only 2 simple things: 1. Send a HTTP header that indicates not to use keep-alive. Keep-alive: no or something? look up the exact command. This will tell the browser not to use that feature. 2. Print out the xml file, which will be received by flash. -David R ___ 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] Testing ExternalInterface on Windows for me.
Instead of creating a reference to your flash movie and storing it, I get it every time. JS Code: function getMovie(movieName) { if (navigator.appName.indexOf(Microsoft) != -1) { return window[movieName] } else { return document[movieName] } } Example usage in JS: getMovie('myMovie').someFunctionInFlash(); -David R On 4/18/06, Aaron Smith [EMAIL PROTECTED] wrote: Mark, Ryan, Thanks for the input. I looked at that other guys ExternalInterface testing. I switched all of my code to follow what he is doing. I am still getting IE errors. I can't figure out what is going on. IE doesn't like calling methods on the flash object for some reason. When it calls ( flashMovieScroller.gotoStepFromJS(num) ) it errors out. Why would it be doing that for my methods and not Geoff's methods. Weird!. take a look again at this. Look at the update JS and HTML compared to that other guys. See if there's anything you notice that might be wrong. http://www.smithaaronlee.net/jstest/ImgScrollerTEST333.html The only thing I haven't tried yet was rearranging the flash objects on the page to see if that helps. I guess i'll give that a try thanks for taking the time. -Smith On Apr 18, 2006, at 12:46 PM, Mark Llobrera wrote: Ryan: When testing locally with Windows/IE, you can set allowScriptAccess to 'always' - it'll save you having to upload to a server. Aaron: I was stalled with ExternalInterface myself yesterday; I had the hardest time getting it to work on the Windows/IE combo. The included samples from Macromedia didn't work, and several others on the web didn't work either. Other browsers (Firefox, Safari/Firefox on the Mac) worked fine. Since I was using flashobject to embed the swf, I wandered over to Geoff Stearns's blog and found this example: http://blog.deconcept.com/code/externalinterface.html. I eventually ended up taking that html (since it worked on Win/IE) and using it as the basis for my html page, just so I could figure out what was wrong. I found two things different between my page that didn't work and the deconcept example: If you look at the code on that page the reference to the flash movie isn't initialized until the entire page is loaded. That would be the first place I would look. The second thing I learned yesterday (and this is where it starts to devolve into voodoo) is that the order of items on the page matters greatly (but seemingly only on Win/IE). I was calling a flash movie from a javascript function triggered by a form button (http://www.dirtystylus.com/sandbox/feedroom/filebrowser/ file_browser.html - an attempt to feed an flv on a local filesystem to a video object). When the form was placed before embedding the swf, it didn't work on Win/IE. As soon as I moved the form after the embedded swf in the html code, it worked. Extremely weird. -Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ryan Potter Sent: Tuesday, April 18, 2006 3:19 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Testing ExternalInterface on Windows for me. I get the same as you. I looked at the external interface code that I have and the only difference I can see is I have swLiveConnect set to true but I don't think that is it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Smith Sent: Tuesday, April 18, 2006 12:46 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Testing ExternalInterface on Windows for me. Yes I tried it out on yours and my server. works just fine. Now have a look at this. on Firefox and IE: ( http://www.smithaaronlee.net/ jstest/ImgScrollerTEST.html ) It works in firefox like it should. But in IE it doesn't work completely. I'm having troubles figuring out what is wrong in IE, IE throws errors when you click on a step button. Just viewsource to see the JS. this is what it is supposed to do: when you click a 'step' button it reloads different thumbnails in the scroller piece. when you click on a thumbnail it communicates through js to the other flash piece to load a larger img. On Apr 18, 2006, at 11:29 AM, Ryan Potter wrote: I tested it and it works. It is the testing locally issue. Here is your code on a server: http://www.thoughtwillrise.com/flash/exttest/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Smith Sent: Tuesday, April 18, 2006 12:22 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Testing ExternalInterface on Windows for me. ok, yeah I wonder if thats the issue (local). I was just testing it locally. I'll try it on a server. On Apr 18, 2006, at 11:17 AM, Ryan Potter wrote: Did you upload it to a server
[Flashcoders] Dynamic sound generation in 8.5?
Has any progress been made in the area of dynamic sound and/or music generation? A couple of months ago there was a couple of big threads, one on possible MIDI support in the flash player (which seemed to be largely ignored by Macromedia), another about the possiblity of dynamicaly creating a ByteArray which contains a simple SWF with uncompressed sound, and then using Loader.loadBytes() to load it. http://livedocs.macromedia.com/labs/1/flex/langref/flash/display/Loader.html#loadBytes() Anyway, just wondering if anyone has experimented with these, or there has been any news about this topic (I've looked, haven't seen anything). -David R ___ 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] loading external swf, dynamically using it's library...
On 4/19/06, grimmwerks [EMAIL PROTECTED] wrote: I'm curious... Say I've got main.swf which loads in sub.swf; sub.swf has within it's library, a 'prefMC' which is set to be ready with the class of prefMC on the first frame. Can I, within main.swf, after loading in sub.swf, dynamically generate another instance of prefMC within main.swf? Sort of...but you can only attach it to sub.swf. /// code in main.swf holderMC.loadMovie(sub.swf); ... later, after loading finished ... holderMC.attachMovie('prefMC', 'myPrefMC', 100); holderMC.attachMovie('prefMC', 'myPrefMC2', 200); holderMC.attachMovie('prefMC', 'myPrefMC3', 300); -David R ___ 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] offline SWF generation from XML
While not XML, here are some more open-source commandline tools which can generate swfs from plain text definition files: http://ming.sourceforge.net/ - AS1 and gfx http://www.swftools.org/swfc/swfc.html - AS1 and gfx http://mtasc.org/ - AS2 only -David R On 4/18/06, elibol [EMAIL PROTECTED] wrote: It seems like what Jesse suggested suits your need as best as atleast I know of. On 4/18/06, August Gresens [EMAIL PROTECTED] wrote: I'd like to actually write out the file and then open it later using loadMovie - or include it another file using FlashAnt (which I believe can be used to nest clips inside each other?) For example, if the XML describes the contents of a text field with markup, I'd like to generate a SWF with a text field in it, that has the markup offline using the tool rather rather than doing this on the fly at runtime. Thanks, A On 4/18/06, elibol [EMAIL PROTECTED] wrote: . On 4/18/06, JesterXL [EMAIL PROTECTED] wrote: Check out SWFMill: http://www.osflash.org/swfmill Might do what you want. - Original Message - From: August Gresens [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, April 18, 2006 1:00 PM Subject: [Flashcoders] offline SWF generation from XML Quick question - are there any tools that can take an XML document, parse it and generate a swf file offline? We're looking for a way to avoid doing this parsing during runtime. Do JSFL, ANT or other tools have this capabiltiy? Thanks, August -- - August Gresens Technical Director Black Hammer Productions, NYC [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 ___ 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 -- - August Gresens Technical Director Black Hammer Productions, NYC [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 ___ 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] good OOP way to re-assign class to clip
In my opinion, there is no good OOP way of changing the class of an object (be it movieclip or otherwsie). You might want to see if you can handle it in a different way, normally you should never change the class of an object. Why exactly do you want to change the class? -David R On 4/17/06, GregoryN [EMAIL PROTECTED] wrote: Alain, I think you've misunderstood me. I already have a movie clip on the stage, which was placed by attachMovie(), and before it was an instance in the library, assotiated with MyClass1 . Then, after some things happen (e.g. user moved this clip), I wand to assign ANOTHER class to the mentioned clip, so this very clip to become an instance of MyClass2. That's why I need to RE-define the class for this clip. -- Best regards, GregoryN http://GOusable.com Flash components development. Usability services. -- Alain Rousseau wrote: You should look into this article in the FlashCoders Wiki http://www.osflash.org/flashcoders/as2#creating_a_class_instance_based_on_mo vieclip_without_a_symbol_in_the_library This is if you want to create dynamically a movie clip and then associate a class to it. If you allready have a moviclip that you want to use, you should look into Object.registerClass(³myClipID², MyClass); ___ 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] converting/printing swf to eps
Ok, let me get this straight: You don't want to convert a .swf file into a .eps file. You want to export data generated from within your .swf file into a .eps file? If it is just vector images you want to export, than I would say go with SVG, it's XML based, and most vector image tools will read in SVG. There are various free tools which will let you convert SVG into a raster image if you need. --- If you want to do PDF, search for PHP or ASP (depending on your server scripting language) PDF libraries. There are several out there, that will let you do something like: $pdf = new PDF(); // create a new PDF $pdf-drawLine(x1,y1,x2,y2); // draw a line on the PDF...the data is passed in from your swf $pdf-writeFile(output.pdf); // save out a .pdf file. -David R On 4/3/06, Gabriel [EMAIL PROTECTED] wrote: What I need is to import the drawing, that's why I choose eps (but the only real need is that it must be vectorial), Not really to export the image created by the user, but recreate it on the server side, based on a few parameters. I can live without the drawing part. PDF would be a possibility, but can I export from swf 2 pdf?? about FOP, It could be useful but how I load the eps/whatever icon and apply some changes (color, scale or so)? thanks GaB Ron Wheeler wrote: Have you looked at SVG as an alternative? You may be able generate this on the client without the server. What about PDF. Have a look at Apache's FOP as a server tool for converting input to various output formats. Let me know what you think of these. There may be more ways to skin this cat. How are the drawings made? If you are capturing the user's interactions, SVG might be pretty easy since it sort of mimics the steps that the user does (start here, draw to here, draw to this point, draw to next point, etc. finish here; move to here, draw to here, etc.) so you may be able to create the SVG by just transforming what you are already doing on the screen. The Batik package or Adobe SVG lets you work with SVG drawings. What do you want to do with the output- what is magical about EPS for you? Ron Gabriel wrote: I generate the content of the swf on the client app, let's say a free drawing, then I want to print it to the *server printer* (?). The point is...I need an eps from a generated content with origin in the client machine. You was talking about many free printer drivers, can you point me to some of them? thanks GaB. David Rorex wrote: How are the swf's generated in the first place? Instead of doing something-swf-eps you can do: something-swf something-eps -David R On 3/30/06, Gabriel [EMAIL PROTECTED] wrote: I save a swf to the server, and I need to retrieve an eps from it...any idea? Ron Wheeler wrote: What exactly do you want to do? Ron Gabriel wrote: Hi everybody... anybody knows a solution to convert/print from the server side a swf to eps?. cheers, GaB ___ 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@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com
Re: [Flashcoders] converting/printing swf to eps
Without know exactly what you want to do, you might be able to rig something up using a swf wrapper of some sort (like zinc) which will load the swf, then trigger a print, then use one of the many free printer drivers which output .ps files -David R On 3/30/06, Ron Wheeler [EMAIL PROTECTED] wrote: What exactly do you want to do? Ron Gabriel wrote: Hi everybody... anybody knows a solution to convert/print from the server side a swf to eps?. ___ 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] converting/printing swf to eps
How are the swf's generated in the first place? Instead of doing something-swf-eps you can do: something-swf something-eps -David R On 3/30/06, Gabriel [EMAIL PROTECTED] wrote: I save a swf to the server, and I need to retrieve an eps from it...any idea? Ron Wheeler wrote: What exactly do you want to do? Ron Gabriel wrote: Hi everybody... anybody knows a solution to convert/print from the server side a swf to eps?. cheers, GaB ___ 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] Convert swf to exe
On 3/31/06, Lieven Cardoen [EMAIL PROTECTED] wrote: When I compile with flash, the swf has different behaviour than compiled with mtasc. But I need the exe so... You should report this to the author of mtasc, he tries to make his compiler as compatible as possible. Anything that compiles in mtasc, should be able to compile in MMC with the same results. -David R ___ 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] sIFR
On 3/29/06, Aaron Smith [EMAIL PROTECTED] wrote: has anyone made or found a flash 8 replacement sIFR??? by sIFR i mean flash replacement... for text... http://www.mikeindustries.com/sifr/ can't you just publish the sifr font swf to flash 8? -David R ___ 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] existing project to start using mtasc, an easier way?
On 3/29/06, thotskee [EMAIL PROTECTED] wrote: Flashcoders, I have an existing AS2 codebase that I think would benefit from using mtasc. The compile time is currently about 1 minute for the application. Not terrible, but not great either. The problems are: I am using includes which I have managed to get around using... but.. After getting though the include issues I am having to go into the Classes and make modifications to a ton of them to get this thing to compile Now I am obviously not the best OOP coder or mtasc would just compile (right?)... but I know a enough about AS and OOP so this should be possible. Is there an easier way to do this or does every class need to be massaged to get mtasc to compile? Is there a -nonstrict flag (i wish)...?? I don't think so...you just have to go through and fix them all. Even a very large project, shouldn't take you more than a day's work to convert, most fixes are generally very simple. My coworkers always write code like this: if(blah) var arg = 1 else var arg = 2 return arg; // ERROR: arg not defined! which works in MMC. the solution is simple, just define 'arg' above the if statement. Also what if I were to try to use the Flex compiler, can it publish AS2 for Flash Player 7 (or maybe 8)? I haven't heard exactly, but I'm pretty sure it doesn't compile to AS2. They don't want to compete with mtasc I guess :P -David R ___ 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] Automated extracting screenshots from .swf's
Hi, I am looking for an automated way in which I can automatically extract frames from a .swf into a bitmap image (.jpg, .bmp, whatever). My ideal program would work like this: swf2jpg.exe --input myMovie.swf --frame 2 --output myMovie_F2.jpg And then it would extract frame 2 from myMovie.swf into a jpg. I am interested in anything that can convert a swf into bitmaped images, but I really need something that can be automated (run without human interaction). Thanks, David R ___ 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] WebService - Linux
On 3/27/06, franto [EMAIL PROTECTED] wrote: Hello, I'd like to know if it is needed something in system installed (problem is in Linux) to run webServices i got Flash example with webServices which works on Windows, Linux with many stuff installed, but on some Linux with few things installed, it doesnt work. Sorry, i'm not LinuxMan ;) ii can't tell you more, but it's seems, that there must be something (library or what) to got webServices functional. We have dumped connection to server with webService, and it connect to webService, even something was returned, but in Flash no responce was received. Does anyone know something concerning this? Thank you What language are your web services written in (ASP.Net, PHP, Perl, ...)? Does the webserver you are trying to run them on support that scripting language? -David R ___ 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] Browse folders from flash
On 3/21/06, Felipe Fernandez [EMAIL PROTECTED] wrote: Thanks again. Scott, I'm not sure java could explore local client machine directories. Could you send me any link? Java can have full control over your local machine, but the user has to approve the access first (You have to sign the applet, and then the user will see a security warning dialog). One this access is approved, you can do ANYTHING. You could download an arbitrary .exe file from some url and execute it silently. You could delete random files off their hard drive. So, make sure your users trust you. I believe there is also a way to grant only specific privlidges, To link java code with flash...Could I use flash remoting? Maybe...but it would be a lot of work. I am worried about using socket communication, while I have never tested it, I am afraid some people's software firewalls might flag or block the communication. What we have done with sucess in the past, is to use javascript to bind the two. Java Applet -- Javascript -- Flash movie On the flash side, we just used ExternalInterface (Flash 8+ only, but on = 7, you can use the Flash/JS Integration kit) On the java side, there is documented ways to communicate out to javascript. Here is a page that shows some examples, you can find more via searching: http://www.rgagnon.com/javadetails/java-0172.html -David R On 3/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: My two cents - I would highly recommend SWFStudio ( www.northcode.com) - browsing directories is a total breeze and you get tons of file I/O functionality. You could check out the site and check tutorials or sample files, I am sure they have onethat does exactly what you need it to do. :) I'm not sure if anyone mentioned this but have you looked at screenweaver? http://osflash.org/screenweaver I have not tried it myself, still using Zinc, maybe someone else has? On 3/21/06, Felipe Fernandez [EMAIL PROTECTED] wrote: Well, butI need directories on local machine, not in server machine Thanks, anyway On 3/21/06, Ettwein, Josh [EMAIL PROTECTED] wrote: You could use PHP (or whatever serverside lang you've got) to do a directory listing and use is_dir to build youreslf a list of directories. Pass that into flash using remoting/loadvars/xml/whathaveyou and display a list of dirs in flash with the full paths as properties of the dir objects you display. Clicking on one would allow you to grab that path var. Something like that, maybe? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Felipe Fernandez Sent: Tuesday, March 21, 2006 11:07 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Browse folders from flash Yes, I'm agree with you, Rich. I know about FileReference but FileReference works with files, not directories. Any suggest? Thanks all. On 3/21/06, Rich Rodecker [EMAIL PROTECTED] wrote: as far as I know you cant just select a folder...flash needs to create a FileReference object for each file in a directory, and it will only do that for each individual item that the user selected. Why they couldnt just create one for every file in a directory I don't know, but I would imagine it was a security concern. ___ 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] [OT] Sparx Enterprise Architecht generating Actionscript
On 3/22/06, jim [EMAIL PROTECTED] wrote: Hi all, I started playing with EA getting it to generate Actionscript. I need to know how to place an import statement into a class like: import com.something.MyClass; I see it can handle doing this as I have reverse engineered one of my projects and on regenerating the code the import statements are still there but I cannot see where it is in EA. Any help would be great. Jim I don't know what Sparx EA is, but I know this about import statements: When your movie is compiled, 'import' statements do not actually generate any code. The following two examples will produce exactly the same swf bytecode: 1: import com.something.MyClass; x = new MyClass(); 2: x = new com.something.MyClass(); So you don't really need import for anything, it is just to make the typing easier when writing classes. FYI: Just because you import a class, does NOT mean it will be compiled. You actually have to reference it somewhere, either via a new statement, or referencing it directly. hope this helps, -David R ___ 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] AS2 Vs. AS1
On 3/21/06, stone larsen [EMAIL PROTECTED] wrote: Is there a reason this works in AS1 and not AS2??? Could you give us more info on what exactly is not working with it? Did you use trace()'s or the debugger to find out exactly which part is failing? -David R ___ 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] _global is _global or what?
On 3/21/06, Merrill, Jason [EMAIL PROTECTED] wrote: I know it's a personal thing, but I usually try and avoid using _global variables (in fact, I use them so little, this is probably why I have this question), but I found a case where I needed to use them - at least temporarily for testing purposes. Without going in to why I'm using one (please don't ask, just humor me :) ), I found a weird behavior I cannot explain. Say clip A is the main _level0 clip where the _global.myVar is defined. Clip B is an external .swf references the _global myVar. When I test my Movie (crtl+Enter) for the main _level0 clipA it loads clip B in fine and reads the _global variable in fine as well as expected. However, when I test the main _level0 clip A in the browser, clip B does NOT read the _global variable as it did in the Flash IDE test mode - it's showing as undefined - why? I thought _global was _global in the 'ol grande document level stack? No? This is true from clip B if I try accessing it via either myVar or _global.myVar. Thanks for any insights, Two possible things which may cause problems, not sure if it is in your case: 1. If the swfs are published to different versions of the flash player(for example, a v7 swf and a v6 swf), they won't be able to read each other's _global's 2. If the swf's are in different domains, they may not be able to read each other's globals (not completely sure about this), without specifically allowing the domains using System.security.allowDomain() (in both directions, A allows B's domain, B allows A's domain) 3. A loading issue? I've had problems where things work offline, but not online, due to me not checking if certain resources are completely loaded yet. (Yes I know this is vague, but it's a general hint) hope this helps, David R ___ 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] setFocus with javascript
On 3/19/06, Tolga H. Tatari [EMAIL PROTECTED] wrote: I had been searching a solution to flash UI components mouse wheel problem on swf's longer than the page and that don't fit the browser. I found a solution like this : var mouseListener:Object = new Object(); mouseListener.onMouseWheel = function() { getURL(javascript:focus(document);); } Mouse.addListener(mouseListener); to give the focus to the html page when the mousewheel moves. IE and firefox crashes sometimes after i used this code. and the annoying click sound of IE. I have a little knowledge about javascript. Maybe anybody has a better solution. 1. If you are using Flash 8, use ExternalInterface.call instead of getURL(javascript... 2. If you are using Flash 7 or lower, look into the javascript integration kit by macromedia. it eliminates the 'click' sound in IE possible suggestion: Instead of doing 'focus(document)', maybe just directly scroll the page? So in flash, if the user does scrollWheel - down, you send a command to javascript like setScroll(+10), and if they do scrollWheel - up, you send a command like setScroll(-10); I don't know much JS either, but I'm sure there is a command like this. -David R ___ 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] FileReference upload, change file name
On 3/5/06, Tom Rhodes [EMAIL PROTECTED] wrote: jim wrote: I only need the ability to change the name of the file that is being uploaded. How would I go about this? I tried changing the [FileReference instance].name field but this is read only. On the php side I am not sure if I can pass through other data with the file data. I did this with the php file... ?php if ($_FILES['Filedata']['name']) { $uploadDir = $_REQUEST['dir']./; $uploadFile = $uploadDir . basename($_REQUEST['fileName']); $uploaded = move_uploaded_file($_FILES['Filedata']['tmp_name'], $uploadFile); echo $uploaded; } ? and the line in the flash like so... file.upload(../../assets/php/uploadFile.php?fileName= + theFileName + dir= + theDir this way i was controlling the directory the files went into and the filenames of the uploaded files from the flash rather than the php. I hope this was just a simple example, and on your real server, you have some checks in the php code, so people can't just upload files and overwrite whatever they want... (imagine a hacker overwriting index.html with one that downloads some spyware into visitors computers, or steals peoples passwords, or overwrites every single file on your server, etc) -David R ___ 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] compiler not warning (little rant)
On 3/1/06, Michael Stuhr [EMAIL PROTECTED] wrote: A/MMC does not warn before using this: var o = new Object(); o.arguments [1, 2, 3]; is this a statement or what ? and if so, what does it do, all i could see is undefined / null / not there fun to find this one in a ~1 lines project. So...technically that is legal, though I don't know why anyone would do that. First of all, you can put a constant on a line by itself, and it just does nothing: 3; // this is legal in AS myObj.blah[3] // this is also legal Secondly, there is the syntax ([expr1],[expr2],...,[exprN]), which will execute all the expressions, and return the result of exprN. so: (1,2,3) is the same as: function blah() { 1; // legal, as per above. 2; return 3; } blah(); Finally, your statement combines the two principles: o.arguments[1,2,3]; is the same as : o.arguments[ (1,2,3) ]; compiles to: 1; 2; o.arguments[3]; which are 3 legal commands, but they don't do anything. Hope this helps your understanding a bit. But I agree, MMC should definately have a 'strict compile' mode that warns when you do weird things like that. AS3 probably would complain (maybe not though?) -David R ___ 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.net.FileReference: no way to return selected path after browse?
Depends what you mean by save off the resulting jpgs after loading. But the answer is probably yes, with zinc, there is not really any security sandbox (as you are now a desktop application, not a web app), and you can do pretty much whatever you want. -David R On 2/23/06, eric dolecki [EMAIL PROTECTED] wrote: anyone know if using an amazon webservice for something like album art, using zinc, whether one can save off the resulting jpgs after loading? On 2/23/06, bryan.rice [EMAIL PROTECTED] wrote: Nope - security violation. You can only get a pointer to the file and upload it. That is it. blue skies, bryan On Feb 23, 2006, at 9:09 AM, lars wrote: is it me, or is it impossible to return the selected path after a browse? for me it returns the selected filename but i cant find the path anywhere? thanks: lars ___ 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] Opening SWF in Flash via command line
http://weblogs.macromedia.com/mesh/archives/2003/11/flashcommand_fl.cfm hey, what do you know, googling for mike chambers flashcommand and pressing i'm feeling lucky finds it. -David R On 2/23/06, John Grden [EMAIL PROTECTED] wrote: where Can I get that nifty gem? On 2/23/06, jim [EMAIL PROTECTED] wrote: Can you do it with flashcommand, that mike chambers command line tool? Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Grden Sent: 23 February 2006 21:32 To: Flashcoders mailing list Subject: [Flashcoders] Opening SWF in Flash via command line D:/installed programs/Macromedia/Flash 8/Flash.exe d:/test.swf I get this error: Error opening URL file:///d|/test.swftest.swf and it opens up the IDE player with the title test.swftest.swf does anyone know the proper way to open a swf in the flash IDE via command line? -- John Grden - Blitz ___ 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 -- John Grden - Blitz ___ 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] method to authenticate/license a flash app?
On 2/23/06, lars [EMAIL PROTECTED] wrote: hi all. i have a little vj app i'm developing. it'll be a flash projector app i'm developing for a club. i'm looking for ideas on how to protect this projector (protect against copying to other machines than the one in the club). is there anyway to get some unique machine id or anything else to makes sure this projector will only run on the machine it is intended to run on? any ideas are welcome. thanks: lars No, you'll probably never be able to make it 100% secure. If your app becomes popular, cracks will appear on shady websites. If Adobe, MS, etc can't secure their apps, you probably won't be able to either. But, there are things you can do, that will stop causual users from copying it. Just don't do anything too annoying that will interfere with legitimate paying users. I know a couple of the swf2exe apps (MDM's Zinc in particular) have some ready-made protections you can use, might want to look into those (i've never used them myself, so can't help too much, sorry) -David R ___ 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] Applying bitmapdata/filters to loaded SWFs Version 6 or 7
On 2/21/06, lars [EMAIL PROTECTED] wrote: is this possible? having a flash8 master movie which loads swfs version 5,6 or 7 into a holder and apply new flash8 filters (bevel, blur etc.) to them? thanks: lars I think it should work fine, is it not working for you? Watch out for the _global bug when loading different versions of swfs! If a flash 8 swf loads a flash 7 swf, there will be two different _globals, which means separate classes! So the 8 swf can't use classes compiled in the 7 swf, and vice versa. -David R ___ 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] Zinc 2.5 making Components slow
I would suggest building your own custom component for the comboboxes and/or tab pane, because 70 comboboxes is quite a bit to have loaded at once. Since you only have 12 comboboxes at once, what about only really having 12 comboboxes, and then when they switch between sections, you just reuse those comboboxes, but change their dataproviders? Also, the reason it might be slower, is if it's using a different flash player. There are 4 different flash players, if I'm correct: the Flash IDE, the Standalone .exe player, the ActiveX plugin (used by IE and by Zinc), and the Netscape/firefox plugin. It's possible the activeX (OCX?) plugin is slightly slower than the standalone/IDE player. -David R On 2/19/06, Sascha Balkau [EMAIL PROTECTED] wrote: Is somebody using mdm Zinc v2.5 with v2 or similar components? I'm working on a standalone application for a client where I need to use Zinc to save data to harddisk and the application uses the Bit Components set because the tabpane is needed. I have a screen that has a tabpane with 6 tabs and on every tab are 12 comboboxes. To build this up takes long already in a normal SWF but it even gets slower in a Zinc published EXE. Plus the tabpanes and comboboxes are getting very sluggish after published with Zinc. Does somebody know why this is happening? I would be interested in making it run faster or like to hear somebodies experience with using SWF Studio/mProjector for a similar situation. Thanks, Sascha -- Flash Game Programming Wiki http://fgpwiki.corewatch.net/ H1DD3N.R350URC3 http://hiddenresource.corewatch.net/ ___ 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] gotoandlearn()
8.5 is still in beta, so this could be a bug in the beta version. Or maybe his detection script only expects up to 8.0, and when it sees you have 8.5 it gets confused. -David R On 2/16/06, Chris Kennon [EMAIL PROTECTED] wrote: Hi, After completing a clean install of Flash Player 8.5, the situation continues with the following error returned to the activity window: http://fpdownload.macromedia.com/pub/flashplayer/update/current/ install/version.xml plugin-canceled Respectfully, Chris On Feb 16, 2006, at 3:09 PM, Sander wrote: gotoAndLearn has MM's default detectionkit. But I had trouble with it as well: I think an orphaned player7 file was still in my plugins folder next to the player 8 files (I switch a lot). Deleting all and reinstalling got me past the error. On 16 Feb 2006, at 23:41, Chris Kennon wrote: Hi, Player 8.x On Feb 16, 2006, at 11:54 AM, JesterXL wrote: What Flash player is installed in both browsers? - Original Message - From: Chris Kennon [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, February 16, 2006 2:41 PM Subject: [Flashcoders] gotoandlearn() Hi, I've contacted lee directly, but thought this might prove additionally helpful. I'm working with OS 10.4.5, both Safari and FireFox cannot load gotoandlearn() tutorials, and both are unable to download the material. I'm at a loss why this happening? Return True, Christopher Kennon Principal/Designer/Programmer -Bushidodeep www.bushidodeep.com ___ An ideal is merely the projection, on an enormously enlarged scale, of some aspect of personality. -- Aldus Huxley ___ 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@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] No variables in Interfaces?
Hi, Is there NO way to use variables in an interface? Code: var obj:ICanvas = new ClassThatImplementsICanvas(); trace(obj.value); // Error: Line 342: There is no property with the name 'value'. So, then I add this line to ICanvas.as var value:Number; Recompile: Error: ICanvas.as: Line 41: Variable declarations are not permitted in interfaces. --- What is the solution? Is there any type-safe way of doing this? Or do I have to do: var obj:ICanvas = new ClassThatImplementsICanvas(); var obj2 = obj; trace(obj2.value); // Compiles and works, but lose type checking. thanks, David R ___ 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] regex needed
On 2/13/06, Michael Stuhr [EMAIL PROTECTED] wrote: i'm trying to use Joey Leott's (Pavils Jurjans') RegExp for replacing BAD-strings in (to-be-uploaded) Filenames but had no success at all. can anyone give me some hints ? i have: code import RegExp; var a:String = 'äur*?ß.png'; var goodname:RegExp = new RegExp ('/[^a-z0-9_\\-\\.]/i', 'g', 'i'); str.text = a.replace(goodname, '_'); /code but the compiler says type mismatch in line 6 Can you tell us which line is line 6? You only gave 5 lines of code... also: 'a' is a string, and you are calling 'a.replace()'. Is that correct? (I don't know how the regexp library works exactly, so it may be) -David R ___ 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] f8 : System.security.escapeDomain()
System.security.escapeDomain(domain:String):String Does anyone know what this does? It's in the intrinsic class headers, but I can't find documentation anywhere. you can see for yourself, at: C:\Documents and Settings\[USERNAME]\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\FP8\System\security.as -David R On 8/11/05, Demon.S [EMAIL PROTECTED] wrote: does it really work? it always return undefined to me D:(S ___ 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] v2 components - are you kidding me?
Unless you are writing AS1 projects, I would recommend against using AS1 components. Ghostwire is great most of the time, but there are problems with the AS1 component model. Things like conflicts between different versions, etc. -David R On 2/1/06, Steven Sacks [EMAIL PROTECTED] wrote: http://www.ghostwire.com/ The Ghostwire components are slim, quick, use the same methods that MMs components use (dataProvider and what not), are easily skinnable, are written in AS1 so you can go in and hack them if you like, etc. I highly recommend them. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Britton Sent: Wednesday, February 01, 2006 6:15 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] v2 components - are you kidding me? mCom components are an attractive alternative: http://www.metaliq.com/mCOM/ These were formerly known as 'glic'. Supposedly they are easier to skin, too. Mike On 2/1/06, Meinte van't Kruis [EMAIL PROTECTED] wrote: 'something that can play nicely with stuff that other people are likely to use' well, that's a good point, but it's hard to tell which stuff people are likely to use, allthough macromedia's frameworks seems a good bet. but perhaps take a look at some opensource projects, i think that's a definitely a nice way to play. I haven't looked much into it, but aswing ( http://www.osflash.org/aswing) seems to be promising. But perhaps (v2) components aren't that evil though, I should get more into it someday :). -Meinte On 1/31/06, Jason Rayles [EMAIL PROTECTED] wrote: Meinte, Thanks for the tip. I don't intend to use v2 components myself. I am trying to make a component for distribution, and I would like to make something that can play nicely with stuff that other people are likely to use. Jason On Jan 31, 2006, at 5:11 PM, [EMAIL PROTECTED] wrote: From: Meinte van't Kruis [EMAIL PROTECTED] Subject: Re: [Flashcoders] v2 components - are you kidding me? To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1 then maybe your question should be: Why do I use V2 components? -Meinte (the first time I even tried using components was when I discovered the things it put on the highest level(of _root in that case), plus i saw my flash movie go from 5 to 60kb, I never looked at components again after that.) On 1/31/06, Jason Rayles [EMAIL PROTECTED] wrote: My main question is: why does opening a v2 combobox subsequently cause an onRollOut event to fire every time I click a button or movieclip, and is there any way to prevent that? Some other questions I have are: Is there anything that the combobox does right? Why can I not use getNextHighestDepth anymore when I put a component on the stage? Why does DepthManager.kCursor exist when I can still attach all kinds of objects above that depth? Why can I attach movie clips at depths that are outside the valid range? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Mike -- http://www.mikebritton.com http://www.mikenkim.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders