Re: [Flashcoders] Delegate question...
You can use an event proxy such as Grant Skinner's: http://www.gskinner.com/blog/archives/2004/05/source_code_eve.html - Randy On Feb 2, 2008 10:52 AM, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: you guys are indeed the best many thanks p On Feb 2, 2008 5:28 AM, EECOLOR [EMAIL PROTECTED] wrote: class fly.Delegate extends Object { static function create(obj:Object, func:Function):Function { var returnFunction = function() { var self:Function = arguments.callee; var target_obj:Object = self.target_obj; var func:Function = self.func; var userArguments_array:Array = self.userArguments_array; return func.apply(target_obj, arguments.concat (userArguments_array)); }; returnFunction.target_obj = obj; returnFunction.func = func; returnFunction.userArguments_array = arguments.splice(2); return returnFunction; } }; Greetz Erik On 2/2/08, Muzak [EMAIL PROTECTED] wrote: You don't and should never have to. Create a custom button (MovieClip+Class) that dispatches an event (e.g . release), rather than using a generic Button/MovieClip symbol. So instead of: someMC.onRelease = Delegate.create(_level0, doSomething); you'd then use: function doSomething(o:Object):Void { trace(o.target); } someMC.addEventListener(release, Delegate.create(this, doSomething)); regards, Muzak - Original Message - From: [p e r c e p t i c o n] [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Saturday, February 02, 2008 1:02 AM Subject: [Flashcoders] Delegate question... Howdy, Quick question...How can I pass vars if i'm using delegates for handlers I have it set up like so... someMC.onRelease = Delegate.create(_level0, doSomething); what i want to be able to do is know which instance of someMC actually called it... thanks p ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] onMetaData
I don't think you can rely on metaData being called just once, but it is easy enough to add logic to handle the metadata once only. The nature of the metadata depends on how (and with what tool) the flv was encoded. So the answer to your question of predictability is Yes only if you have strict control over how the video is encoded. Otherwise, the answer is No. - Randy On Jan 29, 2008 1:39 AM, strk [EMAIL PROTECTED] wrote: Can one rely on the assumption that onMetaData will be called only once for a given video loaded by NetStream ? And is the call sequence of it and other statuses predictable at all ? TIA --strk; () ASCII Ribbon Campaign /\ Keep it simple! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Google Maps or Yahoo maps
Hello, I have little experience with the Google API but AFAIK the API is strickly AJAX based. Yahoo! maps on the other hand, has an AS2 based component that you can hack and extend in Flash. They do not have an AS3 based component at this time but released an AS3 communication kit that facilitates direct API calls within Flex to the AS2 map though ExternalInterface. Google is the leader with maps. But IMHO Flash/flex is a better performer when layering interactivity on a map and a better development platform. Randy Troppmann http://www.runningmap.com On 9/12/07, Cédric PASCAL [EMAIL PROTECTED] wrote: Hi everybody, i have a choice very important, i have to use map and interact with them (put a flag and see the nearest flag for exemple, search the road or the distance between two flag). I have to work in flex and i would like your point of view, its better to use google map or yahoo maps in flex ? I think flex and AS API of yahoo are better for the moment but i need senior programmers point of view please. Thanks ! -- PASCAL Cédric IT french student PS : if someone have another solution he could propose it , and some examples too ! I'am not an expert in fact ;) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] AIR SWFLoader Question
Hi Eric. Is your swf AS2 or AS3? I think you will need to add logic to your swf so that Flex can capture the stage resize event and call the resize method in the swf. Randy On 9/7/07, eric e. dolecki [EMAIL PROTECTED] wrote: I have a SWFLoader in Flex 3 that runs in a transparent application. I have the SWFLoader set to 100% height of the application window its in. I have a local SWF that I load in there, and I want it to resize the Flash to the height of the window. The SWF loads in fine, but the onResize() in the SWF isn't firing. How can I make sure that onResize actually happens? I have elements that lay themselves out based on that function in the SWF. - eric ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] AIR SWFLoader Question
Eric, I have a brief blog post about getting the stage event here: http://www.spintechnologies.ca/flashblog/archives/99.html HTH - Randy On 9/8/07, eric e. dolecki [EMAIL PROTECTED] wrote: Oh, localConnection. was thinking of perhaps something else. ugh. On 9/8/07, Muzak [EMAIL PROTECTED] wrote: Use a LocalConnection for Flex-Flash communication. http://weblogs.macromedia.com/pent/archives/2006/07/using_actionscr.cfm http://kb.adobe.com/selfservice/viewContent.do?externalId=749eaa47sliceId=1 regards, Muzak - Original Message - From: Eric E. Dolecki [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Sunday, September 09, 2007 12:50 AM Subject: Re: [Flashcoders] AIR SWFLoader Question swf is as2. how would i go about doing what you suggest? On Sep 8, 2007, at 10:19 AM, Randy Troppmann wrote: Hi Eric. Is your swf AS2 or AS3? I think you will need to add logic to your swf so that Flex can capture the stage resize event and call the resize method in the swf. Randy On 9/7/07, eric e. dolecki [EMAIL PROTECTED] wrote: I have a SWFLoader in Flex 3 that runs in a transparent application. I have the SWFLoader set to 100% height of the application window its in. I have a local SWF that I load in there, and I want it to resize the Flash to the height of the window. The SWF loads in fine, but the onResize() in the SWF isn't firing. How can I make sure that onResize actually happens? I have elements that lay themselves out based on that function in the SWF. - eric ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Integrating Flash SWFs with Flex
2. Assuming 1. is correct, what special considerations are there for developing a Flash movie/widget/component that might be embedded in an HTML page, AND/OR used within a Flex application? To use the FlexComponentKit your Flash CS3 project must be developed using AS3. Also check out http://www.gskinner.com/blog/archives/2007/03/using_flash_sym.html - Randy Troppmann ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Getting Hand Cursor to show up in AS3 on new MovieClip()
try adding this.buttonMode = true; On 7/31/07, Matt Muller [EMAIL PROTECTED] wrote: Hi, I have a class(Class A) which extends a superclass which extends mc. 'Class A' is instantiated by using new ClassA() and is on the stage. Its basically a button which works perfectly, except doesnt have the hand cursor. I have pasted in the class below, does anyone know how I can get this to functionality back. In AS2 you would just need to say mc.onPress = function(){}; Cheers, MaTT package com.foo.view.playerSkins { dynamic public class PlayPauseButton extends FlvPlayerSkinSuper { import flash.display.MovieClip; import flash.events.MouseEvent; import com.foo.control.FlvPlayerEvents; public function PlayPauseButton() { this.useHandCursor = true; this.addEventListener(MouseEvent.MOUSE_DOWN, clickHandler); } private function clickHandler(event:MouseEvent):void { _playerWrapper.dispatchEvent(new FlvPlayerEvents( FlvPlayerEvents.PLAYVIDEO, null)); } } } ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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: Re: [Flashcoders] migrating to Flex
I recently started to work with Flex Builder 2 for OSx and I am very impressed. I found a perfect use of it in a website I am building and was able to put together an nice proof of concept together within hours. This rich internet application has the microsoft developers I work with drooling. They have nothing to match it has the cross-browser/cross-platform support that the flex platform has. Well done Adobemedia! Flex != Flash Flex + Flash = bernard callebaut chocolate On 11/27/06, greg h [EMAIL PROTECTED] wrote: Millie, I think Dave and Kent pretty much answered your question about Flex cost. Since you mention education licenses, one thing I can add is that academic licenses for Flex 2 w/Components are a mere $79! Of course you have to be a student, teacher, professor, etc. One source here: www.academicsuperstore.com/market/marketdisp.html?PartNo=760814 Also, since you already have Flash 8 Pro you can use that to start doing AS3 programming today, by just downloading and adding in the Flash Professional 9 ActionScript 3.0 Preview: http://labs.adobe.com/technologies/flash9as3preview/ (btw ... since you have had issues with upgrade licenses, I suggest you download the AS3 Preview today just in case you do not upgrade to Flash 9 immediately upon it's release. Likely the AS3 Preview will disappear off of labs as soon as Flash 9 ships.) Lastly, Flash and Flex play to completely different audiences. Flex barely steps on Flash's turf, if at all. For instance you ask What if anything will I lose by switching to Flex? Well for starters: drawing tools, timeline, swf's under 119KB. Flash developers who do crossover work in Flex offer customization options that straight Flex developers can not. But if Flex Framework components do not address your requirements, then you may have little or no need to commit any of your time or $$ to Flex. Following are links to some well enunciated observations about Flex from a pair of powerhouse Flash developers: Jesse Warden and Grant Skinner. Flash Components vs. Flex Components www.jessewarden.com/archives/2006/09/flash_component.html Flex 2 from a Flash Developer's Perspective www.gskinner.com/blog/archives/2006/07/flex_2_from_a_f.html Flex Seminar Presentation, Flex and Flash, Online http://www.jessewarden.com/archives/2006/09/flex_seminar_pr.html (see especially the link for Jesse's Using Flash Flex Together presentation which streams off the net here: http://www2.sys-con.com/webinararchive.cfm?registered=onpid=wc_rwf6_s06warden I saw Jesse's deliver a later version of this presentation at MAX and it should be required viewing for Flash developers thinking about Flex) btw ... if you want an idea of why Flex even exists, check out under the heading We Call This 'The Timeline.' No, Wait, Come Back! from what I still think is the classic explanation from Flash powerhouse Nigel Pegg: www.adobe.com/devnet/flex/articles/flash_perspective.html I hope that some or all of this helps. If you (or others reading this) do do some crossover work in Flex, please post back with your impressions and insights. hth, g On 11/26/06, Millie Niss [EMAIL PROTECTED] wrote: Am I the only one on this list who (still) uses the Flash IDE (Flash 8 Pro) and hasn't migrated to AS 3.0 or any version of Flex? I am interested in both but do not want to fork over any more $$ to ex-Macromedia. (I feel cheated by having paid for many versions of the educational versions because they don't upgrade then many versions of full software because the Macromedia packages I had didn't have an upgrade path to the newer bundled Adobe products such as Creative Suite 2 or the Adobe Video Bundle.) What is the minimum cost to start using Flex? (I mean in a production version. I do not want to start using a beta or a trial of something and then have it break and be stuck.) What are the ongoing costs to deploy Flex apps? I have looked at the website but found it confusing and they keep changing pricing... I want a rough idea of what it actually costs developers to switch to Flex and deploy the apps etc. What if anything will I lose by switching to Flex? I use the Flash IDE a lot for design now but most projects have extensive coding as well. Can I use Flex for the code and still use the IDE for design? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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: Re: [Flashcoders] Looking for a good FlexCoders list
You don't need to change your email. I use my gmail account solely for lists like this. I never worry about deleting anything. It works great. On 11/6/06, slangeberg [EMAIL PROTECTED] wrote: Hal 9000 says: I think you can, Troy. Just passing on the message. -Scott On 11/6/06, Troy Rollins [EMAIL PROTECTED] wrote: On Nov 6, 2006, at 5:19 PM, slangeberg wrote: It's threaded, when you use gmail as your client! Yes, thanks. Can't really change my email client over one list. :-/ -- Troy RPSystems, Ltd. http://www.rpsystems.net ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- : : ) Scott ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] datagrid inside an accordian
Whoa! Thats like taking a K-car and putting a Fiero in the trunk and trying to turn on the Fiero's radio with the K-car controls. If it were me I would build my own accordian. Randy Troppmann On 5/17/06, Rich Rodecker [EMAIL PROTECTED] wrote: I have an mc that i add to an accordian via accordian.createSegment(); the mc I attach has a datagrid inside of it, but there's two problems with it: 1. none of the items can be selected in the datagrid...no rollover events even. 2. the cell renderer I am using for one of the columns does not load. anyone have any pointers for either of these two issues? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] [POLL] getters setters preference
Initially I was wary of the built in get and set framework, but I came to really like this technique. For example, you want to update the score of your game, but doing so requires touching numerous gui elements and properties. Using the built in setter methodology allows you to abstract and simplify the API call. score ++; score += 10; score --; On 4/26/06, Jim Tann [EMAIL PROTECTED] wrote: Hello all, After a long time of trying to figure which method of using getters setters is better I though the best way to get a good answer is to throw it open to the list. Do you prefer to use the inbuilt getter setter functionality? i.e. public function get myProperty():Number{ return _myProperty; } public function set myProperty(intSet:Number):Void{ _myProperty = intSet; } or do you prefer using normal functions? i.e. public function getMyProperty():Number{ return _myProperty; } public function setMyProperty(intSet:Number):Void{ _myProperty = intSet; } I like the first method as it looks cleaner, but there have been issues with inheritance where if you overwrite either the getter or setter, but not both in the child class it gets ignored. What are your views? Jim ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] Using EventDispatcher in AS 1.0 code
I am a big fan of EventDispatcher! If you are using Flash MX2004 or later you can use AS2.0 (class based or not) to code. It all compiles down to AS1 code within the swf when you publish. You can set the target flash player in publish settings to an earlier version to accomodate the most users (Flash 8 player sits around 60% acceptance at this time I believe). Some new features and classes are not backwards compatible, and Flash will warn you of these when you publish. You are safe if you want to write your application using an AS2.0 class based framework and publish back to Flash 6 compatibility. This includes EventDispatcher. Randy Troppmann On 4/17/06, Boon Chew [EMAIL PROTECTED] wrote: Hi all, I recently have had to work on some AS1.0 code (a requirement is that the code must be published with AS 1.0 compiler). Since EventDispatcher is not available in AS 1.0, I modified mx.events.EventDispatcher to work with in AS 1.0 mode, and make EventDispatcher available in global namespace, since it's not intrinsic like AsBroadcaster is. I have been able to use EventDispatcher like I can in 2.0. Curious though, is there any downside or potential caveat to using EventDispatcher in strictly AS 1.0 that I should be aware of? Thanks much. - Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/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] my old problem... with big loads of swf's
My experience has been that content loading from a local drive will cause the player to freeze until the entire contents of the asset is loaded into ram, therefore making it impossible to show loading progress. This is of course unlike loading an asset from a web server where showing load progress works quite well. If your asset is large enough (+8mb) it can start to really cause problems where the flash player freezes up and the user is left to wonder if the app crashed. If your large swfs are video, I suggest converting them to FLV and use netStream and netConnection objects to stream the video in. This will alleviate the problem. Cheers, Randy ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders