Re: [flexcoders] Trademark Symbol
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Okay, this reply is a bit late, but I use this great piece of software for all my Unicode lookup needs: http://www.earthlingsoft.net/UnicodeChecker/ It's Mac only and I haven't looked for a Windows use-a-like yet. Hope this helps (if you have a Mac) ~ Seth On Jun 23, 2005, at 1:51 PM, Rich Tretola wrote: What about the copyrighht symbol ? Rich On 6/23/05, Gordon Smith [EMAIL PROTECTED] wrote: You almost had it, but you were missing a semicolon after the 8482. These three ways work: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script var copyrightSymbol = \u2122; /mx:Script mx:Label text=Macromedia#8482;/ mx:Label text=Macromedia#x2122;/ mx:Label text=Macromedia{copyrightSymbol}/ /mx:Application The rules are: The MXML compiler follows the rules of XML and looks for escape sequences starting with and ending with ; However, it doesn't know about character names like trade; and there is no way to declare them. (This would make a good feature request.) The ActionScript compiler, which handles the parsing inside mx:Script blocks, event handler attribute values, and databinding expressions, follows the rules of JavaScript/EcmaScript and looks for escape sequences starting with \u. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Erik Westra Sent: Thursday, June 23, 2005 1:47 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Trademark Symbol Just do it the simple way :) mx:Panel title=My Company(tm)/mx:Panel Copy the sign from a webpage, or somewhere else and paste it into the string u use as title. Greetz Erik -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Malcolm Sent: donderdag 23 juni 2005 7:48 To: flexcoders@yahoogroups.com Subject: [flexcoders] Trademark Symbol Hi yo all, I am new to the Flex crusade (cf over sql background), so here goes with my first question. How do I get the proper trademark (TM) symbol in Flex? For example: mx:Panel title=My ApplicationTM/mx:Panel Using anything like: mx:Panel title=My Applicationtrade;/mx:Panel OR mx:Panel title=My Application#8482/mx:Panel Doesn't work, and besides this is this not the world of html anymore :-) The closest I have come is using escape (unicode) characters. For example: mx:Script ![CDATA[ function myTitle() { var myTitle:String; myTitle=My Application\u00ae; return myTitle; } ]] /mx:Script mx:Panel title={myTitle}/mx:Panel But \u00ae is the registered trademark (R) symbol not (TM). I realize that the TM symbol is not part of the ISO 8859-1 character set supported by the flash player. Is there anyway to get the trademark symbol in flash? IE Unicode characters higher than 256. Many thanks in advance, Malcolm -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links http://groups.yahoo.com/group/flexcoders/ [EMAIL PROTECTED] http://docs.yahoo.com/info/terms/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFCvbUUsnBTlzgQQ28RAr2dAKCClByPpL/9CnErBTWvnE9UG0gYxQCdGMss T/qG/2hjSPTG1mJo9+q/15U= =mVNO -END PGP SIGNATURE- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to:
Re: [flexcoders] Flex / Flash / FlashComm, Remoting and CF
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thank you everyone who replied :) This was exactly what I was looking for. I can't test it until monday but I believe I have everything I need to get around the holdup I'm experiencing. Thanks again, Seth On Jun 10, 2005, at 8:47 AM, Battershall, Jeff wrote: I like to maintain mixed case of returned variables from CFCs so that they can directly map to how I have them named in AS/Flex. The two techniques I've used (using CFMX 6.1) are naming struct keys like mystruct[firstName] and the like. With queries you can accomplish the same thing by using column aliases (at least with SQL Server) like, SELECT employeeID AS 'employeeID', firstName AS 'firstName', lastName AS 'lastName' FROM Personnel Will preserve case in returned objects. The my AS code can read var firstName:String = result[0].firstName; OR var firstName:String = result.firstName; Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abdul Qabiz Sent: Friday, June 10, 2005 8:21 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex / Flash / FlashComm, Remoting and CF Yeah, It is always a good idea to create unit tests for your CFC. As Indy said, create a CFM page and call all CFC methods and check with expected output... This is a way to isolate your problems.. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Indy Nagpal Sent: Friday, June 10, 2005 3:55 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex / Flash / FlashComm, Remoting and CF Yes... I find that is always a good idea to have a cfm page that queries your cfc exactly in the same manner as the remoteobject tag in your flex app would. And use cfdump on your cfm page to examine what the cfc returns. That way you know exactly what is being returned. And if you are using structures and queries, be careful of the capitalization of structure keys and query column names. Trust me, it saves a lot of time. Indy On 6/10/05, dave buhler [EMAIL PROTECTED] wrote: Use all Uppers when you reference the remoting object. I assume you're returning a struct? If so: return tempstruct should work fine so long as you have tempstruct.FIRSTNAME as the firstname variable name. If you are returning a query, you'll need to referece result[0].FIRSTNAME, etc. On 6/9/05, Seth Voltz [EMAIL PROTECTED] wrote: Hey everyone, A while back someone posted an article on quirks when using Remoting (and the flash gateway) with Flex / Flash and FlashComm. I can't find it anywhere (archive searches, google, etc.) Maybe I'm just not hitting the right terms. If anyone remembers it I'd most appreciate the link. If not, here's the problem I'm having which I think that ink will solve (Off Topic): I have an FCS app which hits a CF7 server's flash gateway looking for a service. The services which return strings work just fine but anything that returns something more complex doesn't seem to work. I try return.VAR, return.var, return.Var, etc. but it comes back undefined. Thanks, Seth Yahoo! Groups Links Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFCqnVvsnBTlzgQQ28RAtZfAJ9EvpcFiFQ7ACpPF3Uh+EUChI9PSACgl/nY ECK9oH+WvP0ivTsBEQB6csE= =/Y02 -END PGP SIGNATURE- Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flex / Flash / FlashComm, Remoting and CF
Hey everyone, A while back someone posted an article on quirks when using Remoting (and the flash gateway) with Flex / Flash and FlashComm. I can't find it anywhere (archive searches, google, etc.) Maybe I'm just not hitting the right terms. If anyone remembers it I'd most appreciate the link. If not, here's the problem I'm having which I think that ink will solve (Off Topic): I have an FCS app which hits a CF7 server's flash gateway looking for a service. The services which return strings work just fine but anything that returns something more complex doesn't seem to work. I try return.VAR, return.var, return.Var, etc. but it comes back undefined. Thanks, Seth Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Need help with protecting FLVs
Okay, this is just a random idea and I can't offer code snippets because I haven't successfully pulled it off. I have however thought about this very issue the last couple weeks for one of my own projects. My idea was to put the FLVs in a directory with a .htaccess file that passes all requests through to a script. The script checks to see if the referrer is the flash movie that should be calling them then does a redirect to the file. It's a bit processor intensive as the script has to pipe the file through itself. Also, if someone really wants the files they can just spoof the referrer. Just my $0.02, hope it leads to something. Seth / Jeff Steiner wrote: Nutshell: I am working with a handful of FLVs for a tech demo that I am creating and want to prevent them from being downloaded. Does anyone have a good idea about how I can go about doing this? Longer version: I have encoded FLVs sitting in a web directory (because contentPath requires a location string), but that also means that a user can type in the name of the file and download the FLV directly (I get the download box when I type out the name of the FLV). I tried putting the files on a web server inside the firewall, thinking that the Flex server would somehow magically act as a proxy just for the Flex application. Worked fine as long as I was sitting inside the firewall ;) Any ideas would be great! Thanks, Jeff http://www.flexauthority.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Application flow best practices?
Kent, The view member variable is passed in from the calling MXML file as a parameter of the tag. In the case of IndexViewHelper you might call it as as:IndexViewHelper name=indexView view={ this } / assuming your name space for that tag is 'as'. Seth / Kent Henneuse wrote: I am using Flex for new development and starting to get a grasp on Cairngorm as well. I am now trying to get a workflow between static screens laid out so that I can slowly wire up the server-side calls. What I would like to find out is what is the best way to set up the flow? Currently I have a View Stack that has each of the main screens. This seems ok if I don't have a lot of screens but I can see that if I have more then say ten items in the View Stack it will rapidly become hard to manage. I was thinking of having layers of View Stacks (View Stack inside of another View Stack) but haven't figured out how to do this in Cairngorm yet. I am hoping to avoid having a class that manages the screens shown as if it were What are the approaches that others have used to solve this sort of flow problem? Maybe it is simply just needing a better description of how the flow of the components are done in Cairngorm for the switching of the views. BTW where does the data member 'view' come from in IndexViewHelper.as and some of the other View Helper as I don't see it being a member of the ViewHelper base class? Thanks, -Kent Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away. - Antoine de Saint Exupery Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Curved surfaces in flex...
When you said Globe ebject I immediately thought wireframe. You could easily write a wireframe sphere function that takes in perspective and rotation information and spits back a series of lines... There is code all over the 'net on wireframe drawing. Seth On Apr 14, 2005, at 11:00, JesterXL wrote: There are a plethora of ways to integrate this with Flex. You could do the SWC route, yes. You could do the animations, and just control it with Flex. You could do it in pieces, and let Flex have more control on how they are loaded in (popups in PopUpManager instead of standards container). You could also have all assets, include globe, be built and contained in Flex. The actual creation of the assets, though, yes, it would probably be best to do in Flash and/or AfterEffects. x-tad-bigger- Original Message -/x-tad-bigger x-tad-bigger /x-tad-biggerx-tad-biggerFrom:/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-biggerClint Modien/x-tad-biggerx-tad-bigger /x-tad-bigger x-tad-biggerTo:/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-biggerflexcoders@yahoogroups.com/x-tad-biggerx-tad-bigger /x-tad-bigger x-tad-biggerSent:/x-tad-biggerx-tad-bigger Thursday, April 14, 2005 10:55 AM/x-tad-bigger x-tad-biggerSubject:/x-tad-biggerx-tad-bigger RE: [flexcoders] Curved surfaces in flex.../x-tad-bigger x-tad-biggerI dont have an example no Its still in the hey that would be kewl stage/x-tad-bigger x-tad-bigger/x-tad-bigger x-tad-biggerBasically they want a globe thats able to rotate so that you can pick multiple points on it and bring up windows on those points with information about that particular point./x-tad-bigger x-tad-bigger /x-tad-bigger x-tad-biggerIm 95% sure now that Ill have to write/buy a custom .swc and import it/x-tad-bigger x-tad-bigger/x-tad-bigger x-tad-bigger/x-tad-bigger x-tad-biggerFrom:/x-tad-biggerx-tad-bigger JesterXL [mailto:[EMAIL PROTECTED]/x-tad-bigger x-tad-bigger /x-tad-biggerx-tad-biggerSent:/x-tad-biggerx-tad-bigger Thursday, April 14, 2005 8:03 AM/x-tad-bigger x-tad-biggerTo:/x-tad-biggerx-tad-bigger flexcoders@yahoogroups.com/x-tad-bigger x-tad-biggerSubject:/x-tad-biggerx-tad-bigger Re: [flexcoders] Curved surfaces in flex.../x-tad-bigger x-tad-biggerDo you have a link towards a visual example of the desired effect?/x-tad-bigger x-tad-bigger- Original Message -/x-tad-bigger x-tad-bigger /x-tad-biggerx-tad-biggerFrom:/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-biggerClint Modien/x-tad-biggerx-tad-bigger /x-tad-bigger x-tad-biggerTo:/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-biggerflexcoders@yahoogroups.com/x-tad-biggerx-tad-bigger /x-tad-bigger x-tad-biggerSent:/x-tad-biggerx-tad-bigger Thursday, April 14, 2005 9:53 AM/x-tad-bigger x-tad-biggerSubject:/x-tad-biggerx-tad-bigger [flexcoders] Curved surfaces in flex.../x-tad-bigger x-tad-biggerI just had a question thrown at me about a globe type surface being done in flex./x-tad-bigger x-tad-bigger/x-tad-bigger x-tad-biggerMy initial gut reaction to that was you cant do that in flex/x-tad-bigger x-tad-bigger/x-tad-bigger x-tad-biggerYou could if you used flash to create the globe component right?/x-tad-bigger x-tad-bigger/x-tad-bigger x-tad-biggerThen embed that flash component in a flex app?/x-tad-bigger x-tad-bigger/x-tad-bigger x-tad-biggerJust thought Id throw this out there for some input on a solution./x-tad-bigger x-tad-bigger/x-tad-bigger x-tad-biggerThanks in Advance,/x-tad-bigger x-tad-bigger/x-tad-bigger x-tad-biggerClint Modien/x-tad-bigger 5by5 Software Ventures Ltd. x-tad-biggerhttp://bridgewerx.com/x-tad-bigger x-tad-biggerSuite 355, 138 - 4th Ave. SE/x-tad-bigger x-tad-biggerCalgary, Alberta, Canada/x-tad-bigger x-tad-biggerT2G 4Z6/x-tad-bigger x-tad-biggerCell: 403.809.3511/x-tad-bigger x-tad-biggerWork: 403.206.3195/x-tad-bigger x-tad-bigger/x-tad-bigger Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. PGP.sig Description: This is a digitally signed message part
[flexcoders] JavaDoc style docs for Flex PLUS Actionscript 2
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello List, When developing with Flex I have a tab open in my browser to the Flex JavaDoc style docs of all the MXML classes. I also have Flex and Actionscript LiveDocs for their searching capabilities. My question is if there is something like the MXML docs for all of Actionscript2 including Flex's additions (or even just AS2) Having a classpath view of everything was a great help when I was just starting to learn Flex and I keep seeing new classes on here I'd never seen before. Any ideas? Thanks, Seth -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFCU6bEsnBTlzgQQ28RArYDAKCD/87pazHAwNCh2AvtcMhnjwXbpgCaAhsi MSDMPPfxdphS5NUKMflt50k= =51/y -END PGP SIGNATURE- Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Interfaces?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I just downloaded the docs. Run them locally and it's lightning quick. Also lets me do offline dev. - - Seth On Apr 02, 2005, at 17:05, JesterXL wrote: Ok, both you and Spike say the LiveDocs so I'll just hang there; I still love the local AS2 class definitions, though, as a shortcut in Firefox; it's so much quicker than LiveDocs for method lookups for specific components. Cool, thanks again yall! - Original Message - From: Harris Reynolds [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, April 02, 2005 4:56 PM Subject: Re: [flexcoders] Interfaces? Yeah... I have had trouble with the search facility as well. I am looking at the main doc available here [1]. The info I've been looking at is available by navigating to Developing Flex Applications Version 1.5 - Working with ActionScript in Flex - Working with components - Implementing interfaces. On that page there is a link to Using Interfaces [2]. After spending a fair amount of time being frustrated with finding stuff in the docs, I have now embraced these pages and can usually find whatever I need. The organization of the Flash/AS2 Component docs seems a little better organized IMO. good luck, ~harris [1] http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/ html/wwhelp.htm [2] http://livedocs.macromedia.com/flex/15/flex_docs_en/0462.htm --- JesterXL [EMAIL PROTECTED] wrote: wtf...dude, where are you finding this in the docs...or rather, how? I did a search for interface, and in both books, these didn't come up in like the first 5? - Original Message - From: Harris Reynolds [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, April 02, 2005 4:37 PM Subject: Re: [flexcoders] Interfaces? LOL... this is your lucky day... again clipped from the doc... implement away!! ~harris SnipFromDoc You can implement multiple interfaces by separating them with commas as the following example shows: mx:ComboBox xmlns:mx=http://www.macromedia.com/2003/mxml; implements=SuperBox, SuperBorder, SuperData /SnipFromDoc --- JesterXL [EMAIL PROTECTED] wrote: ...when we get the ability to implement more than 1, than that'll be the hotness! - Original Message - From: Harris Reynolds [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, April 02, 2005 4:32 PM Subject: Re: [flexcoders] Interfaces? Yep... it still feels a little weird implementing an interface in MXML instead of AS, but it is cool stuff. Interfaces are one of the nicest things about modern OO programming IMO. L8R, ~harris --- JesterXL [EMAIL PROTECTED] wrote: That's it? Awesome, thanks! :: tests :: Heck yeah, it works, neat!!! __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Yahoo! Groups Links Yahoo! Groups Links -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFCTzRSsnBTlzgQQ28RAkOUAKCmqK/x7Fm91yztAm42/trulzFV2wCfUH4H zSvTy7AqAgZHhCiOZqAsZ2w= =4h81 -END PGP SIGNATURE- Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] New event manager
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey everyone, So I'm considering writing an event handler slightly different than the one in cairngorm and wanted to make sure I can't already do it or that it doesn't already exist somewhere in a similar form. So currently the way events work in cairngorm (at least the way I learned them and use them) is I broadcast an event from anywhere, it gets picked up by an event commander, passed through a delegator and on to a specific location, usually through the use of view helpers. Now, this has been real handy for most stuff because all events passed only had one destination. Unfortunately, now my app is getting a bit more complicated and it has multiple things that need to know when something happens. The first solution to this was a Login Handler (which I'm going to release at some point... probably when I get the free time to package it up and document it properly.) which allows any class to register itself (either with calls to the static class or through a LoginHelper which is simply an MXML wrapper for those calls) and when the login managers triggerLogin function is called, it executes the loginTriggered function in all registered classes. The same goes for triggerLogout and logoutTriggered respectively. So, to recap. I need a better event handler. I want to register classes with a master event manager which calls back to all classes when any class triggers the specified event. Is this already in existence? Is it already in Cairngorm? If not... I'll write it. :) Thanks, Seth -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFCTQNHsnBTlzgQQ28RAtn3AJ9SDu4/gAYecJr7W7BxmDr24/3McQCfZ+aP c6D9nvE6LBOwPwHMsYX52Lk= =+9qa -END PGP SIGNATURE- Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: New event manager
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm not sure I understand what you mean by a central model I can't hard code a single class to send requests to many places if that's what you're suggesting. The reason for this is I'm developing a core application that can have any number of modules loaded into it. The purpose of the EventManager class would be when a module loads, it registers itself for events then sits back and waits. If it's not something that exists already, however, it's not a big deal. I have a lot of code ready for conversion. Thanks, Seth On Apr 01, 2005, at 07:13, r0main wrote: Hello, not sure global-multicasting is a better event handling than the Cairngorm's core-handling. In the past a good software re-design allowed me to skip a lot of requirements I was asking Steven to put into Cairngorm, like event sequencing... Can't a central model fit your need ? (updated by one command or action, but with many bindings destination across the application) ? Romain --- In flexcoders@yahoogroups.com, Robert Stuttaford [EMAIL PROTECTED] wrote: Seth, I think you're looking for a way to notify multiple views/other elements when a command is complete. Cairngorm maps a single command to a single event. It doesn't prescribe much about what to do when the event is done, but provides ViewLocator to find the views you might need to update. I think you're possibly looking to formalize a listener list to broadcast to for the onResult element of your command class. You could expose logic in the front controller to allow views and other classes to listen for command completion by command name, and then create a base command class, which contains the listen/broadcast functionality, to derive your commands from. I guess you could also include a broadcast for the execute, to allow for pre-execution logic. I've not personally run into a situation where I could use this (done nothing big enough, yet :D), but I'm certain this could provide value. Give it a go! Sunny skies, Robert -Original Message- From: Seth Voltz [mailto:[EMAIL PROTECTED] Sent: 01 April 2005 10:16 AM To: Flex Coders Subject: [flexcoders] New event manager -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey everyone, So I'm considering writing an event handler slightly different than the one in cairngorm and wanted to make sure I can't already do it or that it doesn't already exist somewhere in a similar form. So currently the way events work in cairngorm (at least the way I learned them and use them) is I broadcast an event from anywhere, it gets picked up by an event commander, passed through a delegator and on to a specific location, usually through the use of view helpers. Now, this has been real handy for most stuff because all events passed only had one destination. Unfortunately, now my app is getting a bit more complicated and it has multiple things that need to know when something happens. The first solution to this was a Login Handler (which I'm going to release at some point... probably when I get the free time to package it up and document it properly.) which allows any class to register itself (either with calls to the static class or through a LoginHelper which is simply an MXML wrapper for those calls) and when the login managers triggerLogin function is called, it executes the loginTriggered function in all registered classes. The same goes for triggerLogout and logoutTriggered respectively. So, to recap. I need a better event handler. I want to register classes with a master event manager which calls back to all classes when any class triggers the specified event. Is this already in existence? Is it already in Cairngorm? If not... I'll write it. :) Thanks, Seth -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFCTQNHsnBTlzgQQ28RAtn3AJ9SDu4/gAYecJr7W7BxmDr24/3McQCfZ+aP c6D9nvE6LBOwPwHMsYX52Lk= =+9qa -END PGP SIGNATURE- Yahoo! Groups Links Yahoo! Groups Links -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFCTcPMsnBTlzgQQ28RAo9vAJsHWmcu8rQm8VjWxpMEsKp39PmpKwCaAosA GZl+PCBgAycOkNOWlefutUc= =oDeW -END PGP SIGNATURE- Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Change Events for Custom Classes
You want to look into getters and setters Try this: mx:Script> ![CDATA[ private var _myProperty; public function get myProperty ( ) { return _myProperty; } public function set myProperty ( value ) { _myProperty = value; } ]]> /mx:Script> Hope that'll be a good starting point. Seth On Mar 28, 2005, at 14:54, Andora, Greg wrote: I'm wondering if there is a way (and if there is, how would I go about doing it) I can create a change event for a custom MXML class based for a public property. For example, I have an MXML file called MyClass and when the parent application changes myProperty (i.e MyClass.myProperty=5), I want my custom class to respond by calling the private function myProperty_Changed(): mx:Canvas xmlns:mx=http://www.macromedia.com/2003/mxml width={lookupWidth} focusOut= > mx:Script> ![CDATA[ public var myProperty; private function myProperty_Changed() { Do Stuff Here when myProperty is changed by the application it is being used in; } ]]> /mx:Script> mx:TextInput id=text1 /> /mx:Canvas> Thanks, Greg Andora Yahoo! Groups Sponsor x-tad-smallerADVERTISEMENT/x-tad-smaller22305_0205_016_b_300250_a.gif> l.gif> Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message. To reply to our email administrator directly, send an email to [EMAIL PROTECTED] Littler Mendelson, P.C. http://www.littler.com PGP.sig Description: This is a digitally signed message part
Re: [flexcoders] FlashComm video
That would be fantastic. I'll take it on or off list. Thanks! Seth On Mar 26, 2005, at 10:25 PM, Thijs Triemstra|Collab wrote: Hi Seth, I created a simple swf with the Video object in Flash and load this into Flex. Flex makes the connection with FlashCom and controls a few functions in the swf, like the connection with Camera() Let me know if you need the source and I'll sent it over. http://www.collab.nl/flex/videomixer.mxml Thijs Op 27-mrt-05 om 4:55 heeft Seth Voltz het volgende geschreven: Greetings, So I have been trolling the web, searching newsgroups, mail archives, forums, etc... I can't find a way to embed the Flash video object in my flex project for streaming video via FCS and capturing my webcam. I have tried the following code as a last ditch effort and it also fails (well, it compiles and loads, no errors... but it doesn't do anything) // Layout Section of index.mxml mx:Box id=video_box width=160 height=120 initialize=videoInit() borderStyle=solid /> mx:Button label=Attach Webcam id=cam_btn click=controlCam() /> // Script section of index.mxml function videoInit ( ) { camera_vid = Video ( video_box.createChild ( Video, camera_vid, { _x: 0, _y: 0, _width: 160, _height: 120 } )); camera_vid.width = video_box.width; } function controlCam ( ) { if ( cam_btn.label == Attach Webcam ) { camera_vid.attachVideo ( Camera.get ( )); cam_btn.label = Detach Webcam; } else { camera_vid.attachVideo ( null ); cam_btn.label = Attach Webcam; } } So my question is: How do I embed a webcam image, and then by extension link another similar video object to an FCS stream? Thanks, Seth PGP.sig Description: This is a digitally signed message part
Re: [flexcoders] FlashComm video
Matt, Yeah, I actually poked around that example too. Google didn't find it this time, but it was in the random assortment of Flex code on my desktop. The problem I found was 1) I had no idea what the class that extended MediaDisplay was doing and 2) It seemed like it was first publishing the webcam to the FCS server, then subscribing to it. Wouldn't that eat bandwidth that could be better spent on another user and I can connect to my camera locally. Thank you for the quick reply though! The last two messages reaffirm why I've fallen in love with Flex. Great product and an even greater community. Seth On Mar 26, 2005, at 10:48 PM, Matt Chotin wrote: x-tad-biggerAnd Christophe has an example here: http://www.coenraets.com/viewarticle.jsp?articleId=90/x-tad-bigger x-tad-bigger/x-tad-bigger x-tad-biggerFrom:/x-tad-biggerx-tad-bigger Thijs Triemstra | Collab [mailto:[EMAIL PROTECTED]/x-tad-bigger x-tad-bigger /x-tad-biggerx-tad-biggerSent:/x-tad-biggerx-tad-bigger Saturday, March 26, 2005 7:25 PM/x-tad-bigger x-tad-biggerTo:/x-tad-biggerx-tad-bigger flexcoders@yahoogroups.com/x-tad-bigger x-tad-biggerSubject:/x-tad-biggerx-tad-bigger Re: [flexcoders] FlashComm video/x-tad-bigger Hi Seth, I created a simple swf with the Video object in Flash and load this into Flex. Flex makes the connection with FlashCom and controls a few functions in the swf, like the connection with Camera() Let me know if you need the source and I'll sent it over. http://www.collab.nl/flex/videomixer.mxml Thijs Op 27-mrt-05 om 4:55 heeft Seth Voltz het volgende geschreven: Greetings, So I have been trolling the web, searching newsgroups, mail archives, forums, etc... I can't find a way to embed the Flash video object in my flex project for streaming video via FCS and capturing my webcam. I have tried the following code as a last ditch effort and it also fails (well, it compiles and loads, no errors... but it doesn't do anything) x-tad-bigger// Layout Section of index.mxml/x-tad-bigger x-tad-bigger mx:Box id=video_box width=160 height=120 initialize=videoInit() borderStyle=solid />/x-tad-bigger x-tad-bigger mx:Button label=Attach Webcam id=cam_btn click=controlCam() />/x-tad-bigger x-tad-bigger /x-tad-bigger x-tad-bigger// Script section of index.mxml/x-tad-bigger x-tad-bigger function videoInit ( ) {/x-tad-bigger x-tad-bigger camera_vid = Video ( video_box.createChild ( Video, camera_vid, { _x: 0, _y: 0, _width: 160, _height: 120 } ));/x-tad-bigger x-tad-bigger camera_vid.width = video_box.width;/x-tad-bigger x-tad-bigger }/x-tad-bigger x-tad-bigger /x-tad-bigger x-tad-biggerfunction controlCam ( ) {/x-tad-bigger x-tad-bigger if ( cam_btn.label == Attach Webcam ) {/x-tad-bigger x-tad-bigger camera_vid.attachVideo ( Camera.get ( ));/x-tad-bigger x-tad-bigger cam_btn.label = Detach Webcam;/x-tad-bigger x-tad-bigger } else {/x-tad-bigger x-tad-bigger camera_vid.attachVideo ( null );/x-tad-bigger x-tad-bigger cam_btn.label = Attach Webcam;/x-tad-bigger x-tad-bigger }/x-tad-bigger x-tad-bigger }/x-tad-bigger x-tad-bigger /x-tad-biggerSo my question is: How do I embed a webcam image, and then by extension link another similar video object to an FCS stream? Thanks, Seth Yahoo! Groups Sponsor x-tad-smallerADVERTISEMENT/x-tad-smaller22305_0205_016_b_300250_a.gif> l.gif> Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. PGP.sig Description: This is a digitally signed message part
[flexcoders] FlashComm video
Greetings, So I have been trolling the web, searching newsgroups, mail archives, forums, etc... I can't find a way to embed the Flash video object in my flex project for streaming video via FCS and capturing my webcam. I have tried the following code as a last ditch effort and it also fails (well, it compiles and loads, no errors... but it doesn't do anything) // Layout Section of index.mxml mx:Box id=video_box width=160 height=120 initialize=videoInit() borderStyle=solid /> mx:Button label=Attach Webcam id=cam_btn click=controlCam() /> // Script section of index.mxml function videoInit ( ) { camera_vid = Video ( video_box.createChild ( Video, camera_vid, { _x: 0, _y: 0, _width: 160, _height: 120 } )); camera_vid.width = video_box.width; } function controlCam ( ) { if ( cam_btn.label == Attach Webcam ) { camera_vid.attachVideo ( Camera.get ( )); cam_btn.label = Detach Webcam; } else { camera_vid.attachVideo ( null ); cam_btn.label = Attach Webcam; } } So my question is: How do I embed a webcam image, and then by extension link another similar video object to an FCS stream? Thanks, Seth PGP.sig Description: This is a digitally signed message part
Re: [flexcoders] Mare on inverted tabs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dirk, That's basically what the tab skin looked like before I started modifying it. What I'm trying to do is force a single instance of a TabBar to have a different skin. According to the docs this is not possible, but I figured what I'd ho instead is create a new class (InvertedTabBar) which extends TabBar and try to create a skin for this new class. Is there a better way to do that? Thanks, Seth On Feb 18, 2005, at 03:30, Dirk Eismann wrote: Maybe this one helps: http://www.mxug.de/flex/archives/2005/02/more_tab_skinni.cfm Dirk. -Original Message- From: Seth Voltz [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 8:26 AM To: Flex Coders Subject: [flexcoders] Mare on inverted tabs Ladies and Gents, So I've just picked up the inverted (upside down) tabs thing again and began doing inspections of the TabBar object for possible leads. The best I could find is a variable (probably private) called tabSkin which was set to mx.skins.TabSkin. I created a new MXML file called InvertedTabSkin.mxml and basically just made it a wrapper for mx:TabBar with nothing but a script tag inside with the following code: import InvertedTabSkin; function doInit ( ) { this.tabSkin = InvertedTabSkin; } The doInit() function is triggered by the initialize event in the root element. When I set this variable something happens to the TabBar created with the InvertedTabBar class... all I get is the text of the tab and none of the skin. The skin file, InvertedTabSkin.as has a few modifications from a version that worked on all TabBars: class InvertedTabSkin extends RectBorder { static var symbolOwner:Object = InvertedTabSkin; ... instead of class InvertedTabSkin extends RectBorder { static var symbolName:String = mx.skins.TabSkin; ... and static function classConstruct():Boolean _global.skinRegistry[InvertedTabSkin] = true; ... instead of static function classConstruct():Boolean { _global.skinRegistry[mx.skins.TabSkin] = true; ... Any ideas on where to go from here, or am I on a completely wrong track? Thanks, Seth Yahoo! Groups Links -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFCFksJsnBTlzgQQ28RArpvAKCn4d7XXA74b033V+zar6fiyv8ufACgmr4l QlvUHGjUVL1tHX2VaNdjI/s= =um3f -END PGP SIGNATURE-
Re: [flexcoders] Menu events and panel status [was: Attempting to add a button to Panel titlebar]
I got it! I was using a function named menuHandler() in menu change event handler in both the class extending panel and the instance of it in my test file. As soon as I changed the class functions name it worked, but the instance one didn't. Upon changing that one everything began working. I'm assuming that menuHandler is a reserved name or is in use in the backend somewhere. Either way, that was all it needed. Thanks for the suggestions though, they got me trying different things which lead to this. As far as the status went, I did make my own. Getter and setter functions for status and the following code in createChildren() var status_fmt:TextFormat = new TextFormat ( ); status_fmt.font = Verdana; status_fmt.size = 10; this.createTextField ( status_tb, 20204, 0, 0, 100, 12 ); status_tb.autoSize = left; status_tb.setNewTextFormat ( status_fmt ); Seth On Feb 03, 2005, at 22:52, JesterXL wrote: I never got the Menu component to work, can't help you on 1 and too burnt to try again till the morning. :: wavers :: To heck with status, make your own, or overwrrite the mug: private var _status:String; public function get status():String { return _status; } public function set status(val:String):Void { if(val == null) val = ; _status = val; status_lbl.text = _status; } Then, put a Label in your ControlBar instead of up top. Or, you could use a setStatus method instead: function setStatus(str:String):Void { status_lbl.text = str; } As for capturing the exact label that the Panel has up top, sorry, don't know his instance name, and if you couldnt' find it with a for loop (assuming that's what the object inspector does) doubt I'll find him either. :: goes to look in code :: Crud... can't find the Panel.as file. Oh well, mabye try a true for in prop on the panel: for(var p in this) { trace(p + : + this[p]); } x-tad-bigger- Original Message -/x-tad-bigger x-tad-bigger /x-tad-biggerx-tad-biggerFrom:/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-biggerSeth Voltz/x-tad-biggerx-tad-bigger /x-tad-bigger x-tad-biggerTo:/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-biggerflexcoders@yahoogroups.com/x-tad-biggerx-tad-bigger /x-tad-bigger x-tad-biggerSent:/x-tad-biggerx-tad-bigger Thursday, February 03, 2005 10:22 PM/x-tad-bigger x-tad-biggerSubject:/x-tad-biggerx-tad-bigger [flexcoders] Menu events and panel status [was: Attempting to add a button to Panel titlebar]/x-tad-bigger Thanks, Jesse, Coenraet's article was exactly what I needed. Okay, two more questions now that I have a couple buttons in the panel: 1) One of the buttons spawns a menu like so: function handleMenuButton ( event ) { if ( _menuData ) { winMenu = Menu.createMenu ( event.target, menuData ); winMenu.addEventListener ( change, Delegate.create ( this, menuHandler )); var pos = getGlobalPosition ( event.target ); winMenu.show ( pos.x + event.target.width, pos.y ); } } and debug code tells me it's executing addEventListener() without warnings, however menuHandler() is never getting called. Any ideas? 2) I just found the status text feature in the panel and have a bunch of uses flowing through my mind for it... the problem is the buttons sit right on top of it. I'd like to be able to have my new panel extending class to intercept whatever creates that text object and move it to the left out of the way of each button. I tried using the Coenraet's object inspecting class to view everything attached to the panel hoping to find it and only came across the variables themselves ( _status : String and _statusChanged : Boolean ). No movieclips. Again, I'm lost here. Any ideas? Thanks a bunch :) Seth On Feb 03, 2005, at 10:52, JesterXL wrote: If you don't want to use a mix-in, a class that basically adds stuff at runtime to an existing class (which from an OOP standpoint Flex' future career, you shouldn't do, but from a Functional standpoint + Decorator is perfectly legal), then use Manish's example; he uses inheritance, much like the TitleWindow extends Panel and has a close button; http://manish.revise.org/archives/2005/01/09/resizable-titlewindow-in-flex/ Also, Christophe Coenraets also has a great example of extending Panel: http://coenraets.com/viewarticle.jsp?articleId=89 (if his site fails, hit refresh) - Original Message - From: Seth Voltz To: Flex Coders Sent: Thursday, February 03, 2005 5:46 AM Subject: [flexcoders] Attempting to add a button to Panel titlebar Fellow Flexcoders, So I have been trying to place a button in the titlebar of one of my panels and started digging around. I remembered Jesse had put up an example of a mix-in class ( http://www.jessewarden.com/archives/2005/01/collapseable_pa.html ) for doing just that. I dug through the code and have had no luck. I have included the actionscript from my test file at the end of this message. so my questions are: 1) Jesse, what voodoo do you do to get that to work? ;) 2) Everyone
Re: [flexcoders] Installing Flex on OS X
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Now if only we could get a FlashCom install for the mac I could move *all* of our servers over to Macs. Right now we're looking at some dedicated Linux boxes for FlashCom and the remainder of the machines running OS X server. Seth On Feb 07, 2005, at 19:13, Robin Hilliard wrote: Hi Jasper, We've been running Flex on JRun/OS X for a while - I first installed it on OS X when I was at Macromedia shortly after the 1.0 release. The only thing we've noticed is that the fonts look much better running our apps in Firefox than Safari - and that the font widths are a bit different to Windows, causing some layout issues when windows users viewed our apps in IE. Robin http://www.rocketboots.com.au Yahoo! Groups Links -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFCCMmQsnBTlzgQQ28RAm4DAKCW+0Tv1UeLDXXjtBIm2B0CFO0bUgCfQUN2 3qE5LZz1cF0Cxt+rL1y2EWo= =HXCk -END PGP SIGNATURE-
Re: [flexcoders] Out Of Memory: Message
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What are the equivalent commands for the *nix tomcat install? (or is this not an issue for that version?) Thanks, Seth On Feb 03, 2005, at 20:29, Tracy Spratt wrote: There have been a couple threads that indicate you should boost the memory settings: Open the apache tomcat configuration app in sys tray, and on the Java tab, bump up the initial memory pool size and the maximum memory pool size to 512 Initial and 768 Max, click Ok In \Program Files\Apache software Foundation\Tomcat 5.0\bin\catalina.bat, in the last section immediately after rem Execute Java with the applicable properties, insert this line, set CATALINA_OPTS=-mx1024m. Save the file. Tracy -Original Message- From: goran187 [mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 1:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Out Of Memory: Message I am running Flex 1.5 on Apache Tomcat/5.0.28. Occasionally, I get the following error message: 'Requested page cannot be displayed An unexpected error occurred that prevented /AdTags/Adt.mxml from being displayed. -- -- Servlet execution threw an exception Technical Information: HTTP Status Code: 500 Exception Type: class java.lang.OutOfMemoryError Servlet Name: FlexMxmlServlet Exception java.lang.OutOfMemoryError' === After I restart Tomcat service, the message is gone. Anyone aware of the cause and fixes? Thanks, Goran Yahoo! Groups Links Yahoo! Groups Links -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFCAuN5snBTlzgQQ28RAh52AKCfgldwcAXtReUhTgxRPp3a9NqKpACfTpbR YjUwefh3GINy+UajDko39E4= =GYzW -END PGP SIGNATURE-
Menu events and panel status [was: Attempting to add a button to Panel titlebar]
Thanks, Jesse, Coenraet's article was exactly what I needed. Okay, two more questions now that I have a couple buttons in the panel: 1) One of the buttons spawns a menu like so: function handleMenuButton ( event ) { if ( _menuData ) { winMenu = Menu.createMenu ( event.target, menuData ); winMenu.addEventListener ( change, Delegate.create ( this, menuHandler )); var pos = getGlobalPosition ( event.target ); winMenu.show ( pos.x + event.target.width, pos.y ); } } and debug code tells me it's executing addEventListener() without warnings, however menuHandler() is never getting called. Any ideas? 2) I just found the status text feature in the panel and have a bunch of uses flowing through my mind for it... the problem is the buttons sit right on top of it. I'd like to be able to have my new panel extending class to intercept whatever creates that text object and move it to the left out of the way of each button. I tried using the Coenraet's object inspecting class to view everything attached to the panel hoping to find it and only came across the variables themselves ( _status : String and _statusChanged : Boolean ). No movieclips. Again, I'm lost here. Any ideas? Thanks a bunch :) Seth On Feb 03, 2005, at 10:52, JesterXL wrote: If you don't want to use a mix-in, a class that basically adds stuff at runtime to an existing class (which from an OOP standpoint Flex' future career, you shouldn't do, but from a Functional standpoint + Decorator is perfectly legal), then use Manish's example; he uses inheritance, much like the TitleWindow extends Panel and has a close button; http://manish.revise.org/archives/2005/01/09/resizable-titlewindow-in-flex/ Also, Christophe Coenraets also has a great example of extending Panel: http://coenraets.com/viewarticle.jsp?articleId=89 (if his site fails, hit refresh) x-tad-bigger- Original Message -/x-tad-bigger x-tad-bigger /x-tad-biggerx-tad-biggerFrom:/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-biggerSeth Voltz/x-tad-biggerx-tad-bigger /x-tad-bigger x-tad-biggerTo:/x-tad-biggerx-tad-bigger /x-tad-biggerx-tad-biggerFlex Coders/x-tad-bigger x-tad-biggerSent:/x-tad-biggerx-tad-bigger Thursday, February 03, 2005 5:46 AM/x-tad-bigger x-tad-biggerSubject:/x-tad-biggerx-tad-bigger [flexcoders] Attempting to add a button to Panel titlebar/x-tad-bigger Fellow Flexcoders, So I have been trying to place a button in the titlebar of one of my panels and started digging around. I remembered Jesse had put up an example of a mix-in class ( http://www.jessewarden.com/archives/2005/01/collapseable_pa.html ) for doing just that. I dug through the code and have had no luck. I have included the actionscript from my test file at the end of this message. so my questions are: 1) Jesse, what voodoo do you do to get that to work? ;) 2) Everyone, is there a different way I can do this? Is Jesse's way the most efficient / elegant? Thanks, Seth Code: myPanel.mxml (root element is mx:Panel /> with the following in a script tag, not including includes) import mx.utils.*; import de.richinternet.utils.Dumper; private var menu_pb : Button; public function initFunk ( ) { Dumper.dump ( Init... ); _initMenuButton ( this ); // Not sure why I have to do this, but I don't got compile errors on menu_pb with this. } static private function _initMenuButton ( obj ) { Dumper.dump ( Init 2... ); obj.onMenuButton = obj.onMenuButton; obj.createClassObject ( Button, menu_pb, obj.getNextHighestDepth ( )); obj.menu_pb.label = >; obj.menu_pb.setSize ( 22, 22 ); obj.menu_pb.addEventListener ( click, Delegate.create ( obj, obj.onMenuButton )); } private function onMenuButton ( ) { Dumper.dump ( Trace: fileShare.onMenuButton() ); } static private function _sizeOverload ( obj ) { Dumper.dump ( Size 2... ); obj.super.size ( ); obj.menu_pb.move ( obj.width - obj.menu_pb.width - 8, 4 ); } function size ( ) : Void { Dumper.dump ( Size... ); super.size ( ); _sizeOverload ( this ); } /* All dumps to the tracer are accounted for and in the expected order... */ Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. PGP.sig Description: This is a digitally signed message part
Attempting to add a button to Panel titlebar
Fellow Flexcoders, So I have been trying to place a button in the titlebar of one of my panels and started digging around. I remembered Jesse had put up an example of a mix-in class ( http://www.jessewarden.com/archives/2005/01/collapseable_pa.html ) for doing just that. I dug through the code and have had no luck. I have included the actionscript from my test file at the end of this message. so my questions are: 1) Jesse, what voodoo do you do to get that to work? ;) 2) Everyone, is there a different way I can do this? Is Jesse's way the most efficient / elegant? Thanks, Seth Code: myPanel.mxml (root element is mx:Panel /> with the following in a script tag, not including includes) import mx.utils.*; import de.richinternet.utils.Dumper; private var menu_pb : Button; public function initFunk ( ) { Dumper.dump ( Init... ); _initMenuButton ( this ); // Not sure why I have to do this, but I don't got compile errors on menu_pb with this. } static private function _initMenuButton ( obj ) { Dumper.dump ( Init 2... ); obj.onMenuButton = obj.onMenuButton; obj.createClassObject ( Button, menu_pb, obj.getNextHighestDepth ( )); obj.menu_pb.label = >; obj.menu_pb.setSize ( 22, 22 ); obj.menu_pb.addEventListener ( click, Delegate.create ( obj, obj.onMenuButton )); } private function onMenuButton ( ) { Dumper.dump ( Trace: fileShare.onMenuButton() ); } static private function _sizeOverload ( obj ) { Dumper.dump ( Size 2... ); obj.super.size ( ); obj.menu_pb.move ( obj.width - obj.menu_pb.width - 8, 4 ); } function size ( ) : Void { Dumper.dump ( Size... ); super.size ( ); _sizeOverload ( this ); } /* All dumps to the tracer are accounted for and in the expected order... */ PGP.sig Description: This is a digitally signed message part
A nearly complete click-and-hold menu!
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ladies and Gentlemen, May I present to you a click and hold contextual menu package Beta 1 http://designgods.net/misc_stuff/flex/popMenu.mxml.swf Some things to note: * Operation - click and hold anywhere in the application. I have mapped sample menus for everything. The code is such that if there is no menu mapped somewhere it will not try to display one. * Try and get a context menu while clicking and holding over the push button - It doesn't work? I think it's something in the menu controls but I haven't tested it thoroughly. * Clicking and dragging will still pop up a menu... I'm going to work on a fix at my next convenience... any hints as to an elegant solution would be appreciated as I just noticed it tonight. * Sometimes clicking and then quickly clicking somewhere else causes the menu code to fail. Not sure why. * Source code will be available later on... I still feel I have a lot of work to do before I'm willing to publish it (at the very least a ton of documentation needs to be put in. I'm thinking of trying NaturalDocs on it.) Okay... please give me your feedback, bug reports, etc... I'm looking to make this a solid package for open release. Thanks, Seth -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFB/cjDsnBTlzgQQ28RAsi+AJ0W1l7X3/DeyV6pviY5aWL4neaZ6wCfYjh0 PwPds2idc892/q05sIs4o2U= =bmUy -END PGP SIGNATURE-