[flexcoders] How to prevent style inheritance?
Hello, I've developed a component which extends Panel (e.g. class MyPanel) to which I apply some styles. It works perfectly fine. However, when I put another Panel inside MyPanel it inherits some of the styles of its parent. That's quite annoying. I've uploaded a demo [1] which shows the problem. When you click the button Change style the Panel inside MyPanel changes its colors (headerColors) too. Can I somehow prevent in MyPanel that its children inherit the styles from the parent? It would be great if the children don't get notified about changes to styleName in MyPanel at all. If that's not possible I'd like at least to filter out some of the style changes so that the children of MyPanel don't inherit for example the headerColors. I'd be really grateful for some tips or code snippets. Thanks in advance. Best regards, Gerhard [1] http://mjl.at/temp/demo2/
Re: [flexcoders] Re: Checkbox in Datagrid . . . how?
Yes, then you have to write code to get the data into a dataProvider for the Tree, for example creating model objects from the xml and adding them to an ArrayCollection. The checked state can for instance be a boolean inside the model. 2008/9/2 crumpelfungus [EMAIL PROTECTED] Add-on / Clarification: In my version of the datagrid checkbox scenario, I am using an XMLList to get the database data as E4X from an HTTPService request. -- http://www.juicability.com - flex blog http://www.nospoiler.com - link to youtube videos without the spoilers
Re: [flexcoders] Flex and Scene7, Flexstore license, List etiquette
You got promoted! Adobe does compete not only through products but through their consulting services as well. The fact of the matter however is that even Adobe consulting helps all of us, directly and indirectly through the competition and subbing various people on this list, developing frameworks (which you might or not use). Competition is good. free hand, free market. Even MS is good for all of us, of course they make us look good by building silverlight, so by proxy :) In the words of PJ O'Rouke Never fight an inanimate object. On Tue, Sep 2, 2008 at 7:26 PM, Matt Chotin [EMAIL PROTECTED] wrote: Hey guys, I guess this is what I get for going on vacation last week huh? Clearly most of you guys saw the threads last week (and even today frankly) that I think went well over the line of what should be considered acceptable list behavior. I'd like to remind everyone that the words you post here are basically going to live on forever in search engines, mail archives, etc. Try not to write things that are going to embarrass you in the future. And while in general I don't have a problem with foul language (one need only hang out with me briefly) I think this forum is not the place for it, and ask that if you take the time to type it out, you take the time to take a deep breath and use those backspace and delete keys. OK, play nice, issue closed. Robert was saying that there's a Scene 7 webinar and it will talk about Flex and developers may want to pay attention. I think most of you should go and attend but that's because I think that Scene 7 offers interesting opportunities for various ecommerce solutions. I do not see Scene 7 competing with most of what you guys do (at least as far as I know). If however you have a system that you sell to large ecommerce sites that does high-end image manipulation including color changes and various transforms, I think you may be a competitor. Other than that, I don't believe Scene 7 competes with what most Flex developers do. Doesn't mean Adobe doesn't end up competing with customers. I always feel a total tinge of guilt when I see a really cool product out there and know that Adobe will compete in that area too. Adobe is a public company that needs to grow, that means that we will not be contracting our areas of focus, we will be expanding. We obviously have a huge stake in image software, it is reasonable to assume that we will be going into the web version of that pretty heavily (most folks would agree we'd be pretty stupid not to). If you look at where Acrobat is successful (and as much as folks hate Reader for being slow, it's really really successful) it is in business productivity. You can imagine we'll be continuing along those lines (see acrobat.com). So that's two examples, I'm sure there are others. Last question was on Flexstore license and whether you can use it as the basis for commercial software or whatever. Answer: yes. You can use Flexstore to do whatever you want. I think all the samples we post on dev center where source is available, you can treat that as being open to doing whatever you want where it says see accompanying license. Hope this helps, Matt Adobe Flex Product Manager -- j:pn \\no comment
[flexcoders] fullscreen vista and text measurement
Hi In an application I have, when I go fullscreen text measurement really breaks on Vista machines, we have tried several little tricks and discovered that a work around for this is resizing the app then to go fullscreen, not something I would consider an optimal release. Anybody else ever encounter this and solve it? -- j:pn \\no comment
[flexcoders] Bindable Classes
If I add the Bindable tag at a class level every property is wrapped in by a sort of proxy that then raises PropertyChange events as appropriate. This certainly saves a lot of time instead of having to go through a class and add Bindable to every single property. But... What if there is one property that I dont want to be Bindable and more importantly I dont want it to raise PropertyChange events. Is there same NonBindable tag to achieve this??? tks
Re: [flexcoders] Bindable Classes
Nope. [Bindable] on a class doesn't wrap the class, it's just exactly the same as putting [Bindable] on every public field. -Josh On Wed, Sep 3, 2008 at 8:45 PM, reflexactions [EMAIL PROTECTED]wrote: If I add the Bindable tag at a class level every property is wrapped in by a sort of proxy that then raises PropertyChange events as appropriate. This certainly saves a lot of time instead of having to go through a class and add Bindable to every single property. But... What if there is one property that I dont want to be Bindable and more importantly I dont want it to raise PropertyChange events. Is there same NonBindable tag to achieve this??? tks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- 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] Flex and Scene7, Flexstore license, List etiquette
Cheers Matt. -Josh On Wed, Sep 3, 2008 at 3:26 AM, Matt Chotin [EMAIL PROTECTED] wrote: Hey guys, I guess this is what I get for going on vacation last week huh? Clearly most of you guys saw the threads last week (and even today frankly) that I think went well over the line of what should be considered acceptable list behavior. I'd like to remind everyone that the words you post here are basically going to live on forever in search engines, mail archives, etc. Try not to write things that are going to embarrass you in the future. And while in general I don't have a problem with foul language (one need only hang out with me briefly) I think this forum is not the place for it, and ask that if you take the time to type it out, you take the time to take a deep breath and use those backspace and delete keys. OK, play nice, issue closed. Robert was saying that there's a Scene 7 webinar and it will talk about Flex and developers may want to pay attention. I think most of you should go and attend but that's because I think that Scene 7 offers interesting opportunities for various ecommerce solutions. I do not see Scene 7 competing with most of what you guys do (at least as far as I know). If however you have a system that you sell to large ecommerce sites that does high-end image manipulation including color changes and various transforms, I think you may be a competitor. Other than that, I don't believe Scene 7 competes with what most Flex developers do. Doesn't mean Adobe doesn't end up competing with customers. I always feel a total tinge of guilt when I see a really cool product out there and know that Adobe will compete in that area too. Adobe is a public company that needs to grow, that means that we will not be contracting our areas of focus, we will be expanding. We obviously have a huge stake in image software, it is reasonable to assume that we will be going into the web version of that pretty heavily (most folks would agree we'd be pretty stupid not to). If you look at where Acrobat is successful (and as much as folks hate Reader for being slow, it's really really successful) it is in business productivity. You can imagine we'll be continuing along those lines (see acrobat.com). So that's two examples, I'm sure there are others. Last question was on Flexstore license and whether you can use it as the basis for commercial software or whatever. Answer: yes. You can use Flexstore to do whatever you want. I think all the samples we post on dev center where source is available, you can treat that as being open to doing whatever you want where it says see accompanying license. Hope this helps, Matt Adobe Flex Product Manager -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] Swiz, the new Cairngorm ?
Looking at http://code.google.com/p/swizframework/wiki/DefiningApplicationComponents etc it seems Swiz gives you all the best practise separation of code, supports the same good patterns as Cairngorm, but by using an autowiring approach removes a lot of the boilerplate code that Cairngorm brings. Is that how any one else sees it ? Anyone built a real world project with Swiz yet ? -- Tom Chiverton 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] AMFPHP and date/datetime data from MySQL
Hi All, Could anyone enlighten me as to how i should send and retrieve date and datetime data for inserting into MySQL via amfphp (1.9) with value objects ? If i edit the data directly in MySQL and then retrieve a vo with a Date datatype i get the following message: TypeError: Error #1034: Type Coercion failed: cannot convert 1970-01-01 to Date. So, I need to format the date in someway so that flex can deserialize it properly. Any insight would be greatly appreciated (am coming from .net land so new to both PHP and as3). Cheers, Nik
[flexcoders] Re: Bindable Classes
Ah ok.. I had thought the compiler generated a wrapper or sub class behind the scenes when you used the bindable tag... Well ok learn something new eahc day... tks --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: Nope. [Bindable] on a class doesn't wrap the class, it's just exactly the same as putting [Bindable] on every public field. -Josh On Wed, Sep 3, 2008 at 8:45 PM, reflexactions [EMAIL PROTECTED]wrote: If I add the Bindable tag at a class level every property is wrapped in by a sort of proxy that then raises PropertyChange events as appropriate. This certainly saves a lot of time instead of having to go through a class and add Bindable to every single property. But... What if there is one property that I dont want to be Bindable and more importantly I dont want it to raise PropertyChange events. Is there same NonBindable tag to achieve this??? tks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- 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: Bindable Classes
What it does is renames your variables, and creates get/set methods, but it doesn't wrap the whole class. So unfortunately it's either all-or-none with the class-level [Bindable] -Josh On Wed, Sep 3, 2008 at 9:01 PM, reflexactions [EMAIL PROTECTED]wrote: Ah ok.. I had thought the compiler generated a wrapper or sub class behind the scenes when you used the bindable tag... Well ok learn something new eahc day... tks --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: Nope. [Bindable] on a class doesn't wrap the class, it's just exactly the same as putting [Bindable] on every public field. -Josh On Wed, Sep 3, 2008 at 8:45 PM, reflexactions [EMAIL PROTECTED]wrote: If I add the Bindable tag at a class level every property is wrapped in by a sort of proxy that then raises PropertyChange events as appropriate. This certainly saves a lot of time instead of having to go through a class and add Bindable to every single property. But... What if there is one property that I dont want to be Bindable and more importantly I dont want it to raise PropertyChange events. Is there same NonBindable tag to achieve this??? tks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] FlexBuilder 3 WSDL imports incorrectly - TypeError: Cannot marshall type 'http://www.w3.org/2001/XMLSchema::Object' to simple content
Hi All, I am using FlexBuilder 3 WSDL import wizard to generate AS web service client code to access SOAP web services implemented using java. It works fine some of the web service methods where I did not pass any parameters. However I created new web service method that takes a string as input and in the wsdl its like this type=soapenc:string however the import wizard generates the type as Object and generates marshalling error as it can't find marshaller for this type. It should find the marshaller for string which exists in the list of marshallers. I keep getting this exception and I spent all day and can't resolve it. Any help to resolve it will be greatly appreciated. Please let me know if you need any additional details. Thanks Here is the error... TypeError: Cannot marshall type 'http://www.w3.org/2001/XMLSchema::Object' to simple content. at mx.rpc.xml::SchemaMarshaller/marshall()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\xml\SchemaMarshaller.as:87] at mx.rpc.xml::SchemaManager/marshall()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\xml\SchemaManager.as:412] at mx.rpc.xml::XMLEncoder/encodeType()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\xml\XMLEncoder.as:1417] at mx.rpc.soap::SOAPEncoder/encodeType()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\SOAPEncoder.as:747] at mx.rpc.xml::XMLEncoder/encode()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\xml\XMLEncoder.as:80] at mx.rpc.soap::SOAPEncoder/encode()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\SOAPEncoder.as:690] at mx.rpc.soap::SOAPEncoder/encodePartValue()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\SOAPEncoder.as:597] at mx.rpc.soap::SOAPEncoder/encodeMessage()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\SOAPEncoder.as:548] at mx.rpc.soap::SOAPEncoder/encodeOperationAsRPCEncoded()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\SOAPEncoder.as:471] at mx.rpc.soap::SOAPEncoder/encodeBody()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\SOAPEncoder.as:338] at mx.rpc.soap::SOAPEncoder/encodeEnvelope()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\SOAPEncoder.as:188] at mx.rpc.soap::SOAPEncoder/encodeRequest()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\SOAPEncoder.as:158] at com.vlabs.webservices.sessions::BaseVlabsClassSessionManagerWebService/call()[C:\dev\workspace\vlabswebappsflex\src\com\vlabs\webservices\sessions\BaseVlabsClassSessionManagerWebService.as:185] at com.vlabs.webservices.sessions::BaseVlabsClassSessionManagerWebService/getTutorSession()[C:\dev\workspace\vlabswebappsflex\src\com\vlabs\webservices\sessions\BaseVlabsClassSessionManagerWebService.as:169] at com.vlabs.webservices.sessions::VlabsClassSessionManagerWebService/getTutorSession()[C:\dev\workspace\vlabswebappsflex\src\com\vlabs\webservices\sessions\VlabsClassSessionManagerWebService.as:166] at VlabsWhiteboardApp3/getSessionClassInfo()[C:\dev\workspace\vlabswebappsflex\src\VlabsWhiteboardApp3.mxml:98] at VlabsWhiteboardApp3/parseString()[C:\dev\workspace\vlabswebappsflex\src\VlabsWhiteboardApp3.mxml:149] at VlabsWhiteboardApp3/initApp()[C:\dev\workspace\vlabswebappsflex\src\VlabsWhiteboardApp3.mxml:163] at VlabsWhiteboardApp3/___VlabsWhiteboardApp3_Application1_creationComplete()[C:\dev\workspace\vlabswebappsflex\src\VlabsWhiteboardApp3.mxml:6] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051] at mx.core::UIComponent/set initialized()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1167] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:698] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460] at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403]
Re: [flexcoders] Re: Bindable Classes
using custom events with your bindable metadata is not only best practice but allows you to decide which properties you want to refresh. [Bindable(myEvent)] i would recomend using this at all times. On Wed, Sep 3, 2008 at 1:04 PM, Josh McDonald [EMAIL PROTECTED] wrote: What it does is renames your variables, and creates get/set methods, but it doesn't wrap the whole class. So unfortunately it's either all-or-none with the class-level [Bindable] -Josh On Wed, Sep 3, 2008 at 9:01 PM, reflexactions [EMAIL PROTECTED]wrote: Ah ok.. I had thought the compiler generated a wrapper or sub class behind the scenes when you used the bindable tag... Well ok learn something new eahc day... tks --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: Nope. [Bindable] on a class doesn't wrap the class, it's just exactly the same as putting [Bindable] on every public field. -Josh On Wed, Sep 3, 2008 at 8:45 PM, reflexactions [EMAIL PROTECTED]wrote: If I add the Bindable tag at a class level every property is wrapped in by a sort of proxy that then raises PropertyChange events as appropriate. This certainly saves a lot of time instead of having to go through a class and add Bindable to every single property. But... What if there is one property that I dont want to be Bindable and more importantly I dont want it to raise PropertyChange events. Is there same NonBindable tag to achieve this??? tks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- j:pn \\no comment
[flexcoders] Re: Bindable Classes
But then you have to write all the event creation and dispatch, plus all the getter/setter. That might be fair enough if you have a handful of props but if this is a couple of data classes with says 100 props each thats quite a bit of typing when all you want is a couple of props not to fire events when they change... unless there is a tool to generate the code from a list of variables. Personally in some cases I use custom events and others I am ok with the default handling, depends on what I am doing as to which is more suited to the situation. --- In flexcoders@yahoogroups.com, Johannes Nel [EMAIL PROTECTED] wrote: using custom events with your bindable metadata is not only best practice but allows you to decide which properties you want to refresh. [Bindable(myEvent)] i would recomend using this at all times. On Wed, Sep 3, 2008 at 1:04 PM, Josh McDonald [EMAIL PROTECTED] wrote: What it does is renames your variables, and creates get/set methods, but it doesn't wrap the whole class. So unfortunately it's either all-or-none with the class-level [Bindable] -Josh On Wed, Sep 3, 2008 at 9:01 PM, reflexactions [EMAIL PROTECTED]wrote: Ah ok.. I had thought the compiler generated a wrapper or sub class behind the scenes when you used the bindable tag... Well ok learn something new eahc day... tks --- In flexcoders@yahoogroups.com, Josh McDonald dznuts@ wrote: Nope. [Bindable] on a class doesn't wrap the class, it's just exactly the same as putting [Bindable] on every public field. -Josh On Wed, Sep 3, 2008 at 8:45 PM, reflexactions reflexactions@wrote: If I add the Bindable tag at a class level every property is wrapped in by a sort of proxy that then raises PropertyChange events as appropriate. This certainly saves a lot of time instead of having to go through a class and add Bindable to every single property. But... What if there is one property that I dont want to be Bindable and more importantly I dont want it to raise PropertyChange events. Is there same NonBindable tag to achieve this??? tks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: josh@ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- j:pn \\no comment
Re: [flexcoders] Re: Bindable Classes
it does depend on the scale of your application. first off, to use custom events you do not need getters and setters, but it does depend on how you want to use it. my personal feeling around models are that they should always be generated, its such a waste of time to code 'em by hand. On Wed, Sep 3, 2008 at 1:28 PM, reflexactions [EMAIL PROTECTED]wrote: But then you have to write all the event creation and dispatch, plus all the getter/setter. That might be fair enough if you have a handful of props but if this is a couple of data classes with says 100 props each thats quite a bit of typing when all you want is a couple of props not to fire events when they change... unless there is a tool to generate the code from a list of variables. Personally in some cases I use custom events and others I am ok with the default handling, depends on what I am doing as to which is more suited to the situation. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Johannes Nel [EMAIL PROTECTED] wrote: using custom events with your bindable metadata is not only best practice but allows you to decide which properties you want to refresh. [Bindable(myEvent)] i would recomend using this at all times. On Wed, Sep 3, 2008 at 1:04 PM, Josh McDonald [EMAIL PROTECTED] wrote: What it does is renames your variables, and creates get/set methods, but it doesn't wrap the whole class. So unfortunately it's either all-or-none with the class-level [Bindable] -Josh On Wed, Sep 3, 2008 at 9:01 PM, reflexactions [EMAIL PROTECTED]wrote: Ah ok.. I had thought the compiler generated a wrapper or sub class behind the scenes when you used the bindable tag... Well ok learn something new eahc day... tks --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh McDonald dznuts@ wrote: Nope. [Bindable] on a class doesn't wrap the class, it's just exactly the same as putting [Bindable] on every public field. -Josh On Wed, Sep 3, 2008 at 8:45 PM, reflexactions reflexactions@wrote: If I add the Bindable tag at a class level every property is wrapped in by a sort of proxy that then raises PropertyChange events as appropriate. This certainly saves a lot of time instead of having to go through a class and add Bindable to every single property. But... What if there is one property that I dont want to be Bindable and more importantly I dont want it to raise PropertyChange events. Is there same NonBindable tag to achieve this??? tks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: josh@ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- j:pn \\no comment -- j:pn \\no comment
Re: [flexcoders] Re: Bindable Classes
I'm fairly certain you do need get/set functions to use custom events. It might be a pain, but unfortunately it's when you have objects with many bindable fields that you're more likely to need the custom events (otherwise binding becomes very cpu-intensive). -Josh On Wed, Sep 3, 2008 at 9:30 PM, Johannes Nel [EMAIL PROTECTED] wrote: it does depend on the scale of your application. first off, to use custom events you do not need getters and setters, but it does depend on how you want to use it. my personal feeling around models are that they should always be generated, its such a waste of time to code 'em by hand. On Wed, Sep 3, 2008 at 1:28 PM, reflexactions [EMAIL PROTECTED]wrote: But then you have to write all the event creation and dispatch, plus all the getter/setter. That might be fair enough if you have a handful of props but if this is a couple of data classes with says 100 props each thats quite a bit of typing when all you want is a couple of props not to fire events when they change... unless there is a tool to generate the code from a list of variables. Personally in some cases I use custom events and others I am ok with the default handling, depends on what I am doing as to which is more suited to the situation. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Johannes Nel [EMAIL PROTECTED] wrote: using custom events with your bindable metadata is not only best practice but allows you to decide which properties you want to refresh. [Bindable(myEvent)] i would recomend using this at all times. On Wed, Sep 3, 2008 at 1:04 PM, Josh McDonald [EMAIL PROTECTED] wrote: What it does is renames your variables, and creates get/set methods, but it doesn't wrap the whole class. So unfortunately it's either all-or-none with the class-level [Bindable] -Josh On Wed, Sep 3, 2008 at 9:01 PM, reflexactions [EMAIL PROTECTED]wrote: Ah ok.. I had thought the compiler generated a wrapper or sub class behind the scenes when you used the bindable tag... Well ok learn something new eahc day... tks --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh McDonald dznuts@ wrote: Nope. [Bindable] on a class doesn't wrap the class, it's just exactly the same as putting [Bindable] on every public field. -Josh On Wed, Sep 3, 2008 at 8:45 PM, reflexactions reflexactions@wrote: If I add the Bindable tag at a class level every property is wrapped in by a sort of proxy that then raises PropertyChange events as appropriate. This certainly saves a lot of time instead of having to go through a class and add Bindable to every single property. But... What if there is one property that I dont want to be Bindable and more importantly I dont want it to raise PropertyChange events. Is there same NonBindable tag to achieve this??? tks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: josh@ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- j:pn \\no comment -- j:pn \\no comment -- 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: Bindable Classes
On 03/09/2008, at 9:30 PM, Johannes Nel wrote: it does depend on the scale of your application. first off, to use custom events you do not need getters and setters, but it does depend on how you want to use it. my personal feeling around models are that they should always be generated, its such a waste of time to code 'em by hand. Are there any generators that you recommend ?? I am currently using FCG (which has just gone open source) after initially using the one from crazedcoders, but would love to know of any other ones out there. Regards, Nik
[flexcoders] Strongly Typed to Geneic Classes using Remoting
Is there a way to automatically go from strongly typed client side to generic server side classes using Remoting without changing the Remoting config files. Like is there anyhting I can do with the RemoteClass tag. tks
Re: [flexcoders] Re: Bindable Classes
reflexactions wrote: But then you have to write all the event creation and dispatch, plus all the getter/setter. That might be fair enough if you have a handful of props but if this is a couple of data classes with says 100 props each thats quite a bit of typing when all you want is a couple of props not to fire events when they change... unless there is a tool to generate the code from a list of variables. There is; it's called Perl. Learn it, live it, love it. :) Using Perl it's trivial to generate classes from a 'template' file. For a little more effort you can generate all the boiler-plate code for frameworks such as Cairngorm or Parsley or whatever you use. Java DTO classes etc etc. I do this for every project and it makes changing the Model (adding/removing properties) trivial. Its also great for generating test data. SQL inserts, xml files etc. etc. Perl offers a great return for the effort required to learn it. Do yourself a favour and give Perl a whirl. cheers, - shaun
[flexcoders] Re: Want to build a SWF on the fly when someone requests it
Hi Folks, There is nothing to hide about it. See, the thing is : I like to make a web application with Flex as well as its counter part desktop version in AIR. The application will be of like Flex Flip Book and it also offering some other features like slideshow, calender view, zoom In zoom Out etc features. I want my end user come to online version and can make his own stuff - - My system will provide him some layout of - client will choose any layout and provide data for that particular layout - clients input data will be like image / video etc. - system will save that page(layout) by page - at the end client will get a swf file to use at his conveniences. Same way I want to offer same functionality with AIR version, too. ~ Paul, is it information ok to understand you what the application ? Folks, can you guide me the proper way now ? Awaiting response --- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: kuntamayu [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, September 02, 2008 12:46 PM Subject: [flexcoders] Re: Want to build a SWF on the fly when someone requests it Hi Daniel Freiman, Paul and Toby Ashley Thanks for your reply. But for this same product we have to crate an AIR (desktop) version too. That's why also, as an end product from my application, I have to give an swf to end client. I think the main mystery is why it has only to be a single swf rather than swf + customistaion data in various files. You are effectively trying to include all that customistation inside the swf. Air doesn't preclude supplying the application + customisation files. Can you not say what this application is? Paul Folks, do you have any other suggestions . . . !!! --- In flexcoders@yahoogroups.com, Paul Andrews paul@ wrote: - Original Message - From: kuntamayu kuntamayu@ To: flexcoders@yahoogroups.com Sent: Monday, September 01, 2008 2:51 PM Subject: [flexcoders] Re: Want to build a SWF on the fly when someone requests it Hi... I am working on a project like Flex Flip Book , so in that project as a end product from my application, I need to give an swf file to end user so he / she can use that swf file directly without any modification. End users aren't normally given swfs - they are generally either provided with an application that they install, or they go to a web page. Just what is your plan? If they use a web page there's no need to have everything in a single swf, if they have an application an installer can install an application file plus any other files required for customisation. Your proposed solution is fraught with difficullty as an automated process. Paul --- In flexcoders@yahoogroups.com, Toby Ashley lowpitch@ wrote: You'd most likely be better off storing your users' data / choices as XML or something, then build a SWF which can read in that XML and load / display the relevant text / video / audio / links / whatever. Rather than creating one SWF for each user, just create one SWF and pass it different XML for each instance to populate the template. On Sat, Aug 30, 2008 at 12:10 PM, kuntamayu kuntamayu@ wrote: From my flex project, I want to create a swf file on fly - to save clients' data . Clients' data may contains Image, Text, Video, Audio and web link. How to save this data in a swf file at server side. ( We are using java for server side code ) Waiting for reply. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Differences between itemUpdated and setItemAt for ArrayCollections
###itemUpdated notifies the view that an item has been updated. Flex says to the view ..you are stale now ...please update yourself with latest changes from the arraycollectionlike a view.refresh() ###SetItemAt is replacing the dataItem in the ArrayCollection. Like when u manually edit the viewu may want to call the setItemAt to propagate the changes from the view to the arraycollection. I know this is automated but when u do validations u may want to put a logic wheather u want oldValue or newValue in the arraycollection . In such cases u may have to call arraycollection.setItemAt to manually update the arraycollection. --- In flexcoders@yahoogroups.com, j_lentzz [EMAIL PROTECTED] wrote: Ok. Thanks. Makes sense. John --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: itemUpdated implies you changed properties of some item. setItemAt implies you replaced that instance with another instance. Things like selection will be abandoned. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of syndicate_ai Sent: Wednesday, November 28, 2007 12:51 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Differences between itemUpdated and setItemAt for ArrayCollections --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , j_lentzz jelentz@ wrote: Hi, I have a general question about when to use the two methods itemUpdated and setItemAt on ArrayCollections. if you use obj = getItemAt(someIndex) and then change some properties in the obj, what difference is there between using setItemAt(obj,someIndex) or using itemUpdated(obj)? Is there a particular reason to choose one over the other? Thanks, John you generally use setItemAt if you need to completly replace the object in that part of the arraycollection. For instance, we have a backend delegate class that instantiates new objects all the time, each being different but needs to replace the item that already exists in the collection (each object being replaced is progressivly more lightweight) so SetItemAt is necessary for us, its more costly because the view has to completly rerender for that item. getItemAt would be better if you are just changing a few attributes on the object, because a view only needs to change if certain attributes are different from before. Thants what i think anyway
[flexcoders] Deploy Flex Application
So it is my first time of trying to deploy my flex app from localhost to an actual server. I know the process is supposed to be fairly simple in that you need to copy the swf and any other related files, etc. However, I get an error when I try to access the application from the server.[RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend faultDetail=Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: Now I have figured out that the problem is probably happening because it can not find the flex2gateway directory. The directory is there but the URL it is trying to use is incorrect, it seems to be missing the context root of the server, which has been specified. Does anyone have any ideas on how to fix this?
[flexcoders] Re: Differences between itemUpdated and setItemAt for ArrayCollections
###itemUpdated notifies the view that an item has been updated. Flex says to the view ..you are stale now ...please update yourself with latest changes from the arraycollectionlike a view.refresh() ###SetItemAt is replacing the dataItem in the ArrayCollection. Like when u manually edit the viewu may want to call the setItemAt to propagate the changes from the view to the arraycollection. I know this is automated but when u do validations u may want to put a logic wheather u want oldValue or newValue in the arraycollection . In such cases u may have to call arraycollection.setItemAt to manually update the arraycollection. --- In flexcoders@yahoogroups.com, j_lentzz [EMAIL PROTECTED] wrote: Ok. Thanks. Makes sense. John --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: itemUpdated implies you changed properties of some item. setItemAt implies you replaced that instance with another instance. Things like selection will be abandoned. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of syndicate_ai Sent: Wednesday, November 28, 2007 12:51 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Differences between itemUpdated and setItemAt for ArrayCollections --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , j_lentzz jelentz@ wrote: Hi, I have a general question about when to use the two methods itemUpdated and setItemAt on ArrayCollections. if you use obj = getItemAt(someIndex) and then change some properties in the obj, what difference is there between using setItemAt(obj,someIndex) or using itemUpdated(obj)? Is there a particular reason to choose one over the other? Thanks, John you generally use setItemAt if you need to completly replace the object in that part of the arraycollection. For instance, we have a backend delegate class that instantiates new objects all the time, each being different but needs to replace the item that already exists in the collection (each object being replaced is progressivly more lightweight) so SetItemAt is necessary for us, its more costly because the view has to completly rerender for that item. getItemAt would be better if you are just changing a few attributes on the object, because a view only needs to change if certain attributes are different from before. Thants what i think anyway
Re: [flexcoders] Re: Bindable Classes
I'm fairly certain you do need get/set functions to use custom events. actually not. [Bindable(event)] public var lala:Type; and an ad hoc event being dispatched works well. if the property is being set on your model and you wish to dispatch a custom event, creating a setter is the way to do it, but managing invalidations based on logic and dispatching events can allow you to manage multiple properties in batch schemas. remember that you can also have [Bindable(event2)] [Bindable(event1)] [Bindable(event)] public var lala:Type; as for generators, i used to use python, these days i use JET which is native to eclipse. I would also recomend having a look at the eclipse modeling framework, GEF, GMF and such things if you like code generation. On 9/3/08, Josh McDonald [EMAIL PROTECTED] wrote: I'm fairly certain you do need get/set functions to use custom events. It might be a pain, but unfortunately it's when you have objects with many bindable fields that you're more likely to need the custom events (otherwise binding becomes very cpu-intensive). -Josh On Wed, Sep 3, 2008 at 9:30 PM, Johannes Nel [EMAIL PROTECTED] wrote: it does depend on the scale of your application. first off, to use custom events you do not need getters and setters, but it does depend on how you want to use it. my personal feeling around models are that they should always be generated, its such a waste of time to code 'em by hand. On Wed, Sep 3, 2008 at 1:28 PM, reflexactions [EMAIL PROTECTED]wrote: But then you have to write all the event creation and dispatch, plus all the getter/setter. That might be fair enough if you have a handful of props but if this is a couple of data classes with says 100 props each thats quite a bit of typing when all you want is a couple of props not to fire events when they change... unless there is a tool to generate the code from a list of variables. Personally in some cases I use custom events and others I am ok with the default handling, depends on what I am doing as to which is more suited to the situation. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Johannes Nel [EMAIL PROTECTED] wrote: using custom events with your bindable metadata is not only best practice but allows you to decide which properties you want to refresh. [Bindable(myEvent)] i would recomend using this at all times. On Wed, Sep 3, 2008 at 1:04 PM, Josh McDonald [EMAIL PROTECTED] wrote: What it does is renames your variables, and creates get/set methods, but it doesn't wrap the whole class. So unfortunately it's either all-or-none with the class-level [Bindable] -Josh On Wed, Sep 3, 2008 at 9:01 PM, reflexactions [EMAIL PROTECTED]wrote: Ah ok.. I had thought the compiler generated a wrapper or sub class behind the scenes when you used the bindable tag... Well ok learn something new eahc day... tks --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh McDonald dznuts@ wrote: Nope. [Bindable] on a class doesn't wrap the class, it's just exactly the same as putting [Bindable] on every public field. -Josh On Wed, Sep 3, 2008 at 8:45 PM, reflexactions reflexactions@wrote: If I add the Bindable tag at a class level every property is wrapped in by a sort of proxy that then raises PropertyChange events as appropriate. This certainly saves a lot of time instead of having to go through a class and add Bindable to every single property. But... What if there is one property that I dont want to be Bindable and more importantly I dont want it to raise PropertyChange events. Is there same NonBindable tag to achieve this??? tks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: josh@ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- j:pn \\no comment -- j:pn \\no comment -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- j:pn \\no comment
[flexcoders] Flex via php.
hi, my name is JIM, new to the FLEX. i am wishing if some of you guys can help me out here and plz help me out here. i have no idea how I can solve this problem the question is within communication from flex to php and i already succeed receiving value at PHP side although I can not send value as array from php. (Im able to get value at php side from Database) How can I send value from php to flex? P.S. sorry for my terrible English. this is a source ?php require_once(DB_Login.php); $genre_sql = SELECT column FROM table; $shop_sql = SELECT column FROM table; $data = new getDBData(); $genre_row = $data-get_Data($genre_sql); $shop_row = $data-get_Data($shop_sql); $return_Data[] = $genre_row; $return_Data[] = $shop_row; //I am thinking the error is the way to return the value echo $return_Data[]; class getDBData{ function getDBData(){ } /** * receive the data, and make it array * received valueFSQL execute command * return valueFarray * */ function get_Data($sql){ // MySQL communicating if (!($rs = mysql_query($sql))) { die; } // MySQL viewing record $init = True; while ($item = mysql_fetch_array($rs)) { // MySQL init if ($init) { // MySQL counting # of records $clct = count($item) 1; // MySQL checking the name of items reset($item); for ($i = 0; $i $clct; $i++) { $tmp = each($item); // dummy $tmp = each($item); list($mds, $dmy) = $tmp; } // MySQL command ended $init = False; } for ($i = 0; $i $clct; $i++) { $array[] = $item[$i]; } } return $array; } } ? source code of receiving the value private function get_Result(event:Event):void { var loader:URLLoader = event.target as URLLoader; var result:Array = loader.data; //I have no idea how to receive the value here... }
Re: [flexcoders] Re: Want to build a SWF on the fly when someone requests it
- Original Message - From: kuntamayu [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, September 03, 2008 2:42 PM Subject: [flexcoders] Re: Want to build a SWF on the fly when someone requests it Hi Folks, There is nothing to hide about it. See, the thing is : I like to make a web application with Flex as well as its counter part desktop version in AIR. The application will be of like Flex Flip Book and it also offering some other features like slideshow, calender view, zoom In zoom Out etc features. I want my end user come to online version and can make his own stuff - - My system will provide him some layout of - client will choose any layout and provide data for that particular layout - clients input data will be like image / video etc. - system will save that page(layout) by page - at the end client will get a swf file to use at his conveniences. Same way I want to offer same functionality with AIR version, too. ~ Paul, is it information ok to understand you what the application ? Yes, BUT you haven't explained why you cannot package the swf with other files. Folks, can you guide me the proper way now ? Avoid building a swf file 'on the fly'. It's going to be very hard to do and prone to all kinds of problems. My instinct is this: If you knew how to do it you would avoid doing it. If you don't know how to do it and have to ask you shouldn't do it. My suggestion for 'the proper way' is not to try and build a single swf. - it's just my opinion, maybe others (and you) disagree. I'll be interested to see how you get on. Paul Awaiting response --- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: kuntamayu [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, September 02, 2008 12:46 PM Subject: [flexcoders] Re: Want to build a SWF on the fly when someone requests it Hi Daniel Freiman, Paul and Toby Ashley Thanks for your reply. But for this same product we have to crate an AIR (desktop) version too. That's why also, as an end product from my application, I have to give an swf to end client. I think the main mystery is why it has only to be a single swf rather than swf + customistaion data in various files. You are effectively trying to include all that customistation inside the swf. Air doesn't preclude supplying the application + customisation files. Can you not say what this application is? Paul Folks, do you have any other suggestions . . . !!! --- In flexcoders@yahoogroups.com, Paul Andrews paul@ wrote: - Original Message - From: kuntamayu kuntamayu@ To: flexcoders@yahoogroups.com Sent: Monday, September 01, 2008 2:51 PM Subject: [flexcoders] Re: Want to build a SWF on the fly when someone requests it Hi... I am working on a project like Flex Flip Book , so in that project as a end product from my application, I need to give an swf file to end user so he / she can use that swf file directly without any modification. End users aren't normally given swfs - they are generally either provided with an application that they install, or they go to a web page. Just what is your plan? If they use a web page there's no need to have everything in a single swf, if they have an application an installer can install an application file plus any other files required for customisation. Your proposed solution is fraught with difficullty as an automated process. Paul --- In flexcoders@yahoogroups.com, Toby Ashley lowpitch@ wrote: You'd most likely be better off storing your users' data / choices as XML or something, then build a SWF which can read in that XML and load / display the relevant text / video / audio / links / whatever. Rather than creating one SWF for each user, just create one SWF and pass it different XML for each instance to populate the template. On Sat, Aug 30, 2008 at 12:10 PM, kuntamayu kuntamayu@ wrote: From my flex project, I want to create a swf file on fly - to save clients' data . Clients' data may contains Image, Text, Video, Audio and web link. How to save this data in a swf file at server side. ( We are using java for server side code ) Waiting for reply. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] AMFPHP and date/datetime data from MySQL
Adobe has some date parsing methods in the as3corelib library -- http://code.google.com/p/as3corelib/ I suppose it depends on the format your storing the date, the way I've been handling it is using as3 to parse the date string that AMF returns. Not sure if this is the best way, I'd be open to a better one! Hope that helps, I can attempt to help more if it doesn't. I've been using AMFPHP for awhile now... would be nice to make any contacts that use it! - Original Message - From: Nik Derewianka To: flexcoders@yahoogroups.com Sent: Wednesday, September 03, 2008 6:00 AM Subject: [flexcoders] AMFPHP and date/datetime data from MySQL Hi All, Could anyone enlighten me as to how i should send and retrieve date and datetime data for inserting into MySQL via amfphp (1.9) with value objects ? If i edit the data directly in MySQL and then retrieve a vo with a Date datatype i get the following message: TypeError: Error #1034: Type Coercion failed: cannot convert 1970-01-01 to Date. So, I need to format the date in someway so that flex can deserialize it properly. Any insight would be greatly appreciated (am coming from .net land so new to both PHP and as3). Cheers, Nik __ Information from ESET NOD32 Antivirus, version of virus signature database 3411 (20080903) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
Re: [flexcoders] Flex via php.
Hi, It looks like you want to use AMFPHP and return AMF data serialized. If you can't use AMF, then you should return your data as xml (create xml representation of the array you created). Note you don't have to use xml but, you need some string, not a php array. In flex, you need to add an event listener to the URLLoader instance and listen for the complete event, the data will be available in the event object from the complete event. Other than that google has a lot about flex/php and the docs show you how to use the URLLoader and it's dependencies. Mike On Wed, Sep 3, 2008 at 9:51 AM, nash.e2008 [EMAIL PROTECTED] wrote: hi, my name is JIM, new to the FLEX. i am wishing if some of you guys can help me out here and plz help me out here. i have no idea how I can solve this problem the question is within communication from flex to php and i already succeed receiving value at PHP side although I can not send value as array from php. (Im able to get value at php side from Database) How can I send value from php to flex? P.S. sorry for my terrible English. this is a source ?php require_once(DB_Login.php); $genre_sql = SELECT column FROM table; $shop_sql = SELECT column FROM table; $data = new getDBData(); $genre_row = $data-get_Data($genre_sql); $shop_row = $data-get_Data($shop_sql); $return_Data[] = $genre_row; $return_Data[] = $shop_row; //I am thinking the error is the way to return the value echo $return_Data[]; class getDBData{ function getDBData(){ } /** * receive the data, and make it array * received value FSQL execute command * return value Farray * */ function get_Data($sql){ // MySQL communicating if (!($rs = mysql_query($sql))) { die; } // MySQL viewing record $init = True; while ($item = mysql_fetch_array($rs)) { // MySQL init if ($init) { // MySQL counting # of records $clct = count($item) 1; // MySQL checking the name of items reset($item); for ($i = 0; $i $clct; $i++) { $tmp = each($item); // dummy $tmp = each($item); list($mds, $dmy) = $tmp; } // MySQL command ended $init = False; } for ($i = 0; $i $clct; $i++) { $array[] = $item[$i]; } } return $array; } } ? source code of receiving the value private function get_Result(event:Event):void { var loader:URLLoader = event.target as URLLoader; var result:Array = loader.data; //I have no idea how to receive the value here... } -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] Re: Bindable Classes
Yeah but if u dont have a get/set how do you know the property changed and who will fires the event, or are you saying that Flex automatically creates and dispatches the event for you? tks --- In flexcoders@yahoogroups.com, Johannes Nel [EMAIL PROTECTED] wrote: I'm fairly certain you do need get/set functions to use custom events. actually not. [Bindable(event)] public var lala:Type; and an ad hoc event being dispatched works well. if the property is being set on your model and you wish to dispatch a custom event, creating a setter is the way to do it, but managing invalidations based on logic and dispatching events can allow you to manage multiple properties in batch schemas. remember that you can also have [Bindable(event2)] [Bindable(event1)] [Bindable(event)] public var lala:Type; as for generators, i used to use python, these days i use JET which is native to eclipse. I would also recomend having a look at the eclipse modeling framework, GEF, GMF and such things if you like code generation. On 9/3/08, Josh McDonald [EMAIL PROTECTED] wrote: I'm fairly certain you do need get/set functions to use custom events. It might be a pain, but unfortunately it's when you have objects with many bindable fields that you're more likely to need the custom events (otherwise binding becomes very cpu-intensive). -Josh On Wed, Sep 3, 2008 at 9:30 PM, Johannes Nel [EMAIL PROTECTED] wrote: it does depend on the scale of your application. first off, to use custom events you do not need getters and setters, but it does depend on how you want to use it. my personal feeling around models are that they should always be generated, its such a waste of time to code 'em by hand. On Wed, Sep 3, 2008 at 1:28 PM, reflexactions [EMAIL PROTECTED]wrote: But then you have to write all the event creation and dispatch, plus all the getter/setter. That might be fair enough if you have a handful of props but if this is a couple of data classes with says 100 props each thats quite a bit of typing when all you want is a couple of props not to fire events when they change... unless there is a tool to generate the code from a list of variables. Personally in some cases I use custom events and others I am ok with the default handling, depends on what I am doing as to which is more suited to the situation. --- In flexcoders@yahoogroups.com flexcoders% 40yahoogroups.com, Johannes Nel johannes.nel@ wrote: using custom events with your bindable metadata is not only best practice but allows you to decide which properties you want to refresh. [Bindable(myEvent)] i would recomend using this at all times. On Wed, Sep 3, 2008 at 1:04 PM, Josh McDonald dznuts@ wrote: What it does is renames your variables, and creates get/set methods, but it doesn't wrap the whole class. So unfortunately it's either all-or-none with the class- level [Bindable] -Josh On Wed, Sep 3, 2008 at 9:01 PM, reflexactions reflexactions@wrote: Ah ok.. I had thought the compiler generated a wrapper or sub class behind the scenes when you used the bindable tag... Well ok learn something new eahc day... tks --- In flexcoders@yahoogroups.com flexcoders% 40yahoogroups.com, Josh McDonald dznuts@ wrote: Nope. [Bindable] on a class doesn't wrap the class, it's just exactly the same as putting [Bindable] on every public field. -Josh On Wed, Sep 3, 2008 at 8:45 PM, reflexactions reflexactions@wrote: If I add the Bindable tag at a class level every property is wrapped in by a sort of proxy that then raises PropertyChange events as appropriate. This certainly saves a lot of time instead of having to go through a class and add Bindable to every single property. But... What if there is one property that I dont want to be Bindable and more importantly I dont want it to raise PropertyChange events. Is there same NonBindable tag to achieve this??? tks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: josh@ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Re: Want to build a SWF on the fly when someone requests it
I agree with Paul from a technological basis, but there is a strong business case for doing compilation on the fly and having the deliverable be a single file. People with lower technology aptitude/interest would consider a single file better/simpler and may use that as a significant factor on what to purchase. This is why a lot of these types of products do deliver only one file. A lot also deliver multiple files, so it's by no means a cut and dry case. So if the product marketing allows for a multi-file deliverable/output, then I would agree with Paul. But sometimes your stuck with what the market(ers) want. - Daniel Freiman On Wed, Sep 3, 2008 at 9:56 AM, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: kuntamayu [EMAIL PROTECTED] kuntamayu%40gmail.com To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Sent: Wednesday, September 03, 2008 2:42 PM Subject: [flexcoders] Re: Want to build a SWF on the fly when someone requests it Hi Folks, There is nothing to hide about it. See, the thing is : I like to make a web application with Flex as well as its counter part desktop version in AIR. The application will be of like Flex Flip Book and it also offering some other features like slideshow, calender view, zoom In zoom Out etc features. I want my end user come to online version and can make his own stuff - - My system will provide him some layout of - client will choose any layout and provide data for that particular layout - clients input data will be like image / video etc. - system will save that page(layout) by page - at the end client will get a swf file to use at his conveniences. Same way I want to offer same functionality with AIR version, too. ~ Paul, is it information ok to understand you what the application ? Yes, BUT you haven't explained why you cannot package the swf with other files. Folks, can you guide me the proper way now ? Avoid building a swf file 'on the fly'. It's going to be very hard to do and prone to all kinds of problems. My instinct is this: If you knew how to do it you would avoid doing it. If you don't know how to do it and have to ask you shouldn't do it. My suggestion for 'the proper way' is not to try and build a single swf. - it's just my opinion, maybe others (and you) disagree. I'll be interested to see how you get on. Paul Awaiting response --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: kuntamayu [EMAIL PROTECTED] To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Sent: Tuesday, September 02, 2008 12:46 PM Subject: [flexcoders] Re: Want to build a SWF on the fly when someone requests it Hi Daniel Freiman, Paul and Toby Ashley Thanks for your reply. But for this same product we have to crate an AIR (desktop) version too. That's why also, as an end product from my application, I have to give an swf to end client. I think the main mystery is why it has only to be a single swf rather than swf + customistaion data in various files. You are effectively trying to include all that customistation inside the swf. Air doesn't preclude supplying the application + customisation files. Can you not say what this application is? Paul Folks, do you have any other suggestions . . . !!! --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Paul Andrews paul@ wrote: - Original Message - From: kuntamayu kuntamayu@ To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Sent: Monday, September 01, 2008 2:51 PM Subject: [flexcoders] Re: Want to build a SWF on the fly when someone requests it Hi... I am working on a project like Flex Flip Book , so in that project as a end product from my application, I need to give an swf file to end user so he / she can use that swf file directly without any modification. End users aren't normally given swfs - they are generally either provided with an application that they install, or they go to a web page. Just what is your plan? If they use a web page there's no need to have everything in a single swf, if they have an application an installer can install an application file plus any other files required for customisation. Your proposed solution is fraught with difficullty as an automated process. Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Toby Ashley lowpitch@ wrote: You'd most likely be better off storing your users' data / choices as XML or something, then build a SWF which can read in that XML and load / display the relevant text / video / audio / links / whatever. Rather than creating one SWF for each user, just create one SWF and pass it different XML for each
[flexcoders] Re: Flex via php.
Thank you for your tip. It would help me a lot. Ive heard about AMFPHP, but never have used it before. I will try using AMFPHP!
Re: [flexcoders] AMFPHP and date/datetime data from MySQL
On 04/09/2008, at 12:01 AM, Jason Reynolds wrote: Adobe has some date parsing methods in the as3corelib library -- http://code.google.com/p/as3corelib/ I suppose it depends on the format your storing the date, the way I've been handling it is using as3 to parse the date string that AMF returns. Not sure if this is the best way, I'd be open to a better one! Yeah, I am at the point where i will try populating the string of the date (php side) in a throw away prop and then on successful load coerce it into a true date object in the real prop that is then used for binding. But was hoping that if i got it in the right format serverside then the amf deserialization would just take care of it without having to write the converter code. The MySQL columns are date and datetime so there shouldn't be anything funky going on with the storage. Hope that helps, I can attempt to help more if it doesn't. I've been using AMFPHP for awhile now... would be nice to make any contacts that use it! Heh - i'll just say that it has been an... adventurous... experience getting upto speed on amfphp (or remoting of any kind for that matter). But now that it is mostly working, it is pretty sweet. I just hope to get the time to write up a comprehensive overview of all the pitfalls and assorted tidbits i found all over the net. Cheers, Nik
[flexcoders] Re: Issue with RemoteObject
This thread may help: http://tech.groups.yahoo.com/group/flexcoders/message/120115 --- In flexcoders@yahoogroups.com, l_m_sylvester [EMAIL PROTECTED] wrote: Hey guys, I'm getting an annoying error with an all-AS3 application. I've setup WebOrb .NET as my remoting server, and configured the application to point to that server. However, although I've set up a destination, and assigned the my-amf channel to it, I get return :- Destination 'SelectYourSeatDestination' has no channels defined and the application does not define any default channels. If I manually add a my-amf channel using :- var channelSet : ChannelSet = new ChannelSet(); var pollingAMF : AMFChannel = new AMFChannel( my- amf, http://localhost:88/weborb.aspx; ); channelSet.addChannel( pollingAMF ); remoteObject.channelSet = channelSet; then I get the error Channel.Connect.Failed error Invalid URL url: 'null' This is really frustrating. Flex should pick out the destination and associated channels without having to do this. Has anyone else had such problems? Thanks, Lee
Re: [flexcoders] foreign keys in value objects
I suppose it depends. Bet you never heard that answer before! IMHO, if you are just displaying data in a DG or something, just use some XML and go for it. If you need to actually interact with the data, use the VOs in a architected model. Suppose your use case is that a user needs to add a department to a employee, code would be something like myEmployeeInstance.department = chosenDepartment where chosenDepartment is a Department instance. Your objects on the server would be modeled this way, model them in your RIA this way too, less work. You may not be doing anythign wrong with your apporach, you know your use case best, eh? YMMV greatly here. It may be that having the departmentID and a lookup table is all you need really. But what about next week when suddenly a employee needs to be in two departments? I used to work with PeopleSoft data a lot, trust me rules get broken all the time :) Or maybe next month the client wants to see more info about the department? I will note that you do not need to query for the department on each employee interation in your server code. Just make your SQL return the all the (flat) data properly and while interating over it create both the Employee instance and the Department instance. DK On Tue, Sep 2, 2008 at 2:23 PM, Derrick Anderson [EMAIL PROTECTED] wrote: well it has a department ID, not another object. If I'm bringing back 1000 employee records for my datagrid, I already have to loop over that query on the backend to create the array of 1000 VOs. I don't want to have to query to get a Department VO for each iteration as well, when all I need is that name and it already exists in my BO by way of a lookup table. I store these lookups in my business logic and use them in comboboxes and such (this collection populates the Department dropdown on the Employee). usually i only bring them back with ID and Name. I want to use these collections to get the name for an ID at any time I need it. The list of departments is a list of simple objects, I didn't see the need to create VO's for such things. However I'm obviously doing something wrong. I imagined I would have to write renderers for the datagrid and that would be easy enough, but that's not the only place I display data from lookup tables. In Labels, Tab Headers, all sorts of places need to get the department name from the department ID in the employee VO (for one example). Should I just bring the department name back in the employee VO? I'd rather not, it doesn't seem right- but if that's the way to do it I will. D. On Tue, Sep 2, 2008 at 10:34 AM, Douglas Knudsen [EMAIL PROTECTED] wrote: So, your Employee class 'has a' Department, eh? Smells of composition. Employee should maybe have a public var department:Department; inside it. YMMV though, if you really need your VO to be flat for say easy DG only use or some such. DK On Tue, Sep 2, 2008 at 5:01 AM, Derrick Anderson [EMAIL PROTECTED] wrote: Hi, I've been going thru my app now that I know the magic of VO's and converting most things to value objects- loading my VO's into datagrids, forms, all is great. I do have 1 question though, let's say I have a 'employee' value object that has the property 'departmentID'. Is it common practice to also include the 'departmentName' in the value object? I already have a collection of departments (departmentID,departmentName) value objects, I want to be able to at any point find the corresponding department record so I can display the name. Keeping it in the VO seems like a hack though, sounds like it would leave the application open to display sync issues (name in department vo is updated but the customer vo is not). I know I can write a renderer for the datagrids to show the related values from other collections, but there are other display situations too and I don't want this getting out of hand. So I guess the question is, what's the best way to handle foreign key values when dealing with VO's? Include the related values in the VO, or look them up each time? thanks, d. -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
[flexcoders] Re: AMFPHP and date/datetime data from MySQL
I struggled with this on another project. Now, this project uses Cairngorm, value objects, etc., so it's a bit different, but it might help. The value object looks as follows (snippet): public class UserVO implements IValueObject { private var _date_added:Date; private var _last_login:Date; private var _last_modified:Date; public function get date_added():Date { return _date_added; } public function set date_added(value:*):void { _date_added = new Date(value); } public function get last_login():Date { return _last_login; } public function set last_login(value:*):void { _last_login = new Date(value); } public function get last_modified():Date { return _last_modified; } public function set last_modified(value:*):void { _last_modified = new Date(value); } public var user_id:Number; public var account_id:Number; etc I use getters/setters for all the date fields using the value that was passed from the AMFPHP code on the back end. The MySQL on the backend formats the date as follows (sql): $sql = DB::getInstance()-prepare(SELECT user_id, account_id, facility_id, role, email, first, last, title, phone, rca, date_format(date_added, '%a %b %e %Y %r') as date_added, date_format(last_modified, '%a %b %e %Y %r') as last_modified FROM users WHERE email = :usr); It basically takes the output and fetches it into the UserVO class (PHP PDO): /* fetch results into a UserVo object */ $sql-setFetchMode( PDO::FETCH_CLASS, 'UserVO'); and returns the UserVO. To try and summarize this: 1. I used the date_format in MySQL to format the date similar to how one creates a date in Flash/Flex. 2. I used this string date field from AMFPHP and create a date field in Flash/Flex that is used by the application. I don't think you can pass the MySQL date value straight to Flex and create a date unless you parse the information in Flex to create the date field. It has been awhile, but I seem to remember this working ok. hth Chief --- In flexcoders@yahoogroups.com, Nik Derewianka [EMAIL PROTECTED] wrote: Hi All, Could anyone enlighten me as to how i should send and retrieve date and datetime data for inserting into MySQL via amfphp (1.9) with value objects ? If i edit the data directly in MySQL and then retrieve a vo with a Date datatype i get the following message: TypeError: Error #1034: Type Coercion failed: cannot convert 1970-01-01 to Date. So, I need to format the date in someway so that flex can deserialize it properly. Any insight would be greatly appreciated (am coming from .net land so new to both PHP and as3). Cheers, Nik
Re: [flexcoders] AMFPHP and date/datetime data from MySQL
Guys , I also need some help on this thing I m not getting exactly how to get this thing solved if is there any way to transform flex date objects to php through amfphp ,same as reverse it will be great right now I m storing date in php as dateandtime object and fetching as string into flex but it get transform into this date strored in mysql 2001-12-13 in flex as string it comees like this : 12/13/01 Any sugestion how to have this as in corect way or if I could convert 12/13/01 this string to dateobject Sajid - Original Message From: Nik Derewianka [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, September 3, 2008 4:31:25 PM Subject: Re: [flexcoders] AMFPHP and date/datetime data from MySQL On 04/09/2008, at 12:01 AM, Jason Reynolds wrote: Adobe has some date parsing methods in the as3corelib library -- http://code. google.com/ p/as3corelib/ I suppose it depends on the format your storing the date, the way I've been handling it is using as3 to parse the date string that AMF returns. Not sure if this is the best way, I'd be open to a better one! Yeah, I am at the point where i will try populating the string of the date (php side) in a throw away prop and then on successful load coerce it into a true date object in the real prop that is then used for binding. But was hoping that if i got it in the right format serverside then the amf deserialization would just take care of it without having to write the converter code. The MySQL columns are date and datetime so there shouldn't be anything funky going on with the storage. Hope that helps, I can attempt to help more if it doesn't. I've been using AMFPHP for awhile now... would be nice to make any contacts that use it! Heh - i'll just say that it has been an... adventurous. .. experience getting upto speed on amfphp (or remoting of any kind for that matter). But now that it is mostly working, it is pretty sweet. I just hope to get the time to write up a comprehensive overview of all the pitfalls and assorted tidbits i found all over the net. Cheers, Nik
Re: [flexcoders] AMFPHP and date/datetime data from MySQL
Guys , I also need some help on this thing I m not getting exactly how to get this thing solved if is there any way to transform flex date objects to php through amfphp ,same as reverse it will be great right now I m storing date in php as dateandtime object and fetching as string into flex but it get transform into this date strored in mysql 2001-12-13 in flex as string it comees like this : 12/13/01 Any sugestion how to have this as in corect way or if I could convert 12/13/01 this string to dateobject Sajid - Original Message From: Nik Derewianka [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, September 3, 2008 4:31:25 PM Subject: Re: [flexcoders] AMFPHP and date/datetime data from MySQL On 04/09/2008, at 12:01 AM, Jason Reynolds wrote: Adobe has some date parsing methods in the as3corelib library -- http://code. google.com/ p/as3corelib/ I suppose it depends on the format your storing the date, the way I've been handling it is using as3 to parse the date string that AMF returns. Not sure if this is the best way, I'd be open to a better one! Yeah, I am at the point where i will try populating the string of the date (php side) in a throw away prop and then on successful load coerce it into a true date object in the real prop that is then used for binding. But was hoping that if i got it in the right format serverside then the amf deserialization would just take care of it without having to write the converter code. The MySQL columns are date and datetime so there shouldn't be anything funky going on with the storage. Hope that helps, I can attempt to help more if it doesn't. I've been using AMFPHP for awhile now... would be nice to make any contacts that use it! Heh - i'll just say that it has been an... adventurous. .. experience getting upto speed on amfphp (or remoting of any kind for that matter). But now that it is mostly working, it is pretty sweet. I just hope to get the time to write up a comprehensive overview of all the pitfalls and assorted tidbits i found all over the net. Cheers, Nik
[flexcoders] Re: Bindable Classes
Mike Labriola did a very good in depth presentation on how binding works at 360 Flex which was recorded and is available online. It runs about an hour and 20 minutes and is well worth the time if you want to understand how bindings work. Diving in the Data Binding Waters with Michael Labriola http://link.brightcove.com/services/player/bcpid1733261879?bclid=1729365228bctid=1741212660 --- In flexcoders@yahoogroups.com, reflexactions [EMAIL PROTECTED] wrote: If I add the Bindable tag at a class level every property is wrapped in by a sort of proxy that then raises PropertyChange events as appropriate. This certainly saves a lot of time instead of having to go through a class and add Bindable to every single property. But... What if there is one property that I dont want to be Bindable and more importantly I dont want it to raise PropertyChange events. Is there same NonBindable tag to achieve this??? tks
[flexcoders] Re: How to prevent style inheritance?
Hi gerhard, Unfortunately, inheritance has a good side and a bad side. Just apply a seperate styleName to the child Panel, and you're done. -TH --- In flexcoders@yahoogroups.com, gerhard.schlager [EMAIL PROTECTED] wrote: Hello, I've developed a component which extends Panel (e.g. class MyPanel) to which I apply some styles. It works perfectly fine. However, when I put another Panel inside MyPanel it inherits some of the styles of its parent. That's quite annoying. I've uploaded a demo [1] which shows the problem. When you click the button Change style the Panel inside MyPanel changes its colors (headerColors) too. Can I somehow prevent in MyPanel that its children inherit the styles from the parent? It would be great if the children don't get notified about changes to styleName in MyPanel at all. If that's not possible I'd like at least to filter out some of the style changes so that the children of MyPanel don't inherit for example the headerColors. I'd be really grateful for some tips or code snippets. Thanks in advance. Best regards, Gerhard [1] http://mjl.at/temp/demo2/
Re: [flexcoders] Re: Flex via php.
I second AMFPHP, it works very well. It also has a great community surrounding it. Some of the Actionscript source code examples they have up there uses AMF0. Flex uses AMF3, so just make sure you're using AMF3 instead of AMF0. http://www.amfphp.org/ Cheers, Nate On Wed, Sep 3, 2008 at 7:27 AM, nash.e2008 [EMAIL PROTECTED] wrote: Thank you for your tip. It would help me a lot. Ive heard about AMFPHP, but never have used it before. I will try using AMFPHP!
Re: [flexcoders] Re: Flex via php.
On 3-Sep-08, at 7:27 AM, nash.e2008 wrote: Thank you for your tip. It would help me a lot. Ive heard about AMFPHP, but never have used it before. I will try using AMFPHP! A great simple example of using amfphp is included in the adobe php ria kit. Shows display and insertion of data. d
[flexcoders] Re: Deploy Flex Application
I have no clue what you can do to actually fix the issue - but I can suggest doing the following: Put the debug version of the swf on your server. Then change your debug options to run at - http://yoursite.com (the web page serving your swf) - rather than C:\Documents\pathto.swf - or whatever the default is. It will be able to get you directly to the source of your issue. I developed with Flex for 2 years before I ever figured that one out! :D (that one being I can debug remote swf files). Hope this helps a little! -Nathan --- In flexcoders@yahoogroups.com, beczimm [EMAIL PROTECTED] wrote: So it is my first time of trying to deploy my flex app from localhost to an actual server. I know the process is supposed to be fairly simple in that you need to copy the swf and any other related files, etc. However, I get an error when I try to access the application from the server.[RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend faultDetail=Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: Now I have figured out that the problem is probably happening because it can not find the flex2gateway directory. The directory is there but the URL it is trying to use is incorrect, it seems to be missing the context root of the server, which has been specified. Does anyone have any ideas on how to fix this?
[flexcoders] large file upload
I have posted a response to this thread (http://tech.groups.yahoo.com/group/flexcoders/message/60797) and would like to re-ask the question and I am not sure a complete answer was found. first off I understand that Adobe only supports uploads up to 100mb in size, I am attempting to push that 10x further. I am using flex for a multiple file upload, and as far as selection and the actual uploading process everything is working fine. the issue is that when flex/as3 prepares to upload a file, it loads that entire file into RAM. In cases of lower end or base consumer machines that process locks the computer down for sometimes minutes while the file is written to virtual memory. I understand adding more RAM would alleviate the issue, but I can hardly ask my users to add more RAM before using our service. In my research I have found that without AIR, AS3's fileReference and upload mechanisms are somewhat of a black box - probably for security reasons, but I am not sure of my findings. the most viable option I have found would be to split the larger files into smaller sizes and upload each portion, re-assembling it on the server once the session is complete. has anyone found a way to do this in flex - not AIR? Are my assumptions correct or has someone found different conclusions? Thank you, -Nathan
Re: [flexcoders] Re: Deploy Flex Application
Actually, That problem is a pain. Everytime it happens I write the solution down and forget about it. First thing you need to try is go to http://yoursite.com/flex2gateway If you don't get a blank page then something is wrong with your configuration. I am assuming you are using ColdFusion. Next Thing you need to do is go in the ColdFusion Administrator and do Mappings to where your Folder is. I'll try to find the solution on my computer. -- Sherif Abdou http://VadexFX.com http://Sherifabdou.com - Original Message - From: nathanpdaniel To: flexcoders@yahoogroups.com Sent: Wednesday, September 03, 2008 10:16 AM Subject: [flexcoders] Re: Deploy Flex Application I have no clue what you can do to actually fix the issue - but I can suggest doing the following: Put the debug version of the swf on your server. Then change your debug options to run at - http://yoursite.com (the web page serving your swf) - rather than C:\Documents\pathto.swf - or whatever the default is. It will be able to get you directly to the source of your issue. I developed with Flex for 2 years before I ever figured that one out! :D (that one being I can debug remote swf files). Hope this helps a little! -Nathan --- In flexcoders@yahoogroups.com, beczimm [EMAIL PROTECTED] wrote: So it is my first time of trying to deploy my flex app from localhost to an actual server. I know the process is supposed to be fairly simple in that you need to copy the swf and any other related files, etc. However, I get an error when I try to access the application from the server.[RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend faultDetail=Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: Now I have figured out that the problem is probably happening because it can not find the flex2gateway directory. The directory is there but the URL it is trying to use is incorrect, it seems to be missing the context root of the server, which has been specified. Does anyone have any ideas on how to fix this?
Re: [flexcoders] Re: Flex via php.
I forgot to mention the other remoting solution that I've been playing with. http://www.themidnightcoders.com/weborb/php/ WebOrb also has a large slew of code generators that work really well. Cheers, Nate On Wed, Sep 3, 2008 at 8:14 AM, dnk [EMAIL PROTECTED] wrote: On 3-Sep-08, at 7:27 AM, nash.e2008 wrote: Thank you for your tip. It would help me a lot. Ive heard about AMFPHP, but never have used it before. I will try using AMFPHP! A great simple example of using amfphp is included in the adobe php ria kit. Shows display and insertion of data. d
Re: [flexcoders] Re: Deploy Flex Application
If its ColdFusion your connecting to it can be a random pain sometimes getting the url correct. I have developed a mini HelloWorld application to keep hitting your server till you get the right string which may be of some assistance for you: http://www.nutrixinteractive.com/blog/?p=129 Cheers, Simon newtriks.com On 3 Sep 2008, at 16:26, Sherif Abdou wrote: Actually, That problem is a pain. Everytime it happens I write the solution down and forget about it. First thing you need to try is go to http://yoursite.com/flex2gateway If you don't get a blank page then something is wrong with your configuration. I am assuming you are using ColdFusion. Next Thing you need to do is go in the ColdFusion Administrator and do Mappings to where your Folder is. I'll try to find the solution on my computer. -- Sherif Abdou http://VadexFX.com http://Sherifabdou.com - Original Message - From: nathanpdaniel To: flexcoders@yahoogroups.com Sent: Wednesday, September 03, 2008 10:16 AM Subject: [flexcoders] Re: Deploy Flex Application I have no clue what you can do to actually fix the issue - but I can suggest doing the following: Put the debug version of the swf on your server. Then change your debug options to run at - http://yoursite.com (the web page serving your swf) - rather than C:\Documents\pathto.swf - or whatever the default is. It will be able to get you directly to the source of your issue. I developed with Flex for 2 years before I ever figured that one out! :D (that one being I can debug remote swf files). Hope this helps a little! -Nathan --- In flexcoders@yahoogroups.com, beczimm [EMAIL PROTECTED] wrote: So it is my first time of trying to deploy my flex app from localhost to an actual server. I know the process is supposed to be fairly simple in that you need to copy the swf and any other related files, etc. However, I get an error when I try to access the application from the server.[RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend faultDetail=Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: Now I have figured out that the problem is probably happening because it can not find the flex2gateway directory. The directory is there but the URL it is trying to use is incorrect, it seems to be missing the context root of the server, which has been specified. Does anyone have any ideas on how to fix this?
[flexcoders] Re: Want to build a SWF on the fly when someone requests it
I too am considering the automagic generation of a swf using flex/air. I am toying with the idea of using PHP on the server side (http://us3.php.net/manual/en/book.swf.php) to generate the swf and allow the user to download it. I am pretty sure this is something that FLEX can not do on it's own, but would make the best interface for the underlying architecture - passing the vars to another language to actually do the creation. I do however agree that with the use of a generated XML file - the compiled SWF could have various states (scenes?) and display the correct scene with the user's preferences from the XML. this would make the whole process easier in that I could create one SWF, and don't have to compile on the fly... would love to see what you come up with. -Nathan
Re: [flexcoders] Re: Want to build a SWF on the fly when someone requests it
I don't know about much of this but Could you just use LiveCycle and Compile the Application on your server so each client gets a different version of the SWF? I know you get 2 options in Livecycle whehter to compile on server or on your computer. -- Sherif Abdou http://VadexFX.com http://Sherifabdou.com - Original Message - From: nathan king To: flexcoders@yahoogroups.com Sent: Wednesday, September 03, 2008 10:41 AM Subject: [flexcoders] Re: Want to build a SWF on the fly when someone requests it I too am considering the automagic generation of a swf using flex/air. I am toying with the idea of using PHP on the server side (http://us3.php.net/manual/en/book.swf.php) to generate the swf and allow the user to download it. I am pretty sure this is something that FLEX can not do on it's own, but would make the best interface for the underlying architecture - passing the vars to another language to actually do the creation. I do however agree that with the use of a generated XML file - the compiled SWF could have various states (scenes?) and display the correct scene with the user's preferences from the XML. this would make the whole process easier in that I could create one SWF, and don't have to compile on the fly... would love to see what you come up with. -Nathan
Re: [flexcoders] Re: Want to build a SWF on the fly when someone requests it
If you are going the single swf route, here are some of the likely pitfalls: Debugging is going to be a PIA. Not only are you debugging a generated swf, you are debugging the process of generating that swf and trying to build an architecture for all eventualities. If there's a failure in any part of the chain - corrupt uploaded file, fault in the code generated for compiling into the swf, stalled server process, etc. then you will come unstuck in the generation of the swf. The swf generation pipeline is going to involve co-ordination of a number of process - the compiler, loading of assets and use of filespace on the server assembling the swf. There's a lot to go wrong. It's not an easy route. As Daniel says, you may be forced to do this swf generation. I really wonder how many people on the list have attempted such a thing and how they got on. I bet it's a really small number, perhaps even zero. Paul - Original Message - From: Daniel Freiman To: flexcoders@yahoogroups.com Sent: Wednesday, September 03, 2008 3:27 PM Subject: Re: [flexcoders] Re: Want to build a SWF on the fly when someone requests it I agree with Paul from a technological basis, but there is a strong business case for doing compilation on the fly and having the deliverable be a single file. People with lower technology aptitude/interest would consider a single file better/simpler and may use that as a significant factor on what to purchase. This is why a lot of these types of products do deliver only one file. A lot also deliver multiple files, so it's by no means a cut and dry case. So if the product marketing allows for a multi-file deliverable/output, then I would agree with Paul. But sometimes your stuck with what the market(ers) want. - Daniel Freiman On Wed, Sep 3, 2008 at 9:56 AM, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: kuntamayu [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, September 03, 2008 2:42 PM Subject: [flexcoders] Re: Want to build a SWF on the fly when someone requests it Hi Folks, There is nothing to hide about it. See, the thing is : I like to make a web application with Flex as well as its counter part desktop version in AIR. The application will be of like Flex Flip Book and it also offering some other features like slideshow, calender view, zoom In zoom Out etc features. I want my end user come to online version and can make his own stuff - - My system will provide him some layout of - client will choose any layout and provide data for that particular layout - clients input data will be like image / video etc. - system will save that page(layout) by page - at the end client will get a swf file to use at his conveniences. Same way I want to offer same functionality with AIR version, too. ~ Paul, is it information ok to understand you what the application ? Yes, BUT you haven't explained why you cannot package the swf with other files. Folks, can you guide me the proper way now ? Avoid building a swf file 'on the fly'. It's going to be very hard to do and prone to all kinds of problems. My instinct is this: If you knew how to do it you would avoid doing it. If you don't know how to do it and have to ask you shouldn't do it. My suggestion for 'the proper way' is not to try and build a single swf. - it's just my opinion, maybe others (and you) disagree. I'll be interested to see how you get on. Paul Awaiting response --- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: kuntamayu [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, September 02, 2008 12:46 PM Subject: [flexcoders] Re: Want to build a SWF on the fly when someone requests it Hi Daniel Freiman, Paul and Toby Ashley Thanks for your reply. But for this same product we have to crate an AIR (desktop) version too. That's why also, as an end product from my application, I have to give an swf to end client. I think the main mystery is why it has only to be a single swf rather than swf + customistaion data in various files. You are effectively trying to include all that customistation inside the swf. Air doesn't preclude supplying the application + customisation files. Can you not say what this application is? Paul Folks, do you have any other suggestions . . . !!! --- In flexcoders@yahoogroups.com, Paul Andrews paul@ wrote: - Original Message - From: kuntamayu kuntamayu@ To: flexcoders@yahoogroups.com Sent: Monday, September 01, 2008 2:51 PM Subject: [flexcoders] Re:
[flexcoders] Validating more than one source with one validator
Dear all, Can we use one validator to validate more than one source? mx:StringValidator id=labelVld source={nameEntry, labelEntry} required=true property=text / mx:Form mx:FormItem label={resourceManager.getString('Admin','name')} required=true mx:TextInput id=nameEntry / /mx:FormItem mx:FormItem label={resourceManager.getString('Admin','label')} required=true mx:TextInput id=labelEntry / /mx:FormItem I placed more than one value inside the source attribute of the mx:StringValidator component but it didn't work. How do I handle this kind of issue in Flex? Does anyone has any idea about this? Many thanks -- Setting a new landmark. Blog: http://joshuajava.wordpress.com/ Twitter: http://twitter.com/thejavafreak
Re: [flexcoders] Re: Want to build a SWF on the fly when someone requests it
On 3-Sep-08, at 8:41 AM, nathan king wrote: I too am considering the automagic generation of a swf using flex/air. I am toying with the idea of using PHP on the server side (http://us3.php.net/manual/en/book.swf.php) to generate the swf and allow the user to download it. I am pretty sure this is something that FLEX can not do on it's own, but would make the best interface for the underlying architecture - passing the vars to another language to actually do the creation. I do however agree that with the use of a generated XML file - the compiled SWF could have various states (scenes?) and display the correct scene with the user's preferences from the XML. this would make the whole process easier in that I could create one SWF, and don't have to compile on the fly... would love to see what you come up with. -Nathan When I read this post briefly I thought this might be what you are looking for: http://labs.adobe.com/wiki/index.php/Flex_Module_for_Apache_and_IIS This will compile on the fly. Or, you could write a swf in php with something like ming? At first thought, I would probably store my data in a database, use remoting to pull the vars (if applicable) and generate the new swf with a php class (through remoting) or something like that.
[flexcoders] ratings component
Hello all,can anyone tell me if there's a ratings component out there somewhere? thx percy
Re: [flexcoders] ratings component
http://www.google.com/search?rls=en-usq=flex+rating+componentie=UTF-8oe=UTF-8 On Wed, Sep 3, 2008 at 8:56 AM, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: Hello all,can anyone tell me if there's a ratings component out there somewhere? thx percy
Re: [flexcoders] ratings component
http://www.asfusion.com/blog/entry/flex-rating-component is this what we are talking about? -- Sherif Abdou http://VadexFX.com http://Sherifabdou.com - Original Message - From: [p e r c e p t i c o n] To: flexcoders@yahoogroups.com Sent: Wednesday, September 03, 2008 10:56 AM Subject: [flexcoders] ratings component Hello all, can anyone tell me if there's a ratings component out there somewhere? thx percy
[flexcoders] Flex SDK 3.1 changes to WebServices breaking existing services...
Hello All, If have some existing web services that were broken when I upgraded to the 3.1 flex SDK. I believe it has to do with the SOAP Decoder. I needed to get the newest SDK because there were other fixes I was awaiting. I have an Actionscript type that I'm decoding through the SchemaTypeRegistry: public class FooDogVO implements IValueObject { public var quantityBasedFunding : Boolean; public var numRecordsOrdered : int; public var numRecordsForPurchase : int; public var invoiceItems : ArrayCollection = new ArrayCollection(); public var fundedQuantityAccounts : ArrayCollection = new ArrayCollection(); public var paymentAccounts : ArrayCollection = new ArrayCollection(); ... } I'm calling a WebService that is returning the following SOAP Type, that is mapped via the SchemaTypeRegister to FooDogVO: xsd:complexType name=FooDogType xsd:sequence xsd:element name=numRecordsOrdered type=xsd:int/ xsd:element name=quantityBasedFunding type=xsd:boolean/ xsd:element maxOccurs=1 minOccurs=0 name=fundedQuantityAccounts xsd:complexType xsd:sequence xsd:element maxOccurs=unbounded minOccurs=0 name=fundedQuantityAccount type=PaymentOptionType/ /xsd:sequence /xsd:complexType /xsd:element xsd:element name=numRecordsForPurchase type=xsd:int/ xsd:element maxOccurs=1 minOccurs=0 name=invoiceItems xsd:complexType xsd:sequence xsd:element maxOccurs=unbounded minOccurs=0 name=invoiceItem type=InvoiceItemType/ /xsd:sequence /xsd:complexType /xsd:element xsd:element name=total type=xsd:double/ xsd:element maxOccurs=1 minOccurs=0 name=paymentAccounts xsd:complexType xsd:sequence xsd:element maxOccurs=unbounded minOccurs=0 name=paymentAccount type=PaymentOptionType/ /xsd:sequence /xsd:complexType /xsd:element xsd:element name=applied type=xsd:double/ xsd:element name=remaining type=xsd:double/ xsd:element name=allowNewCreditCard type=xsd:boolean/ xsd:element maxOccurs=1 minOccurs=0 name=newCreditCard type=PaymentOptionType/ /xsd:sequence /xsd:complexType Before the Flex 3.1 update, The SOAP decoder properly made the FooDogVO.paymentAccounts property an ArrayCollection of PaymentOptionTypes. Now, however, with the Flex 3.1 SDK update, the FoDogVO.paymentAccouns is an ArrayCollection to an ArrayCollection of PaymentOptionTypes. It's now FooDogVO.paymentAccounts.[ArrayCollection of PaymentOptionTypes] So, I'm looking at the list of Bug fixes for Flex SDK 3.1 and I find the following two bugs: https://bugs.adobe.com/jira/browse/SDK-14321 https://bugs.adobe.com/jira/browse/SDK-14871 But I'm not really sure what's going on with the new Soap Decoder stuff. It seems like I was inadvertently performing a workaround before, but what really should be the proper mapping of elements of completTypes to ArrayCollections? Thanks for any input on a) what's going on b) how I should properly be handling this, whether on the Web Service side, or the Flex client. Naturally, I can always manually remap the properties when the Soap result completes, keeping my VOs (which the application is coded against) the same, but ideally, I'd just do the right thing with the SOAP Decoder/Schema Type registry. Thanks, Todd
Re: [flexcoders] Re: Bindable Classes
no you need to dispatch the event yourself. as i said in some cases a get/set pair is needed, but not always. my strategy is to have multiple events that updates multple properties dependent on which group changed. On Wed, Sep 3, 2008 at 4:15 PM, reflexactions [EMAIL PROTECTED]wrote: Yeah but if u dont have a get/set how do you know the property changed and who will fires the event, or are you saying that Flex automatically creates and dispatches the event for you? tks --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Johannes Nel [EMAIL PROTECTED] wrote: I'm fairly certain you do need get/set functions to use custom events. actually not. [Bindable(event)] public var lala:Type; and an ad hoc event being dispatched works well. if the property is being set on your model and you wish to dispatch a custom event, creating a setter is the way to do it, but managing invalidations based on logic and dispatching events can allow you to manage multiple properties in batch schemas. remember that you can also have [Bindable(event2)] [Bindable(event1)] [Bindable(event)] public var lala:Type; as for generators, i used to use python, these days i use JET which is native to eclipse. I would also recomend having a look at the eclipse modeling framework, GEF, GMF and such things if you like code generation. On 9/3/08, Josh McDonald [EMAIL PROTECTED] wrote: I'm fairly certain you do need get/set functions to use custom events. It might be a pain, but unfortunately it's when you have objects with many bindable fields that you're more likely to need the custom events (otherwise binding becomes very cpu-intensive). -Josh On Wed, Sep 3, 2008 at 9:30 PM, Johannes Nel [EMAIL PROTECTED] wrote: it does depend on the scale of your application. first off, to use custom events you do not need getters and setters, but it does depend on how you want to use it. my personal feeling around models are that they should always be generated, its such a waste of time to code 'em by hand. On Wed, Sep 3, 2008 at 1:28 PM, reflexactions [EMAIL PROTECTED]wrote: But then you have to write all the event creation and dispatch, plus all the getter/setter. That might be fair enough if you have a handful of props but if this is a couple of data classes with says 100 props each thats quite a bit of typing when all you want is a couple of props not to fire events when they change... unless there is a tool to generate the code from a list of variables. Personally in some cases I use custom events and others I am ok with the default handling, depends on what I am doing as to which is more suited to the situation. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Johannes Nel johannes.nel@ wrote: using custom events with your bindable metadata is not only best practice but allows you to decide which properties you want to refresh. [Bindable(myEvent)] i would recomend using this at all times. On Wed, Sep 3, 2008 at 1:04 PM, Josh McDonald dznuts@ wrote: What it does is renames your variables, and creates get/set methods, but it doesn't wrap the whole class. So unfortunately it's either all-or-none with the class- level [Bindable] -Josh On Wed, Sep 3, 2008 at 9:01 PM, reflexactions reflexactions@wrote: Ah ok.. I had thought the compiler generated a wrapper or sub class behind the scenes when you used the bindable tag... Well ok learn something new eahc day... tks --- In flexcoders@yahoogroups.comflexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Josh McDonald dznuts@ wrote: Nope. [Bindable] on a class doesn't wrap the class, it's just exactly the same as putting [Bindable] on every public field. -Josh On Wed, Sep 3, 2008 at 8:45 PM, reflexactions reflexactions@wrote: If I add the Bindable tag at a class level every property is wrapped in by a sort of proxy that then raises PropertyChange events as appropriate. This certainly saves a lot of time instead of having to go through a class and add Bindable to every single property. But... What if there is one property that I dont want to be Bindable and more importantly I dont want it to raise PropertyChange events. Is there same NonBindable tag to achieve this??? tks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%
[flexcoders] Re: Bindable Classes
Of course if you have got some external routine that updates a bunch of props all in one go and then creates and dispatches the event the you can use variables but thats not the typical case and not really viable if we are talking about a class that maybe in a collection and/or bound to UI input controls or the DataGrid and it is getting updated one property at a time dependent on what the user is doing. Anyway thanks for ur viewpoint, I followed JM advise and its doing what I need to do for now, so I am happy lol. tks --- In flexcoders@yahoogroups.com, Johannes Nel [EMAIL PROTECTED] wrote: no you need to dispatch the event yourself. as i said in some cases a get/set pair is needed, but not always. my strategy is to have multiple events that updates multple properties dependent on which group changed. On Wed, Sep 3, 2008 at 4:15 PM, reflexactions [EMAIL PROTECTED]wrote: Yeah but if u dont have a get/set how do you know the property changed and who will fires the event, or are you saying that Flex automatically creates and dispatches the event for you? tks --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Johannes Nel johannes.nel@ wrote: I'm fairly certain you do need get/set functions to use custom events. actually not. [Bindable(event)] public var lala:Type; and an ad hoc event being dispatched works well. if the property is being set on your model and you wish to dispatch a custom event, creating a setter is the way to do it, but managing invalidations based on logic and dispatching events can allow you to manage multiple properties in batch schemas. remember that you can also have [Bindable(event2)] [Bindable(event1)] [Bindable(event)] public var lala:Type; as for generators, i used to use python, these days i use JET which is native to eclipse. I would also recomend having a look at the eclipse modeling framework, GEF, GMF and such things if you like code generation. On 9/3/08, Josh McDonald dznuts@ wrote: I'm fairly certain you do need get/set functions to use custom events. It might be a pain, but unfortunately it's when you have objects with many bindable fields that you're more likely to need the custom events (otherwise binding becomes very cpu-intensive). -Josh On Wed, Sep 3, 2008 at 9:30 PM, Johannes Nel johannes.nel@ wrote: it does depend on the scale of your application. first off, to use custom events you do not need getters and setters, but it does depend on how you want to use it. my personal feeling around models are that they should always be generated, its such a waste of time to code 'em by hand. On Wed, Sep 3, 2008 at 1:28 PM, reflexactions reflexactions@wrote: But then you have to write all the event creation and dispatch, plus all the getter/setter. That might be fair enough if you have a handful of props but if this is a couple of data classes with says 100 props each thats quite a bit of typing when all you want is a couple of props not to fire events when they change... unless there is a tool to generate the code from a list of variables. Personally in some cases I use custom events and others I am ok with the default handling, depends on what I am doing as to which is more suited to the situation. --- In flexcoders@yahoogroups.com flexcoders% 40yahoogroups.comflexcoders% 40yahoogroups.com, Johannes Nel johannes.nel@ wrote: using custom events with your bindable metadata is not only best practice but allows you to decide which properties you want to refresh. [Bindable(myEvent)] i would recomend using this at all times. On Wed, Sep 3, 2008 at 1:04 PM, Josh McDonald dznuts@ wrote: What it does is renames your variables, and creates get/set methods, but it doesn't wrap the whole class. So unfortunately it's either all-or-none with the class- level [Bindable] -Josh On Wed, Sep 3, 2008 at 9:01 PM, reflexactions reflexactions@wrote: Ah ok.. I had thought the compiler generated a wrapper or sub class behind the scenes when you used the bindable tag... Well ok learn something new eahc day... tks --- In flexcoders@yahoogroups.comflexcoders% 40yahoogroups.comflexcoders% 40yahoogroups.com, Josh McDonald dznuts@ wrote: Nope. [Bindable] on a class doesn't wrap the class, it's just exactly the same as putting [Bindable] on every public field. -Josh On Wed, Sep 3, 2008 at 8:45 PM, reflexactions reflexactions@wrote: If I add the Bindable tag at a class level every property is wrapped in by a sort of proxy
Re: [flexcoders] ratings component
thank you sirs funny thing when i typed the very same thing in yesterday i got very cryptic results... ?? thanks much p On Wed, Sep 3, 2008 at 9:02 AM, Sherif Abdou [EMAIL PROTECTED] wrote: http://www.asfusion.com/blog/entry/flex-rating-component is this what we are talking about? -- Sherif Abdou http://VadexFX.com http://Sherifabdou.com - Original Message - *From:* [p e r c e p t i c o n] [EMAIL PROTECTED] *To:* flexcoders@yahoogroups.com *Sent:* Wednesday, September 03, 2008 10:56 AM *Subject:* [flexcoders] ratings component Hello all, can anyone tell me if there's a ratings component out there somewhere? thx percy
[flexcoders] Re: Deploy Flex Application
If I use the URL that the flex error is giving me that flex is trying to use to access the flex2gateway I get a Not Found error from the browser. But as soon as I try the URL that the flex error has along with the context path that is supposed to be there then I get the blank page which is good. I just am not sure how to make flex use the context path in the URL. For example the URL flex is trying to use is http://mysite.com/flex2gateway but it needs to be using http://mysite.com/mysite/flex2gateway. Does that make sense to anyone? --- In flexcoders@yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote: Actually, That problem is a pain. Everytime it happens I write the solution down and forget about it. First thing you need to try is go to http://yoursite.com/flex2gateway If you don't get a blank page then something is wrong with your configuration. I am assuming you are using ColdFusion. Next Thing you need to do is go in the ColdFusion Administrator and do Mappings to where your Folder is. I'll try to find the solution on my computer. -- Sherif Abdou http://VadexFX.com http://Sherifabdou.com - Original Message - From: nathanpdaniel To: flexcoders@yahoogroups.com Sent: Wednesday, September 03, 2008 10:16 AM Subject: [flexcoders] Re: Deploy Flex Application I have no clue what you can do to actually fix the issue - but I can suggest doing the following: Put the debug version of the swf on your server. Then change your debug options to run at - http://yoursite.com (the web page serving your swf) - rather than C:\Documents\pathto.swf - or whatever the default is. It will be able to get you directly to the source of your issue. I developed with Flex for 2 years before I ever figured that one out! :D (that one being I can debug remote swf files). Hope this helps a little! -Nathan --- In flexcoders@yahoogroups.com, beczimm beczimm@ wrote: So it is my first time of trying to deploy my flex app from localhost to an actual server. I know the process is supposed to be fairly simple in that you need to copy the swf and any other related files, etc. However, I get an error when I try to access the application from the server.[RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend faultDetail=Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: Now I have figured out that the problem is probably happening because it can not find the flex2gateway directory. The directory is there but the URL it is trying to use is incorrect, it seems to be missing the context root of the server, which has been specified. Does anyone have any ideas on how to fix this?
Re: [flexcoders] Re: Want to build a SWF on the fly when someone requests it
I agree with Paul here. Debugging would be a pain, however, I wouldn't count this out as impossible. Here's what I would do it: 1. Install mxmlc on my webserver (or offload to another server for scalability) 2. Write template MXML AS documents. 3. Have a set of configuration files, xml, assets etc. 4. Use Ruby or Perl, or maybe even PHP to take the configuration files, assets etc... and generate the code that needs to be compiled from the templates. 5. Run the generated files through mxmlc 6. Now you'd have a swf that you could prompt the user to download or something else. Now that I think about this. It seems a lot like what Animoto does, except they're generating video instead on a swf, but it's essentially the same type of system. hope this helps, Nate On Wed, Sep 3, 2008 at 8:49 AM, Paul Andrews [EMAIL PROTECTED] wrote: If you are going the single swf route, here are some of the likely pitfalls: Debugging is going to be a PIA. Not only are you debugging a generated swf, you are debugging the process of generating that swf and trying to build an architecture for all eventualities. If there's a failure in any part of the chain - corrupt uploaded file, fault in the code generated for compiling into the swf, stalled server process, etc. then you will come unstuck in the generation of the swf. The swf generation pipeline is going to involve co-ordination of a number of process - the compiler, loading of assets and use of filespace on the server assembling the swf. There's a lot to go wrong. It's not an easy route. As Daniel says, you may be forced to do this swf generation. I really wonder how many people on the list have attempted such a thing and how they got on. I bet it's a really small number, perhaps even zero. Paul - Original Message - *From:* Daniel Freiman [EMAIL PROTECTED] *To:* flexcoders@yahoogroups.com *Sent:* Wednesday, September 03, 2008 3:27 PM *Subject:* Re: [flexcoders] Re: Want to build a SWF on the fly when someone requests it I agree with Paul from a technological basis, but there is a strong business case for doing compilation on the fly and having the deliverable be a single file. People with lower technology aptitude/interest would consider a single file better/simpler and may use that as a significant factor on what to purchase. This is why a lot of these types of products do deliver only one file. A lot also deliver multiple files, so it's by no means a cut and dry case. So if the product marketing allows for a multi-file deliverable/output, then I would agree with Paul. But sometimes your stuck with what the market(ers) want. - Daniel Freiman On Wed, Sep 3, 2008 at 9:56 AM, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: kuntamayu [EMAIL PROTECTED] kuntamayu%40gmail.com To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Sent: Wednesday, September 03, 2008 2:42 PM Subject: [flexcoders] Re: Want to build a SWF on the fly when someone requests it Hi Folks, There is nothing to hide about it. See, the thing is : I like to make a web application with Flex as well as its counter part desktop version in AIR. The application will be of like Flex Flip Book and it also offering some other features like slideshow, calender view, zoom In zoom Out etc features. I want my end user come to online version and can make his own stuff - - My system will provide him some layout of - client will choose any layout and provide data for that particular layout - clients input data will be like image / video etc. - system will save that page(layout) by page - at the end client will get a swf file to use at his conveniences. Same way I want to offer same functionality with AIR version, too. ~ Paul, is it information ok to understand you what the application ? Yes, BUT you haven't explained why you cannot package the swf with other files. Folks, can you guide me the proper way now ? Avoid building a swf file 'on the fly'. It's going to be very hard to do and prone to all kinds of problems. My instinct is this: If you knew how to do it you would avoid doing it. If you don't know how to do it and have to ask you shouldn't do it. My suggestion for 'the proper way' is not to try and build a single swf. - it's just my opinion, maybe others (and you) disagree. I'll be interested to see how you get on. Paul Awaiting response --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: kuntamayu [EMAIL PROTECTED] To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Sent: Tuesday, September 02, 2008 12:46 PM Subject: [flexcoders] Re: Want to build a SWF on the fly when someone requests it Hi Daniel Freiman, Paul and Toby Ashley Thanks for your reply. But for this same product we have to
[flexcoders] Scrollbar - add easing to the scrolled content
Hello, I have a scrollbar applied to the content of a Canvas (it's not a list control). Is it possible to easily add easing to the movement of the content being scrolled? Thanks, João Saleiro
Re: [flexcoders] Re: Deploy Flex Application
I Guess maybe then you can try mappings, Try doing /mysite for Logical Path and for Directory Path give the path where mysite is stored so C:\etc..? If that does not work then Try putting all your files in root and Test out then we will move from there. -- Sherif Abdou http://VadexFX.com http://Sherifabdou.com - Original Message - From: beczimm To: flexcoders@yahoogroups.com Sent: Wednesday, September 03, 2008 12:22 PM Subject: [flexcoders] Re: Deploy Flex Application If I use the URL that the flex error is giving me that flex is trying to use to access the flex2gateway I get a Not Found error from the browser. But as soon as I try the URL that the flex error has along with the context path that is supposed to be there then I get the blank page which is good. I just am not sure how to make flex use the context path in the URL. For example the URL flex is trying to use is http://mysite.com/flex2gateway but it needs to be using http://mysite.com/mysite/flex2gateway. Does that make sense to anyone? --- In flexcoders@yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote: Actually, That problem is a pain. Everytime it happens I write the solution down and forget about it. First thing you need to try is go to http://yoursite.com/flex2gateway If you don't get a blank page then something is wrong with your configuration. I am assuming you are using ColdFusion. Next Thing you need to do is go in the ColdFusion Administrator and do Mappings to where your Folder is. I'll try to find the solution on my computer. -- Sherif Abdou http://VadexFX.com http://Sherifabdou.com - Original Message - From: nathanpdaniel To: flexcoders@yahoogroups.com Sent: Wednesday, September 03, 2008 10:16 AM Subject: [flexcoders] Re: Deploy Flex Application I have no clue what you can do to actually fix the issue - but I can suggest doing the following: Put the debug version of the swf on your server. Then change your debug options to run at - http://yoursite.com (the web page serving your swf) - rather than C:\Documents\pathto.swf - or whatever the default is. It will be able to get you directly to the source of your issue. I developed with Flex for 2 years before I ever figured that one out! :D (that one being I can debug remote swf files). Hope this helps a little! -Nathan --- In flexcoders@yahoogroups.com, beczimm beczimm@ wrote: So it is my first time of trying to deploy my flex app from localhost to an actual server. I know the process is supposed to be fairly simple in that you need to copy the swf and any other related files, etc. However, I get an error when I try to access the application from the server.[RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend faultDetail=Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: Now I have figured out that the problem is probably happening because it can not find the flex2gateway directory. The directory is there but the URL it is trying to use is incorrect, it seems to be missing the context root of the server, which has been specified. Does anyone have any ideas on how to fix this?
Re: [flexcoders] Re: Bindable Classes
variables but thats not the typical case and not really viable if we are talking about a class that maybe in a collection and/or bound to UI input controls here i disagree. with complex views, charts and that kind of loving its best to invalidate in bunches. thats a good preso, understanding the changewatcher and binding utils is necesary to build data centric applications. On Wed, Sep 3, 2008 at 7:16 PM, reflexactions [EMAIL PROTECTED]wrote: Of course if you have got some external routine that updates a bunch of props all in one go and then creates and dispatches the event the you can use variables but thats not the typical case and not really viable if we are talking about a class that maybe in a collection and/or bound to UI input controls or the DataGrid and it is getting updated one property at a time dependent on what the user is doing. Anyway thanks for ur viewpoint, I followed JM advise and its doing what I need to do for now, so I am happy lol. tks --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Johannes Nel [EMAIL PROTECTED] wrote: no you need to dispatch the event yourself. as i said in some cases a get/set pair is needed, but not always. my strategy is to have multiple events that updates multple properties dependent on which group changed. On Wed, Sep 3, 2008 at 4:15 PM, reflexactions [EMAIL PROTECTED]wrote: Yeah but if u dont have a get/set how do you know the property changed and who will fires the event, or are you saying that Flex automatically creates and dispatches the event for you? tks --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Johannes Nel johannes.nel@ wrote: I'm fairly certain you do need get/set functions to use custom events. actually not. [Bindable(event)] public var lala:Type; and an ad hoc event being dispatched works well. if the property is being set on your model and you wish to dispatch a custom event, creating a setter is the way to do it, but managing invalidations based on logic and dispatching events can allow you to manage multiple properties in batch schemas. remember that you can also have [Bindable(event2)] [Bindable(event1)] [Bindable(event)] public var lala:Type; as for generators, i used to use python, these days i use JET which is native to eclipse. I would also recomend having a look at the eclipse modeling framework, GEF, GMF and such things if you like code generation. On 9/3/08, Josh McDonald dznuts@ wrote: I'm fairly certain you do need get/set functions to use custom events. It might be a pain, but unfortunately it's when you have objects with many bindable fields that you're more likely to need the custom events (otherwise binding becomes very cpu-intensive). -Josh On Wed, Sep 3, 2008 at 9:30 PM, Johannes Nel johannes.nel@ wrote: it does depend on the scale of your application. first off, to use custom events you do not need getters and setters, but it does depend on how you want to use it. my personal feeling around models are that they should always be generated, its such a waste of time to code 'em by hand. On Wed, Sep 3, 2008 at 1:28 PM, reflexactions reflexactions@wrote: But then you have to write all the event creation and dispatch, plus all the getter/setter. That might be fair enough if you have a handful of props but if this is a couple of data classes with says 100 props each thats quite a bit of typing when all you want is a couple of props not to fire events when they change... unless there is a tool to generate the code from a list of variables. Personally in some cases I use custom events and others I am ok with the default handling, depends on what I am doing as to which is more suited to the situation. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.comflexcoders% 40yahoogroups.com, Johannes Nel johannes.nel@ wrote: using custom events with your bindable metadata is not only best practice but allows you to decide which properties you want to refresh. [Bindable(myEvent)] i would recomend using this at all times. On Wed, Sep 3, 2008 at 1:04 PM, Josh McDonald dznuts@ wrote: What it does is renames your variables, and creates get/set methods, but it doesn't wrap the whole class. So unfortunately it's either all-or-none with the class- level [Bindable] -Josh On Wed, Sep 3, 2008 at 9:01 PM, reflexactions reflexactions@wrote: Ah ok.. I had thought the compiler generated a
[flexcoders] Re: Deploy Flex Application
I tried the mapping and the site is already in the root. So the mapping did not work either. I have even tried hard coding the context root into the services-config.xml where it is setting the path for the flex2gateway and it is still trying to use http://mysite.com/flex2gateway instead of the http://mysite.com/mysite/flex2gateway. GRRR! I am really at a loss as to what else to try with this. --- In flexcoders@yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote: I Guess maybe then you can try mappings, Try doing /mysite for Logical Path and for Directory Path give the path where mysite is stored so C:\etc..? If that does not work then Try putting all your files in root and Test out then we will move from there. -- Sherif Abdou http://VadexFX.com http://Sherifabdou.com - Original Message - From: beczimm To: flexcoders@yahoogroups.com Sent: Wednesday, September 03, 2008 12:22 PM Subject: [flexcoders] Re: Deploy Flex Application If I use the URL that the flex error is giving me that flex is trying to use to access the flex2gateway I get a Not Found error from the browser. But as soon as I try the URL that the flex error has along with the context path that is supposed to be there then I get the blank page which is good. I just am not sure how to make flex use the context path in the URL. For example the URL flex is trying to use is http://mysite.com/flex2gateway but it needs to be using http://mysite.com/mysite/flex2gateway. Does that make sense to anyone? --- In flexcoders@yahoogroups.com, Sherif Abdou flex@ wrote: Actually, That problem is a pain. Everytime it happens I write the solution down and forget about it. First thing you need to try is go to http://yoursite.com/flex2gateway If you don't get a blank page then something is wrong with your configuration. I am assuming you are using ColdFusion. Next Thing you need to do is go in the ColdFusion Administrator and do Mappings to where your Folder is. I'll try to find the solution on my computer. -- Sherif Abdou http://VadexFX.com http://Sherifabdou.com - Original Message - From: nathanpdaniel To: flexcoders@yahoogroups.com Sent: Wednesday, September 03, 2008 10:16 AM Subject: [flexcoders] Re: Deploy Flex Application I have no clue what you can do to actually fix the issue - but I can suggest doing the following: Put the debug version of the swf on your server. Then change your debug options to run at - http://yoursite.com (the web page serving your swf) - rather than C:\Documents\pathto.swf - or whatever the default is. It will be able to get you directly to the source of your issue. I developed with Flex for 2 years before I ever figured that one out! :D (that one being I can debug remote swf files). Hope this helps a little! -Nathan --- In flexcoders@yahoogroups.com, beczimm beczimm@ wrote: So it is my first time of trying to deploy my flex app from localhost to an actual server. I know the process is supposed to be fairly simple in that you need to copy the swf and any other related files, etc. However, I get an error when I try to access the application from the server.[RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend faultDetail=Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: Now I have figured out that the problem is probably happening because it can not find the flex2gateway directory. The directory is there but the URL it is trying to use is incorrect, it seems to be missing the context root of the server, which has been specified. Does anyone have any ideas on how to fix this?
[flexcoders] Re: Changing video sources in the middle of the... er.. stream
Is there an example of a way to have a video display without using the VideoDisplay component? Maybe that would work here. sr --- In flexcoders@yahoogroups.com, Simon Bailey [EMAIL PROTECTED] wrote: Oh sorry didnt realise you were using VideoDisplay, sorry never use or used that component.. :S On 2 Sep 2008, at 22:21, stephendricketts wrote: Actually, I thought about that but found that the VideoDisplay didn't have that as a method so I found an example that used: import mx.core.mx_internal; In the program I wrote... pubVideo.mx_internal::videoPlayer.clear(); pubVideo.attachCamera(cam); But that didn't have any effect on the VideoDisplay display. Don't know if I did that right but nothing yelled at me. ;-) sr --- In flexcoders@yahoogroups.com, Simon Bailey Nutrix@ wrote: At a very quick glance, have you tried: videoObj.clear(); before assigning and attaching you NetStream to the video Object? Cheers, Simon newtriks.com On 2 Sep 2008, at 21:43, stephendricketts wrote: I have a FB3 application that streams live video to a number of users and periodically needs to change whose sending video. The application pretty much has to work this way. Let's call the person that's sending the video the host. Periodically they will switch hosts and let another user become the host and send their video. This works except when the video is taken the users see the new video source, but the video that's displayed on the new host's videoDisplay is a still picture of the first host. Can anyone point me to how this switching should be done?... or be willing to plow through my code and see where I've screwed up? It's been simplified as much as I can so it makes (some) sense. Any direction greatly appreciated! Steve Here's a condensed version of the code. I should also add, this is the same program for all users. The host is only a host because they were on first: 1. Initial Host connection: if(nc.connected){ nsPublish = new NetStream(nc); nsPublish.attachAudio(Microphone.getMicrophone()); nsPublish.publish(LS,live); cam = Camera.getCamera(); if (cam != null) { nsPublish.attachCamera(cam); pubVideo.attachCamera(cam); addChild(pubVideo); } } 2. Initial User Connection: if (nc.connected){ pubVideo.source = rtmpPath + / + rtmpSession + /LS; } // At this point everyone is seeing what they should. --- 3. User Takes Control: !-- Now at this point the user will write their request to a remote shared object. Everyone is subscribed to that object and the host will read it and know someone wants to take control. --! var o:Object = new Object; o.person_int = person_int; // Id for new host so_primary.setProperty(so_primary_name,o); // Changes remote shared object pubVideo.source = null; // stop looking at the host's feed 4. Host is Told Change is Requested: !-- The eventHandler notifies host of change. When the host determines someone is taking control, they stop publishing video. --! private function gotParticipantSO(e:SyncEvent):void { pubVideo.attachCamera(null); pubVideo.source=null; nsPublish.attachCamera(null); nsPublish.attachAudio(null); nsPublish.close(); } !-- Now we wait until nsPublish's status event handler tells us when we've unpublished. Then the user is notified they can take over through the remote shared object --! private function networkStatus(event:NetStatusEvent):void { var o:Object = new Object; switch (event.info.code.toString() ) { case NetStream.Unpublish.Success: so_primary.setProperty(so_primary_name,o); //tell user I've quit so they can publish pubVideo.source = rtmpPath + / + rtmpSession + /LS; // start looking at the new host (user) } 5. User Gets Notified They Have Control: (and not the right picture in their video display!) !-- This is the same routine as was used when the host initially connected --! if(nc.connected){ nsPublish = new NetStream(nc); //Initializing NetStream nsPublish.attachAudio(Microphone.getMicrophone()); nsPublish.publish(LS,live); cam = Camera.getCamera(); if (cam != null) { nsPublish.attachCamera(cam); // THIS SEEN ON ALL OTHER CONNECTIONS pubVideo.attachCamera(cam); // THIS NOT WORKING, STILL PICTURE!? addChild(pubVideo); } } mx:VideoDisplay width=192 height=142 id=pubVideo live=true/ So, the stream is really being published as everyone can see and hear the new host. It's just on the new host's display they are seeing a still picture of the first host. Seems simple, but...
[flexcoders] Re: Deploy Flex Application
I got your error the first time i wanted to put my flex app in prod... I changed my service-config.xml correctly but i needed to do another thing : You have to change project options in the Eclipse IDE...the project was compiled with my localhost as server url... Change it, rebuild and drop it on the prod server and all should be fine... --- In flexcoders@yahoogroups.com, beczimm [EMAIL PROTECTED] wrote: I tried the mapping and the site is already in the root. So the mapping did not work either. I have even tried hard coding the context root into the services-config.xml where it is setting the path for the flex2gateway and it is still trying to use http://mysite.com/flex2gateway instead of the http://mysite.com/mysite/flex2gateway. GRRR! I am really at a loss as to what else to try with this. --- In flexcoders@yahoogroups.com, Sherif Abdou flex@ wrote: I Guess maybe then you can try mappings, Try doing /mysite for Logical Path and for Directory Path give the path where mysite is stored so C:\etc..? If that does not work then Try putting all your files in root and Test out then we will move from there. -- Sherif Abdou http://VadexFX.com http://Sherifabdou.com - Original Message - From: beczimm To: flexcoders@yahoogroups.com Sent: Wednesday, September 03, 2008 12:22 PM Subject: [flexcoders] Re: Deploy Flex Application If I use the URL that the flex error is giving me that flex is trying to use to access the flex2gateway I get a Not Found error from the browser. But as soon as I try the URL that the flex error has along with the context path that is supposed to be there then I get the blank page which is good. I just am not sure how to make flex use the context path in the URL. For example the URL flex is trying to use is http://mysite.com/flex2gateway but it needs to be using http://mysite.com/mysite/flex2gateway. Does that make sense to anyone? --- In flexcoders@yahoogroups.com, Sherif Abdou flex@ wrote: Actually, That problem is a pain. Everytime it happens I write the solution down and forget about it. First thing you need to try is go to http://yoursite.com/flex2gateway If you don't get a blank page then something is wrong with your configuration. I am assuming you are using ColdFusion. Next Thing you need to do is go in the ColdFusion Administrator and do Mappings to where your Folder is. I'll try to find the solution on my computer. -- Sherif Abdou http://VadexFX.com http://Sherifabdou.com - Original Message - From: nathanpdaniel To: flexcoders@yahoogroups.com Sent: Wednesday, September 03, 2008 10:16 AM Subject: [flexcoders] Re: Deploy Flex Application I have no clue what you can do to actually fix the issue - but I can suggest doing the following: Put the debug version of the swf on your server. Then change your debug options to run at - http://yoursite.com (the web page serving your swf) - rather than C:\Documents\pathto.swf - or whatever the default is. It will be able to get you directly to the source of your issue. I developed with Flex for 2 years before I ever figured that one out! :D (that one being I can debug remote swf files). Hope this helps a little! -Nathan --- In flexcoders@yahoogroups.com, beczimm beczimm@ wrote: So it is my first time of trying to deploy my flex app from localhost to an actual server. I know the process is supposed to be fairly simple in that you need to copy the swf and any other related files, etc. However, I get an error when I try to access the application from the server.[RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend faultDetail=Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: Now I have figured out that the problem is probably happening because it can not find the flex2gateway directory. The directory is there but the URL it is trying to use is incorrect, it seems to be missing the context root of the server, which has been specified. Does anyone have any ideas on how to fix this?
Re: [flexcoders] Scrollbar - add easing to the scrolled content
Hi, Yes, I have done this and it actually works well. All you need to do is animate the horizontalScrollPosition and verticalScrollPosition properties of the Container. Mike On Wed, Sep 3, 2008 at 1:31 PM, João [EMAIL PROTECTED] wrote: Hello, I have a scrollbar applied to the content of a Canvas (it's not a list control). Is it possible to easily add easing to the movement of the content being scrolled? Thanks, João Saleiro -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] Scrollbar - add easing to the scrolled content
Ops I miss read your question, you are asking about easing as the user moves the scroll button. You might be able to do some kind of a delta move calculation in relation to the time the user moves from point x to point y. This would mean you need to override the 2 properties I just mentioned. You would also need mouse down and up events recording info. Honestly I don't know if that would work. Out of the box, flex scrollbars in a Container hare hard to animate from a user gesture. Some one know of a way without overriding scroll positions? Mike On Wed, Sep 3, 2008 at 2:20 PM, Michael Schmalle [EMAIL PROTECTED]wrote: Hi, Yes, I have done this and it actually works well. All you need to do is animate the horizontalScrollPosition and verticalScrollPosition properties of the Container. Mike On Wed, Sep 3, 2008 at 1:31 PM, João [EMAIL PROTECTED] wrote: Hello, I have a scrollbar applied to the content of a Canvas (it's not a list control). Is it possible to easily add easing to the movement of the content being scrolled? Thanks, João Saleiro -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'. -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] Re: Flex SDK 3.1 changes to WebServices breaking existing services...
The only real changes (those that aren't ASDoc comments to the core Flex code) I see in the the mx.rpc.soap package is in the SOAPArrayType.as. FYI, I was happily using the 3.0.676 framework (which was post 3.0 release). --- In flexcoders@yahoogroups.com, Todd [EMAIL PROTECTED] wrote: Hello All, If have some existing web services that were broken when I upgraded to the 3.1 flex SDK. I believe it has to do with the SOAP Decoder. I needed to get the newest SDK because there were other fixes I was awaiting. I have an Actionscript type that I'm decoding through the SchemaTypeRegistry: public class FooDogVO implements IValueObject { public var quantityBasedFunding : Boolean; public var numRecordsOrdered : int; public var numRecordsForPurchase : int; public var invoiceItems : ArrayCollection = new ArrayCollection(); public var fundedQuantityAccounts : ArrayCollection = new ArrayCollection(); public var paymentAccounts : ArrayCollection = new ArrayCollection(); ... } I'm calling a WebService that is returning the following SOAP Type, that is mapped via the SchemaTypeRegister to FooDogVO: xsd:complexType name=FooDogType xsd:sequence xsd:element name=numRecordsOrdered type=xsd:int/ xsd:element name=quantityBasedFunding type=xsd:boolean/ xsd:element maxOccurs=1 minOccurs=0 name=fundedQuantityAccounts xsd:complexType xsd:sequence xsd:element maxOccurs=unbounded minOccurs=0 name=fundedQuantityAccount type=PaymentOptionType/ /xsd:sequence /xsd:complexType /xsd:element xsd:element name=numRecordsForPurchase type=xsd:int/ xsd:element maxOccurs=1 minOccurs=0 name=invoiceItems xsd:complexType xsd:sequence xsd:element maxOccurs=unbounded minOccurs=0 name=invoiceItem type=InvoiceItemType/ /xsd:sequence /xsd:complexType /xsd:element xsd:element name=total type=xsd:double/ xsd:element maxOccurs=1 minOccurs=0 name=paymentAccounts xsd:complexType xsd:sequence xsd:element maxOccurs=unbounded minOccurs=0 name=paymentAccount type=PaymentOptionType/ /xsd:sequence /xsd:complexType /xsd:element xsd:element name=applied type=xsd:double/ xsd:element name=remaining type=xsd:double/ xsd:element name=allowNewCreditCard type=xsd:boolean/ xsd:element maxOccurs=1 minOccurs=0 name=newCreditCard type=PaymentOptionType/ /xsd:sequence /xsd:complexType Before the Flex 3.1 update, The SOAP decoder properly made the FooDogVO.paymentAccounts property an ArrayCollection of PaymentOptionTypes. Now, however, with the Flex 3.1 SDK update, the FoDogVO.paymentAccouns is an ArrayCollection to an ArrayCollection of PaymentOptionTypes. It's now FooDogVO.paymentAccounts.[ArrayCollection of PaymentOptionTypes] So, I'm looking at the list of Bug fixes for Flex SDK 3.1 and I find the following two bugs: https://bugs.adobe.com/jira/browse/SDK-14321 https://bugs.adobe.com/jira/browse/SDK-14871 But I'm not really sure what's going on with the new Soap Decoder stuff. It seems like I was inadvertently performing a workaround before, but what really should be the proper mapping of elements of completTypes to ArrayCollections? Thanks for any input on a) what's going on b) how I should properly be handling this, whether on the Web Service side, or the Flex client. Naturally, I can always manually remap the properties when the Soap result completes, keeping my VOs (which the application is coded against) the same, but ideally, I'd just do the right thing with the SOAP Decoder/Schema Type registry. Thanks, Todd
[flexcoders] BubbleSeries effect that leaves a trail
My boss has asked me if I can do a rather challenging series transition. I don't know if it's really even possible. Basically, on a bubble chart, i have an interpolation effect. So the bubbles move across the screen to their new positions. What he asked for is that they leave kind of a temporary trail. Kind of like how in Windows you can set your mouse pointer to leave a trail. Is that really possible the way flex does charting effects? Any tips on how to go about it if it is? -- Jason
RE: [flexcoders] Re: Deploy Flex Application
I am not familiar with your particular environment, but I habitually pass full urls into my applications via flashvars in the html wrapper. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of beczimm Sent: Wednesday, September 03, 2008 1:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Deploy Flex Application I tried the mapping and the site is already in the root. So the mapping did not work either. I have even tried hard coding the context root into the services-config.xml where it is setting the path for the flex2gateway and it is still trying to use http://mysite.com/flex2gateway http://mysite.com/flex2gateway instead of the http://mysite.com/mysite/flex2gateway. http://mysite.com/mysite/flex2gateway. GRRR! I am really at a loss as to what else to try with this. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Sherif Abdou [EMAIL PROTECTED] wrote: I Guess maybe then you can try mappings, Try doing /mysite for Logical Path and for Directory Path give the path where mysite is stored so C:\etc..? If that does not work then Try putting all your files in root and Test out then we will move from there. -- Sherif Abdou http://VadexFX.com http://VadexFX.com http://Sherifabdou.com http://Sherifabdou.com - Original Message - From: beczimm To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Wednesday, September 03, 2008 12:22 PM Subject: [flexcoders] Re: Deploy Flex Application If I use the URL that the flex error is giving me that flex is trying to use to access the flex2gateway I get a Not Found error from the browser. But as soon as I try the URL that the flex error has along with the context path that is supposed to be there then I get the blank page which is good. I just am not sure how to make flex use the context path in the URL. For example the URL flex is trying to use is http://mysite.com/flex2gateway http://mysite.com/flex2gateway but it needs to be using http://mysite.com/mysite/flex2gateway. http://mysite.com/mysite/flex2gateway. Does that make sense to anyone? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Sherif Abdou flex@ wrote: Actually, That problem is a pain. Everytime it happens I write the solution down and forget about it. First thing you need to try is go to http://yoursite.com/flex2gateway http://yoursite.com/flex2gateway If you don't get a blank page then something is wrong with your configuration. I am assuming you are using ColdFusion. Next Thing you need to do is go in the ColdFusion Administrator and do Mappings to where your Folder is. I'll try to find the solution on my computer. -- Sherif Abdou http://VadexFX.com http://VadexFX.com http://Sherifabdou.com http://Sherifabdou.com - Original Message - From: nathanpdaniel To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Wednesday, September 03, 2008 10:16 AM Subject: [flexcoders] Re: Deploy Flex Application I have no clue what you can do to actually fix the issue - but I can suggest doing the following: Put the debug version of the swf on your server. Then change your debug options to run at - http://yoursite.com http://yoursite.com (the web page serving your swf) - rather than C:\Documents\pathto.swf - or whatever the default is. It will be able to get you directly to the source of your issue. I developed with Flex for 2 years before I ever figured that one out! :D (that one being I can debug remote swf files). Hope this helps a little! -Nathan --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , beczimm beczimm@ wrote: So it is my first time of trying to deploy my flex app from localhost to an actual server. I know the process is supposed to be fairly simple in that you need to copy the swf and any other related files, etc. However, I get an error when I try to access the application from the server.[RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend faultDetail=Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: Now I have figured out that the problem is probably happening because it can not find the flex2gateway directory. The directory is there but the URL it is trying to use is incorrect, it seems to be missing the context root of the server, which has been specified. Does anyone have any ideas on how to fix this?
[flexcoders] Profile external SWF
I need to profile my swf in the context of my site. Debugging works fine, but I can't figure out how to start the profiler and be able to navigate a few pages on my site before getting to my SWF. Does anyone know how to do this?
[flexcoders] printJob and callLater
I have an application that produces a very large printout. The documentation in the printJob says that you have a 15 second time limit in between calls to PrintJob.addPage (this is what FlexPrintJob.addObject is calling). However, based on my tests it seems you have 60 seconds for the whole thing to happen. I tried to chain my addPage calls with callLaters but that just cause an exception on the second addPage. The documentation says that you can do it in multiple frames, but that doesn't seem to be the case. Am I stuck with making sure my print job get's completely done withing the 60 second timelimit or is there a work around?
[flexcoders] Re: Deploy Flex Application
Thanks to everyone who gave me ideas, but I finally got it to work. What I did was I created a new project in Flex Builder that actually was connected to the server I wanted to deploy on (which the reason I don't develop this way is that fact that is takes forever for everything to load). Once I had the project created I copied all the code and everything I needed into the new project and built the project. And now I have a working flex application on my ColdFusion server. Gees, you would think what I was trying before would work just as easy, but I should know by now nothing in development is ever easy! Thanks again everyone for the ideas! --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: I am not familiar with your particular environment, but I habitually pass full urls into my applications via flashvars in the html wrapper. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of beczimm Sent: Wednesday, September 03, 2008 1:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Deploy Flex Application I tried the mapping and the site is already in the root. So the mapping did not work either. I have even tried hard coding the context root into the services-config.xml where it is setting the path for the flex2gateway and it is still trying to use http://mysite.com/flex2gateway http://mysite.com/flex2gateway instead of the http://mysite.com/mysite/flex2gateway. http://mysite.com/mysite/flex2gateway. GRRR! I am really at a loss as to what else to try with this. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Sherif Abdou flex@ wrote: I Guess maybe then you can try mappings, Try doing /mysite for Logical Path and for Directory Path give the path where mysite is stored so C:\etc..? If that does not work then Try putting all your files in root and Test out then we will move from there. -- Sherif Abdou http://VadexFX.com http://VadexFX.com http://Sherifabdou.com http://Sherifabdou.com - Original Message - From: beczimm To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Wednesday, September 03, 2008 12:22 PM Subject: [flexcoders] Re: Deploy Flex Application If I use the URL that the flex error is giving me that flex is trying to use to access the flex2gateway I get a Not Found error from the browser. But as soon as I try the URL that the flex error has along with the context path that is supposed to be there then I get the blank page which is good. I just am not sure how to make flex use the context path in the URL. For example the URL flex is trying to use is http://mysite.com/flex2gateway http://mysite.com/flex2gateway but it needs to be using http://mysite.com/mysite/flex2gateway. http://mysite.com/mysite/flex2gateway. Does that make sense to anyone? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Sherif Abdou flex@ wrote: Actually, That problem is a pain. Everytime it happens I write the solution down and forget about it. First thing you need to try is go to http://yoursite.com/flex2gateway http://yoursite.com/flex2gateway If you don't get a blank page then something is wrong with your configuration. I am assuming you are using ColdFusion. Next Thing you need to do is go in the ColdFusion Administrator and do Mappings to where your Folder is. I'll try to find the solution on my computer. -- Sherif Abdou http://VadexFX.com http://VadexFX.com http://Sherifabdou.com http://Sherifabdou.com - Original Message - From: nathanpdaniel To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Wednesday, September 03, 2008 10:16 AM Subject: [flexcoders] Re: Deploy Flex Application I have no clue what you can do to actually fix the issue - but I can suggest doing the following: Put the debug version of the swf on your server. Then change your debug options to run at - http://yoursite.com http://yoursite.com (the web page serving your swf) - rather than C:\Documents\pathto.swf - or whatever the default is. It will be able to get you directly to the source of your issue. I developed with Flex for 2 years before I ever figured that one out! :D (that one being I can debug remote swf files). Hope this helps a little! -Nathan --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , beczimm beczimm@ wrote: So it is my first time of trying to deploy my flex app from localhost to an actual server. I know the process is supposed to be fairly simple in that you need to copy the swf and any other related files, etc. However, I get an error when I try to access the application from the server.[RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend
Re: [flexcoders] BubbleSeries effect that leaves a trail
a wild stab.when the move occurs, take bitmap snapshots, alpha them out while the move effect is running and put the snapshots over the chart. this will of course be a nightmare if your axis values change. On Wed, Sep 3, 2008 at 8:26 PM, Pan Troglodytes [EMAIL PROTECTED]wrote: My boss has asked me if I can do a rather challenging series transition. I don't know if it's really even possible. Basically, on a bubble chart, i have an interpolation effect. So the bubbles move across the screen to their new positions. What he asked for is that they leave kind of a temporary trail. Kind of like how in Windows you can set your mouse pointer to leave a trail. Is that really possible the way flex does charting effects? Any tips on how to go about it if it is? -- Jason -- j:pn \\no comment
[flexcoders] FileReference.upload() on FireFox not firing uploadCompleteData event
That about says it all. I've got an https post going with a file upload and I'm listening for uploadCompleteData to retrieve the data from the response - but the event isn't firing on FireFox. IE is fine. I don't have any issues with this on IIS, but on Apache, I'm not getting the event back in FireFox. Has anyone seen this? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c)
[flexcoders] Components are disappearing from the screen on popups
If I have a Menu pop up or a modal window pop up and the browser is in full mode, the icons disappear by moving to the right about 100px. I can't figure out a way to fix this problem. screencast: http://www.screencast.com/users/RyanGravener/folders/Jing/media/2a63fab9-7c2f-4b52-8094-f5bc6423a46b paste: http://eugeneciurana.com/pastebin/pastebin.php?show=33170 Thanks, Ryan Gravener http://twitter.com/ryangravener
[flexcoders] Re: BubbleSeries effect that leaves a trail
That's what I'd do: use addChildAt() to a CartesianDataCanvas; used as a backgroundElement. Probably easier to get to the displayObject if you use a custom chart item renderer; and listen for the move effect. -TH --- In flexcoders@yahoogroups.com, Johannes Nel [EMAIL PROTECTED] wrote: a wild stab.when the move occurs, take bitmap snapshots, alpha them out while the move effect is running and put the snapshots over the chart. this will of course be a nightmare if your axis values change. On Wed, Sep 3, 2008 at 8:26 PM, Pan Troglodytes [EMAIL PROTECTED]: My boss has asked me if I can do a rather challenging series transition. I don't know if it's really even possible. Basically, on a bubble chart, i have an interpolation effect. So the bubbles move across the screen to their new positions. What he asked for is that they leave kind of a temporary trail. Kind of like how in Windows you can set your mouse pointer to leave a trail. Is that really possible the way flex does charting effects? Any tips on how to go about it if it is? -- Jason -- j:pn \\no comment
[flexcoders] Re: large file upload
UPDATE - after testing, it seems this is a flash /mac issue. I have tested on one PC with no issues. Flex/AS3 seems to post normally just as a HTML form would do. Can anyone else confirm this issue? -Nathan --- In flexcoders@yahoogroups.com, nathan king [EMAIL PROTECTED] wrote: I have posted a response to this thread (http://tech.groups.yahoo.com/group/flexcoders/message/60797) and would like to re-ask the question and I am not sure a complete answer was found. first off I understand that Adobe only supports uploads up to 100mb in size, I am attempting to push that 10x further. I am using flex for a multiple file upload, and as far as selection and the actual uploading process everything is working fine. the issue is that when flex/as3 prepares to upload a file, it loads that entire file into RAM. In cases of lower end or base consumer machines that process locks the computer down for sometimes minutes while the file is written to virtual memory. I understand adding more RAM would alleviate the issue, but I can hardly ask my users to add more RAM before using our service. In my research I have found that without AIR, AS3's fileReference and upload mechanisms are somewhat of a black box - probably for security reasons, but I am not sure of my findings. the most viable option I have found would be to split the larger files into smaller sizes and upload each portion, re-assembling it on the server once the session is complete. has anyone found a way to do this in flex - not AIR? Are my assumptions correct or has someone found different conclusions? Thank you, -Nathan
[flexcoders] How do I create a project just for a module in FlexBuilder?
I'm try to create a project that only contains a module. It should not be a swc. It should not contain an application. How would I do this in FlexBuilder. It seems to not have the concept of a module project.
Re: [flexcoders] Need Help and Guidance desperately
Hi Guys So is there anyone in the list that can help me in achieving this? This problem is burning me out now and I need a good head start to achieve this. This is my first project of this kind. Earlier i developed simple prototypes using basic event programming. I need you genius guys's guidance to get me started and need that layout for my images. If there is any custom componenet available in the market then i am ready to buy that too. It is taking me little long to figure out this layout. I have reached at the last level of this project. Sorry for being pain but please help me out in generating this layout. Any guidance and any kind of help in this direction will be highyl appreciated. Thanks in advance guys Anuj On Wed, Aug 27, 2008 at 1:51 PM, anuj sharma [EMAIL PROTECTED] wrote: Dough I forgot to mention that i am not sure if i can force the components into either rows or columns because I am allowing free flow of the image within the container too which means that the user should be able to resize the image and should be able to drag and drop the image too whereever he wants within the container. i used drag manager for that. i thought should made it clear. Thanks for your time Anuj On Wed, Aug 27, 2008 at 9:34 AM, Doug McCune [EMAIL PROTECTED] wrote: Oh wow, that's actually a really flexible layout requirement that I don't think you can achieve with any of the components out there right now (ie TileList, Tile, combination of HBox and VBox, or even FlowBox). I think you may have to lose of of the desired functionality and allow the content to be binned into distinct rows or columns more tightly. The first image in your attachement is doable in the FlowBox I believe, but the second screenshot is much harder. Notice how box C extends down into a second row, and also how box E extends across multiple columns. That use of dual column and row spanning makes it difficult. If you allow the components to be forced into either rows or columns then it will be much easier. Doug On Wed, Aug 27, 2008 at 9:05 AM, anuj sharma [EMAIL PROTECTED] wrote: Hi All Attached is the rough sketch i am about the UI i have to implement. Right now they are just empty pictures, but the user can drag them on the stage and can resize the images placed on the main screen. My requirement if user drops a new image on the screen all the other images adjust themselves to accommodate the new image. Also if user enlarge or shrink one image (like in the sketch user is trying to shrink image B), all the other images adjust themselves on the main stage . Please let em know if you have any questions. Thanks a lot for your help Anuj On Tue, Aug 26, 2008 at 4:38 PM, anuj sharma [EMAIL PROTECTED] wrote: Hi Rick I will try to sketch my requirement and send it to you soon. That might help to find what i am looking for. Thanks for your suggestion. Anuj On Mon, Aug 25, 2008 at 7:47 PM, Rick Winscot [EMAIL PROTECTED]wrote: The seconds link was to a flow layout that would set you in the right direction... The other option was the first link which uses static positioning. Really, it depends on what you want the user experience to be like. If you could sketch out the solution – we could throw some code around. Rick Winscot On 8/25/08 10:24 PM, anuj sharma [EMAIL PROTECTED] wrote: Hi Rick Thanks for the reply. Are there any recommendations about which layout component or container should i use or do i need to create my custom component for achieving this target. I am not sure which way to handle that layout. Please help me out Again Thanks a lot. Anuj On Mon, Aug 25, 2008 at 5:18 PM, anuj181 [EMAIL PROTECTED] wrote: Hi I am using HBOX container to load images letting user drag image from one HBOX and dropping them in another (2nd)HBOX. I need to calculate the real estate of the HBOX in which the image has been dropped (i-e 2nd HBOX). The reason is that because I need the dropped image to get placed in an empty space within the 2nd HBOX. Is there any way I can calculate which space is empty in the HBOX and let my objects (images) to be placed only in the empty spaces within the HBOX (not the sapce already occupied by the placed images).Once the HBOX is full then I need to code in a way that images starts shrinking(upto some level) to accommodate more images. Please help me out in figuring out this problem. Any type of help/documentation/links in this direction will be highly appreciated. Thanks Anuj
Re: [flexcoders] Re: Want to build a SWF on the fly when someone requests it
Nate, You'll also need a Flex front end to interact with the user - so they can choose appropriate options and specify assets that will be used, then upload assets, etc. The front end would then instruct the server side to build the swf from the assets and configuration that the user has selected in the Flex front-end. Effectively the Flex front end would be responsible for assembling stage 3 of your pipeline and would initiate stage 4. Paul - Original Message - From: Nate Beck To: flexcoders@yahoogroups.com Sent: Wednesday, September 03, 2008 5:19 PM Subject: Re: [flexcoders] Re: Want to build a SWF on the fly when someone requests it I agree with Paul here. Debugging would be a pain, however, I wouldn't count this out as impossible. Here's what I would do it: 1.. Install mxmlc on my webserver (or offload to another server for scalability) 2.. Write template MXML AS documents. 3.. Have a set of configuration files, xml, assets etc. 4.. Use Ruby or Perl, or maybe even PHP to take the configuration files, assets etc... and generate the code that needs to be compiled from the templates. 5.. Run the generated files through mxmlc 6.. Now you'd have a swf that you could prompt the user to download or something else. Now that I think about this. It seems a lot like what Animoto does, except they're generating video instead on a swf, but it's essentially the same type of system. hope this helps, Nate On Wed, Sep 3, 2008 at 8:49 AM, Paul Andrews [EMAIL PROTECTED] wrote: If you are going the single swf route, here are some of the likely pitfalls: Debugging is going to be a PIA. Not only are you debugging a generated swf, you are debugging the process of generating that swf and trying to build an architecture for all eventualities. If there's a failure in any part of the chain - corrupt uploaded file, fault in the code generated for compiling into the swf, stalled server process, etc. then you will come unstuck in the generation of the swf. The swf generation pipeline is going to involve co-ordination of a number of process - the compiler, loading of assets and use of filespace on the server assembling the swf. There's a lot to go wrong. It's not an easy route. As Daniel says, you may be forced to do this swf generation. I really wonder how many people on the list have attempted such a thing and how they got on. I bet it's a really small number, perhaps even zero. Paul - Original Message - From: Daniel Freiman To: flexcoders@yahoogroups.com Sent: Wednesday, September 03, 2008 3:27 PM Subject: Re: [flexcoders] Re: Want to build a SWF on the fly when someone requests it I agree with Paul from a technological basis, but there is a strong business case for doing compilation on the fly and having the deliverable be a single file. People with lower technology aptitude/interest would consider a single file better/simpler and may use that as a significant factor on what to purchase. This is why a lot of these types of products do deliver only one file. A lot also deliver multiple files, so it's by no means a cut and dry case. So if the product marketing allows for a multi-file deliverable/output, then I would agree with Paul. But sometimes your stuck with what the market(ers) want. - Daniel Freiman On Wed, Sep 3, 2008 at 9:56 AM, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: kuntamayu [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, September 03, 2008 2:42 PM Subject: [flexcoders] Re: Want to build a SWF on the fly when someone requests it Hi Folks, There is nothing to hide about it. See, the thing is : I like to make a web application with Flex as well as its counter part desktop version in AIR. The application will be of like Flex Flip Book and it also offering some other features like slideshow, calender view, zoom In zoom Out etc features. I want my end user come to online version and can make his own stuff - - My system will provide him some layout of - client will choose any layout and provide data for that particular layout - clients input data will be like image / video etc. - system will save that page(layout) by page - at the end client will get a swf file to use at his conveniences. Same way I want to offer same functionality with AIR version, too. ~ Paul, is it information ok to understand you what the application ? Yes, BUT you haven't explained why you cannot package the swf with other files. Folks, can you guide me the proper way now ? Avoid building a swf file 'on the fly'.
RE: [flexcoders] Need Help and Guidance desperately
Can everything be a mini-window using FlexMDI? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of anuj sharma Sent: Wednesday, September 03, 2008 1:46 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Need Help and Guidance desperately Hi Guys So is there anyone in the list that can help me in achieving this? This problem is burning me out now and I need a good head start to achieve this. This is my first project of this kind. Earlier i developed simple prototypes using basic event programming. I need you genius guys's guidance to get me started and need that layout for my images. If there is any custom componenet available in the market then i am ready to buy that too. It is taking me little long to figure out this layout. I have reached at the last level of this project. Sorry for being pain but please help me out in generating this layout. Any guidance and any kind of help in this direction will be highyl appreciated. Thanks in advance guys Anuj On Wed, Aug 27, 2008 at 1:51 PM, anuj sharma [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: Dough I forgot to mention that i am not sure if i can force the components into either rows or columns because I am allowing free flow of the image within the container too which means that the user should be able to resize the image and should be able to drag and drop the image too whereever he wants within the container. i used drag manager for that. i thought should made it clear. Thanks for your time Anuj On Wed, Aug 27, 2008 at 9:34 AM, Doug McCune [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: Oh wow, that's actually a really flexible layout requirement that I don't think you can achieve with any of the components out there right now (ie TileList, Tile, combination of HBox and VBox, or even FlowBox). I think you may have to lose of of the desired functionality and allow the content to be binned into distinct rows or columns more tightly. The first image in your attachement is doable in the FlowBox I believe, but the second screenshot is much harder. Notice how box C extends down into a second row, and also how box E extends across multiple columns. That use of dual column and row spanning makes it difficult. If you allow the components to be forced into either rows or columns then it will be much easier. Doug On Wed, Aug 27, 2008 at 9:05 AM, anuj sharma [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: Hi All Attached is the rough sketch i am about the UI i have to implement. Right now they are just empty pictures, but the user can drag them on the stage and can resize the images placed on the main screen. My requirement if user drops a new image on the screen all the other images adjust themselves to accommodate the new image. Also if user enlarge or shrink one image (like in the sketch user is trying to shrink image B), all the other images adjust themselves on the main stage . Please let em know if you have any questions. Thanks a lot for your help Anuj On Tue, Aug 26, 2008 at 4:38 PM, anuj sharma [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: Hi Rick I will try to sketch my requirement and send it to you soon. That might help to find what i am looking for. Thanks for your suggestion. Anuj On Mon, Aug 25, 2008 at 7:47 PM, Rick Winscot [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: The seconds link was to a flow layout that would set you in the right direction... The other option was the first link which uses static positioning. Really, it depends on what you want the user experience to be like. If you could sketch out the solution - we could throw some code around. Rick Winscot On 8/25/08 10:24 PM, anuj sharma [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: Hi Rick Thanks for the reply. Are there any recommendations about which layout component or container should i use or do i need to create my custom component for achieving this target. I am not sure which way to handle that layout. Please help me out Again Thanks a lot. Anuj On Mon, Aug 25, 2008 at 5:18 PM, anuj181 [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: Hi I am using HBOX container to load images letting user drag image from one HBOX and dropping them in another (2nd)HBOX. I need to calculate the real estate of the HBOX in which the image has been dropped (i-e 2nd HBOX). The reason is that because I need the dropped image to get placed in an empty space within the 2nd HBOX. Is there any way I can calculate which space is empty in the HBOX and let my objects (images) to be placed only in the empty spaces within the HBOX (not the sapce already occupied by the placed images).Once the HBOX is full then I need to code in a way that images starts shrinking(upto some level) to accommodate more images. Please help me out in figuring out this problem. Any type of help/documentation/links in this direction will be highly appreciated. Thanks Anuj
RE: [flexcoders] Components are disappearing from the screen on popups
What kind of code positions the icons? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Gravener Sent: Wednesday, September 03, 2008 1:04 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Components are disappearing from the screen on popups If I have a Menu pop up or a modal window pop up and the browser is in full mode, the icons disappear by moving to the right about 100px. I can't figure out a way to fix this problem. screencast: http://www.screencast.com/users/RyanGravener/folders/Jing/media/2a63fab9-7c2f-4b52-8094-f5bc6423a46b paste: http://eugeneciurana.com/pastebin/pastebin.php?show=33170 Thanks, Ryan Gravener http://twitter.com/ryangravener
RE: [flexcoders] printJob and callLater
Yeah, due to a bug, you can't print over multiple frames. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markdemich Sent: Wednesday, September 03, 2008 12:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] printJob and callLater I have an application that produces a very large printout. The documentation in the printJob says that you have a 15 second time limit in between calls to PrintJob.addPage (this is what FlexPrintJob.addObject is calling). However, based on my tests it seems you have 60 seconds for the whole thing to happen. I tried to chain my addPage calls with callLaters but that just cause an exception on the second addPage. The documentation says that you can do it in multiple frames, but that doesn't seem to be the case. Am I stuck with making sure my print job get's completely done withing the 60 second timelimit or is there a work around?
RE: [flexcoders] Profile external SWF
Profile perspective, Profile/Profile External Application? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markdemich Sent: Wednesday, September 03, 2008 12:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Profile external SWF I need to profile my swf in the context of my site. Debugging works fine, but I can't figure out how to start the profiler and be able to navigate a few pages on my site before getting to my SWF. Does anyone know how to do this?
Re: [flexcoders] Components are disappearing from the screen on popups
It is just mxml. Correction: When ever firefox has scrollbars then the positioning works fine. On Wed, Sep 3, 2008 at 5:19 PM, Alex Harui [EMAIL PROTECTED] wrote: What kind of code positions the icons? *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ryan Gravener *Sent:* Wednesday, September 03, 2008 1:04 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Components are disappearing from the screen on popups If I have a Menu pop up or a modal window pop up and the browser is in full mode, the icons disappear by moving to the right about 100px. I can't figure out a way to fix this problem. screencast: http://www.screencast.com/users/RyanGravener/folders/Jing/media/2a63fab9-7c2f-4b52-8094-f5bc6423a46b paste: http://eugeneciurana.com/pastebin/pastebin.php?show=33170 Thanks, Ryan Gravener http://twitter.com/ryangravener -- Ryan Gravener http://twitter.com/ryangravener
RE: [flexcoders] Components are disappearing from the screen on popups
And what might that MXML look like? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Gravener Sent: Wednesday, September 03, 2008 2:26 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Components are disappearing from the screen on popups It is just mxml. Correction: When ever firefox has scrollbars then the positioning works fine. On Wed, Sep 3, 2008 at 5:19 PM, Alex Harui [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: What kind of code positions the icons? From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of Ryan Gravener Sent: Wednesday, September 03, 2008 1:04 PM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: [flexcoders] Components are disappearing from the screen on popups If I have a Menu pop up or a modal window pop up and the browser is in full mode, the icons disappear by moving to the right about 100px. I can't figure out a way to fix this problem. screencast: http://www.screencast.com/users/RyanGravener/folders/Jing/media/2a63fab9-7c2f-4b52-8094-f5bc6423a46b paste: http://eugeneciurana.com/pastebin/pastebin.php?show=33170 Thanks, Ryan Gravener http://twitter.com/ryangravener -- Ryan Gravener http://twitter.com/ryangravener
Re: [flexcoders] Need Help and Guidance desperately
Hi Alex I am not sure i understand that. Basically I am dragging images from one container which is HBOX( because i need scroller facility too) and dropping them in another container which is Tile. The user should be able to resize the dropped images as shown in the layout and the rest of the images have to adjust in terms of size as well as location to let resized image to get accommodated. I have seen some examples of FlowBox and one as shown in the following link: http://demo.quietlyscheming.com/DragTile/DragDrop.html but my problem coems becasue user should be able to resize the images in the container. As I have mentioned this is the first project of this kind for me I am not sure which way to go. Anyway coming to your question (mini-window using FlexMDI) it can be the any way as long as it is solving the purpose of my requirement. Any detail and suggestions, please let me know Thanks Anuj On Wed, Sep 3, 2008 at 2:16 PM, Alex Harui [EMAIL PROTECTED] wrote: Can everything be a mini-window using FlexMDI? *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *anuj sharma *Sent:* Wednesday, September 03, 2008 1:46 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Need Help and Guidance desperately Hi Guys So is there anyone in the list that can help me in achieving this? This problem is burning me out now and I need a good head start to achieve this. This is my first project of this kind. Earlier i developed simple prototypes using basic event programming. I need you genius guys's guidance to get me started and need that layout for my images. If there is any custom componenet available in the market then i am ready to buy that too. It is taking me little long to figure out this layout. I have reached at the last level of this project. Sorry for being pain but please help me out in generating this layout. Any guidance and any kind of help in this direction will be highyl appreciated. Thanks in advance guys Anuj On Wed, Aug 27, 2008 at 1:51 PM, anuj sharma [EMAIL PROTECTED] wrote: Dough I forgot to mention that i am not sure if i can force the components into either rows or columns because I am allowing free flow of the image within the container too which means that the user should be able to resize the image and should be able to drag and drop the image too whereever he wants within the container. i used drag manager for that. i thought should made it clear. Thanks for your time Anuj On Wed, Aug 27, 2008 at 9:34 AM, Doug McCune [EMAIL PROTECTED] wrote: Oh wow, that's actually a really flexible layout requirement that I don't think you can achieve with any of the components out there right now (ie TileList, Tile, combination of HBox and VBox, or even FlowBox). I think you may have to lose of of the desired functionality and allow the content to be binned into distinct rows or columns more tightly. The first image in your attachement is doable in the FlowBox I believe, but the second screenshot is much harder. Notice how box C extends down into a second row, and also how box E extends across multiple columns. That use of dual column and row spanning makes it difficult. If you allow the components to be forced into either rows or columns then it will be much easier. Doug On Wed, Aug 27, 2008 at 9:05 AM, anuj sharma [EMAIL PROTECTED] wrote: Hi All Attached is the rough sketch i am about the UI i have to implement. Right now they are just empty pictures, but the user can drag them on the stage and can resize the images placed on the main screen. My requirement if user drops a new image on the screen all the other images adjust themselves to accommodate the new image. Also if user enlarge or shrink one image (like in the sketch user is trying to shrink image B), all the other images adjust themselves on the main stage . Please let em know if you have any questions. Thanks a lot for your help Anuj On Tue, Aug 26, 2008 at 4:38 PM, anuj sharma [EMAIL PROTECTED] wrote: Hi Rick I will try to sketch my requirement and send it to you soon. That might help to find what i am looking for. Thanks for your suggestion. Anuj On Mon, Aug 25, 2008 at 7:47 PM, Rick Winscot [EMAIL PROTECTED] wrote: The seconds link was to a flow layout that would set you in the right direction... The other option was the first link which uses static positioning. Really, it depends on what you want the user experience to be like. If you could sketch out the solution – we could throw some code around. Rick Winscot On 8/25/08 10:24 PM, anuj sharma [EMAIL PROTECTED] wrote: Hi Rick Thanks for the reply. Are there any recommendations about which layout component or container should i use or do i need to create my custom component for achieving this target. I am not sure which way to handle that layout. Please help me out Again Thanks a lot. Anuj On Mon, Aug 25, 2008 at 5:18 PM, anuj181 [EMAIL
Re: [flexcoders] Components are disappearing from the screen on popups
http://eugeneciurana.com/pastebin/pastebin.php?show=33170 On Wed, Sep 3, 2008 at 5:29 PM, Alex Harui [EMAIL PROTECTED] wrote: And what might that MXML look like? *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ryan Gravener *Sent:* Wednesday, September 03, 2008 2:26 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Components are disappearing from the screen on popups It is just mxml. Correction: When ever firefox has scrollbars then the positioning works fine. On Wed, Sep 3, 2008 at 5:19 PM, Alex Harui [EMAIL PROTECTED] wrote: What kind of code positions the icons? *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ryan Gravener *Sent:* Wednesday, September 03, 2008 1:04 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Components are disappearing from the screen on popups If I have a Menu pop up or a modal window pop up and the browser is in full mode, the icons disappear by moving to the right about 100px. I can't figure out a way to fix this problem. screencast: http://www.screencast.com/users/RyanGravener/folders/Jing/media/2a63fab9-7c2f-4b52-8094-f5bc6423a46b paste: http://eugeneciurana.com/pastebin/pastebin.php?show=33170 Thanks, Ryan Gravener http://twitter.com/ryangravener -- Ryan Gravener http://twitter.com/ryangravener -- Ryan Gravener http://twitter.com/ryangravener
Re: [flexcomponents] RE: [flexcoders] Re: Scale to fit, revisited
Sorry folks. One more time with attachment renamed to foil the filters. On Wed, Sep 3, 2008 at 10:28 AM, Richard Rodseth [EMAIL PROTECTED] wrote: Cross-posting to flexcoders... On Wed, Sep 3, 2008 at 9:34 AM, Richard Rodseth [EMAIL PROTECTED]wrote: On Tue, Sep 2, 2008 at 9:51 PM, Alex Harui [EMAIL PROTECTED] wrote: If you post a test case, I might get a chance to look at it . sdf Thanks, that would be great. A Flex project archive is attached, and the complete code is also below. There's an HBox with two instances of the ScaledContent component. The button on the right scales and centers properly. The one on the left doesn't. TestScaledContent.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical xmlns:comp=comp.* mx:HBox width=90% height=90% borderStyle=solid comp:ScaledContent width=50% height=100% borderStyle=solid mx:Button label=This is a button / /comp:ScaledContent comp:ScaledContent width=50% height=100% borderStyle=solid mx:Button label=This is a button width=1400 height=1400 cornerRadius=100/ /comp:ScaledContent /mx:HBox /mx:Application ScaledContent.mxml: ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:comp=comp.* horizontalScrollPolicy=off verticalScrollPolicy=off mx:Metadata [DefaultProperty(contents)] /mx:Metadata mx:Script ![CDATA[ import mx.core.UIComponent; private var _contents:UIComponent; private var _contentsChanged:Boolean = false; public function set contents(value:UIComponent):void { _contents = value; _contentsChanged = true; this.invalidateProperties(); } override protected function commitProperties():void { super.commitProperties(); if (_contentsChanged) { contentHolder.content = _contents; _contentsChanged = false; } } override protected function measure():void { super.measure(); minWidth = measuredWidth = 0; // _contents.getExplicitOrMeasuredWidth(); minHeight = measuredHeight = 0; // _contents.getExplicitOrMeasuredHeight(); } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); contentHolder.scaleContentToFit(unscaledWidth, unscaledHeight); contentHolder.setActualSize(unscaledWidth, unscaledHeight); } ]] /mx:Script comp:ScaledContentHolder id=contentHolder width=100% height=100% /comp:ScaledContentHolder /mx:Canvas ScaledContentHolder.as: package comp { import mx.core.Container; import mx.core.UIComponent; public class ScaledContentHolder extends UIComponent { public function ScaledContentHolder() { } private var _allowInvalidateSize:Boolean = true; private var _content:UIComponent; private var _contentChanged:Boolean = false; override protected function measure():void { super.measure(); minWidth = measuredWidth = 0; // _content.getExplicitOrMeasuredWidth(); minHeight = measuredHeight = 0; //_content.getExplicitOrMeasuredHeight(); } public function set content(value:UIComponent):void { _content = value; _contentChanged = true; this.invalidateProperties(); } override protected function commitProperties():void { super.commitProperties(); if (_contentChanged) { this.removeAllChildren(); this.addChild(_content); _contentChanged = false; } } private function removeAllChildren():void { while (numChildren 0) { removeChildAt(0); } } override public function invalidateSize():void { if (_allowInvalidateSize) super.invalidateSize(); } public function scaleContentToFit(unscaledWidth:Number, unscaledHeight:Number):void { var contentWidth:Number = _content.getExplicitOrMeasuredWidth(); var contentHeight:Number = _content.getExplicitOrMeasuredHeight(); var xScale:Number = (unscaledWidth / contentWidth); var yScale:Number = (unscaledHeight / contentHeight); var finalScale:Number = Math.min(xScale, yScale); // Preserve aspect ratio _allowInvalidateSize =
Re: [flexcoders] OutOfMemoryError when compiling my app with Ant
None of these options worked. I still don't understand why Ant is having those memory issues while Eclipse builds my project like a charm and in no time. 2008/9/1 ivo [EMAIL PROTECTED] You might also need to set the Ant memory options http://www.mail-archive.com/flexcoders@yahoogroups.com/msg83489.html - Ivo - Original Message From: Mondain [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, September 1, 2008 11:11:29 AM Subject: Re: [flexcoders] OutOfMemoryError when compiling my app with Ant If this was a java project build you would simply increase the memoryMaximumSize option for the javac task, but in your case I see that you have allocated a maximum memory amount via a jvmarg to the mxmlc task. I'm not sure if this works the same way but I can see any application needing 2mb to build. I noticed some people saying to use fork=true but then I saw this adobe bug report: http://bugs. adobe.com/ jira/browse/ SDK-15765 http://bugs.adobe.com/jira/browse/SDK-15765 This may be semi-helpful to you also: http://soenkerohde. com/2008/ 06/change- eclipse-ant- settings- when-you- run-out-of- memory/http://soenkerohde.com/2008/06/change-eclipse-ant-settings-when-you-run-out-of-memory/ Good luck. Paul 2008/9/1 Sebastien ARBOGAST sebastien.arbogast@ gmail.com[EMAIL PROTECTED] I'm having a hard time compiling my application using Flex 3 Ant tasks. When I compile it in Flex Builder, using the default compiler, everything works fine. But when I try to build it from the command line (which I need to do on my continuous integration server) using the attached ant build file, I always get the following error: main: [mxmlc] Loading configuration file /Applications/ Adobe Flex Builder 3 Plug-in/sdks/ 3.1.0/frameworks /flex-config. xml [mxmlc] /Users/sarbogast/ dev/myapp/ flex/src/ index_384727. cache (No such file or directory) [mxmlc] Error: Java heap space [mxmlc] [mxmlc] java.lang.OutOfMemo ryError: Java heap space [mxmlc] at macromedia.asc. parser.NodeFacto ry.qualifiedIden tifier(NodeFacto ry.java:1779) [mxmlc] at macromedia.asc. parser.NodeFacto ry.qualifiedIden tifier(NodeFacto ry.java:1773) [mxmlc] at macromedia.asc. parser.NodeFacto ry.binaryFunctio nDefinition( NodeFactory. java:719) [mxmlc] at macromedia.abc. AbcParser. methodTrait( AbcParser. java:698) [mxmlc] at macromedia.abc. AbcParser. methodTrait( AbcParser. java:516) [mxmlc] at macromedia.abc. AbcParser. parseTraits( AbcParser. java:1130) [mxmlc] at macromedia.abc. AbcParser. classTrait( AbcParser. java:1064) [mxmlc] at macromedia.abc. AbcParser. parseTraits( AbcParser. java:1144) [mxmlc] at macromedia.abc. AbcParser. parseScript( AbcParser. java:1197) [mxmlc] at macromedia.abc. AbcParser. parseAbc( AbcParser. java:108) [mxmlc] at flex2.compiler. abc.Compiler. parse1(Compiler. java:179) [mxmlc] at flex2.compiler. API.parse1( API.java: 2315) [mxmlc] at flex2.compiler. API.parse1( API.java: 2268) [mxmlc] at flex2.compiler. API.batch2( API.java: 369) [mxmlc] at flex2.compiler. API.batch( API.java: 1117) [mxmlc] at flex2.compiler. API.compile( API.java: 1311) [mxmlc] at flex2.compiler. API.compile( API.java: 1210) [mxmlc] at flex2.tools. Compiler. mxmlc(Compiler. java:240) [mxmlc] at sun.reflect. NativeMethodAcce ssorImpl. invoke0(Native Method) [mxmlc] at sun.reflect. NativeMethodAcce ssorImpl. invoke(NativeMet hodAccessorImpl. java:39) [mxmlc] at sun.reflect. DelegatingMethod AccessorImpl. invoke(Delegatin gMethodAccessorI mpl.java: 25) [mxmlc] at java.lang.reflect. Method.invoke( Method.java: 597) [mxmlc] at flex.ant.FlexTask. executeInProcess (FlexTask. java:310) [mxmlc] at flex.ant.FlexTask. execute(FlexTask .java:243) [mxmlc] at org.apache.tools. ant.UnknownEleme nt.execute( UnknownElement. java:288) [mxmlc] at sun.reflect. NativeMethodAcce ssorImpl. invoke0(Native Method) [mxmlc] at sun.reflect. NativeMethodAcce ssorImpl. invoke(NativeMet hodAccessorImpl. java:39) [mxmlc] at sun.reflect. DelegatingMethod AccessorImpl. invoke(Delegatin gMethodAccessorI mpl.java: 25) [mxmlc] at java.lang.reflect. Method.invoke( Method.java: 597) [mxmlc] at org.apache.tools. ant.dispatch. DispatchUtils. execute(Dispatch Utils.java: 105) [mxmlc] at org.apache.tools. ant.Task. perform(Task. java:348) [mxmlc] at org.apache.tools. ant.Target. execute(Target. java:357) BUILD FAILED /Users/sarbogast/ dev/myapp/ flex/build. xml:12: mxmlc task failed Yet, I've already set the memory limit to the maximu on my machine. Any idea? -- Sébastien Arbogast http://sebastien- arbogast. com http://sebastien-arbogast.com -- http://gregoire. org/ http://gregoire.org/ http://osflash. org/red5 http://osflash.org/red5 -- Sébastien Arbogast http://sebastien-arbogast.com
[flexcoders] Detecting new flash version without a new browser instance
The flash installer (playerProductInstall.swf) tries to reload the container page in a new Explorer window when the installation is complete. Today, I found out why they do this, and I was wondering if anyone knows of a work-around... My first idea was this: If a new version is required, pop up a new window containing the installer. Then, from the container, poll the flash version (DetectFlashVer()) until it's updated. This didn't work. DetectFlashVer() kept returning the same old version number. So just to see how bad the situation was, I refreshed the containing HTML page after Flash 9 was installed. And lo -- the installer page popped right back up. So even after a refresh, it can't detect the flash version correctly. Is there any way to fix this? This page sometimes shows up in an embedded MSHTML control, so it's not always possible to reload the page in a new window.
RE: [flexcoders] Need Help and Guidance desperately
OK, FlexMDI, probably won't do it for you. You want some organization of the images. Why didn't FlowBox work for you? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of anuj sharma Sent: Wednesday, September 03, 2008 2:31 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Need Help and Guidance desperately Hi Alex I am not sure i understand that. Basically I am dragging images from one container which is HBOX( because i need scroller facility too) and dropping them in another container which is Tile. The user should be able to resize the dropped images as shown in the layout and the rest of the images have to adjust in terms of size as well as location to let resized image to get accommodated. I have seen some examples of FlowBox and one as shown in the following link: http://demo.quietlyscheming.com/DragTile/DragDrop.html but my problem coems becasue user should be able to resize the images in the container. As I have mentioned this is the first project of this kind for me I am not sure which way to go. Anyway coming to your question (mini-window using FlexMDI) it can be the any way as long as it is solving the purpose of my requirement. Any detail and suggestions, please let me know Thanks Anuj On Wed, Sep 3, 2008 at 2:16 PM, Alex Harui [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: Can everything be a mini-window using FlexMDI? From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of anuj sharma Sent: Wednesday, September 03, 2008 1:46 PM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Need Help and Guidance desperately Hi Guys So is there anyone in the list that can help me in achieving this? This problem is burning me out now and I need a good head start to achieve this. This is my first project of this kind. Earlier i developed simple prototypes using basic event programming. I need you genius guys's guidance to get me started and need that layout for my images. If there is any custom componenet available in the market then i am ready to buy that too. It is taking me little long to figure out this layout. I have reached at the last level of this project. Sorry for being pain but please help me out in generating this layout. Any guidance and any kind of help in this direction will be highyl appreciated. Thanks in advance guys Anuj On Wed, Aug 27, 2008 at 1:51 PM, anuj sharma [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: Dough I forgot to mention that i am not sure if i can force the components into either rows or columns because I am allowing free flow of the image within the container too which means that the user should be able to resize the image and should be able to drag and drop the image too whereever he wants within the container. i used drag manager for that. i thought should made it clear. Thanks for your time Anuj On Wed, Aug 27, 2008 at 9:34 AM, Doug McCune [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: Oh wow, that's actually a really flexible layout requirement that I don't think you can achieve with any of the components out there right now (ie TileList, Tile, combination of HBox and VBox, or even FlowBox). I think you may have to lose of of the desired functionality and allow the content to be binned into distinct rows or columns more tightly. The first image in your attachement is doable in the FlowBox I believe, but the second screenshot is much harder. Notice how box C extends down into a second row, and also how box E extends across multiple columns. That use of dual column and row spanning makes it difficult. If you allow the components to be forced into either rows or columns then it will be much easier. Doug On Wed, Aug 27, 2008 at 9:05 AM, anuj sharma [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: Hi All Attached is the rough sketch i am about the UI i have to implement. Right now they are just empty pictures, but the user can drag them on the stage and can resize the images placed on the main screen. My requirement if user drops a new image on the screen all the other images adjust themselves to accommodate the new image. Also if user enlarge or shrink one image (like in the sketch user is trying to shrink image B), all the other images adjust themselves on the main stage . Please let em know if you have any questions. Thanks a lot for your help Anuj On Tue, Aug 26, 2008 at 4:38 PM, anuj sharma [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: Hi Rick I will try to sketch my requirement and send it to you soon. That might help to find what i am looking for. Thanks for your suggestion. Anuj On Mon, Aug 25, 2008 at 7:47 PM, Rick Winscot [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: The seconds link was to a flow layout that would set you in the right direction... The other option was the first link which uses static positioning.
Re: [flexcoders] Need Help and Guidance desperately
Can I put my resizeable images in the FlowBox and upon resizing will the rest of the images be arranged of its own. I was not sure if FlowBox can take care of resizing the images.If that's the case i will try that. I will definitely keep you posted about that. Thanks Anuj On Wed, Sep 3, 2008 at 2:49 PM, Alex Harui [EMAIL PROTECTED] wrote: OK, FlexMDI, probably won't do it for you. You want some organization of the images. Why didn't FlowBox work for you? *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *anuj sharma *Sent:* Wednesday, September 03, 2008 2:31 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Need Help and Guidance desperately Hi Alex I am not sure i understand that. Basically I am dragging images from one container which is HBOX( because i need scroller facility too) and dropping them in another container which is Tile. The user should be able to resize the dropped images as shown in the layout and the rest of the images have to adjust in terms of size as well as location to let resized image to get accommodated. I have seen some examples of FlowBox and one as shown in the following link: http://demo.quietlyscheming.com/DragTile/DragDrop.html but my problem coems becasue user should be able to resize the images in the container. As I have mentioned this is the first project of this kind for me I am not sure which way to go. Anyway coming to your question (mini-window using FlexMDI) it can be the any way as long as it is solving the purpose of my requirement. Any detail and suggestions, please let me know Thanks Anuj On Wed, Sep 3, 2008 at 2:16 PM, Alex Harui [EMAIL PROTECTED] wrote: Can everything be a mini-window using FlexMDI? *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *anuj sharma *Sent:* Wednesday, September 03, 2008 1:46 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Need Help and Guidance desperately Hi Guys So is there anyone in the list that can help me in achieving this? This problem is burning me out now and I need a good head start to achieve this. This is my first project of this kind. Earlier i developed simple prototypes using basic event programming. I need you genius guys's guidance to get me started and need that layout for my images. If there is any custom componenet available in the market then i am ready to buy that too. It is taking me little long to figure out this layout. I have reached at the last level of this project. Sorry for being pain but please help me out in generating this layout. Any guidance and any kind of help in this direction will be highyl appreciated. Thanks in advance guys Anuj On Wed, Aug 27, 2008 at 1:51 PM, anuj sharma [EMAIL PROTECTED] wrote: Dough I forgot to mention that i am not sure if i can force the components into either rows or columns because I am allowing free flow of the image within the container too which means that the user should be able to resize the image and should be able to drag and drop the image too whereever he wants within the container. i used drag manager for that. i thought should made it clear. Thanks for your time Anuj On Wed, Aug 27, 2008 at 9:34 AM, Doug McCune [EMAIL PROTECTED] wrote: Oh wow, that's actually a really flexible layout requirement that I don't think you can achieve with any of the components out there right now (ie TileList, Tile, combination of HBox and VBox, or even FlowBox). I think you may have to lose of of the desired functionality and allow the content to be binned into distinct rows or columns more tightly. The first image in your attachement is doable in the FlowBox I believe, but the second screenshot is much harder. Notice how box C extends down into a second row, and also how box E extends across multiple columns. That use of dual column and row spanning makes it difficult. If you allow the components to be forced into either rows or columns then it will be much easier. Doug On Wed, Aug 27, 2008 at 9:05 AM, anuj sharma [EMAIL PROTECTED] wrote: Hi All Attached is the rough sketch i am about the UI i have to implement. Right now they are just empty pictures, but the user can drag them on the stage and can resize the images placed on the main screen. My requirement if user drops a new image on the screen all the other images adjust themselves to accommodate the new image. Also if user enlarge or shrink one image (like in the sketch user is trying to shrink image B), all the other images adjust themselves on the main stage . Please let em know if you have any questions. Thanks a lot for your help Anuj On Tue, Aug 26, 2008 at 4:38 PM, anuj sharma [EMAIL PROTECTED] wrote: Hi Rick I will try to sketch my requirement and send it to you soon. That might help to find what i am looking for. Thanks for your suggestion. Anuj On Mon, Aug 25, 2008 at 7:47 PM, Rick Winscot [EMAIL
Re: [flexcoders] Need Help and Guidance desperately
His layout is really difficult. Basically he wants images to be smart enough to size any which way to fit around each other. If you take a look at the word doc he attached the second mockup shows the problem. Basically he doesn't want to restrict to rows or columns, and wants items to be able to span both, which is hard to do. I honestly don't have an answer for how to do that layout. If you can change the requirement to let you use either columns or rows then you're fine. Doug On Wed, Sep 3, 2008 at 2:49 PM, Alex Harui [EMAIL PROTECTED] wrote: OK, FlexMDI, probably won't do it for you. You want some organization of the images. Why didn't FlowBox work for you? *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *anuj sharma *Sent:* Wednesday, September 03, 2008 2:31 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Need Help and Guidance desperately Hi Alex I am not sure i understand that. Basically I am dragging images from one container which is HBOX( because i need scroller facility too) and dropping them in another container which is Tile. The user should be able to resize the dropped images as shown in the layout and the rest of the images have to adjust in terms of size as well as location to let resized image to get accommodated. I have seen some examples of FlowBox and one as shown in the following link: http://demo.quietlyscheming.com/DragTile/DragDrop.html but my problem coems becasue user should be able to resize the images in the container. As I have mentioned this is the first project of this kind for me I am not sure which way to go. Anyway coming to your question (mini-window using FlexMDI) it can be the any way as long as it is solving the purpose of my requirement. Any detail and suggestions, please let me know Thanks Anuj On Wed, Sep 3, 2008 at 2:16 PM, Alex Harui [EMAIL PROTECTED] wrote: Can everything be a mini-window using FlexMDI? *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *anuj sharma *Sent:* Wednesday, September 03, 2008 1:46 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Need Help and Guidance desperately Hi Guys So is there anyone in the list that can help me in achieving this? This problem is burning me out now and I need a good head start to achieve this. This is my first project of this kind. Earlier i developed simple prototypes using basic event programming. I need you genius guys's guidance to get me started and need that layout for my images. If there is any custom componenet available in the market then i am ready to buy that too. It is taking me little long to figure out this layout. I have reached at the last level of this project. Sorry for being pain but please help me out in generating this layout. Any guidance and any kind of help in this direction will be highyl appreciated. Thanks in advance guys Anuj On Wed, Aug 27, 2008 at 1:51 PM, anuj sharma [EMAIL PROTECTED] wrote: Dough I forgot to mention that i am not sure if i can force the components into either rows or columns because I am allowing free flow of the image within the container too which means that the user should be able to resize the image and should be able to drag and drop the image too whereever he wants within the container. i used drag manager for that. i thought should made it clear. Thanks for your time Anuj On Wed, Aug 27, 2008 at 9:34 AM, Doug McCune [EMAIL PROTECTED] wrote: Oh wow, that's actually a really flexible layout requirement that I don't think you can achieve with any of the components out there right now (ie TileList, Tile, combination of HBox and VBox, or even FlowBox). I think you may have to lose of of the desired functionality and allow the content to be binned into distinct rows or columns more tightly. The first image in your attachement is doable in the FlowBox I believe, but the second screenshot is much harder. Notice how box C extends down into a second row, and also how box E extends across multiple columns. That use of dual column and row spanning makes it difficult. If you allow the components to be forced into either rows or columns then it will be much easier. Doug On Wed, Aug 27, 2008 at 9:05 AM, anuj sharma [EMAIL PROTECTED] wrote: Hi All Attached is the rough sketch i am about the UI i have to implement. Right now they are just empty pictures, but the user can drag them on the stage and can resize the images placed on the main screen. My requirement if user drops a new image on the screen all the other images adjust themselves to accommodate the new image. Also if user enlarge or shrink one image (like in the sketch user is trying to shrink image B), all the other images adjust themselves on the main stage . Please let em know if you have any questions. Thanks a lot for your help Anuj On Tue, Aug 26, 2008 at 4:38 PM, anuj sharma [EMAIL PROTECTED] wrote: Hi Rick
RE: [flexcoders] Components are disappearing from the screen on popups
Can you tell if the icons are moving or the whole control bar is moving? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Gravener Sent: Wednesday, September 03, 2008 2:35 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Components are disappearing from the screen on popups http://eugeneciurana.com/pastebin/pastebin.php?show=33170 On Wed, Sep 3, 2008 at 5:29 PM, Alex Harui [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: And what might that MXML look like? From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of Ryan Gravener Sent: Wednesday, September 03, 2008 2:26 PM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Components are disappearing from the screen on popups It is just mxml. Correction: When ever firefox has scrollbars then the positioning works fine. On Wed, Sep 3, 2008 at 5:19 PM, Alex Harui [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: What kind of code positions the icons? From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of Ryan Gravener Sent: Wednesday, September 03, 2008 1:04 PM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: [flexcoders] Components are disappearing from the screen on popups If I have a Menu pop up or a modal window pop up and the browser is in full mode, the icons disappear by moving to the right about 100px. I can't figure out a way to fix this problem. screencast: http://www.screencast.com/users/RyanGravener/folders/Jing/media/2a63fab9-7c2f-4b52-8094-f5bc6423a46b paste: http://eugeneciurana.com/pastebin/pastebin.php?show=33170 Thanks, Ryan Gravener http://twitter.com/ryangravener -- Ryan Gravener http://twitter.com/ryangravener -- Ryan Gravener http://twitter.com/ryangravener
RE: [flexcoders] Need Help and Guidance desperately
I've never used it, but in searching for it I saw discussions of how to get it to re-layout From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of anuj sharma Sent: Wednesday, September 03, 2008 2:54 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Need Help and Guidance desperately Can I put my resizeable images in the FlowBox and upon resizing will the rest of the images be arranged of its own. I was not sure if FlowBox can take care of resizing the images.If that's the case i will try that. I will definitely keep you posted about that. Thanks Anuj On Wed, Sep 3, 2008 at 2:49 PM, Alex Harui [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: OK, FlexMDI, probably won't do it for you. You want some organization of the images. Why didn't FlowBox work for you? From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of anuj sharma Sent: Wednesday, September 03, 2008 2:31 PM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Need Help and Guidance desperately Hi Alex I am not sure i understand that. Basically I am dragging images from one container which is HBOX( because i need scroller facility too) and dropping them in another container which is Tile. The user should be able to resize the dropped images as shown in the layout and the rest of the images have to adjust in terms of size as well as location to let resized image to get accommodated. I have seen some examples of FlowBox and one as shown in the following link: http://demo.quietlyscheming.com/DragTile/DragDrop.html but my problem coems becasue user should be able to resize the images in the container. As I have mentioned this is the first project of this kind for me I am not sure which way to go. Anyway coming to your question (mini-window using FlexMDI) it can be the any way as long as it is solving the purpose of my requirement. Any detail and suggestions, please let me know Thanks Anuj On Wed, Sep 3, 2008 at 2:16 PM, Alex Harui [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: Can everything be a mini-window using FlexMDI? From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of anuj sharma Sent: Wednesday, September 03, 2008 1:46 PM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Need Help and Guidance desperately Hi Guys So is there anyone in the list that can help me in achieving this? This problem is burning me out now and I need a good head start to achieve this. This is my first project of this kind. Earlier i developed simple prototypes using basic event programming. I need you genius guys's guidance to get me started and need that layout for my images. If there is any custom componenet available in the market then i am ready to buy that too. It is taking me little long to figure out this layout. I have reached at the last level of this project. Sorry for being pain but please help me out in generating this layout. Any guidance and any kind of help in this direction will be highyl appreciated. Thanks in advance guys Anuj On Wed, Aug 27, 2008 at 1:51 PM, anuj sharma [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: Dough I forgot to mention that i am not sure if i can force the components into either rows or columns because I am allowing free flow of the image within the container too which means that the user should be able to resize the image and should be able to drag and drop the image too whereever he wants within the container. i used drag manager for that. i thought should made it clear. Thanks for your time Anuj On Wed, Aug 27, 2008 at 9:34 AM, Doug McCune [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: Oh wow, that's actually a really flexible layout requirement that I don't think you can achieve with any of the components out there right now (ie TileList, Tile, combination of HBox and VBox, or even FlowBox). I think you may have to lose of of the desired functionality and allow the content to be binned into distinct rows or columns more tightly. The first image in your attachement is doable in the FlowBox I believe, but the second screenshot is much harder. Notice how box C extends down into a second row, and also how box E extends across multiple columns. That use of dual column and row spanning makes it difficult. If you allow the components to be forced into either rows or columns then it will be much easier. Doug On Wed, Aug 27, 2008 at 9:05 AM, anuj sharma [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: Hi All Attached is the rough sketch i am about the UI i have to implement. Right now they are just empty pictures, but the user can drag them on the stage and can resize the images placed on the main screen. My requirement if user drops a new image on the screen all
RE: [flexcoders] Need Help and Guidance desperately
OK, I haven't really been following closely. If he's desperate, maybe he'll be more restrictive so he can get Flow to work. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug McCune Sent: Wednesday, September 03, 2008 2:55 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Need Help and Guidance desperately His layout is really difficult. Basically he wants images to be smart enough to size any which way to fit around each other. If you take a look at the word doc he attached the second mockup shows the problem. Basically he doesn't want to restrict to rows or columns, and wants items to be able to span both, which is hard to do. I honestly don't have an answer for how to do that layout. If you can change the requirement to let you use either columns or rows then you're fine. Doug On Wed, Sep 3, 2008 at 2:49 PM, Alex Harui [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: OK, FlexMDI, probably won't do it for you. You want some organization of the images. Why didn't FlowBox work for you? From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of anuj sharma Sent: Wednesday, September 03, 2008 2:31 PM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Need Help and Guidance desperately Hi Alex I am not sure i understand that. Basically I am dragging images from one container which is HBOX( because i need scroller facility too) and dropping them in another container which is Tile. The user should be able to resize the dropped images as shown in the layout and the rest of the images have to adjust in terms of size as well as location to let resized image to get accommodated. I have seen some examples of FlowBox and one as shown in the following link: http://demo.quietlyscheming.com/DragTile/DragDrop.html but my problem coems becasue user should be able to resize the images in the container. As I have mentioned this is the first project of this kind for me I am not sure which way to go. Anyway coming to your question (mini-window using FlexMDI) it can be the any way as long as it is solving the purpose of my requirement. Any detail and suggestions, please let me know Thanks Anuj On Wed, Sep 3, 2008 at 2:16 PM, Alex Harui [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: Can everything be a mini-window using FlexMDI? From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of anuj sharma Sent: Wednesday, September 03, 2008 1:46 PM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Need Help and Guidance desperately Hi Guys So is there anyone in the list that can help me in achieving this? This problem is burning me out now and I need a good head start to achieve this. This is my first project of this kind. Earlier i developed simple prototypes using basic event programming. I need you genius guys's guidance to get me started and need that layout for my images. If there is any custom componenet available in the market then i am ready to buy that too. It is taking me little long to figure out this layout. I have reached at the last level of this project. Sorry for being pain but please help me out in generating this layout. Any guidance and any kind of help in this direction will be highyl appreciated. Thanks in advance guys Anuj On Wed, Aug 27, 2008 at 1:51 PM, anuj sharma [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: Dough I forgot to mention that i am not sure if i can force the components into either rows or columns because I am allowing free flow of the image within the container too which means that the user should be able to resize the image and should be able to drag and drop the image too whereever he wants within the container. i used drag manager for that. i thought should made it clear. Thanks for your time Anuj On Wed, Aug 27, 2008 at 9:34 AM, Doug McCune [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: Oh wow, that's actually a really flexible layout requirement that I don't think you can achieve with any of the components out there right now (ie TileList, Tile, combination of HBox and VBox, or even FlowBox). I think you may have to lose of of the desired functionality and allow the content to be binned into distinct rows or columns more tightly. The first image in your attachement is doable in the FlowBox I believe, but the second screenshot is much harder. Notice how box C extends down into a second row, and also how box E extends across multiple columns. That use of dual column and row spanning makes it difficult. If you allow the components to be forced into either rows or columns then it will be much easier. Doug On Wed, Aug 27, 2008 at 9:05 AM, anuj sharma [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: Hi All Attached is the
Re: [flexcoders] Re: Bindable Classes
Right, now I see what you're saying. I thought you were saying that Flex will do what it normally does, only using your custom event instead of propertychange :) On Thu, Sep 4, 2008 at 2:22 AM, Johannes Nel [EMAIL PROTECTED] wrote: no you need to dispatch the event yourself. as i said in some cases a get/set pair is needed, but not always. my strategy is to have multiple events that updates multple properties dependent on which group changed. -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]