[Flashcoders] Fullscreen keyboard input
Hi! I did this pong game (http://www.pixeltoys.net/2008/01/29/actionscript-3-pong.html) just to try AS3. The game can be controlled using the keyboard or the mouse. then I tried the full-screen feature just to learn that: "Users cannot enter text in text input fields while in full-screen mode. All keyboard input and key-related ActionScript is disabled while in full-screen mode, with the exception of the keyboard shortcuts that take the viewer out of full-screen mode." (source <http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html>) I can still have users play using the mouse, but is there a known workaround for this limitation? thanks! JulianG ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Copy and paste a movieClip?
Yes. As far as I know you can't duplicate movieclips into a container other than the original one. You could try attachMovie if you need to use the same movieclip symbol in different places. In any case, when you duplicate a movieclip, you don't get a clone of the current state of the object. You get a new instance of the same symbol. This means (for instance) that it doesn't matter if your movieclip-to-be-cloned was playing around frame #30, your duplicated MC will always start from frame 1. And if you had set any variables on the first MC, the duplicated won't keep those values either. I hope this helps, JulianG Mendelsohn, Michael wrote: Hi list... [AS2] I'm trying to figure out how to copy a movieClip from inside a scroll pane component and paste that copy on the _root. The movieclip version of duplicateMovieClip doesn't seem to work because I can't target the clip inside the scroll pane. The global version of duplicateMovieClip doesn't seem to work because I can't say _root.duplicateMovieClip(target). Am I missing something? - Michael M. ___ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Recording Webcam - not enough keyframes
Hello: I need to generate keyframes inside an FLV. I'm doing a small web app that records the webcam onto a Red5 server. I need the resulting FLV files on the server to have at least 2 keyframes per second. I'm using *setMode*, *setQuality* and *setKeyFrameInterval* to attempt to control the quality and framerate of the uploaded video When I record within a LAN, everything is fine. I get a lot of keyframes on my FLV files. But when I record on the internet (e.g. 128kbps upstream) I get keyframes every 5 or 6 seconds. I know I can't challenge physics, so I think there's a way to generate additional keyframes on the server side FLV. I don't care if the file size is increased because I'm planning to download the files via HTTP. I just need to be able to jump from any "second" to any other second, and I belive I need 1 keyframe per second to achieve that. I know Flash Media Server has the "enhanced seek" feature that forces the server to generate keyframes on demand, so it is possible to "seek" to any given frame in the video. Anyway i think this feature only works when playing back a video via rtmp. So what I actually need is a way to generate keyframes inside an FLV file that was previously recorded. I can be a process that runs after a video was recorded. Any ideas? Thanks, JulianG ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 CS3 over 400 MB! and 25 minutes to install!
A "Bad thing" is having to allot 1200 MB for things you don't need. (Flash 8 requires just 190 MB.) I know why the file is 400MB! I know there are millions of files in it. I know that's why it takes so long to install. The point is: should it be done that way? should there be so many files in it? Should we be compelled to install the entire thing without being able to opt-out on some components? I think in their attempt to integrate Flash with other Adobe products (which only designers use), they are forgetting about developers and coders who just need the Flash IDE to open a FLA file and publish it after having coded their scripts using some external text editor. Those people don't need PSD import or most integration tools. And they don't like having to install 1.2 GB of things they won't ever use, and spend hours doing so. The argument that today's hard disks are larger, and that 1.2 GB is not a lot, is missing the point. It's not about whether I can store 1.2GB or not. It's about whether I should allot 1.2GB for things I don't care about or not. It's about giving users the right to choose. "Get a bigger hard drive." To store your rubbish? No thanks! You're not listening! Many people is complaining about this. So please! Add options to the installation process, so some people can have a light and healthy Flash installation. Ok. It's good to know WHY the thing is so big. (thanks to some Adobe people who replied). And it's good to know THAT THEY KNOW the thing is too big. And that they will try to make it right next time. "Good thing" is that I only installed the trial version in my second PC, and fortunately I didn't contaminate my personal computer with it. I'm seriously considering not using the product at all. At least until I feel forced to do so. cheers, JulianG ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 CS3 over 400 MB! and 25 minutes to install!
John, thanks for your reply. Here's a tip. Provide installation options so users can choose which components to install. I believe some developers don't care about PSD import or other designer tools. I don't. I usually work with someone else's artwork which is delivered to me in a FLA file. My work is usually a couple of hundred KB (mostly scripts). So it doesn't really make sense to me that the installation requires 1.2 GB of disk space. I usually copy artwork from one FLA to another, arrange things in different MovieClips, I link them to classes and then I use FlashDevelop to write my scripts. So I figure out many people like me don't really need a gigantic IDE. Just the basics. Thanks again for explaining. cheers, JulianG ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flash CS3 over 400 MB! and 25 minutes to install!
I saw this coming... Once Adobe take over Macromedia, things would start to happen. Bad things, I mean. How come Flash CS3 Installer is over 400 MB, when Flash 8 was only 110 MB?? While I'm writing this the application in being installed (less than 50% progress). How is it possible that it's taking AGES to do finish! It almost seems like I was installing... I don't know Photoshop, or some other buggy Adobe software. Oh! s**t I am! I'm scared! I hope they don't screw it with the Flash Player. That'd be quite harmful for us. I think. I don't see people updating Flash Player if it's 30MB or annoying in some other way. Perhaps you guys had this discussion some time ago. Do you have any URLs I can read about this, so I can find out if it is just me paranoid? Thanks, JulianG ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Record client's webcam without Flash Server
Thanks! I downloaded it. And I will try it. So there's definitely no way to do this using just HTTP, right? Thanks! JulianG Ruslan Shestopal wrote: Hi! Take a look at RED5 Red5 : Open Source Flash Server http://www.osflash.org/red5 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Record client's webcam without Flash Server
Hi all! I 'd like to know if there is a way to record the client's webcam or mic input, and send it to the server without using the Flash Server or other open source alternative services. I mean, sending the video over HTTP. I need my users to record they webcam videos and send those videos to the server. what options do I have? thanks in advance! JulianG ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] AMFPHP not working with PHP 5.2.2. in Safe Mode
thanks! that fixed it! JG dnk wrote: This is a known issue. Patrick had psted a fix or workaround on his blog. Check it out: http://www.5etdemi.com/blog/archives/2007/05/amfphp-fix-for-php-522-compatibility-issue/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] [OT] AMFPHP not working with PHP 5.2.2. in Safe Mode
I anyone using AMFPHP with PHP 5.2.2. ? My hosting company has updated the PHP installation and my AMFPHP just stopped working properly. The error message I get everytime I attempt to call a method (using the browser) is the following: Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/httpd/paulasedacca.com.ar/public_html/_amfphp/browser/client/AMFClient.php on line 119 I've been reading and the CURLOPT_FOLLOWLOCATION thing has been changed in PHP 5.2.2. Any ideas? Thanks, JulianG ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Running Flash Application on a local network
are you using an HTTP server on the host computer? or just opening the HTML/SWF file using a network share? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 Game - Post Encrypted Score toserver sidescript
I agree. Perhaps it's a good thing that once the game is launched the contest for the prize won't last too long. So that might reduce the amount of hackers that eventually notice the game. I hope I'm not under estimating hackers, I guess they could crack the game in a few hours anyway. Thanks for your help! JulianG Danny Kodicek wrote: Be aware that once you're allowing for hackers getting into your game, just hacking into the server communication is not your only problem: they may find ways to cheat the game without touching that code. As a simple example: suppose you have a space invaders game with a function 'destroyShip', if they invoke this function they might be able to increase the score 'legitimately'. Look into the history of MMORPGs to see the number of ingenious methods hackers have found to cheat their way in (my favourite is the story of the rogue carpenters who held characters to ransom by building wardrobes around them) Danny __ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 Game - Post Encrypted Score to server side script
I was starting to suspect that. Thank you! JOR wrote: Referrer's can be faked. James Mick G wrote: You can also try checking the HTTP referrer in PHP to make sure people can only post data to your PHP script from your page on your site. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 Game - Post Encrypted Score to server side script
Thanks John! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 Game - Post Encrypted Score to server sidescript
Thanks Danny! There is a prize involved, but no money. I mean users do not pay for this. I'll take a look at the SHA-1 algorithm. Of course hackers will be able to find the encryption string by "decompiling" the SWF. So I might need some code obfuscation, which I'm not a big fan of. Thanks, JulianG Danny Kodicek wrote: Depending on how secure you need it to be (ie, whether there's money or a prize involved), a simple solution is to use SHA-1 (I think Branden Hall made a SHA-1 encryption algorithm a while back, and it's standard in PHP). Have a long key string which both your Flash file and the PHP page know, then append the score to this key string and hash it. Send the score in plain and the hash alongside, then your server script can authenticate the score with the hash to make sure it's the right answer. This will stop the casual hacker. Danny ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Flash Game - Post Encrypted Score to server side script
Hello: I'm developing a small flash game for a website. Users must register and log-in before they're allowed to post their scores to the back-end. Nevertheless I don't want to have the scores posted in a simple way, because someone could easily, sign up, log-in, and then post a higher score without even playing the game. My idea is to encrypt the score using some algorithm in ActionScript, something that I can reproduce in PHP on the server side. I don't want them to be able to read an encrypted score and then try similar strings in order to get a higher score by chance. I think the encrypted string should have a check digit or character or something so it auto-validates. Do you know of anywhere I could start reading? or perhaps get an encryption algorithm that I can use? Thanks, JuliánG ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] components are Evil?
yes. sorry. it wasn't 200k perhaps I was doing something of about 20k, and adding 32kb just for a scrollbar left an awfull impression on me. I need to get my hands on Flex 2 for my next RIA. JG ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] components are Evil?
I have the same impression. I found it easier to develop my own scroll bar component (or class ) including support for mouse weel, targeting textfields and masked movieclips , than dealing with the graphic customization of the UI Components. I've also noticed they add about 200KB to your SWF file. Considering those things I'd say they qualify as "evil". I haven't dealt with Flex yet, but perhaps that where they really belong to. cheers, Julian.G > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] efficient line segment intersection algorithm?
I think HitTest only works with the bounding box of the MovieClip. So it's not appropriate for what you're doing. Try this Metanet Tutorial: Beyond HitTest() <http://www.harveycartel.org/metanet/tutorials.html> Collision Detection in Flash. cheers, JulianG Millie Niss wrote: It occurred to me that possibly hitTest doesn't work to check whether a point intersects with a clip that has strokes but no fills (ie my edges)... Does hitTest use the pixels of strokes or does it only use the insides of fills as the area it checks the test point against? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Freelancer Class
I know I don't have to. But I think the code is more clear that way. Thanks, JulianG Rich Rodecker wrote: you know you dont have to reference 'this' inside the class, right? :D ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Freelancer Class
// ActionScript 2.0 class Freelancer extends Person { var available_time:Number; // hours per day // Constructor function Freelancer( hs:Number ){ this.available_time = hs; } function onIdle(){ if( this.available_time > 2 ){ this.workWithPixeltoys(); } } function workWithPixeltoys(){ getURL("mailto:[EMAIL PROTECTED]"); } } ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] HELP! Zinc projector saving to xml file - 50k limit?
There is a limit. But I wasn't able to find any documentation about it. On the MDM forums somedy claim "the limit could be" 64KB. What I do is the following: 1. save an empty file using *savefile* or *savefileunicode*, 2. brake up my string into chunks of about 32KB. (I tried 64KB and it didn't work) 3. Use the *appendfile *or *appendfileunicode* functions in a loop, once for each chunk of text. The bad news is that it takes about 10-15 seconds to save a 250KB file on my Pentium IV 3GHz. cheers, JulianG grimmwerks wrote: I've got a list of items that have a lot of stylized text and I'm saving the items to an xml/text file: is there a 50k limit or something? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Saluti alla ML
Ah! Brasil! I'm from Argentina. Alguien de Argentina? JulianG Marcelo Wolfgang wrote: I'm 2 :) been on this list for almost 3 years :) lurking and de-lurking when needed ( I hoped to help more, and read more, but I'm very busy ) Julian, I'm in Curitiba, Brasil since the beginning of the year. And this was the first time ever I try to translate Italian. []´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] Saluti alla ML
Salve Daniele: Penso che il tuo sia stato il primo messaggio in italiano in questa lista. benvenuto! JulianG Daniele La Delfa wrote: Salve a tutti, mi sono appena iscritto! Volevo giusto salutare tutta la lista... A presto, Daniele ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Saluti alla ML
very accurate translation Marcelo, where are you from? JulianG Marcelo Wolfgang wrote: It's Italian a rough translation : Hi everybody I've just subscribed Just want to say hello to all in the list but,well I don't speak Italian, never did any course either, so maybe it's all the opposite of what I've translated ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Can I assign a Class to the main timeline?
Thanks you Patrick and Weyert! I tried Patrick's approach and it worked. I had never used this __proto__ thing before. Besides this, what do you use __proto__ or "prototype" for? I never use it. Maybe I'm missing something. thanks, JulianG Patrick Matte wrote: Nice trick. But this seems to work as well but simpler. class com.Application{ public function Application( target ) { target.__proto__ = __proto__; this = com.Application( target ); } } ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Can I assign a Class to the main timeline?
Hello guys: I'm new to the list. I've been using Flash for several years now, and I'm coding in AS2 since last year. I can create Classes with no problems. I usually extend my classes and other original Flash classes. I usually extend the MovieClip class and assign the class to a Symbol in the Library using the Linkage dialog box. So, most of my MovieClips instead of having code on a keyframe, they have a class assigned to them. Now the question is.. is there a way I can do the same, but with the main Timeline? I mean, I want my main timeline (which already supports all the members [properties and methods] of the MovieClip class ) to behave according to a certain Class that I write and that is an extension of the MovieClip class. Is this possible? where can I tell flash to associate a certain Class to the main timeline instead of a Symbol on the Library? Any documentation on this? Thanks in advance! JulianG ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com