Re: [Flashcoders] Fullscreen Hardware Acceleration and Video Player Skins
That was my first test. The old FLVPlayback component supports hardware accelerated fullscreen video (using the Stage.fullScreenSourceRect property) but does distort the skin. It also provides a skinScaleMax property but that's useless since it cuts back on the benefits of using the hardware (skinScaleMax uses the software AND the hardware, depending on the value). So I trid shrinking the controls before going to fullscreen in the FLVPlayback code. It worked like I expected but the controls are EXTREMELY fuzzy (nothing like YouTube and most definitely nothing like the Strobe Media Playback SWF. So I'm still clueless to this day. It's like one of those things in Flash that I just can't seem to figure out. --- On Thu, 1/13/11, Ben Sand b...@bensand.com wrote: From: Ben Sand b...@bensand.com Subject: Re: [Flashcoders] Fullscreen Hardware Acceleration and Video Player Skins To: Flash Coders List flashcoders@chattyfig.figleaf.com Received: Thursday, January 13, 2011, 1:34 AM Using youtube, i find the controls are distorted, but they don't seem to have been blown up as big as the video. It appears' they've shrunk the controls before they're attached and then zoomed the whole thing up. If you can detect the size of the screen and don't mind the controls being a bit pixelated you could try that. On 13 January 2011 16:34, David Bellerive david_beller...@yahoo.com wrote: Hi everyone, This question has been puzzling me forever. How is it possible, when you build a video player in Flash, to have a fullscreen button that sends the video in fullscreen mode USING HARDWARE ACCELERATION but without distorting (scaling) the video player skin with it? I know it's possible because YouTube does it, and also the new Strobe Media Playback (and associated Flash Media Playback) does it. I think even the popular JW player does it. As far as I know, there's only one method to go into fullscreen with hardware, which is the Stage.fullScreenSourceRect property. And that property doesn't seem to allow some display objects to use the hardaware rendering (like the video itself) and some display objects to use software rendering (like the skin). What am I missing? I've looked through the Strobe Media Playback code ad can't find anything. Anyone has a clue??? ___ 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
[Flashcoders] Fullscreen Hardware Acceleration and Video Player Skins
Hi everyone, This question has been puzzling me forever. How is it possible, when you build a video player in Flash, to have a fullscreen button that sends the video in fullscreen mode USING HARDWARE ACCELERATION but without distorting (scaling) the video player skin with it? I know it's possible because YouTube does it, and also the new Strobe Media Playback (and associated Flash Media Playback) does it. I think even the popular JW player does it. As far as I know, there's only one method to go into fullscreen with hardware, which is the Stage.fullScreenSourceRect property. And that property doesn't seem to allow some display objects to use the hardaware rendering (like the video itself) and some display objects to use software rendering (like the skin). What am I missing? I've looked through the Strobe Media Playback code ad can't find anything. Anyone has a clue??? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3.0 QName class bug?
The AS3.0 documentation states that when a QName instance does not have a URI (it only has a local name), it will match any namespace. However, when I create a new QName instance like this var myQName:QName = new QName(null, images); and use that QName instance like this var results:XMLList = myXMLInstance.elements(myQName); my variable named results should contain an XMLList instance with every XML child element whose local name is images and whose namespace can be anything because my QName instance has a URI set to null. However, this doesn't work as expected. My QName instance does not match any XML element with a local name images that has a namespace. Any ideas? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] use get / set functions or make your own
I think some ActionScript developers simply prefer the use of regular setVar() getVar() instance methods instead of the AS3 get set keywords because they know what's going on in their own code. I remember going to Colin Moock's AS3 1 day crash course last year in Toronto and he said that while there was nothing wrong with either method, he preferred regular getVar() setVar() instance methods because he felt more in control over his own code. With AS3 get set keywords, AS probably does a bunch of things in the back that you're not aware of to make it work as expected. This is probably the same kind of debate as the tabs vs spaces debate. Both ways are OK, simply stick with the one you prefer... --- On Tue, 12/9/08, allandt bik-elliott (thefieldcomic.com) [EMAIL PROTECTED] wrote: From: allandt bik-elliott (thefieldcomic.com) [EMAIL PROTECTED] Subject: Re: [Flashcoders] use get / set functions or make your own To: Flash Coders List flashcoders@chattyfig.figleaf.com Date: Tuesday, December 9, 2008, 6:28 AM i would have to agree - i use the built in ones and can't see any benefit from using bespoke ones apart from maybe being able to use the variable name i want rather than adding extra characters to it (although i use a leading underscore for class variables anyway) On Tue, Dec 9, 2008 at 10:48 AM, Ian Thomas [EMAIL PROTECTED] wrote: I use Actionscript getters and setters. Because I can start off using ordinary public properties, and change them into getters and setters if I need more control/notification without changing any of the code that _uses_ my class. In order to achieve that otherwise, I'd have to make a getValue() and setValue() for every single public property (as is done in Java). And a fair few of those would simply be this._property=value (setter) or return this._property (getter) i.e. essentially just placeholder methods that bloat the code. The beauty of the actionscript get and set functions is that they are indistinguishable from public properties from the outside of the class. It's a huge improvement over Java. Ian On Tue, Dec 9, 2008 at 10:24 AM, allandt bik-elliott (thefieldcomic.com) [EMAIL PROTECTED] wrote: hi guys quick poll - Do you use the actionscript getter/setter functions or do you make your own, and why. I've noticed with a lot of the public domain code (like SWFAddress, for instance) that you see a lot of 'public function getVariable()' type getters instead of using the flash 'public function get variable()' adobe recommended getters(and setters) and i was wondering why people do this? thanks a ___ 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Are string literals and String objects the same in AS3?
Does anyone know if string literals are the same as String objects in AS3? From what I understand, in AS2, a String object was a wrapper object around a string literal. For exemple, in AS2, these were not the same: var myFirstString:String = my first string; var mySecondString:String = new String(my second string); The first line (the string literal) was just that, a literal value with no properties or methods. The second line (the instance of the String class) was just that, an instance of a class with methods and properties. And it was recommended to use mostly literals over String objects unless you needed to call methods or set/get properties. When the Flash Player would encounter a situation where you would call a method or set/get a property on a string literal, it would create a temporary String object, call the method or set/get the property and then delete the temporary String object. So, in the folowing exemple, it would create and delete 3 temporary String objects: var myString:String = this is a string literal; trace(myString.length); trace(myString.charAt(0)); trace(myString.indexOf(s)); I'm not 100% sure that's right but that's what I think it used to be in AS2. Now in AS3, I'm not sure but I think this might have changed. Does anyone know if the Flash Player 9 with AS3 still interprets String objects and string literals as described above (the same way as AS2) or as it changed? Are String objects and string literals treated exactly the same now (with no temporary String objects created and destroyed by the Player when calling methods or setting/getting property values directly on string literals)? What about other literals that have wrapper functions like Number, Boolean, Object and Array? David __ 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
Re: [Flashcoders] Are string literals and String objects the same in AS3?
In AS2, your example would of course work but only because the Flash Player would create a temporary String object with your string literal, then get the object's length property and return the value, and then delete the temporary String object it created. So yes, all method calls and get/set on property values would work just fine on literals in AS2, but only because Flash Player used to create temporary objects and delete them as soon as the operation ended. Thus, when you needed to call multiple methods on a string for exemple, it was more efficient to explicitely create a new instance of the String object and call those methods on the object rather that just calling those methods on a string literal. But it seems that this is no longer true in AS3, that String objects and string literals are now treated the same by Flash Player 9 using AS3 (there are no more implicit temporary String objects created by the Flash Player). Anyone knows if that is the case? - Original Message From: T. Michael Keesey [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Monday, April 30, 2007 11:45:13 AM Subject: Re: [Flashcoders] Are string literals and String objects the same in AS3? On 4/30/07, David Bellerive [EMAIL PROTECTED] wrote: From what I understand, in AS2, a String object was a wrapper object around a string literal. For exemple, in AS2, these were not the same: var myFirstString:String = my first string; var mySecondString:String = new String(my second string); The first line (the string literal) was just that, a literal value with no properties or methods. Not true. As a counterexample, try this: trace(Hello.length); // Traces 5. -- Mike Keesey ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com __ 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
Re: [Flashcoders] Are string literals and String objects the same in AS3?
Thanks Fumio! That's the answer I was looking for. So my next question would be : When would you ever need to use the String class' constructor instead of just a string literal? AS2.0 var myString:String = this is a string; trace(myString instanceof String);// outputs FALSE AS3.0 var myString:String = this is a string; trace(myString instanceof String);// outputs TRUE - Original Message From: Fumio Nonaka [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Monday, April 30, 2007 6:40:34 PM Subject: Re: [Flashcoders] Are string literals and String objects the same in AS3? Programming ActionScript 3.0 ActionScript language and syntax Data types: http://livedocs.adobe.com/flash/9.0/main/0044.html In ActionScript 3.0, primitive values and their wrapper objects are, for practical purposes, indistinguishable. All values, even primitive values, are objects. Flash Player treats these primitive types as special cases that behave like objects but that don't require the normal overhead associated with creating objects. ECMAScript 4 Types http://www.mozilla.org/js/language/es4/libraries/types.html Unlike in ECMAScript 3, there is no distinction between objects and primitive values. All values can have methods. _ David Bellerive wrote: In AS2, your example would of course work but only because the Flash Player would create a temporary String object with your string literal, then get the object's length property and return the value, and then delete the temporary String object it created. So yes, all method calls and get/set on property values would work just fine on literals in AS2, but only because Flash Player used to create temporary objects and delete them as soon as the operation ended. Thus, when you needed to call multiple methods on a string for exemple, it was more efficient to explicitely create a new instance of the String object and call those methods on the object rather that just calling those methods on a string literal. But it seems that this is no longer true in AS3, that String objects and string literals are now treated the same by Flash Player 9 using AS3 (there are no more implicit temporary String objects created by the Flash Player). -- Fumio Nonaka mailto:[EMAIL PROTECTED] http://www.FumioNonaka.com/ My bookshttp://www.FumioNonaka.com/Books/index.html Flash communityhttp://F-site.org/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com __ 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] What's in a flash 9 format SWF generated by FB2 ?
I was just wondering why, when I make a default ActionScript project in Flex Builder 2, the file size of the generated SWF is around 561 bytes ? That's a SWF with an empty main (or document) class instance. I'm not saying that 561 bytes is too big. I'm just wondering why an empty flash 8 format SWF file generated by the Flash 8 authoring tool is about 30 or 40 bytes as opposed to 561 bytes for an empty flash 9 format SWF generated by Flex Builder 2. Any ideas where all those extra bytes come from? I know the debug version contains extra info for debugging purposes but that's about it. Any ideas? __ 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
Re: [Flashcoders] What's in a flash 9 format SWF generated by FB2 ?
The Flex framework is definatly not included here since the project I'm building is an ActionScript project and not a Flex project. So those 560 bytes probably include some other info... I would just like to know what and why. The more we know about how the SWF file format works, the better. - Original Message From: Austin Kottke [EMAIL PROTECTED] To: David Bellerive [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com Sent: Thursday, April 26, 2007 2:09:29 PM Subject: Re: [Flashcoders] What's in a flash 9 format SWF generated by FB2 ? The swfs generated include the flex framework and specific classes to the framework. As far as I know it should be generating a class that is atleast 100k because you have to include the entire flex framework for a flex movie. Best Austin David Bellerive wrote: I was just wondering why, when I make a default ActionScript project in Flex Builder 2, the file size of the generated SWF is around 561 bytes ? That's a SWF with an empty main (or document) class instance. I'm not saying that 561 bytes is too big. I'm just wondering why an empty flash 8 format SWF file generated by the Flash 8 authoring tool is about 30 or 40 bytes as opposed to 561 bytes for an empty flash 9 format SWF generated by Flex Builder 2. Any ideas where all those extra bytes come from? I know the debug version contains extra info for debugging purposes but that's about it. Any ideas? __ 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 __ 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
Re: [Flashcoders] You Tube + Progressive download of flvs
I might be wrong but I thought Google video used progressive download (not real streaming) but used some sort oh PHP script to allow moving forward to a part in the video that hasn't downloaded yet. Stephan Richter describes how to do this on his blog. - Original Message From: Cay Garrido H. [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Tuesday, April 10, 2007 8:16:59 AM Subject: Re: [Flashcoders] You Tube + Progressive download of flvs Its progressive download, Google Video uses streaming... You can check it by jumping forward to a certain point in an unloaded clip and check if it loads from the start of the video till that point, or if it loads from that point on... the latter is streaming ;) How YouTube is handling the large traffic with progressive download? I think you should read a bit more about what the differences are between progressive download and streaming, I think you'll get it then... ;) Cheers, Cay Sumeet Kumar escribió: Hi All Can any one tell me what YouTube is using for playing the flv's? Progressive download or Video Streaming. Regards Sumeet Kumar ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 The fish are biting. Get more visitors on your site using Yahoo! Search Marketing. http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Cache Killer... is it bulletproof ???
I've read that appending a random query string ( example : new Date.getTime() ) to the URL of assets (images, sounds, XML files, etc.) loaded at runtime in the Flash Player ensures that these assets are always loaded from the server instead of being loaded from the cache. I've tested this on Windows XP in IE5, IE5.5, IE6, FF1, FF1.5, FF2, Opera 8, Opera 8.5, Opera 9, Netscape 7 and Netscape 8 and it seems to work very well. However, I haven't been able to test this on a Mac or on Linux. Is this method bulletproof (it works in all browsers on all operating systems)? Is this something that you would really rely on for big projects? Has anyone ever used this method and had big problems with it or even minor glitches? TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV. http://tv.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] Cancelling a load in progress : has this issue ever been fully resolved ???
Hi! Just wondering if anyone ever found a solution to stop loading something that is currently loading in the Flash Player (an image, a sound, an XML file, etc.)? I've heard and tried about loading a dummy (non-existent) file in place of the file being loaded to stop the load process. When I used it, it seemed to work but I've read it doesn't work in all OS/Browser combinations. I think there are issues with this on the Mac, in Safari and/or IE 5. Is that right? Does this method effectively stops a load in progress in all OS/Browser combinations? With this method, I noticed that if I halted a load in progress at say 75% by loading a dummy file in place of the one currently being loaded, and then restarted loading that file later on, the load starts at 75%. So where is this partial file being stored? Is it in memory? Is it in the browser cache (even if it's only partial)? David Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. http://games.yahoo.com/games/front ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Implicit setters and exceptions in AS2.0
Last week, I sent a message to the FlashCoders list asking if validating the values passed to setter methods (in custom classes) was a good practice. After reading on how exceptions work in Java, here's the solution I've decided to use in my setter methods in AS2.0. If the client (the programmer using my custom class) breaks his part of the contract by supplying my setter method with an illegal value, I display an alert in the output window using the trace statement and abort the implicit setter method without assigning the illegal value that was passed to the method. On the other hand, if the implicit setter method is the one breaking the contract (it can't complete it's task for whatever reason), I throw and exception. I've decided to use this method because AS2.0 doesn't support checked and unchecked exceptions like Java. In AS2.0, all exceptions are unchecked, meaning the client isn't forced to catch any exceptions. But when an exception goes uncaught, the function call stack completely aborts. So, using this method, when the client is responsible for breaking the contract (like passing an illegal value to the setter method), he is alerted via the output window in the Flash IDE. This way, he isn't forced to respond to low-risk errors and the function call stack won't abort under any circumstance. However, the client cannot react to this error at runtime. However, when the setter method is the one responsible for breaking the contract, an exception is thrown and the client has to catch it to prevent the function call stack from aborting completely. If the client doesn't catch the exception, the function call stack is emptied and the program probably won't work as expected. However, if the exception is caught (and it should), the client has the possibilty to react to it at runtime. In conclusion, when the error comes from the client only alert the client. When the error comes from the method, throw an exception. Any thoughts or comments on this ? __ 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] Implicit Setters: Is validation considered a good or bad OOP practice ?
I've been reading and learning about OO design analysis for the past few months and I've just recently started applying what I've learned in my Flash projects ? Learning a new language (like AS3) is no biggie but learning how to code differently (from procedural to OOP) is the real challenge for me ! So here's my first OOP question : When using implicit setter methods (using the set modifier), is it considered a good or bad practice to validate the value passed to the implicit setter method ? For exemple, let's say I'm building a Flash Video Player component and I decide that, amongst others, it must have a volume component parameter which is a Number. In the implicit setter method for the volume, should I validate the value that is passed to this method and make sure it isn't null or undefined, it isn't NaN and that it isn't lower than 0 or higher than 100 ? Which of the following options is best : 1) Do not validate the value and let the user of my component set the volume to undesired values like null, undefined, NaN, -20, 973, etc. Here, the assignment will work as expected whatever the value is (unless it's of another datatype) but the component might fail at runtime since a volume obviously can never be NaN or null for exemple. 2) Validate the value and, if it is null, undefined or NaN, do nothing. If it is lower than 0, set it to 0. If it is higher than 100, set it to 100 ? Here, the assignment might not work as expected if the valus is undesired (like null or NaN for exemple) so this will prevent the component from failing at runtime but the user won't know that his assignment wasn't succesfull. 3) Validate the value and it it's an undesired value, throw an error ? Here, the component prevents the user from assigning and undesired value like NaN or undefined and the user is alerted of the failure at runtime provided that he used a try catch statement. What do you guys think ? __ 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] Flash Video : Relationship between data rate and file size doesn't work ?
I don't know if I'm missing something here but what's the deal with Flash Video data rate and file size? Here's my understanding on Flash Video encoding: When I specify 300 kilobits/second for the video data rate and 50 kilobits/second for the audio data rate, I should get and FLV file that NEVER goes beyond 350 kilobits/second. So if I encode a 30 second video with those settings, I should get and FLV file that weighs 1.28 MegaByte. If I decide to double the frame size for exemple (from 320x240 to 640x480), I should still get the same file size (1.28 MegaByte) but the image quality should obviously be badly affected. That's not the case. Can someone please help me shed some light on this data rate vs. file size dilemma? __ 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] RE: Flash Video : Relationship between data rate and file size doesn't work ?
Thanks for the replies. However, it still doesn't make sense to me! A 30 seconds video encoded with a total data rate (video + audio) of 700 kilobits/second should result in an FLV that weighs 2.56 MegaBytes no matter what the other settings are. But that's not the case. If I encode that 30 second video @ 700 kilobits/second and try to adjust the other settings (keyframe interval, frame size, fps, etc.) differently, I get FLV files that vary in terms of total file size depending on those other settings. Shouldn't all those FLV files be 2.56 Megabytes but vary in terms of image quality ONLY and not in terms of file size? Please help!!! __ 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] Best way to learn OO Analysis and Design with ActionScript
Hi everyone! I'm having real difficulty understanding how to properly architect and structure Flash applications using ActionScript 2.0. I've read Colin Moock's excellent Essential ActionScript 2.0 and several other books and articles on the topic and while I can safely say that I do understand the syntax, I can't seem to write an entire application using OO design mainly because I can't figure out what should be in a class, which class should do what, which class should extend MovieClip, which class should use composition instead, which class should start the application, etc. I'm sure a lot of excellent Flash developpers in this mailing list didn't have previous coding experience before they started Flash (like myself) and managed to become the ActionScript 2.0 OO pros aroud here. Any help / tips ? __ 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
Re: [Flashcoders] Shared fonts : method with 2 files seems faster that method with 1 file
2- Works with faux bold and faux italic. Excuse my ignorance, but what is a faux ? Fake Bold or Fake Italic, i.e. when the font itself doesn't include any italic or bold versions of the letters/glyphs. Won't the render be ugly ? Like device fonts No. Faux bold and faux italic are the equivalent of pressing the Bold and Italic buttons for a textfield in the Flash property inspector or applying myTextField.bold or myTextField.italic via actionscript. A lot of fonts do not have special versions of the font specifically for bold versions, italic versions and bold italic versions. So basically, if I take the font Arial (not the device font _sans) in a textfield and use myArialTextField.bold, I'm basically using faux bold. If instead I use Arial Bold which is a separate font, that's real bold. No faux fonts in one lib shared font technique. I wonder in the other btw. Well, from what I can see, using the 1 SWF file per shared font method, Flash only exports the complete font set (or only selected glyphs if you use SWFmill) and not the additional info (with the added file size) to render the font in faux bold, faux italic, or faux bold AND italic. That makes perfect sense. However, it means that you cannot use mySharedFontTextField.bold or mySharedFontTextField.italic when using the 1 SWF file per shared font method (the method developped by Zarate and you). So I guess that using this method, if you wanted a font to display normal and bold, you could only use a font that has a separate version of the font for bold (like Arial and Arial Bold, which are 2 separate font files) and include both fonts in the shared libraries. If you want to use some crazy font you founded on the Internet which has no bold or italic version, then I think there's no way you can make it bold since this method doesn't support faux bold or faux italic. The shared lib isn't loaded twice. You just have to wait for a delay frame, in order to use it. That's all. Actually I'm pretty sure it does load twice but I'd be glad to hear that I'm wrong. Let me show you what I mean. Download the zip file found on Zarate's website here : http://www.zarate.tv/articulos/shared_fonts/files/Zarate_Shared_Fonts.zip Unzip the files. There will be a couple of folders that show how to use the 1 SWF file per shared font method but the simplest example is in the folder called Sencillo. In that folder, open the file index.fla. This file USES the shared library. So now, export (CTRL+ENTER) the file index.fla in the Flash IDE, then make sure you can see the bandwith profiler (View Bandwidth Profiler) in the Flash debug player, set your download settings (View Download Settings) to 14.4K so you can really view what's going on and then start the process by clicking on simulate download (View Simulate Download). Now, closely monitor what's going on in the bandwidth profiler. If you look closely, you'll see that the SWF file that contains the shared font that is being loaded (the file is called quadaptor.swf) ... well it's actually being loaded twice. The file is only 7K but you can clearly see that the 7K get loaded twice (from 0% to 100% ... two times). So that's why I was king of leaning forward the 2 SWF file per shared font methods used by Ivan and Bernard because even though there are 2 files instead of one by shared font: 1) You have total control over which glyphs are included directly in the Flash IDE without having to use a 3rd party tool like SWFmill. 2) You CAN use faux bold, faux italic and faux bold italic provided that you included them (with the added file size of course). 3) The shared SWF file that gets loaded is only loaded once which is the way it should be. Once again, these are the conclusions I've come to after testing both methods so I would like to hear other's comments on this. If I'm wrong about something here, please let me know. __ 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] Shared fonts : method with 2 files seems faster that method with 1 file
I've been doing some testing with sharded fonts lately because they are a key part of a project I'm working on right now. So far, here's what I've learned by searching the FlashCoders archive and reading blog posts. Shared fonts are a mess to work with. But, as of Flash Player 6.0.65.0, it's not as bad as it was before because of the new multi-tier runtime shared libraries that were added to that release of the Flash player. Now, two similar but still somewhat different methods for using sharde fonts have evolved around thos new multi-tier shared libraries. Ivan Dembicky (http://www.sharedfonts.com/eng/) came up with a solution that use 2 SWF files per shared font. Bernard Visscher (http://chattyfig.figleaf.com/pipermail/flashcoders/2006-May/166619.html) crafted his own solution that also uses 2 SWF files per shared font based on Ivan's solution. Zarate (http://www.zarate.tv/articulos/shared_fonts/index.php) came up with a solution that use only 1 SWF file per shared font. Erixtekila (http://www.v-i-a.net/blog/archives/43.html) crafted his own solution that also uses only 1 SWF file per shared font based on Zarate's work. So after testing all 4 solutions that all these bright people came up with, here's the conclusion I've come to. The 1 SWF file per shared font methods are obviously less of a hassle since we only have 1 file instead of 2 per shared font. However, faux bold and faux italic can't be used and you can't select exactly the glyphs you want included and thoses that you do not want included. I think it's possible to select glyphs using Erixtekila's method which uses SWFmill. I don't know if his method makes it possible to use faux bold and faux italic though. The 2 SWF file per shared font methods initially seemed more work for nothing since it uses 2 SWF files instead of one per shared font but that will be the method I will be using from now on for the following reasons (feel free to correct me if I'm wrong): 1- More control over which glyphs are included. 2- Works with faux bold and faux italic. 3- This is the main reason why I'll use the 2 SWF method over the single SWF method... The 2 SWF methods loads a lot faster in the tests I did. With the one SWF method, the SWF is loaded (let's say it's 15kb) and then it seems to reload the 15kb before the shared font becomes available. But in the 2 SWF method, the SWF gets loaded immediately and the 15KB are only loaded once just before the shared font becomes available. Hope this will help others who are having trouble with shared fonts. __ 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
Re: [Flashcoders] Text link on hover
You wish as been granted :) You can call another actionscript function from within a dynamic textfield by setting it's html property to true and using asfunction within the anchor tag like this : tfMyTextField.html = true; tfMyTextField.htmlText = a href=\asfunction:fMyFunction,sMyParameter\/a; where fMyFunction is the name of the function you want to call when the user clicks the link and sMyParameter is a parameter to pass to that function. Only one parameter can be passed to the function. I wish you were wrong too =[ Thanks though Mick M. On 6/8/06, Jim Kremens [EMAIL PROTECTED] wrote: Wait, I know you can get hovers, but can you catch the hover 'event' and use it to, for example, call another function? I think that was his question, and as far as I know, there is no 'onHover' event. I'd like to be wrong... Jim Kremens On 6/8/06, Mick G [EMAIL PROTECTED] wrote: Yes, you'll need to set up style in Flash... A:hover is supported in Flash. http://www.actionscript.org/tutorials/beginner/css_in_flash/index.shtml On 6/9/06, elibol [EMAIL PROTECTED] wrote: Does anyone know if it's possible to trigger an event with a text link hover state? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 -- 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 __ 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] What is a wrapped RTMP server in NCManager.as
I'm looking at the NCManager class of the FLVPlayback component and there's a method called parseURL that parses the URI of the file to play to determine if it's a prog. download or a streaming file, relative or absolute, etc. At one poitn in this method, there is the following comment followed by an if statement that checks for a ? character: // handle wrapped RTMP servers bit recursively, if it is there Does anyone know what this is? What is a wrapped RTMP server? Why check for the query delimiter ? ? __ 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] Poll: FlashObject or UFO
Let me start by saying a big thank you to both Geoff Stearns and Bobby Van Der Sluis for their great work and for taking the time to maintain and share their Flash detection routines with the rest of us. As we all know by now, both FlashObject and UFO are a great way of detecting the presence and version of the Flash player and they both have the added benefit of fixing the new Eolas mess in Internet Explorer. I am currently using FlashObject over UFO simply because I've heard of it before UFO and I see no reason to switch since FlashObject does what I expect it to do, which is detecting Flash and fixing Eolas. I would like to know which one everyone else uses AND WHY. And please, let's keep this post constructive by only mentionning why YOU choose one method over the other and respecting other people's choices and opinions. If you don't agree with what someone else says about a particular method, you can say so but please say why with facts, not just opinions. __ 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