[flexcoders] Re: Polymorphism....?
I wouldn't suggest you uptype to an IClosable interface. By doing so, you loose access to all the members of the UIComponent. And having access to super class's members is why you do inheritance in the first place. say: class Sub extends UIComponent implements IClosable var sub1:IClosable = new Sub(); sub1.id; // You get an error here sub1.isClosed; // this works var sub2:UIComponent = new Sub(); sub2.id; // this works sub2.isClosed; // You get an error here I suggest you create a subclass of UIComponent, say AbstractUIComp*, which will by default have all the members of UIComponent, plus all the new members you want to add on your own (isClosed). Then you just make more subclasses of the AbstractUIComp and you can safely uptype them later to AbstractUIComp to get the polymorphism working. say: class AbstractUIComp extends UIComponent class Sub extends AbstractUIComp var sub:AbstractUIComp = new Sub(); sub.id; // this works sub.isClosed; // this works * Unfortunately Abstract classes and members are not supported by AS3, so you have to just know that it is an Abstract class (class that you don't instantiate, you just use it for subclassing it). It would also be a bit more elegant if you would implement IClosable for the AbstractUIComp and all of it's classes. Cheers --- In flexcoders@yahoogroups.com, dsds99 [EMAIL PROTECTED] wrote: Thanks, your solution worked. If I think about it, I'm puzzled. Just like UIComponent, the IClosable interface doesn't have the isClosed property either. So when I cast it that interface, it should fail but it doesn't. If that's how interfaces work. Then casting it as IUIComponent interface should have worked too. --- In flexcoders@yahoogroups.com, Mike Krotscheck mkrotscheck@ wrote: UIComponent doesn't have a property called isClosed, therefore your attempt to access that property on an instance cast to UIComponent will throw an error. What you need to do is have each class implement an interface called IClosable or something along those lines, and cast to that. public function checkDoor(c:IClosable):Boolean { return c.isClosed; } Michael Krotscheck Senior Developer RESOURCE INTERACTIVE http://www.resource.com/ www.resource.com http://www.resource.com/ mkrotscheck@ mailto:mkrotscheck@ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dsds99 Sent: Tuesday, February 19, 2008 4:54 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Polymorphism? I have 2 unrelated classes that extend UIComponent ultimately..;) and each class implements a boolean property called isClosed Passing these classes into the function as untyped. If I don't cast, it works. Trying to understand why it doesn't work this way. A compile time error occurs in the if statement. But isn't this where polymorphism kicks in even though I am casting it to a higher class in the chain. public function checkDoor(c:*):void{ if((c is UIComponent).isClosed == true){ trace(opened); } } We support privacy and confidentiality. Please delete this email if it was received in error. What's new :: Capitalize on the social web | The Open Brand, a new book by Kelly Mooney and Dr. Nita Rollins, available March 2008 | www.theopenbrand.com
[flexcoders] Re: Polymorphism....?
Another good option would be to say ICloseable extends IUIComponent b/c IUIComponent is a Flex interface defined for you that has most of what you want. -Ryan --- In flexcoders@yahoogroups.com, b_alen [EMAIL PROTECTED] wrote: I wouldn't suggest you uptype to an IClosable interface. By doing so, you loose access to all the members of the UIComponent. And having access to super class's members is why you do inheritance in the first place. say: class Sub extends UIComponent implements IClosable var sub1:IClosable = new Sub(); sub1.id; // You get an error here sub1.isClosed; // this works var sub2:UIComponent = new Sub(); sub2.id; // this works sub2.isClosed; // You get an error here I suggest you create a subclass of UIComponent, say AbstractUIComp*, which will by default have all the members of UIComponent, plus all the new members you want to add on your own (isClosed). Then you just make more subclasses of the AbstractUIComp and you can safely uptype them later to AbstractUIComp to get the polymorphism working. say: class AbstractUIComp extends UIComponent class Sub extends AbstractUIComp var sub:AbstractUIComp = new Sub(); sub.id; // this works sub.isClosed; // this works * Unfortunately Abstract classes and members are not supported by AS3, so you have to just know that it is an Abstract class (class that you don't instantiate, you just use it for subclassing it). It would also be a bit more elegant if you would implement IClosable for the AbstractUIComp and all of it's classes. Cheers --- In flexcoders@yahoogroups.com, dsds99 dsds99@ wrote: Thanks, your solution worked. If I think about it, I'm puzzled. Just like UIComponent, the IClosable interface doesn't have the isClosed property either. So when I cast it that interface, it should fail but it doesn't. If that's how interfaces work. Then casting it as IUIComponent interface should have worked too. --- In flexcoders@yahoogroups.com, Mike Krotscheck mkrotscheck@ wrote: UIComponent doesn't have a property called isClosed, therefore your attempt to access that property on an instance cast to UIComponent will throw an error. What you need to do is have each class implement an interface called IClosable or something along those lines, and cast to that. public function checkDoor(c:IClosable):Boolean { return c.isClosed; } Michael Krotscheck Senior Developer RESOURCE INTERACTIVE http://www.resource.com/ www.resource.com http://www.resource.com/ mkrotscheck@ mailto:mkrotscheck@ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dsds99 Sent: Tuesday, February 19, 2008 4:54 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Polymorphism? I have 2 unrelated classes that extend UIComponent ultimately..;) and each class implements a boolean property called isClosed Passing these classes into the function as untyped. If I don't cast, it works. Trying to understand why it doesn't work this way. A compile time error occurs in the if statement. But isn't this where polymorphism kicks in even though I am casting it to a higher class in the chain. public function checkDoor(c:*):void{ if((c is UIComponent).isClosed == true){ trace(opened); } } We support privacy and confidentiality. Please delete this email if it was received in error. What's new :: Capitalize on the social web | The Open Brand, a new book by Kelly Mooney and Dr. Nita Rollins, available March 2008 | www.theopenbrand.com
[flexcoders] Re: do you need CS Degree to get a job?
as for me, developing web apps is really for dummies, i'd rather do something interesting in molecular biology... (but unfortunately I got this CS degree). As for hiring, i think there is no big need for Phds - Google and likes are big companies - they need soldiers too - to implement the ideas of those fews with big brains. So you always have a chance :) --- In flexcoders@yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote: A bit off-topic but I was just wondering since i have no reminescense of this and their seems to be a lot of programmers on here I thought I would ask this question. Do you actually need some sort of CS degree or Computer Related degree to get a job say in programming Web Applications or getting a Job at Adobe or MSFT or Google. I have a degree in Molecular Biology with a Chem Minor. I am Self-Taught so let me here some stories. Thanks. Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Re: [flexcoders] Is it possible to have 2 items in viewstack visible?
On Tuesday 12 Feb 2008, Max Frigge wrote: I would need to have 2 children visible at the same time, so that you can see the second child sliding in while the first one is sliding out. Is that possible or am I on the wrong path? You might want to look at the DistortionEffects package. -- Tom Chiverton Helping to ambassadorially entrench six-generation metrics on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Using module from Flex library project
Hello, I've developed a small flex module which I used inside flex project. Now I want to allow different applications to use that module, so I thought the best way to allow them using it is to distibute the module in a flex library project. However, when I put the library project in the source path of new flex project and mark it as a module, I get compile errors telling me that the *new project* (not the lib project) can't find the module resources (locales). I think the lib project should be the one responsible of having these locale resources, not the flex project that uses it. in the flex lib project I put this in the additional compiler arguments: -locale=en_US -allow-source-path-overlap=true -incremental=true and added the locales to the source path: locale/{locale} (just like I've done in a regular flex project) Any ideas of what I'm wrong ? (When running the module in a regular flex project, I get it to compile fine with the locales) Thanks in advance, Almog Kurtser.
Re: [flexcoders] JRE included in Ubuntu 7.10 mxmlc uses 100% CPU and infinite RAM when compiling .MXML, but not .AS
On Wednesday 20 Feb 2008, Fidel Viegas wrote: I never liked the other jdks. Don't know why. Well, I mainly only use Sun's precisely because of this sort of thing - the GNU one doesn't work. -- Tom Chiverton Helping to continuously participate transparent data on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Adding a non-inline creationComplete event handler
Hi, i am having serious memory leak problems whilst using modules in flex. The module-based application i am currently developing currently over time kills the browser its loaded in. Even when i attempt to load the simplest of modules (a module with a few buttons/empty datagrids) my flex app will eventually make IE/Firefox fall over after consuming about 650-700MB of RAM. I have been reading Grant Skinner's posts on memory management and weak reference techniques with regards to Flex/Flash player but i am still having big problems. I am also attempting to figure out how to add a creationComplete event handler on a module via actionscript. If i use the inline mxml approach, a strong reference will be created, and i will never be able to destroy it, resulting in the module never being removed from memory! Any advice and/or comments would be most appreciated, as i am hitting brick walls here and i need to progress with haste. Thanks, Barry
Re: [flexcoders] Re: Implementing Office 2007 menus
On Tuesday 19 Feb 2008, Paul Decoursey wrote: For losers like me that have no idea what Office 2007 is like, are there any real world examples that we can experience this with that won't cost us our children? The license PDF has many pictures. -- Tom Chiverton Helping to conveniently architect scalable web-readiness on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Tree descendants
I think it's XML(dataProvider).descendants().(attributes(enabled) == true) that you want ? Not checked it but I think it's pretty close at least. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rafael Faria Sent: 20 February 2008 05:55 To: flexcoders@yahoogroups.com Subject: [flexcoders] Tree descendants I'm trying to get the descendants from my XML which has the attribute enabled = true if i try XML(dataProvider).descendants().(@enabled = true) i get an error A term is undefined and has no properties. which is understandable because not every node has the enabled attribute. The question is how to get all that has the enabled attribute and is set true. __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __
RE: [flexcoders] Re: Is it possible to have 2 children of viewstack visible?
Tink did some work on a papervision 3d cube (and other) transition effect on states, (or possibly viewstack, can't remember) which I think has the same attribute - you can see both states at one time. The source is on his site somewhere. http://www.tink.ws/blog/ , it may give you some clues. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Max Frigge Sent: 20 February 2008 04:52 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Is it possible to have 2 children of viewstack visible? Hi Jason, I tried to avoid the states because it is so much more comfortable to use the viewstack with tabs and so forth. But if I would try to go the States way.. how would I best organize it when I have two complex components? Should I completely remove on child and ad the other.. where each child would be a component and the transition would remove the child after its animation has finished?? Do I get this right? And in regards to the other answer. The WipeEffect is not what I want. I need both children to be visible at the same time so that you can see the second one sliding in while the first one is sliding out.. Cheers, Max - Original Message From: jmfillman [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, February 20, 2008 4:52:19 AM Subject: [flexcoders] Re: Is it possible to have 2 children of viewstack visible? Max, I would think that States with transition effects would be the easiest way to do this. Jason --- In [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com , m.frigge [EMAIL PROTECTED] . wrote: Knock.. knock.. nobody knows this?? A simple no it doesn't work would be alright too :-) ??? --- In [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com , Max Frigge m.frigge@ wrote: Hi, I am trying to create a slide effect for a ViewStack. Therefor I would need to have 2 children visible at the same time, so that you can see the second child sliding in while the first one is sliding out. Is that possible or am I on the wrong path? I want something like this: ?xml version=1.0 ? !-- containers\navigato rs\VSLinkEffects .mxml -- mx:Parallel id=toSecond mx:Move duration=400 xFrom={search. x} xTo={search. width} target={search} / mx:Move duration=400 xFrom={-custInfo. width} xTo={custInfo. x} target={custInfo} / /mx:Parallel mx:ViewStack id=myViewStack borderStyle= solid width=200 creationPolicy= all mx:Canvas id=search label=Search mx:Label text=Search Screen/ /mx:Canvas mx:Canvas id=custInfo label=Customer Info mx:Label text=Customer Info/ /mx:Canvas /mx:ViewStack mx:Button click=toSecond. play() label=Play Effect / /mx:Application _ _ _ _ _ _ __ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools. search.yahoo. com/newsearch/ category. php? http://tools.search.yahoo.com/newsearch/category.php? category=shopping Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://us.rd.yahoo.com/evt=51734/*http:/tools.search.yahoo.com/newsearc h/category.php?category=shopping __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __
RE: [flexcoders] Drawing in Panel Insanity
Last time I needed the scrollbars property of a component I found that the scrollbar was protected - so had to extend the component itself and add methods to get scrollbar width etc. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 19 February 2008 20:04 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Drawing in Panel Insanity Right, but I mean I can't seem to find the method or properties to find the panel's scrollbars in the Panel content area - nothing I could find in the help docs. Got it working because I made the dumb mistake of calling width on the UIComponent instead of the panel itself. Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Interested in innovative ideas in Learning? Check out the GTO Innovative Learning Blog http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx and subscribe http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http% 3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis ts%2FPosts%2FArchive%2Easpx . From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eric Cancil Sent: Tuesday, February 19, 2008 2:50 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Drawing in Panel Insanity You can access their height and width directly. How did you get it working? On Feb 19, 2008 1:11 PM, Merrill, Jason [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hey Eric, I didn't thank you for your help thanks. I have it working now. By the way, is there a way to get the scrollbar's width (for the vertical scrollbar) and height style (for the horizontal scroll bar) in the container form of the panel? Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Interested in innovative ideas in Learning? Check out the GTO Innovative Learning Blog http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx and subscribe http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http% 3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis ts%2FPosts%2FArchive%2Easpx . From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Eric Cancil Sent: Tuesday, February 19, 2008 12:36 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Drawing in Panel Insanity You're probably not taking in account the panel's border thickness properties. When you get the panel's width it's including the border (not just where the content is being drawn like youre imagining). To get the true width of the content area youd need to subtract getStyle(borderThicknessRight) and getStyle(borderThicknessLeft). Hope this helps Eric Cancil On Feb 19, 2008 12:29 PM, Merrill, Jason [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: So I've been writing an Actionscript component that extends UIComponent and is wrapped inside a Panel tag. The UIComponent has code that draws a flowchart of sorts into the content area of the Panel, based on a dataprovider it's bound to. Everything works fine there, and the drawn graphics change when the dataprovider changes automatically. The drawn objects also stay within the boundaries of the Panel content area, thanks to some help on this list with overriding some protected methods. The problem I still have though, is getting the drawn content to stay centered in the content area, including when the Panel is resized (either by resizing the browser window, since the Panel's width is 100%, or by moving an HDividedBox divider that separates it from other panels), or when the drawn content changes size. I can measure the size of the drawn content easily enough using the getBounds() method of Rectangle class, but not the Panel's content area - the width and height seem to be way off when I measure them. The other problem is getting the scrollbars to be accurate. I'm getting really confused by Panel's unscaledWidth, unscaledHeight, measuredWidth, measuredHeight, width, height, explicitWidth, and explicitHeight properties and how
[flexcoders] Re: BubbleChart bubble selection
Thanks for this tip - i testet it and it works this way! Can you also tell me how to iterate over the chart items of a bubble chart? I tried this several times, but without sucess! --- In flexcoders@yahoogroups.com, simonjpalmer [EMAIL PROTECTED] wrote: here's an idea if you have a strongly typed domain model... 1) create yourself a bubble item renderer 2) override set data() 3) add a transient variable to the objects in your domain model which are in the data provider 4) in the set data() override get the bubble renderer to put itself onto the domain object passed in from the dataprovider 5) when selected in the grid, get the selectedItem and you should have the bubble item renderer 6) change some property of the renderer to hilight it that's one way of doing it, I'm sure there are others. You can probably iterate over some renderers collection on the chart looking for your data. --- In flexcoders@yahoogroups.com, linko27 linko27@ wrote: Hello! I've got a DataGrid and a BubbleChart using the same dataProvider. What I would like to do is when a row is selected in the grid, visually bring attention to the corresponding bubble - however I can't find a way to get at a particular bubble to make changes on it. Please help me!
[flexcoders] Datagrid item on rollOver
Hello! Can someone please help me! I need to change a propperty of an item in my datagrid on the rollOver event, but i just don't know how to get it.
Re: [flexcoders] Re: do you need CS Degree to get a job?
- Original Message - From: b_alen [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, February 20, 2008 7:41 AM Subject: [flexcoders] Re: do you need CS Degree to get a job? No matter what everybody's saying, I'm finding a huge difference between developers with formal education and those self thought. I would definitely suggest you to take some courses at least, not just for getting a job, but to get the knowledge you'll find valuable quite often. There is a reason why Universities exist. I would second that, though I think there is a split in the Flash/Flex world. Some employers are focussed on disposable projects that require flair but less formal technical skill. These people are less interested in formal CS education, they are focussed on quick results. Other employers will be focussed on more formal development of more sophisticated software and will be more interested in seeing that applicants have a background/training/experience that is aligned to more sophisticated and structured development. As others have said, how you come across at interview, coupled with your work will always be the most important thing regardless of your education. For roles where a more formal approach to development is required, a computer science degree is a big, big help. Paul --- In flexcoders@yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote: A bit off-topic but I was just wondering since i have no reminescense of this and their seems to be a lot of programmers on here I thought I would ask this question. Do you actually need some sort of CS degree or Computer Related degree to get a job say in programming Web Applications or getting a Job at Adobe or MSFT or Google. I have a degree in Molecular Biology with a Chem Minor. I am Self-Taught so let me here some stories. Thanks. Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping -- 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] Re: Implementing Office 2007 menus
I have to say, I find the ribbon bar a joy to use. there was very small adoption time, and I actually now work faster in office than ever before. This really is (imho) something Microsoft UI team has got exactly right. It's not just the UI but how passes selections back to the application (every option, in word for example, when hovered over is instantly translated onto your document allowing fast previews before making a selection. wonderful stuff. Also, it's not just a matter of copying as some have said. We should always try to take whats best out there and give it our personal slant. As for licensing, well whats the problem? Yes, I prefer OSource or open spec products (PDF for example), but not every product benefits from this kind of use agreement. And at the end of the day it costs nothing to read the specs and see what can be gained. I have also thought about creating a take on the Ribbon, simply because its such an effective UI. More the principal than the exact implementation is whats important. IMO, if there's a 120 page document discussing the use and ideology behind this UI then I think everyone should read it, if nothing else just to get an insight into what is an effect piece of design. (that goes for all tech documents that we can gain insight and knowledge from) hope that didnt sound like a rant, I just think people should keep an open mind, especially where MS are concerned. It's just to easy to know them (ok, they are hateful agreed, but must get it right every now and then)
[flexcoders] webservice and subclasses
I'm using the import WSDL tool in FB3 to generate my AS3 classes - One of my methods has the following signature: reverse( point : PointXY ) : void In addition, the following PointZ subclass is generated class PointZ extends PointXY { public var z : Number; } Whenever I call the reverse method with a PointZ instance, the soap envelope contains only the superclass (PointXY) properties. I had to adjust the generated class to implement the IXMLSchemaInstance interface, and set the xsiType to the default namespace and the class name. This is now picking up the subclass properties, however the attribute xsi:type value is malformed as follows: SOAP-ENV:Body Reverse xmlns=http://www.company.com; Location xsi:type=:PointZ X-117.351922/X Y33.999418/Y Z0/Z Note the prefix ':' before PointZ Any clues how to generate a well-formed type ? Thanks Mansour :-) check out my blog http://thunderheadxpler.blogspot.com/
[flexcoders] Re: Implementing Office 2007 menus
Having just sat and read the specs document over a cuppa, I'm even more impressed with the Ribbon controller (fluid user interface). the document is quit a piece of work. As i guessed in my last post, this is worth a read just for some of the design ideas it puts across.
Re: [flexcoders] Re: Implementing Office 2007 menus
On Feb 20, 2008 12:02 PM, Glenn Williams [EMAIL PROTECTED] wrote: I have to say, I find the ribbon bar a joy to use. there was very small adoption time, and I actually now work faster in office than ever before. This really is (imho) something Microsoft UI team has got exactly right. It's not just the UI but how passes selections back to the application (every option, in word for example, when hovered over is instantly translated onto your document allowing fast previews before making a selection. wonderful stuff. Also, it's not just a matter of copying as some have said. We should always try to take whats best out there and give it our personal slant. As for licensing, well whats the problem? Yes, I prefer OSource or open spec products (PDF for example), but not every product benefits from this kind of use agreement. And at the end of the day it costs nothing to read the specs and see what can be gained. I have also thought about creating a take on the Ribbon, simply because its such an effective UI. More the principal than the exact implementation is whats important. IMO, if there's a 120 page document discussing the use and ideology behind this UI then I think everyone should read it, if nothing else just to get an insight into what is an effect piece of design. (that goes for all tech documents that we can gain insight and knowledge from) hope that didnt sound like a rant, I just think people should keep an open mind, especially where MS are concerned. It's just to easy to know them (ok, they are hateful agreed, but must get it right every now and then) I totally agree with you.
Re: [flexcoders] Re: Transparent=true on BitmapData not working
Just plain old 0 worked fine. I just went back and checked the docs, they do actually tell you to do that, but I doubt I ever would have seen it. Doesn't really make sense, but you get that :) -J On Feb 20, 2008 5:02 PM, Shannon [EMAIL PROTECTED] wrote: try 0x0100, im not sure what other way to tell flash you aren't trying to say 0x00 (which is also zero) --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Doug McCune [EMAIL PROTECTED] wrote: add in a fill color for the initial BitmapData that is a full argb hex string. If you don't do this the transparency won't work as far as I know. So try changing the line to: var bmd : BitmapData = new BitmapData(dragInitiator.width, dragInitiator.height, true, 0x); Doug On 2/19/08, Josh McDonald [EMAIL PROTECTED] wrote: Hi guys, I can't seem to get transparent=false to work when creating a BitmapData. I'm using it as a dragproxy, and I get a white box instead of nothing when I do the following: var bmd : BitmapData = new BitmapData (dragInitiator.width, dragInitiator.height, true); //bmd.draw(dragInitiator); dragProxy.graphics.beginBitmapFill(bmd); dragProxy.graphics.drawRect(0, 0, dragProxy.width, dragProxy.height); if I uncomment the bmd.draw() line everything goes according to plan, but the dragInitiator component has rounded edges so I can see 4 little white corners, which is definitely not the way I'd like it to work. Any ideas? -J -- Therefore, send not to know For whom the bell tolls, It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Therefore, send not to know For whom the bell tolls, It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] Re: Implementing Office 2007 menus
On Wednesday 20 Feb 2008, Glenn Williams wrote: I have to say, I find the ribbon bar a joy to use. I think it eats too much space, and looks cluttered on small displays (like what users have). I'm reading their PDF anyway. -- Tom Chiverton Helping to seamlessly promote value-added markets on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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: Is it possible to have 2 children of viewstack visible?
Thanks for the hint. I found something that Tink calls PairedStackEffect.. I have no time right no to try it out but the example shows exactly what I was looking for. For everyone else who is looking for this.. it can be found on http://www.tink.ws/blog/pairedstackeffect-fade-squash/ Cheers, Max - Original Message From: Jim Hayes [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, February 20, 2008 9:06:49 PM Subject: RE: [flexcoders] Re: Is it possible to have 2 children of viewstack visible? Tink did some work on a papervision 3d cube (and other) transition effect on states, (or possibly viewstack, can’t remember) which I think has the same attribute – you can see both states at one time. The source is on his site somewhere. http://www.tink. ws/blog/ , it may give you some clues. -Original Message- From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Max Frigge Sent: 20 February 2008 04:52 To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] Re: Is it possible to have 2 children of viewstack visible? Hi Jason, I tried to avoid the states because it is so much more comfortable to use the viewstack with tabs and so forth. But if I would try to go the States way.. how would I best organize it when I have two complex components? Should I completely remove on child and ad the other.. where each child would be a component and the transition would remove the child after its animation has finished?? Do I get this right? And in regards to the other answer. The WipeEffect is not what I want. I need both children to be visible at the same time so that you can see the second one sliding in while the first one is sliding out.. Cheers, Max - Original Message From: jmfillman [EMAIL PROTECTED] net To: [EMAIL PROTECTED] ups.com Sent: Wednesday, February 20, 2008 4:52:19 AM Subject: [flexcoders] Re: Is it possible to have 2 children of viewstack visible? Max, I would think that States with transition effects would be the easiest way to do this. Jason --- In [EMAIL PROTECTED] ups.com, m.frigge [EMAIL PROTECTED] . wrote: Knock.. knock.. nobody knows this?? A simple no it doesn't work would be alright too :-) ??? --- In [EMAIL PROTECTED] ups.com, Max Frigge m.frigge@ wrote: Hi, I am trying to create a slide effect for a ViewStack. Therefor I would need to have 2 children visible at the same time, so that you can see the second child sliding in while the first one is sliding out. Is that possible or am I on the wrong path? I want something like this: ?xml version=1.0 ? !-- containers\navigato rs\VSLinkEffects .mxml -- mx:Parallel id=toSecond mx:Move duration=400 xFrom={search. x} xTo={search. width} target={search} / mx:Move duration=400 xFrom={-custInfo. width} xTo={custInfo. x} target={custInfo} / /mx:Parallel mx:ViewStack id=myViewStack borderStyle= solid width=200 creationPolicy= all mx:Canvas id=search label=Search mx:Label text=Search Screen/ /mx:Canvas mx:Canvas id=custInfo label=Customer Info mx:Label text=Customer Info/ /mx:Canvas /mx:ViewStack mx:Button click=toSecond. play() label=Play Effect / /mx:Application _ _ _ _ _ _ __ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools. search.yahoo. com/newsearch/ category. php? category=shopping Looking for last minute shopping deals? Find them fast with Yahoo! Search. _ _ _ _ _ _ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. _ _ _ _ _ _ !-- #ygrp-mkp{ border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;} #ygrp-mkp hr{ border:1px solid #d8d8d8;} #ygrp-mkp #hd{ color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;} #ygrp-mkp #ads{ margin-bottom:10px;} #ygrp-mkp .ad{ padding:0 0;} #ygrp-mkp .ad a{
[flexcoders] Re: Implementing Office 2007 menus
LOL, ok i just read back my post. king of the typo!! I meant to say microsoft...'it's just so easy to knock them'. sure you got what i meant tho.
RE: [flexcoders] do you need CS Degree to get a job?
If its your first job in the field a degree will certainly help. After that you had better have some good references and be able to code on the spot. You also need to be personable in the interview (no small point). I was a political philosophy major. It was the only degree I could find that didnt have a math requirement at my school! (Still had to take 6 hours of statistics .twice). My first job was as a bill collector! Didnt like that so I quit, worked construction, and took some night school classes in programming (cobol, pascal, c)(1988!). Somebody in my class got me a job at a bank and I've just gone from there. I've been through several banks and two startups. One very successful, one not. I've been through several managerial positions. I personally dont care if you have a degree or not. I care about what you know and (VERY important) how motivated you are/how much passion you have for what you do, and how much of a team player you can be. Its absoluteley no fun working with people who are not doing what they love (this job just requires too much dedication). Its also a colossal waste of time and a huge vulnerability to hire people who can not communicate with others and/or are elitist (therefore, the team player requirement). If you give short answers at an interview and talk to your feet, you wont get the good jobs. With all this in mind, a degree is, therefore, irrelevant to me. Most of the people I would hire will come through mutual friends (linkedin is a great source for this). NEVER burn a bridge (5 years down the road, you have no idea who is going to be the decision maker in something you want/need very, very badly). And ALWAYS keep in touch with people you know are good, motivated and love what they do. Build your short list of contacts as you advance through your career. It WILL be a life saver sooner or later. (The coolest idea in the world and VC money are useless unless you can build a good team). Somebody mentioned putting a blog up and posting like hell. I think thats is a great idea! Its much better than a resume. It shows that you are motivated, it displays your talent level (code wise), your organizational ability, your ability to explain difficult concepts, your ability to communicate in writing, and, it can, show your ability to deal with annoying people! (And, at deadline, after a 60, 70 hour week, everybody gets annoying!) A very good idea. brad -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sherif Abdou Sent: Tuesday, February 19, 2008 7:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] do you need CS Degree to get a job? A bit off-topic but I was just wondering since i have no reminescense of this and their seems to be a lot of programmers on here I thought I would ask this question. Do you actually need some sort of CS degree or Computer Related degree to get a job say in programming Web Applications or getting a Job at Adobe or MSFT or Google. I have a degree in Molecular Biology with a Chem Minor. I am Self-Taught so let me here some stories. Thanks. _ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i6 2sR8HDtDypao8Wcj9tAcJ it now.
[flexcoders] basic IDE developement, need ideas best practices
hi all; I need to develop a small text editor inside a big flex application. call it expression editor. the user can write javascript, xpath and should be able to add variables (variables are taken from Model,so the user does not define variable, just add reference). the code should be colored(or shaped) well and must be easy as possible as it can be because the users are not coders. For example, when the users wants to call a function, he should select from a drop down list, then select the inputs again from comboboxes if possible(but the input can itself also be an expression :S). Or when he needs to write an XPath, i need to show a tree according to the xsd which will be loaded according to the selected function. to good news is expressions are like function based language codes, so no sequential coding; the bad news is there are too many expressions in the application in many places; so this GUI must work as a pop-up one (so need to be litefast) before starting development, i wanted to ask for design ideas and best practices. any help is welcome. thnks -- yigit
Re: [flexcoders] Re: passing variables between two consecutive flex applications
here is my implemented solution, may be useful for some others; i have written an top page which include an iframe (width height 100%) the first view calls javascript via external interface and it calls it's parent, saves the xml data; then the parent navigates iframe to the other page, then the new page requests the xml via javascript. i work fineefficientno server side scripting. i anyone request, i can send the codes. thanks to helpers. Ralf Bokelberg wrote On 02/18/2008 05:28 PM: Those are your only options. Beside SharedObjects, which is the easiest option i guess. -- Ralf Bokelberg [EMAIL PROTECTED] mailto:ralf.bokelberg%40gmail.com Flex Flash Consultant based in Cologne/Germany
Re: [flexcoders] Power point in FLEX
On Wed, Feb 20, 2008 at 10:39 AM, Karthik pothuri [EMAIL PROTECTED] wrote: Friends, I am new member to this group. Please drop your ideas on How to develop power point presentations in Flex on web browser. Microsoft powerpoint on web browser. To develop this which topics helps me ... Help me.. Can't export directly from Power Point a Slide Presentation for the web?
Re: [flexcoders] Re: bitmap hitTest method
On Wednesday 20 Feb 2008, n3moncic wrote: Actually it took me a while to understand that hitTestObject doesn't work for me because both DisplayObjects may be rotated and hitTestObject takes into consideration transparent pixels. Ahh. getObjectsUnderPoint() ? -- Tom Chiverton Helping to dramatically develop B2B e-business on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Power point in FLEX
does it have to output to a true ppt file or are you just interested in mimicking the functionality? On Wed, Feb 20, 2008 at 4:39 AM, Karthik pothuri [EMAIL PROTECTED] wrote: *Friends,* ** *I am new member to this group.* ** *Please drop your ideas on How to develop power point presentations in Flex on web browser.* ** *Microsoft powerpoint on web browser. To develop this which topics helps me ...* ** *Help me..* ** ** *Karthik..))* ** -- 5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.http://in.rd.yahoo.com/tagline_mail_4/*http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
[flexcoders] Re: Datagrid headers without separators
Thanks Peeyush and Tom. It works now. -Aasim --- In flexcoders@yahoogroups.com, Peeyush Tuli [EMAIL PROTECTED] wrote: The way you are doing it will do it only once, then the view is refreshed to original. You need to override the protected method updateDisplayList and then call clearSeparators. updateDisplayList is the method invoked by flex itself to update the view of a component. override protected function updateDisplayList (unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); clearSeparators(); } ~Peeyush On Feb 20, 2008 9:19 AM, Aasim [EMAIL PROTECTED] wrote: I am still unable to do it...Here is my code ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical creationComplete=init() xmlns:classes=classes.* mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var arr:ArrayCollection; private function init():void{ arr=new ArrayCollection([ {name:name1,age:21}, {name:name2,age:22}, {name:name3,age:23}, {name:name4,age:24} ]) } private function onComplete():void{ dg1.clearSep(); } ]] /mx:Script classes:CustomDG id=dg1 dataProvider={arr} creationComplete=onComplete() verticalGridLines=false / /mx:Application and here is my custom extended datagrid package classes { import mx.controls.DataGrid; import mx.controls.Alert; public class CustomDG extends DataGrid { public function CustomDG() { super(); } public function clearSep():void { clearSeparators(); } } } Could you tell me where I am going wrong? -Aasim --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tom Chiverton tom.chiverton@ wrote: On Tuesday 19 Feb 2008, Aasim wrote: I need to create a Datagrid without the separators in the datagrid headers. I have seen that there is a protected function clearSeparators() Can this be used? If it's protected, you can only call it from a subclass. So create a sub class with a public method doClearSperators() and have that call clearSperatators(). -- Tom Chiverton Helping to competently consolidate intuitive CEOs on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] bitmap hitTest method
Hi, my question is about basically pixel level collision. lets say I have two Image display objects and I get it's bitmap Data respectively for the first one and the 2nd one. Below is the code -- var shipBmpData:BitmapData = new BitmapData(shipBox.width,shipBox.height,false,0); shipBmpData.draw(shipBox); var hitImageBmpData:BitmapData = new BitmapData(shipBoxHit.width,shipBoxHit.height,false,0); hitImageBmpData.draw(shipBoxHit); if (hitImageBmpData.hitTest(new Point(shipBoxHit.x,shipBoxHit.y),255,shipBmpData,new Point(shipBox.x,shipBox.y),255)) { Alert.show(quot;final hitquot;); } -- I cannot understand why I can't exact pixel level detection. Basically one of them is moving towards the other and when it is over it, it should detect collision. Can anyone give the correct way? I want to get a collision at pixel level. Thanks in advance!
Re: [flexcoders] Basic Air App
On Wednesday 20 Feb 2008, Dan Vega wrote: be running the debugger version of Flash player right? Are you running the most recent debug version ? -- Tom Chiverton Helping to enormously expedite dynamic deliverables on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Power point in FLEX
Friends, I am new member to this group. Please drop your ideas on How to develop power point presentations in Flex on web browser. Microsoft powerpoint on web browser. To develop this which topics helps me ... Help me.. Karthik..)) - 5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.
[flexcoders] Re: BubbleChart bubble selection
In Flex 3, one can use 'items' property on Series which is an array of chartitems. --- In flexcoders@yahoogroups.com, linko27 [EMAIL PROTECTED] wrote: Thanks for this tip - i testet it and it works this way! Can you also tell me how to iterate over the chart items of a bubble chart? I tried this several times, but without sucess! --- In flexcoders@yahoogroups.com, simonjpalmer simonjpalmer@ wrote: here's an idea if you have a strongly typed domain model... 1) create yourself a bubble item renderer 2) override set data() 3) add a transient variable to the objects in your domain model which are in the data provider 4) in the set data() override get the bubble renderer to put itself onto the domain object passed in from the dataprovider 5) when selected in the grid, get the selectedItem and you should have the bubble item renderer 6) change some property of the renderer to hilight it that's one way of doing it, I'm sure there are others. You can probably iterate over some renderers collection on the chart looking for your data. --- In flexcoders@yahoogroups.com, linko27 linko27@ wrote: Hello! I've got a DataGrid and a BubbleChart using the same dataProvider. What I would like to do is when a row is selected in the grid, visually bring attention to the corresponding bubble - however I can't find a way to get at a particular bubble to make changes on it. Please help me!
[flexcoders] finding all textareas
Hi there, is there a way to determine all e.g. textareas within the current state? cheers, Nikolas smime.p7s Description: S/MIME cryptographic signature
Re: [flexcoders] how to de-serialize objects
Hi, Firstly you need to map your AS objects to the Java objects (if you did this already, ignore). Here is the link to details on how to map. http://sujitreddyg.wordpress.com/2008/01/16/mapping-action-script-objects-to-java-objects/ to which component are you setting the dataprovider to? if it is DataGrid, can you make sure you have included the datafield properties properly. If it is to List or combobox, you have to set the label field property also. If all the above are done and still it is not working, please share some code snippets, which might help to debug the issue. Regards, Sujit Reddy G On Wed, Feb 20, 2008 at 11:03 AM, Peeyush Tuli [EMAIL PROTECTED] wrote: Are you sure about the code where you set the dataprovider to be 100% correct as I have never encountered such a scenario of no serialization. One quick recall i have is that flex was not able to de-serialize date types when used with a dotnet webservice, it rather takes them as a string. Can you let us know the communication mechanism you are using for this? ( webservices or remoting) Regarding a serializing utility, maybe this post can help you http://www.darronschall.com/weblog/archives/000247.cfm ~Peeyush On Feb 20, 2008 5:16 AM, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: hI experts, i've created a Java Object that returns an array list of items to my flex app...however even though I set the dataprovider attribute correctly none of the data actually renders...a quick glance at the data using the debugger shows that the objects are there so i think they'renot being deserialized properly...can anyone tell me how to achieve this? i've created the client side object in AS, but still not sure why it's not working... thanks p btw i'm using FB3 cheers -- Regards, Sujit Reddy. G
Re: [flexcoders] Power point in FLEX
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If the presentation is relatively simple in design, OpenOffice 2.3 (maybe other lower versions) can export the presentation into a SWF format. Derrick Anderson wrote: does it have to output to a true ppt file or are you just interested in mimicking the functionality? On Wed, Feb 20, 2008 at 4:39 AM, Karthik pothuri [EMAIL PROTECTED] wrote: *Friends,* ** *I am new member to this group.* ** *Please drop your ideas on How to develop power point presentations in Flex on web browser.* ** *Microsoft powerpoint on web browser. To develop this which topics helps me ...* ** *Help me..* ** ** *Karthik..))* ** -- 5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.http://in.rd.yahoo.com/tagline_mail_4/*http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/ - -- Mike Duncan ISSO, Application Security Specialist Government Contractor with STG, Inc. NOAA :: National Climatic Data Center 151 Patton Ave. Asheville, NC 28801-5001 [EMAIL PROTECTED] 828.271.4289 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHvDmonvIkv6fg9hYRAmFoAJkBrg4CMG/jBEbUnwd/BWDPufkylQCfQmcS YriWqv5VTNQ6yfmAzkYzx50= =ketM -END PGP SIGNATURE-
[flexcoders] Automate [Embed] pictures in a SWF
Hi, Background: - a given folder - many pictures in the folder (D1.jpg, D2.jpg, etc...screenshots genre) Goal: - automate the embedding of the pictures at compile time (for info, the future SWF will latter show synchronised screenshots with an audio recording) Newbie problem: - I know how to do it by hand (see below) - I don't see how I can automate the embedding of the pictures, ie: By hand (I search for an AS3 solution for now, UIcomponent gave me problems while trying to find a Flex solution): ~ package { import flash.display.Sprite; public class Main extends Sprite { private var screenshots:Array = new Array(); // screenshots instances array [Embed(../assets/screenshots/D1.jpg)]// how do I automate that? private var Screen1:Class; // how do I automate that? [Embed(../assets/screenshots/D2.jpg)]// how do I automate that? private var Screen2:Class; // how do I automate that? public function Main() { screenshots.push(new Screen1()); // populate the screenshots array screenshots.push(new Screen2()); addChild(screenshots[0]); // show the screenshots addChild(screenshots[1]); } } } If we know that in the given folder there is let say 30 screenshots, how do I automate the embedding of this pictures in the script above ? (or a Flex alternative? a URL, suggestion, etc) Thanks
Re: [flexcoders] Is it possible to have 2 items in viewstack visible?
To my knowledge this is not possible Tom.. Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 12 Feb 2008, Max Frigge wrote: I would need to have 2 children visible at the same time, so that you can see the second child sliding in while the first one is sliding out. Is that possible or am I on the wrong path? You might want to look at the DistortionEffects package. -- Tom Chiverton Helping to ambassadorially entrench six-generation metrics on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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 - Chat on a cool, new interface. No download required. Click here.
[flexcoders] Horizontal Menu??
Hi, Have you come across a horizontal menu? The menu should have items stacked horizontally next to each other rather than being stacked vertically. -Aasim
[flexcoders]Error while using outerdocument
Hi all, I am trying to add remove button and on the click calling a function using outerdocument scope. This is the code... -- ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:Metadata [Event(name=productRemoved,type=events.ProductEvent)] /mx:Metadata mx:Script ![CDATA[ import events.ProductEvent; import valueObjects.ShoppingCart; import valueObjects.ShoppingCartItem; import valueObjects.Product; import mx.controls.dataGridClasses.DataGridColumn; import valueObjects.Category; [Bindable] public var cart:ShoppingCart; private function renderPriceLabel(item:ShoppingCartItem,dataField:DataGridColumn):String{ return $+String(item.subtotal); } public function removeItem(cartItem:ShoppingCartItem):void{ var prod:Product = cartItem.product; var e:ProductEvent = new ProductEvent(prod,productRemoved); this.dispatchEvent(e); } ]] /mx:Script mx:DataGrid id=cartView dataProvider={cart.aItems} width=100% height=100% editable=true draggableColumns=false variableRowHeight=true mx:columns mx:DataGridColumn dataField=product headerText=Product itemRenderer=renderer.ecomm.ProductName editable=false/ mx:DataGridColumn dataField=quantity itemEditor=mx.controls.NumericStepper editorDataField=value editable=true headerText=Quantity / mx:DataGridColumn dataField=subtotal headerText=Amount labelFunction=renderPriceLabel editable=false / mx:DataGridColumn editable=false mx:itemRenderer mx:Component mx:VBox mx:Button label=Remove click=outerDocument.removeItem(valueObjects.ShoppingCartItem(data));/ /mx:VBox /mx:Component /mx:itemRenderer /mx:DataGridColumn /mx:columns /mx:DataGrid /mx:VBox - Its giving an error saying Access of undefined property valueObjects. Line 51 the coding for the Shoppingcartitem is as follows package valueObjects { public class ShoppingCartItem { public var product:Product; private var _quantity:uint; public var subtotal:Number; public function ShoppingCartItem(product:Product, quantity:uint=1){ this.product = product; this.quantity = quantity; this.subtotal = product.listPrice * quantity; } public function recalc():void{ this.subtotal = product.listPrice * quantity; } public function set quantity(qty:uint):void{ _quantity = qty; recalc(); } public function get quantity():uint{ return _quantity; } public function toString():String{ return this.quantity.toString() + : + this.product.prodName; } } } Can anyone help me out -- Thanx Regards, Rajiv Gupta
Re: [flexcoders] Basic Air App
i'm having a similar problem while debugging flex on linux (pardus) sometimes the debugger lose connection, sometimes it can not connect; but actually it is not deterministic ;( Dan Vega wrote On 02/20/2008 04:19 PM: I am trying to build a basic air app using Flex 3. I have been writing some Flex applications with no problem but when I goto debug my AIR app I am having some issues. First off here is the basic code to create the app. ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute title=Hello AIR mx:Label text=Hello AIR horizontalCenter=0 verticalCenter=0/ /mx:WindowedApplication When I try and debug Flash Player 9 opens and Flex Builder stays on Launching... for about 1 minute after which I see the following error. Failed to connect, session timed out. Ensure that. 1.) You compiled your flash application with debugging on 2.) You are running the debugger version of Flash Player. I am not sure why I get this message? If I am debbugging flex applications with no problem I should be running the debugger version of Flash player right?
[flexcoders] Re: bitmap hitTest method
Hi Tom Chiverton, Actually it took me a while to understand that hitTestObject doesn't work for me because both DisplayObjects may be rotated and hitTestObject takes into consideration transparent pixels. What do you think about pixel collision? --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 20 Feb 2008, n3moncic wrote: one of them is moving towards the other and when it is over it, it should detect collision. You don't need hitTest() here, do you, because you know where they both are and their size... ? -- Tom Chiverton Helping to paradigmatically lead industry-wide developments on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders]Error while using outerdocument
On Wednesday 20 Feb 2008, rajiv gupta wrote: Access of undefined property valueObjects.Line 51 outerDocument.valueObjects ? -- Tom Chiverton Helping to elementarily facilitate high-yield niches on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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: Polymorphism....?
You said that you extended UIComponent and included isClosed property in your classes. The problem with the code is that, in your if statement you included ((c is UIComponent).isClosed == true. When the compiler executes c is UIComponent the object you get is Boolean and now it will try to invoke isClosed property on the boolean object. try modifying your code to this public function checkDoor(c:*):void{ if(c is UIComponent c.isClosed == true){ trace(opened); } } On Wed, Feb 20, 2008 at 2:12 PM, Ryan Frishberg [EMAIL PROTECTED] wrote: Another good option would be to say ICloseable extends IUIComponent b/c IUIComponent is a Flex interface defined for you that has most of what you want. -Ryan --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, b_alen [EMAIL PROTECTED] wrote: I wouldn't suggest you uptype to an IClosable interface. By doing so, you loose access to all the members of the UIComponent. And having access to super class's members is why you do inheritance in the first place. say: class Sub extends UIComponent implements IClosable var sub1:IClosable = new Sub(); sub1.id; // You get an error here sub1.isClosed; // this works var sub2:UIComponent = new Sub(); sub2.id; // this works sub2.isClosed; // You get an error here I suggest you create a subclass of UIComponent, say AbstractUIComp*, which will by default have all the members of UIComponent, plus all the new members you want to add on your own (isClosed). Then you just make more subclasses of the AbstractUIComp and you can safely uptype them later to AbstractUIComp to get the polymorphism working. say: class AbstractUIComp extends UIComponent class Sub extends AbstractUIComp var sub:AbstractUIComp = new Sub(); sub.id; // this works sub.isClosed; // this works * Unfortunately Abstract classes and members are not supported by AS3, so you have to just know that it is an Abstract class (class that you don't instantiate, you just use it for subclassing it). It would also be a bit more elegant if you would implement IClosable for the AbstractUIComp and all of it's classes. Cheers --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, dsds99 dsds99@ wrote: Thanks, your solution worked. If I think about it, I'm puzzled. Just like UIComponent, the IClosable interface doesn't have the isClosed property either. So when I cast it that interface, it should fail but it doesn't. If that's how interfaces work. Then casting it as IUIComponent interface should have worked too. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Mike Krotscheck mkrotscheck@ wrote: UIComponent doesn't have a property called isClosed, therefore your attempt to access that property on an instance cast to UIComponent will throw an error. What you need to do is have each class implement an interface called IClosable or something along those lines, and cast to that. public function checkDoor(c:IClosable):Boolean { return c.isClosed; } Michael Krotscheck Senior Developer RESOURCE INTERACTIVE http://www.resource.com/ www.resource.com http://www.resource.com/ mkrotscheck@ mailto:mkrotscheck@ From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of dsds99 Sent: Tuesday, February 19, 2008 4:54 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Polymorphism? I have 2 unrelated classes that extend UIComponent ultimately..;) and each class implements a boolean property called isClosed Passing these classes into the function as untyped. If I don't cast, it works. Trying to understand why it doesn't work this way. A compile time error occurs in the if statement. But isn't this where polymorphism kicks in even though I am casting it to a higher class in the chain. public function checkDoor(c:*):void{ if((c is UIComponent).isClosed == true){ trace(opened); } } We support privacy and confidentiality. Please delete this email if it was received in error. What's new :: Capitalize on the social web | The Open Brand, a new book by Kelly Mooney and Dr. Nita Rollins, available March 2008 | www.theopenbrand.com -- Regards, Sujit Reddy. G
Re: [flexcoders] Cannot embed Flash9 symbols
Hi Paul, Please try to follow the steps in the URL below and see if you can embed the Flash assets into your flex application. http://sujitreddyg.wordpress.com/2008/01/02/creating-and-importing-flash-assets-into-flex/ Hope this helps. On Wed, Feb 20, 2008 at 6:01 AM, Paul Decoursey [EMAIL PROTECTED] wrote: Ok, pretty much exactly the code I have in place. Three things I see wrong here.. 1) The symbol that loads is way messed up and does not at all match when displays in Flash. 2) When I publish the swf from the flash on my machine without changes it no longer works. 3) You've missed what I'm really trying to do. I need dynamic assets not static assets to be loaded from the SWF. I have no idea what the problem is for 1, and I don't care at this point, but it could be an indication of what the real issue is for me. I'm going to try a new clean and reinstall of everything Flash and see if anything starts working again. I'm not sure if it's related but I did notice odd things after a software update from Apple, I'm on a mac by the way, an update the the flash player was included that broke a lot of stuff for me. I had to reinstall the Flash Debug Player. Somebody at Adobe needs to talk to apple about this, it's the second update in a row that has caused me headaches. For the 3rd issue, it should work if I can get the Flex Component kit to work properly. Sherif, thanks for trying. I think that you thought it was more of a newbie question, but I was really just looking for validation that my SWF was junk, not that my methods were faulty. Paul On Feb 19, 2008, at 4:57 PM, Sherif Abdou wrote: ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout= vertical creationComplete=initApp() mx:Script ![CDATA[ *import* mx.core.UIComponent; *import* mx.events.CalendarLayoutChangeEvent; *import* mx.controls.Image; [*Bindable*] [*Embed*(source=*assets2.swf*,symbol=*BestBuyCar*)] *public* *var* myLogo:Class; *public* *function* initApp():*void*{ } ]] /mx:Script mx:Button skin={myLogo}/ /mx:WindowedApplication assets2 is in root so ya u could add it in a forder but this works and i tried it - Original Message From: Paul Decoursey [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, February 19, 2008 3:18:42 PM Subject: Re: [flexcoders] Cannot embed Flash9 symbols What is bothering me more is this... I have reinstalled Flash CS3, reinstalled Flex 2 and all the hotfixes, reinstalled the Flex Component Kit and followed the directions for it 10 times now and it does not work. I cannot load any of the components that Flash is outputting. I'm getting very frustrated and I have no other ideas of what might be happening. I've also tried it in Flex 3 to no avail, which is leading me to believe that the issue is int he swfs and swcs that Flash is generating. Does anyone have any clue? I've wasted a day on this, and I can't in good conscious bill my client for this time. Paul On Feb 19, 2008, at 3:11 PM, Paul Decoursey wrote: How do you access in Flex then? This still doesn't work for me either. Paul On Feb 19, 2008, at 2:39 PM, Sherif Abdou wrote: BestBuyLogo BestBuyCar - Original Message From: Paul Decoursey [EMAIL PROTECTED] net [EMAIL PROTECTED] To: [EMAIL PROTECTED] ups.com flexcoders@yahoogroups.com Sent: Tuesday, February 19, 2008 2:21:51 PM Subject: Re: [flexcoders] Cannot embed Flash9 symbols Now I'm totally lost. You can't export a Graphic for actionscript. Can you send me the file you altered and got to work? When I open the file I posted the assets I'm looking at are Symbols, they are MovieClips and they are setup to be exported in the SWF. If I roll back to target AS2 everything works, but I need AS3 for some of the other assets I will be exporting that are not in the file I posted. Paul On Feb 19, 2008, at 1:38 PM, Sherif Abdou wrote: they were not symbols when i opened the file, i am not familiar with flash but they were movieClips and not Graphics which is what you need. - Original Message From: Paul Decoursey [EMAIL PROTECTED] net [EMAIL PROTECTED] To: [EMAIL PROTECTED] ups.com flexcoders@yahoogroups.com Sent: Tuesday, February 19, 2008 1:26:33 PM Subject: Re: [flexcoders] Cannot embed Flash9 symbols They are symbols already are they not? Anyway I think that my Flash is messed up. I'm having trouble with other timeline based swfs as well, where nothing appears when loaded. Paul On Feb 19, 2008, at 12:37 PM, Sherif Abdou wrote: All right so i hope i understood what your saying, what you need to do is bring the Car and the Sign to the Stage, Hit F8 and convert both of them to Symbols/Graphics and then export them and they should work. I tried that and i am able to embed it in flex App. - Original Message From: Sherif Abdou [EMAIL PROTECTED] com [EMAIL
Re: [flexcoders] bitmap hitTest method
On Wednesday 20 Feb 2008, n3moncic wrote: one of them is moving towards the other and when it is over it, it should detect collision. You don't need hitTest() here, do you, because you know where they both are and their size... ? -- Tom Chiverton Helping to paradigmatically lead industry-wide developments on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Horizontal Menu?
Hi, Has anyone made a horizontal menu componnet which has the items arranged horizontally rather than stacked vertically? -Aasim
[flexcoders] Basic Air App
I am trying to build a basic air app using Flex 3. I have been writing some Flex applications with no problem but when I goto debug my AIR app I am having some issues. First off here is the basic code to create the app. ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute title=Hello AIR mx:Label text=Hello AIR horizontalCenter=0 verticalCenter=0/ /mx:WindowedApplication When I try and debug Flash Player 9 opens and Flex Builder stays on Launching... for about 1 minute after which I see the following error. Failed to connect, session timed out. Ensure that. 1.) You compiled your flash application with debugging on 2.) You are running the debugger version of Flash Player. I am not sure why I get this message? If I am debbugging flex applications with no problem I should be running the debugger version of Flash player right?
Re: [flexcoders] Basic Air App
how do i find this out? Would I still be able to debug flex apps if I wasnt? On Feb 20, 2008 9:36 AM, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 20 Feb 2008, Dan Vega wrote: be running the debugger version of Flash player right? Are you running the most recent debug version ?
Re: [flexcoders] Basic Air App
On Wednesday 20 Feb 2008, Dan Vega wrote: how do i find this out? Would I still be able to debug flex apps if I wasnt? Maybe not, based on my experience with the Builder's on Linux. The most recent version is ..115. Right click any Flash content and choose 'about'. -- Tom Chiverton Helping to centrally maximize proactive e-tailers on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Re: bitmap hitTest method
Hi again, but getObjectsUnderPoint() wouldn't that mean under a particular x y point? It wouldn't be that accurate since a DisplayObject has many points. What do you think? It thought hitTest method would mean pixel level detection. Thanks! --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 20 Feb 2008, n3moncic wrote: Actually it took me a while to understand that hitTestObject doesn't work for me because both DisplayObjects may be rotated and hitTestObject takes into consideration transparent pixels. Ahh. getObjectsUnderPoint() ? -- Tom Chiverton Helping to dramatically develop B2B e-business on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: Flex Ant Task for F3b3 genereates ALWAYS debug version, how to fix that?
In my simple test I see size changing from 241kb to 149kb. I would suggest you log a bug at http://bugs.adobe.com/flex with your test case Thanks, Gaurav --- In flexcoders@yahoogroups.com, lytvynyuk [EMAIL PROTECTED] wrote: Nothing happened, same size. That is mean, It didn't checks that options or I do something wrong. Need to do deeper investigation. All that FlexAntTasks story is so confusing - there is no proper documentation, I figured some options only by analyzing java source files!...g --- In flexcoders@yahoogroups.com, Gaurav Jain gauravj@ wrote: What happens when you compile with Ant task using debug=true? If it generates swf of size more than 190 kb, then probably the difference you are seeing is due to some other difference between FB and ant task arguments. Look in the .actionScriptProperties file to see what libraries FB is linking against and see if you have anything additional? Thanks, Gaurav --- In flexcoders@yahoogroups.com, lytvynyuk lytvynyuk@ wrote: Here is piece of my flex ant file: mxmlc file=${BUILD_SPACE}ActiveUpdate.mxml output=${DEPLOY_DIR}/ActiveUpdate.swf actionscript-file-encoding=UTF-8 services=${BUILD_SPACE}res/services-config.xml context-root=ISP locale=en_US as3=true optimize=true static-rsls=false headless-server=true runtime-shared-libraries url=framework_3.0.189825.swf/ source-path path-element=${FLEX_HOME}/frameworks/ compiler.keep-as3-metadatafalse/compiler.keep-as3-metadata compiler.debugfalse/compiler.debug compiler.library-path dir=${FLEX_HOME}/frameworks append=true include name=libs / include name=../bundles/{locale} / /compiler.library-path /mxmlc Whatever options I put in here I getting debug version with size 190kb, but when I do export release via eclipse I getting version sized 140!!! WHY?
Re: [flexcoders] do you need CS Degree to get a job?
A lot of us are putting our 2 cents in. A few things that are getting lost in the conversation (and I'm guilty of these as well). 1. As Doug pointed out, we're equating the ability to do the job with the ability to get the job, which is not alway true. 2. Not all jobs are created equal. Some jobs require formal CS knowledge and some don't. The hiring process can reflect these differences. 3. Matt Chotin is a project manager at Adobe and he posted his response very quickly. There's no more authoritative source (although there are some equally as authoritative sources) to answer the question as it was originally posed. - Dan Freiman On Wed, Feb 20, 2008 at 8:10 AM, Brad Bueche [EMAIL PROTECTED] wrote: If its your first job in the field a degree will certainly help. After that you had better have some good references and be able to code on the spot. You also need to be personable in the interview (no small point). I was a political philosophy major. It was the only degree I could find that didnt have a math requirement at my school! (Still had to take 6 hours of statistics .twice). My first job was as a bill collector! Didnt like that so I quit, worked construction, and took some night school classes in programming (cobol, pascal, c)(1988!). Somebody in my class got me a job at a bank and I've just gone from there. I've been through several banks and two startups. One very successful, one not. I've been through several managerial positions. I personally dont care if you have a degree or not. I care about what you know and (VERY important) how motivated you are/how much passion you have for what you do, and how much of a team player you can be. Its absoluteley no fun working with people who are not doing what they love (this job just requires too much dedication). Its also a colossal waste of time and a huge vulnerability to hire people who can not communicate with others and/or are elitist (therefore, the team player requirement). If you give short answers at an interview and talk to your feet, you wont get the good jobs. With all this in mind, a degree is, therefore, irrelevant to me. Most of the people I would hire will come through mutual friends (linkedin is a great source for this). NEVER burn a bridge (5 years down the road, you have no idea who is going to be the decision maker in something you want/need very, very badly). And ALWAYS keep in touch with people you know are good, motivated and love what they do. Build your short list of contacts as you advance through your career. It WILL be a life saver sooner or later. (The coolest idea in the world and VC money are useless unless you can build a good team). Somebody mentioned putting a blog up and posting like hell. I think thats is a great idea! Its much better than a resume. It shows that you are motivated, it displays your talent level (code wise), your organizational ability, your ability to explain difficult concepts, your ability to communicate in writing, and, it can, show your ability to deal with annoying people! (And, at deadline, after a 60, 70 hour week, everybody gets annoying!) A very good idea. brad -Original Message- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Sherif Abdou *Sent:* Tuesday, February 19, 2008 7:12 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] do you need CS Degree to get a job? A bit off-topic but I was just wondering since i have no reminescense of this and their seems to be a lot of programmers on here I thought I would ask this question. Do you actually need some sort of CS degree or Computer Related degree to get a job say in programming Web Applications or getting a Job at Adobe or MSFT or Google. I have a degree in Molecular Biology with a Chem Minor. I am Self-Taught so let me here some stories. Thanks. -- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
[flexcoders] Re: Adding a non-inline creationComplete event handler
There was a bug in flex 2.0.1 which prevented modules from getting unloaded. This was fixed by changing to weak event listeners. If you are seeing this with flex 2.0.1, please try flex 3. Also you may want to try loading the module via the low level ModuleManager api, this should give you better control over the module. Thanks, Gaurav --- In flexcoders@yahoogroups.com, Barry Evans [EMAIL PROTECTED] wrote: Hi, i am having serious memory leak problems whilst using modules in flex. The module-based application i am currently developing currently over time kills the browser its loaded in. Even when i attempt to load the simplest of modules (a module with a few buttons/empty datagrids) my flex app will eventually make IE/Firefox fall over after consuming about 650-700MB of RAM. I have been reading Grant Skinner's posts on memory management and weak reference techniques with regards to Flex/Flash player but i am still having big problems. I am also attempting to figure out how to add a creationComplete event handler on a module via actionscript. If i use the inline mxml approach, a strong reference will be created, and i will never be able to destroy it, resulting in the module never being removed from memory! Any advice and/or comments would be most appreciated, as i am hitting brick walls here and i need to progress with haste. Thanks, Barry
Re: [flexcoders] Re: bitmap hitTest method
I don't have time to follow all the links but it looks like this post might get you to the solution: http://troygilbert.com/category/game-dev/ - Dan Freiman On Wed, Feb 20, 2008 at 10:01 AM, n3moncic [EMAIL PROTECTED] wrote: Hi again, but getObjectsUnderPoint() wouldn't that mean under a particular x y point? It wouldn't be that accurate since a DisplayObject has many points. What do you think? It thought hitTest method would mean pixel level detection. Thanks! --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 20 Feb 2008, n3moncic wrote: Actually it took me a while to understand that hitTestObject doesn't work for me because both DisplayObjects may be rotated and hitTestObject takes into consideration transparent pixels. Ahh. getObjectsUnderPoint() ? -- Tom Chiverton Helping to dramatically develop B2B e-business on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
RE: [flexcoders] Power point in FLEX
If you need to support the .ppt filetype, here is an excellent Joel Spolsky article on that topic : http://www.joelonsoftware.com/items/2008/02/19.html http://www.joelonsoftware.com/items/2008/02/19.html Thanks, Carl Carl-Alexandre Malartre Directeur de projets, Scolab 514-528-8066, 1-888-528-8066 Besoin d'aide en maths? www.Netmaths.net From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Karthik pothuri Sent: Wednesday, February 20, 2008 4:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Power point in FLEX Friends, I am new member to this group. Please drop your ideas on How to develop power point presentations in Flex on web browser. Microsoft powerpoint on web browser. To develop this which topics helps me ... Help me.. Karthik..)) _ 5, 50, 500, 5000 - Store N number of mails in your inbox. Click http://in.rd.yahoo.com/tagline_mail_4/*http:/help.yahoo.com/l/in/yahoo/mail /yahoomail/tools/tools-08.html/ here.
Re: [flexcoders] how to de-serialize objects
Sujit, I've done exactly as you have in this blog with the exception of returning one object at a time...instead i return a list of objects (in java List resultList = new ArrayList();) .. so i guess i need a way to deserialize the list on the Actionscript side is that the problem? yes...i'm using datagrid... Thanks! p On Feb 20, 2008 6:04 AM, Sujit Reddy [EMAIL PROTECTED] wrote: Hi, Firstly you need to map your AS objects to the Java objects (if you did this already, ignore). Here is the link to details on how to map. http://sujitreddyg.wordpress.com/2008/01/16/mapping-action-script-objects-to-java-objects/ to which component are you setting the dataprovider to? if it is DataGrid, can you make sure you have included the datafield properties properly. If it is to List or combobox, you have to set the label field property also. If all the above are done and still it is not working, please share some code snippets, which might help to debug the issue. Regards, Sujit Reddy G On Wed, Feb 20, 2008 at 11:03 AM, Peeyush Tuli [EMAIL PROTECTED] wrote: Are you sure about the code where you set the dataprovider to be 100% correct as I have never encountered such a scenario of no serialization. One quick recall i have is that flex was not able to de-serialize date types when used with a dotnet webservice, it rather takes them as a string. Can you let us know the communication mechanism you are using for this? ( webservices or remoting) Regarding a serializing utility, maybe this post can help you http://www.darronschall.com/weblog/archives/000247.cfm ~Peeyush On Feb 20, 2008 5:16 AM, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: hI experts, i've created a Java Object that returns an array list of items to my flex app...however even though I set the dataprovider attribute correctly none of the data actually renders...a quick glance at the data using the debugger shows that the objects are there so i think they'renot being deserialized properly...can anyone tell me how to achieve this? i've created the client side object in AS, but still not sure why it's not working... thanks p btw i'm using FB3 cheers -- Regards, Sujit Reddy. G
[flexcoders] Re: mxmlc java.lang.IndexOutOfBoundsException
Which version of flex are you using? There were some related fixes in flex 3 beta 3. If you are seeing this with flex 3 beta 3, please log a bug at http://bugs.adobe.com/flex with the test case. Thanks, Gaurav --- In flexcoders@yahoogroups.com, Dan [EMAIL PROTECTED] wrote: Hi, I am getting the same error java.lang.IndexOutOfBoundsException So do you two find the solutions for that Regards, Daniel --- In flexcoders@yahoogroups.com, j_lentzz jelentz@ wrote: Hi, I'm trying to use the command line compiler for a set of standalone apps. It used to work fine, but now I'm getting the following error when I start up my make file: mxmlc -show-unused-type-selector-warnings=false -output bin/AddEditReviseProjectRequest.swf AddEditReviseProjectRequest.mxml Loading configuration file C:\Program Files\Adobe\Flex Builder 2 \Flex SDK 2\frameworks\flex-config.xml Error: Index: 14, Size: 5 java.lang.IndexOutOfBoundsException: Index: 14, Size: 5 at java.util.ArrayList.RangeCheck(ArrayList.java:546) at java.util.ArrayList.get(ArrayList.java:321) ... Has anyone see this before or know what is causing it? It used to compile just fine. I restructured some code, but I'm not doing anything new. Any help or ideas would be greatly appreciated. Thanks, John
Re: [flexcoders] Basic Air App
On Wednesday 20 Feb 2008, Tom Chiverton wrote: The most recent version is ..115. Right click any Flash content and choose 'about'. Although http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19245sliceId=1 will also confirm it's a debug player. Also, make sure Eclipse is launching the same browser you think it is :-) -- Tom Chiverton Helping to vitalistically benchmark fifth-generation models on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Flex Component Kit Help!
Is there a way to validate a SWC? Or to see what classes are in them and can be loaded by Flex? On Feb 19, 2008, at 8:51 PM, Paul Decoursey wrote: I've been having a lot of trouble lately with the Flex Comp Kit. I can't seem to get even the simplest thing to be seen in Flex. I do see an UninitializedError in top level that I can't seem to find any information on anywhere... does this mean something? Paul
[flexcoders] getCharBounds not working on AIR?
It seems a bit ridiculous but it's true. Not just that you have to use all sorts of hacks to get access to good old TextField (IUITextField) in Flex in order to even think of accessing characters' Rectangles. Once you do manage to cut your way through, you get a very nasty disappointment that IUITextField.getCharBounds() works perfectly in Flex Web apps, but returns some bizarre incorrect values when running on AIR. If anyone has any suggestion, I'd really appreciate it very much. We're in terrible deadline and this is one of the crucial functionalities. var tf:TextAreaExtended = new TextAreaExtended(); tf._textField.text = dsfsdf sfd sf dsf sfdsd fdsfdsfdsfdsfdsf fds; addChild(tf); var rect:Rectangle = tf._textField.getCharBoundaries(20); // I get values for rect.left something like 0.5 // same goes for other rect properties, very weird. // extended TextArea which gives access to TextField package { import mx.controls.TextArea; import mx.core.IUITextField; public class TextAreaExtended extends TextArea { public function TextAreaExtended() { createChildren(); } public function get _textField():IUITextField{ return textField; } } }
[flexcoders] Best Practices:HTTPService, E4X, XML and dataProvider
Thanks to this group, I have come a long way in understanding this. I want to check my setup and see if I still have further to go. Is this the preferred way to set up a dataprovider when pulling XML in E4X format via HTTPService? Or do I still need to some how incorporate XMLListCollection here? public var xmlService:HTTPService = new HTTPService(); public var dataProvider:XMLList = new XMLList(); public function loadXML():void { xmlService.url = http://hostname/Data/createXML.php;; xmlService.resultFormat = e4x; xmlService.addEventListener(ResultEvent.RESULT, resultHandler); xmlService.send(); } public function resultHandler(event:ResultEvent):void { dataProvider = event.result.month; }
Re: [flexcoders] Basic Air App
I have 115 installed and ran the about test in both browsers. Dan On Feb 20, 2008 9:55 AM, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 20 Feb 2008, Tom Chiverton wrote: The most recent version is ..115. Right click any Flash content and choose 'about'. Although http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19245sliceId=1 will also confirm it's a debug player. Also, make sure Eclipse is launching the same browser you think it is :-) -- Tom Chiverton Helping to vitalistically benchmark fifth-generation models on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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] Re: bitmap hitTest method
Thanks very much, I will take it a look. --- In flexcoders@yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote: I don't have time to follow all the links but it looks like this post might get you to the solution: http://troygilbert.com/category/game-dev/ - Dan Freiman On Wed, Feb 20, 2008 at 10:01 AM, n3moncic [EMAIL PROTECTED] wrote: Hi again, but getObjectsUnderPoint() wouldn't that mean under a particular x y point? It wouldn't be that accurate since a DisplayObject has many points. What do you think? It thought hitTest method would mean pixel level detection. Thanks! --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tom Chiverton tom.chiverton@ wrote: On Wednesday 20 Feb 2008, n3moncic wrote: Actually it took me a while to understand that hitTestObject doesn't work for me because both DisplayObjects may be rotated and hitTestObject takes into consideration transparent pixels. Ahh. getObjectsUnderPoint() ? -- Tom Chiverton Helping to dramatically develop B2B e-business on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: Using module from Flex library project
The idea behind modules is to make your main app smaller (by breaking into modules) so that you can speed up initial load time. And load/unload modules when ever required. By default when you compile a module, flex builder optimizes it for the main application - which means it does not add classes to the module which are already in the main app. You can share the same module between different applications as long as you don't optimize your module for any particular app. Module is runtime thing. Adding module into a library will not work. If you are looking to share common code across application and are not interested in modules, you can use libraries. Also if you want to share code across different application but you want to do so at runtime, you can benefit from using runtime shared libraries. For more information about rsls see here http://livedocs.adobe.com/labs/flex3/html/help.html?content=rsl_02.html Thanks, Gaurav --- In flexcoders@yahoogroups.com, mydarkspoon [EMAIL PROTECTED] wrote: Hello, I've developed a small flex module which I used inside flex project. Now I want to allow different applications to use that module, so I thought the best way to allow them using it is to distibute the module in a flex library project. However, when I put the library project in the source path of new flex project and mark it as a module, I get compile errors telling me that the *new project* (not the lib project) can't find the module resources (locales). I think the lib project should be the one responsible of having these locale resources, not the flex project that uses it. in the flex lib project I put this in the additional compiler arguments: -locale=en_US -allow-source-path-overlap=true -incremental=true and added the locales to the source path: locale/{locale} (just like I've done in a regular flex project) Any ideas of what I'm wrong ? (When running the module in a regular flex project, I get it to compile fine with the locales) Thanks in advance, Almog Kurtser.
Re: [flexcoders] how to de-serialize objects
Peeyush, I'm using remoting (RemoteObject) with a j2ee back-end... it rather takes them as a string. hmmm...this actually sheds some light on things...i'm not returning the actual object but rather a list of objects.. thanks p On Feb 19, 2008 9:33 PM, Peeyush Tuli [EMAIL PROTECTED] wrote: Are you sure about the code where you set the dataprovider to be 100% correct as I have never encountered such a scenario of no serialization. One quick recall i have is that flex was not able to de-serialize date types when used with a dotnet webservice, it rather takes them as a string. Can you let us know the communication mechanism you are using for this? ( webservices or remoting) Regarding a serializing utility, maybe this post can help you http://www.darronschall.com/weblog/archives/000247.cfm ~Peeyush On Feb 20, 2008 5:16 AM, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: hI experts, i've created a Java Object that returns an array list of items to my flex app...however even though I set the dataprovider attribute correctly none of the data actually renders...a quick glance at the data using the debugger shows that the objects are there so i think they'renot being deserialized properly...can anyone tell me how to achieve this? i've created the client side object in AS, but still not sure why it's not working... thanks p btw i'm using FB3 cheers
[flexcoders] Re: Using module from Flex library project
Thanks for your response, but RSL won't fit in this situation. RSL are loaded at the application startup, however, I'm using module because I want to load the component by demand. I've used modules before, but never been using modules that sits in a different project. It's important that the module will be separated from the main app/apps so that one developer can add features to the module, while another one can work on the loader app and have an up-to-date module compiled using source control. Cheers, Almog Kurtser. --- In flexcoders@yahoogroups.com, Gaurav Jain [EMAIL PROTECTED] wrote: The idea behind modules is to make your main app smaller (by breaking into modules) so that you can speed up initial load time. And load/unload modules when ever required. By default when you compile a module, flex builder optimizes it for the main application - which means it does not add classes to the module which are already in the main app. You can share the same module between different applications as long as you don't optimize your module for any particular app. Module is runtime thing. Adding module into a library will not work. If you are looking to share common code across application and are not interested in modules, you can use libraries. Also if you want to share code across different application but you want to do so at runtime, you can benefit from using runtime shared libraries. For more information about rsls see here http://livedocs.adobe.com/labs/flex3/html/help.html?content=rsl_02.html Thanks, Gaurav --- In flexcoders@yahoogroups.com, mydarkspoon mydarkspoon@ wrote: Hello, I've developed a small flex module which I used inside flex project. Now I want to allow different applications to use that module, so I thought the best way to allow them using it is to distibute the module in a flex library project. However, when I put the library project in the source path of new flex project and mark it as a module, I get compile errors telling me that the *new project* (not the lib project) can't find the module resources (locales). I think the lib project should be the one responsible of having these locale resources, not the flex project that uses it. in the flex lib project I put this in the additional compiler arguments: -locale=en_US -allow-source-path-overlap=true -incremental=true and added the locales to the source path: locale/{locale} (just like I've done in a regular flex project) Any ideas of what I'm wrong ? (When running the module in a regular flex project, I get it to compile fine with the locales) Thanks in advance, Almog Kurtser.
Re: [flexcoders] Cannot embed Flash9 symbols
Now you are just being insulting. If had read what I wrote you would have seen that I had tried that. I just need simple validation of my files. http://client.devilsworkbook.com/assets.swf http://client.devilsworkbook.com/assets.swc In those there is an UIMovieClip that I cannot see in Flex, it is called mc_bestbuycar. I just need someone to tell me if it works for them so I can narrow down where the problem might be. Paul On Feb 20, 2008, at 6:59 AM, Sujit Reddy wrote: Hi Paul, Please try to follow the steps in the URL below and see if you can embed the Flash assets into your flex application. http://sujitreddyg.wordpress.com/2008/01/02/creating-and-importing-flash-assets-into-flex/ Hope this helps. On Wed, Feb 20, 2008 at 6:01 AM, Paul Decoursey [EMAIL PROTECTED] wrote: Ok, pretty much exactly the code I have in place. Three things I see wrong here.. 1) The symbol that loads is way messed up and does not at all match when displays in Flash. 2) When I publish the swf from the flash on my machine without changes it no longer works. 3) You've missed what I'm really trying to do. I need dynamic assets not static assets to be loaded from the SWF. I have no idea what the problem is for 1, and I don't care at this point, but it could be an indication of what the real issue is for me. I'm going to try a new clean and reinstall of everything Flash and see if anything starts working again. I'm not sure if it's related but I did notice odd things after a software update from Apple, I'm on a mac by the way, an update the the flash player was included that broke a lot of stuff for me. I had to reinstall the Flash Debug Player. Somebody at Adobe needs to talk to apple about this, it's the second update in a row that has caused me headaches. For the 3rd issue, it should work if I can get the Flex Component kit to work properly. Sherif, thanks for trying. I think that you thought it was more of a newbie question, but I was really just looking for validation that my SWF was junk, not that my methods were faulty. Paul On Feb 19, 2008, at 4:57 PM, Sherif Abdou wrote: ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical creationComplete=initApp() mx:Script ![CDATA[ import mx.core.UIComponent; import mx.events.CalendarLayoutChangeEvent; import mx.controls.Image; [Bindable] [Embed(source=assets2.swf,symbol=BestBuyCar)] public var myLogo:Class; public function initApp():void{ } ]] /mx:Script mx:Button skin={myLogo}/ /mx:WindowedApplication assets2 is in root so ya u could add it in a forder but this works and i tried it - Original Message From: Paul Decoursey [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, February 19, 2008 3:18:42 PM Subject: Re: [flexcoders] Cannot embed Flash9 symbols What is bothering me more is this... I have reinstalled Flash CS3, reinstalled Flex 2 and all the hotfixes, reinstalled the Flex Component Kit and followed the directions for it 10 times now and it does not work. I cannot load any of the components that Flash is outputting. I'm getting very frustrated and I have no other ideas of what might be happening. I've also tried it in Flex 3 to no avail, which is leading me to believe that the issue is int he swfs and swcs that Flash is generating. Does anyone have any clue? I've wasted a day on this, and I can't in good conscious bill my client for this time. Paul On Feb 19, 2008, at 3:11 PM, Paul Decoursey wrote: How do you access in Flex then? This still doesn't work for me either. Paul On Feb 19, 2008, at 2:39 PM, Sherif Abdou wrote: BestBuyLogo BestBuyCar - Original Message From: Paul Decoursey [EMAIL PROTECTED] net To: [EMAIL PROTECTED] ups.com Sent: Tuesday, February 19, 2008 2:21:51 PM Subject: Re: [flexcoders] Cannot embed Flash9 symbols Now I'm totally lost. You can't export a Graphic for actionscript. Can you send me the file you altered and got to work? When I open the file I posted the assets I'm looking at are Symbols, they are MovieClips and they are setup to be exported in the SWF. If I roll back to target AS2 everything works, but I need AS3 for some of the other assets I will be exporting that are not in the file I posted. Paul On Feb 19, 2008, at 1:38 PM, Sherif Abdou wrote: they were not symbols when i opened the file, i am not familiar with flash but they were movieClips and not Graphics which is what you need. - Original Message From: Paul Decoursey [EMAIL PROTECTED] net To: [EMAIL PROTECTED] ups.com Sent: Tuesday, February 19, 2008 1:26:33 PM Subject: Re: [flexcoders] Cannot embed Flash9 symbols They are symbols already are they not? Anyway I think that my Flash is messed up. I'm having trouble with other timeline based swfs as well, where nothing appears when loaded. Paul On Feb 19, 2008,
Re: [flexcoders] Datagrid item on rollOver
Don't change the datagrid. Change the data that the datagrid is bound to. The underlying change in the data will refresh the datagrid. The rollOver should give you the hint as to where in your data to make the change. -mL linko27 wrote: Hello! Can someone please help me! I need to change a propperty of an item in my datagrid on the rollOver event, but i just don't know how to get it. Notice of confidentiality: The information contained in this e-mail is intended only for the use of the individual or entity named above and may be confidential. Should the reader of this message not be the intended recipient, you are hereby notified that any unauthorized dissemination, distribution or reproduction of this message is strictly prohibited. If you have received this message in error, please advise the sender immediately and destroy the e-mail.
RE: [flexcoders] Drawing in Panel Insanity
Cool - do have some sample methods that get the scrollbar width of a component that extends panel? Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Interested in innovative ideas in Learning? Check out the GTO Innovative Learning Blog http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx and subscribe http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http% 3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis ts%2FPosts%2FArchive%2Easpx . From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Hayes Sent: Wednesday, February 20, 2008 5:17 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Drawing in Panel Insanity Last time I needed the scrollbars property of a component I found that the scrollbar was protected - so had to extend the component itself and add methods to get scrollbar width etc. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 19 February 2008 20:04 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Drawing in Panel Insanity Right, but I mean I can't seem to find the method or properties to find the panel's scrollbars in the Panel content area - nothing I could find in the help docs. Got it working because I made the dumb mistake of calling width on the UIComponent instead of the panel itself. Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Interested in innovative ideas in Learning? Check out the GTO Innovative Learning Blog http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx and subscribe http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http% 3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis ts%2FPosts%2FArchive%2Easpx . From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eric Cancil Sent: Tuesday, February 19, 2008 2:50 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Drawing in Panel Insanity You can access their height and width directly. How did you get it working? On Feb 19, 2008 1:11 PM, Merrill, Jason [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hey Eric, I didn't thank you for your help thanks. I have it working now. By the way, is there a way to get the scrollbar's width (for the vertical scrollbar) and height style (for the horizontal scroll bar) in the container form of the panel? Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Interested in innovative ideas in Learning? Check out the GTO Innovative Learning Blog http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx and subscribe http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http% 3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis ts%2FPosts%2FArchive%2Easpx . From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Eric Cancil Sent: Tuesday, February 19, 2008 12:36 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Drawing in Panel Insanity You're probably not taking in account the panel's border thickness properties. When you get the panel's width it's including the border (not just where the content is being drawn like youre imagining). To get the true width of the content area youd need to subtract getStyle(borderThicknessRight) and getStyle(borderThicknessLeft). Hope this helps
[flexcoders] Re: Using module from Flex library project
So I assume you are just looking to move module(s) into a separate flex builder project? If my assumption is correct read on. It is possible to load the modules from a different project. A module is after all a SWF so you theoretically be able to load it from a url (as long as you don't run into domain issues). Here is what I would do. 1. Create a Flex Project in Flex Builder. 2. Add what ever modules, you need to add. 3. Delete the main app file (from this project). 4. Go to project properties - Flex modules - double click on all modules (one by one) and remove the option for Optimize for. The disadvantage for moving modules to a separate project is that you loose capability for automatic optimize for. This is used to reduce the size of the module by not duplicating classes which are already in the main application. However there is a workaround: In the main project (from which you want to move *out* all modules): 1. Go to project properties - Flex compiler 2. In the additional compiler arguments add -link-report=lnkreport.xml (you can also give the absolute path for where you want the link report to be generated). Now in the project which will contain modules. 1. Go to project properties - Flex compiler 2. In the additional compiler arguments add -load-externs=lnkreport.xml (make sure path is same as what you gave in the main project). This would make sure that modules in the separate project would be optimized for your main app. Now since you moved them to a different project, you need to copy the compiled modules to the location specified by the url used to load the modules. or simply change the Output folder for the modules project by going to project properties - flex build path HTH, Gaurav --- In flexcoders@yahoogroups.com, mydarkspoon [EMAIL PROTECTED] wrote: Thanks for your response, but RSL won't fit in this situation. RSL are loaded at the application startup, however, I'm using module because I want to load the component by demand. I've used modules before, but never been using modules that sits in a different project. It's important that the module will be separated from the main app/apps so that one developer can add features to the module, while another one can work on the loader app and have an up-to-date module compiled using source control. Cheers, Almog Kurtser. --- In flexcoders@yahoogroups.com, Gaurav Jain gauravj@ wrote: The idea behind modules is to make your main app smaller (by breaking into modules) so that you can speed up initial load time. And load/unload modules when ever required. By default when you compile a module, flex builder optimizes it for the main application - which means it does not add classes to the module which are already in the main app. You can share the same module between different applications as long as you don't optimize your module for any particular app. Module is runtime thing. Adding module into a library will not work. If you are looking to share common code across application and are not interested in modules, you can use libraries. Also if you want to share code across different application but you want to do so at runtime, you can benefit from using runtime shared libraries. For more information about rsls see here http://livedocs.adobe.com/labs/flex3/html/help.html?content=rsl_02.html Thanks, Gaurav --- In flexcoders@yahoogroups.com, mydarkspoon mydarkspoon@ wrote: Hello, I've developed a small flex module which I used inside flex project. Now I want to allow different applications to use that module, so I thought the best way to allow them using it is to distibute the module in a flex library project. However, when I put the library project in the source path of new flex project and mark it as a module, I get compile errors telling me that the *new project* (not the lib project) can't find the module resources (locales). I think the lib project should be the one responsible of having these locale resources, not the flex project that uses it. in the flex lib project I put this in the additional compiler arguments: -locale=en_US -allow-source-path-overlap=true -incremental=true and added the locales to the source path: locale/{locale} (just like I've done in a regular flex project) Any ideas of what I'm wrong ? (When running the module in a regular flex project, I get it to compile fine with the locales) Thanks in advance, Almog Kurtser.
Re: [flexcoders] do you need CS Degree to get a job?
I think the original question tends to ignore the fact that no two employers are indeed the same. So there's no yes or no to be had, just maybe.. Paul - Original Message - From: Daniel Freiman To: flexcoders@yahoogroups.com Sent: Wednesday, February 20, 2008 3:09 PM Subject: Re: [flexcoders] do you need CS Degree to get a job? A lot of us are putting our 2 cents in. A few things that are getting lost in the conversation (and I'm guilty of these as well). 1. As Doug pointed out, we're equating the ability to do the job with the ability to get the job, which is not alway true. 2. Not all jobs are created equal. Some jobs require formal CS knowledge and some don't. The hiring process can reflect these differences. 3. Matt Chotin is a project manager at Adobe and he posted his response very quickly. There's no more authoritative source (although there are some equally as authoritative sources) to answer the question as it was originally posed. - Dan Freiman On Wed, Feb 20, 2008 at 8:10 AM, Brad Bueche [EMAIL PROTECTED] wrote: If its your first job in the field a degree will certainly help. After that you had better have some good references and be able to code on the spot. You also need to be personable in the interview (no small point). I was a political philosophy major. It was the only degree I could find that didnt have a math requirement at my school! (Still had to take 6 hours of statistics .twice). My first job was as a bill collector! Didnt like that so I quit, worked construction, and took some night school classes in programming (cobol, pascal, c)(1988!). Somebody in my class got me a job at a bank and I've just gone from there. I've been through several banks and two startups. One very successful, one not. I've been through several managerial positions. I personally dont care if you have a degree or not. I care about what you know and (VERY important) how motivated you are/how much passion you have for what you do, and how much of a team player you can be. Its absoluteley no fun working with people who are not doing what they love (this job just requires too much dedication). Its also a colossal waste of time and a huge vulnerability to hire people who can not communicate with others and/or are elitist (therefore, the team player requirement). If you give short answers at an interview and talk to your feet, you wont get the good jobs. With all this in mind, a degree is, therefore, irrelevant to me. Most of the people I would hire will come through mutual friends (linkedin is a great source for this). NEVER burn a bridge (5 years down the road, you have no idea who is going to be the decision maker in something you want/need very, very badly). And ALWAYS keep in touch with people you know are good, motivated and love what they do. Build your short list of contacts as you advance through your career. It WILL be a life saver sooner or later. (The coolest idea in the world and VC money are useless unless you can build a good team). Somebody mentioned putting a blog up and posting like hell. I think thats is a great idea! Its much better than a resume. It shows that you are motivated, it displays your talent level (code wise), your organizational ability, your ability to explain difficult concepts, your ability to communicate in writing, and, it can, show your ability to deal with annoying people! (And, at deadline, after a 60, 70 hour week, everybody gets annoying!) A very good idea. brad -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sherif Abdou Sent: Tuesday, February 19, 2008 7:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] do you need CS Degree to get a job? A bit off-topic but I was just wondering since i have no reminescense of this and their seems to be a lot of programmers on here I thought I would ask this question. Do you actually need some sort of CS degree or Computer Related degree to get a job say in programming Web Applications or getting a Job at Adobe or MSFT or Google. I have a degree in Molecular Biology with a Chem Minor. I am Self-Taught so let me here some stories. Thanks. -- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Re: [flexcoders] getCharBounds not working on AIR?
Try getting the rect later (Put a button somewhere and click it after everything is finished loading) to make sure the UITextField doesn't just need to be refreshed first. If that doesn't work, I'd file a bug if I were you. - Dan Freiman On Wed, Feb 20, 2008 at 10:20 AM, b_alen [EMAIL PROTECTED] wrote: It seems a bit ridiculous but it's true. Not just that you have to use all sorts of hacks to get access to good old TextField (IUITextField) in Flex in order to even think of accessing characters' Rectangles. Once you do manage to cut your way through, you get a very nasty disappointment that IUITextField.getCharBounds() works perfectly in Flex Web apps, but returns some bizarre incorrect values when running on AIR. If anyone has any suggestion, I'd really appreciate it very much. We're in terrible deadline and this is one of the crucial functionalities. var tf:TextAreaExtended = new TextAreaExtended(); tf._textField.text = dsfsdf sfd sf dsf sfdsd fdsfdsfdsfdsfdsf fds; addChild(tf); var rect:Rectangle = tf._textField.getCharBoundaries(20); // I get values for rect.left something like 0.5 // same goes for other rect properties, very weird. // extended TextArea which gives access to TextField package { import mx.controls.TextArea; import mx.core.IUITextField; public class TextAreaExtended extends TextArea { public function TextAreaExtended() { createChildren(); } public function get _textField():IUITextField{ return textField; } } }
[flexcoders] Re: getCharBounds not working on AIR?
Wow, that was fast, I didn't even manage to finish the cigarette :) And it works. Now, should I use the interval or is there a more elegant way to know that the component is ready? You were mentioning refresh. Thanks a ton buddy --- In flexcoders@yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote: Try getting the rect later (Put a button somewhere and click it after everything is finished loading) to make sure the UITextField doesn't just need to be refreshed first. If that doesn't work, I'd file a bug if I were you. - Dan Freiman On Wed, Feb 20, 2008 at 10:20 AM, b_alen [EMAIL PROTECTED] wrote: It seems a bit ridiculous but it's true. Not just that you have to use all sorts of hacks to get access to good old TextField (IUITextField) in Flex in order to even think of accessing characters' Rectangles. Once you do manage to cut your way through, you get a very nasty disappointment that IUITextField.getCharBounds() works perfectly in Flex Web apps, but returns some bizarre incorrect values when running on AIR. If anyone has any suggestion, I'd really appreciate it very much. We're in terrible deadline and this is one of the crucial functionalities. var tf:TextAreaExtended = new TextAreaExtended(); tf._textField.text = dsfsdf sfd sf dsf sfdsd fdsfdsfdsfdsfdsf fds; addChild(tf); var rect:Rectangle = tf._textField.getCharBoundaries(20); // I get values for rect.left something like 0.5 // same goes for other rect properties, very weird. // extended TextArea which gives access to TextField package { import mx.controls.TextArea; import mx.core.IUITextField; public class TextAreaExtended extends TextArea { public function TextAreaExtended() { createChildren(); } public function get _textField():IUITextField{ return textField; } } }
[flexcoders] Flex Position in Indy
If you are a Flex developer (intermediate or advanced) and live or would like to live in the Indianapolis area, please contact me about a possible position. Rich Tretola [EMAIL PROTECTED]
[flexcoders] Flex Position in Indy
If you are a Flex developer (intermediate or advanced) and live or would like to live in the Indianapolis area, please contact me about a possible position. Rich Tretola [EMAIL PROTECTED]
[flexcoders] GroupingCollection
I am trying to get unique values of an arraycollection by using Grouping Collection, but my Combobox below does not come up with anything: mx:GroupingCollection id=jobsGroup source={people} mx:grouping mx:Grouping mx:GroupingField name=job/ /mx:Grouping /mx:grouping /mx:GroupingCollection mx:HierarchicalCollectionView id=jobsHC source={jobsGroup}/ mx:ComboBox id=jobsComboBox dataProvider={jobsHC} labelField=GroupLabel x=258 y=33 width=232/ mx:List id=jobsList dataProvider={jobsHC} labelField=GroupLabel x=258 y=63 width=232 height=105/ Thanks
Re: [flexcoders] Re: getCharBounds not working on AIR?
If you want a simple wait, you can use uicomponent.callLater(). (See the docs). The other alternative is to listen for an event but which even to listen for depends on your use case. (for example if this is happening when the application is loaded applicationComplete would probably be the correct event.) Check out the events thrown by the components involved to see if one jumps out at you. - Dan Freiman On Wed, Feb 20, 2008 at 10:53 AM, b_alen [EMAIL PROTECTED] wrote: Wow, that was fast, I didn't even manage to finish the cigarette :) And it works. Now, should I use the interval or is there a more elegant way to know that the component is ready? You were mentioning refresh. Thanks a ton buddy --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote: Try getting the rect later (Put a button somewhere and click it after everything is finished loading) to make sure the UITextField doesn't just need to be refreshed first. If that doesn't work, I'd file a bug if I were you. - Dan Freiman On Wed, Feb 20, 2008 at 10:20 AM, b_alen [EMAIL PROTECTED] wrote: It seems a bit ridiculous but it's true. Not just that you have to use all sorts of hacks to get access to good old TextField (IUITextField) in Flex in order to even think of accessing characters' Rectangles. Once you do manage to cut your way through, you get a very nasty disappointment that IUITextField.getCharBounds() works perfectly in Flex Web apps, but returns some bizarre incorrect values when running on AIR. If anyone has any suggestion, I'd really appreciate it very much. We're in terrible deadline and this is one of the crucial functionalities. var tf:TextAreaExtended = new TextAreaExtended(); tf._textField.text = dsfsdf sfd sf dsf sfdsd fdsfdsfdsfdsfdsf fds; addChild(tf); var rect:Rectangle = tf._textField.getCharBoundaries(20); // I get values for rect.left something like 0.5 // same goes for other rect properties, very weird. // extended TextArea which gives access to TextField package { import mx.controls.TextArea; import mx.core.IUITextField; public class TextAreaExtended extends TextArea { public function TextAreaExtended() { createChildren(); } public function get _textField():IUITextField{ return textField; } } }
[flexcoders] need flexdraw
hi does any still have the flexdraw drawing tool created by Mitch Grasso? his site http://www.boomslide.com/flexDraw/ is not working anymore. can some one email to me or have a working link? thanks ahead! -- Willy
[flexcoders] Auto block comment in Flexbuilder 2?
Is there a key combination in Flexbuilder 2 to auto-comment out a selected region of code? I hate having to type !-- -- manually in MXML... or /* */ in Actionscript. Thanks. Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Interested in innovative ideas in Learning? Check out the GTO Innovative Learning Blog http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx and subscribe http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http% 3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis ts%2FPosts%2FArchive%2Easpx .
[flexcoders] Flex Local Connection Source Example
Hello guys.. I'm a newbie in Flex.. i need it a help, does anybody have a Flex application example for Local Connection? I need it to learn build that thing, Because my friend Challenges me to build an application who can perform a local connection to upload a Movie. which is The Application with two swf file open simultaneously, The first swf file made for the button control and choose a file that you want to upload and the other swf file for perform a movie from the file you choose. He always said can you do that with Flex...? well.. I can do that so easy in Flash, with Actionscript 2.0... ( yeah right.. go to hell.. ) does anybody can help me with this.. Thanks Guys PS: I use a Flex builder 2.01 with hotfix 3
[flexcoders] Re: Using module from Flex library project
Him Guarev, I tried what you suggested but the errors only appears when using using the flex localization. My Module locales are located in -projectHome --locale en_US --src The flex project that uses the module puts the module home project in its source path, and since the module uses locales (under [project home dir]locale\en_US) I want the module to include these locales at compile time. However, when compiling the main app (the shell) it complains about the module's locale files (ModuleTexts.properties for example) How does the main app knows about the locales ? It reads the [ResourceBundle(ModuleTexts)] from the module file and looks for them at it's own project, not looking inside the modules project to see if the locales are there. That's seems reasonable, since it doesn't uses the project itself, but the source path, in which there is no information of the locale path. How I can get rid off these errors ? include the locale properties files inside the shell app. I did this only for testing, since it's tears apart the module encapsulation and add extra responsibility for someone using this module... :| I uploaded the 2 flex projects so anyone can see the error: http://www.filefactory.com/file/109714 Thanks again. Almog Kurtser. --- In flexcoders@yahoogroups.com, Gaurav Jain [EMAIL PROTECTED] wrote: So I assume you are just looking to move module(s) into a separate flex builder project? If my assumption is correct read on. It is possible to load the modules from a different project. A module is after all a SWF so you theoretically be able to load it from a url (as long as you don't run into domain issues). Here is what I would do. 1. Create a Flex Project in Flex Builder. 2. Add what ever modules, you need to add. 3. Delete the main app file (from this project). 4. Go to project properties - Flex modules - double click on all modules (one by one) and remove the option for Optimize for. The disadvantage for moving modules to a separate project is that you loose capability for automatic optimize for. This is used to reduce the size of the module by not duplicating classes which are already in the main application. However there is a workaround: In the main project (from which you want to move *out* all modules): 1. Go to project properties - Flex compiler 2. In the additional compiler arguments add -link-report=lnkreport.xml (you can also give the absolute path for where you want the link report to be generated). Now in the project which will contain modules. 1. Go to project properties - Flex compiler 2. In the additional compiler arguments add -load-externs=lnkreport.xml (make sure path is same as what you gave in the main project). This would make sure that modules in the separate project would be optimized for your main app. Now since you moved them to a different project, you need to copy the compiled modules to the location specified by the url used to load the modules. or simply change the Output folder for the modules project by going to project properties - flex build path HTH, Gaurav --- In flexcoders@yahoogroups.com, mydarkspoon mydarkspoon@ wrote: Thanks for your response, but RSL won't fit in this situation. RSL are loaded at the application startup, however, I'm using module because I want to load the component by demand. I've used modules before, but never been using modules that sits in a different project. It's important that the module will be separated from the main app/apps so that one developer can add features to the module, while another one can work on the loader app and have an up-to-date module compiled using source control. Cheers, Almog Kurtser. --- In flexcoders@yahoogroups.com, Gaurav Jain gauravj@ wrote: The idea behind modules is to make your main app smaller (by breaking into modules) so that you can speed up initial load time. And load/unload modules when ever required. By default when you compile a module, flex builder optimizes it for the main application - which means it does not add classes to the module which are already in the main app. You can share the same module between different applications as long as you don't optimize your module for any particular app. Module is runtime thing. Adding module into a library will not work. If you are looking to share common code across application and are not interested in modules, you can use libraries. Also if you want to share code across different application but you want to do so at runtime, you can benefit from using runtime shared libraries. For more information about rsls see here http://livedocs.adobe.com/labs/flex3/html/help.html?content=rsl_02.html Thanks, Gaurav --- In flexcoders@yahoogroups.com, mydarkspoon mydarkspoon@ wrote: Hello, I've developed a small flex module which I used inside flex
Re: [flexcoders] do you need CS Degree to get a job?
With all due respects to Matt and Dan... I have no idea how to judge Matt as an authoritative sort on the process of getting a job or hiring people. Does a project manager's responsibility at Adobe involve hiring people? I would have guessed that Adobe was so big, product managers would only deal with programming managers on high level issues, not the actual programmers. I could be wrong. Daniel Freiman wrote: 3. Matt Chotin is a project manager at Adobe and he posted his response very quickly. There's no more authoritative source (although there are some equally as authoritative sources) to answer the question as it was originally posed. - Dan Freiman -- Jeffry Houser Flex, ColdFusion, AIR AIM: Reboog711 | Phone: 1-203-379-0773 -- Adobe Community Expert http://www.adobe.com/communities/experts/members/JeffryHouser.html My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
[flexcoders] Re: getCharBounds not working on AIR?
Great, it seems like callLater saved my butt. Luckily i also found the blog which explains in short the WHY's and HOW's of the callLater. Title of the blog is callLater() - The Function That Saved My Butt. It's here: http://www.kylehayes.info/blog/index.cfm/2007/5/31/callLater--The-Function-That-Saved-My-Butt The function actually broke because I had to use it within the for loop. The solution was to to get rid of the for loop and instead split the iteration into several functions that were calling each other upon completion. --- In flexcoders@yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote: If you want a simple wait, you can use uicomponent.callLater(). (See the docs). The other alternative is to listen for an event but which even to listen for depends on your use case. (for example if this is happening when the application is loaded applicationComplete would probably be the correct event.) Check out the events thrown by the components involved to see if one jumps out at you. - Dan Freiman On Wed, Feb 20, 2008 at 10:53 AM, b_alen [EMAIL PROTECTED] wrote: Wow, that was fast, I didn't even manage to finish the cigarette :) And it works. Now, should I use the interval or is there a more elegant way to know that the component is ready? You were mentioning refresh. Thanks a ton buddy --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel Freiman FreimanCQ@ wrote: Try getting the rect later (Put a button somewhere and click it after everything is finished loading) to make sure the UITextField doesn't just need to be refreshed first. If that doesn't work, I'd file a bug if I were you. - Dan Freiman On Wed, Feb 20, 2008 at 10:20 AM, b_alen alen.balja@ wrote: It seems a bit ridiculous but it's true. Not just that you have to use all sorts of hacks to get access to good old TextField (IUITextField) in Flex in order to even think of accessing characters' Rectangles. Once you do manage to cut your way through, you get a very nasty disappointment that IUITextField.getCharBounds() works perfectly in Flex Web apps, but returns some bizarre incorrect values when running on AIR. If anyone has any suggestion, I'd really appreciate it very much. We're in terrible deadline and this is one of the crucial functionalities. var tf:TextAreaExtended = new TextAreaExtended(); tf._textField.text = dsfsdf sfd sf dsf sfdsd fdsfdsfdsfdsfdsf fds; addChild(tf); var rect:Rectangle = tf._textField.getCharBoundaries(20); // I get values for rect.left something like 0.5 // same goes for other rect properties, very weird. // extended TextArea which gives access to TextField package { import mx.controls.TextArea; import mx.core.IUITextField; public class TextAreaExtended extends TextArea { public function TextAreaExtended() { createChildren(); } public function get _textField():IUITextField{ return textField; } } }
[flexcoders] Durable setting (BlazeDS)
I have a use case using BlazeDS where I want the client to set it's own id. I can do this if I set the value of xml path: destination.properties.server.durable to true. I'm trying to figure out if this is going to have any bad side effects either in the use of memory or storage space. I don't want messages to to lie around the server forever. - Dan Freiman
[flexcoders] Re: Using module from Flex library project
*Him=Hi --- In flexcoders@yahoogroups.com, mydarkspoon [EMAIL PROTECTED] wrote: Him Guarev, I tried what you suggested but the errors only appears when using using the flex localization. My Module locales are located in -projectHome --locale en_US --src The flex project that uses the module puts the module home project in its source path, and since the module uses locales (under [project home dir]locale\en_US) I want the module to include these locales at compile time. However, when compiling the main app (the shell) it complains about the module's locale files (ModuleTexts.properties for example) How does the main app knows about the locales ? It reads the [ResourceBundle(ModuleTexts)] from the module file and looks for them at it's own project, not looking inside the modules project to see if the locales are there. That's seems reasonable, since it doesn't uses the project itself, but the source path, in which there is no information of the locale path. How I can get rid off these errors ? include the locale properties files inside the shell app. I did this only for testing, since it's tears apart the module encapsulation and add extra responsibility for someone using this module... :| I uploaded the 2 flex projects so anyone can see the error: http://www.filefactory.com/file/109714 Thanks again. Almog Kurtser. --- In flexcoders@yahoogroups.com, Gaurav Jain gauravj@ wrote: So I assume you are just looking to move module(s) into a separate flex builder project? If my assumption is correct read on. It is possible to load the modules from a different project. A module is after all a SWF so you theoretically be able to load it from a url (as long as you don't run into domain issues). Here is what I would do. 1. Create a Flex Project in Flex Builder. 2. Add what ever modules, you need to add. 3. Delete the main app file (from this project). 4. Go to project properties - Flex modules - double click on all modules (one by one) and remove the option for Optimize for. The disadvantage for moving modules to a separate project is that you loose capability for automatic optimize for. This is used to reduce the size of the module by not duplicating classes which are already in the main application. However there is a workaround: In the main project (from which you want to move *out* all modules): 1. Go to project properties - Flex compiler 2. In the additional compiler arguments add -link-report=lnkreport.xml (you can also give the absolute path for where you want the link report to be generated). Now in the project which will contain modules. 1. Go to project properties - Flex compiler 2. In the additional compiler arguments add -load-externs=lnkreport.xml (make sure path is same as what you gave in the main project). This would make sure that modules in the separate project would be optimized for your main app. Now since you moved them to a different project, you need to copy the compiled modules to the location specified by the url used to load the modules. or simply change the Output folder for the modules project by going to project properties - flex build path HTH, Gaurav --- In flexcoders@yahoogroups.com, mydarkspoon mydarkspoon@ wrote: Thanks for your response, but RSL won't fit in this situation. RSL are loaded at the application startup, however, I'm using module because I want to load the component by demand. I've used modules before, but never been using modules that sits in a different project. It's important that the module will be separated from the main app/apps so that one developer can add features to the module, while another one can work on the loader app and have an up-to-date module compiled using source control. Cheers, Almog Kurtser. --- In flexcoders@yahoogroups.com, Gaurav Jain gauravj@ wrote: The idea behind modules is to make your main app smaller (by breaking into modules) so that you can speed up initial load time. And load/unload modules when ever required. By default when you compile a module, flex builder optimizes it for the main application - which means it does not add classes to the module which are already in the main app. You can share the same module between different applications as long as you don't optimize your module for any particular app. Module is runtime thing. Adding module into a library will not work. If you are looking to share common code across application and are not interested in modules, you can use libraries. Also if you want to share code across different application but you want to do so at runtime, you can benefit from using runtime shared libraries. For more information about rsls see here
Re: [flexcoders] do you need CS Degree to get a job?
Well I said it, so I don't think you have to apologize to Matt if I have his job description wrong. - Dan On Wed, Feb 20, 2008 at 11:47 AM, Jeffry Houser [EMAIL PROTECTED] wrote: With all due respects to Matt and Dan... I have no idea how to judge Matt as an authoritative sort on the process of getting a job or hiring people. Does a project manager's responsibility at Adobe involve hiring people? I would have guessed that Adobe was so big, product managers would only deal with programming managers on high level issues, not the actual programmers. I could be wrong. Daniel Freiman wrote: 3. Matt Chotin is a project manager at Adobe and he posted his response very quickly. There's no more authoritative source (although there are some equally as authoritative sources) to answer the question as it was originally posed. - Dan Freiman -- Jeffry Houser Flex, ColdFusion, AIR AIM: Reboog711 | Phone: 1-203-379-0773 -- Adobe Community Expert http://www.adobe.com/communities/experts/members/JeffryHouser.html My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
[flexcoders] Custom DataProvider
Hey all, I've created a custom component that relies on 2D data and I'm trying to figure out the best way to accept data into it. I'd thought about extending the Dictionary class, but I'm not sure how fast it is at lookups or if there's a better way to handle this type of data. As it sits, inside the dataprovider each element is a date(either object or string) and within that, there's a list of children for that date. Is there a particular implementation that would benefit me the most in this circumstance? Sincerely, !k
[flexcoders] Re: Best Practices:HTTPService, E4X, XML and dataProvider
If you are not going to programatically update an individual data provider item, them XMLList will be fine. However, if you ever want to have a user update a property of an item, in some editable cell for example, then you need to wrap the XMLList in an XMLListCollection. This is because when you use the collection API to modify the data, events are dispatched to ensure the UI updates to match the data update. This is similar to the relationship between Array and ArrayCollection. There is no performance reason not to use a collection. If you do not, then Flex wraps your XMLList or Array in a collection itself. So, there are no reasons not to use a collection, except for one more line of code, and several reasons you should. Performance caveat: It has become clear that accessing data an xml node is significantly slower than accessing data in a strongly typed object. This can be noticable if you have, say, a large datagrid that displays hundreds of cells. If this is the case with your app, then best practice is to pre- process the e4x xml into strongly typed objects in an ArrayCollection. Tracy --- In flexcoders@yahoogroups.com, Brad Bueche [EMAIL PROTECTED] wrote: Thanks to this group, I have come a long way in understanding this. I want to check my setup and see if I still have further to go. Is this the preferred way to set up a dataprovider when pulling XML in E4X format via HTTPService? Or do I still need to some how incorporate XMLListCollection here? public var xmlService:HTTPService = new HTTPService(); public var dataProvider:XMLList = new XMLList(); public function loadXML():void { xmlService.url = http://hostname/Data/createXML.php;; xmlService.resultFormat = e4x; xmlService.addEventListener(ResultEvent.RESULT, resultHandler); xmlService.send(); } public function resultHandler(event:ResultEvent):void { dataProvider = event.result.month; }
Re: [flexcoders] Power point in FLEX
If you are looking just to create online presentations (not ppt) then check out www.flypaper.net. You can easily build presentations and output Flash. Disclaimer: I work for Flypaper Studio. *Steve Mathews* *Senior Software Engineer* e [EMAIL PROTECTED] *Flypaper Studio, Inc.* www.flypaper.net On 2/20/08, Karthik pothuri [EMAIL PROTECTED] wrote: *Friends,* ** *I am new member to this group.* ** *Please drop your ideas on How to develop power point presentations in Flex on web browser.* ** *Microsoft powerpoint on web browser. To develop this which topics helps me ...* ** *Help me..* ** ** *Karthik..))* ** -- 5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.http://in.rd.yahoo.com/tagline_mail_4/*http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
[flexcoders] Re: Flex Ant Task for F3b3 genereates ALWAYS debug version, how to fix that?
Did you get 241kb and 149kb only switching debug option in ant task or one of results is after FB another after ANT? --- In flexcoders@yahoogroups.com, Gaurav Jain [EMAIL PROTECTED] wrote: In my simple test I see size changing from 241kb to 149kb. I would suggest you log a bug at http://bugs.adobe.com/flex with your test case Thanks, Gaurav --- In flexcoders@yahoogroups.com, lytvynyuk lytvynyuk@ wrote: Nothing happened, same size. That is mean, It didn't checks that options or I do something wrong. Need to do deeper investigation. All that FlexAntTasks story is so confusing - there is no proper documentation, I figured some options only by analyzing java source files!...g
RE: [flexcoders] Drawing in Panel Insanity
I was using comboBox at the time, can't tell you if panel is the same I'm afraid, but at a guess it probably might be :-) My source here : http://ifeedme.com/blog/?p=19 (run the demo and right click), hope it helps. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 20 February 2008 15:46 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Drawing in Panel Insanity Cool - do have some sample methods that get the scrollbar width of a component that extends panel? Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Interested in innovative ideas in Learning? Check out the GTO Innovative Learning Blog http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx and subscribe http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http% 3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis ts%2FPosts%2FArchive%2Easpx . From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Hayes Sent: Wednesday, February 20, 2008 5:17 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Drawing in Panel Insanity Last time I needed the scrollbars property of a component I found that the scrollbar was protected - so had to extend the component itself and add methods to get scrollbar width etc. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 19 February 2008 20:04 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Drawing in Panel Insanity Right, but I mean I can't seem to find the method or properties to find the panel's scrollbars in the Panel content area - nothing I could find in the help docs. Got it working because I made the dumb mistake of calling width on the UIComponent instead of the panel itself. Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Interested in innovative ideas in Learning? Check out the GTO Innovative Learning Blog http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx and subscribe http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http% 3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis ts%2FPosts%2FArchive%2Easpx . From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eric Cancil Sent: Tuesday, February 19, 2008 2:50 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Drawing in Panel Insanity You can access their height and width directly. How did you get it working? On Feb 19, 2008 1:11 PM, Merrill, Jason [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hey Eric, I didn't thank you for your help thanks. I have it working now. By the way, is there a way to get the scrollbar's width (for the vertical scrollbar) and height style (for the horizontal scroll bar) in the container form of the panel? Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community Interested in innovative ideas in Learning? Check out the GTO Innovative Learning Blog http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx and subscribe http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http% 3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis ts%2FPosts%2FArchive%2Easpx . From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Eric Cancil Sent: Tuesday, February 19, 2008 12:36 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Drawing in Panel Insanity You're probably not taking in account the panel's border thickness properties. When you get the panel's width it's including
[flexcoders] Re: Using module from Flex library project
--- In flexcoders@yahoogroups.com, Gaurav Jain [EMAIL PROTECTED] wrote: The flex project that uses the module puts the module home project in its source path, Why is it required? Since you module is supposedly independent of your main app, you do not need to specify it in the source path. However, when compiling the main app (the shell) it complains about the module's locale files (ModuleTexts.properties for example) Are you using some class from the module project directly in your main app? I would suggest to have main app independent of the module classes, if that is not possble including module home/locale/en_US in the source path of main app should resolve the compilation errors. Thanks, Gaurav Hi again, Putting the locales in the source path merely won't help compiling, because the locales are treated differently. I put an example siutuation online, the link is in my previous post. Thanks, Almog Kurtser
[flexcoders] Re: Using module from Flex library project
The flex project that uses the module puts the module home project in its source path, Why is it required? Since you module is supposedly independent of your main app, you do not need to specify it in the source path. However, when compiling the main app (the shell) it complains about the module's locale files (ModuleTexts.properties for example) Are you using some class from the module project directly in your main app? I would suggest to have main app independent of the module classes, if that is not possble including module home/locale/en_US in the source path of main app should resolve the compilation errors. Thanks, Gaurav
[flexcoders] HTTPService XML whitespace problem
In my application, I'm using HTTPservice to get data from a webservice. I receive the data in 'object' format which I'm directly binding to my controls. The XML nodes are not expected to have any attributes, so all the leaves of the XML are assumed to be strings. For example: Items Item id2/id colorRed/color weight2/weight /Item /Items dataItem = event.result.Items.Item; mx:TextInput text={dataItem.color}/ The problem I'm facing is that when there are whitespaces in database, the webservice (VB.NET) adds an attribute xml:space=preserve. This makes dataItem.color an object with an attribute xml:space instead of a simple string. Hope I explained the problem clearly enough. Is there any simple solution to this problem? Should I be getting the data in XML format instead and do the conversion to object tree myself? If yes, is there an easy way to do it while ignoring the xml:space attributes?
Re: [flexcoders] Re: Transparent=true on BitmapData not working
Just plain old 0 worked fine. I just went back and checked the docs, they do actually tell you to do that, but I doubt I ever would have seen it. Doesn't really make sense, but you get that :) Actually, it makes perfect sense. The default value for the fill color is 100% white with 100% alpha (fully opaque), which is 0x in ARGB format. You want it to be blank/transparent, so you need to provide a default fill color that has 0% alpha, so anything of the form 0x00??. Using black with zero-alpha is good habit because it's equivalent to pre-multiplying your colors with black, which is what works best (or at least most intuitively) with standard computer blending equations. The true/false flag just controls whether or not your BitmapData *has* an alpha channel, not what the contents of that alpha channel are (the docs should probably be clearer about this and the argument should probably be named hasAlphaChannel as opposed to transparency, just to be more explicit). Basically, this flag controls whether your data is ARGB or RGB (though I wouldn't be surprised if they were both stored as 32-bits-per-pixel as that normally speeds up blitting since the pixels are word-aligned). Troy.
Re: [flexcoders] Automate [Embed] pictures in a SWF
- automate the embedding of the pictures at compile time (for info, the future SWF will latter show synchronised screenshots with an audio recording) I did this manually with a PHP script (see my blog, http://troygilbert.com/). If you're using something like ANT you could stick the PHP script in as an ANT task. My version was a bit more involved as I needed to be able to query the resulting SWF based on metadata, so I built a custom class and the PHP script embedded additional constants and built arrays. Sounds like you just want to automate the typing and that you'll be adding additional code to work with the embeds, in which case you'll probably want to have an ANT task that runs a simpler PHP script (or any scripting alternative) that generates an include that you then include into your hand-written class. Troy.
[flexcoders] Download physical file with URLLoader
I'm trying to figure out a way to connect to a remote URL, and download a file from that URL. I'm already using URLLoader to connect to the URL and read an XML file, would I use URLLoader for this as well? I want my Flex 3 /AIR app to be able to hit this URL and download a .db file for updates. What's the best way to go about this? Thanks! Eric
[flexcoders] Dynamically changing flex application skins
Does anyone know how to dynamically change the skin of a flex application? thanks steve
Re: [flexcoders] Cannot embed Flash9 symbols
I think I've tracked it down to a bad Project... sort of... I don't know. I create a new Project and import all my sources and it works. I need to add my back my external source, Papervision and APE, and see if it might be caused by one of those. Paul On Feb 20, 2008, at 9:39 AM, Paul Decoursey wrote: Now you are just being insulting. If had read what I wrote you would have seen that I had tried that. I just need simple validation of my files. http://client.devilsworkbook.com/assets.swf http://client.devilsworkbook.com/assets.swc In those there is an UIMovieClip that I cannot see in Flex, it is called mc_bestbuycar. I just need someone to tell me if it works for them so I can narrow down where the problem might be. Paul On Feb 20, 2008, at 6:59 AM, Sujit Reddy wrote: Hi Paul, Please try to follow the steps in the URL below and see if you can embed the Flash assets into your flex application. http://sujitreddyg.wordpress.com/2008/01/02/creating-and-importing-flash-assets-into-flex/ Hope this helps. On Wed, Feb 20, 2008 at 6:01 AM, Paul Decoursey [EMAIL PROTECTED] wrote: Ok, pretty much exactly the code I have in place. Three things I see wrong here.. 1) The symbol that loads is way messed up and does not at all match when displays in Flash. 2) When I publish the swf from the flash on my machine without changes it no longer works. 3) You've missed what I'm really trying to do. I need dynamic assets not static assets to be loaded from the SWF. I have no idea what the problem is for 1, and I don't care at this point, but it could be an indication of what the real issue is for me. I'm going to try a new clean and reinstall of everything Flash and see if anything starts working again. I'm not sure if it's related but I did notice odd things after a software update from Apple, I'm on a mac by the way, an update the the flash player was included that broke a lot of stuff for me. I had to reinstall the Flash Debug Player. Somebody at Adobe needs to talk to apple about this, it's the second update in a row that has caused me headaches. For the 3rd issue, it should work if I can get the Flex Component kit to work properly. Sherif, thanks for trying. I think that you thought it was more of a newbie question, but I was really just looking for validation that my SWF was junk, not that my methods were faulty. Paul On Feb 19, 2008, at 4:57 PM, Sherif Abdou wrote: ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical creationComplete=initApp() mx:Script ![CDATA[ import mx.core.UIComponent; import mx.events.CalendarLayoutChangeEvent; import mx.controls.Image; [Bindable] [Embed(source=assets2.swf,symbol=BestBuyCar)] public var myLogo:Class; public function initApp():void{ } ]] /mx:Script mx:Button skin={myLogo}/ /mx:WindowedApplication assets2 is in root so ya u could add it in a forder but this works and i tried it - Original Message From: Paul Decoursey [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, February 19, 2008 3:18:42 PM Subject: Re: [flexcoders] Cannot embed Flash9 symbols What is bothering me more is this... I have reinstalled Flash CS3, reinstalled Flex 2 and all the hotfixes, reinstalled the Flex Component Kit and followed the directions for it 10 times now and it does not work. I cannot load any of the components that Flash is outputting. I'm getting very frustrated and I have no other ideas of what might be happening. I've also tried it in Flex 3 to no avail, which is leading me to believe that the issue is int he swfs and swcs that Flash is generating. Does anyone have any clue? I've wasted a day on this, and I can't in good conscious bill my client for this time. Paul On Feb 19, 2008, at 3:11 PM, Paul Decoursey wrote: How do you access in Flex then? This still doesn't work for me either. Paul On Feb 19, 2008, at 2:39 PM, Sherif Abdou wrote: BestBuyLogo BestBuyCar - Original Message From: Paul Decoursey [EMAIL PROTECTED] net To: [EMAIL PROTECTED] ups.com Sent: Tuesday, February 19, 2008 2:21:51 PM Subject: Re: [flexcoders] Cannot embed Flash9 symbols Now I'm totally lost. You can't export a Graphic for actionscript. Can you send me the file you altered and got to work? When I open the file I posted the assets I'm looking at are Symbols, they are MovieClips and they are setup to be exported in the SWF. If I roll back to target AS2 everything works, but I need AS3 for some of the other assets I will be exporting that are not in the file I posted. Paul On Feb 19, 2008, at 1:38 PM, Sherif Abdou wrote: they were not symbols when i opened the file, i am not familiar with flash but they were movieClips and not Graphics which is what you need. - Original Message From: Paul Decoursey [EMAIL PROTECTED] net To: [EMAIL