Re: [Flashcoders] AS2 and watch ...
Well, I use it sometimes as an update broadcast mecanism. Let's say I have some value objects floating around, and when I change a property on any of these, I use the watch to broadcast an event if for example the value has changed (by testing the newValue and the oldValue). It can be sometimes useful for some little and simple tasks that don't rely on a heavy process, like applying watches on global vars. Of course, you can do all of this without using the watch function, it's just a matter of design, choice and code comfort :) Julien Stephen Ford a écrit : How often do you use 'watch' in your applications?. It seems pretty powerful to me, and I've only just discovered it. Any thoughts on this. Cheers, 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 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Custom Components getting squashed?
Hi folks. I apologise in advance if this is a FAQ, but looking at the FlashCoders Wiki and the mailing list archives yielded no satisfactory answers, so I'll take a stab. I have made a custom component, based to the 'Dial' example from the MM Docs, and the problem is, when I test the movie, the components appear to be squashed. Screenshot: http://haikal.freeshell.org/stuff/sqashed_components.png If you look at the stage, and the library, you'll see that the component has the correct dimensions, but when I test the movie, it's not only smaller, but skinnier as well. Aside from that, the component works just fine. Thanks in Advance. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 and watch ...
Hello :) You can use watch with a MovieClip if you want create components with an event when you use the enabled property for example :) import mx.utils.Delegate ; class MyButton extends MovieClip { // o Constructor public function MyButton() { this.watch(enabled, Delegate.create(this, _changeEnabled) ; } // -o Init Broadcaster static public var INIT = AsBroadcaster.initialize(MyButton.prototype) ; // -o Public Methods public function up():Void { this.gotoAndStop(up) ; // first frame in your component this._alpha = 100 ; } public function disabled():Void { this.gotoAndStop(disabled) ; // the skin when you button is disabled this._alpha = 60 ; } // o Private Methods private methods _changeEnabled( id , oldValue, newValue) { trace(id : + id + , change + oldValue + to + newValue) ; if (newValue) { up() ; } else { disabled() ; } return newValue ; } private function onPress():Void { broadcastMessage(onClick, this) ; } } In flash you create a MovieClip symbole with AS2 class MyButton ! Try this : myButton.addListener(this) ; this.onClick = function ( who:MovieClip ) { trace(Click : + who) ; } Key.addListener(this) ; onKeyDown = function () { myButton.enabled = ! myButton.enabled ; // press key to test please :) } EKA+ :) 2006/7/6, Julien Vignali [EMAIL PROTECTED]: Well, I use it sometimes as an update broadcast mecanism. Let's say I have some value objects floating around, and when I change a property on any of these, I use the watch to broadcast an event if for example the value has changed (by testing the newValue and the oldValue). It can be sometimes useful for some little and simple tasks that don't rely on a heavy process, like applying watches on global vars. Of course, you can do all of this without using the watch function, it's just a matter of design, choice and code comfort :) Julien Stephen Ford a écrit : How often do you use 'watch' in your applications?. It seems pretty powerful to me, and I've only just discovered it. Any thoughts on this. Cheers, 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 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Compiling just from AS3 code, no mxml files
Hi again, I was asking for a little bit more info on: you would have to manually bootstrap a lot of the application initialization code that Flex handles (something which would be rather complex) Are you talking about initializing something to allow Events to work or stuff like that? Thanks again for you time. Juan On 7/5/06, Mike Chambers [EMAIL PROTECTED] wrote: If you want to create a SWF that doesnt use the Flex Framework: --HelloWorld.as-- package { import flash.display.Sprite; public class HelloWorld extends Sprite; { public funciton HelloWorld() { trace(Hello World); } } } Then compile like so: mxmlc HelloWorld.as That will compile a SWF. If you want to use the Flex Framework, then you : a. have to use the technique I describe below b. have to take the size hit that using the framework entails Hope that helps... mike chambers [EMAIL PROTECTED] On Jul 5, 2006, at 2:30 PM, Zárate wrote: Hi again, Thanks Mike for the info but could you explain it a little bit more or point us to some place describing the process? I´m fairly sure I won´t be the only one trying to create swfs without the Flex Framework. I haven´t done the test yet (I will, sure) but, which is the less size possible of a Flex application? I still have to take care about weight size in some projects. I know the Flex Framework is a boost for some applications (and free!) but maybe it´s still too heavy for ultra-light projects. Thanks, On 7/5/06, Mike Chambers [EMAIL PROTECTED] wrote: There is not support for using the Flex Framework in an AS only project. While it is theoretically possible, you would have to manually bootstrap a lot of the application initialization code that Flex handles (something which would be rather complex). If you want to play with the framework, but don't want to layout your app with mxml, then the easier way is to create a simple mxml file that contains an application tag, and a script tag that then points to your code. This way, the application tag will take care of all of the initialization, and you can then leverage the framework via ActionScript. If you just want to use ActionScript and no framework, then mxmlc will also compile an .as file. Hope that helps... mike chambers [EMAIL PROTECTED] On Jul 5, 2006, at 11:58 AM, Zárate wrote: Hi all, I want to start playing with AS3 so I´ve downloaded the Flex 2 SDK from Adobe Labs. I don't want to use Flex Builder, I'm interested in the free compiler. I want to keep living without the Flex Framework but seems that the mxmlc compiler *needs* an mxml file (which, by the way, make sense): The basic syntax of the mxmlc utility is as follows: mxmlc [options] -file-specs target_file|dir [...] The file-specs options is the default option, and it is required to have a value. It refers to the target MXML file that mxmlc compiles into a SWF file. How do I create a SWF just from AS3 code without MXML files, aka Flex framework? Is this possible? Am I missing something important here? Cheers, Juan -- Juan Delgado - Zárate http://www.zarate.tv ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 -- Juan Delgado - Zárate http://www.zarate.tv ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 -- Juan Delgado - Zárate http://www.zarate.tv ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:
[Flashcoders] Flash 9 AS3 Classpath
Dear List members, I have downloaded Flash 9 Public Alpha, and I can see I can write actionscript 3 in that. The thing is, Everybody knows that the autocompletion system of the flash IDE sucks If I want to use FlashDevelop or SE|PY actionscript IDEs, I will need to point at the classpath for the actionscript 3 classes. Does anyone know where that is ? I am running Windows 2003 (Should be like XP and 2000). Please help ! Regards, Yehia ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] (no subject)
I encountered this strange quirk recently as well. I found the most reliable solution is to duplicate your project folder, open and recompile from that folder, close and continue working from your original folder and everything is fine (for a while)! No amount of deleting ASO cache solves it (in fact, some say it compounds the problem). Here is an extensive outline of the problem which a) doesn't seem to provide a solution (other than saying you can safely ignore the error) and b) doesn't suggest how to prevent the problem arising. http://ericlin2.tripod.com/as2/conflict.html If anyone can shed any more light on how to prevent this quirk, I'd be grateful. HTH A. On 7/6/06, grimmwerks [EMAIL PROTECTED] wrote: Curious - can't figure out where there's a second example of the classes floating around -- any suggestions? **Error** C:\Documents and Settings\grimmwerks\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\com\grimmwerks\bakery\NumericStepperCell.as: Line 13: The name of this class, 'com.grimmwerks.bakery.NumericStepperCell', conflicts with the name of another class that was loaded, ' com.grimmwerks.bakery.NumericStepperCell'. class com.grimmwerks.bakery.NumericStepperCell extends UIComponent { ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash 9 Public Alpha - Blaze Preview
I really hope I'm missing something... Yes, you are missing the fact that this is just a technology preview. You should expect things to work unexpectedly, and you should report issues to Adobe, instead of ranting on a mailing list. If you need a production-ready AS3 editor, use FlexBuilder2. Peter On 6/28/06, neo binedell [EMAIL PROTECTED] wrote: Is it just me or is it rather pointless that AS files containing AS3 classes opened in the IDE default to AS2 compilation? Now maybe I'm just a moron but CTRL-T and it it spews out a long list of errors. Alt-enter and run it and everything is fine. Do I have to publish the fla everytime I want to check the AS3 for compile errors? I really hope I'm missing something... ~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
Re: [Flashcoders] AS3 - Missing
On 7/5/06, Chris Velevitch [EMAIL PROTECTED] wrote: On 7/5/06, Marcos Neves [EMAIL PROTECTED] wrote: I have a A world map where each country is a movieclip. And every one will have the same behavior. Before flash 9, what I did is assign a class called Country to each movie clip. This way, I can easy update the behavior of all at the same time. Did you do this in AS2 or via the library linkage properties? Library linkage With Flash 9, I can´t assign a class with the same name and can´t specify a base class to the Auto Generated extends. I haven't used Flash 9 alpha so I don't know Auto Generated is. If you specified the class name via library linkage properties and Flash 9 doesn't allow it, it sounds like a bug. Yes, flash 9 doesn´t allow me assign the class Country to more than one MovieClip. When ask for AutoGenerate, a check box would enable an different base class, and I would write on the textbox. So a movieClip called Brazil, would have a autoGenerated class called Brazil that extends the class Country, witch would be my base class. Does the Brazil class redefine any methods of Country? AutoGenerate works like this: If you give a Brazil name to a movieClip and don´t assign a class to it, Flash auto generate a class called Brazil wich you can do new Brazil in your code to create that movieClip. 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
RE: [Flashcoders] AS2 and watch ...
Or a simple linedraw, I've used the watch once with the tween class. var test_mc:MovieClip = this.createEmptyMovieClip(test_mc,1); test_mc.lineWidth = 0; var f:Function = function(prop, oldVal, newVal){ this.clear(); this.lineStyle(1,0x00); this.moveTo(0,25); this.lineTo(newVal,25); return newVal; } test_mc.watch(lineWidth,f); this.onEnterFrame = function(){ test_mc.lineWidth++; } Bernard -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens eka Verzonden: donderdag 6 juli 2006 9:40 Aan: Flashcoders mailing list Onderwerp: Re: [Flashcoders] AS2 and watch ... Hello :) You can use watch with a MovieClip if you want create components with an event when you use the enabled property for example :) import mx.utils.Delegate ; class MyButton extends MovieClip { // o Constructor public function MyButton() { this.watch(enabled, Delegate.create(this, _changeEnabled) ; } // -o Init Broadcaster static public var INIT = AsBroadcaster.initialize(MyButton.prototype) ; // -o Public Methods public function up():Void { this.gotoAndStop(up) ; // first frame in your component this._alpha = 100 ; } public function disabled():Void { this.gotoAndStop(disabled) ; // the skin when you button is disabled this._alpha = 60 ; } // o Private Methods private methods _changeEnabled( id , oldValue, newValue) { trace(id : + id + , change + oldValue + to + newValue) ; if (newValue) { up() ; } else { disabled() ; } return newValue ; } private function onPress():Void { broadcastMessage(onClick, this) ; } } In flash you create a MovieClip symbole with AS2 class MyButton ! Try this : myButton.addListener(this) ; this.onClick = function ( who:MovieClip ) { trace(Click : + who) ; } Key.addListener(this) ; onKeyDown = function () { myButton.enabled = ! myButton.enabled ; // press key to test please :) } EKA+ :) 2006/7/6, Julien Vignali [EMAIL PROTECTED]: Well, I use it sometimes as an update broadcast mecanism. Let's say I have some value objects floating around, and when I change a property on any of these, I use the watch to broadcast an event if for example the value has changed (by testing the newValue and the oldValue). It can be sometimes useful for some little and simple tasks that don't rely on a heavy process, like applying watches on global vars. Of course, you can do all of this without using the watch function, it's just a matter of design, choice and code comfort :) Julien Stephen Ford a écrit : How often do you use 'watch' in your applications?. It seems pretty powerful to me, and I've only just discovered it. Any thoughts on this. Cheers, 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 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] euro symbol fight
Who controls my_flash_service.php. That is the spot where the escaping should be done. Ron Gabriel wrote: Is a good idea, but I cannot do that because, most of the data I get, I retrieve it from the database directly trough the ORM (pear), so I can't touch the data. the way it comes is: DB-ORM-my_flash_service.php-AMFPHP gateway-myApp.swf any idea? thanks! GaB David Rorex wrote: 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 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 and watch ...
I use 'watch' for exactly this purpose - drawing differences between an enabled and disabled MovieClip by watching the 'enabled' property. Cheers, Ian On 7/6/06, eka [EMAIL PROTECTED] wrote: Hello :) You can use watch with a MovieClip if you want create components with an event when you use the enabled property for example :) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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
I access it with AMFPHP, are you saying I have to modify every single object returned from AMF? thanks Ron Wheeler wrote: Who controls my_flash_service.php. That is the spot where the escaping should be done. Ron Gabriel wrote: Is a good idea, but I cannot do that because, most of the data I get, I retrieve it from the database directly trough the ORM (pear), so I can't touch the data. the way it comes is: DB-ORM-my_flash_service.php-AMFPHP gateway-myApp.swf any idea? thanks! GaB David Rorex wrote: 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 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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
RE: [Flashcoders] BitmapData and security.allowDomain
Yes. This is what we done so far. Fopen(get.image.php?url_to_image=image) BTW. xml and images is loading ok arcoss all domains. I am talking about a cross-domain scripting. The loaded JPEG acts exactly as SWF file. When I am loading SWF from a remote domain with System.security.allowDomain(*) inside it It creates a bitmap clone of what I see. All JPEG fails. I am unable to access bitmapData of remotely loaded JPG image. The reason why it happening described here ActionScript classes security (System.security) allowDomain (security.allowDomain method) Take a look at the table. JPEG acts the same way. I think it should not. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeh Fernando Sent: Wednesday, July 05, 2006 4:20 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] BitmapData and security.allowDomain There is an issue with loading an extermal JPEGs form a remote server. It seems to be a bug. I am loading a JPG image to a movie clip and cloning it using Bitmap.draw(input_mc). (SWF is hosted on domain A, JPG hosted on domain B.) In this case loaded JPEG behaves exactly as an SWF loaded from a remore server %\ (cross-domain data loading) This means that it wount permit scripting it %| So I am getting only white screen instead of a bitmap representation of a symbol beeing cloned using BitmapData. Since I can't add System.security.allowDomain(*); to a JPEG file The question is: - any ideas how to access BitmapData of a remotely downloaded domain (NOT the same as where SWF hosted ) Even with the cross domain policy xml file it won't work. The only way (that I know) is creating a server-side script (say, a simple script in PHP) on your server that reads the remote file and outputs it. That way, instead of loading the JPEG file, you load the local PHP script, but passing the remote JPEG as the parameter. It will make your tunnel all image viewing through your server, but it works. - Zeh ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] euro symbol fight
If you want it to work It is probably easier to do every single one than just some. Ron Gabriel wrote: I access it with AMFPHP, are you saying I have to modify every single object returned from AMF? thanks Ron Wheeler wrote: Who controls my_flash_service.php. That is the spot where the escaping should be done. Ron Gabriel wrote: Is a good idea, but I cannot do that because, most of the data I get, I retrieve it from the database directly trough the ORM (pear), so I can't touch the data. the way it comes is: DB-ORM-my_flash_service.php-AMFPHP gateway-myApp.swf any idea? thanks! GaB David Rorex wrote: 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 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 9 Public Alpha ...
Whilst I realize this up date to the Flash 8 IDE in sonly an Alpha - I'll be somewhat pissed if the final release delivers the same message I just received. 'Adobe Flash 9 Public Alpha requires that your computer be running Windows XP' Are Adobe for real ? Some people in this world are running 2000 still If this has been covered already then I'll crawl back under my stone :) Pete ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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
Maybe you could work with the AMFPHP developers and have the sollution become part of the distribution. It sounds like a problem others may have, and the AMFPHP developers are very receptive to improvements. --Greg On 7/6/06, Ron Wheeler [EMAIL PROTECTED] wrote: If you want it to work It is probably easier to do every single one than just some. Ron Gabriel wrote: I access it with AMFPHP, are you saying I have to modify every single object returned from AMF? thanks Ron Wheeler wrote: Who controls my_flash_service.php. That is the spot where the escaping should be done. Ron Gabriel wrote: Is a good idea, but I cannot do that because, most of the data I get, I retrieve it from the database directly trough the ORM (pear), so I can't touch the data. the way it comes is: DB-ORM-my_flash_service.php-AMFPHP gateway-myApp.swf any idea? thanks! GaB David Rorex wrote: 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 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Flash 9 Public Alpha - Blaze Preview
Hi peter, not a rant at all, and yes I am aware that it's a tech preview. My question was rather whether it did support it and I was doing something stupid, and I do believe I am allowed an opinion ;p I do use flex builder however so no harm done. ~neo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Hall Sent: 06 July 2006 01:45 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Flash 9 Public Alpha - Blaze Preview I really hope I'm missing something... Yes, you are missing the fact that this is just a technology preview. You should expect things to work unexpectedly, and you should report issues to Adobe, instead of ranting on a mailing list. If you need a production-ready AS3 editor, use FlexBuilder2. Peter On 6/28/06, neo binedell [EMAIL PROTECTED] wrote: Is it just me or is it rather pointless that AS files containing AS3 classes opened in the IDE default to AS2 compilation? Now maybe I'm just a moron but CTRL-T and it it spews out a long list of errors. Alt-enter and run it and everything is fine. Do I have to publish the fla everytime I want to check the AS3 for compile errors? I really hope I'm missing something... ~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] Flash 9 Public Alpha ...
Given that MS no longer support 2000 themselves, why are you still using it? Just curious... Pete Hotchkiss wrote: Whilst I realize this up date to the Flash 8 IDE in sonly an Alpha - I'll be somewhat pissed if the final release delivers the same message I just received. 'Adobe Flash 9 Public Alpha requires that your computer be running Windows XP' Are Adobe for real ? Some people in this world are running 2000 still If this has been covered already then I'll crawl back under my stone :) Pete ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] euro symbol fight
Maybe you want to take a look at this thread: http://sourceforge.net/forum/message.php?msg_id=2147438 -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Ron Wheeler Verzonden: donderdag 6 juli 2006 15:27 Aan: Flashcoders mailing list Onderwerp: Re: [Flashcoders] euro symbol fight If you want it to work It is probably easier to do every single one than just some. Ron Gabriel wrote: I access it with AMFPHP, are you saying I have to modify every single object returned from AMF? thanks Ron Wheeler wrote: Who controls my_flash_service.php. That is the spot where the escaping should be done. Ron Gabriel wrote: Is a good idea, but I cannot do that because, most of the data I get, I retrieve it from the database directly trough the ORM (pear), so I can't touch the data. the way it comes is: DB-ORM-my_flash_service.php-AMFPHP gateway-myApp.swf any idea? thanks! GaB David Rorex wrote: 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 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] [OT] Art of stress-free productivity
Hello List! Have anyone around ever read (or is reading) any of David Allen´s books? I´m currently reading The Art of stress free productivity and it is being vital for my routine as I have a very strong tendency to procastinate things... this book and it´s method is helping me to change many paradigms that I´ve had for many years and that were really preventing me from getting the things I wanted in life (achieving my objetives, finish projects, etc). This article also helped change some old paradigms and think in a more efficient manner: http://dirtsimple.org/2005/08/multiple-self.html I also appreaciate logosophy´s way of seeing the world: http://www.logosophy.net/ Just thought I´d share with the rest of you... Have a good day! - Marcelo. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] 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] Flash 9 Public Alpha ...
I realize this has the potential to get off-topic real fast, so can you send me a link off-list to info on MS not supporting 2000? They will be stopping public support for 98, 98SE, ME, and XP SP1, but I've never seen anything about 2000. Derek Vadneau - Original Message - From: Nick Weekes [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, July 06, 2006 10:24 AM Subject: Re: [Flashcoders] Flash 9 Public Alpha ... Given that MS no longer support 2000 themselves, why are you still using it? Just curious... ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Telnet example of Flash 9 preview
I am curious did the telnet example included with Flash 9 Preview work for you guys? I didn't got it working, I changed the instructions to the locla webserver running on port 80. Nothing only a blinking cursor. I want to use it to make plugin for CodeSite to support messaging from outside a online flash website. Yours, Weyert de Boer ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] NetConnection, Load Movie and AOL
Yes, three seemingly unrelated things, but I am running into a couple of issues and was curious about something. In loading an external FLV using NetConnection (not from FLash Media Server), I was under the impression that is essentially just pulling the file via HTTP, not creating a proxy or anything like that. Is this true or false? The reason I ask, is because in what i am testing, loadMovie of a swf works fine, but loading the FLV fails. So this leads me to the AOL part. The NetConnection doesn't seem to work within the AOL environment because every byte has to go through, in and out, their servers. So, for some reason, NC isn't working. Has anyone here ever developed for AOL and run into this problem? If so what was the work around? I'm trying to avoid flipping over to delivering video via embedded into a swf. ANy help is much appreciated. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] AS3 faster ??
Hi people, they say that AS3 is 10 times faster than AS2 but what does that really means ? Does that mean that my movies will play faster even if I have a few dozens movieclips with graphics flying all over the screen? Or does it just mean that my .swf will be compiling 10 times faster? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] external api and RoR
Has anyone out there had experience using flash external api to communicate successfully with ruby on rails ajax api? I know I can register js function and that ruby wraps some js but I am not sure as to whether or not I an integrate the two. Doug Tangren [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] euro symbol fight
I access it with AMFPHP, are you saying I have to modify every single object returned from AMF? Are you using UTF-8? And if not, why not? ryanm ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Flash 9 Public Alpha ...
If you find the speed of technology to be too fast for you, or you find Moore's law inconvenient, perhaps you should get a job working for the government or a bank (I think they're up to the Flash 6 player by now), or choose a different career path, like plumbing, carpentry or anything that doesn't involve computers. I've often thought working in a toll booth would be a nice change. Dave - Adobe Community Expert www.blurredistinction.com http://www.adobe.com/communities/experts/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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?
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. I need a persistant connection (socket server), and I'm looking at Oregano right now. But I get resistance from my executives about using open source/free software because it has no support, and I can't show them examples of high-profile, data-heavy, enterprise apps that use it. They would rather pay $20k per cpu for FDS2 and have support from Adobe than get Oregano for free. Unless there is a compelling reason not to. I'm looking for a compelling reason to use something smaller and lighter than FDS2. ryanm ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Unable to Connect to FCS 1.5 via AS 3.0
I can't seem to connect to FCS 1.5; I continue to recieve NetConnection.Connect.Failed messages. package { import flash.display.Sprite; import flash.net.NetConnection; import flash.events.NetStatusEvent; public class NetConnectionExample extends Sprite { private var conn:NetConnection = new NetConnection(); static private var SERVICE_URI:String = rtmp://fcads.mgnetwork.com/mgeneral/flash/ads/; public function NetConnectionExample() { conn.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus); conn.connect(NetConnectionExample.SERVICE_URI, false); } private function onNetStatus (event:NetStatusEvent) : void { trace(event.info.code); } } } Am I missing 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] AS3 faster ??
Of course it will be faster only if you port the code over to AS3 (otherwise it will still use the old AS2/1 VM1). I posted about the 3D engine I wrote and the speed increase I got when I converted it to AS3 a few days ago so you can check that out as an example of just how much faster it is ;p ~neo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Matte Sent: 06 July 2006 05:47 PM To: Flashcoders mailing list Subject: [Flashcoders] AS3 faster ?? Hi people, they say that AS3 is 10 times faster than AS2 but what does that really means ? Does that mean that my movies will play faster even if I have a few dozens movieclips with graphics flying all over the screen? Or does it just mean that my .swf will be compiling 10 times faster? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] 50 stars blinking... app gets too slow
Well even if you did not have access to it you could just calc the color intensity yourself and use a color transform or if you were lazy just create a tween (converted to keyframes) going from white to black and set an overlay color. ~neo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Count Schemula Sent: 04 July 2006 09:22 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] 50 stars blinking... app gets too slow Also, FWIW, I think I've heard that brightness is a lot less processor intensive than alpha. Assuming that we have access to the brightness property. On 7/4/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote: Very good example Bernard. Thank you :) Marcelo. On 7/3/06, Weyert de Boer [EMAIL PROTECTED] wrote: Works well if you ask me. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] AS2 and watch ...
Hi, i never used it, mostly because I wondered about performance stuff and found it to be making my code a bit obscure (although once it has reached black, it doesnt seem to go beyond). I don't mean to hijack this thread, but does any of you know whether the watch thing has a high performance cost or not? greetz Hans On 7/6/06, Ian Thomas [EMAIL PROTECTED] wrote: I use 'watch' for exactly this purpose - drawing differences between an enabled and disabled MovieClip by watching the 'enabled' property. Cheers, Ian On 7/6/06, eka [EMAIL PROTECTED] wrote: Hello :) You can use watch with a MovieClip if you want create components with an event when you use the enabled property for example :) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] USB Video device driver virtual rtsp.
I am having some issues getting my RTSP stream into flash and still have the ability to layer objects on top of the video. My thought was to write a virtual camera driver that flash could connect. Possibly even mimic one of the supported drivers. The have the application stream rtsp to be sent to flash. Has anyone every worked on one of these drivers that they could point out what was necessary for flash to pick up the device? If anyone is willing to do consulting work on this application I am willing to pay. Supported Camera's http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16453 Thanks; Wade Arnold ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] jigsaw puzzle piece algorithm
Hi, i just wrote code to create puzzlepieces on the fly, and while I am not allowed to give out code, I can tell you how I did it. It only answers the 'infamous jigsaw pattern' though, not the bitmap part. -I drew one side using a simpledrawing app written in flash, like mousedown is an anchor point and you click enough times to draw one side of the puzzle piece. Pressing space gave me back the point data. -To actually draw a fluid line through the points, I used the principe of curveTo's with the averaged anchor points -once you have the data to draw one side, you can scale, flip, rotate, move it etc to create nubbins, cutouts, flatsides and on everyside, all the way around until you have a solid puzzle piece, usable as a mask. -you can even use the simpledrawing app to draw a few different sides, to make it more interesting, so you have a sidetype 1 and a sidetype 2 for example, or you could use the basic data you had from step one, and autogenerate variations, by adding some random offset to each point. -create the random puzzle comes down to matches the sidetypes, and inverting the nubbins, cutouts.. Im sorry I can't help you out further, but I hope at least this part was helpfull. greetz Hans On 7/6/06, Adrian Lynch [EMAIL PROTECTED] wrote: This was done a while back, but having it uniform doesn't work too well: http://www.halestorm.co.uk/jigsaw/ The innie-outie bit's are done randomly and it looks ok, but I was hoping to find something that would cut it more like a regular jigsaw. Let us know if you find anything. Adrian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Peter Hall Sent: 06 July 2006 04:09 To: Flashcoders mailing list Subject: Re: [Flashcoders] jigsaw puzzle piece algorithm The optimal way is probably to use copyPixels() for each puzzle piece, setting the alphaBitmapData argument to an image that contains just the puzzle piece shape. That will effectively mask out the shape of the piece, but will perform a lot better than using a vector mask, as it will have modified the image, rather than apply the mask each time the screen area gets redrawn. Jigsaw puzzle pieces are likely quite small as vector graphics, so you might want to keep them as vector assets and then create the alphaBitmapData objects at runtime, as you need them. If you really want to generate the shape pieces dynamically, you could divide the image into rectangles (or randomly varying quadrilaterals, to keep it interesting), then have a selection of nobbly bits you could randomly choose to add or remove from each side of the pieces. Having someone draw these by hand seems like less hassle though - unless you need to create a lot of puzzles... Peter On 7/6/06, Guntur N. Sarwohadi [EMAIL PROTECTED] wrote: I'm working on a puzzle game in flash, much similar to jigsaw puzzles you see in gameHouse or such casual game publisher. I'm having a hard time trying to cut an image to make it as puzzle pieces in AS2. Currently I'm doing it the hard way, cloning bitmapData image, and masking portions of the image. Can you cut parts on an image using bitmapData methods? And does anyone know how to create the infamous jigsaw pattern to it as well? Many thanks, Guntur N. Sarwohadi ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 - Missing
Hi Marcos, Class names need to be unique. We will support the concept of a base class for library symbols in the Flash 9 timeframe. These base classes can be non-unique. I replied to a similar post in the Flash 9 ActionScript 3.0 Preview forum on Adobe Labs. http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=612threadid=1168686enterthread=y If you have issues specific to the AS 3 Preview, feel free to you're your questions at http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=72catid=612entercat=y Thanks, Nivesh On 7/5/06, Marcos Neves [EMAIL PROTECTED] wrote: I have a A world map where each country is a movieclip. And every one will have the same behavior. Before flash 9, what I did is assign a class called Country to each movie clip. This way, I can easy update the behavior of all at the same time. Did you do this in AS2 or via the library linkage properties? With Flash 9, I can´t assign a class with the same name and can´t specify a base class to the Auto Generated extends. I haven't used Flash 9 alpha so I don't know Auto Generated is. If you specified the class name via library linkage properties and Flash 9 doesn't allow it, it sounds like a bug. When ask for AutoGenerate, a check box would enable an different base class, and I would write on the textbox. So a movieClip called Brazil, would have a autoGenerated class called Brazil that extends the class Country, witch would be my base class. Does the Brazil class redefine any methods of Country? 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
Re: [Flashcoders] AS3 faster ??
neo binedell schrieb: I posted about the 3D engine I wrote and the speed increase I got when I converted it to AS3 a few days ago so you can check that out as an example of just how much faster it is ;p check out where? 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] Flash 9 Public Alpha ...
It's time to stop holding on to the past and live in the present. It's 2006. You've had four years to upgrade your OS (XP is built on 2000, after all). That's like 28 years for a dog. If you find the speed of technology to be too fast for you, or you find Moore's law inconvenient, perhaps you should get a job working for the government or a bank (I think they're up to the Flash 6 player by now), or choose a different career path, like plumbing, carpentry or anything that doesn't involve computers. There are plenty of reasons why people in corporate environments run Windows 2000 Workstation, that have nothing to do with the speed of technology or Moore's law (which has absolutely nothing to do with operating systems). Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 9 Public Alpha ...
I use Win2000 when working - there is no reason to use XP for us. I can upgrade to XP whenever I choose, I just know I'll have fewer problems using Win2000, etc. I don't think its a wicked thing to use an older OS if a new one poses no serious benefits I would be required to rely on. On 7/6/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: I've often thought working in a toll booth would be a nice change. Ba-dum-bum. Ching! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] problems selecting the first item in a combobox
im sure this issue has been covered somewhere before, but ive done a lot of searching and didnt come up with anything. i am using a recordset to populate a combobox (using DataGlue.bindFormatStrings...but i dont think this problem has anything to do with remoting). The first item in the recordset is the first option displayed in teh combobox...but you cant select that option. Well, you can select it, but it wont fire a change event, so you need to select something else first, then go back and select the first option. i tried listening for the 'open' event from the combobox, then setting its selectedIndex to null, but that doesnt work. i would up setting up these listener methods, but it seems like a long workaround: /** stores the currently selected index of the opening combobox we store it and compare it to the selectedIndex when the combobox closes, so that we can disptach a changed event even someone selects the same item */ function onCBOpen(evtObj:Object){ prevIndex = null; prevIndex = evtObj.target.selectedIndex; trace('prevIndex = '+prevIndex) } /** check if someone selected the same item as was previously selected, if it is manually dispatch an event */ function onCBClose(evtObj:Object){ if(prevIndex == evtObj.target.selectedIndex){ evtObj.target.dispatchEvent({type:'change', target:evtObj.target}); } } anyone have a better solution? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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: Unable to Connect to FCS 1.5 via AS 3.0
Worked it out. conn.objectEncoding = ObjectEncoding.AMF0; ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 9 Public Alpha ...
There are plenty of reasons why people in corporate environments run Windows 2000 Workstation, that have nothing to do with the speed of technology or Moore's law (which has absolutely nothing to do with operating systems). There are plenty of reasons I don't work in corporate environments. Bureaucracy is one of them. I use Win2000 when working - there is no reason to use XP for us. I can upgrade to XP whenever I choose, I just know I'll have fewer problems using Win2000, etc. So you're saying Windows XP has problems Windows 2000 doesn't? I could list problems 2000 has that XP doesn't. I don't think its a wicked thing to use an older OS if a new one poses no serious benefits I would be required to rely on. I don't think it's wicked either. At no point during my joke post, denoted by the winky at the end, did I imply that using an older OS is evil. But, you just proved the point. Serious benefits you be would required to rely on = Flash 9 IDE. Backwards compatibility is the bane of progress. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 9 Public Alpha ...
Stephen you're misreading the information on that link. MS still supports win2k they just don't sell NEW oem licences, that's a big difference. If and when they try to discontinue support, expect some serious legal reprecusions. They support it for good reason, if they don't do so (at least until vista if firmly entrenched in other ways) they will loose a lot of customers for vista as some folk will punt to other os's. From my standpoint. I'll upgrade from 2000 when there is a reason to that depends on operating system improvements, not it's ability as a MS marketing tool. What in the flash IDE should require xp? Nothing. From Adobe's standpoint, this is the ballgame. Can MS force folk to upgrade to vista, or can the internet continue to make what OS you use increasingly irrelevant. To follow the force folk to upgrade line is the worst thing they could do for their entire line of products. If win2k users have to upgrade to vista in order to use simple apps like the flash ide (because they will continue to refuse to upgrade to xp) then you basically give up half the battle, accelerate vistas growth, and increase the chances of MS success at keeping the internet from becoming the operating system. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 9 Public Alpha ...
Serious benefits you be would required to rely on = Flash 9 IDE. Ding! Nail... head... and so on... ryanm ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Flash 9 Public Alpha ...
There are plenty of reasons I don't work in corporate environments. Bureaucracy is one of them. Well good for you, you free spirit you. But standardization != bureaucracy. If you're responsible for a fleet of 10,000 workstations, you don't want to have to manage them individually. Because that would suck. So, that means that you typically use disk images, RIS, MOM, SUS/WSUS/Microsoft Update, etc, etc, to manage your workstations. Switching operating systems in a complex environment is a non-trivial thing. So you're saying Windows XP has problems Windows 2000 doesn't? I could list problems 2000 has that XP doesn't. Yes, XP has problems that 2000 doesn't, and vice-versa. XP has problems that Windows 3.1 doesn't. But again, that's neither here nor there. If you're using Windows 2000, there's not that much reason to upgrade in many cases, because they're so similar. Backwards compatibility is the bane of progress. I submit that there would be very little progress made in any field, if it required that you throw away all the assets you currently have. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 9 Public Alpha ...
Stephen You can see in the From it's spelled with a v. It's not like you heard my name and spelled it with a ph. You read the word right in front of you with a v and yet you still misspelled it. Astounding. ;) you're misreading the information on that link. And you're misreading the spelling of my name. ;) I've been joking on this pointless thread from the get go, but please, let's continue with our dissections, Doctor. :) What in the flash IDE should require xp? Nothing. So what you're saying is that there are no discernable differences between Windows 2000 and Windows XP. If that's the case, why don't you upgrade to XP since they're the same thing? In the words of Stephen Colbert I just nailed you. :) How do you know what the new Flash IDE is offering that would not require upping the requirements to Windows XP from 2000? Do you have a man on the inside at Adobe? Do you have ESP? Are you The Flash Whisperer? No. You can't be. Cesar Millan promotes living in the now and letting go of the past. From my standpoint. I'll upgrade from 2000 when there is a reason to that depends on operating system improvements, not it's ability as a MS marketing tool. From Adobe's standpoint, this is the ballgame I guess that would be Flash 9. You are insinuating that Adobe has some secret agreement with Microsoft because they are requiring XP. This conclusion is completely based on your assertion that there is no real difference between 2000 and XP, and your obvious underlying assertion that corporations are evil. Obviously, there ARE differences between the two OSes, and Windows XP offers more capabilities than 2000. If and when they try to discontinue support, expect some serious legal reprecusions. Considering that the vast majority of people out there are running Windows XP, it looks like Adobe is making a smart business decision. Losing the ostrich demographic doesn't seem to bother them. I mean, XP is built on 2000 so the new Flash IDE will probably run on 2000, but all Adobe is saying is they're not going to officially support it in case you run into trouble. Good luck with your lawsuit, though. :) Living in the past means you can't move forward. We could still construct buildings with asbestos. We could still use leaded fuel. You could be just like those stubborn Director developers years ago who refused to believe that Flash would take over and are now playing catch up (Danny, I promise I'm not talking about you). :) Please, hang on to 16 as long as you can. You make room for us forward-doers to achieve continued success and growth through your unwillingness to change. You're the Microsoft to our Google. And I know that comparison just burns you up because you're obviously somebody who views Microsoft as the evil empire and you're a member of the rebel alliance and Vista is like the Death Star. Or maybe you're a member of the Federation and Microsoft is like the Borg and Vista is like, I dunno, my Star Trek knowledge isn't as expansive as yours is. ;) then you basically give up half the battle, accelerate vistas growth, and increase the chances of MS success at keeping the internet from becoming the operating system. I wasn't aware I was involved in an epic battle to make the internet an operating system and overthrow the tyrannical Windows regime. I wasn't aware that the internet was capable of being an operating system. I also think a television is not a cable company, but what do I know? I'm an idiot and my lunch break is over. :) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Tree component
It inherits from list, which has a rowHeight property, so that might work. -josh On Jul 6, 2006, at 5:09a, Jose Maria Barros wrote: Hello, Its possible to control the separation(height) of each row/node of the tree component menu? i looked for setStyle attributes but there is only the indentation... 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] a swf asking itself : whereAmI ?
From the Flash Help panel: _url (MovieClip._url property) public _url : String [read-only] Retrieves the URL of the SWF, JPEG, GIF, or PNG file from which the movie clip was downloaded. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 9 Public Alpha ...
Sorry Steven, I can promise that I'm not burned up about anything. Just stating what I think is important. And I thought you were responding to Pete's comment more seriously than you apparently were. And I'm sorry to spell your name wrong. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] a swf asking itself : whereAmI ?
Thanks a lot ! Hugues. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ Sent: July 6, 2006 8:24 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] a swf asking itself : whereAmI ? From the Flash Help panel: _url (MovieClip._url property) public _url : String [read-only] Retrieves the URL of the SWF, JPEG, GIF, or PNG file from which the movie clip was downloaded. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Help for a Java Guy: Instantiating a MovieClip with a linked class and calling class methods
Okay, here's the drill. I have a MovieClip — call it FooA — that's been linked to an AS2 class — call it FooA_Class — (that extends MovieClip and does lots of other useful things.) In that MovieClip, I have another MovieClip — SubFooA — that's been exported and given a proper instance name. In FooA_Class there's an instance variable that has the same name as the instance name for SubFooA (that idiom is weird, but okay..) I would like to, in ActionScript, dynamically instantiate and render onto the stage several instances of FooA — it's a MovieClip, after all — it has some visual things in itself, like colored blocks and stuff. Now, I want to also, in ActionScript, call a bunch of the useful methods that FooA_Class has. What's the idiom for doing such a thing?? I've tried what the Java guy in me says to, like instantiate FooA and do things with it: var mFooA:FooA = new FooA(); mFooA.doSomeMethod(); But, now I can't get it on the stage properly, even with various incarnations of attachMovie in either the constructor of FooA, or right there after the constructor (registerClass/attachMovie) Then I try this confusing idiom: Object.registerClass(mFooA, FooA); _root.attachMovie(FooA, FooA, 1); The MovieClip FooA appears on the stage, but that's it — I can't call useful methods on it as I have no proper handle to the instance. If I do this: Object.registerClass(mFooA, FooA); var aObject:Object = _root.attachMovie(FooA, FooA, 1); what is returned from attachMovie isn't properly cast to my class type — which is a bit odd. I mean, if I do this: Object.registerClass(mFooA, FooA); var aObject:FooA_Class = _root.attachMovie(FooA, FooA, 1); Flash complains — whatever the equivalent of a class cast error it spouts..type mismatch or something? So, the basic question is this: how can I programmatically instantiate and deliver to the stage a movie clip linked to my own custom class (which extends MovieClip) and then actually call the useful methods contained within that linked custom class? This _has_ to be easy, no? Julian Julian Bleecker, Ph.D. http://research.techkwondo.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] a couple of FLVPlayback questions
I'm using the FLVPlayback component for the first time and am running into a couple of things. I am also using the skinnable components provided for use as player controls. The capability of using multiple VideoPlayback controls within the component is interesting, and has me thinking about buffering the next clip in a series once one has finished loading. However I'm playing back video from FCS rather than HTTP, so I don't get any bytesLoaded/bytesTotal, or anything else that tells me when a file has finished loading. What is a good way to know when to begin buffering a consecutive clip? When using the backButton and forwardButton properties to point to the respective component buttons, the buttons seem to display correctly, appearing disabled while buffering and enabled otherwise. However I am unable to tell when these buttons are clicked. According to the docs it seems like FLVPlayback should generate rewind and fastForward events when they are clicked, but this doesn't seem to be happening. Just putting a regular onRelease handler on them works fine though, so perhaps I'll just do that. thanks, -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
Re: [Flashcoders] Help for a Java Guy: Instantiating a MovieClip with a linked class and calling class methods
Hey Julian, I feel your pain. Take a look at this example: http://www.randomusa.com/flash/downloads/tojulian.zip Mike Britton ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 for a Java Guy: Instantiating a MovieClip with a linked class and calling class methods
Cripes. Thanks Mike! So, this magic of turning a named instance into the name of the instance variable gets carried to its logical, but somewhat weird, conclusion. Julian On Jul 6, 2006, at 19:30 PDT, Mike Britton wrote: Hey Julian, I feel your pain. Take a look at this example: http://www.randomusa.com/flash/downloads/tojulian.zip Mike Britton ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Help for a Java Guy: Instantiating a MovieClip with a linked class and calling class methods
Perhaps, but you never know: someone on this list may have a better solution for your problem. Mike ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 player skips first frame of audio -- why?
I'm trying to understand why the Flash player isn't playing my audio properly. It's muting output during the first frame. I need to fix that. It also mutes output during the frame after an ActionGotoFrame. I also need to fix that. I'm using Flash 8 on Mac OS X 10.4.7; other testers report the same problem on other hosts. I have a simple SWF which contains just streaming audio formatted as a single SoundStream. I created the file using an application that I wrote. I've followed the SWF spec closely and I'm very confident that the file format is correct. (It's certainly more correct than files generated by ffmpeg and similar.) Here's a brief dump of the file. (Note that this file uses a framerate of 1 frame/sec to make the problem really obvious.) Header: FWS version 4 File length: 480712 RECT: (xMin=0, xMax=6400, yMin=0, yMax=4000) Frames/second: 1.00 Total frames: 31 SoundStreamHead2 (playbackSoundRate=3, playbackSoundType=1, streamSoundCompression=2, streamSoundRate=3, streamSoundType=1, StreamSoundSampleCount=44100, latencySeek=0) SoundStreamBlock containing [Mp3SoundStreamData record; sampleCount=43776 containing [Mp3SoundData record; seekSamples=0]] -- ShowFrame -- SoundStreamBlock containing [Mp3SoundStreamData record; sampleCount=43776 containing [Mp3SoundData record; seekSamples=324]] -- ShowFrame -- SoundStreamBlock containing [Mp3SoundStreamData record; sampleCount=43776 containing [Mp3SoundData record; seekSamples=648]] -- ShowFrame -- SoundStreamBlock containing [Mp3SoundStreamData record; sampleCount=44928 containing [Mp3SoundData record; seekSamples=972]] -- ShowFrame -- SoundStreamBlock containing [Mp3SoundStreamData record; sampleCount=43776 containing [Mp3SoundData record; seekSamples=144]] ... more like this ... The problem is that the Flash player doesn't start playback with the first frame. Instead, it mutes the output during the first frame, then begins emitting sound with the second frame. I suspect that this is a defect in all Flash players; I believe that the player mutes the sound during the first frame after a Play or ActionGotoFrame. I suppose that many people don't care -- what's the loss of an audio frame here and there? But it matters in my application because the output must be perfect. Do you have any suggestions for resolving the problem? I'm especially interested in fixing the problem where audio is muted after an ActionGotoFrame. That's a killer. thx! -jeff stearns ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 player skips first frame of audio -- why?
Jeff, Why does it need to be exact? If you're trying to synchronize different sounds or have them loop seamlessly, a frame-based approach will never work. I suspect your problem is related to the buffering that Flash does of all sound. You could play with the soundBuffTime (that may not be exactly what it's called in AS). But most devs I know always allow a few frames of playback before placing a sound in the timeline. I've just followed that practice since Flash 4 and never had a problem. If you need it to start precisely with the playhead, you should look into the sound object: create the Sound object, load the sound into it, test for a certain amount to be buffered, and then use AS to start the sound and the playhead at the same time. So look into properties of the Sound object. Marc At 09:26 PM 7/6/2006, you wrote: I'm trying to understand why the Flash player isn't playing my audio properly. It's muting output during the first frame. I need to fix that. It also mutes output during the frame after an ActionGotoFrame. I also need to fix that. I'm using Flash 8 on Mac OS X 10.4.7; other testers report the same problem on other hosts. I have a simple SWF which contains just streaming audio formatted as a single SoundStream. I created the file using an application that I wrote. I've followed the SWF spec closely and I'm very confident that the file format is correct. (It's certainly more correct than files generated by ffmpeg and similar.) Here's a brief dump of the file. (Note that this file uses a framerate of 1 frame/sec to make the problem really obvious.) Header: FWS version 4 File length: 480712 RECT: (xMin=0, xMax=6400, yMin=0, yMax=4000) Frames/second: 1.00 Total frames: 31 SoundStreamHead2 (playbackSoundRate=3, playbackSoundType=1, streamSoundCompression=2, streamSoundRate=3, streamSoundType=1, StreamSoundSampleCount=44100, latencySeek=0) SoundStreamBlock containing [Mp3SoundStreamData record; sampleCount=43776 containing [Mp3SoundData record; seekSamples=0]] -- ShowFrame -- SoundStreamBlock containing [Mp3SoundStreamData record; sampleCount=43776 containing [Mp3SoundData record; seekSamples=324]] -- ShowFrame -- SoundStreamBlock containing [Mp3SoundStreamData record; sampleCount=43776 containing [Mp3SoundData record; seekSamples=648]] -- ShowFrame -- SoundStreamBlock containing [Mp3SoundStreamData record; sampleCount=44928 containing [Mp3SoundData record; seekSamples=972]] -- ShowFrame -- SoundStreamBlock containing [Mp3SoundStreamData record; sampleCount=43776 containing [Mp3SoundData record; seekSamples=144]] ... more like this ... The problem is that the Flash player doesn't start playback with the first frame. Instead, it mutes the output during the first frame, then begins emitting sound with the second frame. I suspect that this is a defect in all Flash players; I believe that the player mutes the sound during the first frame after a Play or ActionGotoFrame. I suppose that many people don't care -- what's the loss of an audio frame here and there? But it matters in my application because the output must be perfect. Do you have any suggestions for resolving the problem? I'm especially interested in fixing the problem where audio is muted after an ActionGotoFrame. That's a killer. thx! -jeff stearns ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 for a Java Guy: Instantiating a MovieClip with a linked class and calling class methods
Hi Julian, You were nearly there with: Object.registerClass(mFooA, FooA); var aObject:FooA_Class = _root.attachMovie(FooA, FooA, 1); Just change it to: Object.registerClass(mFooA, FooA); var aObject:FooA_Class = FooA_Class(_root.attachMovie(FooA, FooA, 1)); (as Class(x) is the equivalent of the Java class cast operator (Class)x) HTH, Ian On 7/7/06, Mike Britton [EMAIL PROTECTED] wrote: Perhaps, but you never know: someone on this list may have a better solution for your problem. Mike ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 for a Java Guy: Instantiating a MovieClip with a linked class and calling class methods
Whoops, sorry, missed your extra 'm' on 'mFooA' (not sure why that crept in there?): Object.registerClass(FooA, FooA); var aObject:FooA_Class = _root.attachMovie(FooA, FooA, 1); Ian On 7/7/06, Ian Thomas [EMAIL PROTECTED] wrote: Hi Julian, You were nearly there with: Object.registerClass(mFooA, FooA); var aObject:FooA_Class = _root.attachMovie(FooA, FooA, 1); Just change it to: Object.registerClass(mFooA, FooA); var aObject:FooA_Class = FooA_Class(_root.attachMovie(FooA, FooA, 1)); (as Class(x) is the equivalent of the Java class cast operator (Class)x) HTH, Ian On 7/7/06, Mike Britton [EMAIL PROTECTED] wrote: Perhaps, but you never know: someone on this list may have a better solution for your problem. Mike ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 for a Java Guy: Instantiating a MovieClip with a linked class and calling class methods
*sigh* Having a bad morning and copying the wrong line. Third time lucky: Object.registerClass(FooA, FooA_Class); var aObject:FooA_Class = FooA_Class(_root.attachMovie(FooA, FooA, 1)); Ian On 7/7/06, Ian Thomas [EMAIL PROTECTED] wrote: Whoops, sorry, missed your extra 'm' on 'mFooA' (not sure why that crept in there?): Object.registerClass(FooA, FooA); var aObject:FooA_Class = _root.attachMovie(FooA, FooA, 1); Ian On 7/7/06, Ian Thomas [EMAIL PROTECTED] wrote: Hi Julian, You were nearly there with: Object.registerClass(mFooA, FooA); var aObject:FooA_Class = _root.attachMovie(FooA, FooA, 1); Just change it to: Object.registerClass(mFooA, FooA); var aObject:FooA_Class = FooA_Class(_root.attachMovie(FooA, FooA, 1)); (as Class(x) is the equivalent of the Java class cast operator (Class)x) HTH, Ian On 7/7/06, Mike Britton [EMAIL PROTECTED] wrote: Perhaps, but you never know: someone on this list may have a better solution for your problem. Mike ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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 for a Java Guy: Instantiating a MovieClip with a linked class and calling class methods
Yeah, I think it gets worse. I'm used to a pattern where you create a whole bunch of something — so, back to the problem I originally asked, if I want have my mainClip create a dozen subClip instances and tuck each one of those instances in an Array for later use, especially calling that useful method. I guess I'm asking how one can call a method on an instance where the instance's name is derived at runtime. For instance, in this example you provided, which works for the single subClip00 instance variable, how would I do the same thing, only with a runtime derived name? class mainClip extends MovieClip { public var subClip00:subClip; function mainClip() { trace(new mainClip!); init(); } function init():Void { for(int i=0; i12; i++) { attachMovie(subClip, subClip_+i, this.getNextHighestDepth()); //this.subClip00.usefulMethod(); this won't work..how to call a method with no reference — only a name? } } } But, the bigger question is: why don't things like attachMovie or such return references to the things they're attaching? Julian On Jul 6, 2006, at 20:50 PDT, Mike Britton wrote: Perhaps, but you never know: someone on this list may have a better solution for your problem. Mike ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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